import{r as i,al as nn,am as on,a3 as an,a2 as sn,ai as jr,a1 as Wr,S as q,a4 as gr,Q as ln,t as cn,_ as Zt,aQ as Rr,q as L,U as Te,aR as xr,c as pe,an as Br,f as Pe,e as un,aI as fn,aS as yr,ak as vn,a0 as Ft,N as $r,aT as wr,p as Ir,aU as dn,aV as Vr,u as pr,b as hn,n as Hr,at as mn,v as gn,C as Fr,a7 as bn,ar as yn,ap as wn,aW as pn,ag as Cn,ah as _n,d as Mn,ax as Pn,aw as Sn}from"./index-8fe10136.js";var Cr=i.createContext(null);function Rn(e){var r=e.children,t=e.onBatchResize,n=i.useRef(0),o=i.useRef([]),a=i.useContext(Cr),s=i.useCallback(function(l,c,f){n.current+=1;var m=n.current;o.current.push({size:l,element:c,data:f}),Promise.resolve().then(function(){m===n.current&&(t==null||t(o.current),o.current=[])}),a==null||a(l,c,f)},[t,a]);return i.createElement(Cr.Provider,{value:s},r)}var qr=function(){if(typeof Map<"u")return Map;function e(r,t){var n=-1;return r.some(function(o,a){return o[0]===t?(n=a,!0):!1}),n}return function(){function r(){this.__entries__=[]}return Object.defineProperty(r.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),r.prototype.get=function(t){var n=e(this.__entries__,t),o=this.__entries__[n];return o&&o[1]},r.prototype.set=function(t,n){var o=e(this.__entries__,t);~o?this.__entries__[o][1]=n:this.__entries__.push([t,n])},r.prototype.delete=function(t){var n=this.__entries__,o=e(n,t);~o&&n.splice(o,1)},r.prototype.has=function(t){return!!~e(this.__entries__,t)},r.prototype.clear=function(){this.__entries__.splice(0)},r.prototype.forEach=function(t,n){n===void 0&&(n=null);for(var o=0,a=this.__entries__;o0},e.prototype.connect_=function(){!_r||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),En?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!_r||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(r){var t=r.propertyName,n=t===void 0?"":t,o=On.some(function(a){return!!~n.indexOf(a)});o&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),Gr=function(e,r){for(var t=0,n=Object.keys(r);t"u"||!(Element instanceof Object))){if(!(r instanceof ut(r).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(r)||(t.set(r,new In(r)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(r){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(r instanceof ut(r).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(r)&&(t.delete(r),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var r=this;this.clearActive(),this.observations_.forEach(function(t){t.isActive()&&r.activeObservations_.push(t)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var r=this.callbackCtx_,t=this.activeObservations_.map(function(n){return new Vn(n.target,n.broadcastRect())});this.callback_.call(r,t,r),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),Zr=typeof WeakMap<"u"?new WeakMap:new qr,Qr=function(){function e(r){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var t=zn.getInstance(),n=new Hn(r,t,this);Zr.set(this,n)}return e}();["observe","unobserve","disconnect"].forEach(function(e){Qr.prototype[e]=function(){var r;return(r=Zr.get(this))[e].apply(r,arguments)}});var Fn=function(){return typeof qt.ResizeObserver<"u"?qt.ResizeObserver:Qr}(),Ie=new Map;function qn(e){e.forEach(function(r){var t,n=r.target;(t=Ie.get(n))===null||t===void 0||t.forEach(function(o){return o(n)})})}var Jr=new Fn(qn);function Gn(e,r){Ie.has(e)||(Ie.set(e,new Set),Jr.observe(e)),Ie.get(e).add(r)}function Un(e,r){Ie.has(e)&&(Ie.get(e).delete(r),Ie.get(e).size||(Jr.unobserve(e),Ie.delete(e)))}var Zn=function(e){nn(t,e);var r=on(t);function t(){return an(this,t),r.apply(this,arguments)}return sn(t,[{key:"render",value:function(){return this.props.children}}]),t}(i.Component);function Qn(e,r){var t=e.children,n=e.disabled,o=i.useRef(null),a=i.useRef(null),s=i.useContext(Cr),l=typeof t=="function",c=l?t(o):t,f=i.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),m=!l&&i.isValidElement(c)&&jr(c),v=m?c.ref:null,w=Wr(v,o),h=function(){var M;return gr(o.current)||(o.current&&ln(o.current)==="object"?gr((M=o.current)===null||M===void 0?void 0:M.nativeElement):null)||gr(a.current)};i.useImperativeHandle(r,function(){return h()});var p=i.useRef(e);p.current=e;var _=i.useCallback(function(b){var M=p.current,C=M.onResize,y=M.data,u=b.getBoundingClientRect(),$=u.width,W=u.height,O=b.offsetWidth,B=b.offsetHeight,U=Math.floor($),N=Math.floor(W);if(f.current.width!==U||f.current.height!==N||f.current.offsetWidth!==O||f.current.offsetHeight!==B){var I={width:U,height:N,offsetWidth:O,offsetHeight:B};f.current=I;var J=O===Math.round($)?$:O,K=B===Math.round(W)?W:B,A=q(q({},I),{},{offsetWidth:J,offsetHeight:K});s==null||s(A,b,y),C&&Promise.resolve().then(function(){C(A,b)})}},[]);return i.useEffect(function(){var b=h();return b&&!n&&Gn(b,_),function(){return Un(b,_)}},[o.current,n]),i.createElement(Zn,{ref:a},m?i.cloneElement(c,{ref:w}):c)}var Jn=i.forwardRef(Qn),Kn="rc-observer-key";function Xn(e,r){var t=e.children,n=typeof t=="function"?[t]:cn(t);return n.map(function(o,a){var s=(o==null?void 0:o.key)||"".concat(Kn,"-").concat(a);return i.createElement(Jn,Zt({},e,{key:s,ref:a===0?r:void 0}),o)})}var Pr=i.forwardRef(Xn);Pr.Collection=Rn;const Ut=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];function br(e){return e!==void 0}function Yn(e,r){var t=r||{},n=t.defaultValue,o=t.value,a=t.onChange,s=t.postState,l=Rr(function(){return br(o)?o:br(n)?typeof n=="function"?n():n:typeof e=="function"?e():e}),c=L(l,2),f=c[0],m=c[1],v=o!==void 0?o:f,w=s?s(v):v,h=Te(a),p=Rr([v]),_=L(p,2),b=_[0],M=_[1];xr(function(){var y=b[0];f!==y&&h(f,y)},[b]),xr(function(){br(o)||m(o)},[o]);var C=Te(function(y,u){m(y,u),M([v],u)});return[w,C]}function eo(e,r){return Ut.reduce((t,n)=>{const o=e[`${n}1`],a=e[`${n}3`],s=e[`${n}6`],l=e[`${n}7`];return Object.assign(Object.assign({},t),r(n,{lightColor:o,lightBorderColor:a,darkColor:s,textColor:l}))},{})}const to=function(){if(typeof navigator>"u"||typeof window>"u")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))};function ro(e){var r=e.prefixCls,t=e.align,n=e.arrow,o=e.arrowPos,a=n||{},s=a.className,l=a.content,c=o.x,f=c===void 0?0:c,m=o.y,v=m===void 0?0:m,w=i.useRef();if(!t||!t.points)return null;var h={position:"absolute"};if(t.autoArrow!==!1){var p=t.points[0],_=t.points[1],b=p[0],M=p[1],C=_[0],y=_[1];b===C||!["t","b"].includes(b)?h.top=v:b==="t"?h.top=0:h.bottom=0,M===y||!["l","r"].includes(M)?h.left=f:M==="l"?h.left=0:h.right=0}return i.createElement("div",{ref:w,className:pe("".concat(r,"-arrow"),s),style:h},l)}function no(e){var r=e.prefixCls,t=e.open,n=e.zIndex,o=e.mask,a=e.motion;return o?i.createElement(Br,Zt({},a,{motionAppear:!0,visible:t,removeOnLeave:!0}),function(s){var l=s.className;return i.createElement("div",{style:{zIndex:n},className:pe("".concat(r,"-mask"),l)})}):null}var oo=i.memo(function(e){var r=e.children;return r},function(e,r){return r.cache}),ao=i.forwardRef(function(e,r){var t=e.popup,n=e.className,o=e.prefixCls,a=e.style,s=e.target,l=e.onVisibleChanged,c=e.open,f=e.keepDom,m=e.fresh,v=e.onClick,w=e.mask,h=e.arrow,p=e.arrowPos,_=e.align,b=e.motion,M=e.maskMotion,C=e.forceRender,y=e.getPopupContainer,u=e.autoDestroy,$=e.portal,W=e.zIndex,O=e.onMouseEnter,B=e.onMouseLeave,U=e.onPointerEnter,N=e.ready,I=e.offsetX,J=e.offsetY,K=e.offsetR,A=e.offsetB,oe=e.onAlign,T=e.onPrepare,k=e.stretch,P=e.targetWidth,Z=e.targetHeight,x=typeof t=="function"?t():t,ue=c||f,ae=(y==null?void 0:y.length)>0,Ve=i.useState(!y||!ae),Oe=L(Ve,2),fe=Oe[0],ie=Oe[1];if(Pe(function(){!fe&&ae&&s&&ie(!0)},[fe,ae,s]),!fe)return null;var se="auto",j={left:"-1000vw",top:"-1000vh",right:se,bottom:se};if(N||!c){var Q,te=_.points,X=_.dynamicInset||((Q=_._experimental)===null||Q===void 0?void 0:Q.dynamicInset),Ee=X&&te[0][1]==="r",He=X&&te[0][0]==="b";Ee?(j.right=K,j.left=se):(j.left=I,j.right=se),He?(j.bottom=A,j.top=se):(j.top=J,j.bottom=se)}var F={};return k&&(k.includes("height")&&Z?F.height=Z:k.includes("minHeight")&&Z&&(F.minHeight=Z),k.includes("width")&&P?F.width=P:k.includes("minWidth")&&P&&(F.minWidth=P)),c||(F.pointerEvents="none"),i.createElement($,{open:C||ue,getContainer:y&&function(){return y(s)},autoDestroy:u},i.createElement(no,{prefixCls:o,open:c,zIndex:W,mask:w,motion:M}),i.createElement(Pr,{onResize:oe,disabled:!c},function(ze){return i.createElement(Br,Zt({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:C,leavedClassName:"".concat(o,"-hidden")},b,{onAppearPrepare:T,onEnterPrepare:T,visible:c,onVisibleChanged:function(Y){var ge;b==null||(ge=b.onVisibleChanged)===null||ge===void 0||ge.call(b,Y),l(Y)}}),function(ve,Y){var ge=ve.className,R=ve.style,Se=pe(o,ge,n);return i.createElement("div",{ref:un(ze,r,Y),className:Se,style:q(q(q(q({"--arrow-x":"".concat(p.x||0,"px"),"--arrow-y":"".concat(p.y||0,"px")},j),F),R),{},{boxSizing:"border-box",zIndex:W},a),onMouseEnter:O,onMouseLeave:B,onPointerEnter:U,onClick:v},h&&i.createElement(ro,{prefixCls:o,arrow:h,arrowPos:p,align:_}),i.createElement(oo,{cache:!c&&!m},x))})}))}),io=i.forwardRef(function(e,r){var t=e.children,n=e.getTriggerDOMNode,o=jr(t),a=i.useCallback(function(l){fn(r,n?n(l):l)},[n]),s=Wr(a,t.ref);return o?i.cloneElement(t,{ref:s}):t}),Tr=i.createContext(null);function Or(e){return e?Array.isArray(e)?e:[e]:[]}function so(e,r,t,n){return i.useMemo(function(){var o=Or(t??r),a=Or(n??r),s=new Set(o),l=new Set(a);return e&&(s.has("hover")&&(s.delete("hover"),s.add("click")),l.has("hover")&&(l.delete("hover"),l.add("click"))),[s,l]},[e,r,t,n])}function lo(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],t=arguments.length>2?arguments[2]:void 0;return t?e[0]===r[0]:e[0]===r[0]&&e[1]===r[1]}function co(e,r,t,n){for(var o=t.points,a=Object.keys(e),s=0;s1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?r:e}function pt(e){return Ct(parseFloat(e),0)}function zr(e,r){var t=q({},e);return(r||[]).forEach(function(n){if(!(n instanceof HTMLBodyElement||n instanceof HTMLHtmlElement)){var o=_t(n).getComputedStyle(n),a=o.overflow,s=o.overflowClipMargin,l=o.borderTopWidth,c=o.borderBottomWidth,f=o.borderLeftWidth,m=o.borderRightWidth,v=n.getBoundingClientRect(),w=n.offsetHeight,h=n.clientHeight,p=n.offsetWidth,_=n.clientWidth,b=pt(l),M=pt(c),C=pt(f),y=pt(m),u=Ct(Math.round(v.width/p*1e3)/1e3),$=Ct(Math.round(v.height/w*1e3)/1e3),W=(p-_-C-y)*u,O=(w-h-b-M)*$,B=b*$,U=M*$,N=C*u,I=y*u,J=0,K=0;if(a==="clip"){var A=pt(s);J=A*u,K=A*$}var oe=v.x+N-J,T=v.y+B-K,k=oe+v.width+2*J-N-I-W,P=T+v.height+2*K-B-U-O;t.left=Math.max(t.left,oe),t.top=Math.max(t.top,T),t.right=Math.min(t.right,k),t.bottom=Math.min(t.bottom,P)}}),t}function Dr(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,t="".concat(r),n=t.match(/^(.*)\%$/);return n?e*(parseFloat(n[1])/100):parseFloat(t)}function Lr(e,r){var t=r||[],n=L(t,2),o=n[0],a=n[1];return[Dr(e.width,o),Dr(e.height,a)]}function Nr(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function st(e,r){var t=r[0],n=r[1],o,a;return t==="t"?a=e.y:t==="b"?a=e.y+e.height:a=e.y+e.height/2,n==="l"?o=e.x:n==="r"?o=e.x+e.width:o=e.x+e.width/2,{x:o,y:a}}function Be(e,r){var t={t:"b",b:"t",l:"r",r:"l"};return e.map(function(n,o){return o===r?t[n]||"c":n}).join("")}function uo(e,r,t,n,o,a,s){var l=i.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:o[n]||{}}),c=L(l,2),f=c[0],m=c[1],v=i.useRef(0),w=i.useMemo(function(){return r?Mr(r):[]},[r]),h=i.useRef({}),p=function(){h.current={}};e||p();var _=Te(function(){if(r&&t&&e){let he=function(ke,Ke){var at=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Se,it=x.x+ke,yt=x.y+Ke,wt=it+Q,Bt=yt+j,fr=Math.max(it,at.left),vr=Math.max(yt,at.top),dr=Math.min(wt,at.right),hr=Math.min(Bt,at.bottom);return Math.max(0,(dr-fr)*(hr-vr))},Wt=function(){Ne=x.y+S,Ae=Ne+j,je=x.x+D,tt=je+Q};var C,y,u=r,$=u.ownerDocument,W=_t(u),O=W.getComputedStyle(u),B=O.width,U=O.height,N=O.position,I=u.style.left,J=u.style.top,K=u.style.right,A=u.style.bottom,oe=u.style.overflow,T=q(q({},o[n]),a),k=$.createElement("div");(C=u.parentElement)===null||C===void 0||C.appendChild(k),k.style.left="".concat(u.offsetLeft,"px"),k.style.top="".concat(u.offsetTop,"px"),k.style.position=N,k.style.height="".concat(u.offsetHeight,"px"),k.style.width="".concat(u.offsetWidth,"px"),u.style.left="0",u.style.top="0",u.style.right="auto",u.style.bottom="auto",u.style.overflow="hidden";var P;if(Array.isArray(t))P={x:t[0],y:t[1],width:0,height:0};else{var Z=t.getBoundingClientRect();P={x:Z.x,y:Z.y,width:Z.width,height:Z.height}}var x=u.getBoundingClientRect(),ue=$.documentElement,ae=ue.clientWidth,Ve=ue.clientHeight,Oe=ue.scrollWidth,fe=ue.scrollHeight,ie=ue.scrollTop,se=ue.scrollLeft,j=x.height,Q=x.width,te=P.height,X=P.width,Ee={left:0,top:0,right:ae,bottom:Ve},He={left:-se,top:-ie,right:Oe-se,bottom:fe-ie},F=T.htmlRegion,ze="visible",ve="visibleFirst";F!=="scroll"&&F!==ve&&(F=ze);var Y=F===ve,ge=zr(He,w),R=zr(Ee,w),Se=F===ze?R:ge,re=Y?R:Se;u.style.left="auto",u.style.top="auto",u.style.right="0",u.style.bottom="0";var Xe=u.getBoundingClientRect();u.style.left=I,u.style.top=J,u.style.right=K,u.style.bottom=A,u.style.overflow=oe,(y=u.parentElement)===null||y===void 0||y.removeChild(k);var V=Ct(Math.round(Q/parseFloat(B)*1e3)/1e3),ee=Ct(Math.round(j/parseFloat(U)*1e3)/1e3);if(V===0||ee===0||yr(t)&&!vn(t))return;var be=T.offset,ye=T.targetOffset,Jt=Lr(x,be),Mt=L(Jt,2),we=Mt[0],de=Mt[1],Ce=Lr(P,ye),Pt=L(Ce,2),St=Pt[0],Kt=Pt[1];P.x-=St,P.y-=Kt;var Ye=T.points||[],le=L(Ye,2),De=le[0],Xt=le[1],Re=Nr(Xt),ce=Nr(De),Rt=st(P,Re),ft=st(x,ce),Le=q({},T),D=Rt.x-ft.x+we,S=Rt.y-ft.y+de,_e=he(D,S),Me=he(D,S,R),Fe=st(P,["t","l"]),vt=st(x,["t","l"]),dt=st(P,["b","r"]),ht=st(x,["b","r"]),ne=T.overflow||{},Yt=ne.adjustX,xt=ne.adjustY,et=ne.shiftX,mt=ne.shiftY,$t=function(Ke){return typeof Ke=="boolean"?Ke:Ke>=0},Ne,Ae,je,tt;Wt();var gt=$t(xt),bt=ce[0]===Re[0];if(gt&&ce[0]==="t"&&(Ae>re.bottom||h.current.bt)){var qe=S;bt?qe-=j-te:qe=Fe.y-ht.y-de;var Ge=he(D,qe),er=he(D,qe,R);Ge>_e||Ge===_e&&(!Y||er>=Me)?(h.current.bt=!0,S=qe,de=-de,Le.points=[Be(ce,0),Be(Re,0)]):h.current.bt=!1}if(gt&&ce[0]==="b"&&(Ne_e||kt===_e&&(!Y||tr>=Me)?(h.current.tb=!0,S=G,de=-de,Le.points=[Be(ce,0),Be(Re,0)]):h.current.tb=!1}var Tt=$t(Yt),Ot=ce[1]===Re[1];if(Tt&&ce[1]==="l"&&(tt>re.right||h.current.rl)){var Ue=D;Ot?Ue-=Q-X:Ue=Fe.x-ht.x-we;var Et=he(Ue,S),rr=he(Ue,S,R);Et>_e||Et===_e&&(!Y||rr>=Me)?(h.current.rl=!0,D=Ue,we=-we,Le.points=[Be(ce,1),Be(Re,1)]):h.current.rl=!1}if(Tt&&ce[1]==="r"&&(je_e||zt===_e&&(!Y||rt>=Me)?(h.current.lr=!0,D=Ze,we=-we,Le.points=[Be(ce,1),Be(Re,1)]):h.current.lr=!1}Wt();var xe=et===!0?0:et;typeof xe=="number"&&(jeR.right&&(D-=tt-R.right-we,P.x>R.right-xe&&(D+=P.x-R.right+xe)));var Qe=mt===!0?0:mt;typeof Qe=="number"&&(NeR.bottom&&(S-=Ae-R.bottom-de,P.y>R.bottom-Qe&&(S+=P.y-R.bottom+Qe)));var nt=x.x+D,ot=nt+Q,$e=x.y+S,Dt=$e+j,Je=P.x,We=Je+X,Lt=P.y,nr=Lt+te,or=Math.max(nt,Je),Nt=Math.min(ot,We),ar=(or+Nt)/2,ir=ar-nt,sr=Math.max($e,Lt),At=Math.min(Dt,nr),lr=(sr+At)/2,cr=lr-$e;s==null||s(r,Le);var jt=Xe.right-x.x-(D+x.width),ur=Xe.bottom-x.y-(S+x.height);m({ready:!0,offsetX:D/V,offsetY:S/ee,offsetR:jt/V,offsetB:ur/ee,arrowX:ir/V,arrowY:cr/ee,scaleX:V,scaleY:ee,align:Le})}}),b=function(){v.current+=1;var y=v.current;Promise.resolve().then(function(){v.current===y&&_()})},M=function(){m(function(y){return q(q({},y),{},{ready:!1})})};return Pe(M,[n]),Pe(function(){e||M()},[e]),[f.ready,f.offsetX,f.offsetY,f.offsetR,f.offsetB,f.arrowX,f.arrowY,f.scaleX,f.scaleY,f.align,b]}function fo(e,r,t,n,o){Pe(function(){if(e&&r&&t){let v=function(){n(),o()};var a=r,s=t,l=Mr(a),c=Mr(s),f=_t(s),m=new Set([f].concat(Ft(l),Ft(c)));return m.forEach(function(w){w.addEventListener("scroll",v,{passive:!0})}),f.addEventListener("resize",v,{passive:!0}),n(),function(){m.forEach(function(w){w.removeEventListener("scroll",v),f.removeEventListener("resize",v)})}}},[e,r,t])}function vo(e,r,t,n,o,a,s,l){var c=i.useRef(e),f=i.useRef(!1);c.current!==e&&(f.current=!0,c.current=e),i.useEffect(function(){var m=$r(function(){f.current=!1});return function(){$r.cancel(m)}},[e]),i.useEffect(function(){if(r&&n&&(!o||a)){var m=function(){var W=!1,O=function(N){var I=N.target;W=s(I)},B=function(N){var I=N.target;!f.current&&c.current&&!W&&!s(I)&&l(!1)};return[O,B]},v=m(),w=L(v,2),h=w[0],p=w[1],_=m(),b=L(_,2),M=b[0],C=b[1],y=_t(n);y.addEventListener("mousedown",h,!0),y.addEventListener("click",p,!0),y.addEventListener("contextmenu",p,!0);var u=wr(t);return u&&(u.addEventListener("mousedown",M,!0),u.addEventListener("click",C,!0),u.addEventListener("contextmenu",C,!0)),function(){y.removeEventListener("mousedown",h,!0),y.removeEventListener("click",p,!0),y.removeEventListener("contextmenu",p,!0),u&&(u.removeEventListener("mousedown",M,!0),u.removeEventListener("click",C,!0),u.removeEventListener("contextmenu",C,!0))}}},[r,t,n,o,a])}var ho=["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 mo(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Vr,r=i.forwardRef(function(t,n){var o=t.prefixCls,a=o===void 0?"rc-trigger-popup":o,s=t.children,l=t.action,c=l===void 0?"hover":l,f=t.showAction,m=t.hideAction,v=t.popupVisible,w=t.defaultPopupVisible,h=t.onPopupVisibleChange,p=t.afterPopupVisibleChange,_=t.mouseEnterDelay,b=t.mouseLeaveDelay,M=b===void 0?.1:b,C=t.focusDelay,y=t.blurDelay,u=t.mask,$=t.maskClosable,W=$===void 0?!0:$,O=t.getPopupContainer,B=t.forceRender,U=t.autoDestroy,N=t.destroyPopupOnHide,I=t.popup,J=t.popupClassName,K=t.popupStyle,A=t.popupPlacement,oe=t.builtinPlacements,T=oe===void 0?{}:oe,k=t.popupAlign,P=t.zIndex,Z=t.stretch,x=t.getPopupClassNameFromAlign,ue=t.fresh,ae=t.alignPoint,Ve=t.onPopupClick,Oe=t.onPopupAlign,fe=t.arrow,ie=t.popupMotion,se=t.maskMotion,j=t.popupTransitionName,Q=t.popupAnimation,te=t.maskTransitionName,X=t.maskAnimation,Ee=t.className,He=t.getTriggerDOMNode,F=Ir(t,ho),ze=U||N||!1,ve=i.useState(!1),Y=L(ve,2),ge=Y[0],R=Y[1];Pe(function(){R(to())},[]);var Se=i.useRef({}),re=i.useContext(Tr),Xe=i.useMemo(function(){return{registerSubPopup:function(g,E){Se.current[g]=E,re==null||re.registerSubPopup(g,E)}}},[re]),V=dn(),ee=i.useState(null),be=L(ee,2),ye=be[0],Jt=be[1],Mt=Te(function(d){yr(d)&&ye!==d&&Jt(d),re==null||re.registerSubPopup(V,d)}),we=i.useState(null),de=L(we,2),Ce=de[0],Pt=de[1],St=i.useRef(null),Kt=Te(function(d){yr(d)&&Ce!==d&&(Pt(d),St.current=d)}),Ye=i.Children.only(s),le=(Ye==null?void 0:Ye.props)||{},De={},Xt=Te(function(d){var g,E,H=Ce;return(H==null?void 0:H.contains(d))||((g=wr(H))===null||g===void 0?void 0:g.host)===d||d===H||(ye==null?void 0:ye.contains(d))||((E=wr(ye))===null||E===void 0?void 0:E.host)===d||d===ye||Object.values(Se.current).some(function(z){return(z==null?void 0:z.contains(d))||d===z})}),Re=Er(a,ie,Q,j),ce=Er(a,se,X,te),Rt=i.useState(w||!1),ft=L(Rt,2),Le=ft[0],D=ft[1],S=v??Le,_e=Te(function(d){v===void 0&&D(d)});Pe(function(){D(v||!1)},[v]);var Me=i.useRef(S);Me.current=S;var Fe=i.useRef([]);Fe.current=[];var vt=Te(function(d){var g;_e(d),((g=Fe.current[Fe.current.length-1])!==null&&g!==void 0?g:S)!==d&&(Fe.current.push(d),h==null||h(d))}),dt=i.useRef(),ht=function(){clearTimeout(dt.current)},ne=function(g){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;ht(),E===0?vt(g):dt.current=setTimeout(function(){vt(g)},E*1e3)};i.useEffect(function(){return ht},[]);var Yt=i.useState(!1),xt=L(Yt,2),et=xt[0],mt=xt[1];Pe(function(d){(!d||S)&&mt(!0)},[S]);var $t=i.useState(null),Ne=L($t,2),Ae=Ne[0],je=Ne[1],tt=i.useState([0,0]),gt=L(tt,2),bt=gt[0],qe=gt[1],Ge=function(g){qe([g.clientX,g.clientY])},er=uo(S,ye,ae?bt:Ce,A,T,k,Oe),G=L(er,11),kt=G[0],tr=G[1],Tt=G[2],Ot=G[3],Ue=G[4],Et=G[5],rr=G[6],Ze=G[7],zt=G[8],rt=G[9],xe=G[10],Qe=so(ge,c,f,m),nt=L(Qe,2),ot=nt[0],$e=nt[1],Dt=ot.has("click"),Je=$e.has("click")||$e.has("contextMenu"),We=Te(function(){et||xe()}),Lt=function(){Me.current&&ae&&Je&&ne(!1)};fo(S,Ce,ye,We,Lt),Pe(function(){We()},[bt,A]),Pe(function(){S&&!(T!=null&&T[A])&&We()},[JSON.stringify(k)]);var nr=i.useMemo(function(){var d=co(T,a,rt,ae);return pe(d,x==null?void 0:x(rt))},[rt,x,T,a,ae]);i.useImperativeHandle(n,function(){return{nativeElement:St.current,forceAlign:We}});var or=i.useState(0),Nt=L(or,2),ar=Nt[0],ir=Nt[1],sr=i.useState(0),At=L(sr,2),lr=At[0],cr=At[1],jt=function(){if(Z&&Ce){var g=Ce.getBoundingClientRect();ir(g.width),cr(g.height)}},ur=function(){jt(),We()},he=function(g){mt(!1),xe(),p==null||p(g)},Wt=function(){return new Promise(function(g){jt(),je(function(){return g})})};Pe(function(){Ae&&(xe(),Ae(),je(null))},[Ae]);function ke(d,g,E,H){De[d]=function(z){var It;H==null||H(z),ne(g,E);for(var mr=arguments.length,Sr=new Array(mr>1?mr-1:0),Vt=1;Vt1?E-1:0),z=1;z1?E-1:0),z=1;z{const{sizePopupArrow:n,arrowPolygon:o,arrowPath:a,arrowShadowWidth:s,borderRadiusXS:l,calc:c}=e;return{pointerEvents:"none",width:n,height:n,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:n,height:c(n).div(2).equal(),background:r,clipPath:{_multi_value_:!0,value:[o,a]},content:'""'},"&::after":{content:'""',position:"absolute",width:s,height:s,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${pr(l)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:t,zIndex:0,background:"transparent"}}},Xr=8;function Yr(e){const{contentRadius:r,limitVerticalRadius:t}=e,n=r>12?r+2:12;return{arrowOffsetHorizontal:n,arrowOffsetVertical:t?Xr:n}}function Ht(e,r){return e?r:{}}function Mo(e,r,t){const{componentCls:n,boxShadowPopoverArrow:o,arrowOffsetVertical:a,arrowOffsetHorizontal:s}=e,{arrowDistance:l=0,arrowPlacement:c={left:!0,right:!0,top:!0,bottom:!0}}=t||{};return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({[`${n}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},_o(e,r,o)),{"&:before":{background:r}})]},Ht(!!c.top,{[[`&-placement-top > ${n}-arrow`,`&-placement-topLeft > ${n}-arrow`,`&-placement-topRight > ${n}-arrow`].join(",")]:{bottom:l,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft > ${n}-arrow`]:{left:{_skip_check_:!0,value:s}},[`&-placement-topRight > ${n}-arrow`]:{right:{_skip_check_:!0,value:s}}})),Ht(!!c.bottom,{[[`&-placement-bottom > ${n}-arrow`,`&-placement-bottomLeft > ${n}-arrow`,`&-placement-bottomRight > ${n}-arrow`].join(",")]:{top:l,transform:"translateY(-100%)"},[`&-placement-bottom > ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},[`&-placement-bottomLeft > ${n}-arrow`]:{left:{_skip_check_:!0,value:s}},[`&-placement-bottomRight > ${n}-arrow`]:{right:{_skip_check_:!0,value:s}}})),Ht(!!c.left,{[[`&-placement-left > ${n}-arrow`,`&-placement-leftTop > ${n}-arrow`,`&-placement-leftBottom > ${n}-arrow`].join(",")]:{right:{_skip_check_:!0,value:l},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${n}-arrow`]:{top:a},[`&-placement-leftBottom > ${n}-arrow`]:{bottom:a}})),Ht(!!c.right,{[[`&-placement-right > ${n}-arrow`,`&-placement-rightTop > ${n}-arrow`,`&-placement-rightBottom > ${n}-arrow`].join(",")]:{left:{_skip_check_:!0,value:l},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${n}-arrow`]:{top:a},[`&-placement-rightBottom > ${n}-arrow`]:{bottom:a}}))}}function Po(e,r,t,n){if(n===!1)return{adjustX:!1,adjustY:!1};const o=n&&typeof n=="object"?n:{},a={};switch(e){case"top":case"bottom":a.shiftX=r.arrowOffsetHorizontal*2+t,a.shiftY=!0,a.adjustY=!0;break;case"left":case"right":a.shiftY=r.arrowOffsetVertical*2+t,a.shiftX=!0,a.adjustX=!0;break}const s=Object.assign(Object.assign({},a),o);return s.shiftX||(s.adjustX=!0),s.shiftY||(s.adjustY=!0),s}const Ar={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"]}},So={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"]}},Ro=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function xo(e){const{arrowWidth:r,autoAdjustOverflow:t,arrowPointAtCenter:n,offset:o,borderRadius:a,visibleFirst:s}=e,l=r/2,c={};return Object.keys(Ar).forEach(f=>{const m=n&&So[f]||Ar[f],v=Object.assign(Object.assign({},m),{offset:[0,0],dynamicInset:!0});switch(c[f]=v,Ro.has(f)&&(v.autoArrow=!1),f){case"top":case"topLeft":case"topRight":v.offset[1]=-l-o;break;case"bottom":case"bottomLeft":case"bottomRight":v.offset[1]=l+o;break;case"left":case"leftTop":case"leftBottom":v.offset[0]=-l-o;break;case"right":case"rightTop":case"rightBottom":v.offset[0]=l+o;break}const w=Yr({contentRadius:a,limitVerticalRadius:!0});if(n)switch(f){case"topLeft":case"bottomLeft":v.offset[0]=-w.arrowOffsetHorizontal-l;break;case"topRight":case"bottomRight":v.offset[0]=w.arrowOffsetHorizontal+l;break;case"leftTop":case"rightTop":v.offset[1]=-w.arrowOffsetHorizontal-l;break;case"leftBottom":case"rightBottom":v.offset[1]=w.arrowOffsetHorizontal+l;break}v.overflow=Po(f,w,r,t),s&&(v.htmlRegion="visibleFirst")}),c}const $o=e=>{const{componentCls:r,tooltipMaxWidth:t,tooltipColor:n,tooltipBg:o,tooltipBorderRadius:a,zIndexPopup:s,controlHeight:l,boxShadowSecondary:c,paddingSM:f,paddingXS:m}=e;return[{[r]:Object.assign(Object.assign(Object.assign(Object.assign({},gn(e)),{position:"absolute",zIndex:s,display:"block",width:"max-content",maxWidth:t,visibility:"visible",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","&-hidden":{display:"none"},"--antd-arrow-background-color":o,[`${r}-inner`]:{minWidth:l,minHeight:l,padding:`${pr(e.calc(f).div(2).equal())} ${pr(m)}`,color:n,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:o,borderRadius:a,boxShadow:c,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${r}-inner`]:{borderRadius:e.min(a,Xr)}},[`${r}-content`]:{position:"relative"}}),eo(e,(v,w)=>{let{darkColor:h}=w;return{[`&${r}-${v}`]:{[`${r}-inner`]:{backgroundColor:h},[`${r}-arrow`]:{"--antd-arrow-background-color":h}}}})),{"&-rtl":{direction:"rtl"}})},Mo(e,"var(--antd-arrow-background-color)"),{[`${r}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},ko=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},Yr({contentRadius:e.borderRadius,limitVerticalRadius:!0})),Co(Hr(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),en=function(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return hn("Tooltip",n=>{const{borderRadius:o,colorTextLightSolid:a,colorBgSpotlight:s}=n,l=Hr(n,{tooltipMaxWidth:250,tooltipColor:a,tooltipBorderRadius:o,tooltipBg:s});return[$o(l),mn(n,"zoom-big-fast")]},ko,{resetStyle:!1,injectStyle:r})(e)},To=Ut.map(e=>`${e}-inverse`);function Oo(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(Ft(To),Ft(Ut)).includes(e):Ut.includes(e)}function tn(e,r){const t=Oo(r),n=pe({[`${e}-${r}`]:r&&t}),o={},a={};return r&&!t&&(o.background=r,a["--antd-arrow-background-color"]=r),{className:n,overlayStyle:o,arrowStyle:a}}const Eo=e=>{const{prefixCls:r,className:t,placement:n="top",title:o,color:a,overlayInnerStyle:s}=e,{getPrefixCls:l}=i.useContext(Fr),c=l("tooltip",r),[f,m,v]=en(c),w=tn(c,a),h=w.arrowStyle,p=Object.assign(Object.assign({},s),w.overlayStyle),_=pe(m,v,c,`${c}-pure`,`${c}-placement-${n}`,t,w.className);return f(i.createElement("div",{className:_,style:h},i.createElement("div",{className:`${c}-arrow`}),i.createElement(Kr,Object.assign({},e,{className:m,prefixCls:c,overlayInnerStyle:p}),o)))},zo=Eo;var Do=globalThis&&globalThis.__rest||function(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{var t,n;const{prefixCls:o,openClassName:a,getTooltipContainer:s,overlayClassName:l,color:c,overlayInnerStyle:f,children:m,afterOpenChange:v,afterVisibleChange:w,destroyTooltipOnHide:h,arrow:p=!0,title:_,overlay:b,builtinPlacements:M,arrowPointAtCenter:C=!1,autoAdjustOverflow:y=!0}=e,u=!!p,[,$]=bn(),{getPopupContainer:W,getPrefixCls:O,direction:B}=i.useContext(Fr),U=Sn(),N=i.useRef(null),I=()=>{var V;(V=N.current)===null||V===void 0||V.forceAlign()};i.useImperativeHandle(r,()=>({forceAlign:I,forcePopupAlign:()=>{U.deprecated(!1,"forcePopupAlign","forceAlign"),I()}}));const[J,K]=Yn(!1,{value:(t=e.open)!==null&&t!==void 0?t:e.visible,defaultValue:(n=e.defaultOpen)!==null&&n!==void 0?n:e.defaultVisible}),A=!_&&!b&&_!==0,oe=V=>{var ee,be;K(A?!1:V),A||((ee=e.onOpenChange)===null||ee===void 0||ee.call(e,V),(be=e.onVisibleChange)===null||be===void 0||be.call(e,V))},T=i.useMemo(()=>{var V,ee;let be=C;return typeof p=="object"&&(be=(ee=(V=p.pointAtCenter)!==null&&V!==void 0?V:p.arrowPointAtCenter)!==null&&ee!==void 0?ee:C),M||xo({arrowPointAtCenter:be,autoAdjustOverflow:y,arrowWidth:u?$.sizePopupArrow:0,borderRadius:$.borderRadius,offset:$.marginXXS,visibleFirst:!0})},[C,p,M,$]),k=i.useMemo(()=>_===0?_:b||_||"",[b,_]),P=i.createElement(yn,null,typeof k=="function"?k():k),{getPopupContainer:Z,placement:x="top",mouseEnterDelay:ue=.1,mouseLeaveDelay:ae=.1,overlayStyle:Ve,rootClassName:Oe}=e,fe=Do(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),ie=O("tooltip",o),se=O(),j=e["data-popover-inject"];let Q=J;!("open"in e)&&!("visible"in e)&&A&&(Q=!1);const te=wn(m)&&!pn(m)?m:i.createElement("span",null,m),X=te.props,Ee=!X.className||typeof X.className=="string"?pe(X.className,a||`${ie}-open`):X.className,[He,F,ze]=en(ie,!j),ve=tn(ie,c),Y=ve.arrowStyle,ge=Object.assign(Object.assign({},f),ve.overlayStyle),R=pe(l,{[`${ie}-rtl`]:B==="rtl"},ve.className,Oe,F,ze),[Se,re]=Cn("Tooltip",fe.zIndex),Xe=i.createElement(po,Object.assign({},fe,{zIndex:Se,showArrow:u,placement:x,mouseEnterDelay:ue,mouseLeaveDelay:ae,prefixCls:ie,overlayClassName:R,overlayStyle:Object.assign(Object.assign({},Y),Ve),getTooltipContainer:Z||s||W,ref:N,builtinPlacements:T,overlay:P,visible:Q,onVisibleChange:oe,afterVisibleChange:v??w,overlayInnerStyle:ge,arrowContent:i.createElement("span",{className:`${ie}-arrow-content`}),motion:{motionName:_n(se,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!h}),Q?Mn(te,{className:Ee}):te);return He(i.createElement(Pn.Provider,{value:re},Xe))});rn._InternalPanelDoNotUseOrYouWillBeFired=zo;const No=rn;export{Ut as P,Pr as R,No as T,go as a,Yr as b,Co as c,xo as d,Kr as e,Mo as g,to as i,Yn as u};