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.
26 lines
145 KiB
26 lines
145 KiB
(self.webpackChunk=self.webpackChunk||[]).push([[1475],{84105:function(nt,ee,e){"use strict";e.d(ee,{Z:function(){return g}});var a=e(96663),v=e(59301),x={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},W=x,w=e(7657),E=function(X,te){return v.createElement(w.Z,(0,a.Z)({},X,{ref:te,icon:W}))},m=v.forwardRef(E),g=m},18785:function(nt,ee,e){"use strict";e.d(ee,{Z:function(){return g}});var a=e(96663),v=e(59301),x={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"},W=x,w=e(7657),E=function(X,te){return v.createElement(w.Z,(0,a.Z)({},X,{ref:te,icon:W}))},m=v.forwardRef(E),g=m},35593:function(nt,ee,e){"use strict";e.d(ee,{Z:function(){return je}});var a=e(44127),v=e(72071),x=e(6620),W=e(43403),w=e(92310),E=e.n(w),m=e(29301),g=e(76846),H=e(96452),X=e(6089),te=e(80402),k=e(34280),t=e(49658),b=e(59301),ne=e(96663),Q=e(77900),fe=e(8654);function se(c){var p=c.prefixCls,r=c.align,S=c.arrow,z=c.arrowPos,G=S||{},j=G.className,_=G.content,oe=z.x,U=oe===void 0?0:oe,re=z.y,Ce=re===void 0?0:re,$e=b.useRef();if(!r||!r.points)return null;var q={position:"absolute"};if(r.autoArrow!==!1){var Oe=r.points[0],ze=r.points[1],De=Oe[0],Ze=Oe[1],_e=ze[0],Ue=ze[1];De===_e||!["t","b"].includes(De)?q.top=Ce:De==="t"?q.top=0:q.bottom=0,Ze===Ue||!["l","r"].includes(Ze)?q.left=U:Ze==="l"?q.left=0:q.right=0}return b.createElement("div",{ref:$e,className:E()("".concat(p,"-arrow"),j),style:q},_)}function O(c){var p=c.prefixCls,r=c.open,S=c.zIndex,z=c.mask,G=c.motion;return z?b.createElement(Q.default,(0,ne.Z)({},G,{motionAppear:!0,visible:r,removeOnLeave:!0}),function(j){var _=j.className;return b.createElement("div",{style:{zIndex:S},className:E()("".concat(p,"-mask"),_)})}):null}var P=b.memo(function(c){var p=c.children;return p},function(c,p){return p.cache}),$=P,n=b.forwardRef(function(c,p){var r=c.popup,S=c.className,z=c.prefixCls,G=c.style,j=c.target,_=c.onVisibleChanged,oe=c.open,U=c.keepDom,re=c.fresh,Ce=c.onClick,$e=c.mask,q=c.arrow,Oe=c.arrowPos,ze=c.align,De=c.motion,Ze=c.maskMotion,_e=c.forceRender,Ue=c.getPopupContainer,ce=c.autoDestroy,Rt=c.portal,vt=c.zIndex,mt=c.onMouseEnter,rt=c.onMouseLeave,xt=c.onPointerEnter,Ke=c.ready,It=c.offsetX,Ht=c.offsetY,Tt=c.offsetR,et=c.offsetB,Ge=c.onAlign,qe=c.onPrepare,yt=c.stretch,We=c.targetWidth,Mt=c.targetHeight,ht=typeof r=="function"?r():r,Ot=oe||U,Dt=(Ue==null?void 0:Ue.length)>0,at=b.useState(!Ue||!Dt),mn=(0,v.Z)(at,2),kt=mn[0],ot=mn[1];if((0,k.Z)(function(){!kt&&Dt&&j&&ot(!0)},[kt,Dt,j]),!kt)return null;var V="auto",pe={left:"-1000vw",top:"-1000vh",right:V,bottom:V};if(Ke||!oe){var Se,le=ze.points,Je=ze.dynamicInset||((Se=ze._experimental)===null||Se===void 0?void 0:Se.dynamicInset),Fe=Je&&le[0][1]==="r",ut=Je&&le[0][0]==="b";Fe?(pe.right=Tt,pe.left=V):(pe.left=It,pe.right=V),ut?(pe.bottom=et,pe.top=V):(pe.top=Ht,pe.bottom=V)}var Ye={};return yt&&(yt.includes("height")&&Mt?Ye.height=Mt:yt.includes("minHeight")&&Mt&&(Ye.minHeight=Mt),yt.includes("width")&&We?Ye.width=We:yt.includes("minWidth")&&We&&(Ye.minWidth=We)),oe||(Ye.pointerEvents="none"),b.createElement(Rt,{open:_e||Ot,getContainer:Ue&&function(){return Ue(j)},autoDestroy:ce},b.createElement(O,{prefixCls:z,open:oe,zIndex:vt,mask:$e,motion:Ze}),b.createElement(m.Z,{onResize:Ge,disabled:!oe},function(bt){return b.createElement(Q.default,(0,ne.Z)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:_e,leavedClassName:"".concat(z,"-hidden")},De,{onAppearPrepare:qe,onEnterPrepare:qe,visible:oe,onVisibleChanged:function(Jt){var an;De==null||(an=De.onVisibleChanged)===null||an===void 0||an.call(De,Jt),_(Jt)}}),function(tn,Jt){var an=tn.className,it=tn.style,un=E()(z,an,S);return b.createElement("div",{ref:(0,fe.sQ)(bt,p,Jt),className:un,style:(0,a.Z)((0,a.Z)((0,a.Z)((0,a.Z)({"--arrow-x":"".concat(Oe.x||0,"px"),"--arrow-y":"".concat(Oe.y||0,"px")},pe),Ye),it),{},{boxSizing:"border-box",zIndex:vt},G),onMouseEnter:mt,onMouseLeave:rt,onPointerEnter:xt,onClick:Ce},q&&b.createElement(se,{prefixCls:z,arrow:q,arrowPos:Oe,align:ze}),b.createElement($,{cache:!oe&&!re},ht))})}))}),o=n,D=b.forwardRef(function(c,p){var r=c.children,S=c.getTriggerDOMNode,z=(0,fe.Yr)(r),G=b.useCallback(function(_){(0,fe.mH)(p,S?S(_):_)},[S]),j=(0,fe.x1)(G,r.ref);return z?b.cloneElement(r,{ref:j}):r}),N=D,me=b.createContext(null),ue=me;function xe(c){return c?Array.isArray(c)?c:[c]:[]}function Z(c,p,r,S){return b.useMemo(function(){var z=xe(r!=null?r:p),G=xe(S!=null?S:p),j=new Set(z),_=new Set(G);return c&&(j.has("hover")&&(j.delete("hover"),j.add("click")),_.has("hover")&&(_.delete("hover"),_.add("click"))),[j,_]},[c,p,r,S])}var s=e(29194);function l(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0;return r?c[0]===p[0]:c[0]===p[0]&&c[1]===p[1]}function f(c,p,r,S){for(var z=r.points,G=Object.keys(c),j=0;j<G.length;j+=1){var _,oe=G[j];if(l((_=c[oe])===null||_===void 0?void 0:_.points,z,S))return"".concat(p,"-placement-").concat(oe)}return""}function y(c,p,r,S){return p||(r?{motionName:"".concat(c,"-").concat(r)}:S?{motionName:S}:null)}function L(c){return c.ownerDocument.defaultView}function J(c){for(var p=[],r=c==null?void 0:c.parentElement,S=["hidden","scroll","clip","auto"];r;){var z=L(r).getComputedStyle(r),G=z.overflowX,j=z.overflowY,_=z.overflow;[G,j,_].some(function(oe){return S.includes(oe)})&&p.push(r),r=r.parentElement}return p}function h(c){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(c)?p:c}function Y(c){return h(parseFloat(c),0)}function T(c,p){var r=(0,a.Z)({},c);return(p||[]).forEach(function(S){if(!(S instanceof HTMLBodyElement||S instanceof HTMLHtmlElement)){var z=L(S).getComputedStyle(S),G=z.overflow,j=z.overflowClipMargin,_=z.borderTopWidth,oe=z.borderBottomWidth,U=z.borderLeftWidth,re=z.borderRightWidth,Ce=S.getBoundingClientRect(),$e=S.offsetHeight,q=S.clientHeight,Oe=S.offsetWidth,ze=S.clientWidth,De=Y(_),Ze=Y(oe),_e=Y(U),Ue=Y(re),ce=h(Math.round(Ce.width/Oe*1e3)/1e3),Rt=h(Math.round(Ce.height/$e*1e3)/1e3),vt=(Oe-ze-_e-Ue)*ce,mt=($e-q-De-Ze)*Rt,rt=De*Rt,xt=Ze*Rt,Ke=_e*ce,It=Ue*ce,Ht=0,Tt=0;if(G==="clip"){var et=Y(j);Ht=et*ce,Tt=et*Rt}var Ge=Ce.x+Ke-Ht,qe=Ce.y+rt-Tt,yt=Ge+Ce.width+2*Ht-Ke-It-vt,We=qe+Ce.height+2*Tt-rt-xt-mt;r.left=Math.max(r.left,Ge),r.top=Math.max(r.top,qe),r.right=Math.min(r.right,yt),r.bottom=Math.min(r.bottom,We)}}),r}function I(c){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r="".concat(p),S=r.match(/^(.*)\%$/);return S?c*(parseFloat(S[1])/100):parseFloat(r)}function u(c,p){var r=p||[],S=(0,v.Z)(r,2),z=S[0],G=S[1];return[I(c.width,z),I(c.height,G)]}function M(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[c[0],c[1]]}function B(c,p){var r=p[0],S=p[1],z,G;return r==="t"?G=c.y:r==="b"?G=c.y+c.height:G=c.y+c.height/2,S==="l"?z=c.x:S==="r"?z=c.x+c.width:z=c.x+c.width/2,{x:z,y:G}}function ae(c,p){var r={t:"b",b:"t",l:"r",r:"l"};return c.map(function(S,z){return z===p?r[S]||"c":S}).join("")}function ie(c,p,r,S,z,G,j){var _=b.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:z[S]||{}}),oe=(0,v.Z)(_,2),U=oe[0],re=oe[1],Ce=b.useRef(0),$e=b.useMemo(function(){return p?J(p):[]},[p]),q=b.useRef({}),Oe=function(){q.current={}};c||Oe();var ze=(0,X.Z)(function(){if(p&&r&&c){let qt=function(jt,yn){var bn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:un,rn=ht.x+jt,en=ht.y+yn,kn=rn+Se,Xn=en+pe,Un=Math.max(rn,bn.left),qn=Math.max(en,bn.top),Jn=Math.min(kn,bn.right),Wn=Math.min(Xn,bn.bottom);return Math.max(0,(Jn-Un)*(Wn-qn))},Zn=function(){zt=ht.y+ve,Pt=zt+pe,Zt=ht.x+Be,Ut=Zt+Se};var _e,Ue,ce=p,Rt=ce.ownerDocument,vt=L(ce),mt=vt.getComputedStyle(ce),rt=mt.width,xt=mt.height,Ke=mt.position,It=ce.style.left,Ht=ce.style.top,Tt=ce.style.right,et=ce.style.bottom,Ge=ce.style.overflow,qe=(0,a.Z)((0,a.Z)({},z[S]),G),yt=Rt.createElement("div");(_e=ce.parentElement)===null||_e===void 0||_e.appendChild(yt),yt.style.left="".concat(ce.offsetLeft,"px"),yt.style.top="".concat(ce.offsetTop,"px"),yt.style.position=Ke,yt.style.height="".concat(ce.offsetHeight,"px"),yt.style.width="".concat(ce.offsetWidth,"px"),ce.style.left="0",ce.style.top="0",ce.style.right="auto",ce.style.bottom="auto",ce.style.overflow="hidden";var We;if(Array.isArray(r))We={x:r[0],y:r[1],width:0,height:0};else{var Mt=r.getBoundingClientRect();We={x:Mt.x,y:Mt.y,width:Mt.width,height:Mt.height}}var ht=ce.getBoundingClientRect(),Ot=Rt.documentElement,Dt=Ot.clientWidth,at=Ot.clientHeight,mn=Ot.scrollWidth,kt=Ot.scrollHeight,ot=Ot.scrollTop,V=Ot.scrollLeft,pe=ht.height,Se=ht.width,le=We.height,Je=We.width,Fe={left:0,top:0,right:Dt,bottom:at},ut={left:-V,top:-ot,right:mn-V,bottom:kt-ot},Ye=qe.htmlRegion,bt="visible",tn="visibleFirst";Ye!=="scroll"&&Ye!==tn&&(Ye=bt);var Jt=Ye===tn,an=T(ut,$e),it=T(Fe,$e),un=Ye===bt?it:an,Bt=Jt?it:un;ce.style.left="auto",ce.style.top="auto",ce.style.right="0",ce.style.bottom="0";var Pn=ce.getBoundingClientRect();ce.style.left=It,ce.style.top=Ht,ce.style.right=Tt,ce.style.bottom=et,ce.style.overflow=Ge,(Ue=ce.parentElement)===null||Ue===void 0||Ue.removeChild(yt);var on=h(Math.round(Se/parseFloat(rt)*1e3)/1e3),he=h(Math.round(pe/parseFloat(xt)*1e3)/1e3);if(on===0||he===0||(0,g.Sh)(r)&&!(0,s.Z)(r))return;var Ne=qe.offset,Le=qe.targetOffset,Vt=u(ht,Ne),Tn=(0,v.Z)(Vt,2),Ft=Tn[0],we=Tn[1],i=u(We,Le),d=(0,v.Z)(i,2),R=d[0],A=d[1];We.x-=R,We.y-=A;var C=qe.points||[],K=(0,v.Z)(C,2),F=K[0],ye=K[1],Ae=M(ye),ge=M(F),ct=B(We,Ae),He=B(ht,ge),tt=(0,a.Z)({},qe),Be=ct.x-He.x+Ft,ve=ct.y-He.y+we,dt=qt(Be,ve),st=qt(Be,ve,it),Ct=B(We,["t","l"]),lt=B(ht,["t","l"]),Qe=B(We,["b","r"]),Xe=B(ht,["b","r"]),Ve=qe.overflow||{},gt=Ve.adjustX,Lt=Ve.adjustY,ft=Ve.shiftX,nn=Ve.shiftY,St=function(yn){return typeof yn=="boolean"?yn:yn>=0},zt,Pt,Zt,Ut;Zn();var Yt=St(Lt),cn=ge[0]===Ae[0];if(Yt&&ge[0]==="t"&&(Pt>Bt.bottom||q.current.bt)){var _t=ve;cn?_t-=pe-le:_t=Ct.y-Xe.y-we;var Gt=qt(Be,_t),dn=qt(Be,_t,it);Gt>dt||Gt===dt&&(!Jt||dn>=st)?(q.current.bt=!0,ve=_t,we=-we,tt.points=[ae(ge,0),ae(Ae,0)]):q.current.bt=!1}if(Yt&&ge[0]==="b"&&(zt<Bt.top||q.current.tb)){var Et=ve;cn?Et+=pe-le:Et=Qe.y-lt.y-we;var wn=qt(Be,Et),$n=qt(Be,Et,it);wn>dt||wn===dt&&(!Jt||$n>=st)?(q.current.tb=!0,ve=Et,we=-we,tt.points=[ae(ge,0),ae(Ae,0)]):q.current.tb=!1}var Cn=St(gt),xn=ge[1]===Ae[1];if(Cn&&ge[1]==="l"&&(Ut>Bt.right||q.current.rl)){var fn=Be;xn?fn-=Se-Je:fn=Ct.x-Xe.x-Ft;var Xt=qt(fn,ve),ln=qt(fn,ve,it);Xt>dt||Xt===dt&&(!Jt||ln>=st)?(q.current.rl=!0,Be=fn,Ft=-Ft,tt.points=[ae(ge,1),ae(Ae,1)]):q.current.rl=!1}if(Cn&&ge[1]==="r"&&(Zt<Bt.left||q.current.lr)){var hn=Be;xn?hn+=Se-Je:hn=Qe.x-lt.x-Ft;var Rn=qt(hn,ve),gn=qt(hn,ve,it);Rn>dt||Rn===dt&&(!Jt||gn>=st)?(q.current.lr=!0,Be=hn,Ft=-Ft,tt.points=[ae(ge,1),ae(Ae,1)]):q.current.lr=!1}Zn();var $t=ft===!0?0:ft;typeof $t=="number"&&(Zt<it.left&&(Be-=Zt-it.left-Ft,We.x+Je<it.left+$t&&(Be+=We.x-it.left+Je-$t)),Ut>it.right&&(Be-=Ut-it.right-Ft,We.x>it.right-$t&&(Be+=We.x-it.right+$t)));var Qt=nn===!0?0:nn;typeof Qt=="number"&&(zt<it.top&&(ve-=zt-it.top-we,We.y+le<it.top+Qt&&(ve+=We.y-it.top+le-Qt)),Pt>it.bottom&&(ve-=Pt-it.bottom-we,We.y>it.bottom-Qt&&(ve+=We.y-it.bottom+Qt)));var vn=ht.x+Be,In=vn+Se,sn=ht.y+ve,On=sn+pe,Mn=We.x,Dn=Mn+Je,jn=We.y,Bn=jn+le,Kn=Math.max(vn,Mn),Fn=Math.min(In,Dn),pn=(Kn+Fn)/2,Hn=pn-vn,Ln=Math.max(sn,jn),zn=Math.min(On,Bn),Vn=(Ln+zn)/2,Nn=Vn-sn;j==null||j(p,tt);var An=Pn.right-ht.x-(Be+ht.width),_n=Pn.bottom-ht.y-(ve+ht.height);re({ready:!0,offsetX:Be/on,offsetY:ve/he,offsetR:An/on,offsetB:_n/he,arrowX:Hn/on,arrowY:Nn/he,scaleX:on,scaleY:he,align:tt})}}),De=function(){Ce.current+=1;var Ue=Ce.current;Promise.resolve().then(function(){Ce.current===Ue&&ze()})},Ze=function(){re(function(Ue){return(0,a.Z)((0,a.Z)({},Ue),{},{ready:!1})})};return(0,k.Z)(Ze,[S]),(0,k.Z)(function(){c||Ze()},[c]),[U.ready,U.offsetX,U.offsetY,U.offsetR,U.offsetB,U.arrowX,U.arrowY,U.scaleX,U.scaleY,U.align,De]}var Re=e(19127);function Te(c,p,r,S,z){(0,k.Z)(function(){if(c&&p&&r){let Ce=function(){S(),z()};var G=p,j=r,_=J(G),oe=J(j),U=L(j),re=new Set([U].concat((0,Re.Z)(_),(0,Re.Z)(oe)));return re.forEach(function($e){$e.addEventListener("scroll",Ce,{passive:!0})}),U.addEventListener("resize",Ce,{passive:!0}),S(),function(){re.forEach(function($e){$e.removeEventListener("scroll",Ce),U.removeEventListener("resize",Ce)})}}},[c,p,r])}var Me=e(48736),be=e(16089);function Pe(c,p,r,S,z,G,j,_){var oe=b.useRef(c),U=b.useRef(!1);oe.current!==c&&(U.current=!0,oe.current=c),b.useEffect(function(){var re=(0,be.Z)(function(){U.current=!1});return function(){be.Z.cancel(re)}},[c]),b.useEffect(function(){if(p&&S&&(!z||G)){var re=function(){var Ke=!1,It=function(et){var Ge=et.target;Ke=j(Ge)},Ht=function(et){var Ge=et.target;!U.current&&oe.current&&!Ke&&!j(Ge)&&_(!1)};return[It,Ht]},Ce=re(),$e=(0,v.Z)(Ce,2),q=$e[0],Oe=$e[1],ze=re(),De=(0,v.Z)(ze,2),Ze=De[0],_e=De[1],Ue=L(S);Ue.addEventListener("mousedown",q,!0),Ue.addEventListener("click",Oe,!0),Ue.addEventListener("contextmenu",Oe,!0);var ce=(0,H.A)(r);if(ce&&(ce.addEventListener("mousedown",Ze,!0),ce.addEventListener("click",_e,!0),ce.addEventListener("contextmenu",_e,!0)),0)var Rt,vt,mt,rt;return function(){Ue.removeEventListener("mousedown",q,!0),Ue.removeEventListener("click",Oe,!0),Ue.removeEventListener("contextmenu",Oe,!0),ce&&(ce.removeEventListener("mousedown",Ze,!0),ce.removeEventListener("click",_e,!0),ce.removeEventListener("contextmenu",_e,!0))}}},[p,r,S,z,G])}var Ee=["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 ke(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:W.Z,p=b.forwardRef(function(r,S){var z=r.prefixCls,G=z===void 0?"rc-trigger-popup":z,j=r.children,_=r.action,oe=_===void 0?"hover":_,U=r.showAction,re=r.hideAction,Ce=r.popupVisible,$e=r.defaultPopupVisible,q=r.onPopupVisibleChange,Oe=r.afterPopupVisibleChange,ze=r.mouseEnterDelay,De=r.mouseLeaveDelay,Ze=De===void 0?.1:De,_e=r.focusDelay,Ue=r.blurDelay,ce=r.mask,Rt=r.maskClosable,vt=Rt===void 0?!0:Rt,mt=r.getPopupContainer,rt=r.forceRender,xt=r.autoDestroy,Ke=r.destroyPopupOnHide,It=r.popup,Ht=r.popupClassName,Tt=r.popupStyle,et=r.popupPlacement,Ge=r.builtinPlacements,qe=Ge===void 0?{}:Ge,yt=r.popupAlign,We=r.zIndex,Mt=r.stretch,ht=r.getPopupClassNameFromAlign,Ot=r.fresh,Dt=r.alignPoint,at=r.onPopupClick,mn=r.onPopupAlign,kt=r.arrow,ot=r.popupMotion,V=r.maskMotion,pe=r.popupTransitionName,Se=r.popupAnimation,le=r.maskTransitionName,Je=r.maskAnimation,Fe=r.className,ut=r.getTriggerDOMNode,Ye=(0,x.Z)(r,Ee),bt=xt||Ke||!1,tn=b.useState(!1),Jt=(0,v.Z)(tn,2),an=Jt[0],it=Jt[1];(0,k.Z)(function(){it((0,t.Z)())},[]);var un=b.useRef({}),Bt=b.useContext(ue),Pn=b.useMemo(function(){return{registerSubPopup:function(Ie,Nt){un.current[Ie]=Nt,Bt==null||Bt.registerSubPopup(Ie,Nt)}}},[Bt]),on=(0,te.Z)(),he=b.useState(null),Ne=(0,v.Z)(he,2),Le=Ne[0],Vt=Ne[1],Tn=(0,X.Z)(function(de){(0,g.Sh)(de)&&Le!==de&&Vt(de),Bt==null||Bt.registerSubPopup(on,de)}),Ft=b.useState(null),we=(0,v.Z)(Ft,2),i=we[0],d=we[1],R=b.useRef(null),A=(0,X.Z)(function(de){(0,g.Sh)(de)&&i!==de&&(d(de),R.current=de)}),C=b.Children.only(j),K=(C==null?void 0:C.props)||{},F={},ye=(0,X.Z)(function(de){var Ie,Nt,Kt=i;return(Kt==null?void 0:Kt.contains(de))||((Ie=(0,H.A)(Kt))===null||Ie===void 0?void 0:Ie.host)===de||de===Kt||(Le==null?void 0:Le.contains(de))||((Nt=(0,H.A)(Le))===null||Nt===void 0?void 0:Nt.host)===de||de===Le||Object.values(un.current).some(function(pt){return(pt==null?void 0:pt.contains(de))||de===pt})}),Ae=y(G,ot,Se,pe),ge=y(G,V,Je,le),ct=b.useState($e||!1),He=(0,v.Z)(ct,2),tt=He[0],Be=He[1],ve=Ce!=null?Ce:tt,dt=(0,X.Z)(function(de){Ce===void 0&&Be(de)});(0,k.Z)(function(){Be(Ce||!1)},[Ce]);var st=b.useRef(ve);st.current=ve;var Ct=b.useRef([]);Ct.current=[];var lt=(0,X.Z)(function(de){var Ie;dt(de),((Ie=Ct.current[Ct.current.length-1])!==null&&Ie!==void 0?Ie:ve)!==de&&(Ct.current.push(de),q==null||q(de))}),Qe=b.useRef(),Xe=function(){clearTimeout(Qe.current)},Ve=function(Ie){var Nt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Xe(),Nt===0?lt(Ie):Qe.current=setTimeout(function(){lt(Ie)},Nt*1e3)};b.useEffect(function(){return Xe},[]);var gt=b.useState(!1),Lt=(0,v.Z)(gt,2),ft=Lt[0],nn=Lt[1];(0,k.Z)(function(de){(!de||ve)&&nn(!0)},[ve]);var St=b.useState(null),zt=(0,v.Z)(St,2),Pt=zt[0],Zt=zt[1],Ut=b.useState([0,0]),Yt=(0,v.Z)(Ut,2),cn=Yt[0],_t=Yt[1],Gt=function(Ie){_t([Ie.clientX,Ie.clientY])},dn=ie(ve,Le,Dt?cn:i,et,qe,yt,mn),Et=(0,v.Z)(dn,11),wn=Et[0],$n=Et[1],Cn=Et[2],xn=Et[3],fn=Et[4],Xt=Et[5],ln=Et[6],hn=Et[7],Rn=Et[8],gn=Et[9],$t=Et[10],Qt=Z(an,oe,U,re),vn=(0,v.Z)(Qt,2),In=vn[0],sn=vn[1],On=In.has("click"),Mn=sn.has("click")||sn.has("contextMenu"),Dn=(0,X.Z)(function(){ft||$t()}),jn=function(){st.current&&Dt&&Mn&&Ve(!1)};Te(ve,i,Le,Dn,jn),(0,k.Z)(function(){Dn()},[cn,et]),(0,k.Z)(function(){ve&&!(qe!=null&&qe[et])&&Dn()},[JSON.stringify(yt)]);var Bn=b.useMemo(function(){var de=f(qe,G,gn,Dt);return E()(de,ht==null?void 0:ht(gn))},[gn,ht,qe,G,Dt]);b.useImperativeHandle(S,function(){return{nativeElement:R.current,forceAlign:Dn}});var Kn=b.useState(0),Fn=(0,v.Z)(Kn,2),pn=Fn[0],Hn=Fn[1],Ln=b.useState(0),zn=(0,v.Z)(Ln,2),Vn=zn[0],Nn=zn[1],An=function(){if(Mt&&i){var Ie=i.getBoundingClientRect();Hn(Ie.width),Nn(Ie.height)}},_n=function(){An(),Dn()},qt=function(Ie){nn(!1),$t(),Oe==null||Oe(Ie)},Zn=function(){return new Promise(function(Ie){An(),Zt(function(){return Ie})})};(0,k.Z)(function(){Pt&&($t(),Pt(),Zt(null))},[Pt]);function jt(de,Ie,Nt,Kt){F[de]=function(pt){var Yn;Kt==null||Kt(pt),Ve(Ie,Nt);for(var er=arguments.length,tr=new Array(er>1?er-1:0),Qn=1;Qn<er;Qn++)tr[Qn-1]=arguments[Qn];(Yn=K[de])===null||Yn===void 0||Yn.call.apply(Yn,[K,pt].concat(tr))}}(On||Mn)&&(F.onClick=function(de){var Ie;st.current&&Mn?Ve(!1):!st.current&&On&&(Gt(de),Ve(!0));for(var Nt=arguments.length,Kt=new Array(Nt>1?Nt-1:0),pt=1;pt<Nt;pt++)Kt[pt-1]=arguments[pt];(Ie=K.onClick)===null||Ie===void 0||Ie.call.apply(Ie,[K,de].concat(Kt))}),Pe(ve,Mn,i,Le,ce,vt,ye,Ve);var yn=In.has("hover"),bn=sn.has("hover"),rn,en;yn&&(jt("onMouseEnter",!0,ze,function(de){Gt(de)}),jt("onPointerEnter",!0,ze,function(de){Gt(de)}),rn=function(Ie){(ve||ft)&&Le!==null&&Le!==void 0&&Le.contains(Ie.target)&&Ve(!0,ze)},Dt&&(F.onMouseMove=function(de){var Ie;(Ie=K.onMouseMove)===null||Ie===void 0||Ie.call(K,de)})),bn&&(jt("onMouseLeave",!1,Ze),jt("onPointerLeave",!1,Ze),en=function(){Ve(!1,Ze)}),In.has("focus")&&jt("onFocus",!0,_e),sn.has("focus")&&jt("onBlur",!1,Ue),In.has("contextMenu")&&(F.onContextMenu=function(de){var Ie;st.current&&sn.has("contextMenu")?Ve(!1):(Gt(de),Ve(!0)),de.preventDefault();for(var Nt=arguments.length,Kt=new Array(Nt>1?Nt-1:0),pt=1;pt<Nt;pt++)Kt[pt-1]=arguments[pt];(Ie=K.onContextMenu)===null||Ie===void 0||Ie.call.apply(Ie,[K,de].concat(Kt))}),Fe&&(F.className=E()(K.className,Fe));var kn=(0,a.Z)((0,a.Z)({},K),F),Xn={},Un=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];Un.forEach(function(de){Ye[de]&&(Xn[de]=function(){for(var Ie,Nt=arguments.length,Kt=new Array(Nt),pt=0;pt<Nt;pt++)Kt[pt]=arguments[pt];(Ie=kn[de])===null||Ie===void 0||Ie.call.apply(Ie,[kn].concat(Kt)),Ye[de].apply(Ye,Kt)})});var qn=b.cloneElement(C,(0,a.Z)((0,a.Z)({},kn),Xn)),Jn={x:Xt,y:ln},Wn=kt?(0,a.Z)({},kt!==!0?kt:{}):null;return b.createElement(b.Fragment,null,b.createElement(m.Z,{disabled:!ve,ref:A,onResize:_n},b.createElement(N,{getTriggerDOMNode:ut},qn)),b.createElement(ue.Provider,{value:Pn},b.createElement(o,{portal:c,ref:Tn,prefixCls:G,popup:It,className:E()(Ht,Bn),style:Tt,target:i,onMouseEnter:rn,onMouseLeave:en,onPointerEnter:rn,zIndex:We,open:ve,keepDom:ft,fresh:Ot,onClick:at,mask:ce,motion:Ae,maskMotion:ge,onVisibleChanged:qt,onPrepare:Zn,forceRender:rt,autoDestroy:bt,getPopupContainer:mt,align:gn,arrow:Wn,arrowPos:Jn,ready:wn,offsetX:$n,offsetY:Cn,offsetR:xn,offsetB:fn,onAlign:Dn,stretch:Mt,targetWidth:pn/hn,targetHeight:Vn/Rn})))});return p}var je=ke(W.Z)},7985:function(nt,ee,e){"use strict";e.r(ee),e.d(ee,{default:function(){return c}});var a=e(59301),v=e(43418),x=e(8591),W=e(6848),w=e(3113),E=e(38854),m=e(20834),g=e(61621),H=e(1710),X=e(92832),te=e(99064),k=e(56102),t=e(61186),b=e.n(t),ne={flex_box_center:"flex_box_center___OlPSp",flex_space_between:"flex_space_between___KkPbx",flex_box_vertical_center:"flex_box_vertical_center___KVecw",flex_box_center_end:"flex_box_center_end___ZpIiz",flex_box_column:"flex_box_column___jk6z8",dataset:"dataset___EWyxe",header:"header___aM2c3",title:"title___c92tE",dataPath:"dataPath___hR2oE",pathTitle:"pathTitle___lA24d",btns:"btns___L47EI",content:"content___iGSa4",customTable:"customTable___We1tC",row:"row___EMu5M",empty:"empty___Io3vW",path:"path___IYNlu",text:"text___HhYbW",actionsBtns:"actionsBtns___KcxrW",customModal:"customModal___isSND",shareModal:"shareModal___ZorcK",fileName:"fileName___yUGQj",renameModal:"renameModal___ODCRw",errorDes:"errorDes___hLKEg",uploadFileModal:"uploadFileModal___UhbYF",selectBtn:"selectBtn___A01cC",leftButton:"leftButton___hENTE",rightButton:"rightButton___NGqI4",centerText:"centerText___RgV3e"},Q=e(3294),fe=e(54580),se=e(78241),O={wrap:"wrap___ytjd0",colorBlue:"colorBlue___oqpSc",repeatedName:"repeatedName___fikl_"},P=e(81939),$=e(955),n=Object.defineProperty,o=Object.defineProperties,D=Object.getOwnPropertyDescriptors,N=Object.getOwnPropertySymbols,me=Object.prototype.hasOwnProperty,ue=Object.prototype.propertyIsEnumerable,xe=(p,r,S)=>r in p?n(p,r,{enumerable:!0,configurable:!0,writable:!0,value:S}):p[r]=S,Z=(p,r)=>{for(var S in r||(r={}))me.call(r,S)&&xe(p,S,r[S]);if(N)for(var S of N(r))ue.call(r,S)&&xe(p,S,r[S]);return p},s=(p,r)=>o(p,D(r)),l=(p,r,S)=>new Promise((z,G)=>{var j=U=>{try{oe(S.next(U))}catch(re){G(re)}},_=U=>{try{oe(S.throw(U))}catch(re){G(re)}},oe=U=>U.done?z(U.value):Promise.resolve(U.value).then(j,_);oe((S=S.apply(p,r)).next())});const{Dragger:f}=fe.default;var L=({dispatch:p,id:r,onClose:S,onOK:z,visible:G,wrapClassName:j,local:_,containerId:oe,rootIdentifier:U})=>{var re;const[Ce,$e]=(0,a.useState)({}),[q,Oe]=(0,a.useState)([]),[ze,De]=(0,a.useState)([]),[Ze,_e]=(0,a.useState)(0),[Ue,ce]=(0,a.useState)(!1),[Rt,vt]=(0,a.useState)(!1),[mt]=se.default.useForm(),[rt,xt]=(0,a.useState)([]),Ke=(0,a.useRef)([]);(0,a.useEffect)(()=>{G&&(mt.resetFields(),xt([]),De([]),Oe([]),_e(0),vt(!1),ce(!1))},[G]);const It=V=>{var pe,Se,le;if(V.file.status==="done"||V.file.status==="uploading"){if(xt(V.fileList),!V.file.response)return;if((pe=V.file.response)!=null&&pe.id){x.ZP.success("\u4E0A\u4F20\u6210\u529F\uFF01");return}xt(rt.filter(Je=>Je.uid!==V.file.uid)),(Se=V.file.response)!=null&&Se.message&&x.ZP.info((le=V.file.response)==null?void 0:le.message)}},Ht=V=>l(void 0,null,function*(){var pe;if(!Ze){const le=rt.filter(Je=>Je.uid!==V.uid);xt(le),Ke.current=[...le],Oe(q.filter(Je=>Je!==V.name)),x.ZP.info("\u5220\u9664\u6210\u529F"),le.length||(mt.setFieldsValue({file:void 0}),mt.validateFields());return}if(!V.response){x.ZP.info("\u8FD8\u672A\u4E0A\u4F20\u5B8C\u6210\uFF0C\u65E0\u6CD5\u8FDB\u884C\u5220\u9664\u64CD\u4F5C\uFF01");return}(yield(0,te.ZP)(`/api/shixuns/${r}/destroy_data_sets.json`,{method:"Delete",body:{id:[(pe=V==null?void 0:V.response)==null?void 0:pe.id]}})).status===0&&(xt(rt.filter(le=>le.uid!==V.uid)),x.ZP.info("\u5220\u9664\u6210\u529F"))}),Tt=V=>{if(rt!=null&&rt.some(Se=>Se.name===V.name))return x.ZP.info(`${V.name}\u6587\u4EF6\u5DF2\u5B58\u5728`),!1;if(V.size/1024/1024>500)return x.ZP.info("\u6587\u4EF6\u8D85\u8FC7500M\uFF0C\u4E0D\u7B26\u5408\u4E0A\u4F20\u8981\u6C42"),!1;const pe={name:V.name,uid:V.uid,file:V,percent:0};return rt.push(pe),Ke.current=[...rt],xt([...rt]),!1},et={height:300,multiple:!0,disabled:Ze>0,withCredentials:!0,fileList:rt,action:`${Q.Z.API_SERVER}/api/attachments.json`,onChange:It,onRemove:Ht,beforeUpload:Tt},Ge=(V,pe,Se,le,Je)=>{const Fe=new FormData;Object.keys(V).forEach(Ye=>{Fe.append(Ye,V[Ye])});const ut=new window.XMLHttpRequest;return ut.withCredentials=!0,ut.addEventListener("load",function(Ye){var bt;Se(JSON.parse((bt=Ye==null?void 0:Ye.target)==null?void 0:bt.response))},!1),ut.addEventListener("error",function(Ye){Je&&Je(Ye)},!1),ut.upload.onprogress=Ye=>{le&&le(Ye)},ut.open("POST",pe),ut.send(Fe),ut},qe=(V,pe)=>{if(V.lengthComputable){const Se=Math.floor(V.loaded/V.total*100),le=s(Z({},pe),{percent:Se,status:Se===100?"done":"uploading"});console.log(Ke.current,333),Ke.current=Ke.current.map(Je=>Je.uid===pe.uid?le:Je),xt(Ke.current)}},yt=(V,pe)=>{const Se=s(Z({},pe),{status:"error"});x.ZP.warning("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u5C1D\u8BD5"),Ke.current=Ke.current.map(le=>le.uid===pe.uid?Se:le),Ke.current.every(le=>le.status==="done"||le.status==="error")&&(vt(!1),_e(2)),xt(Ke.current)},We=(V,pe)=>{let Se=s(Z({},pe),{status:"done"});if(V.status===0||(Se=s(Z({},pe),{status:"error"}),x.ZP.error("\u4E0A\u4F20\u5931\u8D25!")),Ke.current=Ke.current.map(le=>le.uid===pe.uid?Se:le),Ke.current.every(le=>le.status==="done")){x.ZP.success("\u4E0A\u4F20\u5B8C\u6210!"),at(!0);return}Ke.current.every(le=>le.status==="done"||le.status==="error")&&(vt(!1),_e(2)),xt(Ke.current)},Mt=()=>{let V=!0;return window.navigator.onLine==!0?V=!0:V=!1,V},ht=V=>l(void 0,null,function*(){if(vt(!0),Ze===3){_e(2);return}if(Ze===2||Ze===1){Ot();return}const{commitMessage:pe="",fileOss:Se=[]}=V||{},Je=(_?rt:Se).map(ut=>ut.name);if(Je.filter(ut=>ut.indexOf("\u3001")!=-1||ut.indexOf(" ")!=-1).length>0){x.ZP.info("\u6570\u636E\u96C6\u540D\u79F0\u7981\u6B62\u6709\u7A7A\u683C\u4E0E\u3001"),vt(!1);return}const Fe=yield(0,te.ZP)(`/api/shixuns/${r}/check_data_sets`,{method:"post",body:{files_name:Je}});if(Fe.status===-3){Oe(Fe==null?void 0:Fe.exist_files),vt(!1);return}if(JSON.stringify(Fe)==="{}"){vt(!1),x.ZP.error("\u7F51\u7EDC\u5DF2\u65AD\u5F00,\u8BF7\u7A0D\u540E\u91CD\u8BD5!");return}Fe.status===0&&(rt.forEach(ut=>{const Ye=Ge({file:ut.file,description:pe},`${Q.Z.API_SERVER}/api/shixuns/${r}/upload_data_sets.json`,bt=>We(bt,ut),bt=>qe(bt,ut),bt=>yt(bt,ut));ze.push(Ye)}),_e(1))}),Ot=()=>{const{commitMessage:V=""}=Z({},mt.getFieldsValue())||{},pe=Ke.current.filter(le=>le.status==="error"),Se=Ke.current.map(le=>s(Z({},le),{status:le.status==="error"?"uploading":le.status}));xt(Se),pe.forEach(le=>{const Je=Ge({file:le.file,description:V},`${Q.Z.API_SERVER}/api/shixuns/${r}/upload_data_sets.json`,Fe=>We(Fe,le),Fe=>qe(Fe,le),Fe=>yt(Fe,le));ze.push(Je)})},Dt=V=>{var pe,Se;if(console.log(V,"changedValues"),"fileOss"in V){if(V!=null&&V.fileOss.every(le=>le.status==="done")&&((pe=V==null?void 0:V.fileOss)!=null&&pe.length)){x.ZP.success("\u4E0A\u4F20\u5B8C\u6210!"),at(!0);return}if(V!=null&&V.fileOss.every(le=>le.status==="done"||le.status==="error")&&((Se=V==null?void 0:V.fileOss)!=null&&Se.length)){_e(3),vt(!1);return}Oe(q.filter(le=>{var Je;return(Je=V==null?void 0:V.fileOss)==null?void 0:Je.some(Fe=>Fe.name===le)}))}$e(Z({},mt.getFieldsValue()))},at=V=>{V||(ce(!0),ze.forEach(pe=>{pe.abort()})),z(),S()},mn=()=>{const{fileOss:V=[]}=Z({},mt.getFieldsValue())||{},pe=rt==null?void 0:rt.every(le=>le.status==="done"),Se=V==null?void 0:V.every(le=>le.status==="done");if(!pe||!Se){v.default.confirm({title:"\u5173\u95ED\u5F39\u6846\u63D0\u793A",content:"\u6709\u6587\u4EF6\u672A\u4E0A\u4F20,\u662F\u5426\u786E\u5B9A\u79BB\u5F00\uFF1F",okText:"\u79BB\u5F00",cancelText:"\u53D6\u6D88",onOk:()=>{at()}});return}at()},kt=()=>a.createElement(a.Fragment,null,a.createElement("div",null,a.createElement("i",{className:`iconfont icon-shangchuan font50 ${O.colorBlue}`})),a.createElement("div",{className:"font14 mt30"},"\u62D6\u62FD\u6587\u4EF6\u6216",a.createElement("span",{className:`${O.colorBlue} ml5`},"\u70B9\u51FB\u6B64\u5904\u4E0A\u4F20"))),ot=V=>{console.log(V,444)};return a.createElement(v.default,{open:G,onOk:()=>{(0,$.L9)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u6570\u636E\u96C6","\u4E0A\u4F20\u6587\u4EF6"]),mt.submit()},centered:!0,okText:Ze===0?"\u786E\u5B9A":Ze===1?"\u4E0A\u4F20\u4E2D":"\u91CD\u65B0\u4E0A\u4F20",okButtonProps:{loading:Rt},onCancel:mn,width:"1000px",title:"\u4E0A\u4F20\u6587\u4EF6"},a.createElement("div",{className:O.wrap},a.createElement(se.default,{className:"mt10",form:mt,scrollToFirstError:!0,layout:"vertical",onFinish:ht,onValuesChange:Dt},_?a.createElement(se.default.Item,{label:a.createElement("div",null,"\u9009\u62E9\u6587\u4EF6 ",a.createElement("span",{className:"c-light-black"},"(\u5355\u4E2A\u6587\u4EF6\u4E0D\u8D85\u8FC7500M)")),name:"file",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u6587\u4EF6"}]},a.createElement(f,Z({},et)," ",kt())):a.createElement(se.default.Item,{label:a.createElement("div",null,"\u9009\u62E9\u6587\u4EF6 ",a.createElement("span",{className:"c-light-black"},"(\u5355\u4E2A\u6587\u4EF6\u4E0D\u8D85\u8FC7100GB)")),name:"fileOss",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u6587\u4EF6"}]},a.createElement(P.ZP,{identifier:U,cancelUpload:Ue,container_type:"Shixun",container_id:oe,uploading:Ze<3?Ze:0,disabled:Ze>0,height:300,maxSize:100*1024*1024*1024,description:Ce.commitMessage||"",text:kt(),onComplete:ot,realFileName:!0})),!!q.length&&a.createElement("span",{className:O.repeatedName},q.join("\u3001"),"\u5DF2\u5B58\u5728,\u8BF7\u5220\u9664\u540E\u518D\u4E0A\u4F20"),a.createElement(se.default.Item,{name:"commitMessage",label:"\u5907\u6CE8:",rules:[{whitespace:!0,message:"\u8BF7\u52FF\u8F93\u5165\u7A7A\u683C"}]},a.createElement(X.default,{bordered:!1,disabled:Ze>0,maxLength:100,suffix:`${((re=Ce.commitMessage)==null?void 0:re.length)||0}/100`,placeholder:"\u8BF7\u586B\u5199\u5907\u6CE8\u4FE1\u606F"})))))},J=e(89392),h=e(79219),Y=e(89070),T=e(31708),I=e(19683),u=e(59301),M=Object.defineProperty,B=Object.defineProperties,ae=Object.getOwnPropertyDescriptors,ie=Object.getOwnPropertySymbols,Re=Object.prototype.hasOwnProperty,Te=Object.prototype.propertyIsEnumerable,Me=(p,r,S)=>r in p?M(p,r,{enumerable:!0,configurable:!0,writable:!0,value:S}):p[r]=S,be=(p,r)=>{for(var S in r||(r={}))Re.call(r,S)&&Me(p,S,r[S]);if(ie)for(var S of ie(r))Te.call(r,S)&&Me(p,S,r[S]);return p},Pe=(p,r)=>B(p,ae(r)),Ee=(p,r)=>{var S={};for(var z in p)Re.call(p,z)&&r.indexOf(z)<0&&(S[z]=p[z]);if(p!=null&&ie)for(var z of ie(p))r.indexOf(z)<0&&Te.call(p,z)&&(S[z]=p[z]);return S},ke=(p,r,S)=>new Promise((z,G)=>{var j=U=>{try{oe(S.next(U))}catch(re){G(re)}},_=U=>{try{oe(S.throw(U))}catch(re){G(re)}},oe=U=>U.done?z(U.value):Promise.resolve(U.value).then(j,_);oe((S=S.apply(p,r)).next())});const je=p=>{var r=p,{globalSetting:S,dispatch:z,practiceSetting:G,shixunsDetail:j,user:_}=r,oe=Ee(r,["globalSetting","dispatch","practiceSetting","shixunsDetail","user"]),U,re,Ce,$e,q,Oe,ze;const[De,Ze]=(0,a.useState)((re=(U=location.pathname)==null?void 0:U.split("/"))==null?void 0:re[2]),[_e,Ue]=(0,a.useState)([]),[ce,Rt]=(0,a.useState)({}),[vt,mt]=(0,a.useState)(!1),[rt,xt]=(0,a.useState)(!1),[Ke,It]=(0,a.useState)(!1),[Ht,Tt]=(0,a.useState)(!1),[et,Ge]=(0,a.useState)(!1),[qe,yt]=(0,a.useState)(!1),[We,Mt]=(0,a.useState)("all"),[ht,Ot]=(0,a.useState)([]),[Dt,at]=(0,a.useState)([]),[mn,kt]=(0,a.useState)(!1),[ot,V]=(0,a.useState)({}),[pe,Se]=(0,a.useState)(!1),[le,Je]=(0,a.useState)([]),[Fe,ut]=(0,a.useState)({page:1,limit:10,total:0});(0,a.useEffect)(()=>{bt()},[De]);const Ye=he=>{const Ne=Pe(be({},Fe),{page:he});at([]),ut(Ne),bt(Ne)},bt=he=>ke(void 0,null,function*(){const Le=he||{page:1,limit:10,total:0};mt(!0);const Vt=yield z({type:"shixunsDetail/getSetData",payload:Pe(be({},Le),{id:De})});Vt!=null&&Vt.data_sets&&(mt(!1),Ue([...Vt.data_sets]),ut(Pe(be({},Le),{total:Vt==null?void 0:Vt.data_sets_count})),xt(!1),Rt(be({},Vt)))}),tn=()=>u.createElement("div",{className:ne.empty},u.createElement("img",{src:h.x7,width:"258"}),u.createElement("span",{className:"c-grey-c"},"\u6682\u65E0\u6570\u636E\u96C6\u6587\u4EF6~")),an={selectedRowKeys:Dt,columnWidth:70,onChange:he=>{console.log("selectedRowKeys changed: ",he),at(he)}},it=he=>{(0,$.L9)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u6570\u636E\u96C6","\u5220\u9664"]);const Ne=he?[he]:Dt;v.default.confirm({centered:!0,title:"\u786E\u5B9A\u8981\u5220\u9664\u6587\u4EF6\u5417\uFF1F",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:()=>ke(void 0,null,function*(){if((yield(0,te.ZP)(`/api/shixuns/${De}/destroy_data_sets.json`,{method:"Delete",body:{id:Ne}})).status===0){const Vt=Ne.length===_e.length&&Fe.page>1?Fe.page-1:Fe.page;x.ZP.success("\u5220\u9664\u6210\u529F"),bt(Pe(be({},Fe),{page:Vt})),at([])}})})},un=()=>ke(void 0,null,function*(){const{title:he}=ot;let Ne=null;if(he===""){Ne="\u6587\u4EF6\u540D\u4E0D\u80FD\u4E3A\u7A7A",V(Pe(be({},ot),{errorDes:Ne}));return}if(he.includes(" ")){Ne="\u6587\u4EF6\u540D\u4E0D\u80FD\u6709\u7A7A\u683C",V(Pe(be({},ot),{errorDes:Ne}));return}const Le=_e.find(Ft=>Ft.id===(ot==null?void 0:ot.id)).title;if(he===Le.substring(0,Le.lastIndexOf("."))||he===Le){Ne="\u6587\u4EF6\u540D\u4E0D\u80FD\u91CD\u540D",V(Pe(be({},ot),{errorDes:Ne}));return}const Vt=Le.includes(".")?Le.substring(Le.lastIndexOf("."),Le.length):"";(yield(0,te.ZP)(`/api/shixuns/${De}/rename_data_sets.json`,{method:"post",body:{id:ot==null?void 0:ot.id,new_file_name:he+Vt}})).status===0&&(x.ZP.success("\u91CD\u547D\u540D\u6210\u529F"),bt(Fe),It(!1),V({}))}),Bt=()=>{const{download_url:he}=ot;Pn(he),x.ZP.success("\u590D\u5236\u6210\u529F"),Tt(!1),V({})},Pn=he=>{const Ne=he,Le=document.createElement("input");Le.value=Ne,document.body.appendChild(Le),Le.select(),document.execCommand("Copy"),Le.style.display="none"},on=[{title:"\u6587\u4EF6",dataIndex:"title",key:"title",align:"left",ellipsis:!0,render:he=>u.createElement(W.Z,{title:he},u.createElement("span",null,he))},{title:"\u6570\u636E\u96C6\u6765\u6E90",dataIndex:"data_set_title",key:"data_set_title",align:"left",ellipsis:!0,render:(he,Ne)=>Ne!=null&&Ne.data_set_id?u.createElement(W.Z,{title:he},u.createElement("span",{style:{color:"#0152d9",cursor:"pointer"},onClick:()=>{(0,$.xg)(`/dataset/${Ne==null?void 0:Ne.data_set_id}/detail?tabId=public`)}},he)):"--"},{title:"\u5907\u6CE8",dataIndex:"description",key:"description",align:"left",ellipsis:!0,render:he=>u.createElement(W.Z,{title:he},u.createElement("span",null,he||"--"))},{title:"\u521B\u5EFA\u65F6\u95F4",dataIndex:"created_on",key:"created_on",align:"left",width:180,render:(he,Ne)=>b()(Ne.created_on).format("YYYY-MM-DD HH:mm")},{title:"\u6587\u4EF6\u8DEF\u5F84",dataIndex:"file_path",key:"file_path",align:"left",render:(he,Ne)=>u.createElement("div",{className:ne.path},u.createElement(W.Z,{title:he},u.createElement("span",{className:ne.text},he)),u.createElement(k.CopyToClipboard,{text:he,onCopy:()=>x.ZP.success("\u590D\u5236\u6210\u529F")},u.createElement(W.Z,{title:"\u590D\u5236"},u.createElement("i",{className:"iconfont icon-fuzhi6 ml5"}))))},{title:"\u6700\u540E\u4FEE\u6539\u4EBA",dataIndex:"author",key:"author",align:"left",width:120},{title:"\u6587\u4EF6\u5927\u5C0F",dataIndex:"filesize",key:"filesize",align:"left",width:100},{title:"\u64CD\u4F5C",dataIndex:"operation",key:"operation",align:"left",width:200,render:(he,Ne)=>u.createElement("div",{className:ne.actionsBtns},u.createElement(W.Z,{title:"\u91CD\u547D\u540D"},u.createElement("span",{className:"iconfont icon-zhongmingming",onClick:()=>{var Le;V((0,J.clone)(Pe(be({},Ne),{title:Ne!=null&&Ne.title.includes(".")?(Le=Ne==null?void 0:Ne.title)==null?void 0:Le.substring(0,Ne.title.lastIndexOf(".")):Ne==null?void 0:Ne.title}))),It(!0),(0,$.L9)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u6570\u636E\u96C6","\u91CD\u547D\u540D"])}})),u.createElement(W.Z,{title:"\u5206\u4EAB"},u.createElement("span",{className:"iconfont icon-fenxiang",onClick:()=>{(0,$.L9)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u6570\u636E\u96C6","\u5206\u4EAB"]),V((0,J.clone)(Ne)),Tt(!0)}})),u.createElement(W.Z,{title:"\u4E0B\u8F7D"},u.createElement("span",{className:"iconfont icon-xiazai3",onClick:()=>{(0,$.L9)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u6570\u636E\u96C6","\u4E0B\u8F7D"]),(0,$.Nd)(Ne.title,Ne==null?void 0:Ne.download_url)}})),u.createElement(W.Z,{title:"\u540C\u6B65\u5230\u4E2A\u4EBA\u6570\u636E\u96C6\u4E2D"},u.createElement("span",{className:"iconfont icon-tongbushuju",onClick:()=>{(0,$.L9)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u6570\u636E\u96C6","\u540C\u6B65"]),yt(!0),Je([Ne]),Ot([Ne.id])}})),u.createElement(W.Z,{title:"\u5220\u9664"},u.createElement("span",{className:"iconfont icon-shanchu8",onClick:()=>{(0,$.L9)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u6570\u636E\u96C6","\u5220\u9664"]),it(Ne.id)}})))}];return u.createElement("div",{className:ne.dataset},u.createElement("div",{className:ne.header},u.createElement("div",{className:ne.title},"\u6570\u636E\u96C6(",Fe.total,")"),u.createElement("div",{className:ne.dataPath},u.createElement("span",{className:ne.pathTitle},"\u6570\u636E\u96C6\u8DEF\u5F84:"),u.createElement("input",{value:ce==null?void 0:ce.folder_name,disabled:!0}),u.createElement(k.CopyToClipboard,{text:ce==null?void 0:ce.folder_name,onCopy:()=>x.ZP.success("\u590D\u5236\u6210\u529F")},u.createElement(W.Z,{placement:"topLeft",title:"\u70B9\u51FB\u590D\u5236\u6570\u636E\u96C6\u8DEF\u5F84"},u.createElement("i",{className:"iconfont icon-fuzhi2 current ml5 mr40"})))),u.createElement("div",{className:ne.btns},u.createElement(w.ZP,{type:"primary",ghost:!0,onClick:()=>it(),disabled:!Dt.length,style:{width:"60px"}},"\u5220\u9664"),u.createElement(w.ZP,{type:"primary",className:"ml10",style:{width:"60px"},ghost:!0,onClick:()=>{yt(!0),Ot(Dt),Je(_e.filter(he=>Dt.includes(he.id)))},disabled:!Dt.length},"\u540C\u6B65"),u.createElement(E.Z,{className:"ml10",disabled:((Ce=_==null?void 0:_.userInfo)==null?void 0:Ce.user_status)===2,dropdownRender:()=>u.createElement(m.default,null,u.createElement(m.default.Item,{key:1,onClick:()=>{kt(!0)}},"\u4E0A\u4F20\u6570\u636E\u96C6"),u.createElement(m.default.Item,{key:2,onClick:()=>{Ge(!0),Mt("all")}},"\u9009\u62E9\u6570\u636E\u96C6"))},u.createElement("span",{className:ne.selectBtn},u.createElement("span",null,"\u589E\u52A0\u6570\u636E\u96C6"))))),u.createElement("div",{className:ne.content},u.createElement(g.Z,{loading:rt,active:!0,paragraph:{rows:5}},Fe.total?u.createElement(H.default,{rowSelection:an,className:ne.customTable,dataSource:_e,bordered:!1,rowKey:he=>he.id,rowClassName:ne.row,columns:on,loading:vt,pagination:{pageSize:Fe.limit,total:Fe.total,current:Fe.page,onChange:Ye,showQuickJumper:!0,hideOnSinglePage:!0,position:["bottomCenter"]}}):tn())),u.createElement(L,{rootIdentifier:($e=j==null?void 0:j.detail)==null?void 0:$e.root_identifier,wrapClassName:ne.uploadFileModal,id:De,containerId:(q=j==null?void 0:j.detail)==null?void 0:q.id,local:(Oe=S==null?void 0:S.setting)==null?void 0:Oe.is_local,dispatch:z,visible:mn,onClose:()=>kt(!1),onOK:bt}),u.createElement(v.default,{title:"\u91CD\u547D\u540D",open:Ke,onOk:un,centered:!0,wrapClassName:ne.renameModal,onCancel:()=>{It(!1),V({})},width:"1000px"},u.createElement("div",null,u.createElement("div",{className:ne.fileName},u.createElement("sup",null,"*"),"\u6587\u4EF6\u540D\xA0:"),u.createElement(X.default,{value:ot==null?void 0:ot.title,placeholder:"\u8BF7\u8F93\u5165\u6587\u4EF6\u540D\u5B57",bordered:!1,onChange:he=>{V(Pe(be({},ot),{title:he.target.value,errorDes:null}))},maxLength:60,suffix:`${((ze=ot==null?void 0:ot.title)==null?void 0:ze.length)||0}/60`}),(ot==null?void 0:ot.errorDes)&&u.createElement("div",{className:ne.errorDes},ot==null?void 0:ot.errorDes))),u.createElement(v.default,{title:"\u5206\u4EAB\u4E0B\u8F7D\u94FE\u63A5",open:Ht,onOk:Bt,centered:!0,wrapClassName:ne.shareModal,onCancel:()=>{Tt(!1),V({})},width:"1000px",okText:"\u590D\u5236\u94FE\u63A5"},u.createElement("div",null,u.createElement("div",{className:ne.fileName},"\u53D1\u9001\u94FE\u63A5\uFF0C\u522B\u4EBA\u53EF\u4EE5\u901A\u8FC7\u94FE\u63A5\u4E0B\u8F7D\u6587\u4EF6",u.createElement("span",null,"(\u6709\u6548\u671F\u4E3A3\u5929)")),u.createElement(X.default,{bordered:!1,addonBefore:"\u94FE\u63A5",value:ot==null?void 0:ot.download_url}))),u.createElement(T.Z,{setVisible:Ge,visible:et,recordId:ht,type:We,updateData:bt,identifier:De}),u.createElement(v.default,{title:"\u540C\u6B65\u5230\u4E2A\u4EBA\u6570\u636E\u96C6",open:qe,width:400,centered:!0,keyboard:!1,onCancel:()=>yt(!1),maskClosable:!1,footer:u.createElement("div",{style:{display:"flex",justifyContent:"center"}},u.createElement("div",{className:ne.leftButton,onClick:()=>{Se(!0)}},"\u751F\u6210\u65B0\u7684\u6570\u636E\u96C6"),u.createElement("div",{className:ne.rightButton,onClick:()=>{yt(!1),Ge(!0),Mt("my")}},"\u53D1\u9001\u5230\u5DF2\u6709\u6570\u636E\u96C6\u4E2D"))},u.createElement("div",{className:ne.centerText},"\u5C06\u8BE5\u6570\u636E\u96C6\u6587\u4EF6\u540C\u6B65\u5230\u4E2A\u4EBA\u6570\u636E\u96C6\u4E2D\uFF0C\u8BF7\u9009\u62E9\u540C\u6B65\u65B9\u5F0F\uFF1A")),u.createElement(I.Z,{visible:pe,attachmentInfo:le,onClose:()=>Se(!1),onSuccess:he=>{Se(!1),Y.history.push(`/dataset/${he}/detail?tabId=mine`)}}))};var c=(0,Y.connect)(({globalSetting:p,shixunsDetail:r,practiceSetting:S,user:z})=>({globalSetting:p,shixunsDetail:r,user:z,practiceSetting:S}))(je)},36785:function(nt,ee,e){"use strict";e.d(ee,{o2:function(){return w},yT:function(){return E}});var a=e(19127),v=e(33166);const x=v.i.map(m=>`${m}-inverse`),W=["success","processing","error","default","warning"];function w(m){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat((0,a.Z)(x),(0,a.Z)(v.i)).includes(m):v.i.includes(m)}function E(m){return W.includes(m)}},79676:function(nt,ee,e){"use strict";e.d(ee,{Z:function(){return E}});var a=e(19447);function v(m,g,H,X){if(X===!1)return{adjustX:!1,adjustY:!1};const te=X&&typeof X=="object"?X:{},k={};switch(m){case"top":case"bottom":k.shiftX=g.dropdownArrowOffset*2+H;break;case"left":case"right":k.shiftY=g.dropdownArrowOffsetVertical*2+H;break}const t=Object.assign(Object.assign({},k),te);return t.shiftX||(t.adjustX=!0),t.shiftY||(t.adjustY=!0),t}const x={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},W={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},w=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function E(m){const{arrowWidth:g,autoAdjustOverflow:H,arrowPointAtCenter:X,offset:te,borderRadius:k,visibleFirst:t}=m,b=g/2,ne={};return Object.keys(x).forEach(Q=>{const fe=X&&W[Q]||x[Q],se=Object.assign(Object.assign({},fe),{offset:[0,0]});switch(ne[Q]=se,w.has(Q)&&(se.autoArrow=!1),Q){case"top":case"topLeft":case"topRight":se.offset[1]=-b-te;break;case"bottom":case"bottomLeft":case"bottomRight":se.offset[1]=b+te;break;case"left":case"leftTop":case"leftBottom":se.offset[0]=-b-te;break;case"right":case"rightTop":case"rightBottom":se.offset[0]=b+te;break}const O=(0,a.fS)({contentRadius:k,limitVerticalRadius:!0});if(X)switch(Q){case"topLeft":case"bottomLeft":se.offset[0]=-O.dropdownArrowOffset-b;break;case"topRight":case"bottomRight":se.offset[0]=O.dropdownArrowOffset+b;break;case"leftTop":case"rightTop":se.offset[1]=-O.dropdownArrowOffset-b;break;case"leftBottom":case"rightBottom":se.offset[1]=O.dropdownArrowOffset+b;break}se.overflow=v(Q,O,g,H),t&&(se.htmlRegion="visibleFirst")}),ne}},19080:function(nt,ee,e){"use strict";e.d(ee,{F:function(){return w},Z:function(){return W}});var a=e(92310),v=e.n(a);const x=null;function W(E,m,g){return v()({[`${E}-status-success`]:m==="success",[`${E}-status-warning`]:m==="warning",[`${E}-status-error`]:m==="error",[`${E}-status-validating`]:m==="validating",[`${E}-has-feedback`]:g})}const w=(E,m)=>m||E},9937:function(nt,ee,e){"use strict";e.d(ee,{M1:function(){return m},TM:function(){return $},Xy:function(){return g},bi:function(){return te},e5:function(){return P},ik:function(){return k},nz:function(){return w},pU:function(){return E},s7:function(){return t},x0:function(){return X}});var a=e(17313),v=e(74207),x=e(37613),W=e(83116);const w=n=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:n,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),E=n=>({borderColor:n.hoverBorderColor}),m=n=>({borderColor:n.activeBorderColor,boxShadow:n.activeShadow,outline:0}),g=n=>({color:n.colorTextDisabled,backgroundColor:n.colorBgContainerDisabled,borderColor:n.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":Object.assign({},E((0,x.TS)(n,{hoverBorderColor:n.colorBorder})))}),H=n=>{const{paddingBlockLG:o,fontSizeLG:D,lineHeightLG:N,borderRadiusLG:me,paddingInlineLG:ue}=n;return{padding:`${o}px ${ue}px`,fontSize:D,lineHeight:N,borderRadius:me}},X=n=>({padding:`${n.paddingBlockSM}px ${n.paddingInlineSM}px`,borderRadius:n.borderRadiusSM}),te=(n,o)=>{const{componentCls:D,colorError:N,colorWarning:me,errorActiveShadow:ue,warningActiveShadow:xe,colorErrorBorderHover:Z,colorWarningBorderHover:s}=n;return{[`&-status-error:not(${o}-disabled):not(${o}-borderless)${o}`]:{borderColor:N,"&:hover":{borderColor:Z},"&:focus, &-focused":Object.assign({},m((0,x.TS)(n,{activeBorderColor:N,activeShadow:ue}))),[`${D}-prefix, ${D}-suffix`]:{color:N}},[`&-status-warning:not(${o}-disabled):not(${o}-borderless)${o}`]:{borderColor:me,"&:hover":{borderColor:s},"&:focus, &-focused":Object.assign({},m((0,x.TS)(n,{activeBorderColor:me,activeShadow:xe}))),[`${D}-prefix, ${D}-suffix`]:{color:me}}}},k=n=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${n.paddingBlock}px ${n.paddingInline}px`,color:n.colorText,fontSize:n.fontSize,lineHeight:n.lineHeight,backgroundColor:n.colorBgContainer,backgroundImage:"none",borderWidth:n.lineWidth,borderStyle:n.lineType,borderColor:n.colorBorder,borderRadius:n.borderRadius,transition:`all ${n.motionDurationMid}`},w(n.colorTextPlaceholder)),{"&:hover":Object.assign({},E(n)),"&:focus, &-focused":Object.assign({},m(n)),"&-disabled, &[disabled]":Object.assign({},g(n)),"&-borderless":{"&, &:hover, &:focus, &-focused, &-disabled, &[disabled]":{backgroundColor:"transparent",border:"none",boxShadow:"none"}},"textarea&":{maxWidth:"100%",height:"auto",minHeight:n.controlHeight,lineHeight:n.lineHeight,verticalAlign:"bottom",transition:`all ${n.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},H(n)),"&-sm":Object.assign({},X(n)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),t=n=>{const{componentCls:o,antCls:D}=n;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:n.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${o}, &-lg > ${o}-group-addon`]:Object.assign({},H(n)),[`&-sm ${o}, &-sm > ${o}-group-addon`]:Object.assign({},X(n)),[`&-lg ${D}-select-single ${D}-select-selector`]:{height:n.controlHeightLG},[`&-sm ${D}-select-single ${D}-select-selector`]:{height:n.controlHeightSM},[`> ${o}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${o}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${n.paddingInline}px`,color:n.colorText,fontWeight:"normal",fontSize:n.fontSize,textAlign:"center",backgroundColor:n.colorFillAlter,border:`${n.lineWidth}px ${n.lineType} ${n.colorBorder}`,borderRadius:n.borderRadius,transition:`all ${n.motionDurationSlow}`,lineHeight:1,[`${D}-select`]:{margin:`-${n.paddingBlock+1}px -${n.paddingInline}px`,[`&${D}-select-single:not(${D}-select-customize-input)`]:{[`${D}-select-selector`]:{backgroundColor:"inherit",border:`${n.lineWidth}px ${n.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${D}-select-selector`]:{color:n.colorPrimary}}},[`${D}-cascader-picker`]:{margin:`-9px -${n.paddingInline}px`,backgroundColor:"transparent",[`${D}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},[`${o}`]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${o}-search-with-button &`]:{zIndex:0}}},[`> ${o}:first-child, ${o}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${D}-select ${D}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${o}-affix-wrapper`]:{[`&:not(:first-child) ${o}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${o}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${o}:last-child, ${o}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${D}-select ${D}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${o}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${o}-search &`]:{borderStartStartRadius:n.borderRadius,borderEndStartRadius:n.borderRadius}},[`&:not(:first-child), ${o}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${o}-group-compact`]:Object.assign(Object.assign({display:"block"},(0,a.dF)()),{[`${o}-group-addon, ${o}-group-wrap, > ${o}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:n.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[`
|
|
& > ${o}-affix-wrapper,
|
|
& > ${o}-number-affix-wrapper,
|
|
& > ${D}-picker-range
|
|
`]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:-n.lineWidth,borderInlineEndWidth:n.lineWidth},[`${o}`]:{float:"none"},[`& > ${D}-select > ${D}-select-selector,
|
|
& > ${D}-select-auto-complete ${o},
|
|
& > ${D}-cascader-picker ${o},
|
|
& > ${o}-group-wrapper ${o}`]:{borderInlineEndWidth:n.lineWidth,borderRadius:0,"&:hover":{zIndex:1},"&:focus":{zIndex:1}},[`& > ${D}-select-focused`]:{zIndex:1},[`& > ${D}-select > ${D}-select-arrow`]:{zIndex:1},[`& > *:first-child,
|
|
& > ${D}-select:first-child > ${D}-select-selector,
|
|
& > ${D}-select-auto-complete:first-child ${o},
|
|
& > ${D}-cascader-picker:first-child ${o}`]:{borderStartStartRadius:n.borderRadius,borderEndStartRadius:n.borderRadius},[`& > *:last-child,
|
|
& > ${D}-select:last-child > ${D}-select-selector,
|
|
& > ${D}-cascader-picker:last-child ${o},
|
|
& > ${D}-cascader-picker-focused:last-child ${o}`]:{borderInlineEndWidth:n.lineWidth,borderStartEndRadius:n.borderRadius,borderEndEndRadius:n.borderRadius},[`& > ${D}-select-auto-complete ${o}`]:{verticalAlign:"top"},[`${o}-group-wrapper + ${o}-group-wrapper`]:{marginInlineStart:-n.lineWidth,[`${o}-affix-wrapper`]:{borderRadius:0}},[`${o}-group-wrapper:not(:last-child)`]:{[`&${o}-search > ${o}-group`]:{[`& > ${o}-group-addon > ${o}-search-button`]:{borderRadius:0},[`& > ${o}`]:{borderStartStartRadius:n.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:n.borderRadius}}}})}},b=n=>{const{componentCls:o,controlHeightSM:D,lineWidth:N}=n,ue=(D-N*2-16)/2;return{[o]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,a.Wf)(n)),k(n)),te(n,o)),{'&[type="color"]':{height:n.controlHeight,[`&${o}-lg`]:{height:n.controlHeightLG},[`&${o}-sm`]:{height:D,paddingTop:ue,paddingBottom:ue}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},ne=n=>{const{componentCls:o}=n;return{[`${o}-clear-icon`]:{margin:0,color:n.colorTextQuaternary,fontSize:n.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${n.motionDurationSlow}`,"&:hover":{color:n.colorTextTertiary},"&:active":{color:n.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${n.inputAffixPadding}px`}}}},Q=n=>{const{componentCls:o,inputAffixPadding:D,colorTextDescription:N,motionDurationSlow:me,colorIcon:ue,colorIconHover:xe,iconCls:Z}=n;return{[`${o}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},k(n)),{display:"inline-flex",[`&:not(${o}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},E(n)),{zIndex:1,[`${o}-search-with-button &`]:{zIndex:0}}),"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${o}[disabled]`]:{background:"transparent"}},[`> input${o}`]:{padding:0,fontSize:"inherit",border:"none",borderRadius:0,outline:"none","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${o}`]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:n.paddingXS}},"&-show-count-suffix":{color:N},"&-show-count-has-suffix":{marginInlineEnd:n.paddingXXS},"&-prefix":{marginInlineEnd:D},"&-suffix":{marginInlineStart:D}}}),ne(n)),{[`${Z}${o}-password-icon`]:{color:ue,cursor:"pointer",transition:`all ${me}`,"&:hover":{color:xe}}}),te(n,`${o}-affix-wrapper`))}},fe=n=>{const{componentCls:o,colorError:D,colorWarning:N,borderRadiusLG:me,borderRadiusSM:ue}=n;return{[`${o}-group`]:Object.assign(Object.assign(Object.assign({},(0,a.Wf)(n)),t(n)),{"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${o}-group-addon`]:{borderRadius:me,fontSize:n.fontSizeLG}},"&-sm":{[`${o}-group-addon`]:{borderRadius:ue}},"&-status-error":{[`${o}-group-addon`]:{color:D,borderColor:D}},"&-status-warning":{[`${o}-group-addon`]:{color:N,borderColor:N}},"&-disabled":{[`${o}-group-addon`]:Object.assign({},g(n))},[`&:not(${o}-compact-first-item):not(${o}-compact-last-item)${o}-compact-item`]:{[`${o}, ${o}-group-addon`]:{borderRadius:0}},[`&:not(${o}-compact-last-item)${o}-compact-first-item`]:{[`${o}, ${o}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${o}-compact-first-item)${o}-compact-last-item`]:{[`${o}, ${o}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}})}},se=n=>{const{componentCls:o,antCls:D}=n,N=`${o}-search`;return{[N]:{[`${o}`]:{"&:hover, &:focus":{borderColor:n.colorPrimaryHover,[`+ ${o}-group-addon ${N}-button:not(${D}-btn-primary)`]:{borderInlineStartColor:n.colorPrimaryHover}}},[`${o}-affix-wrapper`]:{borderRadius:0},[`${o}-lg`]:{lineHeight:n.lineHeightLG-2e-4},[`> ${o}-group`]:{[`> ${o}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${N}-button`]:{paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:n.borderRadius,borderEndEndRadius:n.borderRadius,borderEndStartRadius:0,boxShadow:"none"},[`${N}-button:not(${D}-btn-primary)`]:{color:n.colorTextDescription,"&:hover":{color:n.colorPrimaryHover},"&:active":{color:n.colorPrimaryActive},[`&${D}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${N}-button`]:{height:n.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${N}-button`]:{height:n.controlHeightLG},[`&-small ${N}-button`]:{height:n.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${o}-compact-item`]:{[`&:not(${o}-compact-last-item)`]:{[`${o}-group-addon`]:{[`${o}-search-button`]:{marginInlineEnd:-n.lineWidth,borderRadius:0}}},[`&:not(${o}-compact-first-item)`]:{[`${o},${o}-affix-wrapper`]:{borderRadius:0}},[`> ${o}-group-addon ${o}-search-button,
|
|
> ${o},
|
|
${o}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${o}-affix-wrapper-focused`]:{zIndex:2}}}}},O=n=>{const{componentCls:o,paddingLG:D}=n,N=`${o}-textarea`;return{[N]:{position:"relative","&-show-count":{[`> ${o}`]:{height:"100%"},[`${o}-data-count`]:{position:"absolute",bottom:-n.fontSize*n.lineHeight,insetInlineEnd:0,color:n.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},"&-allow-clear":{[`> ${o}`]:{paddingInlineEnd:D}},[`&-affix-wrapper${N}-has-feedback`]:{[`${o}`]:{paddingInlineEnd:D}},[`&-affix-wrapper${o}-affix-wrapper`]:{padding:0,[`> textarea${o}`]:{fontSize:"inherit",border:"none",outline:"none","&:focus":{boxShadow:"none !important"}},[`${o}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${o}-clear-icon`]:{position:"absolute",insetInlineEnd:n.paddingXS,insetBlockStart:n.paddingXS},[`${N}-suffix`]:{position:"absolute",top:0,insetInlineEnd:n.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}}}}};function P(n){return(0,x.TS)(n,{inputAffixPadding:n.paddingXXS})}const $=n=>{const{controlHeight:o,fontSize:D,lineHeight:N,lineWidth:me,controlHeightSM:ue,controlHeightLG:xe,fontSizeLG:Z,lineHeightLG:s,paddingSM:l,controlPaddingHorizontalSM:f,controlPaddingHorizontal:y,colorFillAlter:L,colorPrimaryHover:J,controlOutlineWidth:h,controlOutline:Y,colorErrorOutline:T,colorWarningOutline:I}=n;return{paddingBlock:Math.max(Math.round((o-D*N)/2*10)/10-me,3),paddingBlockSM:Math.max(Math.round((ue-D*N)/2*10)/10-me,0),paddingBlockLG:Math.ceil((xe-Z*s)/2*10)/10-me,paddingInline:l-me,paddingInlineSM:f-me,paddingInlineLG:y-me,addonBg:L,activeBorderColor:J,hoverBorderColor:J,activeShadow:`0 0 0 ${h}px ${Y}`,errorActiveShadow:`0 0 0 ${h}px ${T}`,warningActiveShadow:`0 0 0 ${h}px ${I}`}};ee.ZP=(0,W.Z)("Input",n=>{const o=(0,x.TS)(n,P(n));return[b(o),O(o),Q(o),fe(o),se(o),(0,v.c)(o)]},$)},5112:function(nt,ee,e){"use strict";e.d(ee,{ZP:function(){return Y}});var a=e(92310),v=e.n(a),x=e(18929),W=e(26112),w=e(59301),E=e(36355),m=e(19716);const g=w.createContext(null),H=g.Provider;var X=g;const te=w.createContext(null),k=te.Provider;var t=e(5630),b=e(8654),ne=e(1684),Q=e(32441),fe=e(17313),se=e(83116),O=e(37613);const P=T=>{const{componentCls:I,antCls:u}=T,M=`${I}-group`;return{[M]:Object.assign(Object.assign({},(0,fe.Wf)(T)),{display:"inline-block",fontSize:0,[`&${M}-rtl`]:{direction:"rtl"},[`${u}-badge ${u}-badge-count`]:{zIndex:1},[`> ${u}-badge:not(:first-child) > ${u}-button-wrapper`]:{borderInlineStart:"none"}})}},$=T=>{const{componentCls:I,wrapperMarginInlineEnd:u,colorPrimary:M,radioSize:B,motionDurationSlow:ae,motionDurationMid:ie,motionEaseInOutCirc:Re,colorBgContainer:Te,colorBorder:Me,lineWidth:be,dotSize:Pe,colorBgContainerDisabled:Ee,colorTextDisabled:ke,paddingXS:je,dotColorDisabled:c,lineType:p,radioDotDisabledSize:r,wireframe:S,colorWhite:z}=T,G=`${I}-inner`;return{[`${I}-wrapper`]:Object.assign(Object.assign({},(0,fe.Wf)(T)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:u,cursor:"pointer",[`&${I}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:T.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},[`${I}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${be}px ${p} ${M}`,borderRadius:"50%",visibility:"hidden",content:'""'},[I]:Object.assign(Object.assign({},(0,fe.Wf)(T)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${I}-wrapper:hover &,
|
|
&:hover ${G}`]:{borderColor:M},[`${I}-input:focus-visible + ${G}`]:Object.assign({},(0,fe.oN)(T)),[`${I}:hover::after, ${I}-wrapper:hover &::after`]:{visibility:"visible"},[`${I}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:B,height:B,marginBlockStart:B/-2,marginInlineStart:B/-2,backgroundColor:S?M:z,borderBlockStart:0,borderInlineStart:0,borderRadius:B,transform:"scale(0)",opacity:0,transition:`all ${ae} ${Re}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:B,height:B,backgroundColor:Te,borderColor:Me,borderStyle:"solid",borderWidth:be,borderRadius:"50%",transition:`all ${ie}`},[`${I}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${I}-checked`]:{[G]:{borderColor:M,backgroundColor:S?Te:M,"&::after":{transform:`scale(${Pe/B})`,opacity:1,transition:`all ${ae} ${Re}`}}},[`${I}-disabled`]:{cursor:"not-allowed",[G]:{backgroundColor:Ee,borderColor:Me,cursor:"not-allowed","&::after":{backgroundColor:c}},[`${I}-input`]:{cursor:"not-allowed"},[`${I}-disabled + span`]:{color:ke,cursor:"not-allowed"},[`&${I}-checked`]:{[G]:{"&::after":{transform:`scale(${r/B})`}}}},[`span${I} + *`]:{paddingInlineStart:je,paddingInlineEnd:je}})}},n=T=>{const{buttonColor:I,controlHeight:u,componentCls:M,lineWidth:B,lineType:ae,colorBorder:ie,motionDurationSlow:Re,motionDurationMid:Te,buttonPaddingInline:Me,fontSize:be,buttonBg:Pe,fontSizeLG:Ee,controlHeightLG:ke,controlHeightSM:je,paddingXS:c,borderRadius:p,borderRadiusSM:r,borderRadiusLG:S,buttonCheckedBg:z,buttonSolidCheckedColor:G,colorTextDisabled:j,colorBgContainerDisabled:_,buttonCheckedBgDisabled:oe,buttonCheckedColorDisabled:U,colorPrimary:re,colorPrimaryHover:Ce,colorPrimaryActive:$e,buttonSolidCheckedBg:q,buttonSolidCheckedHoverBg:Oe,buttonSolidCheckedActiveBg:ze}=T;return{[`${M}-button-wrapper`]:{position:"relative",display:"inline-block",height:u,margin:0,paddingInline:Me,paddingBlock:0,color:I,fontSize:be,lineHeight:`${u-B*2}px`,background:Pe,border:`${B}px ${ae} ${ie}`,borderBlockStartWidth:B+.02,borderInlineStartWidth:0,borderInlineEndWidth:B,cursor:"pointer",transition:[`color ${Te}`,`background ${Te}`,`box-shadow ${Te}`].join(","),a:{color:I},[`> ${M}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:-B,insetInlineStart:-B,display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:B,paddingInline:0,backgroundColor:ie,transition:`background-color ${Re}`,content:'""'}},"&:first-child":{borderInlineStart:`${B}px ${ae} ${ie}`,borderStartStartRadius:p,borderEndStartRadius:p},"&:last-child":{borderStartEndRadius:p,borderEndEndRadius:p},"&:first-child:last-child":{borderRadius:p},[`${M}-group-large &`]:{height:ke,fontSize:Ee,lineHeight:`${ke-B*2}px`,"&:first-child":{borderStartStartRadius:S,borderEndStartRadius:S},"&:last-child":{borderStartEndRadius:S,borderEndEndRadius:S}},[`${M}-group-small &`]:{height:je,paddingInline:c-B,paddingBlock:0,lineHeight:`${je-B*2}px`,"&:first-child":{borderStartStartRadius:r,borderEndStartRadius:r},"&:last-child":{borderStartEndRadius:r,borderEndEndRadius:r}},"&:hover":{position:"relative",color:re},"&:has(:focus-visible)":Object.assign({},(0,fe.oN)(T)),[`${M}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${M}-button-wrapper-disabled)`]:{zIndex:1,color:re,background:z,borderColor:re,"&::before":{backgroundColor:re},"&:first-child":{borderColor:re},"&:hover":{color:Ce,borderColor:Ce,"&::before":{backgroundColor:Ce}},"&:active":{color:$e,borderColor:$e,"&::before":{backgroundColor:$e}}},[`${M}-group-solid &-checked:not(${M}-button-wrapper-disabled)`]:{color:G,background:q,borderColor:q,"&:hover":{color:G,background:Oe,borderColor:Oe},"&:active":{color:G,background:ze,borderColor:ze}},"&-disabled":{color:j,backgroundColor:_,borderColor:ie,cursor:"not-allowed","&:first-child, &:hover":{color:j,backgroundColor:_,borderColor:ie}},[`&-disabled${M}-button-wrapper-checked`]:{color:U,backgroundColor:oe,borderColor:ie,boxShadow:"none"}}}},o=T=>T-4*2;var D=(0,se.Z)("Radio",T=>{const{controlOutline:I,controlOutlineWidth:u,radioSize:M}=T,B=`0 0 0 ${u}px ${I}`,ae=B,ie=o(M),Re=(0,O.TS)(T,{radioDotDisabledSize:ie,radioFocusShadow:B,radioButtonFocusShadow:ae});return[P(Re),$(Re),n(Re)]},T=>{const{wireframe:I,padding:u,marginXS:M,lineWidth:B,fontSizeLG:ae,colorText:ie,colorBgContainer:Re,colorTextDisabled:Te,controlItemBgActiveDisabled:Me,colorTextLightSolid:be,colorPrimary:Pe,colorPrimaryHover:Ee,colorPrimaryActive:ke}=T,je=4,c=ae,p=I?o(c):c-(je+B)*2;return{radioSize:c,dotSize:p,dotColorDisabled:Te,buttonSolidCheckedColor:be,buttonSolidCheckedBg:Pe,buttonSolidCheckedHoverBg:Ee,buttonSolidCheckedActiveBg:ke,buttonBg:Re,buttonCheckedBg:Re,buttonColor:ie,buttonCheckedBgDisabled:Me,buttonCheckedColorDisabled:Te,buttonPaddingInline:u-B,wrapperMarginInlineEnd:M}}),N=e(14088),me=e(4572),ue=function(T,I){var u={};for(var M in T)Object.prototype.hasOwnProperty.call(T,M)&&I.indexOf(M)<0&&(u[M]=T[M]);if(T!=null&&typeof Object.getOwnPropertySymbols=="function")for(var B=0,M=Object.getOwnPropertySymbols(T);B<M.length;B++)I.indexOf(M[B])<0&&Object.prototype.propertyIsEnumerable.call(T,M[B])&&(u[M[B]]=T[M[B]]);return u};const xe=(T,I)=>{var u,M;const B=w.useContext(X),ae=w.useContext(te),{getPrefixCls:ie,direction:Re,radio:Te}=w.useContext(E.E_),Me=w.useRef(null),be=(0,b.sQ)(I,Me),{isFormItemInput:Pe}=w.useContext(Q.aM),Ee=$e=>{var q,Oe;(q=T.onChange)===null||q===void 0||q.call(T,$e),(Oe=B==null?void 0:B.onChange)===null||Oe===void 0||Oe.call(B,$e)},{prefixCls:ke,className:je,rootClassName:c,children:p,style:r}=T,S=ue(T,["prefixCls","className","rootClassName","children","style"]),z=ie("radio",ke),G=((B==null?void 0:B.optionType)||ae)==="button",j=G?`${z}-button`:z,[_,oe]=D(z),U=Object.assign({},S),re=w.useContext(ne.Z);B&&(U.name=B.name,U.onChange=Ee,U.checked=T.value===B.value,U.disabled=(u=U.disabled)!==null&&u!==void 0?u:B.disabled),U.disabled=(M=U.disabled)!==null&&M!==void 0?M:re;const Ce=v()(`${j}-wrapper`,{[`${j}-wrapper-checked`]:U.checked,[`${j}-wrapper-disabled`]:U.disabled,[`${j}-wrapper-rtl`]:Re==="rtl",[`${j}-wrapper-in-form-item`]:Pe},Te==null?void 0:Te.className,je,c,oe);return _(w.createElement(N.Z,{component:"Radio",disabled:U.disabled},w.createElement("label",{className:Ce,style:Object.assign(Object.assign({},Te==null?void 0:Te.style),r),onMouseEnter:T.onMouseEnter,onMouseLeave:T.onMouseLeave},w.createElement(t.Z,Object.assign({},U,{className:v()(U.className,!G&&me.A),type:"radio",prefixCls:j,ref:be})),p!==void 0?w.createElement("span",null,p):null)))};var s=w.forwardRef(xe);const l=w.forwardRef((T,I)=>{const{getPrefixCls:u,direction:M}=w.useContext(E.E_),[B,ae]=(0,x.Z)(T.defaultValue,{value:T.value}),ie=q=>{const Oe=B,ze=q.target.value;"value"in T||ae(ze);const{onChange:De}=T;De&&ze!==Oe&&De(q)},{prefixCls:Re,className:Te,rootClassName:Me,options:be,buttonStyle:Pe="outline",disabled:Ee,children:ke,size:je,style:c,id:p,onMouseEnter:r,onMouseLeave:S,onFocus:z,onBlur:G}=T,j=u("radio",Re),_=`${j}-group`,[oe,U]=D(j);let re=ke;be&&be.length>0&&(re=be.map(q=>typeof q=="string"||typeof q=="number"?w.createElement(s,{key:q.toString(),prefixCls:j,disabled:Ee,value:q,checked:B===q},q):w.createElement(s,{key:`radio-group-value-options-${q.value}`,prefixCls:j,disabled:q.disabled||Ee,value:q.value,checked:B===q.value,title:q.title,style:q.style},q.label)));const Ce=(0,m.Z)(je),$e=v()(_,`${_}-${Pe}`,{[`${_}-${Ce}`]:Ce,[`${_}-rtl`]:M==="rtl"},Te,Me,U);return oe(w.createElement("div",Object.assign({},(0,W.Z)(T,{aria:!0,data:!0}),{className:$e,style:c,onMouseEnter:r,onMouseLeave:S,onFocus:z,onBlur:G,id:p,ref:I}),w.createElement(H,{value:{onChange:ie,value:B,disabled:T.disabled,name:T.name,optionType:T.optionType}},re)))});var f=w.memo(l),y=function(T,I){var u={};for(var M in T)Object.prototype.hasOwnProperty.call(T,M)&&I.indexOf(M)<0&&(u[M]=T[M]);if(T!=null&&typeof Object.getOwnPropertySymbols=="function")for(var B=0,M=Object.getOwnPropertySymbols(T);B<M.length;B++)I.indexOf(M[B])<0&&Object.prototype.propertyIsEnumerable.call(T,M[B])&&(u[M[B]]=T[M[B]]);return u};const L=(T,I)=>{const{getPrefixCls:u}=w.useContext(E.E_),{prefixCls:M}=T,B=y(T,["prefixCls"]),ae=u("radio",M);return w.createElement(k,{value:"button"},w.createElement(s,Object.assign({prefixCls:ae},B,{type:"radio",ref:I})))};var J=w.forwardRef(L);const h=s;h.Button=J,h.Group=f,h.__ANT_RADIO=!0;var Y=h},8378:function(nt,ee){"use strict";const e=a=>({[a.componentCls]:{[`${a.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${a.motionDurationMid} ${a.motionEaseInOut},
|
|
opacity ${a.motionDurationMid} ${a.motionEaseInOut} !important`}},[`${a.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${a.motionDurationMid} ${a.motionEaseInOut},
|
|
opacity ${a.motionDurationMid} ${a.motionEaseInOut} !important`}}});ee.Z=e},92899:function(nt,ee,e){"use strict";e.d(ee,{Fm:function(){return k}});var a=e(93083),v=e(95406);const x=new a.Keyframes("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),W=new a.Keyframes("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),w=new a.Keyframes("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),E=new a.Keyframes("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),m=new a.Keyframes("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),g=new a.Keyframes("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),H=new a.Keyframes("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),X=new a.Keyframes("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),te={"move-up":{inKeyframes:H,outKeyframes:X},"move-down":{inKeyframes:x,outKeyframes:W},"move-left":{inKeyframes:w,outKeyframes:E},"move-right":{inKeyframes:m,outKeyframes:g}},k=(t,b)=>{const{antCls:ne}=t,Q=`${ne}-${b}`,{inKeyframes:fe,outKeyframes:se}=te[b];return[(0,v.R)(Q,fe,se,t.motionDurationMid),{[`
|
|
${Q}-enter,
|
|
${Q}-appear
|
|
`]:{opacity:0,animationTimingFunction:t.motionEaseOutCirc},[`${Q}-leave`]:{animationTimingFunction:t.motionEaseInOutCirc}}]}},13826:function(nt,ee,e){"use strict";e.d(ee,{Qt:function(){return w},Uw:function(){return W},fJ:function(){return x},ly:function(){return E},oN:function(){return k}});var a=e(93083),v=e(95406);const x=new a.Keyframes("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),W=new a.Keyframes("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),w=new a.Keyframes("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),E=new a.Keyframes("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),m=new a.Keyframes("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),g=new a.Keyframes("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),H=new a.Keyframes("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),X=new a.Keyframes("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),te={"slide-up":{inKeyframes:x,outKeyframes:W},"slide-down":{inKeyframes:w,outKeyframes:E},"slide-left":{inKeyframes:m,outKeyframes:g},"slide-right":{inKeyframes:H,outKeyframes:X}},k=(t,b)=>{const{antCls:ne}=t,Q=`${ne}-${b}`,{inKeyframes:fe,outKeyframes:se}=te[b];return[(0,v.R)(Q,fe,se,t.motionDurationMid),{[`
|
|
${Q}-enter,
|
|
${Q}-appear
|
|
`]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:t.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${Q}-leave`]:{animationTimingFunction:t.motionEaseInQuint}}]}},19447:function(nt,ee,e){"use strict";e.d(ee,{ZP:function(){return w},fS:function(){return x},qN:function(){return v}});var a=e(47585);const v=8;function x(E){const m=v,{contentRadius:g,limitVerticalRadius:H}=E,X=g>12?g+2:12;return{dropdownArrowOffset:X,dropdownArrowOffsetVertical:H?m:X}}function W(E,m){return E?m:{}}function w(E,m){const{componentCls:g,sizePopupArrow:H,borderRadiusXS:X,borderRadiusOuter:te,boxShadowPopoverArrow:k}=E,{colorBg:t,contentRadius:b=E.borderRadiusLG,limitVerticalRadius:ne,arrowDistance:Q=0,arrowPlacement:fe={left:!0,right:!0,top:!0,bottom:!0}}=m,{dropdownArrowOffsetVertical:se,dropdownArrowOffset:O}=x({contentRadius:b,limitVerticalRadius:ne});return{[g]:Object.assign(Object.assign(Object.assign(Object.assign({[`${g}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},(0,a.r)(H,X,te,t,k)),{"&:before":{background:t}})]},W(!!fe.top,{[[`&-placement-top ${g}-arrow`,`&-placement-topLeft ${g}-arrow`,`&-placement-topRight ${g}-arrow`].join(",")]:{bottom:Q,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top ${g}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft ${g}-arrow`]:{left:{_skip_check_:!0,value:O}},[`&-placement-topRight ${g}-arrow`]:{right:{_skip_check_:!0,value:O}}})),W(!!fe.bottom,{[[`&-placement-bottom ${g}-arrow`,`&-placement-bottomLeft ${g}-arrow`,`&-placement-bottomRight ${g}-arrow`].join(",")]:{top:Q,transform:"translateY(-100%)"},[`&-placement-bottom ${g}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},[`&-placement-bottomLeft ${g}-arrow`]:{left:{_skip_check_:!0,value:O}},[`&-placement-bottomRight ${g}-arrow`]:{right:{_skip_check_:!0,value:O}}})),W(!!fe.left,{[[`&-placement-left ${g}-arrow`,`&-placement-leftTop ${g}-arrow`,`&-placement-leftBottom ${g}-arrow`].join(",")]:{right:{_skip_check_:!0,value:Q},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left ${g}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop ${g}-arrow`]:{top:se},[`&-placement-leftBottom ${g}-arrow`]:{bottom:se}})),W(!!fe.right,{[[`&-placement-right ${g}-arrow`,`&-placement-rightTop ${g}-arrow`,`&-placement-rightBottom ${g}-arrow`].join(",")]:{left:{_skip_check_:!0,value:Q},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right ${g}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop ${g}-arrow`]:{top:se},[`&-placement-rightBottom ${g}-arrow`]:{bottom:se}}))}}},47585:function(nt,ee,e){"use strict";e.d(ee,{r:function(){return a}});const a=(v,x,W,w,E)=>{const m=v/2,g=0,H=m,X=W*1/Math.sqrt(2),te=m-W*(1-1/Math.sqrt(2)),k=m-x*(1/Math.sqrt(2)),t=W*(Math.sqrt(2)-1)+x*(1/Math.sqrt(2)),b=2*m-k,ne=t,Q=2*m-X,fe=te,se=2*m-g,O=H,P=m*Math.sqrt(2)+W*(Math.sqrt(2)-2),$=W*(Math.sqrt(2)-1);return{pointerEvents:"none",width:v,height:v,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:v,height:v/2,background:w,clipPath:{_multi_value_:!0,value:[`polygon(${$}px 100%, 50% ${$}px, ${2*m-$}px 100%, ${$}px 100%)`,`path('M ${g} ${H} A ${W} ${W} 0 0 0 ${X} ${te} L ${k} ${t} A ${x} ${x} 0 0 1 ${b} ${ne} L ${Q} ${fe} A ${W} ${W} 0 0 0 ${se} ${O} Z')`]},content:'""'},"&::after":{content:'""',position:"absolute",width:P,height:P,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${x}px 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:E,zIndex:0,background:"transparent"}}}},33166:function(nt,ee,e){"use strict";e.d(ee,{i:function(){return a}});const a=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"]},45157:function(nt,ee,e){"use strict";e.d(ee,{Z:function(){return v}});var a=e(33166);function v(x,W){return a.i.reduce((w,E)=>{const m=x[`${E}1`],g=x[`${E}3`],H=x[`${E}6`],X=x[`${E}7`];return Object.assign(Object.assign({},w),W(E,{lightColor:m,lightBorderColor:g,darkColor:H,textColor:X}))},{})}},6848:function(nt,ee,e){"use strict";e.d(ee,{Z:function(){return xe}});var a=e(59301),v=e(92310),x=e.n(v),W=e(55477),w=e(18929),E=e(62892),m=e(79676),g=e(92343),H=e(36355),X=e(33234),te=e(88088),k=e(17313),t=e(29878),b=e(19447),ne=e(45157),Q=e(37613),fe=e(83116);const se=Z=>{const{componentCls:s,tooltipMaxWidth:l,tooltipColor:f,tooltipBg:y,tooltipBorderRadius:L,zIndexPopup:J,controlHeight:h,boxShadowSecondary:Y,paddingSM:T,paddingXS:I,tooltipRadiusOuter:u}=Z;return[{[s]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,k.Wf)(Z)),{position:"absolute",zIndex:J,display:"block",width:"max-content",maxWidth:l,visibility:"visible",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","&-hidden":{display:"none"},"--antd-arrow-background-color":y,[`${s}-inner`]:{minWidth:h,minHeight:h,padding:`${T/2}px ${I}px`,color:f,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:y,borderRadius:L,boxShadow:Y,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${s}-inner`]:{borderRadius:Math.min(L,b.qN)}},[`${s}-content`]:{position:"relative"}}),(0,ne.Z)(Z,(M,B)=>{let{darkColor:ae}=B;return{[`&${s}-${M}`]:{[`${s}-inner`]:{backgroundColor:ae},[`${s}-arrow`]:{"--antd-arrow-background-color":ae}}}})),{"&-rtl":{direction:"rtl"}})},(0,b.ZP)((0,Q.TS)(Z,{borderRadiusOuter:u}),{colorBg:"var(--antd-arrow-background-color)",contentRadius:L,limitVerticalRadius:!0}),{[`${s}-pure`]:{position:"relative",maxWidth:"none",margin:Z.sizePopupArrow}}]};var O=(Z,s)=>(0,fe.Z)("Tooltip",f=>{if(s===!1)return[];const{borderRadius:y,colorTextLightSolid:L,colorBgDefault:J,borderRadiusOuter:h}=f,Y=(0,Q.TS)(f,{tooltipMaxWidth:250,tooltipColor:L,tooltipBorderRadius:y,tooltipBg:J,tooltipRadiusOuter:h>4?4:h});return[se(Y),(0,t._y)(f,"zoom-big-fast")]},f=>{let{zIndexPopupBase:y,colorBgSpotlight:L}=f;return{zIndexPopup:y+70,colorBgDefault:L}},{resetStyle:!1})(Z),P=e(36785);function $(Z,s){const l=(0,P.o2)(s),f=x()({[`${Z}-${s}`]:s&&l}),y={},L={};return s&&!l&&(y.background=s,L["--antd-arrow-background-color"]=s),{className:f,overlayStyle:y,arrowStyle:L}}var o=Z=>{const{prefixCls:s,className:l,placement:f="top",title:y,color:L,overlayInnerStyle:J}=Z,{getPrefixCls:h}=a.useContext(H.E_),Y=h("tooltip",s),[T,I]=O(Y,!0),u=$(Y,L),M=u.arrowStyle,B=Object.assign(Object.assign({},J),u.overlayStyle),ae=x()(I,Y,`${Y}-pure`,`${Y}-placement-${f}`,l,u.className);return T(a.createElement("div",{className:ae,style:M},a.createElement("div",{className:`${Y}-arrow`}),a.createElement(W.G,Object.assign({},Z,{className:I,prefixCls:Y,overlayInnerStyle:B}),y)))},D=function(Z,s){var l={};for(var f in Z)Object.prototype.hasOwnProperty.call(Z,f)&&s.indexOf(f)<0&&(l[f]=Z[f]);if(Z!=null&&typeof Object.getOwnPropertySymbols=="function")for(var y=0,f=Object.getOwnPropertySymbols(Z);y<f.length;y++)s.indexOf(f[y])<0&&Object.prototype.propertyIsEnumerable.call(Z,f[y])&&(l[f[y]]=Z[f[y]]);return l};const N=(Z,s)=>{const l={},f=Object.assign({},Z);return s.forEach(y=>{Z&&y in Z&&(l[y]=Z[y],delete f[y])}),{picked:l,omitted:f}};function me(Z,s){const l=Z.type;if((l.__ANT_BUTTON===!0||Z.type==="button")&&Z.props.disabled||l.__ANT_SWITCH===!0&&(Z.props.disabled||Z.props.loading)||l.__ANT_RADIO===!0&&Z.props.disabled){const{picked:f,omitted:y}=N(Z.props.style,["position","left","right","top","bottom","float","display","zIndex"]),L=Object.assign(Object.assign({display:"inline-block"},f),{cursor:"not-allowed",width:Z.props.block?"100%":void 0}),J=Object.assign(Object.assign({},y),{pointerEvents:"none"}),h=(0,g.Tm)(Z,{style:J,className:null});return a.createElement("span",{style:L,className:x()(Z.props.className,`${s}-disabled-compatible-wrapper`)},h)}return Z}const ue=a.forwardRef((Z,s)=>{var l,f;const{prefixCls:y,openClassName:L,getTooltipContainer:J,overlayClassName:h,color:Y,overlayInnerStyle:T,children:I,afterOpenChange:u,afterVisibleChange:M,destroyTooltipOnHide:B,arrow:ae=!0,title:ie,overlay:Re,builtinPlacements:Te,arrowPointAtCenter:Me=!1,autoAdjustOverflow:be=!0}=Z,Pe=!!ae,[,Ee]=(0,te.Z)(),{getPopupContainer:ke,getPrefixCls:je,direction:c}=a.useContext(H.E_),p=a.useRef(null),r=()=>{var et;(et=p.current)===null||et===void 0||et.forceAlign()};a.useImperativeHandle(s,()=>({forceAlign:r,forcePopupAlign:()=>{r()}}));const[S,z]=(0,w.Z)(!1,{value:(l=Z.open)!==null&&l!==void 0?l:Z.visible,defaultValue:(f=Z.defaultOpen)!==null&&f!==void 0?f:Z.defaultVisible}),G=!ie&&!Re&&ie!==0,j=et=>{var Ge,qe;z(G?!1:et),G||((Ge=Z.onOpenChange)===null||Ge===void 0||Ge.call(Z,et),(qe=Z.onVisibleChange)===null||qe===void 0||qe.call(Z,et))},_=a.useMemo(()=>{var et,Ge;let qe=Me;return typeof ae=="object"&&(qe=(Ge=(et=ae.pointAtCenter)!==null&&et!==void 0?et:ae.arrowPointAtCenter)!==null&&Ge!==void 0?Ge:Me),Te||(0,m.Z)({arrowPointAtCenter:qe,autoAdjustOverflow:be,arrowWidth:Pe?Ee.sizePopupArrow:0,borderRadius:Ee.borderRadius,offset:Ee.marginXXS,visibleFirst:!0})},[Me,ae,Te,Ee]),oe=a.useMemo(()=>ie===0?ie:Re||ie||"",[Re,ie]),U=a.createElement(X.BR,null,typeof oe=="function"?oe():oe),{getPopupContainer:re,placement:Ce="top",mouseEnterDelay:$e=.1,mouseLeaveDelay:q=.1,overlayStyle:Oe,rootClassName:ze}=Z,De=D(Z,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),Ze=je("tooltip",y),_e=je(),Ue=Z["data-popover-inject"];let ce=S;!("open"in Z)&&!("visible"in Z)&&G&&(ce=!1);const Rt=me((0,g.l$)(I)&&!(0,g.M2)(I)?I:a.createElement("span",null,I),Ze),vt=Rt.props,mt=!vt.className||typeof vt.className=="string"?x()(vt.className,L||`${Ze}-open`):vt.className,[rt,xt]=O(Ze,!Ue),Ke=$(Ze,Y),It=Ke.arrowStyle,Ht=Object.assign(Object.assign({},T),Ke.overlayStyle),Tt=x()(h,{[`${Ze}-rtl`]:c==="rtl"},Ke.className,ze,xt);return rt(a.createElement(W.Z,Object.assign({},De,{showArrow:Pe,placement:Ce,mouseEnterDelay:$e,mouseLeaveDelay:q,prefixCls:Ze,overlayClassName:Tt,overlayStyle:Object.assign(Object.assign({},It),Oe),getTooltipContainer:re||J||ke,ref:p,builtinPlacements:_,overlay:U,visible:ce,onVisibleChange:j,afterVisibleChange:u!=null?u:M,overlayInnerStyle:Ht,arrowContent:a.createElement("span",{className:`${Ze}-arrow-content`}),motion:{motionName:(0,E.m)(_e,"zoom-big-fast",Z.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!B}),ce?(0,g.Tm)(Rt,{className:mt}):Rt))});ue._InternalPanelDoNotUseOrYouWillBeFired=o;var xe=ue},25769:function(nt,ee,e){"use strict";var a=e(98040),v={"text/plain":"Text","text/html":"Url",default:"Text"},x="Copy to clipboard: #{key}, Enter";function W(E){var m=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return E.replace(/#{\s*key\s*}/g,m)}function w(E,m){var g,H,X,te,k,t,b=!1;m||(m={}),g=m.debug||!1;try{X=a(),te=document.createRange(),k=document.getSelection(),t=document.createElement("span"),t.textContent=E,t.ariaHidden="true",t.style.all="unset",t.style.position="fixed",t.style.top=0,t.style.clip="rect(0, 0, 0, 0)",t.style.whiteSpace="pre",t.style.webkitUserSelect="text",t.style.MozUserSelect="text",t.style.msUserSelect="text",t.style.userSelect="text",t.addEventListener("copy",function(Q){if(Q.stopPropagation(),m.format)if(Q.preventDefault(),typeof Q.clipboardData=="undefined"){g&&console.warn("unable to use e.clipboardData"),g&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var fe=v[m.format]||v.default;window.clipboardData.setData(fe,E)}else Q.clipboardData.clearData(),Q.clipboardData.setData(m.format,E);m.onCopy&&(Q.preventDefault(),m.onCopy(Q.clipboardData))}),document.body.appendChild(t),te.selectNodeContents(t),k.addRange(te);var ne=document.execCommand("copy");if(!ne)throw new Error("copy command was unsuccessful");b=!0}catch(Q){g&&console.error("unable to copy using execCommand: ",Q),g&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(m.format||"text",E),m.onCopy&&m.onCopy(window.clipboardData),b=!0}catch(fe){g&&console.error("unable to copy using clipboardData: ",fe),g&&console.error("falling back to prompt"),H=W("message"in m?m.message:x),window.prompt(H,E)}}finally{k&&(typeof k.removeRange=="function"?k.removeRange(te):k.removeAllRanges()),t&&document.body.removeChild(t),X()}return b}nt.exports=w},5630:function(nt,ee,e){"use strict";var a=e(96663),v=e(44127),x=e(90493),W=e(72071),w=e(6620),E=e(92310),m=e.n(E),g=e(18929),H=e(59301),X=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],te=(0,H.forwardRef)(function(k,t){var b,ne=k.prefixCls,Q=ne===void 0?"rc-checkbox":ne,fe=k.className,se=k.style,O=k.checked,P=k.disabled,$=k.defaultChecked,n=$===void 0?!1:$,o=k.type,D=o===void 0?"checkbox":o,N=k.title,me=k.onChange,ue=(0,w.Z)(k,X),xe=(0,H.useRef)(null),Z=(0,g.Z)(n,{value:O}),s=(0,W.Z)(Z,2),l=s[0],f=s[1];(0,H.useImperativeHandle)(t,function(){return{focus:function(){var h;(h=xe.current)===null||h===void 0||h.focus()},blur:function(){var h;(h=xe.current)===null||h===void 0||h.blur()},input:xe.current}});var y=m()(Q,fe,(b={},(0,x.Z)(b,"".concat(Q,"-checked"),l),(0,x.Z)(b,"".concat(Q,"-disabled"),P),b)),L=function(h){P||("checked"in k||f(h.target.checked),me==null||me({target:(0,v.Z)((0,v.Z)({},k),{},{type:D,checked:h.target.checked}),stopPropagation:function(){h.stopPropagation()},preventDefault:function(){h.preventDefault()},nativeEvent:h.nativeEvent}))};return H.createElement("span",{className:y,title:N,style:se},H.createElement("input",(0,a.Z)({},ue,{className:"".concat(Q,"-input"),ref:xe,onChange:L,disabled:P,checked:!!l,type:D})),H.createElement("span",{className:"".concat(Q,"-inner")}))});ee.Z=te},31561:function(nt,ee,e){"use strict";e.d(ee,{Z:function(){return D}});var a=e(96663),v=e(90493),x=e(72071),W=e(6620),w=e(35593),E=e(92310),m=e.n(E),g=e(8654),H=e(59301),X=e(10228),te=e(16089),k=X.Z.ESC,t=X.Z.TAB;function b(N){var me=N.visible,ue=N.triggerRef,xe=N.onVisibleChange,Z=N.autoFocus,s=N.overlayRef,l=H.useRef(!1),f=function(){if(me){var h,Y;(h=ue.current)===null||h===void 0||(Y=h.focus)===null||Y===void 0||Y.call(h),xe==null||xe(!1)}},y=function(){var h;return(h=s.current)!==null&&h!==void 0&&h.focus?(s.current.focus(),l.current=!0,!0):!1},L=function(h){switch(h.keyCode){case k:f();break;case t:{var Y=!1;l.current||(Y=y()),Y?h.preventDefault():f();break}}};H.useEffect(function(){return me?(window.addEventListener("keydown",L),Z&&(0,te.Z)(y,3),function(){window.removeEventListener("keydown",L),l.current=!1}):function(){l.current=!1}},[me])}var ne=(0,H.forwardRef)(function(N,me){var ue=N.overlay,xe=N.arrow,Z=N.prefixCls,s=(0,H.useMemo)(function(){var f;return typeof ue=="function"?f=ue():f=ue,f},[ue]),l=(0,g.sQ)(me,s==null?void 0:s.ref);return H.createElement(H.Fragment,null,xe&&H.createElement("div",{className:"".concat(Z,"-arrow")}),H.cloneElement(s,{ref:(0,g.Yr)(s)?l:void 0}))}),Q=ne,fe={adjustX:1,adjustY:1},se=[0,0],O={topLeft:{points:["bl","tl"],overflow:fe,offset:[0,-4],targetOffset:se},top:{points:["bc","tc"],overflow:fe,offset:[0,-4],targetOffset:se},topRight:{points:["br","tr"],overflow:fe,offset:[0,-4],targetOffset:se},bottomLeft:{points:["tl","bl"],overflow:fe,offset:[0,4],targetOffset:se},bottom:{points:["tc","bc"],overflow:fe,offset:[0,4],targetOffset:se},bottomRight:{points:["tr","br"],overflow:fe,offset:[0,4],targetOffset:se}},P=O,$=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function n(N,me){var ue,xe=N.arrow,Z=xe===void 0?!1:xe,s=N.prefixCls,l=s===void 0?"rc-dropdown":s,f=N.transitionName,y=N.animation,L=N.align,J=N.placement,h=J===void 0?"bottomLeft":J,Y=N.placements,T=Y===void 0?P:Y,I=N.getPopupContainer,u=N.showAction,M=N.hideAction,B=N.overlayClassName,ae=N.overlayStyle,ie=N.visible,Re=N.trigger,Te=Re===void 0?["hover"]:Re,Me=N.autoFocus,be=N.overlay,Pe=N.children,Ee=N.onVisibleChange,ke=(0,W.Z)(N,$),je=H.useState(),c=(0,x.Z)(je,2),p=c[0],r=c[1],S="visible"in N?ie:p,z=H.useRef(null),G=H.useRef(null),j=H.useRef(null);H.useImperativeHandle(me,function(){return z.current});var _=function(De){r(De),Ee==null||Ee(De)};b({visible:S,triggerRef:j,onVisibleChange:_,autoFocus:Me,overlayRef:G});var oe=function(De){var Ze=N.onOverlayClick;r(!1),Ze&&Ze(De)},U=function(){return H.createElement(Q,{ref:G,overlay:be,prefixCls:l,arrow:Z})},re=function(){return typeof be=="function"?U:U()},Ce=function(){var De=N.minOverlayWidthMatchTrigger,Ze=N.alignPoint;return"minOverlayWidthMatchTrigger"in N?De:!Ze},$e=function(){var De=N.openClassName;return De!==void 0?De:"".concat(l,"-open")},q=H.cloneElement(Pe,{className:m()((ue=Pe.props)===null||ue===void 0?void 0:ue.className,S&&$e()),ref:(0,g.Yr)(Pe)?(0,g.sQ)(j,Pe.ref):void 0}),Oe=M;return!Oe&&Te.indexOf("contextMenu")!==-1&&(Oe=["click"]),H.createElement(w.Z,(0,a.Z)({builtinPlacements:T},ke,{prefixCls:l,ref:z,popupClassName:m()(B,(0,v.Z)({},"".concat(l,"-show-arrow"),Z)),popupStyle:ae,action:Te,showAction:u,hideAction:Oe,popupPlacement:h,popupAlign:L,popupTransitionName:f,popupAnimation:y,popupVisible:S,stretch:Ce()?"minWidth":"",popup:re(),onPopupVisibleChange:_,onPopupClick:oe,getPopupContainer:I}),q)}var o=H.forwardRef(n),D=o},93681:function(nt,ee,e){"use strict";e.r(ee),e.d(ee,{BaseInput:function(){return X},default:function(){return O}});var a=e(96663),v=e(44127),x=e(90493),W=e(20135),w=e(92310),E=e.n(w),m=e(59301),g=e(5643),H=function($){var n,o,D=$.inputElement,N=$.prefixCls,me=$.prefix,ue=$.suffix,xe=$.addonBefore,Z=$.addonAfter,s=$.className,l=$.style,f=$.disabled,y=$.readOnly,L=$.focused,J=$.triggerFocus,h=$.allowClear,Y=$.value,T=$.handleReset,I=$.hidden,u=$.classes,M=$.classNames,B=$.dataAttrs,ae=$.styles,ie=$.components,Re=(ie==null?void 0:ie.affixWrapper)||"span",Te=(ie==null?void 0:ie.groupWrapper)||"span",Me=(ie==null?void 0:ie.wrapper)||"span",be=(ie==null?void 0:ie.groupAddon)||"span",Pe=(0,m.useRef)(null),Ee=function(U){var re;(re=Pe.current)!==null&&re!==void 0&&re.contains(U.target)&&(J==null||J())},ke=function(){var U;if(!h)return null;var re=!f&&!y&&Y,Ce="".concat(N,"-clear-icon"),$e=(0,W.Z)(h)==="object"&&h!==null&&h!==void 0&&h.clearIcon?h.clearIcon:"\u2716";return m.createElement("span",{onClick:T,onMouseDown:function(Oe){return Oe.preventDefault()},className:E()(Ce,(U={},(0,x.Z)(U,"".concat(Ce,"-hidden"),!re),(0,x.Z)(U,"".concat(Ce,"-has-suffix"),!!ue),U)),role:"button",tabIndex:-1},$e)},je=(0,m.cloneElement)(D,{value:Y,hidden:I,className:E()((n=D.props)===null||n===void 0?void 0:n.className,!(0,g.X3)($)&&!(0,g.He)($)&&s)||null,style:(0,v.Z)((0,v.Z)({},(o=D.props)===null||o===void 0?void 0:o.style),!(0,g.X3)($)&&!(0,g.He)($)?l:{})});if((0,g.X3)($)){var c,p="".concat(N,"-affix-wrapper"),r=E()(p,(c={},(0,x.Z)(c,"".concat(p,"-disabled"),f),(0,x.Z)(c,"".concat(p,"-focused"),L),(0,x.Z)(c,"".concat(p,"-readonly"),y),(0,x.Z)(c,"".concat(p,"-input-with-clear-btn"),ue&&h&&Y),c),!(0,g.He)($)&&s,u==null?void 0:u.affixWrapper,M==null?void 0:M.affixWrapper),S=(ue||h)&&m.createElement("span",{className:E()("".concat(N,"-suffix"),M==null?void 0:M.suffix),style:ae==null?void 0:ae.suffix},ke(),ue);je=m.createElement(Re,(0,a.Z)({className:r,style:(0,v.Z)((0,v.Z)({},(0,g.He)($)?void 0:l),ae==null?void 0:ae.affixWrapper),hidden:!(0,g.He)($)&&I,onClick:Ee},B==null?void 0:B.affixWrapper,{ref:Pe}),me&&m.createElement("span",{className:E()("".concat(N,"-prefix"),M==null?void 0:M.prefix),style:ae==null?void 0:ae.prefix},me),(0,m.cloneElement)(D,{value:Y,hidden:null}),S)}if((0,g.He)($)){var z="".concat(N,"-group"),G="".concat(z,"-addon"),j=E()("".concat(N,"-wrapper"),z,u==null?void 0:u.wrapper),_=E()("".concat(N,"-group-wrapper"),s,u==null?void 0:u.group);return m.createElement(Te,{className:_,style:l,hidden:I},m.createElement(Me,{className:j},xe&&m.createElement(be,{className:G},xe),(0,m.cloneElement)(je,{hidden:null}),Z&&m.createElement(be,{className:G},Z)))}return je},X=H,te=e(19127),k=e(72071),t=e(6620),b=e(18929),ne=e(2738),Q=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","type","classes","classNames","styles"],fe=(0,m.forwardRef)(function(P,$){var n=P.autoComplete,o=P.onChange,D=P.onFocus,N=P.onBlur,me=P.onPressEnter,ue=P.onKeyDown,xe=P.prefixCls,Z=xe===void 0?"rc-input":xe,s=P.disabled,l=P.htmlSize,f=P.className,y=P.maxLength,L=P.suffix,J=P.showCount,h=P.type,Y=h===void 0?"text":h,T=P.classes,I=P.classNames,u=P.styles,M=(0,t.Z)(P,Q),B=(0,b.Z)(P.defaultValue,{value:P.value}),ae=(0,k.Z)(B,2),ie=ae[0],Re=ae[1],Te=(0,m.useState)(!1),Me=(0,k.Z)(Te,2),be=Me[0],Pe=Me[1],Ee=(0,m.useRef)(null),ke=function(_){Ee.current&&(0,g.nH)(Ee.current,_)};(0,m.useImperativeHandle)($,function(){return{focus:ke,blur:function(){var _;(_=Ee.current)===null||_===void 0||_.blur()},setSelectionRange:function(_,oe,U){var re;(re=Ee.current)===null||re===void 0||re.setSelectionRange(_,oe,U)},select:function(){var _;(_=Ee.current)===null||_===void 0||_.select()},input:Ee.current}}),(0,m.useEffect)(function(){Pe(function(j){return j&&s?!1:j})},[s]);var je=function(_){P.value===void 0&&Re(_.target.value),Ee.current&&(0,g.rJ)(Ee.current,_,o)},c=function(_){me&&_.key==="Enter"&&me(_),ue==null||ue(_)},p=function(_){Pe(!0),D==null||D(_)},r=function(_){Pe(!1),N==null||N(_)},S=function(_){Re(""),ke(),Ee.current&&(0,g.rJ)(Ee.current,_,o)},z=function(){var _=(0,ne.Z)(P,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","classes","htmlSize","styles","classNames"]);return m.createElement("input",(0,a.Z)({autoComplete:n},_,{onChange:je,onFocus:p,onBlur:r,onKeyDown:c,className:E()(Z,(0,x.Z)({},"".concat(Z,"-disabled"),s),I==null?void 0:I.input),style:u==null?void 0:u.input,ref:Ee,size:l,type:Y}))},G=function(){var _=Number(y)>0;if(L||J){var oe=(0,g.D7)(ie),U=(0,te.Z)(oe).length,re=(0,W.Z)(J)==="object"?J.formatter({value:oe,count:U,maxLength:y}):"".concat(U).concat(_?" / ".concat(y):"");return m.createElement(m.Fragment,null,!!J&&m.createElement("span",{className:E()("".concat(Z,"-show-count-suffix"),(0,x.Z)({},"".concat(Z,"-show-count-has-suffix"),!!L),I==null?void 0:I.count),style:(0,v.Z)({},u==null?void 0:u.count)},re),L)}return null};return m.createElement(X,(0,a.Z)({},M,{prefixCls:Z,className:f,inputElement:z(),handleReset:S,value:(0,g.D7)(ie),focused:be,triggerFocus:ke,suffix:G(),disabled:s,classes:T,classNames:I,styles:u}))}),se=fe,O=se},5643:function(nt,ee,e){"use strict";e.d(ee,{D7:function(){return w},He:function(){return a},X3:function(){return v},nH:function(){return W},rJ:function(){return x}});function a(E){return!!(E.addonBefore||E.addonAfter)}function v(E){return!!(E.prefix||E.suffix||E.allowClear)}function x(E,m,g,H){if(g){var X=m;if(m.type==="click"){var te=E.cloneNode(!0);X=Object.create(m,{target:{value:te},currentTarget:{value:te}}),te.value="",g(X);return}if(H!==void 0){X=Object.create(m,{target:{value:E},currentTarget:{value:E}}),E.value=H,g(X);return}g(X)}}function W(E,m){if(E){E.focus(m);var g=m||{},H=g.cursor;if(H){var X=E.value.length;switch(H){case"start":E.setSelectionRange(0,0);break;case"end":E.setSelectionRange(X,X);break;default:E.setSelectionRange(0,X)}}}}function w(E){return typeof E=="undefined"||E===null?"":String(E)}},15285:function(nt,ee,e){"use strict";e.d(ee,{iz:function(){return Bt},ck:function(){return Ge},BW:function(){return un},sN:function(){return Ge},Wd:function(){return bt},ZP:function(){return we},Xl:function(){return ue}});var a=e(96663),v=e(90493),x=e(44127),W=e(19127),w=e(72071),E=e(6620),m=e(92310),g=e.n(m),H=e(11780),X=e(18929),te=e(13697),k=e(48736),t=e(59301),b=e(4676),ne=t.createContext(null);function Q(i,d){return i===void 0?null:"".concat(i,"-").concat(d)}function fe(i){var d=t.useContext(ne);return Q(d,i)}var se=e(80547),O=["children","locked"],P=t.createContext(null);function $(i,d){var R=(0,x.Z)({},i);return Object.keys(d).forEach(function(A){var C=d[A];C!==void 0&&(R[A]=C)}),R}function n(i){var d=i.children,R=i.locked,A=(0,E.Z)(i,O),C=t.useContext(P),K=(0,se.Z)(function(){return $(C,A)},[C,A],function(F,ye){return!R&&(F[0]!==ye[0]||!(0,te.Z)(F[1],ye[1],!0))});return t.createElement(P.Provider,{value:K},d)}var o=[],D=t.createContext(null);function N(){return t.useContext(D)}var me=t.createContext(o);function ue(i){var d=t.useContext(me);return t.useMemo(function(){return i!==void 0?[].concat((0,W.Z)(d),[i]):d},[d,i])}var xe=t.createContext(null),Z=t.createContext({}),s=Z,l=e(29194);function f(i){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if((0,l.Z)(i)){var R=i.nodeName.toLowerCase(),A=["input","select","textarea","button"].includes(R)||i.isContentEditable||R==="a"&&!!i.getAttribute("href"),C=i.getAttribute("tabindex"),K=Number(C),F=null;return C&&!Number.isNaN(K)?F=K:A&&F===null&&(F=0),A&&i.disabled&&(F=null),F!==null&&(F>=0||d&&F<0)}return!1}function y(i){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,R=(0,W.Z)(i.querySelectorAll("*")).filter(function(A){return f(A,d)});return f(i,d)&&R.unshift(i),R}var L=null;function J(){L=document.activeElement}function h(){L=null}function Y(){if(L)try{L.focus()}catch(i){}}function T(i,d){if(d.keyCode===9){var R=y(i),A=R[d.shiftKey?0:R.length-1],C=A===document.activeElement||i===document.activeElement;if(C){var K=R[d.shiftKey?R.length-1:0];K.focus(),d.preventDefault()}}}var I=e(10228),u=e(16089),M=I.Z.LEFT,B=I.Z.RIGHT,ae=I.Z.UP,ie=I.Z.DOWN,Re=I.Z.ENTER,Te=I.Z.ESC,Me=I.Z.HOME,be=I.Z.END,Pe=[ae,ie,M,B];function Ee(i,d,R,A){var C,K,F,ye,Ae="prev",ge="next",ct="children",He="parent";if(i==="inline"&&A===Re)return{inlineTrigger:!0};var tt=(C={},(0,v.Z)(C,ae,Ae),(0,v.Z)(C,ie,ge),C),Be=(K={},(0,v.Z)(K,M,R?ge:Ae),(0,v.Z)(K,B,R?Ae:ge),(0,v.Z)(K,ie,ct),(0,v.Z)(K,Re,ct),K),ve=(F={},(0,v.Z)(F,ae,Ae),(0,v.Z)(F,ie,ge),(0,v.Z)(F,Re,ct),(0,v.Z)(F,Te,He),(0,v.Z)(F,M,R?ct:He),(0,v.Z)(F,B,R?He:ct),F),dt={inline:tt,horizontal:Be,vertical:ve,inlineSub:tt,horizontalSub:ve,verticalSub:ve},st=(ye=dt["".concat(i).concat(d?"":"Sub")])===null||ye===void 0?void 0:ye[A];switch(st){case Ae:return{offset:-1,sibling:!0};case ge:return{offset:1,sibling:!0};case He:return{offset:-1,sibling:!1};case ct:return{offset:1,sibling:!1};default:return null}}function ke(i){for(var d=i;d;){if(d.getAttribute("data-menu-list"))return d;d=d.parentElement}return null}function je(i,d){for(var R=i||document.activeElement;R;){if(d.has(R))return R;R=R.parentElement}return null}function c(i,d){var R=y(i,!0);return R.filter(function(A){return d.has(A)})}function p(i,d,R){var A=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!i)return null;var C=c(i,d),K=C.length,F=C.findIndex(function(ye){return R===ye});return A<0?F===-1?F=K-1:F-=1:A>0&&(F+=1),F=(F+K)%K,C[F]}var r=function(d,R){var A=new Set,C=new Map,K=new Map;return d.forEach(function(F){var ye=document.querySelector("[data-menu-id='".concat(Q(R,F),"']"));ye&&(A.add(ye),K.set(ye,F),C.set(F,ye))}),{elements:A,key2element:C,element2key:K}};function S(i,d,R,A,C,K,F,ye,Ae,ge){var ct=t.useRef(),He=t.useRef();He.current=d;var tt=function(){u.Z.cancel(ct.current)};return t.useEffect(function(){return function(){tt()}},[]),function(Be){var ve=Be.which;if([].concat(Pe,[Re,Te,Me,be]).includes(ve)){var dt=K(),st=r(dt,A),Ct=st,lt=Ct.elements,Qe=Ct.key2element,Xe=Ct.element2key,Ve=Qe.get(d),gt=je(Ve,lt),Lt=Xe.get(gt),ft=Ee(i,F(Lt,!0).length===1,R,ve);if(!ft&&ve!==Me&&ve!==be)return;(Pe.includes(ve)||[Me,be].includes(ve))&&Be.preventDefault();var nn=function(_t){if(_t){var Gt=_t,dn=_t.querySelector("a");dn!=null&&dn.getAttribute("href")&&(Gt=dn);var Et=Xe.get(_t);ye(Et),tt(),ct.current=(0,u.Z)(function(){He.current===Et&&Gt.focus()})}};if([Me,be].includes(ve)||ft.sibling||!gt){var St;!gt||i==="inline"?St=C.current:St=ke(gt);var zt,Pt=c(St,lt);ve===Me?zt=Pt[0]:ve===be?zt=Pt[Pt.length-1]:zt=p(St,lt,gt,ft.offset),nn(zt)}else if(ft.inlineTrigger)Ae(Lt);else if(ft.offset>0)Ae(Lt,!0),tt(),ct.current=(0,u.Z)(function(){st=r(dt,A);var cn=gt.getAttribute("aria-controls"),_t=document.getElementById(cn),Gt=p(_t,st.elements);nn(Gt)},5);else if(ft.offset<0){var Zt=F(Lt,!0),Ut=Zt[Zt.length-2],Yt=Qe.get(Ut);Ae(Ut,!1),nn(Yt)}}ge==null||ge(Be)}}function z(i){Promise.resolve().then(i)}var G="__RC_UTIL_PATH_SPLIT__",j=function(d){return d.join(G)},_=function(d){return d.split(G)},oe="rc-menu-more";function U(){var i=t.useState({}),d=(0,w.Z)(i,2),R=d[1],A=(0,t.useRef)(new Map),C=(0,t.useRef)(new Map),K=t.useState([]),F=(0,w.Z)(K,2),ye=F[0],Ae=F[1],ge=(0,t.useRef)(0),ct=(0,t.useRef)(!1),He=function(){ct.current||R({})},tt=(0,t.useCallback)(function(Qe,Xe){var Ve=j(Xe);C.current.set(Ve,Qe),A.current.set(Qe,Ve),ge.current+=1;var gt=ge.current;z(function(){gt===ge.current&&He()})},[]),Be=(0,t.useCallback)(function(Qe,Xe){var Ve=j(Xe);C.current.delete(Ve),A.current.delete(Qe)},[]),ve=(0,t.useCallback)(function(Qe){Ae(Qe)},[]),dt=(0,t.useCallback)(function(Qe,Xe){var Ve=A.current.get(Qe)||"",gt=_(Ve);return Xe&&ye.includes(gt[0])&>.unshift(oe),gt},[ye]),st=(0,t.useCallback)(function(Qe,Xe){return Qe.some(function(Ve){var gt=dt(Ve,!0);return gt.includes(Xe)})},[dt]),Ct=function(){var Xe=(0,W.Z)(A.current.keys());return ye.length&&Xe.push(oe),Xe},lt=(0,t.useCallback)(function(Qe){var Xe="".concat(A.current.get(Qe)).concat(G),Ve=new Set;return(0,W.Z)(C.current.keys()).forEach(function(gt){gt.startsWith(Xe)&&Ve.add(C.current.get(gt))}),Ve},[]);return t.useEffect(function(){return function(){ct.current=!0}},[]),{registerPath:tt,unregisterPath:Be,refreshOverflowKeys:ve,isSubPathKey:st,getKeyPath:dt,getKeys:Ct,getSubPathKeys:lt}}function re(i){var d=t.useRef(i);d.current=i;var R=t.useCallback(function(){for(var A,C=arguments.length,K=new Array(C),F=0;F<C;F++)K[F]=arguments[F];return(A=d.current)===null||A===void 0?void 0:A.call.apply(A,[d].concat(K))},[]);return i?R:void 0}var Ce=Math.random().toFixed(5).toString().slice(2),$e=0;function q(i){var d=(0,X.Z)(i,{value:i}),R=(0,w.Z)(d,2),A=R[0],C=R[1];return t.useEffect(function(){$e+=1;var K="".concat(Ce,"-").concat($e);C("rc-menu-uuid-".concat(K))},[]),A}var Oe=e(52884),ze=e(95727),De=e(65711),Ze=e(85745),_e=e(2738),Ue=e(8654);function ce(i,d,R,A){var C=t.useContext(P),K=C.activeKey,F=C.onActive,ye=C.onInactive,Ae={active:K===i};return d||(Ae.onMouseEnter=function(ge){R==null||R({key:i,domEvent:ge}),F(i)},Ae.onMouseLeave=function(ge){A==null||A({key:i,domEvent:ge}),ye(i)}),Ae}function Rt(i){var d=t.useContext(P),R=d.mode,A=d.rtl,C=d.inlineIndent;if(R!=="inline")return null;var K=i;return A?{paddingRight:K*C}:{paddingLeft:K*C}}function vt(i){var d=i.icon,R=i.props,A=i.children,C;return d===null||d===!1?null:(typeof d=="function"?C=t.createElement(d,(0,x.Z)({},R)):typeof d!="boolean"&&(C=d),C||A||null)}var mt=["item"];function rt(i){var d=i.item,R=(0,E.Z)(i,mt);return Object.defineProperty(R,"item",{get:function(){return(0,k.ZP)(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),d}}),R}var xt=["title","attribute","elementRef"],Ke=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],It=["active"],Ht=function(i){(0,De.Z)(R,i);var d=(0,Ze.Z)(R);function R(){return(0,Oe.Z)(this,R),d.apply(this,arguments)}return(0,ze.Z)(R,[{key:"render",value:function(){var C=this.props,K=C.title,F=C.attribute,ye=C.elementRef,Ae=(0,E.Z)(C,xt),ge=(0,_e.Z)(Ae,["eventKey","popupClassName","popupOffset","onTitleClick"]);return(0,k.ZP)(!F,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),t.createElement(H.Z.Item,(0,a.Z)({},F,{title:typeof K=="string"?K:void 0},ge,{ref:ye}))}}]),R}(t.Component),Tt=t.forwardRef(function(i,d){var R,A=i.style,C=i.className,K=i.eventKey,F=i.warnKey,ye=i.disabled,Ae=i.itemIcon,ge=i.children,ct=i.role,He=i.onMouseEnter,tt=i.onMouseLeave,Be=i.onClick,ve=i.onKeyDown,dt=i.onFocus,st=(0,E.Z)(i,Ke),Ct=fe(K),lt=t.useContext(P),Qe=lt.prefixCls,Xe=lt.onItemClick,Ve=lt.disabled,gt=lt.overflowDisabled,Lt=lt.itemIcon,ft=lt.selectedKeys,nn=lt.onActive,St=t.useContext(s),zt=St._internalRenderMenuItem,Pt="".concat(Qe,"-item"),Zt=t.useRef(),Ut=t.useRef(),Yt=Ve||ye,cn=(0,Ue.x1)(d,Ut),_t=ue(K),Gt=function($t){return{key:K,keyPath:(0,W.Z)(_t).reverse(),item:Zt.current,domEvent:$t}},dn=Ae||Lt,Et=ce(K,Yt,He,tt),wn=Et.active,$n=(0,E.Z)(Et,It),Cn=ft.includes(K),xn=Rt(_t.length),fn=function($t){if(!Yt){var Qt=Gt($t);Be==null||Be(rt(Qt)),Xe(Qt)}},Xt=function($t){if(ve==null||ve($t),$t.which===I.Z.ENTER){var Qt=Gt($t);Be==null||Be(rt(Qt)),Xe(Qt)}},ln=function($t){nn(K),dt==null||dt($t)},hn={};i.role==="option"&&(hn["aria-selected"]=Cn);var Rn=t.createElement(Ht,(0,a.Z)({ref:Zt,elementRef:cn,role:ct===null?"none":ct||"menuitem",tabIndex:ye?null:-1,"data-menu-id":gt&&Ct?null:Ct},st,$n,hn,{component:"li","aria-disabled":ye,style:(0,x.Z)((0,x.Z)({},xn),A),className:g()(Pt,(R={},(0,v.Z)(R,"".concat(Pt,"-active"),wn),(0,v.Z)(R,"".concat(Pt,"-selected"),Cn),(0,v.Z)(R,"".concat(Pt,"-disabled"),Yt),R),C),onClick:fn,onKeyDown:Xt,onFocus:ln}),ge,t.createElement(vt,{props:(0,x.Z)((0,x.Z)({},i),{},{isSelected:Cn}),icon:dn}));return zt&&(Rn=zt(Rn,i,{selected:Cn})),Rn});function et(i,d){var R=i.eventKey,A=N(),C=ue(R);return t.useEffect(function(){if(A)return A.registerPath(R,C),function(){A.unregisterPath(R,C)}},[C]),A?null:t.createElement(Tt,(0,a.Z)({},i,{ref:d}))}var Ge=t.forwardRef(et),qe=["className","children"],yt=function(d,R){var A=d.className,C=d.children,K=(0,E.Z)(d,qe),F=t.useContext(P),ye=F.prefixCls,Ae=F.mode,ge=F.rtl;return t.createElement("ul",(0,a.Z)({className:g()(ye,ge&&"".concat(ye,"-rtl"),"".concat(ye,"-sub"),"".concat(ye,"-").concat(Ae==="inline"?"inline":"vertical"),A),role:"menu"},K,{"data-menu-list":!0,ref:R}),C)},We=t.forwardRef(yt);We.displayName="SubMenuList";var Mt=We,ht=e(11592);function Ot(i,d){return(0,ht.Z)(i).map(function(R,A){if(t.isValidElement(R)){var C,K,F=R.key,ye=(C=(K=R.props)===null||K===void 0?void 0:K.eventKey)!==null&&C!==void 0?C:F,Ae=ye==null;Ae&&(ye="tmp_key-".concat([].concat((0,W.Z)(d),[A]).join("-")));var ge={key:ye,eventKey:ye};return t.cloneElement(R,ge)}return R})}var Dt=e(35593),at={adjustX:1,adjustY:1},mn={topLeft:{points:["bl","tl"],overflow:at},topRight:{points:["br","tr"],overflow:at},bottomLeft:{points:["tl","bl"],overflow:at},bottomRight:{points:["tr","br"],overflow:at},leftTop:{points:["tr","tl"],overflow:at},leftBottom:{points:["br","bl"],overflow:at},rightTop:{points:["tl","tr"],overflow:at},rightBottom:{points:["bl","br"],overflow:at}},kt={topLeft:{points:["bl","tl"],overflow:at},topRight:{points:["br","tr"],overflow:at},bottomLeft:{points:["tl","bl"],overflow:at},bottomRight:{points:["tr","br"],overflow:at},rightTop:{points:["tr","tl"],overflow:at},rightBottom:{points:["br","bl"],overflow:at},leftTop:{points:["tl","tr"],overflow:at},leftBottom:{points:["bl","br"],overflow:at}},ot=null;function V(i,d,R){if(d)return d;if(R)return R[i]||R.other}var pe={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function Se(i){var d=i.prefixCls,R=i.visible,A=i.children,C=i.popup,K=i.popupStyle,F=i.popupClassName,ye=i.popupOffset,Ae=i.disabled,ge=i.mode,ct=i.onVisibleChange,He=t.useContext(P),tt=He.getPopupContainer,Be=He.rtl,ve=He.subMenuOpenDelay,dt=He.subMenuCloseDelay,st=He.builtinPlacements,Ct=He.triggerSubMenuAction,lt=He.forceSubMenuRender,Qe=He.rootClassName,Xe=He.motion,Ve=He.defaultMotions,gt=t.useState(!1),Lt=(0,w.Z)(gt,2),ft=Lt[0],nn=Lt[1],St=Be?(0,x.Z)((0,x.Z)({},kt),st):(0,x.Z)((0,x.Z)({},mn),st),zt=pe[ge],Pt=V(ge,Xe,Ve),Zt=t.useRef(Pt);ge!=="inline"&&(Zt.current=Pt);var Ut=(0,x.Z)((0,x.Z)({},Zt.current),{},{leavedClassName:"".concat(d,"-hidden"),removeOnLeave:!1,motionAppear:!0}),Yt=t.useRef();return t.useEffect(function(){return Yt.current=(0,u.Z)(function(){nn(R)}),function(){u.Z.cancel(Yt.current)}},[R]),t.createElement(Dt.Z,{prefixCls:d,popupClassName:g()("".concat(d,"-popup"),(0,v.Z)({},"".concat(d,"-rtl"),Be),F,Qe),stretch:ge==="horizontal"?"minWidth":null,getPopupContainer:tt,builtinPlacements:St,popupPlacement:zt,popupVisible:ft,popup:C,popupStyle:K,popupAlign:ye&&{offset:ye},action:Ae?[]:[Ct],mouseEnterDelay:ve,mouseLeaveDelay:dt,onPopupVisibleChange:ct,forceRender:lt,popupMotion:Ut,fresh:!0},A)}var le=e(77900);function Je(i){var d=i.id,R=i.open,A=i.keyPath,C=i.children,K="inline",F=t.useContext(P),ye=F.prefixCls,Ae=F.forceSubMenuRender,ge=F.motion,ct=F.defaultMotions,He=F.mode,tt=t.useRef(!1);tt.current=He===K;var Be=t.useState(!tt.current),ve=(0,w.Z)(Be,2),dt=ve[0],st=ve[1],Ct=tt.current?R:!1;t.useEffect(function(){tt.current&&st(!1)},[He]);var lt=(0,x.Z)({},V(K,ge,ct));A.length>1&&(lt.motionAppear=!1);var Qe=lt.onVisibleChanged;return lt.onVisibleChanged=function(Xe){return!tt.current&&!Xe&&st(!0),Qe==null?void 0:Qe(Xe)},dt?null:t.createElement(n,{mode:K,locked:!tt.current},t.createElement(le.default,(0,a.Z)({visible:Ct},lt,{forceRender:Ae,removeOnLeave:!1,leavedClassName:"".concat(ye,"-hidden")}),function(Xe){var Ve=Xe.className,gt=Xe.style;return t.createElement(Mt,{id:d,className:Ve,style:gt},C)}))}var Fe=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],ut=["active"],Ye=function(d){var R,A=d.style,C=d.className,K=d.title,F=d.eventKey,ye=d.warnKey,Ae=d.disabled,ge=d.internalPopupClose,ct=d.children,He=d.itemIcon,tt=d.expandIcon,Be=d.popupClassName,ve=d.popupOffset,dt=d.popupStyle,st=d.onClick,Ct=d.onMouseEnter,lt=d.onMouseLeave,Qe=d.onTitleClick,Xe=d.onTitleMouseEnter,Ve=d.onTitleMouseLeave,gt=(0,E.Z)(d,Fe),Lt=fe(F),ft=t.useContext(P),nn=ft.prefixCls,St=ft.mode,zt=ft.openKeys,Pt=ft.disabled,Zt=ft.overflowDisabled,Ut=ft.activeKey,Yt=ft.selectedKeys,cn=ft.itemIcon,_t=ft.expandIcon,Gt=ft.onItemClick,dn=ft.onOpenChange,Et=ft.onActive,wn=t.useContext(s),$n=wn._internalRenderSubMenuItem,Cn=t.useContext(xe),xn=Cn.isSubPathKey,fn=ue(),Xt="".concat(nn,"-submenu"),ln=Pt||Ae,hn=t.useRef(),Rn=t.useRef(),gn=He!=null?He:cn,$t=tt!=null?tt:_t,Qt=zt.includes(F),vn=!Zt&&Qt,In=xn(Yt,F),sn=ce(F,ln,Xe,Ve),On=sn.active,Mn=(0,E.Z)(sn,ut),Dn=t.useState(!1),jn=(0,w.Z)(Dn,2),Bn=jn[0],Kn=jn[1],Fn=function(en){ln||Kn(en)},pn=function(en){Fn(!0),Ct==null||Ct({key:F,domEvent:en})},Hn=function(en){Fn(!1),lt==null||lt({key:F,domEvent:en})},Ln=t.useMemo(function(){return On||(St!=="inline"?Bn||xn([Ut],F):!1)},[St,On,Ut,Bn,F,xn]),zn=Rt(fn.length),Vn=function(en){ln||(Qe==null||Qe({key:F,domEvent:en}),St==="inline"&&dn(F,!Qt))},Nn=re(function(rn){st==null||st(rt(rn)),Gt(rn)}),An=function(en){St!=="inline"&&dn(F,en)},_n=function(){Et(F)},qt=Lt&&"".concat(Lt,"-popup"),Zn=t.createElement("div",(0,a.Z)({role:"menuitem",style:zn,className:"".concat(Xt,"-title"),tabIndex:ln?null:-1,ref:hn,title:typeof K=="string"?K:null,"data-menu-id":Zt&&Lt?null:Lt,"aria-expanded":vn,"aria-haspopup":!0,"aria-controls":qt,"aria-disabled":ln,onClick:Vn,onFocus:_n},Mn),K,t.createElement(vt,{icon:St!=="horizontal"?$t:void 0,props:(0,x.Z)((0,x.Z)({},d),{},{isOpen:vn,isSubMenu:!0})},t.createElement("i",{className:"".concat(Xt,"-arrow")}))),jt=t.useRef(St);if(St!=="inline"&&fn.length>1?jt.current="vertical":jt.current=St,!Zt){var yn=jt.current;Zn=t.createElement(Se,{mode:yn,prefixCls:Xt,visible:!ge&&vn&&St!=="inline",popupClassName:Be,popupOffset:ve,popupStyle:dt,popup:t.createElement(n,{mode:yn==="horizontal"?"vertical":yn},t.createElement(Mt,{id:qt,ref:Rn},ct)),disabled:ln,onVisibleChange:An},Zn)}var bn=t.createElement(H.Z.Item,(0,a.Z)({role:"none"},gt,{component:"li",style:A,className:g()(Xt,"".concat(Xt,"-").concat(St),C,(R={},(0,v.Z)(R,"".concat(Xt,"-open"),vn),(0,v.Z)(R,"".concat(Xt,"-active"),Ln),(0,v.Z)(R,"".concat(Xt,"-selected"),In),(0,v.Z)(R,"".concat(Xt,"-disabled"),ln),R)),onMouseEnter:pn,onMouseLeave:Hn}),Zn,!Zt&&t.createElement(Je,{id:qt,open:vn,keyPath:fn},ct));return $n&&(bn=$n(bn,d,{selected:In,active:Ln,open:vn,disabled:ln})),t.createElement(n,{onItemClick:Nn,mode:St==="horizontal"?"vertical":St,itemIcon:gn,expandIcon:$t},bn)};function bt(i){var d=i.eventKey,R=i.children,A=ue(d),C=Ot(R,A),K=N();t.useEffect(function(){if(K)return K.registerPath(d,A),function(){K.unregisterPath(d,A)}},[A]);var F;return K?F=C:F=t.createElement(Ye,i,C),t.createElement(me.Provider,{value:A},F)}var tn=e(20135),Jt=["className","title","eventKey","children"],an=["children"],it=function(d){var R=d.className,A=d.title,C=d.eventKey,K=d.children,F=(0,E.Z)(d,Jt),ye=t.useContext(P),Ae=ye.prefixCls,ge="".concat(Ae,"-item-group");return t.createElement("li",(0,a.Z)({role:"presentation"},F,{onClick:function(He){return He.stopPropagation()},className:g()(ge,R)}),t.createElement("div",{role:"presentation",className:"".concat(ge,"-title"),title:typeof A=="string"?A:void 0},A),t.createElement("ul",{role:"group",className:"".concat(ge,"-list")},K))};function un(i){var d=i.children,R=(0,E.Z)(i,an),A=ue(R.eventKey),C=Ot(d,A),K=N();return K?C:t.createElement(it,(0,_e.Z)(R,["warnKey"]),C)}function Bt(i){var d=i.className,R=i.style,A=t.useContext(P),C=A.prefixCls,K=N();return K?null:t.createElement("li",{role:"separator",className:g()("".concat(C,"-item-divider"),d),style:R})}var Pn=["label","children","key","type"];function on(i){return(i||[]).map(function(d,R){if(d&&(0,tn.Z)(d)==="object"){var A=d,C=A.label,K=A.children,F=A.key,ye=A.type,Ae=(0,E.Z)(A,Pn),ge=F!=null?F:"tmp-".concat(R);return K||ye==="group"?ye==="group"?t.createElement(un,(0,a.Z)({key:ge},Ae,{title:C}),on(K)):t.createElement(bt,(0,a.Z)({key:ge},Ae,{title:C}),on(K)):ye==="divider"?t.createElement(Bt,(0,a.Z)({key:ge},Ae)):t.createElement(Ge,(0,a.Z)({key:ge},Ae),C)}return null}).filter(function(d){return d})}function he(i,d,R){var A=i;return d&&(A=on(d)),Ot(A,R)}var Ne=["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"],Le=[],Vt=t.forwardRef(function(i,d){var R,A,C=i,K=C.prefixCls,F=K===void 0?"rc-menu":K,ye=C.rootClassName,Ae=C.style,ge=C.className,ct=C.tabIndex,He=ct===void 0?0:ct,tt=C.items,Be=C.children,ve=C.direction,dt=C.id,st=C.mode,Ct=st===void 0?"vertical":st,lt=C.inlineCollapsed,Qe=C.disabled,Xe=C.disabledOverflow,Ve=C.subMenuOpenDelay,gt=Ve===void 0?.1:Ve,Lt=C.subMenuCloseDelay,ft=Lt===void 0?.1:Lt,nn=C.forceSubMenuRender,St=C.defaultOpenKeys,zt=C.openKeys,Pt=C.activeKey,Zt=C.defaultActiveFirst,Ut=C.selectable,Yt=Ut===void 0?!0:Ut,cn=C.multiple,_t=cn===void 0?!1:cn,Gt=C.defaultSelectedKeys,dn=C.selectedKeys,Et=C.onSelect,wn=C.onDeselect,$n=C.inlineIndent,Cn=$n===void 0?24:$n,xn=C.motion,fn=C.defaultMotions,Xt=C.triggerSubMenuAction,ln=Xt===void 0?"hover":Xt,hn=C.builtinPlacements,Rn=C.itemIcon,gn=C.expandIcon,$t=C.overflowedIndicator,Qt=$t===void 0?"...":$t,vn=C.overflowedIndicatorPopupClassName,In=C.getPopupContainer,sn=C.onClick,On=C.onOpenChange,Mn=C.onKeyDown,Dn=C.openAnimation,jn=C.openTransitionName,Bn=C._internalRenderMenuItem,Kn=C._internalRenderSubMenuItem,Fn=(0,E.Z)(C,Ne),pn=t.useMemo(function(){return he(Be,tt,Le)},[Be,tt]),Hn=t.useState(!1),Ln=(0,w.Z)(Hn,2),zn=Ln[0],Vn=Ln[1],Nn=t.useRef(),An=q(dt),_n=ve==="rtl",qt=(0,X.Z)(St,{value:zt,postState:function(wt){return wt||Le}}),Zn=(0,w.Z)(qt,2),jt=Zn[0],yn=Zn[1],bn=function(wt){var At=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function En(){yn(wt),On==null||On(wt)}At?(0,b.flushSync)(En):En()},rn=t.useState(jt),en=(0,w.Z)(rn,2),kn=en[0],Xn=en[1],Un=t.useRef(!1),qn=t.useMemo(function(){return(Ct==="inline"||Ct==="vertical")&<?["vertical",lt]:[Ct,!1]},[Ct,lt]),Jn=(0,w.Z)(qn,2),Wn=Jn[0],de=Jn[1],Ie=Wn==="inline",Nt=t.useState(Wn),Kt=(0,w.Z)(Nt,2),pt=Kt[0],Yn=Kt[1],er=t.useState(de),tr=(0,w.Z)(er,2),Qn=tr[0],Er=tr[1];t.useEffect(function(){Yn(Wn),Er(de),Un.current&&(Ie?yn(kn):bn(Le))},[Wn,de]);var Sr=t.useState(0),dr=(0,w.Z)(Sr,2),ar=dr[0],wr=dr[1],lr=ar>=pn.length-1||pt!=="horizontal"||Xe;t.useEffect(function(){Ie&&Xn(jt)},[jt]),t.useEffect(function(){return Un.current=!0,function(){Un.current=!1}},[]);var Gn=U(),fr=Gn.registerPath,vr=Gn.unregisterPath,xr=Gn.refreshOverflowKeys,mr=Gn.isSubPathKey,Rr=Gn.getKeyPath,hr=Gn.getKeys,Or=Gn.getSubPathKeys,Pr=t.useMemo(function(){return{registerPath:fr,unregisterPath:vr}},[fr,vr]),$r=t.useMemo(function(){return{isSubPathKey:mr}},[mr]);t.useEffect(function(){xr(lr?Le:pn.slice(ar+1).map(function(Wt){return Wt.key}))},[ar,lr]);var Ir=(0,X.Z)(Pt||Zt&&((R=pn[0])===null||R===void 0?void 0:R.key),{value:Pt}),gr=(0,w.Z)(Ir,2),nr=gr[0],sr=gr[1],Mr=re(function(Wt){sr(Wt)}),Dr=re(function(){sr(void 0)});(0,t.useImperativeHandle)(d,function(){return{list:Nn.current,focus:function(wt){var At,En=hr(),Sn=r(En,An),ir=Sn.elements,ur=Sn.key2element,jr=Sn.element2key,br=c(Nn.current,ir),Cr=nr!=null?nr:br[0]?jr.get(br[0]):(At=pn.find(function(Kr){return!Kr.props.disabled}))===null||At===void 0?void 0:At.key,rr=ur.get(Cr);if(Cr&&rr){var cr;rr==null||(cr=rr.focus)===null||cr===void 0||cr.call(rr,wt)}}}});var Zr=(0,X.Z)(Gt||[],{value:dn,postState:function(wt){return Array.isArray(wt)?wt:wt==null?Le:[wt]}}),pr=(0,w.Z)(Zr,2),or=pr[0],Nr=pr[1],Ar=function(wt){if(Yt){var At=wt.key,En=or.includes(At),Sn;_t?En?Sn=or.filter(function(ur){return ur!==At}):Sn=[].concat((0,W.Z)(or),[At]):Sn=[At],Nr(Sn);var ir=(0,x.Z)((0,x.Z)({},wt),{},{selectedKeys:Sn});En?wn==null||wn(ir):Et==null||Et(ir)}!_t&&jt.length&&pt!=="inline"&&bn(Le)},Tr=re(function(Wt){sn==null||sn(rt(Wt)),Ar(Wt)}),yr=re(function(Wt,wt){var At=jt.filter(function(Sn){return Sn!==Wt});if(wt)At.push(Wt);else if(pt!=="inline"){var En=Or(Wt);At=At.filter(function(Sn){return!En.has(Sn)})}(0,te.Z)(jt,At,!0)||bn(At,!0)}),Br=function(wt,At){var En=At!=null?At:!jt.includes(wt);yr(wt,En)},Fr=S(pt,nr,_n,An,Nn,hr,Rr,sr,Br,Mn);t.useEffect(function(){Vn(!0)},[]);var Lr=t.useMemo(function(){return{_internalRenderMenuItem:Bn,_internalRenderSubMenuItem:Kn}},[Bn,Kn]),zr=pt!=="horizontal"||Xe?pn:pn.map(function(Wt,wt){return t.createElement(n,{key:Wt.key,overflowDisabled:wt>ar},Wt)}),_r=t.createElement(H.Z,(0,a.Z)({id:dt,ref:Nn,prefixCls:"".concat(F,"-overflow"),component:"ul",itemComponent:Ge,className:g()(F,"".concat(F,"-root"),"".concat(F,"-").concat(pt),ge,(A={},(0,v.Z)(A,"".concat(F,"-inline-collapsed"),Qn),(0,v.Z)(A,"".concat(F,"-rtl"),_n),A),ye),dir:ve,style:Ae,role:"menu",tabIndex:He,data:zr,renderRawItem:function(wt){return wt},renderRawRest:function(wt){var At=wt.length,En=At?pn.slice(-At):null;return t.createElement(bt,{eventKey:oe,title:Qt,disabled:lr,internalPopupClose:At===0,popupClassName:vn},En)},maxCount:pt!=="horizontal"||Xe?H.Z.INVALIDATE:H.Z.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(wt){wr(wt)},onKeyDown:Fr},Fn));return t.createElement(s.Provider,{value:Lr},t.createElement(ne.Provider,{value:An},t.createElement(n,{prefixCls:F,rootClassName:ye,mode:pt,openKeys:jt,rtl:_n,disabled:Qe,motion:zn?xn:null,defaultMotions:zn?fn:null,activeKey:nr,onActive:Mr,onInactive:Dr,selectedKeys:or,inlineIndent:Cn,subMenuOpenDelay:gt,subMenuCloseDelay:ft,forceSubMenuRender:nn,builtinPlacements:hn,triggerSubMenuAction:ln,getPopupContainer:In,itemIcon:Rn,expandIcon:gn,onItemClick:Tr,onOpenChange:yr},t.createElement(xe.Provider,{value:$r},_r),t.createElement("div",{style:{display:"none"},"aria-hidden":!0},t.createElement(D.Provider,{value:Pr},pn)))))}),Tn=Vt,Ft=Tn;Ft.Item=Ge,Ft.SubMenu=bt,Ft.ItemGroup=un,Ft.Divider=Bt;var we=Ft},11780:function(nt,ee,e){"use strict";e.d(ee,{Z:function(){return J}});var a=e(96663),v=e(44127),x=e(72071),W=e(6620),w=e(59301),E=e(92310),m=e.n(E),g=e(29301),H=e(34280),X=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],te=void 0;function k(h,Y){var T=h.prefixCls,I=h.invalidate,u=h.item,M=h.renderItem,B=h.responsive,ae=h.responsiveDisabled,ie=h.registerSize,Re=h.itemKey,Te=h.className,Me=h.style,be=h.children,Pe=h.display,Ee=h.order,ke=h.component,je=ke===void 0?"div":ke,c=(0,W.Z)(h,X),p=B&&!Pe;function r(_){ie(Re,_)}w.useEffect(function(){return function(){r(null)}},[]);var S=M&&u!==te?M(u,{index:Ee}):be,z;I||(z={opacity:p?0:1,height:p?0:te,overflowY:p?"hidden":te,order:B?Ee:te,pointerEvents:p?"none":te,position:p?"absolute":te});var G={};p&&(G["aria-hidden"]=!0);var j=w.createElement(je,(0,a.Z)({className:m()(!I&&T,Te),style:(0,v.Z)((0,v.Z)({},z),Me)},G,c,{ref:Y}),S);return B&&(j=w.createElement(g.Z,{onResize:function(oe){var U=oe.offsetWidth;r(U)},disabled:ae},j)),j}var t=w.forwardRef(k);t.displayName="Item";var b=t,ne=e(6089),Q=e(4676),fe=e(16089);function se(h){if(typeof MessageChannel=="undefined")(0,fe.Z)(h);else{var Y=new MessageChannel;Y.port1.onmessage=function(){return h()},Y.port2.postMessage(void 0)}}function O(){var h=w.useRef(null),Y=function(I){h.current||(h.current=[],se(function(){(0,Q.unstable_batchedUpdates)(function(){h.current.forEach(function(u){u()}),h.current=null})})),h.current.push(I)};return Y}function P(h,Y){var T=w.useState(Y),I=(0,x.Z)(T,2),u=I[0],M=I[1],B=(0,ne.Z)(function(ae){h(function(){M(ae)})});return[u,B]}var $=w.createContext(null),n=["component"],o=["className"],D=["className"],N=function(Y,T){var I=w.useContext($);if(!I){var u=Y.component,M=u===void 0?"div":u,B=(0,W.Z)(Y,n);return w.createElement(M,(0,a.Z)({},B,{ref:T}))}var ae=I.className,ie=(0,W.Z)(I,o),Re=Y.className,Te=(0,W.Z)(Y,D);return w.createElement($.Provider,{value:null},w.createElement(b,(0,a.Z)({ref:T,className:m()(ae,Re)},ie,Te)))},me=w.forwardRef(N);me.displayName="RawItem";var ue=me,xe=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],Z="responsive",s="invalidate";function l(h){return"+ ".concat(h.length," ...")}function f(h,Y){var T=h.prefixCls,I=T===void 0?"rc-overflow":T,u=h.data,M=u===void 0?[]:u,B=h.renderItem,ae=h.renderRawItem,ie=h.itemKey,Re=h.itemWidth,Te=Re===void 0?10:Re,Me=h.ssr,be=h.style,Pe=h.className,Ee=h.maxCount,ke=h.renderRest,je=h.renderRawRest,c=h.suffix,p=h.component,r=p===void 0?"div":p,S=h.itemComponent,z=h.onVisibleChange,G=(0,W.Z)(h,xe),j=Me==="full",_=O(),oe=P(_,null),U=(0,x.Z)(oe,2),re=U[0],Ce=U[1],$e=re||0,q=P(_,new Map),Oe=(0,x.Z)(q,2),ze=Oe[0],De=Oe[1],Ze=P(_,0),_e=(0,x.Z)(Ze,2),Ue=_e[0],ce=_e[1],Rt=P(_,0),vt=(0,x.Z)(Rt,2),mt=vt[0],rt=vt[1],xt=P(_,0),Ke=(0,x.Z)(xt,2),It=Ke[0],Ht=Ke[1],Tt=(0,w.useState)(null),et=(0,x.Z)(Tt,2),Ge=et[0],qe=et[1],yt=(0,w.useState)(null),We=(0,x.Z)(yt,2),Mt=We[0],ht=We[1],Ot=w.useMemo(function(){return Mt===null&&j?Number.MAX_SAFE_INTEGER:Mt||0},[Mt,re]),Dt=(0,w.useState)(!1),at=(0,x.Z)(Dt,2),mn=at[0],kt=at[1],ot="".concat(I,"-item"),V=Math.max(Ue,mt),pe=Ee===Z,Se=M.length&&pe,le=Ee===s,Je=Se||typeof Ee=="number"&&M.length>Ee,Fe=(0,w.useMemo)(function(){var we=M;return Se?re===null&&j?we=M:we=M.slice(0,Math.min(M.length,$e/Te)):typeof Ee=="number"&&(we=M.slice(0,Ee)),we},[M,Te,re,Ee,Se]),ut=(0,w.useMemo)(function(){return Se?M.slice(Ot+1):M.slice(Fe.length)},[M,Fe,Se,Ot]),Ye=(0,w.useCallback)(function(we,i){var d;return typeof ie=="function"?ie(we):(d=ie&&(we==null?void 0:we[ie]))!==null&&d!==void 0?d:i},[ie]),bt=(0,w.useCallback)(B||function(we){return we},[B]);function tn(we,i,d){Mt===we&&(i===void 0||i===Ge)||(ht(we),d||(kt(we<M.length-1),z==null||z(we)),i!==void 0&&qe(i))}function Jt(we,i){Ce(i.clientWidth)}function an(we,i){De(function(d){var R=new Map(d);return i===null?R.delete(we):R.set(we,i),R})}function it(we,i){rt(i),ce(mt)}function un(we,i){Ht(i)}function Bt(we){return ze.get(Ye(Fe[we],we))}(0,H.Z)(function(){if($e&&typeof V=="number"&&Fe){var we=It,i=Fe.length,d=i-1;if(!i){tn(0,null);return}for(var R=0;R<i;R+=1){var A=Bt(R);if(j&&(A=A||0),A===void 0){tn(R-1,void 0,!0);break}if(we+=A,d===0&&we<=$e||R===d-1&&we+Bt(d)<=$e){tn(d,null);break}else if(we+V>$e){tn(R-1,we-A-It+mt);break}}c&&Bt(0)+It>$e&&qe(null)}},[$e,ze,mt,It,Ye,Fe]);var Pn=mn&&!!ut.length,on={};Ge!==null&&Se&&(on={position:"absolute",left:Ge,top:0});var he={prefixCls:ot,responsive:Se,component:S,invalidate:le},Ne=ae?function(we,i){var d=Ye(we,i);return w.createElement($.Provider,{key:d,value:(0,v.Z)((0,v.Z)({},he),{},{order:i,item:we,itemKey:d,registerSize:an,display:i<=Ot})},ae(we,i))}:function(we,i){var d=Ye(we,i);return w.createElement(b,(0,a.Z)({},he,{order:i,key:d,item:we,renderItem:bt,itemKey:d,registerSize:an,display:i<=Ot}))},Le={order:Pn?Ot:Number.MAX_SAFE_INTEGER,className:"".concat(ot,"-rest"),registerSize:it,display:Pn},Vt=ke||l,Tn=je?w.createElement($.Provider,{value:(0,v.Z)((0,v.Z)({},he),Le)},je(ut)):w.createElement(b,(0,a.Z)({},he,Le),typeof Vt=="function"?Vt(ut):Vt),Ft=w.createElement(r,(0,a.Z)({className:m()(!le&&I,Pe),style:be,ref:Y},G),Fe.map(Ne),Je?Tn:null,c&&w.createElement(b,(0,a.Z)({},he,{responsive:pe,responsiveDisabled:!Se,order:Ot,className:"".concat(ot,"-suffix"),registerSize:un,display:!0,style:on}),c));return pe?w.createElement(g.Z,{onResize:Jt,disabled:!Se},Ft):Ft}var y=w.forwardRef(f);y.displayName="Overflow",y.Item=ue,y.RESPONSIVE=Z,y.INVALIDATE=s;var L=y,J=L},29301:function(nt,ee,e){"use strict";e.d(ee,{Z:function(){return s}});var a=e(96663),v=e(59301),x=e(11592),W=e(48736),w=e(44127),E=e(20135),m=e(76846),g=e(8654),H=v.createContext(null);function X(l){var f=l.children,y=l.onBatchResize,L=v.useRef(0),J=v.useRef([]),h=v.useContext(H),Y=v.useCallback(function(T,I,u){L.current+=1;var M=L.current;J.current.push({size:T,element:I,data:u}),Promise.resolve().then(function(){M===L.current&&(y==null||y(J.current),J.current=[])}),h==null||h(T,I,u)},[y,h]);return v.createElement(H.Provider,{value:Y},f)}var te=e(76374),k=new Map;function t(l){l.forEach(function(f){var y,L=f.target;(y=k.get(L))===null||y===void 0||y.forEach(function(J){return J(L)})})}var b=new te.Z(t),ne=null,Q=null;function fe(l,f){k.has(l)||(k.set(l,new Set),b.observe(l)),k.get(l).add(f)}function se(l,f){k.has(l)&&(k.get(l).delete(f),k.get(l).size||(b.unobserve(l),k.delete(l)))}var O=e(52884),P=e(95727),$=e(65711),n=e(85745),o=function(l){(0,$.Z)(y,l);var f=(0,n.Z)(y);function y(){return(0,O.Z)(this,y),f.apply(this,arguments)}return(0,P.Z)(y,[{key:"render",value:function(){return this.props.children}}]),y}(v.Component);function D(l,f){var y=l.children,L=l.disabled,J=v.useRef(null),h=v.useRef(null),Y=v.useContext(H),T=typeof y=="function",I=T?y(J):y,u=v.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),M=!T&&v.isValidElement(I)&&(0,g.Yr)(I),B=M?(0,g.C4)(I):null,ae=(0,g.x1)(B,J),ie=function(){var be;return(0,m.ZP)(J.current)||(J.current&&(0,E.Z)(J.current)==="object"?(0,m.ZP)((be=J.current)===null||be===void 0?void 0:be.nativeElement):null)||(0,m.ZP)(h.current)};v.useImperativeHandle(f,function(){return ie()});var Re=v.useRef(l);Re.current=l;var Te=v.useCallback(function(Me){var be=Re.current,Pe=be.onResize,Ee=be.data,ke=Me.getBoundingClientRect(),je=ke.width,c=ke.height,p=Me.offsetWidth,r=Me.offsetHeight,S=Math.floor(je),z=Math.floor(c);if(u.current.width!==S||u.current.height!==z||u.current.offsetWidth!==p||u.current.offsetHeight!==r){var G={width:S,height:z,offsetWidth:p,offsetHeight:r};u.current=G;var j=p===Math.round(je)?je:p,_=r===Math.round(c)?c:r,oe=(0,w.Z)((0,w.Z)({},G),{},{offsetWidth:j,offsetHeight:_});Y==null||Y(oe,Me,Ee),Pe&&Promise.resolve().then(function(){Pe(oe,Me)})}},[]);return v.useEffect(function(){var Me=ie();return Me&&!L&&fe(Me,Te),function(){return se(Me,Te)}},[J.current,L]),v.createElement(o,{ref:h},M?v.cloneElement(I,{ref:ae}):I)}var N=v.forwardRef(D),me=N,ue="rc-observer-key";function xe(l,f){var y=l.children,L=typeof y=="function"?[y]:(0,x.Z)(y);return L.map(function(J,h){var Y=(J==null?void 0:J.key)||"".concat(ue,"-").concat(h);return v.createElement(me,(0,a.Z)({},l,{key:Y,ref:h===0?f:void 0}),J)})}var Z=v.forwardRef(xe);Z.Collection=X;var s=Z},55477:function(nt,ee,e){"use strict";e.d(ee,{G:function(){return t},Z:function(){return fe}});var a=e(96663),v=e(44127),x=e(6620),W=e(35593),w=e(59301),E={shiftX:64,adjustY:1},m={adjustX:1,shiftY:!0},g=[0,0],H={left:{points:["cr","cl"],overflow:m,offset:[-4,0],targetOffset:g},right:{points:["cl","cr"],overflow:m,offset:[4,0],targetOffset:g},top:{points:["bc","tc"],overflow:E,offset:[0,-4],targetOffset:g},bottom:{points:["tc","bc"],overflow:E,offset:[0,4],targetOffset:g},topLeft:{points:["bl","tl"],overflow:E,offset:[0,-4],targetOffset:g},leftTop:{points:["tr","tl"],overflow:m,offset:[-4,0],targetOffset:g},topRight:{points:["br","tr"],overflow:E,offset:[0,-4],targetOffset:g},rightTop:{points:["tl","tr"],overflow:m,offset:[4,0],targetOffset:g},bottomRight:{points:["tr","br"],overflow:E,offset:[0,4],targetOffset:g},rightBottom:{points:["bl","br"],overflow:m,offset:[4,0],targetOffset:g},bottomLeft:{points:["tl","bl"],overflow:E,offset:[0,4],targetOffset:g},leftBottom:{points:["br","bl"],overflow:m,offset:[-4,0],targetOffset:g}},X=null,te=e(92310),k=e.n(te);function t(se){var O=se.children,P=se.prefixCls,$=se.id,n=se.overlayInnerStyle,o=se.className,D=se.style;return w.createElement("div",{className:k()("".concat(P,"-content"),o),style:D},w.createElement("div",{className:"".concat(P,"-inner"),id:$,role:"tooltip",style:n},typeof O=="function"?O():O))}var b=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],ne=function(O,P){var $=O.overlayClassName,n=O.trigger,o=n===void 0?["hover"]:n,D=O.mouseEnterDelay,N=D===void 0?0:D,me=O.mouseLeaveDelay,ue=me===void 0?.1:me,xe=O.overlayStyle,Z=O.prefixCls,s=Z===void 0?"rc-tooltip":Z,l=O.children,f=O.onVisibleChange,y=O.afterVisibleChange,L=O.transitionName,J=O.animation,h=O.motion,Y=O.placement,T=Y===void 0?"right":Y,I=O.align,u=I===void 0?{}:I,M=O.destroyTooltipOnHide,B=M===void 0?!1:M,ae=O.defaultVisible,ie=O.getTooltipContainer,Re=O.overlayInnerStyle,Te=O.arrowContent,Me=O.overlay,be=O.id,Pe=O.showArrow,Ee=Pe===void 0?!0:Pe,ke=(0,x.Z)(O,b),je=(0,w.useRef)(null);(0,w.useImperativeHandle)(P,function(){return je.current});var c=(0,v.Z)({},ke);"visible"in O&&(c.popupVisible=O.visible);var p=function(){return w.createElement(t,{key:"content",prefixCls:s,id:be,overlayInnerStyle:Re},Me)};return w.createElement(W.Z,(0,a.Z)({popupClassName:$,prefixCls:s,popup:p,action:o,builtinPlacements:H,popupPlacement:T,ref:je,popupAlign:u,getPopupContainer:ie,onPopupVisibleChange:f,afterPopupVisibleChange:y,popupTransitionName:L,popupAnimation:J,popupMotion:h,defaultPopupVisible:ae,autoDestroy:B,mouseLeaveDelay:ue,popupStyle:xe,mouseEnterDelay:N,arrow:Ee},c),l)},Q=(0,w.forwardRef)(ne),fe=Q},49658:function(nt,ee){"use strict";ee.Z=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e==null?void 0:e.substr(0,4))}},83145:function(nt,ee,e){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.CopyToClipboard=void 0;var a=x(e(59301)),v=x(e(25769));function x(O){return O&&O.__esModule?O:{default:O}}function W(O){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?W=function($){return typeof $}:W=function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},W(O)}function w(O,P){var $=Object.keys(O);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(O);P&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(O,o).enumerable})),$.push.apply($,n)}return $}function E(O){for(var P=1;P<arguments.length;P++){var $=arguments[P]!=null?arguments[P]:{};P%2?w($,!0).forEach(function(n){fe(O,n,$[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(O,Object.getOwnPropertyDescriptors($)):w($).forEach(function(n){Object.defineProperty(O,n,Object.getOwnPropertyDescriptor($,n))})}return O}function m(O,P){if(O==null)return{};var $=g(O,P),n,o;if(Object.getOwnPropertySymbols){var D=Object.getOwnPropertySymbols(O);for(o=0;o<D.length;o++)n=D[o],!(P.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(O,n)&&($[n]=O[n])}return $}function g(O,P){if(O==null)return{};var $={},n=Object.keys(O),o,D;for(D=0;D<n.length;D++)o=n[D],!(P.indexOf(o)>=0)&&($[o]=O[o]);return $}function H(O,P){if(!(O instanceof P))throw new TypeError("Cannot call a class as a function")}function X(O,P){for(var $=0;$<P.length;$++){var n=P[$];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(O,n.key,n)}}function te(O,P,$){return P&&X(O.prototype,P),$&&X(O,$),O}function k(O,P){return P&&(W(P)==="object"||typeof P=="function")?P:b(O)}function t(O){return t=Object.setPrototypeOf?Object.getPrototypeOf:function($){return $.__proto__||Object.getPrototypeOf($)},t(O)}function b(O){if(O===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return O}function ne(O,P){if(typeof P!="function"&&P!==null)throw new TypeError("Super expression must either be null or a function");O.prototype=Object.create(P&&P.prototype,{constructor:{value:O,writable:!0,configurable:!0}}),P&&Q(O,P)}function Q(O,P){return Q=Object.setPrototypeOf||function(n,o){return n.__proto__=o,n},Q(O,P)}function fe(O,P,$){return P in O?Object.defineProperty(O,P,{value:$,enumerable:!0,configurable:!0,writable:!0}):O[P]=$,O}var se=function(O){ne(P,O);function P(){var $,n;H(this,P);for(var o=arguments.length,D=new Array(o),N=0;N<o;N++)D[N]=arguments[N];return n=k(this,($=t(P)).call.apply($,[this].concat(D))),fe(b(n),"onClick",function(me){var ue=n.props,xe=ue.text,Z=ue.onCopy,s=ue.children,l=ue.options,f=a.default.Children.only(s),y=(0,v.default)(xe,l);Z&&Z(xe,y),f&&f.props&&typeof f.props.onClick=="function"&&f.props.onClick(me)}),n}return te(P,[{key:"render",value:function(){var n=this.props,o=n.text,D=n.onCopy,N=n.options,me=n.children,ue=m(n,["text","onCopy","options","children"]),xe=a.default.Children.only(me);return a.default.cloneElement(xe,E({},ue,{onClick:this.onClick}))}}]),P}(a.default.PureComponent);ee.CopyToClipboard=se,fe(se,"defaultProps",{onCopy:void 0,options:void 0})},56102:function(nt,ee,e){"use strict";var a=e(83145),v=a.CopyToClipboard;v.CopyToClipboard=v,nt.exports=v},76374:function(nt,ee,e){"use strict";var a=function(){if(typeof Map!="undefined")return Map;function s(l,f){var y=-1;return l.some(function(L,J){return L[0]===f?(y=J,!0):!1}),y}return function(){function l(){this.__entries__=[]}return Object.defineProperty(l.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),l.prototype.get=function(f){var y=s(this.__entries__,f),L=this.__entries__[y];return L&&L[1]},l.prototype.set=function(f,y){var L=s(this.__entries__,f);~L?this.__entries__[L][1]=y:this.__entries__.push([f,y])},l.prototype.delete=function(f){var y=this.__entries__,L=s(y,f);~L&&y.splice(L,1)},l.prototype.has=function(f){return!!~s(this.__entries__,f)},l.prototype.clear=function(){this.__entries__.splice(0)},l.prototype.forEach=function(f,y){y===void 0&&(y=null);for(var L=0,J=this.__entries__;L<J.length;L++){var h=J[L];f.call(y,h[1],h[0])}},l}()}(),v=typeof window!="undefined"&&typeof document!="undefined"&&window.document===document,x=function(){return typeof e.g!="undefined"&&e.g.Math===Math?e.g:typeof self!="undefined"&&self.Math===Math?self:typeof window!="undefined"&&window.Math===Math?window:Function("return this")()}(),W=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(x):function(s){return setTimeout(function(){return s(Date.now())},1e3/60)}}(),w=2;function E(s,l){var f=!1,y=!1,L=0;function J(){f&&(f=!1,s()),y&&Y()}function h(){W(J)}function Y(){var T=Date.now();if(f){if(T-L<w)return;y=!0}else f=!0,y=!1,setTimeout(h,l);L=T}return Y}var m=20,g=["top","right","bottom","left","width","height","size","weight"],H=typeof MutationObserver!="undefined",X=function(){function s(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=E(this.refresh.bind(this),m)}return s.prototype.addObserver=function(l){~this.observers_.indexOf(l)||this.observers_.push(l),this.connected_||this.connect_()},s.prototype.removeObserver=function(l){var f=this.observers_,y=f.indexOf(l);~y&&f.splice(y,1),!f.length&&this.connected_&&this.disconnect_()},s.prototype.refresh=function(){var l=this.updateObservers_();l&&this.refresh()},s.prototype.updateObservers_=function(){var l=this.observers_.filter(function(f){return f.gatherActive(),f.hasActive()});return l.forEach(function(f){return f.broadcastActive()}),l.length>0},s.prototype.connect_=function(){!v||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),H?(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)},s.prototype.disconnect_=function(){!v||!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)},s.prototype.onTransitionEnd_=function(l){var f=l.propertyName,y=f===void 0?"":f,L=g.some(function(J){return!!~y.indexOf(J)});L&&this.refresh()},s.getInstance=function(){return this.instance_||(this.instance_=new s),this.instance_},s.instance_=null,s}(),te=function(s,l){for(var f=0,y=Object.keys(l);f<y.length;f++){var L=y[f];Object.defineProperty(s,L,{value:l[L],enumerable:!1,writable:!1,configurable:!0})}return s},k=function(s){var l=s&&s.ownerDocument&&s.ownerDocument.defaultView;return l||x},t=o(0,0,0,0);function b(s){return parseFloat(s)||0}function ne(s){for(var l=[],f=1;f<arguments.length;f++)l[f-1]=arguments[f];return l.reduce(function(y,L){var J=s["border-"+L+"-width"];return y+b(J)},0)}function Q(s){for(var l=["top","right","bottom","left"],f={},y=0,L=l;y<L.length;y++){var J=L[y],h=s["padding-"+J];f[J]=b(h)}return f}function fe(s){var l=s.getBBox();return o(0,0,l.width,l.height)}function se(s){var l=s.clientWidth,f=s.clientHeight;if(!l&&!f)return t;var y=k(s).getComputedStyle(s),L=Q(y),J=L.left+L.right,h=L.top+L.bottom,Y=b(y.width),T=b(y.height);if(y.boxSizing==="border-box"&&(Math.round(Y+J)!==l&&(Y-=ne(y,"left","right")+J),Math.round(T+h)!==f&&(T-=ne(y,"top","bottom")+h)),!P(s)){var I=Math.round(Y+J)-l,u=Math.round(T+h)-f;Math.abs(I)!==1&&(Y-=I),Math.abs(u)!==1&&(T-=u)}return o(L.left,L.top,Y,T)}var O=function(){return typeof SVGGraphicsElement!="undefined"?function(s){return s instanceof k(s).SVGGraphicsElement}:function(s){return s instanceof k(s).SVGElement&&typeof s.getBBox=="function"}}();function P(s){return s===k(s).document.documentElement}function $(s){return v?O(s)?fe(s):se(s):t}function n(s){var l=s.x,f=s.y,y=s.width,L=s.height,J=typeof DOMRectReadOnly!="undefined"?DOMRectReadOnly:Object,h=Object.create(J.prototype);return te(h,{x:l,y:f,width:y,height:L,top:f,right:l+y,bottom:L+f,left:l}),h}function o(s,l,f,y){return{x:s,y:l,width:f,height:y}}var D=function(){function s(l){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=o(0,0,0,0),this.target=l}return s.prototype.isActive=function(){var l=$(this.target);return this.contentRect_=l,l.width!==this.broadcastWidth||l.height!==this.broadcastHeight},s.prototype.broadcastRect=function(){var l=this.contentRect_;return this.broadcastWidth=l.width,this.broadcastHeight=l.height,l},s}(),N=function(){function s(l,f){var y=n(f);te(this,{target:l,contentRect:y})}return s}(),me=function(){function s(l,f,y){if(this.activeObservations_=[],this.observations_=new a,typeof l!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=l,this.controller_=f,this.callbackCtx_=y}return s.prototype.observe=function(l){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element=="undefined"||!(Element instanceof Object))){if(!(l instanceof k(l).Element))throw new TypeError('parameter 1 is not of type "Element".');var f=this.observations_;f.has(l)||(f.set(l,new D(l)),this.controller_.addObserver(this),this.controller_.refresh())}},s.prototype.unobserve=function(l){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element=="undefined"||!(Element instanceof Object))){if(!(l instanceof k(l).Element))throw new TypeError('parameter 1 is not of type "Element".');var f=this.observations_;f.has(l)&&(f.delete(l),f.size||this.controller_.removeObserver(this))}},s.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},s.prototype.gatherActive=function(){var l=this;this.clearActive(),this.observations_.forEach(function(f){f.isActive()&&l.activeObservations_.push(f)})},s.prototype.broadcastActive=function(){if(this.hasActive()){var l=this.callbackCtx_,f=this.activeObservations_.map(function(y){return new N(y.target,y.broadcastRect())});this.callback_.call(l,f,l),this.clearActive()}},s.prototype.clearActive=function(){this.activeObservations_.splice(0)},s.prototype.hasActive=function(){return this.activeObservations_.length>0},s}(),ue=typeof WeakMap!="undefined"?new WeakMap:new a,xe=function(){function s(l){if(!(this instanceof s))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var f=X.getInstance(),y=new me(l,f,this);ue.set(this,y)}return s}();["observe","unobserve","disconnect"].forEach(function(s){xe.prototype[s]=function(){var l;return(l=ue.get(this))[s].apply(l,arguments)}});var Z=function(){return typeof x.ResizeObserver!="undefined"?x.ResizeObserver:xe}();ee.Z=Z},98040:function(nt){nt.exports=function(){var ee=document.getSelection();if(!ee.rangeCount)return function(){};for(var e=document.activeElement,a=[],v=0;v<ee.rangeCount;v++)a.push(ee.getRangeAt(v));switch(e.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":e.blur();break;default:e=null;break}return ee.removeAllRanges(),function(){ee.type==="Caret"&&ee.removeAllRanges(),ee.rangeCount||a.forEach(function(x){ee.addRange(x)}),e&&e.focus()}}},1012:function(nt,ee,e){"use strict";e.d(ee,{Z:function(){return k}});var a=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto!="undefined"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),v=new Uint8Array(16);function x(){if(!a)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return a(v)}var W=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function w(t){return typeof t=="string"&&W.test(t)}for(var E=w,m=[],g=0;g<256;++g)m.push((g+256).toString(16).substr(1));function H(t){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,ne=(m[t[b+0]]+m[t[b+1]]+m[t[b+2]]+m[t[b+3]]+"-"+m[t[b+4]]+m[t[b+5]]+"-"+m[t[b+6]]+m[t[b+7]]+"-"+m[t[b+8]]+m[t[b+9]]+"-"+m[t[b+10]]+m[t[b+11]]+m[t[b+12]]+m[t[b+13]]+m[t[b+14]]+m[t[b+15]]).toLowerCase();if(!E(ne))throw TypeError("Stringified UUID is invalid");return ne}var X=H;function te(t,b,ne){t=t||{};var Q=t.random||(t.rng||x)();if(Q[6]=Q[6]&15|64,Q[8]=Q[8]&63|128,b){ne=ne||0;for(var fe=0;fe<16;++fe)b[ne+fe]=Q[fe];return b}return X(Q)}var k=te}}]);
|