2 lines
56 KiB
JavaScript
2 lines
56 KiB
JavaScript
import{aL as w,aC as v,bM as ue,D as x,U as Et,aJ as L,a6 as ce,aj as ke,d as Y,r as F,bN as fe,aI as Q,s as D,a0 as X,o as pe,bv as z,e as Ve,l as j,bO as Z,bP as Be,af as Ct,bQ as He,bR as et,ag as je,bq as dt,bS as We,b9 as Ie,a7 as Fe,bT as Ht,bU as ot,bV as Le,bb as de,bW as ze,bX as jt,bY as Xe,a1 as Ye,bZ as Ue,b_ as qe,b$ as st,aa as Ge,c0 as Ze,aU as Ke,bc as Qe,bx as Je,aR as at,a$ as to,b0 as he,c1 as eo,b7 as oo,aE as no,b1 as io,c2 as ro,c3 as so,aK as ao,c4 as lo,c5 as uo}from"./CE4SaZgW.js";import{i as co}from"./DFL6LqjW.js";import{i as fo,g as po}from"./CDDBg3Y_.js";var ve=(function(){if(typeof Map<"u")return Map;function t(o,e){var n=-1;return o.some(function(i,r){return i[0]===e?(n=r,!0):!1}),n}return(function(){function o(){this.__entries__=[]}return Object.defineProperty(o.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),o.prototype.get=function(e){var n=t(this.__entries__,e),i=this.__entries__[n];return i&&i[1]},o.prototype.set=function(e,n){var i=t(this.__entries__,e);~i?this.__entries__[i][1]=n:this.__entries__.push([e,n])},o.prototype.delete=function(e){var n=this.__entries__,i=t(n,e);~i&&n.splice(i,1)},o.prototype.has=function(e){return!!~t(this.__entries__,e)},o.prototype.clear=function(){this.__entries__.splice(0)},o.prototype.forEach=function(e,n){n===void 0&&(n=null);for(var i=0,r=this.__entries__;i<r.length;i++){var s=r[i];e.call(n,s[1],s[0])}},o})()})(),xt=typeof window<"u"&&typeof document<"u"&&window.document===document,ht=(function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()})(),ho=(function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(ht):function(t){return setTimeout(function(){return t(Date.now())},1e3/60)}})(),vo=2;function mo(t,o){var e=!1,n=!1,i=0;function r(){e&&(e=!1,t()),n&&a()}function s(){ho(r)}function a(){var l=Date.now();if(e){if(l-i<vo)return;n=!0}else e=!0,n=!1,setTimeout(s,o);i=l}return a}var go=20,bo=["top","right","bottom","left","width","height","size","weight"],yo=typeof MutationObserver<"u",wo=(function(){function t(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=mo(this.refresh.bind(this),go)}return t.prototype.addObserver=function(o){~this.observers_.indexOf(o)||this.observers_.push(o),this.connected_||this.connect_()},t.prototype.removeObserver=function(o){var e=this.observers_,n=e.indexOf(o);~n&&e.splice(n,1),!e.length&&this.connected_&&this.disconnect_()},t.prototype.refresh=function(){var o=this.updateObservers_();o&&this.refresh()},t.prototype.updateObservers_=function(){var o=this.observers_.filter(function(e){return e.gatherActive(),e.hasActive()});return o.forEach(function(e){return e.broadcastActive()}),o.length>0},t.prototype.connect_=function(){!xt||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),yo?(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)},t.prototype.disconnect_=function(){!xt||!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)},t.prototype.onTransitionEnd_=function(o){var e=o.propertyName,n=e===void 0?"":e,i=bo.some(function(r){return!!~n.indexOf(r)});i&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t})(),me=(function(t,o){for(var e=0,n=Object.keys(o);e<n.length;e++){var i=n[e];Object.defineProperty(t,i,{value:o[i],enumerable:!1,writable:!1,configurable:!0})}return t}),J=(function(t){var o=t&&t.ownerDocument&&t.ownerDocument.defaultView;return o||ht}),ge=gt(0,0,0,0);function vt(t){return parseFloat(t)||0}function Wt(t){for(var o=[],e=1;e<arguments.length;e++)o[e-1]=arguments[e];return o.reduce(function(n,i){var r=t["border-"+i+"-width"];return n+vt(r)},0)}function Oo(t){for(var o=["top","right","bottom","left"],e={},n=0,i=o;n<i.length;n++){var r=i[n],s=t["padding-"+r];e[r]=vt(s)}return e}function To(t){var o=t.getBBox();return gt(0,0,o.width,o.height)}function Po(t){var o=t.clientWidth,e=t.clientHeight;if(!o&&!e)return ge;var n=J(t).getComputedStyle(t),i=Oo(n),r=i.left+i.right,s=i.top+i.bottom,a=vt(n.width),l=vt(n.height);if(n.boxSizing==="border-box"&&(Math.round(a+r)!==o&&(a-=Wt(n,"left","right")+r),Math.round(l+s)!==e&&(l-=Wt(n,"top","bottom")+s)),!xo(t)){var u=Math.round(a+r)-o,f=Math.round(l+s)-e;Math.abs(u)!==1&&(a-=u),Math.abs(f)!==1&&(l-=f)}return gt(i.left,i.top,a,l)}var Co=(function(){return typeof SVGGraphicsElement<"u"?function(t){return t instanceof J(t).SVGGraphicsElement}:function(t){return t instanceof J(t).SVGElement&&typeof t.getBBox=="function"}})();function xo(t){return t===J(t).document.documentElement}function _o(t){return xt?Co(t)?To(t):Po(t):ge}function So(t){var o=t.x,e=t.y,n=t.width,i=t.height,r=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,s=Object.create(r.prototype);return me(s,{x:o,y:e,width:n,height:i,top:e,right:o+n,bottom:i+e,left:o}),s}function gt(t,o,e,n){return{x:t,y:o,width:e,height:n}}var Mo=(function(){function t(o){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=gt(0,0,0,0),this.target=o}return t.prototype.isActive=function(){var o=_o(this.target);return this.contentRect_=o,o.width!==this.broadcastWidth||o.height!==this.broadcastHeight},t.prototype.broadcastRect=function(){var o=this.contentRect_;return this.broadcastWidth=o.width,this.broadcastHeight=o.height,o},t})(),Do=(function(){function t(o,e){var n=So(e);me(this,{target:o,contentRect:n})}return t})(),Eo=(function(){function t(o,e,n){if(this.activeObservations_=[],this.observations_=new ve,typeof o!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=o,this.controller_=e,this.callbackCtx_=n}return t.prototype.observe=function(o){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(o instanceof J(o).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(o)||(e.set(o,new Mo(o)),this.controller_.addObserver(this),this.controller_.refresh())}},t.prototype.unobserve=function(o){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(o instanceof J(o).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(o)&&(e.delete(o),e.size||this.controller_.removeObserver(this))}},t.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},t.prototype.gatherActive=function(){var o=this;this.clearActive(),this.observations_.forEach(function(e){e.isActive()&&o.activeObservations_.push(e)})},t.prototype.broadcastActive=function(){if(this.hasActive()){var o=this.callbackCtx_,e=this.activeObservations_.map(function(n){return new Do(n.target,n.broadcastRect())});this.callback_.call(o,e,o),this.clearActive()}},t.prototype.clearActive=function(){this.activeObservations_.splice(0)},t.prototype.hasActive=function(){return this.activeObservations_.length>0},t})(),be=typeof WeakMap<"u"?new WeakMap:new ve,ye=(function(){function t(o){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var e=wo.getInstance(),n=new Eo(o,e,this);be.set(this,n)}return t})();["observe","unobserve","disconnect"].forEach(function(t){ye.prototype[t]=function(){var o;return(o=be.get(this))[t].apply(o,arguments)}});var Ao=(function(){return typeof ht.ResizeObserver<"u"?ht.ResizeObserver:ye})();const $o=(t,o,e,n,i)=>{const r=t/2,s=0,a=r,l=e*1/Math.sqrt(2),u=r-e*(1-1/Math.sqrt(2)),f=r-o*(1/Math.sqrt(2)),p=e*(Math.sqrt(2)-1)+o*(1/Math.sqrt(2)),d=2*r-f,c=p,m=2*r-l,y=u,_=2*r-s,C=a,T=r*Math.sqrt(2)+e*(Math.sqrt(2)-2),P=e*(Math.sqrt(2)-1);return{pointerEvents:"none",width:t,height:t,overflow:"hidden","&::after":{content:'""',position:"absolute",width:T,height:T,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${o}px 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:i,zIndex:0,background:"transparent"},"&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:t,height:t/2,background:n,clipPath:{_multi_value_:!0,value:[`polygon(${P}px 100%, 50% ${P}px, ${2*r-P}px 100%, ${P}px 100%)`,`path('M ${s} ${a} A ${e} ${e} 0 0 0 ${l} ${u} L ${f} ${p} A ${o} ${o} 0 0 1 ${d} ${c} L ${m} ${y} A ${e} ${e} 0 0 0 ${_} ${C} Z')`]},content:'""'}}};function Ro(){return""}function No(t){return t?t.ownerDocument:window.document}function we(){}const ko=()=>({action:w.oneOfType([w.string,w.arrayOf(w.string)]).def([]),showAction:w.any.def([]),hideAction:w.any.def([]),getPopupClassNameFromAlign:w.any.def(Ro),onPopupVisibleChange:Function,afterPopupVisibleChange:w.func.def(we),popup:w.any,popupStyle:{type:Object,default:void 0},prefixCls:w.string.def("rc-trigger-popup"),popupClassName:w.string.def(""),popupPlacement:String,builtinPlacements:w.object,popupTransitionName:String,popupAnimation:w.any,mouseEnterDelay:w.number.def(0),mouseLeaveDelay:w.number.def(.1),zIndex:Number,focusDelay:w.number.def(0),blurDelay:w.number.def(.15),getPopupContainer:Function,getDocument:w.func.def(No),forceRender:{type:Boolean,default:void 0},destroyPopupOnHide:{type:Boolean,default:!1},mask:{type:Boolean,default:!1},maskClosable:{type:Boolean,default:!0},popupAlign:w.object.def(()=>({})),popupVisible:{type:Boolean,default:void 0},defaultPopupVisible:{type:Boolean,default:!1},maskTransitionName:String,maskAnimation:String,stretch:String,alignPoint:{type:Boolean,default:void 0},autoDestroy:{type:Boolean,default:!1},mobile:Object,getTriggerDOMNode:Function}),At={visible:Boolean,prefixCls:String,zIndex:Number,destroyPopupOnHide:Boolean,forceRender:Boolean,animation:[String,Object],transitionName:String,stretch:{type:String},align:{type:Object},point:{type:Object},getRootDomNode:{type:Function},getClassNameFromAlign:{type:Function},onAlign:{type:Function},onMouseenter:{type:Function},onMouseleave:{type:Function},onMousedown:{type:Function},onTouchstart:{type:Function}},Vo=v(v({},At),{mobile:{type:Object}}),Bo=v(v({},At),{mask:Boolean,mobile:{type:Object},maskAnimation:String,maskTransitionName:String});function Oe(t){const{prefixCls:o,visible:e,zIndex:n,mask:i,maskAnimation:r,maskTransitionName:s}=t;if(!i)return null;let a={};return(s||r)&&(a=ue({prefixCls:o,transitionName:s,animation:r})),x(Et,L({appear:!0},a),{default:()=>[ce(x("div",{style:{zIndex:n},class:`${o}-mask`},null),[[ke("if"),e]])]})}Oe.displayName="Mask";const Ho=Y({compatConfig:{MODE:3},name:"MobilePopupInner",inheritAttrs:!1,props:Vo,emits:["mouseenter","mouseleave","mousedown","touchstart","align"],setup(t,o){let{expose:e,slots:n}=o;const i=F();return e({forceAlign:()=>{},getElement:()=>i.value}),()=>{var r;const{zIndex:s,visible:a,prefixCls:l,mobile:{popupClassName:u,popupStyle:f,popupMotion:p={},popupRender:d}={}}=t,c=v({zIndex:s},f);let m=fe((r=n.default)===null||r===void 0?void 0:r.call(n));m.length>1&&(m=x("div",{class:`${l}-content`},[m])),d&&(m=d(m));const y=Q(l,u);return x(Et,L({ref:i},p),{default:()=>[a?x("div",{class:y,style:c},[m]):null]})}}});var jo=function(t,o,e,n){function i(r){return r instanceof e?r:new e(function(s){s(r)})}return new(e||(e=Promise))(function(r,s){function a(f){try{u(n.next(f))}catch(p){s(p)}}function l(f){try{u(n.throw(f))}catch(p){s(p)}}function u(f){f.done?r(f.value):i(f.value).then(a,l)}u((n=n.apply(t,o||[])).next())})};const It=["measure","align",null,"motion"],Wo=((t,o)=>{const e=D(null),n=D(),i=D(!1);function r(l){i.value||(e.value=l)}function s(){z.cancel(n.value)}function a(l){s(),n.value=z(()=>{let u=e.value;switch(e.value){case"align":u="motion";break;case"motion":u="stable";break}r(u),l?.()})}return X(t,()=>{r("measure")},{immediate:!0,flush:"post"}),pe(()=>{X(e,()=>{e.value==="measure"&&o(),e.value&&(n.value=z(()=>jo(void 0,void 0,void 0,function*(){const l=It.indexOf(e.value),u=It[l+1];u&&l!==-1&&r(u)})))},{immediate:!0,flush:"post"})}),Ve(()=>{i.value=!0,s()}),[e,a]}),Io=(t=>{const o=D({width:0,height:0});function e(i){o.value={width:i.offsetWidth,height:i.offsetHeight}}return[j(()=>{const i={};if(t.value){const{width:r,height:s}=o.value;t.value.indexOf("height")!==-1&&s?i.height=`${s}px`:t.value.indexOf("minHeight")!==-1&&s&&(i.minHeight=`${s}px`),t.value.indexOf("width")!==-1&&r?i.width=`${r}px`:t.value.indexOf("minWidth")!==-1&&r&&(i.minWidth=`${r}px`)}return i}),e]});function Ft(t,o){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);o&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),e.push.apply(e,n)}return e}function Lt(t){for(var o=1;o<arguments.length;o++){var e=arguments[o]!=null?arguments[o]:{};o%2?Ft(Object(e),!0).forEach(function(n){Fo(t,n,e[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):Ft(Object(e)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))})}return t}function _t(t){"@babel/helpers - typeof";return _t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_t(t)}function Fo(t,o,e){return o in t?Object.defineProperty(t,o,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[o]=e,t}var tt,Lo={Webkit:"-webkit-",Moz:"-moz-",ms:"-ms-",O:"-o-"};function mt(){if(tt!==void 0)return tt;tt="";var t=document.createElement("p").style,o="Transform";for(var e in Lo)e+o in t&&(tt=e);return tt}function Te(){return mt()?"".concat(mt(),"TransitionProperty"):"transitionProperty"}function bt(){return mt()?"".concat(mt(),"Transform"):"transform"}function zt(t,o){var e=Te();e&&(t.style[e]=o,e!=="transitionProperty"&&(t.style.transitionProperty=o))}function wt(t,o){var e=bt();e&&(t.style[e]=o,e!=="transform"&&(t.style.transform=o))}function zo(t){return t.style.transitionProperty||t.style[Te()]}function Xo(t){var o=window.getComputedStyle(t,null),e=o.getPropertyValue("transform")||o.getPropertyValue(bt());if(e&&e!=="none"){var n=e.replace(/[^0-9\-.,]/g,"").split(",");return{x:parseFloat(n[12]||n[4],0),y:parseFloat(n[13]||n[5],0)}}return{x:0,y:0}}var Yo=/matrix\((.*)\)/,Uo=/matrix3d\((.*)\)/;function qo(t,o){var e=window.getComputedStyle(t,null),n=e.getPropertyValue("transform")||e.getPropertyValue(bt());if(n&&n!=="none"){var i,r=n.match(Yo);if(r)r=r[1],i=r.split(",").map(function(a){return parseFloat(a,10)}),i[4]=o.x,i[5]=o.y,wt(t,"matrix(".concat(i.join(","),")"));else{var s=n.match(Uo)[1];i=s.split(",").map(function(a){return parseFloat(a,10)}),i[12]=o.x,i[13]=o.y,wt(t,"matrix3d(".concat(i.join(","),")"))}}else wt(t,"translateX(".concat(o.x,"px) translateY(").concat(o.y,"px) translateZ(0)"))}var Go=/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source,rt;function Xt(t){var o=t.style.display;t.style.display="none",t.offsetHeight,t.style.display=o}function K(t,o,e){var n=e;if(_t(o)==="object"){for(var i in o)o.hasOwnProperty(i)&&K(t,i,o[i]);return}if(typeof n<"u"){typeof n=="number"&&(n="".concat(n,"px")),t.style[o]=n;return}return rt(t,o)}function Zo(t){var o,e,n,i=t.ownerDocument,r=i.body,s=i&&i.documentElement;return o=t.getBoundingClientRect(),e=Math.floor(o.left),n=Math.floor(o.top),e-=s.clientLeft||r.clientLeft||0,n-=s.clientTop||r.clientTop||0,{left:e,top:n}}function Pe(t,o){var e=t["page".concat(o?"Y":"X","Offset")],n="scroll".concat(o?"Top":"Left");if(typeof e!="number"){var i=t.document;e=i.documentElement[n],typeof e!="number"&&(e=i.body[n])}return e}function Ce(t){return Pe(t)}function xe(t){return Pe(t,!0)}function it(t){var o=Zo(t),e=t.ownerDocument,n=e.defaultView||e.parentWindow;return o.left+=Ce(n),o.top+=xe(n),o}function $t(t){return t!=null&&t==t.window}function _e(t){return $t(t)?t.document:t.nodeType===9?t:t.ownerDocument}function Ko(t,o,e){var n=e,i="",r=_e(t);return n=n||r.defaultView.getComputedStyle(t,null),n&&(i=n.getPropertyValue(o)||n[o]),i}var Qo=new RegExp("^(".concat(Go,")(?!px)[a-z%]+$"),"i"),Jo=/^(top|right|bottom|left)$/,Ot="currentStyle",Tt="runtimeStyle",G="left",tn="px";function en(t,o){var e=t[Ot]&&t[Ot][o];if(Qo.test(e)&&!Jo.test(o)){var n=t.style,i=n[G],r=t[Tt][G];t[Tt][G]=t[Ot][G],n[G]=o==="fontSize"?"1em":e||0,e=n.pixelLeft+tn,n[G]=i,t[Tt][G]=r}return e===""?"auto":e}typeof window<"u"&&(rt=window.getComputedStyle?Ko:en);function lt(t,o){return t==="left"?o.useCssRight?"right":t:o.useCssBottom?"bottom":t}function Yt(t){if(t==="left")return"right";if(t==="right")return"left";if(t==="top")return"bottom";if(t==="bottom")return"top"}function Ut(t,o,e){K(t,"position")==="static"&&(t.style.position="relative");var n=-999,i=-999,r=lt("left",e),s=lt("top",e),a=Yt(r),l=Yt(s);r!=="left"&&(n=999),s!=="top"&&(i=999);var u="",f=it(t);("left"in o||"top"in o)&&(u=zo(t)||"",zt(t,"none")),"left"in o&&(t.style[a]="",t.style[r]="".concat(n,"px")),"top"in o&&(t.style[l]="",t.style[s]="".concat(i,"px")),Xt(t);var p=it(t),d={};for(var c in o)if(o.hasOwnProperty(c)){var m=lt(c,e),y=c==="left"?n:i,_=f[c]-p[c];m===c?d[m]=y+_:d[m]=y-_}K(t,d),Xt(t),("left"in o||"top"in o)&&zt(t,u);var C={};for(var T in o)if(o.hasOwnProperty(T)){var P=lt(T,e),$=o[T]-f[T];T===P?C[P]=d[P]+$:C[P]=d[P]-$}K(t,C)}function on(t,o){var e=it(t),n=Xo(t),i={x:n.x,y:n.y};"left"in o&&(i.x=n.x+o.left-e.left),"top"in o&&(i.y=n.y+o.top-e.top),qo(t,i)}function nn(t,o,e){if(e.ignoreShake){var n=it(t),i=n.left.toFixed(0),r=n.top.toFixed(0),s=o.left.toFixed(0),a=o.top.toFixed(0);if(i===s&&r===a)return}e.useCssRight||e.useCssBottom?Ut(t,o,e):e.useCssTransform&&bt()in document.body.style?on(t,o):Ut(t,o,e)}function Rt(t,o){for(var e=0;e<t.length;e++)o(t[e])}function Se(t){return rt(t,"boxSizing")==="border-box"}var rn=["margin","border","padding"],St=-1,sn=2,Mt=1,an=0;function ln(t,o,e){var n={},i=t.style,r;for(r in o)o.hasOwnProperty(r)&&(n[r]=i[r],i[r]=o[r]);e.call(t);for(r in o)o.hasOwnProperty(r)&&(i[r]=n[r])}function nt(t,o,e){var n=0,i,r,s;for(r=0;r<o.length;r++)if(i=o[r],i)for(s=0;s<e.length;s++){var a=void 0;i==="border"?a="".concat(i).concat(e[s],"Width"):a=i+e[s],n+=parseFloat(rt(t,a))||0}return n}var W={getParent:function(o){var e=o;do e.nodeType===11&&e.host?e=e.host:e=e.parentNode;while(e&&e.nodeType!==1&&e.nodeType!==9);return e}};Rt(["Width","Height"],function(t){W["doc".concat(t)]=function(o){var e=o.document;return Math.max(e.documentElement["scroll".concat(t)],e.body["scroll".concat(t)],W["viewport".concat(t)](e))},W["viewport".concat(t)]=function(o){var e="client".concat(t),n=o.document,i=n.body,r=n.documentElement,s=r[e];return n.compatMode==="CSS1Compat"&&s||i&&i[e]||s}});function qt(t,o,e){var n=e;if($t(t))return o==="width"?W.viewportWidth(t):W.viewportHeight(t);if(t.nodeType===9)return o==="width"?W.docWidth(t):W.docHeight(t);var i=o==="width"?["Left","Right"]:["Top","Bottom"],r=Math.floor(o==="width"?t.getBoundingClientRect().width:t.getBoundingClientRect().height),s=Se(t),a=0;(r==null||r<=0)&&(r=void 0,a=rt(t,o),(a==null||Number(a)<0)&&(a=t.style[o]||0),a=Math.floor(parseFloat(a))||0),n===void 0&&(n=s?Mt:St);var l=r!==void 0||s,u=r||a;return n===St?l?u-nt(t,["border","padding"],i):a:l?n===Mt?u:u+(n===sn?-nt(t,["border"],i):nt(t,["margin"],i)):a+nt(t,rn.slice(n),i)}var un={position:"absolute",visibility:"hidden",display:"block"};function Gt(){for(var t=arguments.length,o=new Array(t),e=0;e<t;e++)o[e]=arguments[e];var n,i=o[0];return i.offsetWidth!==0?n=qt.apply(void 0,o):ln(i,un,function(){n=qt.apply(void 0,o)}),n}Rt(["width","height"],function(t){var o=t.charAt(0).toUpperCase()+t.slice(1);W["outer".concat(o)]=function(n,i){return n&&Gt(n,t,i?an:Mt)};var e=t==="width"?["Left","Right"]:["Top","Bottom"];W[t]=function(n,i){var r=i;if(r!==void 0){if(n){var s=Se(n);return s&&(r+=nt(n,["padding","border"],e)),K(n,t,r)}return}return n&&Gt(n,t,St)}});function Me(t,o){for(var e in o)o.hasOwnProperty(e)&&(t[e]=o[e]);return t}var g={getWindow:function(o){if(o&&o.document&&o.setTimeout)return o;var e=o.ownerDocument||o;return e.defaultView||e.parentWindow},getDocument:_e,offset:function(o,e,n){if(typeof e<"u")nn(o,e,n||{});else return it(o)},isWindow:$t,each:Rt,css:K,clone:function(o){var e,n={};for(e in o)o.hasOwnProperty(e)&&(n[e]=o[e]);var i=o.overflow;if(i)for(e in o)o.hasOwnProperty(e)&&(n.overflow[e]=o.overflow[e]);return n},mix:Me,getWindowScrollLeft:function(o){return Ce(o)},getWindowScrollTop:function(o){return xe(o)},merge:function(){for(var o={},e=0;e<arguments.length;e++)g.mix(o,e<0||arguments.length<=e?void 0:arguments[e]);return o},viewportWidth:0,viewportHeight:0};Me(g,W);var Pt=g.getParent;function Dt(t){if(g.isWindow(t)||t.nodeType===9)return null;var o=g.getDocument(t),e=o.body,n,i=g.css(t,"position"),r=i==="fixed"||i==="absolute";if(!r)return t.nodeName.toLowerCase()==="html"?null:Pt(t);for(n=Pt(t);n&&n!==e&&n.nodeType!==9;n=Pt(n))if(i=g.css(n,"position"),i!=="static")return n;return null}var Zt=g.getParent;function cn(t){if(g.isWindow(t)||t.nodeType===9)return!1;var o=g.getDocument(t),e=o.body,n=null;for(n=Zt(t);n&&n!==e&&n!==o;n=Zt(n)){var i=g.css(n,"position");if(i==="fixed")return!0}return!1}function Nt(t,o){for(var e={left:0,right:1/0,top:0,bottom:1/0},n=Dt(t),i=g.getDocument(t),r=i.defaultView||i.parentWindow,s=i.body,a=i.documentElement;n;){if((navigator.userAgent.indexOf("MSIE")===-1||n.clientWidth!==0)&&n!==s&&n!==a&&g.css(n,"overflow")!=="visible"){var l=g.offset(n);l.left+=n.clientLeft,l.top+=n.clientTop,e.top=Math.max(e.top,l.top),e.right=Math.min(e.right,l.left+n.clientWidth),e.bottom=Math.min(e.bottom,l.top+n.clientHeight),e.left=Math.max(e.left,l.left)}else if(n===s||n===a)break;n=Dt(n)}var u=null;if(!g.isWindow(t)&&t.nodeType!==9){u=t.style.position;var f=g.css(t,"position");f==="absolute"&&(t.style.position="fixed")}var p=g.getWindowScrollLeft(r),d=g.getWindowScrollTop(r),c=g.viewportWidth(r),m=g.viewportHeight(r),y=a.scrollWidth,_=a.scrollHeight,C=window.getComputedStyle(s);if(C.overflowX==="hidden"&&(y=r.innerWidth),C.overflowY==="hidden"&&(_=r.innerHeight),t.style&&(t.style.position=u),o||cn(t))e.left=Math.max(e.left,p),e.top=Math.max(e.top,d),e.right=Math.min(e.right,p+c),e.bottom=Math.min(e.bottom,d+m);else{var T=Math.max(y,p+c);e.right=Math.min(e.right,T);var P=Math.max(_,d+m);e.bottom=Math.min(e.bottom,P)}return e.top>=0&&e.left>=0&&e.bottom>e.top&&e.right>e.left?e:null}function fn(t,o,e,n){var i=g.clone(t),r={width:o.width,height:o.height};return n.adjustX&&i.left<e.left&&(i.left=e.left),n.resizeWidth&&i.left>=e.left&&i.left+r.width>e.right&&(r.width-=i.left+r.width-e.right),n.adjustX&&i.left+r.width>e.right&&(i.left=Math.max(e.right-r.width,e.left)),n.adjustY&&i.top<e.top&&(i.top=e.top),n.resizeHeight&&i.top>=e.top&&i.top+r.height>e.bottom&&(r.height-=i.top+r.height-e.bottom),n.adjustY&&i.top+r.height>e.bottom&&(i.top=Math.max(e.bottom-r.height,e.top)),g.mix(i,r)}function kt(t){var o,e,n;if(!g.isWindow(t)&&t.nodeType!==9)o=g.offset(t),e=g.outerWidth(t),n=g.outerHeight(t);else{var i=g.getWindow(t);o={left:g.getWindowScrollLeft(i),top:g.getWindowScrollTop(i)},e=g.viewportWidth(i),n=g.viewportHeight(i)}return o.width=e,o.height=n,o}function Kt(t,o){var e=o.charAt(0),n=o.charAt(1),i=t.width,r=t.height,s=t.left,a=t.top;return e==="c"?a+=r/2:e==="b"&&(a+=r),n==="c"?s+=i/2:n==="r"&&(s+=i),{left:s,top:a}}function ut(t,o,e,n,i){var r=Kt(o,e[1]),s=Kt(t,e[0]),a=[s.left-r.left,s.top-r.top];return{left:Math.round(t.left-a[0]+n[0]-i[0]),top:Math.round(t.top-a[1]+n[1]-i[1])}}function Qt(t,o,e){return t.left<e.left||t.left+o.width>e.right}function Jt(t,o,e){return t.top<e.top||t.top+o.height>e.bottom}function pn(t,o,e){return t.left>e.right||t.left+o.width<e.left}function dn(t,o,e){return t.top>e.bottom||t.top+o.height<e.top}function ct(t,o,e){var n=[];return g.each(t,function(i){n.push(i.replace(o,function(r){return e[r]}))}),n}function ft(t,o){return t[o]=-t[o],t}function te(t,o){var e;return/%$/.test(t)?e=parseInt(t.substring(0,t.length-1),10)/100*o:e=parseInt(t,10),e||0}function ee(t,o){t[0]=te(t[0],o.width),t[1]=te(t[1],o.height)}function De(t,o,e,n){var i=e.points,r=e.offset||[0,0],s=e.targetOffset||[0,0],a=e.overflow,l=e.source||t;r=[].concat(r),s=[].concat(s),a=a||{};var u={},f=0,p=!!(a&&a.alwaysByViewport),d=Nt(l,p),c=kt(l);ee(r,c),ee(s,o);var m=ut(c,o,i,r,s),y=g.merge(c,m);if(d&&(a.adjustX||a.adjustY)&&n){if(a.adjustX&&Qt(m,c,d)){var _=ct(i,/[lr]/gi,{l:"r",r:"l"}),C=ft(r,0),T=ft(s,0),P=ut(c,o,_,C,T);pn(P,c,d)||(f=1,i=_,r=C,s=T)}if(a.adjustY&&Jt(m,c,d)){var $=ct(i,/[tb]/gi,{t:"b",b:"t"}),U=ft(r,1),O=ft(s,1),N=ut(c,o,$,U,O);dn(N,c,d)||(f=1,i=$,r=U,s=O)}f&&(m=ut(c,o,i,r,s),g.mix(y,m));var S=Qt(m,c,d),A=Jt(m,c,d);if(S||A){var h=i;S&&(h=ct(i,/[lr]/gi,{l:"r",r:"l"})),A&&(h=ct(i,/[tb]/gi,{t:"b",b:"t"})),i=h,r=e.offset||[0,0],s=e.targetOffset||[0,0]}u.adjustX=a.adjustX&&S,u.adjustY=a.adjustY&&A,(u.adjustX||u.adjustY)&&(y=fn(m,c,d,u))}return y.width!==c.width&&g.css(l,"width",g.width(l)+y.width-c.width),y.height!==c.height&&g.css(l,"height",g.height(l)+y.height-c.height),g.offset(l,{left:y.left,top:y.top},{useCssRight:e.useCssRight,useCssBottom:e.useCssBottom,useCssTransform:e.useCssTransform,ignoreShake:e.ignoreShake}),{points:i,offset:r,targetOffset:s,overflow:u}}function hn(t,o){var e=Nt(t,o),n=kt(t);return!e||n.left+n.width<=e.left||n.top+n.height<=e.top||n.left>=e.right||n.top>=e.bottom}function Vt(t,o,e){var n=e.target||o,i=kt(n),r=!hn(n,e.overflow&&e.overflow.alwaysByViewport);return De(t,i,e,r)}Vt.__getOffsetParent=Dt;Vt.__getVisibleRectForElement=Nt;function vn(t,o,e){var n,i,r=g.getDocument(t),s=r.defaultView||r.parentWindow,a=g.getWindowScrollLeft(s),l=g.getWindowScrollTop(s),u=g.viewportWidth(s),f=g.viewportHeight(s);"pageX"in o?n=o.pageX:n=a+o.clientX,"pageY"in o?i=o.pageY:i=l+o.clientY;var p={left:n,top:i,width:0,height:0},d=n>=0&&n<=a+u&&i>=0&&i<=l+f,c=[e.points[0],"cc"];return De(t,p,Lt(Lt({},e),{},{points:c}),d)}function mn(t,o){return t===o?!0:!t||!o?!1:"pageX"in o&&"pageY"in o?t.pageX===o.pageX&&t.pageY===o.pageY:"clientX"in o&&"clientY"in o?t.clientX===o.clientX&&t.clientY===o.clientY:!1}function gn(t,o){t!==document.activeElement&&Z(o,t)&&typeof t.focus=="function"&&t.focus()}function oe(t,o){let e=null,n=null;function i(s){let[{target:a}]=s;if(!document.documentElement.contains(a))return;const{width:l,height:u}=a.getBoundingClientRect(),f=Math.floor(l),p=Math.floor(u);(e!==f||n!==p)&&Promise.resolve().then(()=>{o({width:f,height:p})}),e=f,n=p}const r=new Ao(i);return t&&r.observe(t),()=>{r.disconnect()}}const bn=((t,o)=>{let e=!1,n=null;function i(){clearTimeout(n)}function r(s){if(!e||s===!0){if(t()===!1)return;e=!0,i(),n=setTimeout(()=>{e=!1},o.value)}else i(),n=setTimeout(()=>{e=!1,r()},o.value)}return[r,()=>{e=!1,i()}]}),yn={align:Object,target:[Object,Function],onAlign:Function,monitorBufferTime:Number,monitorWindowResize:Boolean,disabled:Boolean};function ne(t){return typeof t!="function"?null:t()}function ie(t){return typeof t!="object"||!t?null:t}const wn=Y({compatConfig:{MODE:3},name:"Align",props:yn,emits:["align"],setup(t,o){let{expose:e,slots:n}=o;const i=F({}),r=F(),[s,a]=bn(()=>{const{disabled:d,target:c,align:m,onAlign:y}=t;if(!d&&c&&r.value){const _=r.value;let C;const T=ne(c),P=ie(c);i.value.element=T,i.value.point=P,i.value.align=m;const{activeElement:$}=document;return T&&Be(T)?C=Vt(_,T,m):P&&(C=vn(_,P,m)),gn($,_),y&&C&&y(_,C),!0}return!1},j(()=>t.monitorBufferTime)),l=F({cancel:()=>{}}),u=F({cancel:()=>{}}),f=()=>{const d=t.target,c=ne(d),m=ie(d);r.value!==u.value.element&&(u.value.cancel(),u.value.element=r.value,u.value.cancel=oe(r.value,s)),(i.value.element!==c||!mn(i.value.point,m)||!co(i.value.align,t.align))&&(s(),l.value.element!==c&&(l.value.cancel(),l.value.element=c,l.value.cancel=oe(c,s)))};pe(()=>{Ct(()=>{f()})}),He(()=>{Ct(()=>{f()})}),X(()=>t.disabled,d=>{d?a():s()},{immediate:!0,flush:"post"});const p=F(null);return X(()=>t.monitorWindowResize,d=>{d?p.value||(p.value=et(window,"resize",s)):p.value&&(p.value.remove(),p.value=null)},{flush:"post"}),je(()=>{l.value.cancel(),u.value.cancel(),p.value&&p.value.remove(),a()}),e({forceAlign:()=>s(!0)}),()=>{const d=n?.default();return d?dt(d[0],{ref:r},!0,!0):null}}}),On=Y({compatConfig:{MODE:3},name:"PopupInner",inheritAttrs:!1,props:At,emits:["mouseenter","mouseleave","mousedown","touchstart","align"],setup(t,o){let{expose:e,attrs:n,slots:i}=o;const r=D(),s=D(),a=D(),[l,u]=Io(We(t,"stretch")),f=()=>{t.stretch&&u(t.getRootDomNode())},p=D(!1);let d;X(()=>t.visible,O=>{clearTimeout(d),O?d=setTimeout(()=>{p.value=t.visible}):p.value=!1},{immediate:!0});const[c,m]=Wo(p,f),y=D(),_=()=>t.point?t.point:t.getRootDomNode,C=()=>{var O;(O=r.value)===null||O===void 0||O.forceAlign()},T=(O,N)=>{var S;const A=t.getClassNameFromAlign(N),h=a.value;a.value!==A&&(a.value=A),c.value==="align"&&(h!==A?Promise.resolve().then(()=>{C()}):m(()=>{var b;(b=y.value)===null||b===void 0||b.call(y)}),(S=t.onAlign)===null||S===void 0||S.call(t,O,N))},P=j(()=>{const O=typeof t.animation=="object"?t.animation:ue(t);return["onAfterEnter","onAfterLeave"].forEach(N=>{const S=O[N];O[N]=A=>{m(),c.value="stable",S?.(A)}}),O}),$=()=>new Promise(O=>{y.value=O});X([P,c],()=>{!P.value&&c.value==="motion"&&m()},{immediate:!0}),e({forceAlign:C,getElement:()=>s.value.$el||s.value});const U=j(()=>{var O;return!(!((O=t.align)===null||O===void 0)&&O.points&&(c.value==="align"||c.value==="stable"))});return()=>{var O;const{zIndex:N,align:S,prefixCls:A,destroyPopupOnHide:h,onMouseenter:b,onMouseleave:B,onTouchstart:R=()=>{},onMousedown:H}=t,M=c.value,E=[v(v({},l.value),{zIndex:N,opacity:M==="motion"||M==="stable"||!p.value?null:0,pointerEvents:!p.value&&M!=="stable"?"none":null}),n.style];let q=fe((O=i.default)===null||O===void 0?void 0:O.call(i,{visible:t.visible}));q.length>1&&(q=x("div",{class:`${A}-content`},[q]));const I=Q(A,n.class,a.value),yt=p.value||!t.visible?Ie(P.value.name,P.value):{};return x(Et,L(L({ref:s},yt),{},{onBeforeEnter:$}),{default:()=>!h||t.visible?ce(x(wn,{target:_(),key:"popup",ref:r,monitorWindowResize:!0,disabled:U.value,align:S,onAlign:T},{default:()=>x("div",{class:I,onMouseenter:b,onMouseleave:B,onMousedown:Ht(H,["capture"]),[ot?"onTouchstartPassive":"onTouchstart"]:Ht(R,["capture"]),style:E},[q])}),[[Fe,p.value]]):null})}}}),Tn=Y({compatConfig:{MODE:3},name:"Popup",inheritAttrs:!1,props:Bo,setup(t,o){let{attrs:e,slots:n,expose:i}=o;const r=D(!1),s=D(!1),a=D(),l=D();return X([()=>t.visible,()=>t.mobile],()=>{r.value=t.visible,t.visible&&t.mobile&&(s.value=!0)},{immediate:!0,flush:"post"}),i({forceAlign:()=>{var u;(u=a.value)===null||u===void 0||u.forceAlign()},getElement:()=>{var u;return(u=a.value)===null||u===void 0?void 0:u.getElement()}}),()=>{const u=v(v(v({},t),e),{visible:r.value}),f=s.value?x(Ho,L(L({},u),{},{mobile:t.mobile,ref:a}),{default:n.default}):x(On,L(L({},u),{},{ref:a}),{default:n.default});return x("div",{ref:l},[x(Oe,u,null),f])}}});function Pn(t,o,e){return e?t[0]===o[0]:t[0]===o[0]&&t[1]===o[1]}function re(t,o,e){const n=t[o]||{};return v(v({},n),e)}function Cn(t,o,e,n){const{points:i}=e,r=Object.keys(t);for(let s=0;s<r.length;s+=1){const a=r[s];if(Pn(t[a].points,i,n))return`${o}-placement-${a}`}return""}const xn={methods:{setState(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0,e=typeof t=="function"?t(this.$data,this.$props):t;if(this.getDerivedStateFromProps){const n=this.getDerivedStateFromProps(Le(this),v(v({},this.$data),e));if(n===null)return;e=v(v({},e),n||{})}v(this.$data,e),this._.isMounted&&this.$forceUpdate(),Ct(()=>{o&&o()})},__emit(){const t=[].slice.call(arguments,0);let o=t[0];o=`on${o[0].toUpperCase()}${o.substring(1)}`;const e=this.$props[o]||this.$attrs[o];if(t.length&&e)if(Array.isArray(e))for(let n=0,i=e.length;n<i;n++)e[n](...t.slice(1));else e(...t.slice(1))}}},_n=["onClick","onMousedown","onTouchstart","onMouseenter","onMouseleave","onFocus","onBlur","onContextmenu"],Sn=Y({compatConfig:{MODE:3},name:"Trigger",mixins:[xn],inheritAttrs:!1,props:ko(),setup(t){const o=j(()=>{const{popupPlacement:i,popupAlign:r,builtinPlacements:s}=t;return i&&s?re(s,i,r):r}),e=D(null),n=i=>{e.value=i};return{vcTriggerContext:Ke("vcTriggerContext",{}),popupRef:e,setPopupRef:n,triggerRef:D(null),align:o,focusTime:null,clickOutsideHandler:null,contextmenuOutsideHandler1:null,contextmenuOutsideHandler2:null,touchOutsideHandler:null,attachId:null,delayTimer:null,hasPopupMouseDown:!1,preClickTime:null,preTouchTime:null,mouseDownTimeout:null,childOriginEvents:{}}},data(){const t=this.$props;let o;return this.popupVisible!==void 0?o=!!t.popupVisible:o=!!t.defaultPopupVisible,_n.forEach(e=>{this[`fire${e}`]=n=>{this.fireEvents(e,n)}}),{prevPopupVisible:o,sPopupVisible:o,point:null}},watch:{popupVisible(t){t!==void 0&&(this.prevPopupVisible=this.sPopupVisible,this.sPopupVisible=t)}},created(){Ge("vcTriggerContext",{onPopupMouseDown:this.onPopupMouseDown,onPopupMouseenter:this.onPopupMouseenter,onPopupMouseleave:this.onPopupMouseleave}),Ze(this)},deactivated(){this.setPopupVisible(!1)},mounted(){this.$nextTick(()=>{this.updatedCal()})},updated(){this.$nextTick(()=>{this.updatedCal()})},beforeUnmount(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),z.cancel(this.attachId)},methods:{updatedCal(){const t=this.$props;if(this.$data.sPopupVisible){let e;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextmenuToShow())&&(e=t.getDocument(this.getRootDomNode()),this.clickOutsideHandler=et(e,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(e=e||t.getDocument(this.getRootDomNode()),this.touchOutsideHandler=et(e,"touchstart",this.onDocumentClick,ot?{passive:!1}:!1)),!this.contextmenuOutsideHandler1&&this.isContextmenuToShow()&&(e=e||t.getDocument(this.getRootDomNode()),this.contextmenuOutsideHandler1=et(e,"scroll",this.onContextmenuClose)),!this.contextmenuOutsideHandler2&&this.isContextmenuToShow()&&(this.contextmenuOutsideHandler2=et(window,"blur",this.onContextmenuClose))}else this.clearOutsideHandler()},onMouseenter(t){const{mouseEnterDelay:o}=this.$props;this.fireEvents("onMouseenter",t),this.delaySetPopupVisible(!0,o,o?null:t)},onMouseMove(t){this.fireEvents("onMousemove",t),this.setPoint(t)},onMouseleave(t){this.fireEvents("onMouseleave",t),this.delaySetPopupVisible(!1,this.$props.mouseLeaveDelay)},onPopupMouseenter(){const{vcTriggerContext:t={}}=this;t.onPopupMouseenter&&t.onPopupMouseenter(),this.clearDelayTimer()},onPopupMouseleave(t){var o;if(t&&t.relatedTarget&&!t.relatedTarget.setTimeout&&Z((o=this.popupRef)===null||o===void 0?void 0:o.getElement(),t.relatedTarget))return;this.isMouseLeaveToHide()&&this.delaySetPopupVisible(!1,this.$props.mouseLeaveDelay);const{vcTriggerContext:e={}}=this;e.onPopupMouseleave&&e.onPopupMouseleave(t)},onFocus(t){this.fireEvents("onFocus",t),this.clearDelayTimer(),this.isFocusToShow()&&(this.focusTime=Date.now(),this.delaySetPopupVisible(!0,this.$props.focusDelay))},onMousedown(t){this.fireEvents("onMousedown",t),this.preClickTime=Date.now()},onTouchstart(t){this.fireEvents("onTouchstart",t),this.preTouchTime=Date.now()},onBlur(t){Z(t.target,t.relatedTarget||document.activeElement)||(this.fireEvents("onBlur",t),this.clearDelayTimer(),this.isBlurToHide()&&this.delaySetPopupVisible(!1,this.$props.blurDelay))},onContextmenu(t){t.preventDefault(),this.fireEvents("onContextmenu",t),this.setPopupVisible(!0,t)},onContextmenuClose(){this.isContextmenuToShow()&&this.close()},onClick(t){if(this.fireEvents("onClick",t),this.focusTime){let e;if(this.preClickTime&&this.preTouchTime?e=Math.min(this.preClickTime,this.preTouchTime):this.preClickTime?e=this.preClickTime:this.preTouchTime&&(e=this.preTouchTime),Math.abs(e-this.focusTime)<20)return;this.focusTime=0}this.preClickTime=0,this.preTouchTime=0,this.isClickToShow()&&(this.isClickToHide()||this.isBlurToHide())&&t&&t.preventDefault&&t.preventDefault(),t&&t.domEvent&&t.domEvent.preventDefault();const o=!this.$data.sPopupVisible;(this.isClickToHide()&&!o||o&&this.isClickToShow())&&this.setPopupVisible(!this.$data.sPopupVisible,t)},onPopupMouseDown(){const{vcTriggerContext:t={}}=this;this.hasPopupMouseDown=!0,clearTimeout(this.mouseDownTimeout),this.mouseDownTimeout=setTimeout(()=>{this.hasPopupMouseDown=!1},0),t.onPopupMouseDown&&t.onPopupMouseDown(...arguments)},onDocumentClick(t){if(this.$props.mask&&!this.$props.maskClosable)return;const o=t.target,e=this.getRootDomNode(),n=this.getPopupDomNode();(!Z(e,o)||this.isContextMenuOnly())&&!Z(n,o)&&!this.hasPopupMouseDown&&this.delaySetPopupVisible(!1,.1)},getPopupDomNode(){var t;return((t=this.popupRef)===null||t===void 0?void 0:t.getElement())||null},getRootDomNode(){var t,o,e,n;const{getTriggerDOMNode:i}=this.$props;if(i){const r=((o=(t=this.triggerRef)===null||t===void 0?void 0:t.$el)===null||o===void 0?void 0:o.nodeName)==="#comment"?null:st(this.triggerRef);return st(i(r))}try{const r=((n=(e=this.triggerRef)===null||e===void 0?void 0:e.$el)===null||n===void 0?void 0:n.nodeName)==="#comment"?null:st(this.triggerRef);if(r)return r}catch{}return st(this)},handleGetPopupClassFromAlign(t){const o=[],e=this.$props,{popupPlacement:n,builtinPlacements:i,prefixCls:r,alignPoint:s,getPopupClassNameFromAlign:a}=e;return n&&i&&o.push(Cn(i,r,t,s)),a&&o.push(a(t)),o.join(" ")},getPopupAlign(){const t=this.$props,{popupPlacement:o,popupAlign:e,builtinPlacements:n}=t;return o&&n?re(n,o,e):e},getComponent(){const t={};this.isMouseEnterToShow()&&(t.onMouseenter=this.onPopupMouseenter),this.isMouseLeaveToHide()&&(t.onMouseleave=this.onPopupMouseleave),t.onMousedown=this.onPopupMouseDown,t[ot?"onTouchstartPassive":"onTouchstart"]=this.onPopupMouseDown;const{handleGetPopupClassFromAlign:o,getRootDomNode:e,$attrs:n}=this,{prefixCls:i,destroyPopupOnHide:r,popupClassName:s,popupAnimation:a,popupTransitionName:l,popupStyle:u,mask:f,maskAnimation:p,maskTransitionName:d,zIndex:c,stretch:m,alignPoint:y,mobile:_,forceRender:C}=this.$props,{sPopupVisible:T,point:P}=this.$data,$=v(v({prefixCls:i,destroyPopupOnHide:r,visible:T,point:y?P:null,align:this.align,animation:a,getClassNameFromAlign:o,stretch:m,getRootDomNode:e,mask:f,zIndex:c,transitionName:l,maskAnimation:p,maskTransitionName:d,class:s,style:u,onAlign:n.onPopupAlign||we},t),{ref:this.setPopupRef,mobile:_,forceRender:C});return x(Tn,$,{default:this.$slots.popup||(()=>qe(this,"popup"))})},attachParent(t){z.cancel(this.attachId);const{getPopupContainer:o,getDocument:e}=this.$props,n=this.getRootDomNode();let i;o?(n||o.length===0)&&(i=o(n)):i=e(this.getRootDomNode()).body,i?i.appendChild(t):this.attachId=z(()=>{this.attachParent(t)})},getContainer(){const{$props:t}=this,{getDocument:o}=t,e=o(this.getRootDomNode()).createElement("div");return e.style.position="absolute",e.style.top="0",e.style.left="0",e.style.width="100%",this.attachParent(e),e},setPopupVisible(t,o){const{alignPoint:e,sPopupVisible:n,onPopupVisibleChange:i}=this;this.clearDelayTimer(),n!==t&&(Ue(this,"popupVisible")||this.setState({sPopupVisible:t,prevPopupVisible:n}),i&&i(t)),e&&o&&t&&this.setPoint(o)},setPoint(t){const{alignPoint:o}=this.$props;!o||!t||this.setState({point:{pageX:t.pageX,pageY:t.pageY}})},handlePortalUpdate(){this.prevPopupVisible!==this.sPopupVisible&&this.afterPopupVisibleChange(this.sPopupVisible)},delaySetPopupVisible(t,o,e){const n=o*1e3;if(this.clearDelayTimer(),n){const i=e?{pageX:e.pageX,pageY:e.pageY}:null;this.delayTimer=setTimeout(()=>{this.setPopupVisible(t,i),this.clearDelayTimer()},n)}else this.setPopupVisible(t,e)},clearDelayTimer(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)},clearOutsideHandler(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextmenuOutsideHandler1&&(this.contextmenuOutsideHandler1.remove(),this.contextmenuOutsideHandler1=null),this.contextmenuOutsideHandler2&&(this.contextmenuOutsideHandler2.remove(),this.contextmenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)},createTwoChains(t){let o=()=>{};const e=jt(this);return this.childOriginEvents[t]&&e[t]?this[`fire${t}`]:(o=this.childOriginEvents[t]||e[t]||o,o)},isClickToShow(){const{action:t,showAction:o}=this.$props;return t.indexOf("click")!==-1||o.indexOf("click")!==-1},isContextMenuOnly(){const{action:t}=this.$props;return t==="contextmenu"||t.length===1&&t[0]==="contextmenu"},isContextmenuToShow(){const{action:t,showAction:o}=this.$props;return t.indexOf("contextmenu")!==-1||o.indexOf("contextmenu")!==-1},isClickToHide(){const{action:t,hideAction:o}=this.$props;return t.indexOf("click")!==-1||o.indexOf("click")!==-1},isMouseEnterToShow(){const{action:t,showAction:o}=this.$props;return t.indexOf("hover")!==-1||o.indexOf("mouseenter")!==-1},isMouseLeaveToHide(){const{action:t,hideAction:o}=this.$props;return t.indexOf("hover")!==-1||o.indexOf("mouseleave")!==-1},isFocusToShow(){const{action:t,showAction:o}=this.$props;return t.indexOf("focus")!==-1||o.indexOf("focus")!==-1},isBlurToHide(){const{action:t,hideAction:o}=this.$props;return t.indexOf("focus")!==-1||o.indexOf("blur")!==-1},forcePopupAlign(){var t;this.$data.sPopupVisible&&((t=this.popupRef)===null||t===void 0||t.forceAlign())},fireEvents(t,o){this.childOriginEvents[t]&&this.childOriginEvents[t](o);const e=this.$props[t]||this.$attrs[t];e&&e(o)},close(){this.setPopupVisible(!1)}},render(){const{$attrs:t}=this,o=de(ze(this)),{alignPoint:e,getPopupContainer:n}=this.$props,i=o[0];this.childOriginEvents=jt(i);const r={key:"trigger"};this.isContextmenuToShow()?r.onContextmenu=this.onContextmenu:r.onContextmenu=this.createTwoChains("onContextmenu"),this.isClickToHide()||this.isClickToShow()?(r.onClick=this.onClick,r.onMousedown=this.onMousedown,r[ot?"onTouchstartPassive":"onTouchstart"]=this.onTouchstart):(r.onClick=this.createTwoChains("onClick"),r.onMousedown=this.createTwoChains("onMousedown"),r[ot?"onTouchstartPassive":"onTouchstart"]=this.createTwoChains("onTouchstart")),this.isMouseEnterToShow()?(r.onMouseenter=this.onMouseenter,e&&(r.onMousemove=this.onMouseMove)):r.onMouseenter=this.createTwoChains("onMouseenter"),this.isMouseLeaveToHide()?r.onMouseleave=this.onMouseleave:r.onMouseleave=this.createTwoChains("onMouseleave"),this.isFocusToShow()||this.isBlurToHide()?(r.onFocus=this.onFocus,r.onBlur=this.onBlur):(r.onFocus=this.createTwoChains("onFocus"),r.onBlur=u=>{u&&(!u.relatedTarget||!Z(u.target,u.relatedTarget))&&this.createTwoChains("onBlur")(u)});const s=Q(i&&i.props&&i.props.class,t.class);s&&(r.class=s);const a=dt(i,v(v({},r),{ref:"triggerRef"}),!0,!0),l=x(Xe,{key:"portal",getContainer:n&&(()=>n(this.getRootDomNode())),didUpdate:this.handlePortalUpdate,visible:this.$data.sPopupVisible},{default:this.getComponent});return x(Ye,null,[a,l])}}),k={adjustX:1,adjustY:1},V=[0,0],Ee={left:{points:["cr","cl"],overflow:k,offset:[-4,0],targetOffset:V},right:{points:["cl","cr"],overflow:k,offset:[4,0],targetOffset:V},top:{points:["bc","tc"],overflow:k,offset:[0,-4],targetOffset:V},bottom:{points:["tc","bc"],overflow:k,offset:[0,4],targetOffset:V},topLeft:{points:["bl","tl"],overflow:k,offset:[0,-4],targetOffset:V},leftTop:{points:["tr","tl"],overflow:k,offset:[-4,0],targetOffset:V},topRight:{points:["br","tr"],overflow:k,offset:[0,-4],targetOffset:V},rightTop:{points:["tl","tr"],overflow:k,offset:[4,0],targetOffset:V},bottomRight:{points:["tr","br"],overflow:k,offset:[0,4],targetOffset:V},rightBottom:{points:["bl","br"],overflow:k,offset:[4,0],targetOffset:V},bottomLeft:{points:["tl","bl"],overflow:k,offset:[0,4],targetOffset:V},leftBottom:{points:["br","bl"],overflow:k,offset:[-4,0],targetOffset:V}},Mn={prefixCls:String,id:String,overlayInnerStyle:w.any},Dn=Y({compatConfig:{MODE:3},name:"TooltipContent",props:Mn,setup(t,o){let{slots:e}=o;return()=>{var n;return x("div",{class:`${t.prefixCls}-inner`,id:t.id,role:"tooltip",style:t.overlayInnerStyle},[(n=e.overlay)===null||n===void 0?void 0:n.call(e)])}}});var En=function(t,o){var e={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&o.indexOf(n)<0&&(e[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(t);i<n.length;i++)o.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(t,n[i])&&(e[n[i]]=t[n[i]]);return e};function se(){}const An=Y({compatConfig:{MODE:3},name:"Tooltip",inheritAttrs:!1,props:{trigger:w.any.def(["hover"]),defaultVisible:{type:Boolean,default:void 0},visible:{type:Boolean,default:void 0},placement:w.string.def("right"),transitionName:String,animation:w.any,afterVisibleChange:w.func.def(()=>{}),overlayStyle:{type:Object,default:void 0},overlayClassName:String,prefixCls:w.string.def("rc-tooltip"),mouseEnterDelay:w.number.def(.1),mouseLeaveDelay:w.number.def(.1),getPopupContainer:Function,destroyTooltipOnHide:{type:Boolean,default:!1},align:w.object.def(()=>({})),arrowContent:w.any.def(null),tipId:String,builtinPlacements:w.object,overlayInnerStyle:{type:Object,default:void 0},popupVisible:{type:Boolean,default:void 0},onVisibleChange:Function,onPopupAlign:Function},setup(t,o){let{slots:e,attrs:n,expose:i}=o;const r=D(),s=()=>{const{prefixCls:f,tipId:p,overlayInnerStyle:d}=t;return[x("div",{class:`${f}-arrow`,key:"arrow"},[Je(e,t,"arrowContent")]),x(Dn,{key:"content",prefixCls:f,id:p,overlayInnerStyle:d},{overlay:e.overlay})]};i({getPopupDomNode:()=>r.value.getPopupDomNode(),triggerDOM:r,forcePopupAlign:()=>{var f;return(f=r.value)===null||f===void 0?void 0:f.forcePopupAlign()}});const l=D(!1),u=D(!1);return Qe(()=>{const{destroyTooltipOnHide:f}=t;if(typeof f=="boolean")l.value=f;else if(f&&typeof f=="object"){const{keepParent:p}=f;l.value=p===!0,u.value=p===!1}}),()=>{const{overlayClassName:f,trigger:p,mouseEnterDelay:d,mouseLeaveDelay:c,overlayStyle:m,prefixCls:y,afterVisibleChange:_,transitionName:C,animation:T,placement:P,align:$,destroyTooltipOnHide:U,defaultVisible:O}=t,N=En(t,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","afterVisibleChange","transitionName","animation","placement","align","destroyTooltipOnHide","defaultVisible"]),S=v({},N);t.visible!==void 0&&(S.popupVisible=t.visible);const A=v(v(v({popupClassName:f,prefixCls:y,action:p,builtinPlacements:Ee,popupPlacement:P,popupAlign:$,afterPopupVisibleChange:_,popupTransitionName:C,popupAnimation:T,defaultPopupVisible:O,destroyPopupOnHide:l.value,autoDestroy:u.value,mouseLeaveDelay:c,popupStyle:m,mouseEnterDelay:d},S),n),{onPopupVisibleChange:t.onVisibleChange||se,onPopupAlign:t.onPopupAlign||se,ref:r,popup:s()});return x(Sn,A,{default:e.default})}}}),$n=(()=>({trigger:[String,Array],open:{type:Boolean,default:void 0},visible:{type:Boolean,default:void 0},placement:String,color:String,transitionName:String,overlayStyle:at(),overlayInnerStyle:at(),overlayClassName:String,openClassName:String,prefixCls:String,mouseEnterDelay:Number,mouseLeaveDelay:Number,getPopupContainer:Function,arrowPointAtCenter:{type:Boolean,default:void 0},autoAdjustOverflow:{type:[Boolean,Object],default:void 0},destroyTooltipOnHide:{type:Boolean,default:void 0},align:at(),builtinPlacements:at(),children:Array,onVisibleChange:Function,"onUpdate:visible":Function,onOpenChange:Function,"onUpdate:open":Function})),Rn={adjustX:1,adjustY:1},ae={adjustX:0,adjustY:0},Nn=[0,0];function le(t){return typeof t=="boolean"?t?Rn:ae:v(v({},ae),t)}function kn(t){const{arrowWidth:o=4,horizontalArrowShift:e=16,verticalArrowShift:n=8,autoAdjustOverflow:i,arrowPointAtCenter:r}=t,s={left:{points:["cr","cl"],offset:[-4,0]},right:{points:["cl","cr"],offset:[4,0]},top:{points:["bc","tc"],offset:[0,-4]},bottom:{points:["tc","bc"],offset:[0,4]},topLeft:{points:["bl","tc"],offset:[-(e+o),-4]},leftTop:{points:["tr","cl"],offset:[-4,-(n+o)]},topRight:{points:["br","tc"],offset:[e+o,-4]},rightTop:{points:["tl","cr"],offset:[4,-(n+o)]},bottomRight:{points:["tr","bc"],offset:[e+o,4]},rightBottom:{points:["bl","cr"],offset:[4,n+o]},bottomLeft:{points:["tl","bc"],offset:[-(e+o),4]},leftBottom:{points:["br","cl"],offset:[-4,n+o]}};return Object.keys(s).forEach(a=>{s[a]=r?v(v({},s[a]),{overflow:le(i),targetOffset:Nn}):v(v({},Ee[a]),{overflow:le(i)}),s[a].ignoreShake=!0}),s}function Vn(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];for(let o=0,e=t.length;o<e;o++)if(t[o]!==void 0)return t[o]}function Bn(t,o){const e=fo(o),n=Q({[`${t}-${o}`]:o&&e}),i={},r={};return o&&!e&&(i.background=o,r["--antd-arrow-background-color"]=o),{className:n,overlayStyle:i,arrowStyle:r}}function pt(t){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return t.map(e=>`${o}${e}`).join(",")}const Ae=8;function Hn(t){const o=Ae,{sizePopupArrow:e,contentRadius:n,borderRadiusOuter:i,limitVerticalRadius:r}=t,s=e/2-Math.ceil(i*(Math.sqrt(2)-1)),a=(n>12?n+2:12)-s,l=r?o-s:a;return{dropdownArrowOffset:a,dropdownArrowOffsetVertical:l}}function jn(t,o){const{componentCls:e,sizePopupArrow:n,marginXXS:i,borderRadiusXS:r,borderRadiusOuter:s,boxShadowPopoverArrow:a}=t,{colorBg:l,showArrowCls:u,contentRadius:f=t.borderRadiusLG,limitVerticalRadius:p}=o,{dropdownArrowOffsetVertical:d,dropdownArrowOffset:c}=Hn({sizePopupArrow:n,contentRadius:f,borderRadiusOuter:s,limitVerticalRadius:p}),m=n/2+i;return{[e]:{[`${e}-arrow`]:[v(v({position:"absolute",zIndex:1,display:"block"},$o(n,r,s,l,a)),{"&:before":{background:l}})],[[`&-placement-top ${e}-arrow`,`&-placement-topLeft ${e}-arrow`,`&-placement-topRight ${e}-arrow`].join(",")]:{bottom:0,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top ${e}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft ${e}-arrow`]:{left:{_skip_check_:!0,value:c}},[`&-placement-topRight ${e}-arrow`]:{right:{_skip_check_:!0,value:c}},[[`&-placement-bottom ${e}-arrow`,`&-placement-bottomLeft ${e}-arrow`,`&-placement-bottomRight ${e}-arrow`].join(",")]:{top:0,transform:"translateY(-100%)"},[`&-placement-bottom ${e}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},[`&-placement-bottomLeft ${e}-arrow`]:{left:{_skip_check_:!0,value:c}},[`&-placement-bottomRight ${e}-arrow`]:{right:{_skip_check_:!0,value:c}},[[`&-placement-left ${e}-arrow`,`&-placement-leftTop ${e}-arrow`,`&-placement-leftBottom ${e}-arrow`].join(",")]:{right:{_skip_check_:!0,value:0},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left ${e}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop ${e}-arrow`]:{top:d},[`&-placement-leftBottom ${e}-arrow`]:{bottom:d},[[`&-placement-right ${e}-arrow`,`&-placement-rightTop ${e}-arrow`,`&-placement-rightBottom ${e}-arrow`].join(",")]:{left:{_skip_check_:!0,value:0},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right ${e}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop ${e}-arrow`]:{top:d},[`&-placement-rightBottom ${e}-arrow`]:{bottom:d},[pt(["&-placement-topLeft","&-placement-top","&-placement-topRight"],u)]:{paddingBottom:m},[pt(["&-placement-bottomLeft","&-placement-bottom","&-placement-bottomRight"],u)]:{paddingTop:m},[pt(["&-placement-leftTop","&-placement-left","&-placement-leftBottom"],u)]:{paddingRight:{_skip_check_:!0,value:m}},[pt(["&-placement-rightTop","&-placement-right","&-placement-rightBottom"],u)]:{paddingLeft:{_skip_check_:!0,value:m}}}}}const Wn=t=>{const{componentCls:o,tooltipMaxWidth:e,tooltipColor:n,tooltipBg:i,tooltipBorderRadius:r,zIndexPopup:s,controlHeight:a,boxShadowSecondary:l,paddingSM:u,paddingXS:f,tooltipRadiusOuter:p}=t;return[{[o]:v(v(v(v({},oo(t)),{position:"absolute",zIndex:s,display:"block","&":[{width:"max-content"},{width:"intrinsic"}],maxWidth:e,visibility:"visible","&-hidden":{display:"none"},"--antd-arrow-background-color":i,[`${o}-inner`]:{minWidth:a,minHeight:a,padding:`${u/2}px ${f}px`,color:n,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:i,borderRadius:r,boxShadow:l},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${o}-inner`]:{borderRadius:Math.min(r,Ae)}},[`${o}-content`]:{position:"relative"}}),po(t,(d,c)=>{let{darkColor:m}=c;return{[`&${o}-${d}`]:{[`${o}-inner`]:{backgroundColor:m},[`${o}-arrow`]:{"--antd-arrow-background-color":m}}}})),{"&-rtl":{direction:"rtl"}})},jn(he(t,{borderRadiusOuter:p}),{colorBg:"var(--antd-arrow-background-color)",showArrowCls:"",contentRadius:r,limitVerticalRadius:!0}),{[`${o}-pure`]:{position:"relative",maxWidth:"none"}}]},In=((t,o)=>to("Tooltip",n=>{if(o?.value===!1)return[];const{borderRadius:i,colorTextLightSolid:r,colorBgDefault:s,borderRadiusOuter:a}=n,l=he(n,{tooltipMaxWidth:250,tooltipColor:r,tooltipBorderRadius:i,tooltipBg:s,tooltipRadiusOuter:a>4?4:a});return[Wn(l),eo(n,"zoom-big-fast")]},n=>{let{zIndexPopupBase:i,colorBgSpotlight:r}=n;return{zIndexPopup:i+70,colorBgDefault:r}})(t)),Fn=(t,o)=>{const e={},n=v({},t);return o.forEach(i=>{t&&i in t&&(e[i]=t[i],delete n[i])}),{picked:e,omitted:n}},Ln=()=>v(v({},$n()),{title:w.any}),qn=()=>({trigger:"hover",align:{},placement:"top",mouseEnterDelay:.1,mouseLeaveDelay:.1,arrowPointAtCenter:!1,autoAdjustOverflow:!0}),zn=Y({compatConfig:{MODE:3},name:"ATooltip",inheritAttrs:!1,props:ao(Ln(),{trigger:"hover",align:{},placement:"top",mouseEnterDelay:.1,mouseLeaveDelay:.1,arrowPointAtCenter:!1,autoAdjustOverflow:!0}),slots:Object,setup(t,o){let{slots:e,emit:n,attrs:i,expose:r}=o;const{prefixCls:s,getPopupContainer:a,direction:l,rootPrefixCls:u}=no("tooltip",t),f=j(()=>{var h;return(h=t.open)!==null&&h!==void 0?h:t.visible}),p=F(Vn([t.open,t.visible])),d=F();let c;X(f,h=>{z.cancel(c),c=z(()=>{p.value=!!h})});const m=()=>{var h;const b=(h=t.title)!==null&&h!==void 0?h:e.title;return!b&&b!==0},y=h=>{const b=m();f.value===void 0&&(p.value=b?!1:h),b||(n("update:visible",h),n("visibleChange",h),n("update:open",h),n("openChange",h))};r({getPopupDomNode:()=>d.value.getPopupDomNode(),open:p,forcePopupAlign:()=>{var h;return(h=d.value)===null||h===void 0?void 0:h.forcePopupAlign()}});const C=j(()=>{const{builtinPlacements:h,arrowPointAtCenter:b,autoAdjustOverflow:B}=t;return h||kn({arrowPointAtCenter:b,autoAdjustOverflow:B})}),T=h=>h||h==="",P=h=>{const b=h.type;if(typeof b=="object"&&h.props&&((b.__ANT_BUTTON===!0||b==="button")&&T(h.props.disabled)||b.__ANT_SWITCH===!0&&(T(h.props.disabled)||T(h.props.loading))||b.__ANT_RADIO===!0&&T(h.props.disabled))){const{picked:B,omitted:R}=Fn(lo(h),["position","left","right","top","bottom","float","display","zIndex"]),H=v(v({display:"inline-block"},B),{cursor:"not-allowed",lineHeight:1,width:h.props&&h.props.block?"100%":void 0}),M=v(v({},R),{pointerEvents:"none"}),E=dt(h,{style:M},!0);return x("span",{style:H,class:`${s.value}-disabled-compatible-wrapper`},[E])}return h},$=()=>{var h,b;return(h=t.title)!==null&&h!==void 0?h:(b=e.title)===null||b===void 0?void 0:b.call(e)},U=(h,b)=>{const B=C.value,R=Object.keys(B).find(H=>{var M,E;return B[H].points[0]===((M=b.points)===null||M===void 0?void 0:M[0])&&B[H].points[1]===((E=b.points)===null||E===void 0?void 0:E[1])});if(R){const H=h.getBoundingClientRect(),M={top:"50%",left:"50%"};R.indexOf("top")>=0||R.indexOf("Bottom")>=0?M.top=`${H.height-b.offset[1]}px`:(R.indexOf("Top")>=0||R.indexOf("bottom")>=0)&&(M.top=`${-b.offset[1]}px`),R.indexOf("left")>=0||R.indexOf("Right")>=0?M.left=`${H.width-b.offset[0]}px`:(R.indexOf("right")>=0||R.indexOf("Left")>=0)&&(M.left=`${-b.offset[0]}px`),h.style.transformOrigin=`${M.left} ${M.top}`}},O=j(()=>Bn(s.value,t.color)),N=j(()=>i["data-popover-inject"]),[S,A]=In(s,j(()=>!N.value));return()=>{var h,b;const{openClassName:B,overlayClassName:R,overlayStyle:H,overlayInnerStyle:M}=t;let E=(b=de((h=e.default)===null||h===void 0?void 0:h.call(e)))!==null&&b!==void 0?b:null;E=E.length===1?E[0]:E;let q=p.value;if(f.value===void 0&&m()&&(q=!1),!E)return null;const I=P(io(E)&&!ro(E)?E:x("span",null,[E])),Bt=Q({[B||`${s.value}-open`]:!0,[I.props&&I.props.class]:I.props&&I.props.class}),yt=Q(R,{[`${s.value}-rtl`]:l.value==="rtl"},O.value.className,A.value),$e=v(v({},O.value.overlayStyle),M),Re=O.value.arrowStyle,Ne=v(v(v({},i),t),{prefixCls:s.value,getPopupContainer:a?.value,builtinPlacements:C.value,visible:q,ref:d,overlayClassName:yt,overlayStyle:v(v({},Re),H),overlayInnerStyle:$e,onVisibleChange:y,onPopupAlign:U,transitionName:so(u.value,"zoom-big-fast",t.transitionName)});return S(x(An,Ne,{default:()=>[p.value?dt(I,{class:Bt}):I],arrowContent:()=>x("span",{class:`${s.value}-arrow-content`},null),overlay:$}))}}}),Gn=uo(zn);export{xn as B,Sn as T,Gn as _,$n as a,Ln as b,Vn as f,jn as g,Ao as i,$o as r,qn as t};
|