import{n as e}from"./rolldown-runtime-Dl_DZoUm.js";import{$n as t,An as n,At as r,Bt as i,C as a,Cn as o,Ct as s,Dn as c,Et as l,Fn as u,Gt as d,H as f,Hn as p,Ht as m,In as h,Jn as g,Kn as _,Ln as v,Lt as y,Mn as b,Mt as x,Nt as S,On as C,Pn as w,Qn as T,Rn as E,St as D,Tn as O,Tt as ee,Vn as k,W as te,Wn as A,Wt as j,Y as M,Zn as N,Zt as P,_t as F,an as I,at as L,dn as R,dt as ne,en as z,er as B,it as re,jn as ie,kn as V,ln as H,mt as ae,nn as U,nr as W,qn as G,qt as oe,rn as se,sn as ce,un as le,ut as ue,vn as de,vt as K,xt as fe,zn as pe,zt as q}from"./index-BvkDlq1y.js";var J=e(B()),Y=e(W()),me=Y.createContext(null),he=(function(){if(typeof Map<`u`)return Map;function e(e,t){var n=-1;return e.some(function(e,r){return e[0]===t&&(n=r,!0)}),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){t===void 0&&(t=null);for(var n=0,r=this.__entries__;n0},e.prototype.connect_=function(){ge&&!this.connected_&&(document.addEventListener(`transitionend`,this.onTransitionEnd_),window.addEventListener(`resize`,this.refresh),Se?(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(){ge&&this.connected_&&(document.removeEventListener(`transitionend`,this.onTransitionEnd_),window.removeEventListener(`resize`,this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener(`DOMSubtreeModified`,this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=t===void 0?``:t;xe.some(function(e){return!!~n.indexOf(e)})&&this.refresh()},e.getInstance=function(){return this.instance_||=new e,this.instance_},e.instance_=null,e}(),Z=(function(e,t){for(var n=0,r=Object.keys(t);n0},e}(),$=typeof WeakMap<`u`?new WeakMap:new he,Re=function(){function e(t){if(!(this instanceof e))throw TypeError(`Cannot call a class as a function.`);if(!arguments.length)throw TypeError(`1 argument required, but only 0 present.`);var n=new Le(t,Ce.getInstance(),this);$.set(this,n)}return e}();[`observe`,`unobserve`,`disconnect`].forEach(function(e){Re.prototype[e]=function(){var t;return(t=$.get(this))[e].apply(t,arguments)}});var ze=(function(){return _e.ResizeObserver===void 0?Re:_e.ResizeObserver})(),Be=new Map;function Ve(e){e.forEach(function(e){var t,n=e.target;(t=Be.get(n))==null||t.forEach(function(e){return e(n)})})}var He=new ze(Ve);function Ue(e,t){Be.has(e)||(Be.set(e,new Set),He.observe(e)),Be.get(e).add(t)}function We(e,t){Be.has(e)&&(Be.get(e).delete(t),Be.get(e).size||(He.unobserve(e),Be.delete(e)))}var Ge=function(e){w(n,e);var t=b(n);function n(){return h(this,n),t.apply(this,arguments)}return u(n,[{key:`render`,value:function(){return this.props.children}}]),n}(Y.Component);function Ke(e,t){var n=e.children,r=e.disabled,i=Y.useRef(null),a=Y.useRef(null),o=Y.useContext(me),s=typeof n==`function`,c=s?n(i):n,l=Y.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),u=!s&&Y.isValidElement(c)&&k(c),d=u?pe(c):null,f=p(d,i),m=function(){return A(i.current)||(i.current&&T(i.current)===`object`?A(i.current?.nativeElement):null)||A(a.current)};Y.useImperativeHandle(t,function(){return m()});var h=Y.useRef(e);h.current=e;var g=Y.useCallback(function(e){var t=h.current,n=t.onResize,r=t.data,i=e.getBoundingClientRect(),a=i.width,s=i.height,c=e.offsetWidth,u=e.offsetHeight,d=Math.floor(a),f=Math.floor(s);if(l.current.width!==d||l.current.height!==f||l.current.offsetWidth!==c||l.current.offsetHeight!==u){var p={width:d,height:f,offsetWidth:c,offsetHeight:u};l.current=p;var m=c===Math.round(a)?a:c,g=u===Math.round(s)?s:u,_=G(G({},p),{},{offsetWidth:m,offsetHeight:g});o?.(_,e,r),n&&Promise.resolve().then(function(){n(_,e)})}},[]);return Y.useEffect(function(){var e=m();return e&&!r&&Ue(e,g),function(){return We(e,g)}},[i.current,r]),Y.createElement(Ge,{ref:a},u?Y.cloneElement(c,{ref:f}):c)}var qe=Y.forwardRef(Ke),Je=`rc-observer-key`;function Ye(e,n){var r=e.children;return(typeof r==`function`?[r]:N(r)).map(function(r,i){var a=r?.key||`${Je}-${i}`;return Y.createElement(qe,t({},e,{key:a,ref:i===0?n:void 0}),r)})}var Xe=Y.forwardRef(Ye);Xe.Collection=function(e){var t=e.children,n=e.onBatchResize,r=Y.useRef(0),i=Y.useRef([]),a=Y.useContext(me),o=Y.useCallback(function(e,t,o){r.current+=1;var s=r.current;i.current.push({size:e,element:t,data:o}),Promise.resolve().then(function(){s===r.current&&(n?.(i.current),i.current=[])}),a?.(e,t,o)},[n,a]);return Y.createElement(me.Provider,{value:o},t)};var Ze=e=>e instanceof ae?e:new ae(e),Qe=function(e){if(C()&&window.document.documentElement){var t=Array.isArray(e)?e:[e],n=window.document.documentElement;return t.some(function(e){return e in n.style})}return!1},$e=function(e,t){if(!Qe(e))return!1;var n=document.createElement(`div`),r=n.style[e];return n.style[e]=t,n.style[e]!==r};function et(e,t){return!Array.isArray(e)&&t!==void 0?$e(e,t):Qe(e)}var tt=(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?.substr(0,4))});function nt(e){var t=e.prefixCls,n=e.align,r=e.arrow,i=e.arrowPos,a=r||{},o=a.className,s=a.content,c=i.x,l=c===void 0?0:c,u=i.y,d=u===void 0?0:u,f=Y.useRef();if(!n||!n.points)return null;var p={position:`absolute`};if(n.autoArrow!==!1){var m=n.points[0],h=n.points[1],g=m[0],_=m[1],v=h[0],y=h[1];g===v||![`t`,`b`].includes(g)?p.top=d:g===`t`?p.top=0:p.bottom=0,_===y||![`l`,`r`].includes(_)?p.left=l:_===`l`?p.left=0:p.right=0}return Y.createElement(`div`,{ref:f,className:(0,J.default)(`${t}-arrow`,o),style:p},s)}function rt(e){var n=e.prefixCls,r=e.open,i=e.zIndex,a=e.mask,o=e.motion;return a?Y.createElement(m,t({},o,{motionAppear:!0,visible:r,removeOnLeave:!0}),function(e){var t=e.className;return Y.createElement(`div`,{style:{zIndex:i},className:(0,J.default)(`${n}-mask`,t)})}):null}var it=Y.memo(function(e){return e.children},function(e,t){return t.cache}),at=Y.forwardRef(function(e,n){var r=e.popup,i=e.className,a=e.prefixCls,s=e.style,c=e.target,l=e.onVisibleChanged,u=e.open,d=e.keepDom,f=e.fresh,p=e.onClick,h=e.mask,g=e.arrow,_=e.arrowPos,y=e.align,b=e.motion,x=e.maskMotion,S=e.forceRender,C=e.getPopupContainer,w=e.autoDestroy,T=e.portal,E=e.zIndex,D=e.onMouseEnter,O=e.onMouseLeave,ee=e.onPointerEnter,k=e.onPointerDownCapture,te=e.ready,A=e.offsetX,j=e.offsetY,M=e.offsetR,N=e.offsetB,P=e.onAlign,F=e.onPrepare,I=e.stretch,L=e.targetWidth,R=e.targetHeight,ne=typeof r==`function`?r():r,z=u||d,B=C?.length>0,re=Y.useState(!C||!B),ie=V(re,2),H=ie[0],ae=ie[1];if(o(function(){!H&&B&&c&&ae(!0)},[H,B,c]),!H)return null;var U=`auto`,W={left:`-1000vw`,top:`-1000vh`,right:U,bottom:U};if(te||!u){var oe=y.points,se=y.dynamicInset||y._experimental?.dynamicInset,ce=se&&oe[0][1]===`r`,le=se&&oe[0][0]===`b`;ce?(W.right=M,W.left=U):(W.left=A,W.right=U),le?(W.bottom=N,W.top=U):(W.top=j,W.bottom=U)}var ue={};return I&&(I.includes(`height`)&&R?ue.height=R:I.includes(`minHeight`)&&R&&(ue.minHeight=R),I.includes(`width`)&&L?ue.width=L:I.includes(`minWidth`)&&L&&(ue.minWidth=L)),u||(ue.pointerEvents=`none`),Y.createElement(T,{open:S||z,getContainer:C&&function(){return C(c)},autoDestroy:w},Y.createElement(rt,{prefixCls:a,open:u,zIndex:E,mask:h,motion:x}),Y.createElement(Xe,{onResize:P,disabled:!u},function(e){return Y.createElement(m,t({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:S,leavedClassName:`${a}-hidden`},b,{onAppearPrepare:F,onEnterPrepare:F,visible:u,onVisibleChanged:function(e){var t;b==null||(t=b.onVisibleChanged)==null||t.call(b,e),l(e)}}),function(t,r){var o=t.className,c=t.style,l=(0,J.default)(a,o,i);return Y.createElement(`div`,{ref:v(e,n,r),className:l,style:G(G(G(G({"--arrow-x":`${_.x||0}px`,"--arrow-y":`${_.y||0}px`},W),ue),c),{},{boxSizing:`border-box`,zIndex:E},s),onMouseEnter:D,onMouseLeave:O,onPointerEnter:ee,onClick:p,onPointerDownCapture:k},g&&Y.createElement(nt,{prefixCls:a,arrow:g,arrowPos:_,align:y}),Y.createElement(it,{cache:!u&&!f},ne))})}))}),ot=Y.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,i=k(n),a=Y.useCallback(function(e){E(t,r?r(e):e)},[r]),o=p(a,pe(n));return i?Y.cloneElement(n,{ref:o}):n}),st=Y.createContext(null);function ct(e){return e?Array.isArray(e)?e:[e]:[]}function lt(e,t,n,r){return Y.useMemo(function(){var i=ct(n??t),a=ct(r??t),o=new Set(i),s=new Set(a);return e&&(o.has(`hover`)&&(o.delete(`hover`),o.add(`click`)),s.has(`hover`)&&(s.delete(`hover`),s.add(`click`))),[o,s]},[e,t,n,r])}function ut(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return arguments.length>2&&arguments[2]?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function dt(e,t,n,r){for(var i=n.points,a=Object.keys(e),o=0;o1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function gt(e){return ht(parseFloat(e),0)}function _t(e,t){var n=G({},e);return(t||[]).forEach(function(e){if(!(e instanceof HTMLBodyElement||e instanceof HTMLHtmlElement)){var t=pt(e).getComputedStyle(e),r=t.overflow,i=t.overflowClipMargin,a=t.borderTopWidth,o=t.borderBottomWidth,s=t.borderLeftWidth,c=t.borderRightWidth,l=e.getBoundingClientRect(),u=e.offsetHeight,d=e.clientHeight,f=e.offsetWidth,p=e.clientWidth,m=gt(a),h=gt(o),g=gt(s),_=gt(c),v=ht(Math.round(l.width/f*1e3)/1e3),y=ht(Math.round(l.height/u*1e3)/1e3),b=(f-p-g-_)*v,x=(u-d-m-h)*y,S=m*y,C=h*y,w=g*v,T=_*v,E=0,D=0;if(r===`clip`){var O=gt(i);E=O*v,D=O*y}var ee=l.x+w-E,k=l.y+S-D,te=ee+l.width+2*E-w-T-b,A=k+l.height+2*D-S-C-x;n.left=Math.max(n.left,ee),n.top=Math.max(n.top,k),n.right=Math.min(n.right,te),n.bottom=Math.min(n.bottom,A)}}),n}function vt(e){var t=`${arguments.length>1&&arguments[1]!==void 0?arguments[1]:0}`,n=t.match(/^(.*)\%$/);return n?e*(parseFloat(n[1])/100):parseFloat(t)}function yt(e,t){var n=V(t||[],2),r=n[0],i=n[1];return[vt(e.width,r),vt(e.height,i)]}function bt(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:``;return[e[0],e[1]]}function xt(e,t){var n=t[0],r=t[1],i,a=n===`t`?e.y:n===`b`?e.y+e.height:e.y+e.height/2;return i=r===`l`?e.x:r===`r`?e.x+e.width:e.x+e.width/2,{x:i,y:a}}function St(e,t){var n={t:`b`,b:`t`,l:`r`,r:`l`};return e.map(function(e,r){return r===t?n[e]||`c`:e}).join(``)}function Ct(e,t,n,r,i,a,s){var c=Y.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:i[r]||{}}),l=V(c,2),u=l[0],d=l[1],f=Y.useRef(0),p=Y.useMemo(function(){return t?mt(t):[]},[t]),m=Y.useRef({});e||function(){m.current={}}();var h=I(function(){if(t&&n&&e){var o,c,l=t,u=l.ownerDocument,f=pt(l),h=f.getComputedStyle(l).position,g=l.style.left,v=l.style.top,y=l.style.right,b=l.style.bottom,x=l.style.overflow,S=G(G({},i[r]),a),C=u.createElement(`div`);(o=l.parentElement)==null||o.appendChild(C),C.style.left=`${l.offsetLeft}px`,C.style.top=`${l.offsetTop}px`,C.style.position=h,C.style.height=`${l.offsetHeight}px`,C.style.width=`${l.offsetWidth}px`,l.style.left=`0`,l.style.top=`0`,l.style.right=`auto`,l.style.bottom=`auto`,l.style.overflow=`hidden`;var w;if(Array.isArray(n))w={x:n[0],y:n[1],width:0,height:0};else{var T=n.getBoundingClientRect();T.x=T.x??T.left,T.y=T.y??T.top,w={x:T.x,y:T.y,width:T.width,height:T.height}}var E=l.getBoundingClientRect(),D=f.getComputedStyle(l),O=D.height,ee=D.width;E.x=E.x??E.left,E.y=E.y??E.top;var k=u.documentElement,te=k.clientWidth,A=k.clientHeight,j=k.scrollWidth,M=k.scrollHeight,N=k.scrollTop,P=k.scrollLeft,F=E.height,I=E.width,L=w.height,R=w.width,ne={left:0,top:0,right:te,bottom:A},z={left:-P,top:-N,right:j-P,bottom:M-N},B=S.htmlRegion,re=`visible`,ie=`visibleFirst`;B!==`scroll`&&B!==ie&&(B=re);var H=B===ie,ae=_t(z,p),U=_t(ne,p),W=B===re?U:ae,oe=H?U:W;l.style.left=`auto`,l.style.top=`auto`,l.style.right=`0`,l.style.bottom=`0`;var se=l.getBoundingClientRect();l.style.left=g,l.style.top=v,l.style.right=y,l.style.bottom=b,l.style.overflow=x,(c=l.parentElement)==null||c.removeChild(C);var ce=ht(Math.round(I/parseFloat(ee)*1e3)/1e3),le=ht(Math.round(F/parseFloat(O)*1e3)/1e3);if(ce===0||le===0||_(n)&&!fe(n))return;var ue=S.offset,de=S.targetOffset,K=yt(E,ue),pe=V(K,2),q=pe[0],J=pe[1],Y=yt(w,de),me=V(Y,2),he=me[0],ge=me[1];w.x-=he,w.y-=ge;var _e=S.points||[],ve=V(_e,2),ye=ve[0],be=bt(ve[1]),X=bt(ye),xe=xt(w,be),Se=xt(E,X),Ce=G({},S),Z=xe.x-Se.x+q,Q=xe.y-Se.y+J;function e(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:W,r=E.x+e,i=E.y+t,a=r+I,o=i+F,s=Math.max(r,n.left),c=Math.max(i,n.top),l=Math.min(a,n.right),u=Math.min(o,n.bottom);return Math.max(0,(l-s)*(u-c))}var we=e(Z,Q),Te=e(Z,Q,U),Ee=xt(w,[`t`,`l`]),De=xt(E,[`t`,`l`]),Oe=xt(w,[`b`,`r`]),ke=xt(E,[`b`,`r`]),Ae=S.overflow||{},je=Ae.adjustX,Me=Ae.adjustY,Ne=Ae.shiftX,Pe=Ae.shiftY,Fe=function(e){return typeof e==`boolean`?e:e>=0},Ie,Le,$,Re;function vt(){Ie=E.y+Q,Le=Ie+F,$=E.x+Z,Re=$+I}vt();var ze=Fe(Me),Be=X[0]===be[0];if(ze&&X[0]===`t`&&(Le>oe.bottom||m.current.bt)){var Ve=Q;Be?Ve-=F-L:Ve=Ee.y-ke.y-J;var He=e(Z,Ve),Ue=e(Z,Ve,U);He>we||He===we&&(!H||Ue>=Te)?(m.current.bt=!0,Q=Ve,J=-J,Ce.points=[St(X,0),St(be,0)]):m.current.bt=!1}if(ze&&X[0]===`b`&&(Iewe||Ge===we&&(!H||Ke>=Te)?(m.current.tb=!0,Q=We,J=-J,Ce.points=[St(X,0),St(be,0)]):m.current.tb=!1}var qe=Fe(je),Je=X[1]===be[1];if(qe&&X[1]===`l`&&(Re>oe.right||m.current.rl)){var Ye=Z;Je?Ye-=I-R:Ye=Ee.x-ke.x-q;var Xe=e(Ye,Q),Ze=e(Ye,Q,U);Xe>we||Xe===we&&(!H||Ze>=Te)?(m.current.rl=!0,Z=Ye,q=-q,Ce.points=[St(X,1),St(be,1)]):m.current.rl=!1}if(qe&&X[1]===`r`&&($we||$e===we&&(!H||et>=Te)?(m.current.lr=!0,Z=Qe,q=-q,Ce.points=[St(X,1),St(be,1)]):m.current.lr=!1}vt();var tt=Ne===!0?0:Ne;typeof tt==`number`&&($U.right&&(Z-=Re-U.right-q,w.x>U.right-tt&&(Z+=w.x-U.right+tt)));var nt=Pe===!0?0:Pe;typeof nt==`number`&&(IeU.bottom&&(Q-=Le-U.bottom-J,w.y>U.bottom-nt&&(Q+=w.y-U.bottom+nt)));var rt=E.x+Z,it=rt+I,at=E.y+Q,ot=at+F,st=w.x,ct=st+R,lt=w.y,ut=lt+L,dt=(Math.max(rt,st)+Math.min(it,ct))/2-rt,ft=(Math.max(at,lt)+Math.min(ot,ut))/2-at;s?.(t,Ce);var mt=se.right-E.x-(Z+E.width),gt=se.bottom-E.y-(Q+E.height);ce===1&&(Z=Math.floor(Z),mt=Math.floor(mt)),le===1&&(Q=Math.floor(Q),gt=Math.floor(gt)),d({ready:!0,offsetX:Z/ce,offsetY:Q/le,offsetR:mt/ce,offsetB:gt/le,arrowX:dt/ce,arrowY:ft/le,scaleX:ce,scaleY:le,align:Ce})}}),g=function(){f.current+=1;var e=f.current;Promise.resolve().then(function(){f.current===e&&h()})},v=function(){d(function(e){return G(G({},e),{},{ready:!1})})};return o(v,[r]),o(function(){e||v()},[e]),[u.ready,u.offsetX,u.offsetY,u.offsetR,u.offsetB,u.arrowX,u.arrowY,u.scaleX,u.scaleY,u.align,g]}function wt(e,t,n,r,i){o(function(){if(e&&t&&n){var a=t,o=n,s=mt(a),c=mt(o),l=pt(o),u=new Set([l].concat(ie(s),ie(c)));function e(){r(),i()}return u.forEach(function(t){t.addEventListener(`scroll`,e,{passive:!0})}),l.addEventListener(`resize`,e,{passive:!0}),r(),function(){u.forEach(function(t){t.removeEventListener(`scroll`,e),l.removeEventListener(`resize`,e)})}}},[e,t,n])}function Tt(e,t,n,r,a,o,s,c){var l=Y.useRef(e);l.current=e;var u=Y.useRef(!1);Y.useEffect(function(){if(t&&r&&(!a||o)){var e=function(){u.current=!1},d=function(e){var t;l.current&&!s(((t=e.composedPath)==null||(t=t.call(e))==null?void 0:t[0])||e.target)&&!u.current&&c(!1)},f=pt(r);f.addEventListener(`pointerdown`,e,!0),f.addEventListener(`mousedown`,d,!0),f.addEventListener(`contextmenu`,d,!0);var p=i(n);return p&&(p.addEventListener(`mousedown`,d,!0),p.addEventListener(`contextmenu`,d,!0)),function(){f.removeEventListener(`pointerdown`,e,!0),f.removeEventListener(`mousedown`,d,!0),f.removeEventListener(`contextmenu`,d,!0),p&&(p.removeEventListener(`mousedown`,d,!0),p.removeEventListener(`contextmenu`,d,!0))}}},[t,n,r,a,o]);function d(){u.current=!0}return d}var Et=`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`.split(`.`);function Dt(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:L;return Y.forwardRef(function(t,n){var r=t.prefixCls,a=r===void 0?`rc-trigger-popup`:r,s=t.children,l=t.action,u=l===void 0?`hover`:l,d=t.showAction,f=t.hideAction,p=t.popupVisible,m=t.defaultPopupVisible,h=t.onPopupVisibleChange,g=t.afterPopupVisibleChange,v=t.mouseEnterDelay,y=t.mouseLeaveDelay,b=y===void 0?.1:y,x=t.focusDelay,S=t.blurDelay,C=t.mask,w=t.maskClosable,T=w===void 0||w,E=t.getPopupContainer,D=t.forceRender,O=t.autoDestroy,ee=t.destroyPopupOnHide,k=t.popup,te=t.popupClassName,A=t.popupStyle,j=t.popupPlacement,M=t.builtinPlacements,N=M===void 0?{}:M,P=t.popupAlign,F=t.zIndex,L=t.stretch,R=t.getPopupClassNameFromAlign,ne=t.fresh,z=t.alignPoint,B=t.onPopupClick,ie=t.onPopupAlign,H=t.arrow,ae=t.popupMotion,U=t.maskMotion,W=t.popupTransitionName,oe=t.popupAnimation,se=t.maskTransitionName,ce=t.maskAnimation,le=t.className,ue=t.getTriggerDOMNode,de=c(t,Et),K=O||ee||!1,fe=Y.useState(!1),pe=V(fe,2),q=pe[0],me=pe[1];o(function(){me(tt())},[]);var he=Y.useRef({}),ge=Y.useContext(st),_e=Y.useMemo(function(){return{registerSubPopup:function(e,t){he.current[e]=t,ge?.registerSubPopup(e,t)}}},[ge]),ve=re(),ye=Y.useState(null),be=V(ye,2),X=be[0],xe=be[1],Se=Y.useRef(null),Ce=I(function(e){Se.current=e,_(e)&&X!==e&&xe(e),ge?.registerSubPopup(ve,e)}),Z=Y.useState(null),Q=V(Z,2),we=Q[0],Te=Q[1],Ee=Y.useRef(null),De=I(function(e){_(e)&&we!==e&&(Te(e),Ee.current=e)}),Oe=Y.Children.only(s),ke=Oe?.props||{},Ae={},je=I(function(e){var t=we;return t?.contains(e)||i(t)?.host===e||e===t||X?.contains(e)||i(X)?.host===e||e===X||Object.values(he.current).some(function(t){return t?.contains(e)||e===t})}),Me=ft(a,ae,oe,W),Ne=ft(a,U,ce,se),Pe=Y.useState(m||!1),Fe=V(Pe,2),Ie=Fe[0],Le=Fe[1],$=p??Ie,Re=I(function(e){p===void 0&&Le(e)});o(function(){Le(p||!1)},[p]);var ze=Y.useRef($);ze.current=$;var Be=Y.useRef([]);Be.current=[];var Ve=I(function(e){Re(e),(Be.current[Be.current.length-1]??$)!==e&&(Be.current.push(e),h?.(e))}),He=Y.useRef(),Ue=function(){clearTimeout(He.current)},We=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Ue(),t===0?Ve(e):He.current=setTimeout(function(){Ve(e)},t*1e3)};Y.useEffect(function(){return Ue},[]);var Ge=Y.useState(!1),Ke=V(Ge,2),qe=Ke[0],Je=Ke[1];o(function(e){(!e||$)&&Je(!0)},[$]);var Ye=Y.useState(null),Ze=V(Ye,2),Qe=Ze[0],$e=Ze[1],et=Y.useState(null),nt=V(et,2),rt=nt[0],it=nt[1],ct=function(e){it([e.clientX,e.clientY])},ut=Ct($,X,z&&rt!==null?rt:we,j,N,P,ie),pt=V(ut,11),mt=pt[0],ht=pt[1],gt=pt[2],_t=pt[3],vt=pt[4],yt=pt[5],bt=pt[6],xt=pt[7],St=pt[8],Dt=pt[9],Ot=pt[10],kt=lt(q,u,d,f),At=V(kt,2),jt=At[0],Mt=At[1],Nt=jt.has(`click`),Pt=Mt.has(`click`)||Mt.has(`contextMenu`),Ft=I(function(){qe||Ot()});wt($,we,X,Ft,function(){ze.current&&z&&Pt&&We(!1)}),o(function(){Ft()},[rt,j]),o(function(){$&&!(N!=null&&N[j])&&Ft()},[JSON.stringify(P)]);var It=Y.useMemo(function(){var e=dt(N,a,Dt,z);return(0,J.default)(e,R?.(Dt))},[Dt,R,N,a,z]);Y.useImperativeHandle(n,function(){return{nativeElement:Ee.current,popupElement:Se.current,forceAlign:Ft}});var Lt=Y.useState(0),Rt=V(Lt,2),zt=Rt[0],Bt=Rt[1],Vt=Y.useState(0),Ht=V(Vt,2),Ut=Ht[0],Wt=Ht[1],Gt=function(){if(L&&we){var e=we.getBoundingClientRect();Bt(e.width),Wt(e.height)}},Kt=function(){Gt(),Ft()},qt=function(e){Je(!1),Ot(),g?.(e)},Jt=function(){return new Promise(function(e){Gt(),$e(function(){return e})})};o(function(){Qe&&(Ot(),Qe(),$e(null))},[Qe]);function Yt(e,t,n,r){Ae[e]=function(i){var a;r?.(i),We(t,n);var o=[...arguments].slice(1);(a=ke[e])==null||a.call.apply(a,[ke,i].concat(o))}}(Nt||Pt)&&(Ae.onClick=function(e){var t;ze.current&&Pt?We(!1):!ze.current&&Nt&&(ct(e),We(!0));var n=[...arguments].slice(1);(t=ke.onClick)==null||t.call.apply(t,[ke,e].concat(n))});var Xt=Tt($,Pt,we,X,C,T,je,We),Zt=jt.has(`hover`),Qt=Mt.has(`hover`),$t,en;Zt&&(Yt(`onMouseEnter`,!0,v,function(e){ct(e)}),Yt(`onPointerEnter`,!0,v,function(e){ct(e)}),$t=function(e){($||qe)&&X!=null&&X.contains(e.target)&&We(!0,v)},z&&(Ae.onMouseMove=function(e){var t;(t=ke.onMouseMove)==null||t.call(ke,e)})),Qt&&(Yt(`onMouseLeave`,!1,b),Yt(`onPointerLeave`,!1,b),en=function(){We(!1,b)}),jt.has(`focus`)&&Yt(`onFocus`,!0,x),Mt.has(`focus`)&&Yt(`onBlur`,!1,S),jt.has(`contextMenu`)&&(Ae.onContextMenu=function(e){var t;ze.current&&Mt.has(`contextMenu`)?We(!1):(ct(e),We(!0)),e.preventDefault();var n=[...arguments].slice(1);(t=ke.onContextMenu)==null||t.call.apply(t,[ke,e].concat(n))}),le&&(Ae.className=(0,J.default)(ke.className,le));var tn=Y.useRef(!1);tn.current||=D||$||qe;var nn=G(G({},ke),Ae),rn={};[`onContextMenu`,`onClick`,`onMouseDown`,`onTouchStart`,`onMouseEnter`,`onMouseLeave`,`onFocus`,`onBlur`].forEach(function(e){de[e]&&(rn[e]=function(){var t,n=[...arguments];(t=nn[e])==null||t.call.apply(t,[nn].concat(n)),de[e].apply(de,n)})});var an=Y.cloneElement(Oe,G(G({},nn),rn)),on={x:yt,y:bt},sn=H?G({},H===!0?{}:H):null;return Y.createElement(Y.Fragment,null,Y.createElement(Xe,{disabled:!$,ref:De,onResize:Kt},Y.createElement(ot,{getTriggerDOMNode:ue},an)),tn.current&&Y.createElement(st.Provider,{value:_e},Y.createElement(at,{portal:e,ref:Ce,prefixCls:a,popup:k,className:(0,J.default)(te,It),style:A,target:we,onMouseEnter:$t,onMouseLeave:en,onPointerEnter:$t,zIndex:F,open:$,keepDom:qe,fresh:ne,onClick:B,onPointerDownCapture:Xt,mask:C,motion:Me,maskMotion:Ne,onVisibleChanged:qt,onPrepare:Jt,forceRender:D,autoDestroy:K,getPopupContainer:E,align:Dt,arrow:sn,arrowPos:on,ready:mt,offsetX:ht,offsetY:gt,offsetR:_t,offsetB:vt,onAlign:Ft,stretch:L,targetWidth:zt/xt,targetHeight:Ut/St})))})}var Ot=Dt(L);function kt(e,t,n){return(0,J.default)({[`${e}-status-success`]:t===`success`,[`${e}-status-warning`]:t===`warning`,[`${e}-status-error`]:t===`error`,[`${e}-status-validating`]:t===`validating`,[`${e}-has-feedback`]:n})}var At=(e,t)=>t||e,jt=(e,t,n)=>{let{variant:r,[e]:i}=Y.useContext(H),a=Y.useContext(M),o=i?.variant,s;s=t===void 0?n===!1?`borderless`:a??o??r??`outlined`:t;let c=le.includes(s);return[s,c]},Mt={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z`}}]},name:`check`,theme:`outlined`},Nt=Y.forwardRef(function(e,n){return Y.createElement(q,t({},e,{ref:n,icon:Mt}))});function Pt(e){var t=e.children,n=e.prefixCls,r=e.id,i=e.overlayInnerStyle,a=e.bodyClassName,o=e.className,s=e.style;return Y.createElement(`div`,{className:(0,J.default)(`${n}-content`,o),style:s},Y.createElement(`div`,{className:(0,J.default)(`${n}-inner`,a),id:r,role:`tooltip`,style:i},typeof t==`function`?t():t))}var Ft={shiftX:64,adjustY:1},It={adjustX:1,shiftY:!0},Lt=[0,0],Rt={left:{points:[`cr`,`cl`],overflow:It,offset:[-4,0],targetOffset:Lt},right:{points:[`cl`,`cr`],overflow:It,offset:[4,0],targetOffset:Lt},top:{points:[`bc`,`tc`],overflow:Ft,offset:[0,-4],targetOffset:Lt},bottom:{points:[`tc`,`bc`],overflow:Ft,offset:[0,4],targetOffset:Lt},topLeft:{points:[`bl`,`tl`],overflow:Ft,offset:[0,-4],targetOffset:Lt},leftTop:{points:[`tr`,`tl`],overflow:It,offset:[-4,0],targetOffset:Lt},topRight:{points:[`br`,`tr`],overflow:Ft,offset:[0,-4],targetOffset:Lt},rightTop:{points:[`tl`,`tr`],overflow:It,offset:[4,0],targetOffset:Lt},bottomRight:{points:[`tr`,`br`],overflow:Ft,offset:[0,4],targetOffset:Lt},rightBottom:{points:[`bl`,`br`],overflow:It,offset:[4,0],targetOffset:Lt},bottomLeft:{points:[`tl`,`bl`],overflow:Ft,offset:[0,4],targetOffset:Lt},leftBottom:{points:[`br`,`bl`],overflow:It,offset:[-4,0],targetOffset:Lt}},zt=[`overlayClassName`,`trigger`,`mouseEnterDelay`,`mouseLeaveDelay`,`overlayStyle`,`prefixCls`,`children`,`onVisibleChange`,`afterVisibleChange`,`transitionName`,`animation`,`motion`,`placement`,`align`,`destroyTooltipOnHide`,`defaultVisible`,`getTooltipContainer`,`overlayInnerStyle`,`arrowContent`,`overlay`,`id`,`showArrow`,`classNames`,`styles`],Bt=(0,Y.forwardRef)(function(e,n){var r=e.overlayClassName,i=e.trigger,a=i===void 0?[`hover`]:i,o=e.mouseEnterDelay,s=o===void 0?0:o,l=e.mouseLeaveDelay,u=l===void 0?.1:l,d=e.overlayStyle,f=e.prefixCls,p=f===void 0?`rc-tooltip`:f,m=e.children,h=e.onVisibleChange,g=e.afterVisibleChange,_=e.transitionName,v=e.animation,y=e.motion,b=e.placement,x=b===void 0?`right`:b,S=e.align,C=S===void 0?{}:S,w=e.destroyTooltipOnHide,T=w!==void 0&&w,E=e.defaultVisible,D=e.getTooltipContainer,O=e.overlayInnerStyle;e.arrowContent;var ee=e.overlay,k=e.id,te=e.showArrow,A=te===void 0||te,j=e.classNames,M=e.styles,N=c(e,zt),P=re(k),F=(0,Y.useRef)(null);(0,Y.useImperativeHandle)(n,function(){return F.current});var I=G({},N);return`visible`in e&&(I.popupVisible=e.visible),Y.createElement(Ot,t({popupClassName:(0,J.default)(r,j?.root),prefixCls:p,popup:function(){return Y.createElement(Pt,{key:`content`,prefixCls:p,id:P,bodyClassName:j?.body,overlayInnerStyle:G(G({},O),M?.body)},ee)},action:a,builtinPlacements:Rt,popupPlacement:x,ref:F,popupAlign:C,getPopupContainer:D,onPopupVisibleChange:h,afterPopupVisibleChange:g,popupTransitionName:_,popupAnimation:v,popupMotion:y,defaultPopupVisible:E,autoDestroy:T,mouseLeaveDelay:u,popupStyle:G(G({},d),M?.root),mouseEnterDelay:s,arrow:A},I),function(){var e=Y.Children.only(m)?.props||{},t=G(G({},e),{},{"aria-describedby":ee?P:null});return Y.cloneElement(m,t)}())});function Vt(e){let{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,i=t/2,a=i,o=+r/Math.sqrt(2),s=i-r*(1-1/Math.sqrt(2)),c=i-1/Math.sqrt(2)*n,l=r*(Math.sqrt(2)-1)+1/Math.sqrt(2)*n,u=2*i-c,d=l,f=2*i-o,p=s,m=2*i,h=a,g=i*Math.sqrt(2)+r*(Math.sqrt(2)-2),_=r*(Math.sqrt(2)-1),v=`polygon(${_}px 100%, 50% ${_}px, ${2*i-_}px 100%, ${_}px 100%)`;return{arrowShadowWidth:g,arrowPath:`path('M 0 ${a} A ${r} ${r} 0 0 0 ${o} ${s} L ${c} ${l} A ${n} ${n} 0 0 1 ${u} ${d} L ${f} ${p} A ${r} ${r} 0 0 0 ${m} ${h} Z')`,arrowPolygon:v}}var Ht=(e,t,n)=>{let{sizePopupArrow:r,arrowPolygon:i,arrowPath:a,arrowShadowWidth:o,borderRadiusXS:s,calc:c}=e;return{pointerEvents:`none`,width:r,height:r,overflow:`hidden`,"&::before":{position:`absolute`,bottom:0,insetInlineStart:0,width:r,height:c(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[i,a]},content:`""`},"&::after":{content:`""`,position:`absolute`,width:o,height:o,bottom:0,insetInline:0,margin:`auto`,borderRadius:{_skip_check_:!0,value:`0 0 ${O(s)} 0`},transform:`translateY(50%) rotate(-135deg)`,boxShadow:n,zIndex:0,background:`transparent`}}};function Ut(e){let{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?8:r}}function Wt(e,t){return e?t:{}}function Gt(e,t,n){let{componentCls:r,boxShadowPopoverArrow:i,arrowOffsetVertical:a,arrowOffsetHorizontal:o}=e,{arrowDistance:s=0,arrowPlacement:c={left:!0,right:!0,top:!0,bottom:!0}}=n||{};return{[r]:Object.assign(Object.assign(Object.assign(Object.assign({[`${r}-arrow`]:[Object.assign(Object.assign({position:`absolute`,zIndex:1,display:`block`},Ht(e,t,i)),{"&:before":{background:t}})]},Wt(!!c.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(`,`)]:{bottom:s,transform:`translateY(100%) rotate(180deg)`},[`&-placement-top > ${r}-arrow`]:{left:{_skip_check_:!0,value:`50%`},transform:`translateX(-50%) translateY(100%) rotate(180deg)`},"&-placement-topLeft":{"--arrow-offset-horizontal":o,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:o}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${O(o)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:o}}}})),Wt(!!c.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(`,`)]:{top:s,transform:`translateY(-100%)`},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:!0,value:`50%`},transform:`translateX(-50%) translateY(-100%)`},"&-placement-bottomLeft":{"--arrow-offset-horizontal":o,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:o}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${O(o)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:o}}}})),Wt(!!c.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(`,`)]:{right:{_skip_check_:!0,value:s},transform:`translateX(100%) rotate(90deg)`},[`&-placement-left > ${r}-arrow`]:{top:{_skip_check_:!0,value:`50%`},transform:`translateY(-50%) translateX(100%) rotate(90deg)`},[`&-placement-leftTop > ${r}-arrow`]:{top:a},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:a}})),Wt(!!c.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(`,`)]:{left:{_skip_check_:!0,value:s},transform:`translateX(-100%) rotate(-90deg)`},[`&-placement-right > ${r}-arrow`]:{top:{_skip_check_:!0,value:`50%`},transform:`translateY(-50%) translateX(-100%) rotate(-90deg)`},[`&-placement-rightTop > ${r}-arrow`]:{top:a},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:a}}))}}function Kt(e,t,n,r){if(r===!1)return{adjustX:!1,adjustY:!1};let i=r&&typeof r==`object`?r:{},a={};switch(e){case`top`:case`bottom`:a.shiftX=t.arrowOffsetHorizontal*2+n,a.shiftY=!0,a.adjustY=!0;break;case`left`:case`right`:a.shiftY=t.arrowOffsetVertical*2+n,a.shiftX=!0,a.adjustX=!0}let o=Object.assign(Object.assign({},a),i);return o.shiftX||(o.adjustX=!0),o.shiftY||(o.adjustY=!0),o}var qt={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`]}},Jt={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`]}},Yt=new Set([`topLeft`,`topRight`,`bottomLeft`,`bottomRight`,`leftTop`,`leftBottom`,`rightTop`,`rightBottom`]);function Xt(e){let{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:i,borderRadius:a,visibleFirst:o}=e,s=t/2,c={},l=Ut({contentRadius:a,limitVerticalRadius:!0});return Object.keys(qt).forEach(e=>{let a=r&&Jt[e]||qt[e],u=Object.assign(Object.assign({},a),{offset:[0,0],dynamicInset:!0});switch(c[e]=u,Yt.has(e)&&(u.autoArrow=!1),e){case`top`:case`topLeft`:case`topRight`:u.offset[1]=-s-i;break;case`bottom`:case`bottomLeft`:case`bottomRight`:u.offset[1]=s+i;break;case`left`:case`leftTop`:case`leftBottom`:u.offset[0]=-s-i;break;case`right`:case`rightTop`:case`rightBottom`:u.offset[0]=s+i}if(r)switch(e){case`topLeft`:case`bottomLeft`:u.offset[0]=-l.arrowOffsetHorizontal-s;break;case`topRight`:case`bottomRight`:u.offset[0]=l.arrowOffsetHorizontal+s;break;case`leftTop`:case`rightTop`:u.offset[1]=-l.arrowOffsetHorizontal*2+s;break;case`leftBottom`:case`rightBottom`:u.offset[1]=l.arrowOffsetHorizontal*2-s}u.overflow=Kt(e,l,t,n),o&&(u.htmlRegion=`visibleFirst`)}),c}var Zt=e=>{let{calc:t,componentCls:n,tooltipMaxWidth:r,tooltipColor:i,tooltipBg:a,tooltipBorderRadius:o,zIndexPopup:s,controlHeight:c,boxShadowSecondary:l,paddingSM:u,paddingXS:d,arrowOffsetHorizontal:f,sizePopupArrow:p}=e,m=t(o).add(p).add(f).equal(),h=t(o).mul(2).add(p).equal();return[{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},P(e)),{position:`absolute`,zIndex:s,display:`block`,width:`max-content`,maxWidth:r,visibility:`visible`,"--valid-offset-x":`var(--arrow-offset-horizontal, var(--arrow-x))`,transformOrigin:`var(--valid-offset-x, 50%) var(--arrow-y, 50%)`,"&-hidden":{display:`none`},"--antd-arrow-background-color":a,[`${n}-inner`]:{minWidth:h,minHeight:c,padding:`${O(e.calc(u).div(2).equal())} ${O(d)}`,color:`var(--ant-tooltip-color, ${i})`,textAlign:`start`,textDecoration:`none`,wordWrap:`break-word`,backgroundColor:a,borderRadius:o,boxShadow:l,boxSizing:`border-box`},"&-placement-topLeft,&-placement-topRight,&-placement-bottomLeft,&-placement-bottomRight":{minWidth:m},"&-placement-left,&-placement-leftTop,&-placement-leftBottom,&-placement-right,&-placement-rightTop,&-placement-rightBottom":{[`${n}-inner`]:{borderRadius:e.min(o,8)}},[`${n}-content`]:{position:`relative`}}),j(e,(e,{darkColor:t})=>({[`&${n}-${e}`]:{[`${n}-inner`]:{backgroundColor:t},[`${n}-arrow`]:{"--antd-arrow-background-color":t}}}))),{"&-rtl":{direction:`rtl`}})},Gt(e,`var(--antd-arrow-background-color)`),{[`${n}-pure`]:{position:`relative`,maxWidth:`none`,margin:e.sizePopupArrow}}]},Qt=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},Ut({contentRadius:e.borderRadius,limitVerticalRadius:!0})),Vt(U(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),$t=(e,t=!0)=>d(`Tooltip`,e=>{let{borderRadius:t,colorTextLightSolid:n,colorBgSpotlight:r}=e;return[Zt(U(e,{tooltipMaxWidth:250,tooltipColor:n,tooltipBorderRadius:t,tooltipBg:r})),ne(e,`zoom-big-fast`)]},Qt,{resetStyle:!1,injectStyle:t})(e);function en(e,t){let n=a(t),r=(0,J.default)({[`${e}-${t}`]:t&&n}),i={},o={},s=Ze(t).toRgb(),c=(.299*s.r+.587*s.g+.114*s.b)/255<.5?`#FFF`:`#000`;return t&&!n&&(i.background=t,i[`--ant-tooltip-color`]=c,o[`--antd-arrow-background-color`]=t),{className:r,overlayStyle:i,arrowStyle:o}}var tn=e=>{let{prefixCls:t,className:n,placement:r=`top`,title:i,color:a,overlayInnerStyle:o}=e,{getPrefixCls:s}=Y.useContext(H),c=s(`tooltip`,t),[l,u,d]=$t(c),f=en(c,a),p=f.arrowStyle,m=Object.assign(Object.assign({},o),f.overlayStyle),h=(0,J.default)(u,d,c,`${c}-pure`,`${c}-placement-${r}`,n,f.className);return l(Y.createElement(`div`,{className:h,style:p},Y.createElement(`div`,{className:`${c}-arrow`}),Y.createElement(Pt,Object.assign({},e,{className:u,prefixCls:c,overlayInnerStyle:m}),i)))},nn=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i{let{prefixCls:n,openClassName:r,getTooltipContainer:i,color:a,overlayInnerStyle:o,children:c,afterOpenChange:u,afterVisibleChange:d,destroyTooltipOnHide:p,destroyOnHidden:m,arrow:h=!0,title:g,overlay:_,builtinPlacements:v,arrowPointAtCenter:y=!1,autoAdjustOverflow:b=!0,motion:C,getPopupContainer:w,placement:T=`top`,mouseEnterDelay:E=.1,mouseLeaveDelay:D=.1,overlayStyle:O,rootClassName:k,overlayClassName:te,styles:A,classNames:j}=e,M=nn(e,`prefixCls.openClassName.getTooltipContainer.color.overlayInnerStyle.children.afterOpenChange.afterVisibleChange.destroyTooltipOnHide.destroyOnHidden.arrow.title.overlay.builtinPlacements.arrowPointAtCenter.autoAdjustOverflow.motion.getPopupContainer.placement.mouseEnterDelay.mouseLeaveDelay.overlayStyle.rootClassName.overlayClassName.styles.classNames`.split(`.`)),N=!!h,[,P]=z(),{getPopupContainer:F,getPrefixCls:I,direction:L,className:ne,style:B,classNames:re,styles:ie}=R(`tooltip`),V=de(`Tooltip`),H=Y.useRef(null),ae=()=>{var e;(e=H.current)==null||e.forceAlign()};Y.useImperativeHandle(t,()=>({forceAlign:ae,forcePopupAlign:()=>{V.deprecated(!1,`forcePopupAlign`,`forceAlign`),ae()},nativeElement:H.current?.nativeElement,popupElement:H.current?.popupElement}));let[U,W]=se(!1,{value:e.open??e.visible,defaultValue:e.defaultOpen??e.defaultVisible}),G=!g&&!_&&g!==0,oe=t=>{var n,r;W(!G&&t),G||((n=e.onOpenChange)==null||n.call(e,t),(r=e.onVisibleChange)==null||r.call(e,t))},ce=Y.useMemo(()=>{let e=y;return typeof h==`object`&&(e=h.pointAtCenter??h.arrowPointAtCenter??y),v||Xt({arrowPointAtCenter:e,autoAdjustOverflow:b,arrowWidth:N?P.sizePopupArrow:0,borderRadius:P.borderRadius,offset:P.marginXXS,visibleFirst:!0})},[y,h,v,P]),le=Y.useMemo(()=>g===0?g:_||g||``,[_,g]),ue=Y.createElement(f,{space:!0},typeof le==`function`?le():le),K=I(`tooltip`,n),fe=I(),pe=e[`data-popover-inject`],q=U;!(`open`in e)&&!(`visible`in e)&&G&&(q=!1);let me=Y.isValidElement(c)&&!S(c)?c:Y.createElement(`span`,null,c),he=me.props,ge=!he.className||typeof he.className==`string`?(0,J.default)(he.className,r||`${K}-open`):he.className,[_e,ve,ye]=$t(K,!pe),be=en(K,a),X=be.arrowStyle,xe=(0,J.default)(te,{[`${K}-rtl`]:L===`rtl`},be.className,k,ve,ye,ne,re.root,j?.root),Se=(0,J.default)(re.body,j?.body),[Ce,Z]=ee(`Tooltip`,M.zIndex),Q=Y.createElement(Bt,Object.assign({},M,{zIndex:Ce,showArrow:N,placement:T,mouseEnterDelay:E,mouseLeaveDelay:D,prefixCls:K,classNames:{root:xe,body:Se},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},X),ie.root),B),O),A?.root),body:Object.assign(Object.assign(Object.assign(Object.assign({},ie.body),o),A?.body),be.overlayStyle)},getTooltipContainer:w||i||F,ref:H,builtinPlacements:ce,overlay:ue,visible:q,onVisibleChange:oe,afterVisibleChange:u??d,arrowContent:Y.createElement(`span`,{className:`${K}-arrow-content`}),motion:{motionName:s(fe,`zoom-big-fast`,e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:m??!!p}),q?x(me,{className:ge}):me);return _e(Y.createElement(l.Provider,{value:Z},Q))});rn._InternalPanelDoNotUseOrYouWillBeFired=tn;function an(e){return U(e,{inputAffixPadding:e.paddingXXS})}var on=e=>{let{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:i,controlHeightSM:a,controlHeightLG:o,fontSizeLG:s,lineHeightLG:c,paddingSM:l,controlPaddingHorizontalSM:u,controlPaddingHorizontal:d,colorFillAlter:f,colorPrimaryHover:p,colorPrimary:m,controlOutlineWidth:h,controlOutline:g,colorErrorOutline:_,colorWarningOutline:v,colorBgContainer:y,inputFontSize:b,inputFontSizeLG:x,inputFontSizeSM:S}=e,C=b||n,w=S||C,T=x||s,E=Math.round((t-C*r)/2*10)/10-i,D=Math.round((a-w*r)/2*10)/10-i,O=Math.ceil((o-T*c)/2*10)/10-i;return{paddingBlock:Math.max(E,0),paddingBlockSM:Math.max(D,0),paddingBlockLG:Math.max(O,0),paddingInline:l-i,paddingInlineSM:u-i,paddingInlineLG:d-i,addonBg:f,activeBorderColor:m,hoverBorderColor:p,activeShadow:`0 0 0 ${h}px ${g}`,errorActiveShadow:`0 0 0 ${h}px ${_}`,warningActiveShadow:`0 0 0 ${h}px ${v}`,hoverBg:y,activeBg:y,inputFontSize:C,inputFontSizeLG:T,inputFontSizeSM:w}},sn=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),cn=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:`none`,cursor:`not-allowed`,opacity:1,"input[disabled], textarea[disabled]":{cursor:`not-allowed`},"&:hover:not([disabled])":Object.assign({},sn(U(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),ln=(e,t)=>({background:e.colorBgContainer,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:t.borderColor,"&:hover":{borderColor:t.hoverBorderColor,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:t.activeBorderColor,boxShadow:t.activeShadow,outline:0,backgroundColor:e.activeBg}}),un=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},ln(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),dn=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ln(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},cn(e))}),un(e,{status:`error`,borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),un(e,{status:`warning`,borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),fn=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),pn=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${O(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},fn(e,{status:`error`,addonBorderColor:e.colorError,addonColor:e.colorErrorText})),fn(e,{status:`warning`,addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},cn(e))}})}),mn=(e,t)=>{let{componentCls:n}=e;return{"&-borderless":Object.assign({background:`transparent`,border:`none`,"&:focus, &:focus-within":{outline:`none`},[`&${n}-disabled, &[disabled]`]:{color:e.colorTextDisabled,cursor:`not-allowed`},[`&${n}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${n}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}}},t)}},hn=(e,t)=>({background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:`transparent`,"input&, & input, textarea&, & textarea":{color:t?.inputColor??`unset`},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}),gn=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},hn(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),_n=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},hn(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},cn(e))}),gn(e,{status:`error`,bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),gn(e,{status:`warning`,bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),vn=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),yn=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group-addon`]:{background:e.colorFillTertiary,"&:last-child":{position:`static`}}},vn(e,{status:`error`,addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),vn(e,{status:`warning`,addonBg:e.colorWarningBg,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary,color:e.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${O(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${O(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${O(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${O(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${O(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${O(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),bn=(e,t)=>({background:e.colorBgContainer,borderWidth:`${O(e.lineWidth)} 0`,borderStyle:`${e.lineType} none`,borderColor:`transparent transparent ${t.borderColor} transparent`,borderRadius:0,"&:hover":{borderColor:`transparent transparent ${t.hoverBorderColor} transparent`,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:`transparent transparent ${t.activeBorderColor} transparent`,outline:0,backgroundColor:e.activeBg}}),xn=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},bn(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:`transparent transparent ${t.borderColor} transparent`}}),Sn=(e,t)=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},bn(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:{color:e.colorTextDisabled,boxShadow:`none`,cursor:`not-allowed`,"&:hover":{borderColor:`transparent transparent ${e.colorBorder} transparent`}},"input[disabled], textarea[disabled]":{cursor:`not-allowed`}}),xn(e,{status:`error`,borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),xn(e,{status:`warning`,borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),Cn=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:`none`},"&:placeholder-shown":{textOverflow:`ellipsis`}}),wn=e=>{let{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:i}=e;return{padding:`${O(t)} ${O(i)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},Tn=e=>({padding:`${O(e.paddingBlockSM)} ${O(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),En=e=>Object.assign(Object.assign({position:`relative`,display:`inline-block`,width:`100%`,minWidth:0,padding:`${O(e.paddingBlock)} ${O(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},Cn(e.colorTextPlaceholder)),{"&-lg":Object.assign({},wn(e)),"&-sm":Object.assign({},Tn(e)),"&-rtl, &-textarea-rtl":{direction:`rtl`}}),Dn=e=>{let{componentCls:t,antCls:n}=e;return{position:`relative`,display:`table`,width:`100%`,borderCollapse:`separate`,borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:Object.assign({},wn(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},Tn(e)),[`&-lg ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:`table-cell`,"&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-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 ${O(e.paddingInline)}`,color:e.colorText,fontWeight:`normal`,fontSize:e.inputFontSize,textAlign:`center`,borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${O(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${O(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{[`${n}-select-selector`]:{backgroundColor:`inherit`,border:`${O(e.lineWidth)} ${e.lineType} transparent`,boxShadow:`none`}}},[`${n}-cascader-picker`]:{margin:`-9px ${O(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:`transparent`,[`${n}-cascader-input`]:{textAlign:`start`,border:0,boxShadow:`none`}}}},[t]:{width:`100%`,marginBottom:0,textAlign:`inherit`,"&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:`block`},oe()),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:`inline-flex`,float:`none`,verticalAlign:`top`,borderRadius:0},[` & > ${t}-affix-wrapper, & > ${t}-number-affix-wrapper, & > ${n}-picker-range `]:{display:`inline-flex`},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[t]:{float:`none`},[`& > ${n}-select > ${n}-select-selector, & > ${n}-select-auto-complete ${t}, & > ${n}-cascader-picker ${t}, & > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover, &:focus":{zIndex:1}},[`& > ${n}-select-focused`]:{zIndex:1},[`& > ${n}-select > ${n}-select-arrow`]:{zIndex:1},[`& > *:first-child, & > ${n}-select:first-child > ${n}-select-selector, & > ${n}-select-auto-complete:first-child ${t}, & > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child, & > ${n}-select:last-child > ${n}-select-selector, & > ${n}-cascader-picker:last-child ${t}, & > ${n}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${n}-select-auto-complete ${t}`]:{verticalAlign:`top`},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},On=e=>{let{componentCls:t,controlHeightSM:n,lineWidth:r,calc:i}=e,a=i(n).sub(i(r).mul(2)).sub(16).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},P(e)),En(e)),dn(e)),_n(e)),mn(e)),Sn(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:a,paddingBottom:a}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{appearance:`none`}})}},kn=e=>{let{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,padding:0,lineHeight:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:`pointer`,transition:`color ${e.motionDurationSlow}`,border:`none`,outline:`none`,backgroundColor:`transparent`,"&:hover":{color:e.colorIcon},"&:active":{color:e.colorText},"&-hidden":{visibility:`hidden`},"&-has-suffix":{margin:`0 ${O(e.inputAffixPadding)}`}}}},An=e=>{let{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:i,colorIcon:a,colorIconHover:o,iconCls:s}=e,c=`${t}-affix-wrapper`,l=`${t}-affix-wrapper-disabled`;return{[c]:Object.assign(Object.assign(Object.assign(Object.assign({},En(e)),{display:`inline-flex`,[`&:not(${t}-disabled):hover`]:{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${t}`]:{padding:0},[`> input${t}, > textarea${t}`]:{fontSize:`inherit`,border:`none`,borderRadius:0,outline:`none`,background:`transparent`,color:`inherit`,"&::-ms-reveal":{display:`none`},"&:focus":{boxShadow:`none !important`}},"&::before":{display:`inline-block`,width:0,visibility:`hidden`,content:`"\\a0"`},[t]:{"&-prefix, &-suffix":{display:`flex`,flex:`none`,alignItems:`center`,"> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:r,direction:`ltr`},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),kn(e)),{[`${s}${t}-password-icon`]:{color:a,cursor:`pointer`,transition:`all ${i}`,"&:hover":{color:o}}}),[`${t}-underlined`]:{borderRadius:0},[l]:{[`${s}${t}-password-icon`]:{color:a,cursor:`not-allowed`,"&:hover":{color:a}}}}},jn=e=>{let{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},P(e)),Dn(e)),{"&-rtl":{direction:`rtl`},"&-wrapper":Object.assign(Object.assign(Object.assign({display:`inline-block`,width:`100%`,textAlign:`start`,verticalAlign:`top`,"&-rtl":{direction:`rtl`},"&-lg":{[`${t}-group-addon`]:{borderRadius:n,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:r}}},pn(e)),yn(e)),{[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})})}},Mn=e=>{let{componentCls:t,antCls:n}=e,r=`${t}-search`;return{[r]:{[t]:{"&:not([disabled]):hover, &:not([disabled]):focus":{[`+ ${t}-group-addon ${r}-button:not(${n}-btn-color-primary):not(${n}-btn-variant-text)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{height:e.controlHeight,borderRadius:0},[`${t}-lg`]:{lineHeight:e.calc(e.lineHeightLG).sub(2e-4).equal()},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${r}-button`]:{marginInlineEnd:-1,borderStartStartRadius:0,borderEndStartRadius:0,boxShadow:`none`},[`${r}-button:not(${n}-btn-color-primary)`]:{color:e.colorTextDescription,"&:not([disabled]):hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{inset:0}}}},[`${r}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},"&-large":{[`${t}-affix-wrapper, ${r}-button`]:{height:e.controlHeightLG}},"&-small":{[`${t}-affix-wrapper, ${r}-button`]:{height:e.controlHeightSM}},"&-rtl":{direction:`rtl`},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button, > ${t}, ${t}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},Nn=e=>{let{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},Pn=d([`Input`,`Shared`],e=>{let t=U(e,an(e));return[On(t),An(t)]},on,{resetFont:!1}),Fn=d([`Input`,`Component`],e=>{let t=U(e,an(e));return[jn(t),Mn(t),Nn(t),ue(t)]},on,{resetFont:!1});function In(e){return!!(e.addonBefore||e.addonAfter)}function Ln(e){return!!(e.prefix||e.suffix||e.allowClear)}function Rn(e,t,n){var r=t.cloneNode(!0),i=Object.create(e,{target:{value:r},currentTarget:{value:r}});return r.value=n,typeof t.selectionStart==`number`&&typeof t.selectionEnd==`number`&&(r.selectionStart=t.selectionStart,r.selectionEnd=t.selectionEnd),r.setSelectionRange=function(){t.setSelectionRange.apply(t,arguments)},i}function zn(e,t,n,r){if(n){var i=t;t.type===`click`?(i=Rn(t,e,``),n(i)):(e.type!==`file`&&r!==void 0&&(i=Rn(t,e,r)),n(i))}}function Bn(e,t){if(e){e.focus(t);var n=(t||{}).cursor;if(n){var r=e.value.length;switch(n){case`start`:e.setSelectionRange(0,0);break;case`end`:e.setSelectionRange(r,r);break;default:e.setSelectionRange(0,r)}}}}var Vn=Y.forwardRef(function(e,n){var r=e.inputElement,i=e.children,a=e.prefixCls,o=e.prefix,s=e.suffix,c=e.addonBefore,l=e.addonAfter,u=e.className,d=e.style,f=e.disabled,p=e.readOnly,m=e.focused,h=e.triggerFocus,_=e.allowClear,v=e.value,y=e.handleReset,b=e.hidden,x=e.classes,S=e.classNames,C=e.dataAttrs,w=e.styles,E=e.components,D=e.onClear,O=i??r,ee=E?.affixWrapper||`span`,k=E?.groupWrapper||`span`,te=E?.wrapper||`span`,A=E?.groupAddon||`span`,j=(0,Y.useRef)(null),M=function(e){var t;(t=j.current)!=null&&t.contains(e.target)&&h?.()},N=Ln(e),P=(0,Y.cloneElement)(O,{value:v,className:(0,J.default)(O.props?.className,!N&&S?.variant)||null}),F=(0,Y.useRef)(null);if(Y.useImperativeHandle(n,function(){return{nativeElement:F.current||j.current}}),N){var I=null;if(_){var L=!f&&!p&&v,R=`${a}-clear-icon`,ne=T(_)===`object`&&_!=null&&_.clearIcon?_.clearIcon:`✖`;I=Y.createElement(`button`,{type:`button`,tabIndex:-1,onClick:function(e){y?.(e),D?.()},onMouseDown:function(e){return e.preventDefault()},className:(0,J.default)(R,g(g({},`${R}-hidden`,!L),`${R}-has-suffix`,!!s))},ne)}var z=`${a}-affix-wrapper`,B=(0,J.default)(z,g(g(g(g(g({},`${a}-disabled`,f),`${z}-disabled`,f),`${z}-focused`,m),`${z}-readonly`,p),`${z}-input-with-clear-btn`,s&&_&&v),x?.affixWrapper,S?.affixWrapper,S?.variant),re=(s||_)&&Y.createElement(`span`,{className:(0,J.default)(`${a}-suffix`,S?.suffix),style:w?.suffix},I,s);P=Y.createElement(ee,t({className:B,style:w?.affixWrapper,onClick:M},C?.affixWrapper,{ref:j}),o&&Y.createElement(`span`,{className:(0,J.default)(`${a}-prefix`,S?.prefix),style:w?.prefix},o),P,re)}if(In(e)){var ie=`${a}-group`,V=`${ie}-addon`,H=`${ie}-wrapper`,ae=(0,J.default)(`${a}-wrapper`,ie,x?.wrapper,S?.wrapper),U=(0,J.default)(H,g({},`${H}-disabled`,f),x?.group,S?.groupWrapper);P=Y.createElement(k,{className:U,ref:F},Y.createElement(te,{className:ae},c&&Y.createElement(A,{className:V},c),P,l&&Y.createElement(A,{className:V},l)))}return Y.cloneElement(P,{className:(0,J.default)(P.props?.className,u)||null,style:G(G({},P.props?.style),d),hidden:b})}),Hn=[`show`];function Un(e,t){return Y.useMemo(function(){var n={};t&&(n.show=T(t)===`object`&&t.formatter?t.formatter:!!t),n=G(G({},n),e);var r=n,i=r.show,a=c(r,Hn);return G(G({},a),{},{show:!!i,showFormatter:typeof i==`function`?i:void 0,strategy:a.strategy||function(e){return e.length}})},[e,t])}var Wn=[`autoComplete`,`onChange`,`onFocus`,`onBlur`,`onPressEnter`,`onKeyDown`,`onKeyUp`,`prefixCls`,`disabled`,`htmlSize`,`className`,`maxLength`,`suffix`,`showCount`,`count`,`type`,`classes`,`classNames`,`styles`,`onCompositionStart`,`onCompositionEnd`],Gn=(0,Y.forwardRef)(function(e,n){var r=e.autoComplete,i=e.onChange,a=e.onFocus,o=e.onBlur,s=e.onPressEnter,l=e.onKeyDown,u=e.onKeyUp,d=e.prefixCls,f=d===void 0?`rc-input`:d,p=e.disabled,m=e.htmlSize,h=e.className,_=e.maxLength,v=e.suffix,y=e.showCount,b=e.count,x=e.type,S=x===void 0?`text`:x,C=e.classes,w=e.classNames,T=e.styles,E=e.onCompositionStart,O=e.onCompositionEnd,ee=c(e,Wn),k=(0,Y.useState)(!1),te=V(k,2),A=te[0],j=te[1],M=(0,Y.useRef)(!1),N=(0,Y.useRef)(!1),P=(0,Y.useRef)(null),F=(0,Y.useRef)(null),I=function(e){P.current&&Bn(P.current,e)},L=se(e.defaultValue,{value:e.value}),R=V(L,2),ne=R[0],z=R[1],B=ne==null?``:String(ne),re=(0,Y.useState)(null),H=V(re,2),ae=H[0],U=H[1],W=Un(b,y),oe=W.max||_,ce=W.strategy(B),le=!!oe&&ce>oe;(0,Y.useImperativeHandle)(n,function(){return{focus:I,blur:function(){var e;(e=P.current)==null||e.blur()},setSelectionRange:function(e,t,n){var r;(r=P.current)==null||r.setSelectionRange(e,t,n)},select:function(){var e;(e=P.current)==null||e.select()},input:P.current,nativeElement:F.current?.nativeElement||P.current}}),(0,Y.useEffect)(function(){N.current&&=!1,j(function(e){return e&&p?!1:e})},[p]);var ue=function(e,t,n){var r=t;if(!M.current&&W.exceedFormatter&&W.max&&W.strategy(t)>W.max)r=W.exceedFormatter(t,{max:W.max}),t!==r&&U([P.current?.selectionStart||0,P.current?.selectionEnd||0]);else if(n.source===`compositionEnd`)return;z(r),P.current&&zn(P.current,e,i,r)};(0,Y.useEffect)(function(){if(ae){var e;(e=P.current)==null||e.setSelectionRange.apply(e,ie(ae))}},[ae]);var de=function(e){ue(e,e.target.value,{source:`change`})},K=function(e){M.current=!1,ue(e,e.currentTarget.value,{source:`compositionEnd`}),O?.(e)},fe=function(e){s&&e.key===`Enter`&&!N.current&&(N.current=!0,s(e)),l?.(e)},pe=function(e){e.key===`Enter`&&(N.current=!1),u?.(e)},q=function(e){j(!0),a?.(e)},me=function(e){N.current&&=!1,j(!1),o?.(e)},he=function(e){z(``),I(),P.current&&zn(P.current,e,i)},ge=le&&`${f}-out-of-range`;return Y.createElement(Vn,t({},ee,{prefixCls:f,className:(0,J.default)(h,ge),handleReset:he,value:B,focused:A,triggerFocus:I,suffix:function(){var e=Number(oe)>0;if(v||W.show){var t=W.showFormatter?W.showFormatter({value:B,count:ce,maxLength:oe}):`${ce}${e?` / ${oe}`:``}`;return Y.createElement(Y.Fragment,null,W.show&&Y.createElement(`span`,{className:(0,J.default)(`${f}-show-count-suffix`,g({},`${f}-show-count-has-suffix`,!!v),w?.count),style:G({},T?.count)},t),v)}return null}(),disabled:p,classes:C,classNames:w,styles:T,ref:F}),function(){var n=D(e,[`prefixCls`,`onPressEnter`,`addonBefore`,`addonAfter`,`prefix`,`suffix`,`allowClear`,`defaultValue`,`showCount`,`count`,`classes`,`htmlSize`,`styles`,`classNames`,`onClear`]);return Y.createElement(`input`,t({autoComplete:r},n,{onChange:de,onFocus:q,onBlur:me,onKeyDown:fe,onKeyUp:pe,className:(0,J.default)(f,g({},`${f}-disabled`,p),w?.input),style:T?.input,ref:P,size:m,type:S,onCompositionStart:function(e){M.current=!0,E?.(e)},onCompositionEnd:K}))}())}),Kn=e=>{let t;return typeof e==`object`&&e?.clearIcon?t=e:e&&(t={clearIcon:Y.createElement(y,null)}),t},qn=` min-height:0 !important; max-height:none !important; height:0 !important; visibility:hidden !important; overflow:hidden !important; position:absolute !important; z-index:-1000 !important; top:0 !important; right:0 !important; pointer-events: none !important; `,Jn=[`letter-spacing`,`line-height`,`padding-top`,`padding-bottom`,`font-family`,`font-weight`,`font-size`,`font-variant`,`text-rendering`,`text-transform`,`width`,`text-indent`,`padding-left`,`padding-right`,`border-width`,`box-sizing`,`word-break`,`white-space`],Yn={},Xn;function Zn(e){var t=arguments.length>1&&arguments[1]!==void 0&&arguments[1],n=e.getAttribute(`id`)||e.getAttribute(`data-reactid`)||e.getAttribute(`name`);if(t&&Yn[n])return Yn[n];var r=window.getComputedStyle(e),i=r.getPropertyValue(`box-sizing`)||r.getPropertyValue(`-moz-box-sizing`)||r.getPropertyValue(`-webkit-box-sizing`),a=parseFloat(r.getPropertyValue(`padding-bottom`))+parseFloat(r.getPropertyValue(`padding-top`)),o=parseFloat(r.getPropertyValue(`border-bottom-width`))+parseFloat(r.getPropertyValue(`border-top-width`)),s={sizingStyle:Jn.map(function(e){return`${e}:${r.getPropertyValue(e)}`}).join(`;`),paddingSize:a,borderSize:o,boxSizing:i};return t&&n&&(Yn[n]=s),s}function Qn(e){var t=arguments.length>1&&arguments[1]!==void 0&&arguments[1],n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;Xn||(Xn=document.createElement(`textarea`),Xn.setAttribute(`tab-index`,`-1`),Xn.setAttribute(`aria-hidden`,`true`),Xn.setAttribute(`name`,`hiddenTextarea`),document.body.appendChild(Xn)),e.getAttribute(`wrap`)?Xn.setAttribute(`wrap`,e.getAttribute(`wrap`)):Xn.removeAttribute(`wrap`);var i=Zn(e,t),a=i.paddingSize,o=i.borderSize,s=i.boxSizing,c=i.sizingStyle;Xn.setAttribute(`style`,`${c};${qn}`),Xn.value=e.value||e.placeholder||``;var l=void 0,u=void 0,d,f=Xn.scrollHeight;if(s===`border-box`?f+=o:s===`content-box`&&(f-=a),n!==null||r!==null){Xn.value=` `;var p=Xn.scrollHeight-a;n!==null&&(l=p*n,s===`border-box`&&(l=l+a+o),f=Math.max(l,f)),r!==null&&(u=p*r,s===`border-box`&&(u=u+a+o),d=f>u?``:`hidden`,f=Math.min(u,f))}var m={height:f,overflowY:d,resize:`none`};return l&&(m.minHeight=l),u&&(m.maxHeight=u),m}var $n=[`prefixCls`,`defaultValue`,`value`,`autoSize`,`onResize`,`className`,`style`,`disabled`,`onChange`,`onInternalAutoSize`],er=0,tr=1,nr=2,rr=Y.forwardRef(function(e,r){var i=e,a=i.prefixCls,s=i.defaultValue,l=i.value,u=i.autoSize,d=i.onResize,f=i.className,p=i.style,m=i.disabled,h=i.onChange;i.onInternalAutoSize;var _=c(i,$n),v=se(s,{value:l,postState:function(e){return e??``}}),y=V(v,2),b=y[0],x=y[1],S=function(e){x(e.target.value),h?.(e)},C=Y.useRef();Y.useImperativeHandle(r,function(){return{textArea:C.current}});var w=Y.useMemo(function(){return u&&T(u)===`object`?[u.minRows,u.maxRows]:[]},[u]),E=V(w,2),D=E[0],O=E[1],ee=!!u,k=Y.useState(nr),te=V(k,2),A=te[0],j=te[1],M=Y.useState(),N=V(M,2),P=N[0],F=N[1],I=function(){j(er)};o(function(){ee&&I()},[l,D,O,ee]),o(function(){if(A===er)j(tr);else if(A===tr){var e=Qn(C.current,!1,D,O);j(nr),F(e)}},[A]);var L=Y.useRef(),R=function(){n.cancel(L.current)},ne=function(e){A===nr&&(d?.(e),u&&(R(),L.current=n(function(){I()})))};Y.useEffect(function(){return R},[]);var z=ee?P:null,B=G(G({},p),z);return(A===er||A===tr)&&(B.overflowY=`hidden`,B.overflowX=`hidden`),Y.createElement(Xe,{onResize:ne,disabled:!(u||d)},Y.createElement(`textarea`,t({},_,{ref:C,style:B,className:(0,J.default)(a,f,g({},`${a}-disabled`,m)),disabled:m,value:b,onChange:S})))}),ir=[`defaultValue`,`value`,`onFocus`,`onBlur`,`onChange`,`allowClear`,`maxLength`,`onCompositionStart`,`onCompositionEnd`,`suffix`,`prefixCls`,`showCount`,`count`,`className`,`style`,`disabled`,`hidden`,`classNames`,`styles`,`onResize`,`onClear`,`onPressEnter`,`readOnly`,`autoSize`,`onKeyDown`],ar=Y.forwardRef(function(e,n){var r=e.defaultValue,i=e.value,a=e.onFocus,o=e.onBlur,s=e.onChange,l=e.allowClear,u=e.maxLength,d=e.onCompositionStart,f=e.onCompositionEnd,p=e.suffix,m=e.prefixCls,h=m===void 0?`rc-textarea`:m,_=e.showCount,v=e.count,y=e.className,b=e.style,x=e.disabled,S=e.hidden,C=e.classNames,w=e.styles,T=e.onResize,E=e.onClear,D=e.onPressEnter,O=e.readOnly,ee=e.autoSize,k=e.onKeyDown,te=c(e,ir),A=se(r,{value:i,defaultValue:r}),j=V(A,2),M=j[0],N=j[1],P=M==null?``:String(M),F=Y.useState(!1),I=V(F,2),L=I[0],R=I[1],ne=Y.useRef(!1),z=Y.useState(null),B=V(z,2),re=B[0],H=B[1],ae=(0,Y.useRef)(null),U=(0,Y.useRef)(null),W=function(){return U.current?.textArea},oe=function(){W().focus()};(0,Y.useImperativeHandle)(n,function(){return{resizableTextArea:U.current,focus:oe,blur:function(){W().blur()},nativeElement:ae.current?.nativeElement||W()}}),(0,Y.useEffect)(function(){R(function(e){return!x&&e})},[x]);var ce=Y.useState(null),le=V(ce,2),ue=le[0],de=le[1];Y.useEffect(function(){if(ue){var e;(e=W()).setSelectionRange.apply(e,ie(ue))}},[ue]);var K=Un(v,_),fe=K.max??u,pe=Number(fe)>0,q=K.strategy(P),me=!!fe&&q>fe,he=function(e,t){var n=t;!ne.current&&K.exceedFormatter&&K.max&&K.strategy(t)>K.max&&(n=K.exceedFormatter(t,{max:K.max}),t!==n&&de([W().selectionStart||0,W().selectionEnd||0])),N(n),zn(e.currentTarget,e,s,n)},ge=function(e){ne.current=!0,d?.(e)},_e=function(e){ne.current=!1,he(e,e.currentTarget.value),f?.(e)},ve=function(e){he(e,e.target.value)},ye=function(e){e.key===`Enter`&&D&&D(e),k?.(e)},be=function(e){R(!0),a?.(e)},X=function(e){R(!1),o?.(e)},xe=function(e){N(``),oe(),zn(W(),e,s)},Se=p,Ce;K.show&&(Ce=K.showFormatter?K.showFormatter({value:P,count:q,maxLength:fe}):`${q}${pe?` / ${fe}`:``}`,Se=Y.createElement(Y.Fragment,null,Se,Y.createElement(`span`,{className:(0,J.default)(`${h}-data-count`,C?.count),style:w?.count},Ce)));var Z=function(e){var t;T?.(e),(t=W())!=null&&t.style.height&&H(!0)},Q=!ee&&!_&&!l;return Y.createElement(Vn,{ref:ae,value:P,allowClear:l,handleReset:xe,suffix:Se,prefixCls:h,classNames:G(G({},C),{},{affixWrapper:(0,J.default)(C?.affixWrapper,g(g({},`${h}-show-count`,_),`${h}-textarea-allow-clear`,l))}),disabled:x,focused:L,className:(0,J.default)(y,me&&`${h}-out-of-range`),style:G(G({},b),re&&!Q?{height:`auto`}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Ce==`string`?Ce:void 0}},hidden:S,readOnly:O,onClear:E},Y.createElement(rr,t({},te,{autoSize:ee,maxLength:u,onKeyDown:ye,onChange:ve,onFocus:be,onBlur:X,onCompositionStart:ge,onCompositionEnd:_e,className:(0,J.default)(C?.textarea),style:G(G({},w?.textarea),{},{resize:b?.resize}),disabled:x,prefixCls:h,onResize:Z,ref:U,readOnly:O})))}),or=e=>{let{componentCls:t,paddingLG:n}=e,r=`${t}-textarea`;return{[`textarea${t}`]:{maxWidth:`100%`,height:`auto`,minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:`bottom`,transition:`all ${e.motionDurationSlow}`,resize:`vertical`,[`&${t}-mouse-active`]:{transition:`all ${e.motionDurationSlow}, height 0s, width 0s`}},[`${t}-textarea-affix-wrapper-resize-dirty`]:{width:`auto`},[r]:{position:`relative`,"&-show-count":{[`${t}-data-count`]:{position:`absolute`,bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:`nowrap`,pointerEvents:`none`}},[` &-allow-clear > ${t}, &-affix-wrapper${r}-has-feedback ${t} `]:{paddingInlineEnd:n},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:`inherit`,border:`none`,outline:`none`,background:`transparent`,minHeight:e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:`none !important`}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:`absolute`,insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},[`${r}-suffix`]:{position:`absolute`,top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:`inline-flex`,alignItems:`center`,margin:`auto`,pointerEvents:`none`}}},[`&-affix-wrapper${t}-affix-wrapper-rtl`]:{[`${t}-suffix`]:{[`${t}-data-count`]:{direction:`ltr`,insetInlineStart:0}}},[`&-affix-wrapper${t}-affix-wrapper-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},sr=d([`Input`,`TextArea`],e=>or(U(e,an(e))),on,{resetFont:!1}),cr=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i{let{prefixCls:n,bordered:i=!0,size:a,disabled:o,status:s,allowClear:c,classNames:l,rootClassName:u,className:d,style:f,styles:p,variant:m,showCount:h,onMouseDown:g,onResize:_}=e,v=cr(e,[`prefixCls`,`bordered`,`size`,`disabled`,`status`,`allowClear`,`classNames`,`rootClassName`,`className`,`style`,`styles`,`variant`,`showCount`,`onMouseDown`,`onResize`]),{getPrefixCls:y,direction:b,allowClear:x,autoComplete:S,className:C,style:w,classNames:T,styles:E}=R(`textArea`),D=Y.useContext(ce),O=o??D,{status:ee,hasFeedback:k,feedbackIcon:A}=Y.useContext(te),j=At(ee,s),M=Y.useRef(null);Y.useImperativeHandle(t,()=>({resizableTextArea:M.current?.resizableTextArea,focus:e=>{Bn(M.current?.resizableTextArea?.textArea,e)},blur:()=>M.current?.blur()}));let N=y(`input`,n),P=r(N),[I,L,ne]=Pn(N,u),[z]=sr(N,P),{compactSize:B,compactItemClassnames:re}=F(N,b),ie=K(e=>a??B??e),[V,H]=jt(`textArea`,m,i),ae=Kn(c??x),[U,W]=Y.useState(!1),[G,oe]=Y.useState(!1),se=e=>{W(!0),g?.(e);let t=()=>{W(!1),document.removeEventListener(`mouseup`,t)};document.addEventListener(`mouseup`,t)},le=e=>{if(_?.(e),U&&typeof getComputedStyle==`function`){let e=(M.current?.nativeElement)?.querySelector(`textarea`);e&&getComputedStyle(e).resize===`both`&&oe(!0)}};return I(z(Y.createElement(ar,Object.assign({autoComplete:S},v,{style:Object.assign(Object.assign({},w),f),styles:Object.assign(Object.assign({},E),p),disabled:O,allowClear:ae,className:(0,J.default)(ne,P,d,u,re,C,G&&`${N}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},l),T),{textarea:(0,J.default)({[`${N}-sm`]:ie===`small`,[`${N}-lg`]:ie===`large`},L,l?.textarea,T.textarea,U&&`${N}-mouse-active`),variant:(0,J.default)({[`${N}-${V}`]:H},kt(N,j)),affixWrapper:(0,J.default)(`${N}-textarea-affix-wrapper`,{[`${N}-affix-wrapper-rtl`]:b===`rtl`,[`${N}-affix-wrapper-sm`]:ie===`small`,[`${N}-affix-wrapper-lg`]:ie===`large`,[`${N}-textarea-show-count`]:h||e.count?.show},L)}),prefixCls:N,suffix:k&&Y.createElement(`span`,{className:`${N}-textarea-suffix`},A),showCount:h,ref:M,onResize:le,onMouseDown:se}))))});export{tt as C,Ot as S,Xe as T,Pt as _,Tn as a,At as b,ln as c,an as d,rn as f,Vt as g,Gt as h,En as i,cn as l,Ut as m,Kn as n,Fn as o,Xt as p,Gn as r,Pn as s,lr as t,on as u,Nt as v,et as w,kt as x,jt as y};