1 |
- import{b as f,c as g,v as jt,aW as Ni,aG as Ct,d as W,r as I,L as it,h as oe,w as q,o as je,g as Ze,q as me,aX as rn,a as M,aY as Ve,aZ as Di,B as Qe,T as Fe,U as Ii,O as zt,y as ve,J as de,az as He,Y as dt,a_ as Wn,aE as Xn,a$ as ln,_ as K,N as We,b0 as Ei,j as Yn,e as ye,P as _,b1 as _i,f as Se,b2 as un,p as Ee,b3 as $i,b4 as rt,ap as Ri,ao as ki,b5 as sn,al as Je,b6 as Vi,F as De,s as Oe,R as Lt,Q as Fi,E as Ye,u as be,a4 as Ie,t as mt,i as wt,a5 as Bi,I as et,b7 as Ki,ae as Ht,a3 as ji,V as Un,b8 as zi,A as Wt,aI as Et,ad as Ke,S as cn,G as Gn,K as Li,b9 as fn,ba as Hi,X as lt}from"./index-4c57e493.js";import{_ as Wi,a as Xi,R as vn,u as Yi,r as Ui,b as Gi,S as St,s as qn,d as qi,e as Zi,f as Qi,g as Ji,c as eo,h as to}from"./useFlexGapSupport-2ff65cc2.js";var Zn=["moz","ms","webkit"];function no(){var t=0;return function(e){var n=new Date().getTime(),i=Math.max(0,16-(n-t)),o=window.setTimeout(function(){e(n+i)},i);return t=n+i,o}}function io(){if(typeof window>"u")return function(){};if(window.requestAnimationFrame)return window.requestAnimationFrame.bind(window);var t=Zn.filter(function(e){return"".concat(e,"RequestAnimationFrame")in window})[0];return t?window["".concat(t,"RequestAnimationFrame")]:no()}function oo(t){if(typeof window>"u")return null;if(window.cancelAnimationFrame)return window.cancelAnimationFrame(t);var e=Zn.filter(function(n){return"".concat(n,"CancelAnimationFrame")in window||"".concat(n,"CancelRequestAnimationFrame")in window})[0];return e?(window["".concat(e,"CancelAnimationFrame")]||window["".concat(e,"CancelRequestAnimationFrame")]).call(this,t):clearTimeout(t)}var dn=io(),ao=function(e){return oo(e.id)},ro=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,i=Date.now();function o(){Date.now()-i>=n?e.call():a.id=dn(o)}var a={id:dn(o)};return a},Xt={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},onMouseenter:{type:Function},onMouseleave:{type:Function},onMousedown:{type:Function},onTouchstart:{type:Function}},lo=f(f({},Xt),{},{mobile:{type:Object}}),uo=f(f({},Xt),{},{mask:Boolean,mobile:{type:Object},maskAnimation:String,maskTransitionName:String});function Qn(t){var e=t.prefixCls,n=t.animation,i=t.transitionName;return n?{name:"".concat(e,"-").concat(n)}:i?{name:i}:{}}function Jn(t){var e=t.prefixCls,n=t.visible,i=t.zIndex,o=t.mask,a=t.maskAnimation,r=t.maskTransitionName;if(!o)return null;var l={};return(r||a)&&(l=Qn({prefixCls:e,transitionName:r,animation:a})),g(Ct,f({appear:!0},l),{default:function(){return[jt(g("div",{style:{zIndex:i},class:"".concat(e,"-mask")},null),[[Ni("if"),n]])]}})}Jn.displayName="Mask";const so=W({compatConfig:{MODE:3},name:"MobilePopupInner",inheritAttrs:!1,props:lo,emits:["mouseenter","mouseleave","mousedown","touchstart","align"],setup:function(e,n){var i=n.expose,o=n.slots,a=I();return i({forceAlign:function(){},getElement:function(){return a.value}}),function(){var r,l=e.zIndex,u=e.visible,c=e.prefixCls,d=e.mobile,m=d===void 0?{}:d,p=m.popupClassName,s=m.popupStyle,y=m.popupMotion,v=y===void 0?{}:y,h=m.popupRender,b=f({zIndex:l},s),T=it((r=o.default)===null||r===void 0?void 0:r.call(o));T.length>1&&(T=g("div",{class:"".concat(c,"-content")},[T])),h&&(T=h(T));var w=oe(c,p);return g(Ct,f({ref:a},v),{default:function(){return[u?g("div",{class:w,style:b},[T]):null]}})}}});var pn=["measure","align",null,"motion"];const co=function(t,e){var n=I(null),i=I(),o=I(!1);function a(u){o.value||(n.value=u)}function r(){me.cancel(i.value)}function l(u){r(),i.value=me(function(){var c=n.value;switch(n.value){case"align":c="motion";break;case"motion":c="stable";break}a(c),u==null||u()})}return q(t,function(){a("measure")},{immediate:!0,flush:"post"}),je(function(){q(n,function(){switch(n.value){case"measure":e();break}n.value&&(i.value=me(Wi(rn.mark(function u(){var c,d;return rn.wrap(function(p){for(;;)switch(p.prev=p.next){case 0:c=pn.indexOf(n.value),d=pn[c+1],d&&c!==-1&&a(d);case 3:case"end":return p.stop()}},u)}))))},{immediate:!0,flush:"post"})}),Ze(function(){o.value=!0,r()}),[n,l]},fo=function(t){var e=I({width:0,height:0});function n(o){e.value={width:o.offsetWidth,height:o.offsetHeight}}var i=M(function(){var o={};if(t.value){var a=e.value,r=a.width,l=a.height;t.value.indexOf("height")!==-1&&l?o.height="".concat(l,"px"):t.value.indexOf("minHeight")!==-1&&l&&(o.minHeight="".concat(l,"px")),t.value.indexOf("width")!==-1&&r?o.width="".concat(r,"px"):t.value.indexOf("minWidth")!==-1&&r&&(o.minWidth="".concat(r,"px"))}return o});return[i,n]};function mn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,i)}return n}function gn(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?mn(Object(n),!0).forEach(function(i){vo(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):mn(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function _t(t){return _t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_t(t)}function vo(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var ze,po={Webkit:"-webkit-",Moz:"-moz-",ms:"-ms-",O:"-o-"};function gt(){if(ze!==void 0)return ze;ze="";var t=document.createElement("p").style,e="Transform";for(var n in po)n+e in t&&(ze=n);return ze}function ei(){return gt()?"".concat(gt(),"TransitionProperty"):"transitionProperty"}function Pt(){return gt()?"".concat(gt(),"Transform"):"transform"}function hn(t,e){var n=ei();n&&(t.style[n]=e,n!=="transitionProperty"&&(t.style.transitionProperty=e))}function Mt(t,e){var n=Pt();n&&(t.style[n]=e,n!=="transform"&&(t.style.transform=e))}function mo(t){return t.style.transitionProperty||t.style[ei()]}function go(t){var e=window.getComputedStyle(t,null),n=e.getPropertyValue("transform")||e.getPropertyValue(Pt());if(n&&n!=="none"){var i=n.replace(/[^0-9\-.,]/g,"").split(",");return{x:parseFloat(i[12]||i[4],0),y:parseFloat(i[13]||i[5],0)}}return{x:0,y:0}}var ho=/matrix\((.*)\)/,yo=/matrix3d\((.*)\)/;function bo(t,e){var n=window.getComputedStyle(t,null),i=n.getPropertyValue("transform")||n.getPropertyValue(Pt());if(i&&i!=="none"){var o,a=i.match(ho);if(a)a=a[1],o=a.split(",").map(function(l){return parseFloat(l,10)}),o[4]=e.x,o[5]=e.y,Mt(t,"matrix(".concat(o.join(","),")"));else{var r=i.match(yo)[1];o=r.split(",").map(function(l){return parseFloat(l,10)}),o[12]=e.x,o[13]=e.y,Mt(t,"matrix3d(".concat(o.join(","),")"))}}else Mt(t,"translateX(".concat(e.x,"px) translateY(").concat(e.y,"px) translateZ(0)"))}var Co=/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source,ot;function yn(t){var e=t.style.display;t.style.display="none",t.offsetHeight,t.style.display=e}function Be(t,e,n){var i=n;if(_t(e)==="object"){for(var o in e)e.hasOwnProperty(o)&&Be(t,o,e[o]);return}if(typeof i<"u"){typeof i=="number"&&(i="".concat(i,"px")),t.style[e]=i;return}return ot(t,e)}function wo(t){var e,n,i,o=t.ownerDocument,a=o.body,r=o&&o.documentElement;return e=t.getBoundingClientRect(),n=Math.floor(e.left),i=Math.floor(e.top),n-=r.clientLeft||a.clientLeft||0,i-=r.clientTop||a.clientTop||0,{left:n,top:i}}function ti(t,e){var n=t["page".concat(e?"Y":"X","Offset")],i="scroll".concat(e?"Top":"Left");if(typeof n!="number"){var o=t.document;n=o.documentElement[i],typeof n!="number"&&(n=o.body[i])}return n}function ni(t){return ti(t)}function ii(t){return ti(t,!0)}function tt(t){var e=wo(t),n=t.ownerDocument,i=n.defaultView||n.parentWindow;return e.left+=ni(i),e.top+=ii(i),e}function Yt(t){return t!=null&&t==t.window}function oi(t){return Yt(t)?t.document:t.nodeType===9?t:t.ownerDocument}function Po(t,e,n){var i=n,o="",a=oi(t);return i=i||a.defaultView.getComputedStyle(t,null),i&&(o=i.getPropertyValue(e)||i[e]),o}var xo=new RegExp("^(".concat(Co,")(?!px)[a-z%]+$"),"i"),Oo=/^(top|right|bottom|left)$/,Tt="currentStyle",At="runtimeStyle",Ae="left",So="px";function Mo(t,e){var n=t[Tt]&&t[Tt][e];if(xo.test(n)&&!Oo.test(e)){var i=t.style,o=i[Ae],a=t[At][Ae];t[At][Ae]=t[Tt][Ae],i[Ae]=e==="fontSize"?"1em":n||0,n=i.pixelLeft+So,i[Ae]=o,t[At][Ae]=a}return n===""?"auto":n}typeof window<"u"&&(ot=window.getComputedStyle?Po:Mo);function ut(t,e){return t==="left"?e.useCssRight?"right":t:e.useCssBottom?"bottom":t}function bn(t){if(t==="left")return"right";if(t==="right")return"left";if(t==="top")return"bottom";if(t==="bottom")return"top"}function Cn(t,e,n){Be(t,"position")==="static"&&(t.style.position="relative");var i=-999,o=-999,a=ut("left",n),r=ut("top",n),l=bn(a),u=bn(r);a!=="left"&&(i=999),r!=="top"&&(o=999);var c="",d=tt(t);("left"in e||"top"in e)&&(c=mo(t)||"",hn(t,"none")),"left"in e&&(t.style[l]="",t.style[a]="".concat(i,"px")),"top"in e&&(t.style[u]="",t.style[r]="".concat(o,"px")),yn(t);var m=tt(t),p={};for(var s in e)if(e.hasOwnProperty(s)){var y=ut(s,n),v=s==="left"?i:o,h=d[s]-m[s];y===s?p[y]=v+h:p[y]=v-h}Be(t,p),yn(t),("left"in e||"top"in e)&&hn(t,c);var b={};for(var T in e)if(e.hasOwnProperty(T)){var w=ut(T,n),P=e[T]-d[T];T===w?b[w]=p[w]+P:b[w]=p[w]-P}Be(t,b)}function To(t,e){var n=tt(t),i=go(t),o={x:i.x,y:i.y};"left"in e&&(o.x=i.x+e.left-n.left),"top"in e&&(o.y=i.y+e.top-n.top),bo(t,o)}function Ao(t,e,n){if(n.ignoreShake){var i=tt(t),o=i.left.toFixed(0),a=i.top.toFixed(0),r=e.left.toFixed(0),l=e.top.toFixed(0);if(o===r&&a===l)return}n.useCssRight||n.useCssBottom?Cn(t,e,n):n.useCssTransform&&Pt()in document.body.style?To(t,e):Cn(t,e,n)}function Ut(t,e){for(var n=0;n<t.length;n++)e(t[n])}function ai(t){return ot(t,"boxSizing")==="border-box"}var No=["margin","border","padding"],$t=-1,Do=2,Rt=1,Io=0;function Eo(t,e,n){var i={},o=t.style,a;for(a in e)e.hasOwnProperty(a)&&(i[a]=o[a],o[a]=e[a]);n.call(t);for(a in e)e.hasOwnProperty(a)&&(o[a]=i[a])}function Xe(t,e,n){var i=0,o,a,r;for(a=0;a<e.length;a++)if(o=e[a],o)for(r=0;r<n.length;r++){var l=void 0;o==="border"?l="".concat(o).concat(n[r],"Width"):l=o+n[r],i+=parseFloat(ot(t,l))||0}return i}var ge={getParent:function(e){var n=e;do n.nodeType===11&&n.host?n=n.host:n=n.parentNode;while(n&&n.nodeType!==1&&n.nodeType!==9);return n}};Ut(["Width","Height"],function(t){ge["doc".concat(t)]=function(e){var n=e.document;return Math.max(n.documentElement["scroll".concat(t)],n.body["scroll".concat(t)],ge["viewport".concat(t)](n))},ge["viewport".concat(t)]=function(e){var n="client".concat(t),i=e.document,o=i.body,a=i.documentElement,r=a[n];return i.compatMode==="CSS1Compat"&&r||o&&o[n]||r}});function wn(t,e,n){var i=n;if(Yt(t))return e==="width"?ge.viewportWidth(t):ge.viewportHeight(t);if(t.nodeType===9)return e==="width"?ge.docWidth(t):ge.docHeight(t);var o=e==="width"?["Left","Right"]:["Top","Bottom"],a=Math.floor(e==="width"?t.getBoundingClientRect().width:t.getBoundingClientRect().height),r=ai(t),l=0;(a==null||a<=0)&&(a=void 0,l=ot(t,e),(l==null||Number(l)<0)&&(l=t.style[e]||0),l=Math.floor(parseFloat(l))||0),i===void 0&&(i=r?Rt:$t);var u=a!==void 0||r,c=a||l;return i===$t?u?c-Xe(t,["border","padding"],o):l:u?i===Rt?c:c+(i===Do?-Xe(t,["border"],o):Xe(t,["margin"],o)):l+Xe(t,No.slice(i),o)}var _o={position:"absolute",visibility:"hidden",display:"block"};function Pn(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var i,o=e[0];return o.offsetWidth!==0?i=wn.apply(void 0,e):Eo(o,_o,function(){i=wn.apply(void 0,e)}),i}Ut(["width","height"],function(t){var e=t.charAt(0).toUpperCase()+t.slice(1);ge["outer".concat(e)]=function(i,o){return i&&Pn(i,t,o?Io:Rt)};var n=t==="width"?["Left","Right"]:["Top","Bottom"];ge[t]=function(i,o){var a=o;if(a!==void 0){if(i){var r=ai(i);return r&&(a+=Xe(i,["padding","border"],n)),Be(i,t,a)}return}return i&&Pn(i,t,$t)}});function ri(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}var B={getWindow:function(e){if(e&&e.document&&e.setTimeout)return e;var n=e.ownerDocument||e;return n.defaultView||n.parentWindow},getDocument:oi,offset:function(e,n,i){if(typeof n<"u")Ao(e,n,i||{});else return tt(e)},isWindow:Yt,each:Ut,css:Be,clone:function(e){var n,i={};for(n in e)e.hasOwnProperty(n)&&(i[n]=e[n]);var o=e.overflow;if(o)for(n in e)e.hasOwnProperty(n)&&(i.overflow[n]=e.overflow[n]);return i},mix:ri,getWindowScrollLeft:function(e){return ni(e)},getWindowScrollTop:function(e){return ii(e)},merge:function(){for(var e={},n=0;n<arguments.length;n++)B.mix(e,n<0||arguments.length<=n?void 0:arguments[n]);return e},viewportWidth:0,viewportHeight:0};ri(B,ge);var Nt=B.getParent;function kt(t){if(B.isWindow(t)||t.nodeType===9)return null;var e=B.getDocument(t),n=e.body,i,o=B.css(t,"position"),a=o==="fixed"||o==="absolute";if(!a)return t.nodeName.toLowerCase()==="html"?null:Nt(t);for(i=Nt(t);i&&i!==n&&i.nodeType!==9;i=Nt(i))if(o=B.css(i,"position"),o!=="static")return i;return null}var xn=B.getParent;function $o(t){if(B.isWindow(t)||t.nodeType===9)return!1;var e=B.getDocument(t),n=e.body,i=null;for(i=xn(t);i&&i!==n&&i!==e;i=xn(i)){var o=B.css(i,"position");if(o==="fixed")return!0}return!1}function Gt(t,e){for(var n={left:0,right:1/0,top:0,bottom:1/0},i=kt(t),o=B.getDocument(t),a=o.defaultView||o.parentWindow,r=o.body,l=o.documentElement;i;){if((navigator.userAgent.indexOf("MSIE")===-1||i.clientWidth!==0)&&i!==r&&i!==l&&B.css(i,"overflow")!=="visible"){var u=B.offset(i);u.left+=i.clientLeft,u.top+=i.clientTop,n.top=Math.max(n.top,u.top),n.right=Math.min(n.right,u.left+i.clientWidth),n.bottom=Math.min(n.bottom,u.top+i.clientHeight),n.left=Math.max(n.left,u.left)}else if(i===r||i===l)break;i=kt(i)}var c=null;if(!B.isWindow(t)&&t.nodeType!==9){c=t.style.position;var d=B.css(t,"position");d==="absolute"&&(t.style.position="fixed")}var m=B.getWindowScrollLeft(a),p=B.getWindowScrollTop(a),s=B.viewportWidth(a),y=B.viewportHeight(a),v=l.scrollWidth,h=l.scrollHeight,b=window.getComputedStyle(r);if(b.overflowX==="hidden"&&(v=a.innerWidth),b.overflowY==="hidden"&&(h=a.innerHeight),t.style&&(t.style.position=c),e||$o(t))n.left=Math.max(n.left,m),n.top=Math.max(n.top,p),n.right=Math.min(n.right,m+s),n.bottom=Math.min(n.bottom,p+y);else{var T=Math.max(v,m+s);n.right=Math.min(n.right,T);var w=Math.max(h,p+y);n.bottom=Math.min(n.bottom,w)}return n.top>=0&&n.left>=0&&n.bottom>n.top&&n.right>n.left?n:null}function Ro(t,e,n,i){var o=B.clone(t),a={width:e.width,height:e.height};return i.adjustX&&o.left<n.left&&(o.left=n.left),i.resizeWidth&&o.left>=n.left&&o.left+a.width>n.right&&(a.width-=o.left+a.width-n.right),i.adjustX&&o.left+a.width>n.right&&(o.left=Math.max(n.right-a.width,n.left)),i.adjustY&&o.top<n.top&&(o.top=n.top),i.resizeHeight&&o.top>=n.top&&o.top+a.height>n.bottom&&(a.height-=o.top+a.height-n.bottom),i.adjustY&&o.top+a.height>n.bottom&&(o.top=Math.max(n.bottom-a.height,n.top)),B.mix(o,a)}function qt(t){var e,n,i;if(!B.isWindow(t)&&t.nodeType!==9)e=B.offset(t),n=B.outerWidth(t),i=B.outerHeight(t);else{var o=B.getWindow(t);e={left:B.getWindowScrollLeft(o),top:B.getWindowScrollTop(o)},n=B.viewportWidth(o),i=B.viewportHeight(o)}return e.width=n,e.height=i,e}function On(t,e){var n=e.charAt(0),i=e.charAt(1),o=t.width,a=t.height,r=t.left,l=t.top;return n==="c"?l+=a/2:n==="b"&&(l+=a),i==="c"?r+=o/2:i==="r"&&(r+=o),{left:r,top:l}}function st(t,e,n,i,o){var a=On(e,n[1]),r=On(t,n[0]),l=[r.left-a.left,r.top-a.top];return{left:Math.round(t.left-l[0]+i[0]-o[0]),top:Math.round(t.top-l[1]+i[1]-o[1])}}function Sn(t,e,n){return t.left<n.left||t.left+e.width>n.right}function Mn(t,e,n){return t.top<n.top||t.top+e.height>n.bottom}function ko(t,e,n){return t.left>n.right||t.left+e.width<n.left}function Vo(t,e,n){return t.top>n.bottom||t.top+e.height<n.top}function ct(t,e,n){var i=[];return B.each(t,function(o){i.push(o.replace(e,function(a){return n[a]}))}),i}function ft(t,e){return t[e]=-t[e],t}function Tn(t,e){var n;return/%$/.test(t)?n=parseInt(t.substring(0,t.length-1),10)/100*e:n=parseInt(t,10),n||0}function An(t,e){t[0]=Tn(t[0],e.width),t[1]=Tn(t[1],e.height)}function li(t,e,n,i){var o=n.points,a=n.offset||[0,0],r=n.targetOffset||[0,0],l=n.overflow,u=n.source||t;a=[].concat(a),r=[].concat(r),l=l||{};var c={},d=0,m=!!(l&&l.alwaysByViewport),p=Gt(u,m),s=qt(u);An(a,s),An(r,e);var y=st(s,e,o,a,r),v=B.merge(s,y);if(p&&(l.adjustX||l.adjustY)&&i){if(l.adjustX&&Sn(y,s,p)){var h=ct(o,/[lr]/gi,{l:"r",r:"l"}),b=ft(a,0),T=ft(r,0),w=st(s,e,h,b,T);ko(w,s,p)||(d=1,o=h,a=b,r=T)}if(l.adjustY&&Mn(y,s,p)){var P=ct(o,/[tb]/gi,{t:"b",b:"t"}),x=ft(a,1),C=ft(r,1),O=st(s,e,P,x,C);Vo(O,s,p)||(d=1,o=P,a=x,r=C)}d&&(y=st(s,e,o,a,r),B.mix(v,y));var N=Sn(y,s,p),D=Mn(y,s,p);if(N||D){var V=o;N&&(V=ct(o,/[lr]/gi,{l:"r",r:"l"})),D&&(V=ct(o,/[tb]/gi,{t:"b",b:"t"})),o=V,a=n.offset||[0,0],r=n.targetOffset||[0,0]}c.adjustX=l.adjustX&&N,c.adjustY=l.adjustY&&D,(c.adjustX||c.adjustY)&&(v=Ro(y,s,p,c))}return v.width!==s.width&&B.css(u,"width",B.width(u)+v.width-s.width),v.height!==s.height&&B.css(u,"height",B.height(u)+v.height-s.height),B.offset(u,{left:v.left,top:v.top},{useCssRight:n.useCssRight,useCssBottom:n.useCssBottom,useCssTransform:n.useCssTransform,ignoreShake:n.ignoreShake}),{points:o,offset:a,targetOffset:r,overflow:c}}function Fo(t,e){var n=Gt(t,e),i=qt(t);return!n||i.left+i.width<=n.left||i.top+i.height<=n.top||i.left>=n.right||i.top>=n.bottom}function Zt(t,e,n){var i=n.target||e,o=qt(i),a=!Fo(i,n.overflow&&n.overflow.alwaysByViewport);return li(t,o,n,a)}Zt.__getOffsetParent=kt;Zt.__getVisibleRectForElement=Gt;function Bo(t,e,n){var i,o,a=B.getDocument(t),r=a.defaultView||a.parentWindow,l=B.getWindowScrollLeft(r),u=B.getWindowScrollTop(r),c=B.viewportWidth(r),d=B.viewportHeight(r);"pageX"in e?i=e.pageX:i=l+e.clientX,"pageY"in e?o=e.pageY:o=u+e.clientY;var m={left:i,top:o,width:0,height:0},p=i>=0&&i<=l+c&&o>=0&&o<=u+d,s=[n.points[0],"cc"];return li(t,m,gn(gn({},n),{},{points:s}),p)}const Ko=function(t){if(!t)return!1;if(t.offsetParent)return!0;if(t.getBBox){var e=t.getBBox();if(e.width||e.height)return!0}if(t.getBoundingClientRect){var n=t.getBoundingClientRect();if(n.width||n.height)return!0}return!1};function jo(t,e){return t===e?!0:!t||!e?!1:"pageX"in e&&"pageY"in e?t.pageX===e.pageX&&t.pageY===e.pageY:"clientX"in e&&"clientY"in e?t.clientX===e.clientX&&t.clientY===e.clientY:!1}function zo(t,e){t!==document.activeElement&&Ve(e,t)&&typeof t.focus=="function"&&t.focus()}function Nn(t,e){var n=null,i=null;function o(r){var l=Qe(r,1),u=l[0].target;if(document.documentElement.contains(u)){var c=u.getBoundingClientRect(),d=c.width,m=c.height,p=Math.floor(d),s=Math.floor(m);(n!==p||i!==s)&&Promise.resolve().then(function(){e({width:p,height:s})}),n=p,i=s}}var a=new Di(o);return t&&a.observe(t),function(){a.disconnect()}}const Lo=function(t,e){var n=!1,i=null;function o(){clearTimeout(i)}function a(r){if(!n||r===!0){if(t()===!1)return;n=!0,o(),i=setTimeout(function(){n=!1},e.value)}else o(),i=setTimeout(function(){n=!1,a()},e.value)}return[a,function(){n=!1,o()}]};var Ho={align:Object,target:[Object,Function],onAlign:Function,monitorBufferTime:Number,monitorWindowResize:Boolean,disabled:Boolean};function Dn(t){return typeof t!="function"?null:t()}function In(t){return de(t)!=="object"||!t?null:t}const Wo=W({compatConfig:{MODE:3},name:"Align",props:Ho,emits:["align"],setup:function(e,n){var i=n.expose,o=n.slots,a=I({}),r=I(),l=Lo(function(){var v=e.disabled,h=e.target,b=e.align,T=e.onAlign;if(!v&&h&&r.value){var w=r.value,P,x=Dn(h),C=In(h);a.value.element=x,a.value.point=C,a.value.align=b;var O=document,N=O.activeElement;return x&&Ko(x)?P=Zt(w,x,b):C&&(P=Bo(w,C,b)),zo(N,w),T&&P&&T(w,P),!0}return!1},M(function(){return e.monitorBufferTime})),u=Qe(l,2),c=u[0],d=u[1],m=I({cancel:function(){}}),p=I({cancel:function(){}}),s=function(){var h=e.target,b=Dn(h),T=In(h);r.value!==p.value.element&&(p.value.cancel(),p.value.element=r.value,p.value.cancel=Nn(r.value,c)),(a.value.element!==b||!jo(a.value.point,T)||!Xi(a.value.align,e.align))&&(c(),m.value.element!==b&&(m.value.cancel(),m.value.element=b,m.value.cancel=Nn(b,c)))};je(function(){Fe(function(){s()})}),Ii(function(){Fe(function(){s()})}),q(function(){return e.disabled},function(v){v?d():c()},{immediate:!0,flush:"post"});var y=I(null);return q(function(){return e.monitorWindowResize},function(v){v?y.value||(y.value=He(window,"resize",c)):y.value&&(y.value.remove(),y.value=null)},{flush:"post"}),zt(function(){m.value.cancel(),p.value.cancel(),y.value&&y.value.remove(),d()}),i({forceAlign:function(){return c(!0)}}),function(){var v=o==null?void 0:o.default();return v?ve(v[0],{ref:r},!0,!0):null}}}),Xo=W({compatConfig:{MODE:3},name:"PopupInner",inheritAttrs:!1,props:Xt,emits:["mouseenter","mouseleave","mousedown","touchstart","align"],setup:function(e,n){var i=n.expose,o=n.attrs,a=n.slots,r=I(),l=I(),u=I(),c=fo(dt(e,"stretch")),d=Qe(c,2),m=d[0],p=d[1],s=function(){e.stretch&&p(e.getRootDomNode())},y=I(!1),v;q(function(){return e.visible},function(E){clearTimeout(v),E?v=setTimeout(function(){y.value=e.visible}):y.value=!1},{immediate:!0});var h=co(y,s),b=Qe(h,2),T=b[0],w=b[1],P=I(),x=function(){return e.point?e.point:e.getRootDomNode},C=function(){var $;($=r.value)===null||$===void 0||$.forceAlign()},O=function($,j){var Y=e.getClassNameFromAlign(j),Q=u.value;if(u.value!==Y&&(u.value=Y),T.value==="align"){var k;Q!==Y?Promise.resolve().then(function(){C()}):w(function(){var F;(F=P.value)===null||F===void 0||F.call(P)}),(k=e.onAlign)===null||k===void 0||k.call(e,$,j)}},N=M(function(){var E=de(e.animation)==="object"?e.animation:Qn(e);return["onAfterEnter","onAfterLeave"].forEach(function($){var j=E[$];E[$]=function(Y){w(),T.value="stable",j==null||j(Y)}}),E}),D=function(){return new Promise(function($){P.value=$})};q([N,T],function(){!N.value&&T.value==="motion"&&w()},{immediate:!0}),i({forceAlign:C,getElement:function(){return l.value.$el||l.value}});var V=M(function(){var E;return!((E=e.align)!==null&&E!==void 0&&E.points&&(T.value==="align"||T.value==="stable"))});return function(){var E,$=e.zIndex,j=e.align,Y=e.prefixCls,Q=e.destroyPopupOnHide,k=e.onMouseenter,F=e.onMouseleave,z=e.onTouchstart,L=z===void 0?function(){}:z,ie=e.onMousedown,re=T.value,ee=[f(f({},m.value),{},{zIndex:$,opacity:re==="motion"||re==="stable"||!y.value?null:0,pointerEvents:!y.value&&re!=="stable"?"none":null}),o.style],le=it((E=a.default)===null||E===void 0?void 0:E.call(a,{visible:e.visible}));le.length>1&&(le=g("div",{class:"".concat(Y,"-content")},[le]));var A=oe(Y,o.class,u.value),S=y.value||!e.visible,R=S?Wn(N.value.name,N.value):{};return g(Ct,f(f({ref:l},R),{},{onBeforeEnter:D}),{default:function(){return!Q||e.visible?jt(g(Wo,{target:x(),key:"popup",ref:r,monitorWindowResize:!0,disabled:V.value,align:j,onAlign:O},{default:function(){return g("div",f(f({class:A,onMouseenter:k,onMouseleave:F,onMousedown:ln(ie,["capture"])},K({},We?"onTouchstartPassive":"onTouchstart",ln(L,["capture"]))),{},{style:ee}),[le])}}),[[Xn,y.value]]):null}})}}}),Yo=W({compatConfig:{MODE:3},name:"Popup",inheritAttrs:!1,props:uo,setup:function(e,n){var i=n.attrs,o=n.slots,a=n.expose,r=I(!1),l=I(!1),u=I();return q([function(){return e.visible},function(){return e.mobile}],function(){r.value=e.visible,e.visible&&e.mobile&&(l.value=!0)},{immediate:!0,flush:"post"}),a({forceAlign:function(){var d;(d=u.value)===null||d===void 0||d.forceAlign()},getElement:function(){var d;return(d=u.value)===null||d===void 0?void 0:d.getElement()}}),function(){var c=f(f(f({},e),i),{},{visible:r.value}),d=l.value?g(so,f(f({},c),{},{mobile:e.mobile,ref:u}),{default:o.default}):g(Xo,f(f({},c),{},{ref:u}),{default:o.default});return g("div",null,[g(Jn,c,null),d])}}});function Uo(t,e,n){return n?t[0]===e[0]:t[0]===e[0]&&t[1]===e[1]}function En(t,e,n){var i=t[e]||{};return f(f({},i),n)}function Go(t,e,n,i){for(var o=n.points,a=Object.keys(t),r=0;r<a.length;r+=1){var l=a[r];if(Uo(t[l].points,o,i))return"".concat(e,"-placement-").concat(l)}return""}const qo={methods:{setState:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,i=typeof e=="function"?e(this.$data,this.$props):e;if(this.getDerivedStateFromProps){var o=this.getDerivedStateFromProps(Ei(this),f(f({},this.$data),i));if(o===null)return;i=f(f({},i),o||{})}Yn(this.$data,i),this._.isMounted&&this.$forceUpdate(),Fe(function(){n&&n()})},__emit:function(){var e=[].slice.call(arguments,0),n=e[0];n="on".concat(n[0].toUpperCase()).concat(n.substring(1));var i=this.$props[n]||this.$attrs[n];if(e.length&&i)if(Array.isArray(i))for(var o=0,a=i.length;o<a;o++)i[o].apply(i,ye(e.slice(1)));else i.apply(void 0,ye(e.slice(1)))}}};function _n(){}function Zo(){return""}function Qo(t){return t?t.ownerDocument:window.document}var Jo=["onClick","onMousedown","onTouchstart","onMouseenter","onMouseleave","onFocus","onBlur","onContextmenu"];const Qt=W({compatConfig:{MODE:3},name:"Trigger",mixins:[qo],inheritAttrs:!1,props:{action:_.oneOfType([_.string,_.arrayOf(_.string)]).def([]),showAction:_.any.def([]),hideAction:_.any.def([]),getPopupClassNameFromAlign:_.any.def(Zo),onPopupVisibleChange:Function,afterPopupVisibleChange:_.func.def(_n),popup:_.any,popupStyle:{type:Object,default:void 0},prefixCls:_.string.def("rc-trigger-popup"),popupClassName:_.string.def(""),popupPlacement:String,builtinPlacements:_.object,popupTransitionName:String,popupAnimation:_.any,mouseEnterDelay:_.number.def(0),mouseLeaveDelay:_.number.def(.1),zIndex:Number,focusDelay:_.number.def(0),blurDelay:_.number.def(.15),getPopupContainer:Function,getDocument:_.func.def(Qo),forceRender:{type:Boolean,default:void 0},destroyPopupOnHide:{type:Boolean,default:!1},mask:{type:Boolean,default:!1},maskClosable:{type:Boolean,default:!0},popupAlign:_.object.def(function(){return{}}),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,tryPopPortal:Boolean},setup:function(e){var n=M(function(){var u=e.popupPlacement,c=e.popupAlign,d=e.builtinPlacements;return u&&d?En(d,u,c):c}),i=_i(e.tryPopPortal),o=i.setPortal,a=i.popPortal,r=I(null),l=function(c){r.value=c};return{popPortal:a,setPortal:o,vcTriggerContext:Se("vcTriggerContext",{}),popupRef:r,setPopupRef:l,triggerRef:I(null),align:n,focusTime:null,clickOutsideHandler:null,contextmenuOutsideHandler1:null,contextmenuOutsideHandler2:null,touchOutsideHandler:null,attachId:null,delayTimer:null,hasPopupMouseDown:!1,preClickTime:null,preTouchTime:null,mouseDownTimeout:null,childOriginEvents:{}}},data:function(){var e=this,n,i=this.$props,o;return this.popupVisible!==void 0?o=!!i.popupVisible:o=!!i.defaultPopupVisible,Jo.forEach(function(a){e["fire".concat(a)]=function(r){e.fireEvents(a,r)}}),(n=this.setPortal)===null||n===void 0||n.call(this,g(un,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},{default:this.getComponent})),{prevPopupVisible:o,sPopupVisible:o,point:null}},watch:{popupVisible:function(e){e!==void 0&&(this.prevPopupVisible=this.sPopupVisible,this.sPopupVisible=e)}},created:function(){Ee("vcTriggerContext",{onPopupMouseDown:this.onPopupMouseDown}),$i(this)},deactivated:function(){this.setPopupVisible(!1)},mounted:function(){var e=this;this.$nextTick(function(){e.updatedCal()})},updated:function(){var e=this;this.$nextTick(function(){e.updatedCal()})},beforeUnmount:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),me.cancel(this.attachId)},methods:{updatedCal:function(){var e=this.$props,n=this.$data;if(n.sPopupVisible){var i;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextmenuToShow())&&(i=e.getDocument(this.getRootDomNode()),this.clickOutsideHandler=He(i,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(i=i||e.getDocument(this.getRootDomNode()),this.touchOutsideHandler=He(i,"touchstart",this.onDocumentClick,We?{passive:!1}:!1)),!this.contextmenuOutsideHandler1&&this.isContextmenuToShow()&&(i=i||e.getDocument(this.getRootDomNode()),this.contextmenuOutsideHandler1=He(i,"scroll",this.onContextmenuClose)),!this.contextmenuOutsideHandler2&&this.isContextmenuToShow()&&(this.contextmenuOutsideHandler2=He(window,"blur",this.onContextmenuClose))}else this.clearOutsideHandler()},onMouseenter:function(e){var n=this.$props.mouseEnterDelay;this.fireEvents("onMouseenter",e),this.delaySetPopupVisible(!0,n,n?null:e)},onMouseMove:function(e){this.fireEvents("onMousemove",e),this.setPoint(e)},onMouseleave:function(e){this.fireEvents("onMouseleave",e),this.delaySetPopupVisible(!1,this.$props.mouseLeaveDelay)},onPopupMouseenter:function(){this.clearDelayTimer()},onPopupMouseleave:function(e){var n;e&&e.relatedTarget&&!e.relatedTarget.setTimeout&&Ve((n=this.popupRef)===null||n===void 0?void 0:n.getElement(),e.relatedTarget)||this.delaySetPopupVisible(!1,this.$props.mouseLeaveDelay)},onFocus:function(e){this.fireEvents("onFocus",e),this.clearDelayTimer(),this.isFocusToShow()&&(this.focusTime=Date.now(),this.delaySetPopupVisible(!0,this.$props.focusDelay))},onMousedown:function(e){this.fireEvents("onMousedown",e),this.preClickTime=Date.now()},onTouchstart:function(e){this.fireEvents("onTouchstart",e),this.preTouchTime=Date.now()},onBlur:function(e){Ve(e.target,e.relatedTarget||document.activeElement)||(this.fireEvents("onBlur",e),this.clearDelayTimer(),this.isBlurToHide()&&this.delaySetPopupVisible(!1,this.$props.blurDelay))},onContextmenu:function(e){e.preventDefault(),this.fireEvents("onContextmenu",e),this.setPopupVisible(!0,e)},onContextmenuClose:function(){this.isContextmenuToShow()&&this.close()},onClick:function(e){if(this.fireEvents("onClick",e),this.focusTime){var n;if(this.preClickTime&&this.preTouchTime?n=Math.min(this.preClickTime,this.preTouchTime):this.preClickTime?n=this.preClickTime:this.preTouchTime&&(n=this.preTouchTime),Math.abs(n-this.focusTime)<20)return;this.focusTime=0}this.preClickTime=0,this.preTouchTime=0,this.isClickToShow()&&(this.isClickToHide()||this.isBlurToHide())&&e&&e.preventDefault&&e.preventDefault(),e&&e.domEvent&&e.domEvent.preventDefault();var i=!this.$data.sPopupVisible;(this.isClickToHide()&&!i||i&&this.isClickToShow())&&this.setPopupVisible(!this.$data.sPopupVisible,e)},onPopupMouseDown:function(){var e=this,n=this.vcTriggerContext,i=n===void 0?{}:n;this.hasPopupMouseDown=!0,clearTimeout(this.mouseDownTimeout),this.mouseDownTimeout=setTimeout(function(){e.hasPopupMouseDown=!1},0),i.onPopupMouseDown&&i.onPopupMouseDown.apply(i,arguments)},onDocumentClick:function(e){if(!(this.$props.mask&&!this.$props.maskClosable)){var n=e.target,i=this.getRootDomNode(),o=this.getPopupDomNode();(!Ve(i,n)||this.isContextMenuOnly())&&!Ve(o,n)&&!this.hasPopupMouseDown&&this.delaySetPopupVisible(!1,.1)}},getPopupDomNode:function(){var e;return((e=this.popupRef)===null||e===void 0?void 0:e.getElement())||null},getRootDomNode:function(){var e=this.$props.getTriggerDOMNode;if(e){var n=rt(this.triggerRef);return rt(e(n))}try{var i=rt(this.triggerRef);if(i)return i}catch{}return rt(this)},handleGetPopupClassFromAlign:function(e){var n=[],i=this.$props,o=i.popupPlacement,a=i.builtinPlacements,r=i.prefixCls,l=i.alignPoint,u=i.getPopupClassNameFromAlign;return o&&a&&n.push(Go(a,r,e,l)),u&&n.push(u(e)),n.join(" ")},getPopupAlign:function(){var e=this.$props,n=e.popupPlacement,i=e.popupAlign,o=e.builtinPlacements;return n&&o?En(o,n,i):i},getComponent:function(){var e=this,n={};this.isMouseEnterToShow()&&(n.onMouseenter=this.onPopupMouseenter),this.isMouseLeaveToHide()&&(n.onMouseleave=this.onPopupMouseleave),n.onMousedown=this.onPopupMouseDown,n[We?"onTouchstartPassive":"onTouchstart"]=this.onPopupMouseDown;var i=this.handleGetPopupClassFromAlign,o=this.getRootDomNode,a=this.getContainer,r=this.$attrs,l=this.$props,u=l.prefixCls,c=l.destroyPopupOnHide,d=l.popupClassName,m=l.popupAnimation,p=l.popupTransitionName,s=l.popupStyle,y=l.mask,v=l.maskAnimation,h=l.maskTransitionName,b=l.zIndex,T=l.stretch,w=l.alignPoint,P=l.mobile,x=l.forceRender,C=this.$data,O=C.sPopupVisible,N=C.point,D=f(f({prefixCls:u,destroyPopupOnHide:c,visible:O,point:w?N:null,align:this.align,animation:m,getClassNameFromAlign:i,stretch:T,getRootDomNode:o,mask:y,zIndex:b,transitionName:p,maskAnimation:v,maskTransitionName:h,getContainer:a,class:d,style:s,onAlign:r.onPopupAlign||_n},n),{},{ref:this.setPopupRef,mobile:P,forceRender:x});return g(Yo,D,{default:this.$slots.popup||function(){return Ri(e,"popup")}})},attachParent:function(e){var n=this;me.cancel(this.attachId);var i=this.$props,o=i.getPopupContainer,a=i.getDocument,r=this.getRootDomNode(),l;o?(r||o.length===0)&&(l=o(r)):l=a(this.getRootDomNode()).body,l?l.appendChild(e):this.attachId=me(function(){n.attachParent(e)})},getContainer:function(){var e=this.$props,n=e.getDocument,i=n(this.getRootDomNode()).createElement("div");return i.style.position="absolute",i.style.top="0",i.style.left="0",i.style.width="100%",this.attachParent(i),i},setPopupVisible:function(e,n){var i=this.alignPoint,o=this.sPopupVisible,a=this.onPopupVisibleChange;this.clearDelayTimer(),o!==e&&(ki(this,"popupVisible")||this.setState({sPopupVisible:e,prevPopupVisible:o}),a&&a(e)),i&&n&&e&&this.setPoint(n)},setPoint:function(e){var n=this.$props.alignPoint;!n||!e||this.setState({point:{pageX:e.pageX,pageY:e.pageY}})},handlePortalUpdate:function(){this.prevPopupVisible!==this.sPopupVisible&&this.afterPopupVisibleChange(this.sPopupVisible)},delaySetPopupVisible:function(e,n,i){var o=this,a=n*1e3;if(this.clearDelayTimer(),a){var r=i?{pageX:i.pageX,pageY:i.pageY}:null;this.delayTimer=ro(function(){o.setPopupVisible(e,r),o.clearDelayTimer()},a)}else this.setPopupVisible(e,i)},clearDelayTimer:function(){this.delayTimer&&(ao(this.delayTimer),this.delayTimer=null)},clearOutsideHandler:function(){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:function(e){var n=function(){},i=sn(this);return this.childOriginEvents[e]&&i[e]?this["fire".concat(e)]:(n=this.childOriginEvents[e]||i[e]||n,n)},isClickToShow:function(){var e=this.$props,n=e.action,i=e.showAction;return n.indexOf("click")!==-1||i.indexOf("click")!==-1},isContextMenuOnly:function(){var e=this.$props.action;return e==="contextmenu"||e.length===1&&e[0]==="contextmenu"},isContextmenuToShow:function(){var e=this.$props,n=e.action,i=e.showAction;return n.indexOf("contextmenu")!==-1||i.indexOf("contextmenu")!==-1},isClickToHide:function(){var e=this.$props,n=e.action,i=e.hideAction;return n.indexOf("click")!==-1||i.indexOf("click")!==-1},isMouseEnterToShow:function(){var e=this.$props,n=e.action,i=e.showAction;return n.indexOf("hover")!==-1||i.indexOf("mouseenter")!==-1},isMouseLeaveToHide:function(){var e=this.$props,n=e.action,i=e.hideAction;return n.indexOf("hover")!==-1||i.indexOf("mouseleave")!==-1},isFocusToShow:function(){var e=this.$props,n=e.action,i=e.showAction;return n.indexOf("focus")!==-1||i.indexOf("focus")!==-1},isBlurToHide:function(){var e=this.$props,n=e.action,i=e.hideAction;return n.indexOf("focus")!==-1||i.indexOf("blur")!==-1},forcePopupAlign:function(){if(this.$data.sPopupVisible){var e;(e=this.popupRef)===null||e===void 0||e.forceAlign()}},fireEvents:function(e,n){this.childOriginEvents[e]&&this.childOriginEvents[e](n);var i=this.$props[e]||this.$attrs[e];i&&i(n)},close:function(){this.setPopupVisible(!1)}},render:function(){var e=this,n=this.$attrs,i=Je(Vi(this)),o=this.$props.alignPoint,a=i[0];this.childOriginEvents=sn(a);var 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[We?"onTouchstartPassive":"onTouchstart"]=this.onTouchstart):(r.onClick=this.createTwoChains("onClick"),r.onMousedown=this.createTwoChains("onMousedown"),r[We?"onTouchstartPassive":"onTouchstart"]=this.createTwoChains("onTouchstart")),this.isMouseEnterToShow()?(r.onMouseenter=this.onMouseenter,o&&(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=function(d){d&&(!d.relatedTarget||!Ve(d.target,d.relatedTarget))&&e.createTwoChains("onBlur")(d)});var l=oe(a&&a.props&&a.props.class,n.class);l&&(r.class=l);var u=ve(a,f(f({},r),{},{ref:"triggerRef"}),!0,!0);if(this.popPortal)return u;var c=g(un,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},{default:this.getComponent});return g(De,null,[c,u])}});var ui=Symbol("OverflowContextProviderKey"),Vt=W({compatConfig:{MODE:3},name:"OverflowContextProvider",inheritAttrs:!1,props:{value:{type:Object}},setup:function(e,n){var i=n.slots;return Ee(ui,M(function(){return e.value})),function(){var o;return(o=i.default)===null||o===void 0?void 0:o.call(i)}}}),ea=function(){return Se(ui,M(function(){return null}))},ta=["prefixCls","invalidate","item","renderItem","responsive","registerSize","itemKey","display","order","component"],$e=void 0;const pt=W({compatConfig:{MODE:3},name:"Item",props:{prefixCls:String,item:_.any,renderItem:Function,responsive:Boolean,itemKey:{type:[String,Number]},registerSize:Function,display:Boolean,order:Number,component:_.any,invalidate:Boolean},setup:function(e,n){var i=n.slots,o=n.expose,a=M(function(){return e.responsive&&!e.display}),r=I();o({itemNodeRef:r});function l(u){e.registerSize(e.itemKey,u)}return zt(function(){l(null)}),function(){var u,c=e.prefixCls,d=e.invalidate,m=e.item,p=e.renderItem,s=e.responsive;e.registerSize,e.itemKey,e.display;var y=e.order,v=e.component,h=v===void 0?"div":v,b=Oe(e,ta),T=(u=i.default)===null||u===void 0?void 0:u.call(i),w=p&&m!==$e?p(m):T,P;d||(P={opacity:a.value?0:1,height:a.value?0:$e,overflowY:a.value?"hidden":$e,order:s?y:$e,pointerEvents:a.value?"none":$e,position:a.value?"absolute":$e});var x={};return a.value&&(x["aria-hidden"]=!0),g(Lt,{disabled:!s,onResize:function(O){var N=O.offsetWidth;l(N)}},{default:function(){return g(h,f(f(f({class:oe(!d&&c),style:P},x),b),{},{ref:r}),{default:function(){return[w]}})}})}}});var na=["component"],ia=["className"],oa=["class"];const aa=W({compatConfig:{MODE:3},name:"RawItem",inheritAttrs:!1,props:{component:_.any,title:_.any,id:String,onMouseenter:{type:Function},onMouseleave:{type:Function},onClick:{type:Function},onKeydown:{type:Function},onFocus:{type:Function}},setup:function(e,n){var i=n.slots,o=n.attrs,a=ea();return function(){if(!a.value){var r,l=e.component,u=l===void 0?"div":l,c=Oe(e,na);return g(u,f(f({},c),o),{default:function(){return[(r=i.default)===null||r===void 0?void 0:r.call(i)]}})}var d=a.value,m=d.className,p=Oe(d,ia),s=o.class,y=Oe(o,oa);return g(Vt,{value:null},{default:function(){return[g(pt,f(f(f({class:oe(m,s)},p),y),e),i)]}})}}});var ra=["class","style"],si="responsive",ci="invalidate";function la(t){return"+ ".concat(t.length," ...")}var ua=function(){return{id:String,prefixCls:String,data:Array,itemKey:[String,Number,Function],itemWidth:{type:Number,default:10},renderItem:Function,renderRawItem:Function,maxCount:[Number,String],renderRest:Function,renderRawRest:Function,suffix:_.any,component:String,itemComponent:_.any,onVisibleChange:Function,ssr:String,onMousedown:Function}},xt=W({name:"Overflow",inheritAttrs:!1,props:ua(),emits:["visibleChange"],setup:function(e,n){var i=n.attrs,o=n.emit,a=n.slots,r=M(function(){return e.ssr==="full"}),l=I(null),u=M(function(){return l.value||0}),c=I(new Map),d=I(0),m=I(0),p=I(0),s=I(null),y=I(null),v=M(function(){return y.value===null&&r.value?Number.MAX_SAFE_INTEGER:y.value||0}),h=I(!1),b=M(function(){return"".concat(e.prefixCls,"-item")}),T=M(function(){return Math.max(d.value,m.value)}),w=M(function(){return!!(e.data.length&&e.maxCount===si)}),P=M(function(){return e.maxCount===ci}),x=M(function(){return w.value||typeof e.maxCount=="number"&&e.data.length>e.maxCount}),C=M(function(){var k=e.data;return w.value?l.value===null&&r.value?k=e.data:k=e.data.slice(0,Math.min(e.data.length,u.value/e.itemWidth)):typeof e.maxCount=="number"&&(k=e.data.slice(0,e.maxCount)),k}),O=M(function(){return w.value?e.data.slice(v.value+1):e.data.slice(C.value.length)}),N=function(F,z){var L;return typeof e.itemKey=="function"?e.itemKey(F):(L=e.itemKey&&(F==null?void 0:F[e.itemKey]))!==null&&L!==void 0?L:z},D=M(function(){return e.renderItem||function(k){return k}}),V=function(F,z){y.value=F,z||(h.value=F<e.data.length-1,o("visibleChange",F))},E=function(F,z){l.value=z.clientWidth},$=function(F,z){var L=new Map(c.value);z===null?L.delete(F):L.set(F,z),c.value=L},j=function(F,z){d.value=m.value,m.value=z},Y=function(F,z){p.value=z},Q=function(F){return c.value.get(N(C.value[F],F))};return q([u,c,m,p,function(){return e.itemKey},C],function(){if(u.value&&T.value&&C.value){var k=p.value,F=C.value.length,z=F-1;if(!F){V(0),s.value=null;return}for(var L=0;L<F;L+=1){var ie=Q(L);if(ie===void 0){V(L-1,!0);break}if(k+=ie,z===0&&k<=u.value||L===z-1&&k+Q(z)<=u.value){V(z),s.value=null;break}else if(k+T.value>u.value){V(L-1),s.value=k-ie-p.value+m.value;break}}e.suffix&&Q(0)+p.value>u.value&&(s.value=null)}}),function(){var k=h.value&&!!O.value.length,F=e.itemComponent,z=e.renderRawItem,L=e.renderRawRest,ie=e.renderRest,re=e.prefixCls,ee=re===void 0?"rc-overflow":re,le=e.suffix,A=e.component,S=A===void 0?"div":A,R=e.id,H=e.onMousedown,X=i.class,Z=i.style,J=Oe(i,ra),G={};s.value!==null&&w.value&&(G={position:"absolute",left:"".concat(s.value,"px"),top:0});var ne={prefixCls:b.value,responsive:w.value,component:F,invalidate:P.value},he=z?function(ue,ae){var we=N(ue,ae);return g(Vt,{key:we,value:f(f({},ne),{},{order:ae,item:ue,itemKey:we,registerSize:$,display:ae<=v.value})},{default:function(){return[z(ue,ae)]}})}:function(ue,ae){var we=N(ue,ae);return g(pt,f(f({},ne),{},{order:ae,key:we,item:ue,renderItem:D.value,itemKey:we,registerSize:$,display:ae<=v.value}),null)},pe=function(){return null},Ce={order:k?v.value:Number.MAX_SAFE_INTEGER,className:"".concat(b.value," ").concat(b.value,"-rest"),registerSize:j,display:k};if(L)L&&(pe=function(){return g(Vt,{value:f(f({},ne),Ce)},{default:function(){return[L(O.value)]}})});else{var _e=ie||la;pe=function(){return g(pt,f(f({},ne),Ce),{default:function(){return typeof _e=="function"?_e(O.value):_e}})}}var Ot=function(){var ae;return g(S,f({id:R,class:oe(!P.value&&ee,X),style:Z,onMousedown:H},J),{default:function(){return[C.value.map(he),x.value?pe():null,le&&g(pt,f(f({},ne),{},{order:v.value,class:"".concat(b.value,"-suffix"),registerSize:Y,display:!0,style:G}),{default:function(){return le}}),(ae=a.default)===null||ae===void 0?void 0:ae.call(a)]}})};return g(Lt,{disabled:!w.value,onResize:E},{default:Ot})}}});xt.Item=aa;xt.RESPONSIVE=si;xt.INVALIDATE=ci;const Ue=xt;function sa(){var t=I({}),e=null;return je(function(){e=vn.subscribe(function(n){t.value=n})}),zt(function(){vn.unsubscribe(e)}),t}function ca(t){var e=Fi();return Ye(function(){e.value=t()},{flush:"sync"}),e}var fa=function(){return{prefixCls:String,shape:{type:String,default:"circle"},size:{type:[Number,String,Object],default:function(){return"default"}},src:String,srcset:String,icon:_.any,alt:String,gap:Number,draggable:{type:Boolean,default:void 0},crossOrigin:String,loadError:{type:Function}}},va=W({compatConfig:{MODE:3},name:"AAvatar",inheritAttrs:!1,props:fa(),slots:["icon"],setup:function(e,n){var i=n.slots,o=n.attrs,a=I(!0),r=I(!1),l=I(1),u=I(null),c=I(null),d=be("avatar",e),m=d.prefixCls,p=Yi(),s=M(function(){return e.size==="default"?p.value:e.size}),y=sa(),v=ca(function(){if(de(e.size)==="object"){var w=Ui.find(function(x){return y.value[x]}),P=e.size[w];return P}}),h=function(P){return v.value?{width:"".concat(v.value,"px"),height:"".concat(v.value,"px"),lineHeight:"".concat(v.value,"px"),fontSize:"".concat(P?v.value/2:18,"px")}:{}},b=function(){if(!(!u.value||!c.value)){var P=u.value.offsetWidth,x=c.value.offsetWidth;if(P!==0&&x!==0){var C=e.gap,O=C===void 0?4:C;O*2<x&&(l.value=x-O*2<P?(x-O*2)/P:1)}}},T=function(){var P=e.loadError,x=P==null?void 0:P();x!==!1&&(a.value=!1)};return q(function(){return e.src},function(){Fe(function(){a.value=!0,l.value=1})}),q(function(){return e.gap},function(){Fe(function(){b()})}),je(function(){Fe(function(){b(),r.value=!0})}),function(){var w,P,x=e.shape,C=e.src,O=e.alt,N=e.srcset,D=e.draggable,V=e.crossOrigin,E=Ie(i,e,"icon"),$=m.value,j=(w={},K(w,"".concat(o.class),!!o.class),K(w,$,!0),K(w,"".concat($,"-lg"),s.value==="large"),K(w,"".concat($,"-sm"),s.value==="small"),K(w,"".concat($,"-").concat(x),x),K(w,"".concat($,"-image"),C&&a.value),K(w,"".concat($,"-icon"),E),w),Y=typeof s.value=="number"?{width:"".concat(s.value,"px"),height:"".concat(s.value,"px"),lineHeight:"".concat(s.value,"px"),fontSize:E?"".concat(s.value/2,"px"):"18px"}:{},Q=(P=i.default)===null||P===void 0?void 0:P.call(i),k;if(C&&a.value)k=g("img",{draggable:D,src:C,srcset:N,onError:T,alt:O,crossorigin:V},null);else if(E)k=E;else if(r.value||l.value!==1){var F="scale(".concat(l.value,") translateX(-50%)"),z={msTransform:F,WebkitTransform:F,transform:F},L=typeof s.value=="number"?{lineHeight:"".concat(s.value,"px")}:{};k=g(Lt,{onResize:b},{default:function(){return[g("span",{class:"".concat($,"-string"),ref:u,style:f(f({},L),z)},[Q])]}})}else k=g("span",{class:"".concat($,"-string"),ref:u,style:{opacity:0}},[Q]);return g("span",f(f({},o),{},{ref:c,class:j,style:[Y,h(!!E),o.style]}),[k])}}});const Ge=va;var ce={adjustX:1,adjustY:1},fe=[0,0],fi={left:{points:["cr","cl"],overflow:ce,offset:[-4,0],targetOffset:fe},right:{points:["cl","cr"],overflow:ce,offset:[4,0],targetOffset:fe},top:{points:["bc","tc"],overflow:ce,offset:[0,-4],targetOffset:fe},bottom:{points:["tc","bc"],overflow:ce,offset:[0,4],targetOffset:fe},topLeft:{points:["bl","tl"],overflow:ce,offset:[0,-4],targetOffset:fe},leftTop:{points:["tr","tl"],overflow:ce,offset:[-4,0],targetOffset:fe},topRight:{points:["br","tr"],overflow:ce,offset:[0,-4],targetOffset:fe},rightTop:{points:["tl","tr"],overflow:ce,offset:[4,0],targetOffset:fe},bottomRight:{points:["tr","br"],overflow:ce,offset:[0,4],targetOffset:fe},rightBottom:{points:["bl","br"],overflow:ce,offset:[4,0],targetOffset:fe},bottomLeft:{points:["tl","bl"],overflow:ce,offset:[0,4],targetOffset:fe},leftBottom:{points:["br","bl"],overflow:ce,offset:[-4,0],targetOffset:fe}},da={prefixCls:String,id:String,overlayInnerStyle:_.any};const pa=W({compatConfig:{MODE:3},name:"Content",props:da,slots:["overlay"],setup:function(e,n){var i=n.slots;return function(){var o;return g("div",{class:"".concat(e.prefixCls,"-inner"),id:e.id,role:"tooltip",style:e.overlayInnerStyle},[(o=i.overlay)===null||o===void 0?void 0:o.call(i)])}}});var ma=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","afterVisibleChange","transitionName","animation","placement","align","destroyTooltipOnHide","defaultVisible"];function $n(){}const ga=W({compatConfig:{MODE:3},name:"Tooltip",inheritAttrs:!1,props:{trigger:_.any.def(["hover"]),defaultVisible:{type:Boolean,default:void 0},visible:{type:Boolean,default:void 0},placement:_.string.def("right"),transitionName:String,animation:_.any,afterVisibleChange:_.func.def(function(){}),overlayStyle:{type:Object,default:void 0},overlayClassName:String,prefixCls:_.string.def("rc-tooltip"),mouseEnterDelay:_.number.def(.1),mouseLeaveDelay:_.number.def(.1),getPopupContainer:Function,destroyTooltipOnHide:{type:Boolean,default:!1},align:_.object.def(function(){return{}}),arrowContent:_.any.def(null),tipId:String,builtinPlacements:_.object,overlayInnerStyle:{type:Object,default:void 0},popupVisible:{type:Boolean,default:void 0},onVisibleChange:Function,onPopupAlign:Function},slots:["arrowContent","overlay"],setup:function(e,n){var i=n.slots,o=n.attrs,a=n.expose,r=I(),l=function(){var p=e.prefixCls,s=e.tipId,y=e.overlayInnerStyle;return[g("div",{class:"".concat(p,"-arrow"),key:"arrow"},[Ie(i,e,"arrowContent")]),g(pa,{key:"content",prefixCls:p,id:s,overlayInnerStyle:y},{overlay:i.overlay})]},u=function(){return r.value.getPopupDomNode()};a({getPopupDomNode:u,triggerDOM:r,forcePopupAlign:function(){var p;return(p=r.value)===null||p===void 0?void 0:p.forcePopupAlign()}});var c=I(!1),d=I(!1);return Ye(function(){var m=e.destroyTooltipOnHide;if(typeof m=="boolean")c.value=m;else if(m&&de(m)==="object"){var p=m.keepParent;c.value=p===!0,d.value=p===!1}}),function(){var m=e.overlayClassName,p=e.trigger,s=e.mouseEnterDelay,y=e.mouseLeaveDelay,v=e.overlayStyle,h=e.prefixCls,b=e.afterVisibleChange,T=e.transitionName,w=e.animation,P=e.placement,x=e.align;e.destroyTooltipOnHide;var C=e.defaultVisible,O=Oe(e,ma),N=f({},O);e.visible!==void 0&&(N.popupVisible=e.visible);var D=f(f(f({popupClassName:m,prefixCls:h,action:p,builtinPlacements:fi,popupPlacement:P,popupAlign:x,afterPopupVisibleChange:b,popupTransitionName:T,popupAnimation:w,defaultPopupVisible:C,destroyPopupOnHide:c.value,autoDestroy:d.value,mouseLeaveDelay:y,popupStyle:v,mouseEnterDelay:s},N),o),{},{onPopupVisibleChange:e.onVisibleChange||$n,onPopupAlign:e.onPopupAlign||$n,ref:r,popup:l()});return g(Qt,D,{default:i.default})}}});mt("success","processing","error","default","warning");var ha=mt("pink","red","yellow","orange","cyan","green","blue","purple","geekblue","magenta","volcano","gold","lime");const vi=function(){return{trigger:[String,Array],visible:{type:Boolean,default:void 0},defaultVisible:{type:Boolean,default:void 0},placement:String,color:String,transitionName:String,overlayStyle:{type:Object,default:void 0},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:{type:Object,default:void 0},builtinPlacements:{type:Object,default:void 0},children:Array,onVisibleChange:Function,"onUpdate:visible":Function}};var ya={adjustX:1,adjustY:1},Rn={adjustX:0,adjustY:0},ba=[0,0];function kn(t){return typeof t=="boolean"?t?ya:Rn:f(f({},Rn),t)}function di(t){var e=t.arrowWidth,n=e===void 0?4:e,i=t.horizontalArrowShift,o=i===void 0?16:i,a=t.verticalArrowShift,r=a===void 0?8:a,l=t.autoAdjustOverflow,u=t.arrowPointAtCenter,c={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:[-(o+n),-4]},leftTop:{points:["tr","cl"],offset:[-4,-(r+n)]},topRight:{points:["br","tc"],offset:[o+n,-4]},rightTop:{points:["tl","cr"],offset:[4,-(r+n)]},bottomRight:{points:["tr","bc"],offset:[o+n,4]},rightBottom:{points:["bl","cr"],offset:[4,r+n]},bottomLeft:{points:["tl","bc"],offset:[-(o+n),4]},leftBottom:{points:["br","cl"],offset:[-4,r+n]}};return Object.keys(c).forEach(function(d){c[d]=u?f(f({},c[d]),{},{overflow:kn(l),targetOffset:ba}):f(f({},fi[d]),{},{overflow:kn(l)}),c[d].ignoreShake=!0}),c}function Ca(){for(var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=0,n=t.length;e<n;e++)if(t[e]!==void 0)return t[e]}var wa=function(e,n){var i={},o=f({},e);return n.forEach(function(a){e&&a in e&&(i[a]=e[a],delete o[a])}),{picked:i,omitted:o}},Vn=new RegExp("^(".concat(ha.join("|"),")(-inverse)?$")),Pa=function(){return f(f({},vi()),{},{title:_.any})},xa=function(){return{trigger:"hover",transitionName:"zoom-big-fast",align:{},placement:"top",mouseEnterDelay:.1,mouseLeaveDelay:.1,arrowPointAtCenter:!1,autoAdjustOverflow:!0}};const Oa=W({compatConfig:{MODE:3},name:"ATooltip",inheritAttrs:!1,props:wt(Pa(),{trigger:"hover",transitionName:"zoom-big-fast",align:{},placement:"top",mouseEnterDelay:.1,mouseLeaveDelay:.1,arrowPointAtCenter:!1,autoAdjustOverflow:!0}),slots:["title"],setup:function(e,n){var i=n.slots,o=n.emit,a=n.attrs,r=n.expose,l=be("tooltip",e),u=l.prefixCls,c=l.getPopupContainer,d=I(Ca([e.visible,e.defaultVisible])),m=I();je(function(){Bi(e.defaultVisible===void 0,"Tooltip","'defaultVisible' is deprecated, please use 'v-model:visible'")});var p;q(function(){return e.visible},function(x){me.cancel(p),p=me(function(){d.value=!!x})});var s=function(){var C,O=(C=e.title)!==null&&C!==void 0?C:i.title;return!O&&O!==0},y=function(C){var O=s();e.visible===void 0&&(d.value=O?!1:C),O||(o("update:visible",C),o("visibleChange",C))},v=function(){return m.value.getPopupDomNode()};r({getPopupDomNode:v,visible:d,forcePopupAlign:function(){var C;return(C=m.value)===null||C===void 0?void 0:C.forcePopupAlign()}});var h=M(function(){var x=e.builtinPlacements,C=e.arrowPointAtCenter,O=e.autoAdjustOverflow;return x||di({arrowPointAtCenter:C,autoAdjustOverflow:O})}),b=function(C){return C||C===""},T=function(C){var O=C.type;if(de(O)==="object"&&C.props&&((O.__ANT_BUTTON===!0||O==="button")&&b(C.props.disabled)||O.__ANT_SWITCH===!0&&(b(C.props.disabled)||b(C.props.loading)))){var N=wa(Ki(C),["position","left","right","top","bottom","float","display","zIndex"]),D=N.picked,V=N.omitted,E=f(f({display:"inline-block"},D),{},{cursor:"not-allowed",lineHeight:1,width:C.props&&C.props.block?"100%":null}),$=f(f({},V),{},{pointerEvents:"none"}),j=ve(C,{style:$},!0);return g("span",{style:E,class:"".concat(u.value,"-disabled-compatible-wrapper")},[j])}return C},w=function(){var C,O;return(C=e.title)!==null&&C!==void 0?C:(O=i.title)===null||O===void 0?void 0:O.call(i)},P=function(C,O){var N=h.value,D=Object.keys(N).filter(function($){return N[$].points[0]===O.points[0]&&N[$].points[1]===O.points[1]})[0];if(D){var V=C.getBoundingClientRect(),E={top:"50%",left:"50%"};D.indexOf("top")>=0||D.indexOf("Bottom")>=0?E.top="".concat(V.height-O.offset[1],"px"):(D.indexOf("Top")>=0||D.indexOf("bottom")>=0)&&(E.top="".concat(-O.offset[1],"px")),D.indexOf("left")>=0||D.indexOf("Right")>=0?E.left="".concat(V.width-O.offset[0],"px"):(D.indexOf("right")>=0||D.indexOf("Left")>=0)&&(E.left="".concat(-O.offset[0],"px")),C.style.transformOrigin="".concat(E.left," ").concat(E.top)}};return function(){var x,C,O,N=e.openClassName,D=e.color,V=e.overlayClassName,E=(x=Je((C=i.default)===null||C===void 0?void 0:C.call(i)))!==null&&x!==void 0?x:null;E=E.length===1?E[0]:E;var $=d.value;if(e.visible===void 0&&s()&&($=!1),!E)return null;var j=T(et(E)?E:g("span",null,[E])),Y=oe((O={},K(O,N||"".concat(u.value,"-open"),!0),K(O,j.props&&j.props.class,j.props&&j.props.class),O)),Q=oe(V,K({},"".concat(u.value,"-").concat(D),D&&Vn.test(D))),k,F;D&&!Vn.test(D)&&(k={backgroundColor:D},F={backgroundColor:D});var z=f(f(f({},a),e),{},{prefixCls:u.value,getPopupContainer:c.value,builtinPlacements:h.value,visible:$,ref:m,overlayClassName:Q,overlayInnerStyle:k,onVisibleChange:y,onPopupAlign:P});return g(ga,z,{default:function(){return[d.value?ve(j,{class:Y}):j]},arrowContent:function(){return g("span",{class:"".concat(u.value,"-arrow-content"),style:F},null)},overlay:w})}}}),pi=Ht(Oa);var Sa=function(){return f(f({},vi()),{},{content:_.any,title:_.any})},Ma=W({compatConfig:{MODE:3},name:"APopover",props:wt(Sa(),f(f({},xa()),{},{trigger:"hover",transitionName:"zoom-big",placement:"top",mouseEnterDelay:.1,mouseLeaveDelay:.1})),setup:function(e,n){var i=n.expose,o=n.slots,a=I();i({getPopupDomNode:function(){var p,s;return(p=a.value)===null||p===void 0||(s=p.getPopupDomNode)===null||s===void 0?void 0:s.call(p)}});var r=be("popover",e),l=r.prefixCls,u=r.configProvider,c=M(function(){return u.getPrefixCls()}),d=function(){var p,s,y=e.title,v=y===void 0?Je((p=o.title)===null||p===void 0?void 0:p.call(o)):y,h=e.content,b=h===void 0?Je((s=o.content)===null||s===void 0?void 0:s.call(o)):h,T=!!(Array.isArray(v)?v.length:v),w=!!(Array.isArray(b)?b.length:v);if(!(!T&&!w))return g(De,null,[T&&g("div",{class:"".concat(l.value,"-title")},[v]),g("div",{class:"".concat(l.value,"-inner-content")},[b])])};return function(){return g(pi,f(f({},Un(e,["title","content"])),{},{prefixCls:l.value,ref:a,transitionName:ji(c.value,"zoom-big",e.transitionName)}),{title:d,default:o.default})}}});const Ta=Ht(Ma);var Aa=function(){return{prefixCls:String,maxCount:Number,maxStyle:{type:Object,default:void 0},maxPopoverPlacement:{type:String,default:"top"},maxPopoverTrigger:String,size:{type:[Number,String,Object],default:"default"}}},Na=W({compatConfig:{MODE:3},name:"AAvatarGroup",inheritAttrs:!1,props:Aa(),setup:function(e,n){var i=n.slots,o=n.attrs,a=be("avatar-group",e),r=a.prefixCls,l=a.direction;return Gi(e),function(){var u,c=e.maxPopoverPlacement,d=c===void 0?"top":c,m=e.maxCount,p=e.maxStyle,s=e.maxPopoverTrigger,y=s===void 0?"hover":s,v=(u={},K(u,r.value,!0),K(u,"".concat(r.value,"-rtl"),l.value==="rtl"),K(u,"".concat(o.class),!!o.class),u),h=Ie(i,e),b=it(h).map(function(x,C){return ve(x,{key:"avatar-key-".concat(C)})}),T=b.length;if(m&&m<T){var w=b.slice(0,m),P=b.slice(m,T);return w.push(g(Ta,{key:"avatar-popover-key",content:P,trigger:y,placement:d,overlayClassName:"".concat(r.value,"-popover")},{default:function(){return[g(Ge,{style:p},{default:function(){return["+".concat(T-m)]}})]}})),g("div",f(f({},o),{},{class:v,style:o.style}),[w])}return g("div",f(f({},o),{},{class:v,style:o.style}),[b])}}});const Ft=Na;Ge.Group=Ft;Ge.install=function(t){return t.component(Ge.name,Ge),t.component(Ft.name,Ft),t};var Re={adjustX:1,adjustY:1},ke=[0,0],Da={topLeft:{points:["bl","tl"],overflow:Re,offset:[0,-4],targetOffset:ke},topCenter:{points:["bc","tc"],overflow:Re,offset:[0,-4],targetOffset:ke},topRight:{points:["br","tr"],overflow:Re,offset:[0,-4],targetOffset:ke},bottomLeft:{points:["tl","bl"],overflow:Re,offset:[0,4],targetOffset:ke},bottomCenter:{points:["tc","bc"],overflow:Re,offset:[0,4],targetOffset:ke},bottomRight:{points:["tr","br"],overflow:Re,offset:[0,4],targetOffset:ke}};const Ia=Da;var Ea=["prefixCls","arrow","showAction","overlayStyle","trigger","placement","align","getPopupContainer","transitionName","animation","overlayClassName"];const _a=W({compatConfig:{MODE:3},props:{minOverlayWidthMatchTrigger:{type:Boolean,default:void 0},arrow:{type:Boolean,default:!1},prefixCls:_.string.def("rc-dropdown"),transitionName:String,overlayClassName:_.string.def(""),openClassName:String,animation:_.any,align:_.object,overlayStyle:{type:Object,default:void 0},placement:_.string.def("bottomLeft"),overlay:_.any,trigger:_.oneOfType([_.string,_.arrayOf(_.string)]).def("hover"),alignPoint:{type:Boolean,default:void 0},showAction:_.array,hideAction:_.array,getPopupContainer:Function,visible:{type:Boolean,default:void 0},defaultVisible:{type:Boolean,default:!1},mouseEnterDelay:_.number.def(.15),mouseLeaveDelay:_.number.def(.1)},emits:["visibleChange","overlayClick"],slots:["overlay"],setup:function(e,n){var i=n.slots,o=n.emit,a=n.expose,r=I(!!e.visible);q(function(){return e.visible},function(y){y!==void 0&&(r.value=y)});var l=I();a({triggerRef:l});var u=function(v){e.visible===void 0&&(r.value=!1),o("overlayClick",v)},c=function(v){e.visible===void 0&&(r.value=v),o("visibleChange",v)},d=function(){var v,h=(v=i.overlay)===null||v===void 0?void 0:v.call(i),b={prefixCls:"".concat(e.prefixCls,"-menu"),onClick:u,getPopupContainer:function(){return l.value.getPopupDomNode()}};return g(De,null,[e.arrow&&g("div",{class:"".concat(e.prefixCls,"-arrow")},null),ve(h,b,!1)])},m=M(function(){var y=e.minOverlayWidthMatchTrigger,v=y===void 0?!e.alignPoint:y;return v}),p=function(){var v,h=(v=i.default)===null||v===void 0?void 0:v.call(i);return r.value&&h?ve(h[0],{class:e.openClassName||"".concat(e.prefixCls,"-open")},!1):h},s=M(function(){return!e.hideAction&&e.trigger.indexOf("contextmenu")!==-1?["click"]:e.hideAction});return function(){var y=e.prefixCls,v=e.arrow,h=e.showAction,b=e.overlayStyle,T=e.trigger,w=e.placement,P=e.align,x=e.getPopupContainer,C=e.transitionName,O=e.animation,N=e.overlayClassName,D=Oe(e,Ea);return g(Qt,f(f({},D),{},{prefixCls:y,ref:l,popupClassName:oe(N,K({},"".concat(y,"-show-arrow"),v)),popupStyle:b,builtinPlacements:Ia,action:T,showAction:h,hideAction:s.value||[],popupPlacement:w,popupAlign:P,popupTransitionName:C,popupAnimation:O,popupVisible:r.value,stretch:m.value?"minWidth":"",onPopupVisibleChange:c,getPopupContainer:x}),{popup:d,default:p})}}});var mi=function(){return{arrow:{type:[Boolean,Object],default:void 0},trigger:{type:[Array,String]},overlay:_.any,visible:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},align:{type:Object},getPopupContainer:Function,prefixCls:String,transitionName:String,placement:String,overlayClassName:String,overlayStyle:{type:Object,default:void 0},forceRender:{type:Boolean,default:void 0},mouseEnterDelay:Number,mouseLeaveDelay:Number,openClassName:String,minOverlayWidthMatchTrigger:{type:Boolean,default:void 0},destroyPopupOnHide:{type:Boolean,default:void 0},onVisibleChange:{type:Function},"onUpdate:visible":{type:Function}}},Dt=zi(),$a=function(){return f(f({},mi()),{},{type:Dt.type,size:String,htmlType:Dt.htmlType,href:String,disabled:{type:Boolean,default:void 0},prefixCls:String,icon:_.any,title:String,loading:Dt.loading,onClick:{type:Function}})},Ra={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"};const ka=Ra;function Fn(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?Object(arguments[e]):{},i=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),i.forEach(function(o){Va(t,o,n[o])})}return t}function Va(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Jt=function(e,n){var i=Fn({},e,n.attrs);return g(Wt,Fn({},i,{icon:ka}),null)};Jt.displayName="EllipsisOutlined";Jt.inheritAttrs=!1;const gi=Jt;var Fa=["type","disabled","loading","htmlType","class","overlay","trigger","align","visible","onVisibleChange","placement","href","title","icon","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","onClick","onUpdate:visible"],Ba=Et.Group;const ht=W({compatConfig:{MODE:3},name:"ADropdownButton",inheritAttrs:!1,__ANT_BUTTON:!0,props:wt($a(),{trigger:"hover",placement:"bottomRight",type:"default"}),slots:["icon","leftButton","rightButton","overlay"],setup:function(e,n){var i=n.slots,o=n.attrs,a=n.emit,r=function(p){a("update:visible",p),a("visibleChange",p)},l=be("dropdown-button",e),u=l.prefixCls,c=l.direction,d=l.getPopupContainer;return function(){var m,p,s=f(f({},e),o),y=s.type,v=y===void 0?"default":y,h=s.disabled,b=s.loading,T=s.htmlType,w=s.class,P=w===void 0?"":w,x=s.overlay,C=x===void 0?(m=i.overlay)===null||m===void 0?void 0:m.call(i):x,O=s.trigger,N=s.align,D=s.visible;s.onVisibleChange;var V=s.placement,E=V===void 0?c.value==="rtl"?"bottomLeft":"bottomRight":V,$=s.href,j=s.title,Y=s.icon,Q=Y===void 0?((p=i.icon)===null||p===void 0?void 0:p.call(i))||g(gi,null,null):Y,k=s.mouseEnterDelay,F=s.mouseLeaveDelay,z=s.overlayClassName,L=s.overlayStyle,ie=s.destroyPopupOnHide,re=s.onClick;s["onUpdate:visible"];var ee=Oe(s,Fa),le={align:N,disabled:h,trigger:h?[]:O,placement:E,getPopupContainer:d.value,onVisibleChange:r,mouseEnterDelay:k,mouseLeaveDelay:F,visible:D,overlayClassName:z,overlayStyle:L,destroyPopupOnHide:ie},A=g(Et,{type:v,disabled:h,loading:b,onClick:re,htmlType:T,href:$,title:j},{default:i.default}),S=g(Et,{type:v,icon:Q},null);return g(Ba,f(f({},ee),{},{class:oe(u.value,P)}),{default:function(){return[i.leftButton?i.leftButton({button:A}):A,g(qe,le,{default:function(){return[i.rightButton?i.rightButton({button:S}):S]},overlay:function(){return C}})]}})}}});var Ka={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"};const ja=Ka;function Bn(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?Object(arguments[e]):{},i=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),i.forEach(function(o){za(t,o,n[o])})}return t}function za(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var en=function(e,n){var i=Bn({},e,n.attrs);return g(Wt,Bn({},i,{icon:ja}),null)};en.displayName="RightOutlined";en.inheritAttrs=!1;const La=en;var hi=W({compatConfig:{MODE:3},name:"ADropdown",inheritAttrs:!1,props:wt(mi(),{mouseEnterDelay:.15,mouseLeaveDelay:.1,placement:"bottomLeft",trigger:"hover"}),slots:["overlay"],setup:function(e,n){var i=n.slots,o=n.attrs,a=n.emit,r=be("dropdown",e),l=r.prefixCls,u=r.rootPrefixCls,c=r.direction,d=r.getPopupContainer,m=M(function(){var v=e.placement,h=v===void 0?"":v,b=e.transitionName;return b!==void 0?b:h.indexOf("top")>=0?"".concat(u.value,"-slide-down"):"".concat(u.value,"-slide-up")}),p=function(){var h,b,T,w=e.overlay||((h=i.overlay)===null||h===void 0?void 0:h.call(i)),P=Array.isArray(w)?w[0]:w;if(!P)return null;var x=P.props||{};Ke(!x.mode||x.mode==="vertical","Dropdown",'mode="'.concat(x.mode,`" is not supported for Dropdown's Menu.`));var C=x.selectable,O=C===void 0?!1:C,N=x.expandIcon,D=N===void 0?(b=P.children)===null||b===void 0||(T=b.expandIcon)===null||T===void 0?void 0:T.call(b):N,V=typeof D<"u"&&et(D)?D:g("span",{class:"".concat(l.value,"-menu-submenu-arrow")},[g(La,{class:"".concat(l.value,"-menu-submenu-arrow-icon")},null)]),E=et(P)?ve(P,{mode:"vertical",selectable:O,expandIcon:function(){return V}}):P;return E},s=M(function(){var v=e.placement;if(!v)return c.value==="rtl"?"bottomRight":"bottomLeft";if(v.includes("Center")){var h=v.slice(0,v.indexOf("Center"));return Ke(!v.includes("Center"),"Dropdown","You are using '".concat(v,"' placement in Dropdown, which is deprecated. Try to use '").concat(h,"' instead.")),h}return v}),y=function(h){a("update:visible",h),a("visibleChange",h)};return function(){var v,h,b=e.arrow,T=e.trigger,w=e.disabled,P=e.overlayClassName,x=(v=i.default)===null||v===void 0?void 0:v.call(i)[0],C=ve(x,Yn({class:oe(x==null||(h=x.props)===null||h===void 0?void 0:h.class,K({},"".concat(l.value,"-rtl"),c.value==="rtl"),"".concat(l.value,"-trigger"))},w?{disabled:w}:{})),O=oe(P,K({},"".concat(l.value,"-rtl"),c.value==="rtl")),N=w?[]:T,D;N&&N.indexOf("contextmenu")!==-1&&(D=!0);var V=di({arrowPointAtCenter:de(b)==="object"&&b.pointAtCenter,autoAdjustOverflow:!0}),E=Un(f(f(f({},e),o),{},{builtinPlacements:V,overlayClassName:O,arrow:b,alignPoint:D,prefixCls:l.value,getPopupContainer:d.value,transitionName:m.value,trigger:N,onVisibleChange:y,placement:s.value}),["overlay","onUpdate:visible"]);return g(_a,E,{default:function(){return[C]},overlay:p})}}});hi.Button=ht;const qe=hi;function Ha(t,e,n,i){var o=n?n.call(i,t,e):void 0;if(o!==void 0)return!!o;if(t===e)return!0;if(de(t)!=="object"||!t||de(e)!=="object"||!e)return!1;var a=Object.keys(t),r=Object.keys(e);if(a.length!==r.length)return!1;for(var l=Object.prototype.hasOwnProperty.bind(e),u=0;u<a.length;u++){var c=a[u];if(!l(c))return!1;var d=t[c],m=e[c];if(o=n?n.call(i,d,m,c):void 0,o===!1||o===void 0&&d!==m)return!1}return!0}function Le(t,e,n,i){return Ha(cn(t),cn(e),n,i)}var yi=Symbol("menuContextKey"),bi=function(e){Ee(yi,e)},Me=function(){return Se(yi)},Ci=Symbol("ForceRenderKey"),Wa=function(e){Ee(Ci,e)},wi=function(){return Se(Ci,!1)},Pi=Symbol("menuFirstLevelContextKey"),xi=function(e){Ee(Pi,e)},Xa=function(){return Se(Pi,!0)},yt=W({compatConfig:{MODE:3},name:"MenuContextProvider",inheritAttrs:!1,props:{mode:{type:String,default:void 0},overflowDisabled:{type:Boolean,default:void 0},isRootMenu:{type:Boolean,default:void 0}},setup:function(e,n){var i=n.slots,o=Me(),a=f({},o);return e.mode!==void 0&&(a.mode=dt(e,"mode")),e.isRootMenu!==void 0&&(a.isRootMenu=dt(e,"isRootMenu")),e.overflowDisabled!==void 0&&(a.overflowDisabled=dt(e,"overflowDisabled")),bi(a),function(){var r;return(r=i.default)===null||r===void 0?void 0:r.call(i)}}});const Ya=bi;function Ua(){}var Ga=1/0,qa=St&&1/qn(new St([,-0]))[1]==Ga?function(t){return new St(t)}:Ua;const Za=qa;var Qa=200;function Ja(t,e,n){var i=-1,o=Zi,a=t.length,r=!0,l=[],u=l;if(n)r=!1,o=Qi;else if(a>=Qa){var c=e?null:Za(t);if(c)return qn(c);r=!1,o=Ji,u=new qi}else u=e?[]:l;e:for(;++i<a;){var d=t[i],m=e?e(d):d;if(d=n||d!==0?d:0,r&&m===m){for(var p=u.length;p--;)if(u[p]===m)continue e;e&&u.push(m),l.push(d)}else o(u,m,n)||(u!==l&&u.push(m),l.push(d))}return l}function It(t){return t&&t.length?Ja(t):[]}var er=Symbol("siderCollapsed"),xr=Symbol("siderHookProvider"),vt="$$__vc-menu-more__key",Oi=Symbol("KeyPathContext"),tn=function(){return Se(Oi,{parentEventKeys:M(function(){return[]}),parentKeys:M(function(){return[]}),parentInfo:{}})},tr=function(e,n,i){var o=tn(),a=o.parentEventKeys,r=o.parentKeys,l=M(function(){return[].concat(ye(a.value),[e])}),u=M(function(){return[].concat(ye(r.value),[n])});return Ee(Oi,{parentEventKeys:l,parentKeys:u,parentInfo:i}),u},Si=Symbol("measure"),Kn=W({compatConfig:{MODE:3},setup:function(e,n){var i=n.slots;return Ee(Si,!0),function(){var o;return(o=i.default)===null||o===void 0?void 0:o.call(i)}}}),nn=function(){return Se(Si,!1)};const nr=tr;function Mi(t){var e=Me(),n=e.mode,i=e.rtl,o=e.inlineIndent;return M(function(){return n.value!=="inline"?null:i.value?{paddingRight:"".concat(t.value*o.value,"px")}:{paddingLeft:"".concat(t.value*o.value,"px")}})}var ir=0,or=function(){return{id:String,role:String,disabled:Boolean,danger:Boolean,title:{type:[String,Boolean],default:void 0},icon:_.any,onMouseenter:Function,onMouseleave:Function,onClick:Function,onKeydown:Function,onFocus:Function}};const bt=W({compatConfig:{MODE:3},name:"AMenuItem",inheritAttrs:!1,props:or(),slots:["icon","title"],setup:function(e,n){var i=n.slots,o=n.emit,a=n.attrs,r=Gn(),l=nn(),u=de(r.vnode.key)==="symbol"?String(r.vnode.key):r.vnode.key;Ke(de(r.vnode.key)!=="symbol","MenuItem",'MenuItem `:key="'.concat(String(u),'"` not support Symbol type'));var c="menu_item_".concat(++ir,"_$$_").concat(u),d=tn(),m=d.parentEventKeys,p=d.parentKeys,s=Me(),y=s.prefixCls,v=s.activeKeys,h=s.disabled,b=s.changeActiveKeys,T=s.rtl,w=s.inlineCollapsed,P=s.siderCollapsed,x=s.onItemClick,C=s.selectedKeys,O=s.registerMenuInfo,N=s.unRegisterMenuInfo,D=Xa(),V=I(!1),E=M(function(){return[].concat(ye(p.value),[u])}),$={eventKey:c,key:u,parentEventKeys:m,parentKeys:p,isLeaf:!0};O(c,$),Ze(function(){N(c)}),q(v,function(){V.value=!!v.value.find(function(A){return A===u})},{immediate:!0});var j=M(function(){return h.value||e.disabled}),Y=M(function(){return C.value.includes(u)}),Q=M(function(){var A,S="".concat(y.value,"-item");return A={},K(A,"".concat(S),!0),K(A,"".concat(S,"-danger"),e.danger),K(A,"".concat(S,"-active"),V.value),K(A,"".concat(S,"-selected"),Y.value),K(A,"".concat(S,"-disabled"),j.value),A}),k=function(S){return{key:u,eventKey:c,keyPath:E.value,eventKeyPath:[].concat(ye(m.value),[c]),domEvent:S,item:f(f({},e),a)}},F=function(S){if(!j.value){var R=k(S);o("click",S),x(R)}},z=function(S){j.value||(b(E.value),o("mouseenter",S))},L=function(S){j.value||(b([]),o("mouseleave",S))},ie=function(S){if(o("keydown",S),S.which===Li.ENTER){var R=k(S);o("click",S),x(R)}},re=function(S){b(E.value),o("focus",S)},ee=function(S,R){var H=g("span",{class:"".concat(y.value,"-title-content")},[R]);return(!S||et(R)&&R.type==="span")&&R&&w.value&&D&&typeof R=="string"?g("div",{class:"".concat(y.value,"-inline-collapsed-noicon")},[R.charAt(0)]):H},le=Mi(M(function(){return E.value.length}));return function(){var A,S,R,H;if(l)return null;var X=(A=e.title)!==null&&A!==void 0?A:(S=i.title)===null||S===void 0?void 0:S.call(i),Z=it((R=i.default)===null||R===void 0?void 0:R.call(i)),J=Z.length,G=X;typeof X>"u"?G=D&&J?Z:"":X===!1&&(G="");var ne={title:G};!P.value&&!w.value&&(ne.title=null,ne.visible=!1);var he={};e.role==="option"&&(he["aria-selected"]=Y.value);var pe=Ie(i,e,"icon");return g(pi,f(f({},ne),{},{placement:T.value?"left":"right",overlayClassName:"".concat(y.value,"-inline-collapsed-tooltip")}),{default:function(){return[g(Ue.Item,f(f(f({component:"li"},a),{},{id:e.id,style:f(f({},a.style||{}),le.value),class:[Q.value,(H={},K(H,"".concat(a.class),!!a.class),K(H,"".concat(y.value,"-item-only-child"),(pe?J+1:J)===1),H)],role:e.role||"menuitem",tabindex:e.disabled?null:-1,"data-menu-id":u,"aria-disabled":e.disabled},he),{},{onMouseenter:z,onMouseleave:L,onClick:F,onKeydown:ie,onFocus:re,title:typeof X=="string"?X:void 0}),{default:function(){return[ve(pe,{class:"".concat(y.value,"-item-icon")},!1),ee(pe,Z)]}})]}})}}});var xe={adjustX:1,adjustY:1},ar={topLeft:{points:["bl","tl"],overflow:xe,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:xe,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:xe,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:xe,offset:[4,0]}},rr={topLeft:{points:["bl","tl"],overflow:xe,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:xe,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:xe,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:xe,offset:[4,0]}},lr={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};const jn=W({compatConfig:{MODE:3},name:"PopupTrigger",inheritAttrs:!1,props:{prefixCls:String,mode:String,visible:Boolean,popupClassName:String,popupOffset:Array,disabled:Boolean,onVisibleChange:Function},slots:["popup"],emits:["visibleChange"],setup:function(e,n){var i=n.slots,o=n.emit,a=I(!1),r=Me(),l=r.getPopupContainer,u=r.rtl,c=r.subMenuOpenDelay,d=r.subMenuCloseDelay,m=r.builtinPlacements,p=r.triggerSubMenuAction,s=r.isRootMenu,y=r.forceSubMenuRender,v=r.motion,h=r.defaultMotions,b=wi(),T=M(function(){return u.value?f(f({},rr),m.value):f(f({},ar),m.value)}),w=M(function(){return lr[e.mode]}),P=I();q(function(){return e.visible},function(O){me.cancel(P.value),P.value=me(function(){a.value=O})},{immediate:!0}),Ze(function(){me.cancel(P.value)});var x=function(N){o("visibleChange",N)},C=M(function(){var O,N,D=v.value||((O=h.value)===null||O===void 0?void 0:O[e.mode])||((N=h.value)===null||N===void 0?void 0:N.other),V=typeof D=="function"?D():D;return V?Wn(V.name,{css:!0}):void 0});return function(){var O=e.prefixCls,N=e.popupClassName,D=e.mode,V=e.popupOffset,E=e.disabled;return g(Qt,{prefixCls:O,popupClassName:oe("".concat(O,"-popup"),K({},"".concat(O,"-rtl"),u.value),N),stretch:D==="horizontal"?"minWidth":null,getPopupContainer:s.value?l.value:function($){return $.parentNode},builtinPlacements:T.value,popupPlacement:w.value,popupVisible:a.value,popupAlign:V&&{offset:V},action:E?[]:[p.value],mouseEnterDelay:c.value,mouseLeaveDelay:d.value,onPopupVisibleChange:x,forceRender:b||y.value,popupAnimation:C.value},{popup:i.popup,default:i.default})}}});var Ti=function(e,n){var i,o=n.slots,a=n.attrs,r=Me(),l=r.prefixCls,u=r.mode;return g("ul",f(f({},a),{},{class:oe(l.value,"".concat(l.value,"-sub"),"".concat(l.value,"-").concat(u.value==="inline"?"inline":"vertical")),"data-menu-list":!0}),[(i=o.default)===null||i===void 0?void 0:i.call(o)])};Ti.displayName="SubMenuList";const Ai=Ti,ur=W({compatConfig:{MODE:3},name:"InlineSubMenuList",inheritAttrs:!1,props:{id:String,open:Boolean,keyPath:Array},setup:function(e,n){var i=n.slots,o=M(function(){return"inline"}),a=Me(),r=a.motion,l=a.mode,u=a.defaultMotions,c=M(function(){return l.value===o.value}),d=I(!c.value),m=M(function(){return c.value?e.open:!1});q(l,function(){c.value&&(d.value=!1)},{flush:"post"});var p=M(function(){var s,y,v=r.value||((s=u.value)===null||s===void 0?void 0:s[o.value])||((y=u.value)===null||y===void 0?void 0:y.other),h=typeof v=="function"?v():v;return f(f({},h),{},{appear:e.keyPath.length<=1})});return function(){var s;return d.value?null:g(yt,{mode:o.value},{default:function(){return[g(Ct,p.value,{default:function(){return[jt(g(Ai,{id:e.id},{default:function(){return[(s=i.default)===null||s===void 0?void 0:s.call(i)]}}),[[Xn,m.value]])]}})]}})}}});var zn=0,sr=function(){return{icon:_.any,title:_.any,disabled:Boolean,level:Number,popupClassName:String,popupOffset:Array,internalPopupClose:Boolean,eventKey:String,expandIcon:Function,onMouseenter:Function,onMouseleave:Function,onTitleClick:Function}};const nt=W({compatConfig:{MODE:3},name:"ASubMenu",inheritAttrs:!1,props:sr(),slots:["icon","title","expandIcon"],setup:function(e,n){var i,o,a=n.slots,r=n.attrs,l=n.emit;xi(!1);var u=nn(),c=Gn(),d=de(c.vnode.key)==="symbol"?String(c.vnode.key):c.vnode.key;Ke(de(c.vnode.key)!=="symbol","SubMenu",'SubMenu `:key="'.concat(String(d),'"` not support Symbol type'));var m=fn(d)?d:"sub_menu_".concat(++zn,"_$$_not_set_key"),p=(i=e.eventKey)!==null&&i!==void 0?i:fn(d)?"sub_menu_".concat(++zn,"_$$_").concat(d):m,s=tn(),y=s.parentEventKeys,v=s.parentInfo,h=s.parentKeys,b=M(function(){return[].concat(ye(h.value),[m])}),T=I([]),w={eventKey:p,key:m,parentEventKeys:y,childrenEventKeys:T,parentKeys:h};(o=v.childrenEventKeys)===null||o===void 0||o.value.push(p),Ze(function(){if(v.childrenEventKeys){var te;v.childrenEventKeys.value=(te=v.childrenEventKeys)===null||te===void 0?void 0:te.value.filter(function(U){return U!=p})}}),nr(p,m,w);var P=Me(),x=P.prefixCls,C=P.activeKeys,O=P.disabled,N=P.changeActiveKeys,D=P.mode,V=P.inlineCollapsed,E=P.antdMenuTheme,$=P.openKeys,j=P.overflowDisabled,Y=P.onOpenChange,Q=P.registerMenuInfo,k=P.unRegisterMenuInfo,F=P.selectedSubMenuKeys,z=P.expandIcon,L=d!=null,ie=!u&&(wi()||!L);Wa(ie),(u&&L||!u&&!L||ie)&&(Q(p,w),Ze(function(){k(p)}));var re=M(function(){return"".concat(x.value,"-submenu")}),ee=M(function(){return O.value||e.disabled}),le=I(),A=I(),S=M(function(){return $.value.includes(m)}),R=M(function(){return!j.value&&S.value}),H=M(function(){return F.value.includes(m)}),X=I(!1);q(C,function(){X.value=!!C.value.find(function(te){return te===m})},{immediate:!0});var Z=function(U){ee.value||(l("titleClick",U,m),D.value==="inline"&&Y(m,!S.value))},J=function(U){ee.value||(N(b.value),l("mouseenter",U))},G=function(U){ee.value||(N([]),l("mouseleave",U))},ne=Mi(M(function(){return b.value.length})),he=function(U){D.value!=="inline"&&Y(m,U)},pe=function(){N(b.value)},Ce=p&&"".concat(p,"-popup"),_e=M(function(){return oe(x.value,"".concat(x.value,"-").concat(E.value),e.popupClassName)}),Ot=function(U,se){if(!se)return V.value&&!h.value.length&&U&&typeof U=="string"?g("div",{class:"".concat(x.value,"-inline-collapsed-noicon")},[U.charAt(0)]):g("span",{class:"".concat(x.value,"-title-content")},[U]);var Pe=et(U)&&U.type==="span";return g(De,null,[ve(se,{class:"".concat(x.value,"-item-icon")},!1),Pe?U:g("span",{class:"".concat(x.value,"-title-content")},[U])])},ue=M(function(){return D.value!=="inline"&&b.value.length>1?"vertical":D.value}),ae=M(function(){return D.value==="horizontal"?"vertical":D.value}),we=M(function(){return ue.value==="horizontal"?"vertical":ue.value}),at=function(){var U=re.value,se=Ie(a,e,"icon"),Pe=e.expandIcon||a.expandIcon||z.value,Te=Ot(Ie(a,e,"title"),se);return g("div",{style:ne.value,class:"".concat(U,"-title"),tabindex:ee.value?null:-1,ref:le,title:typeof Te=="string"?Te:null,"data-menu-id":m,"aria-expanded":R.value,"aria-haspopup":!0,"aria-controls":Ce,"aria-disabled":ee.value,onClick:Z,onFocus:pe},[Te,D.value!=="horizontal"&&Pe?Pe(f(f({},e),{},{isOpen:R.value})):g("i",{class:"".concat(U,"-arrow")},null)])};return function(){var te;if(u){var U;return L?(U=a.default)===null||U===void 0?void 0:U.call(a):null}var se=re.value,Pe=function(){return null};return!j.value&&D.value!=="inline"?Pe=function(){return g(jn,{mode:ue.value,prefixCls:se,visible:!e.internalPopupClose&&R.value,popupClassName:_e.value,popupOffset:e.popupOffset,disabled:ee.value,onVisibleChange:he},{default:function(){return[at()]},popup:function(){return g(yt,{mode:we.value,isRootMenu:!1},{default:function(){return[g(Ai,{id:Ce,ref:A},{default:a.default})]}})}})}:Pe=function(){return g(jn,null,{default:at})},g(yt,{mode:ae.value},{default:function(){return[g(Ue.Item,f(f({component:"li"},r),{},{role:"none",class:oe(se,"".concat(se,"-").concat(D.value),r.class,(te={},K(te,"".concat(se,"-open"),R.value),K(te,"".concat(se,"-active"),X.value),K(te,"".concat(se,"-selected"),H.value),K(te,"".concat(se,"-disabled"),ee.value),te)),onMouseenter:J,onMouseleave:G,"data-submenu-id":m}),{default:function(){return g(De,null,[Pe(),!j.value&&g(ur,{id:Ce,open:R.value,keyPath:b.value},{default:a.default})])}})]}})}}});var cr=function(){return{id:String,prefixCls:String,disabled:Boolean,inlineCollapsed:Boolean,disabledOverflow:Boolean,forceSubMenuRender:Boolean,openKeys:Array,selectedKeys:Array,activeKey:String,selectable:{type:Boolean,default:!0},multiple:{type:Boolean,default:!1},motion:Object,theme:{type:String,default:"light"},mode:{type:String,default:"vertical"},inlineIndent:{type:Number,default:24},subMenuOpenDelay:{type:Number,default:.1},subMenuCloseDelay:{type:Number,default:.1},builtinPlacements:{type:Object},triggerSubMenuAction:{type:String,default:"hover"},getPopupContainer:Function,expandIcon:Function,onOpenChange:Function,onSelect:Function,onDeselect:Function,onClick:[Function,Array],onFocus:Function,onBlur:Function,onMousedown:Function,"onUpdate:openKeys":Function,"onUpdate:selectedKeys":Function,"onUpdate:activeKey":Function}},Ln=[];const Ne=W({compatConfig:{MODE:3},name:"AMenu",inheritAttrs:!1,props:cr(),slots:["expandIcon","overflowedIndicator"],setup:function(e,n){var i=n.slots,o=n.emit,a=n.attrs,r=be("menu",e),l=r.prefixCls,u=r.direction,c=r.getPrefixCls,d=I({}),m=Se(er,I(void 0)),p=M(function(){return m.value!==void 0?m.value:e.inlineCollapsed}),s=I(!1);je(function(){s.value=!0}),Ye(function(){Ke(!(e.inlineCollapsed===!0&&e.mode!=="inline"),"Menu","`inlineCollapsed` should only be used when `mode` is inline."),Ke(!(m.value!==void 0&&e.inlineCollapsed===!0),"Menu","`inlineCollapsed` not control Menu under Sider. Should set `collapsed` on Sider instead.")});var y=I([]),v=I([]),h=I({});q(d,function(){for(var A={},S=0,R=Object.values(d.value);S<R.length;S++){var H=R[S];A[H.key]=H}h.value=A},{flush:"post"}),Ye(function(){if(e.activeKey!==void 0){var A=[],S=e.activeKey?h.value[e.activeKey]:void 0;S&&e.activeKey!==void 0?A=It([].concat(lt(S.parentKeys),e.activeKey)):A=[],Le(y.value,A)||(y.value=A)}}),q(function(){return e.selectedKeys},function(A){A&&(v.value=A.slice())},{immediate:!0,deep:!0});var b=I([]);q([h,v],function(){var A=[];v.value.forEach(function(S){var R=h.value[S];R&&(A=A.concat(lt(R.parentKeys)))}),A=It(A),Le(b.value,A)||(b.value=A)},{immediate:!0});var T=function(S){if(e.selectable){var R=S.key,H=v.value.includes(R),X;e.multiple?H?X=v.value.filter(function(J){return J!==R}):X=[].concat(ye(v.value),[R]):X=[R];var Z=f(f({},S),{},{selectedKeys:X});Le(X,v.value)||(e.selectedKeys===void 0&&(v.value=X),o("update:selectedKeys",X),H&&e.multiple?o("deselect",Z):o("select",Z)),N.value!=="inline"&&!e.multiple&&w.value.length&&E(Ln)}},w=I([]);q(function(){return e.openKeys},function(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:w.value;Le(w.value,A)||(w.value=A.slice())},{immediate:!0,deep:!0});var P,x=function(S){clearTimeout(P),P=setTimeout(function(){e.activeKey===void 0&&(y.value=S),o("update:activeKey",S[S.length-1])})},C=M(function(){return!!e.disabled}),O=M(function(){return u.value==="rtl"}),N=I("vertical"),D=I(!1);Ye(function(){(e.mode==="inline"||e.mode==="vertical")&&p.value?(N.value="vertical",D.value=p.value):(N.value=e.mode,D.value=!1)});var V=M(function(){return N.value==="inline"}),E=function(S){w.value=S,o("update:openKeys",S),o("openChange",S)},$=I(w.value),j=I(!1);q(w,function(){V.value&&($.value=w.value)},{immediate:!0}),q(V,function(){if(!j.value){j.value=!0;return}V.value?w.value=$.value:E(Ln)},{immediate:!0});var Y=M(function(){var A;return A={},K(A,"".concat(l.value),!0),K(A,"".concat(l.value,"-root"),!0),K(A,"".concat(l.value,"-").concat(N.value),!0),K(A,"".concat(l.value,"-inline-collapsed"),D.value),K(A,"".concat(l.value,"-rtl"),O.value),K(A,"".concat(l.value,"-").concat(e.theme),!0),A}),Q=M(function(){return c()}),k=M(function(){return{horizontal:{name:"".concat(Q.value,"-slide-up")},inline:eo,other:{name:"".concat(Q.value,"-zoom-big")}}});xi(!0);var F=function A(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],R=[],H=d.value;return S.forEach(function(X){var Z=H[X],J=Z.key,G=Z.childrenEventKeys;R.push.apply(R,[J].concat(ye(A(lt(G)))))}),R},z=function(S){o("click",S),T(S)},L=function(S,R){var H,X=((H=h.value[S])===null||H===void 0?void 0:H.childrenEventKeys)||[],Z=w.value.filter(function(G){return G!==S});if(R)Z.push(S);else if(N.value!=="inline"){var J=F(lt(X));Z=It(Z.filter(function(G){return!J.includes(G)}))}Le(w,Z)||E(Z)},ie=function(S,R){d.value=f(f({},d.value),{},K({},S,R))},re=function(S){delete d.value[S],d.value=f({},d.value)},ee=I(0),le=M(function(){return e.expandIcon||i.expandIcon?function(A){var S=e.expandIcon||i.expandIcon;return S=typeof S=="function"?S(A):S,ve(S,{class:"".concat(l.value,"-submenu-expand-icon")},!1)}:null});return Ya({store:d,prefixCls:l,activeKeys:y,openKeys:w,selectedKeys:v,changeActiveKeys:x,disabled:C,rtl:O,mode:N,inlineIndent:M(function(){return e.inlineIndent}),subMenuCloseDelay:M(function(){return e.subMenuCloseDelay}),subMenuOpenDelay:M(function(){return e.subMenuOpenDelay}),builtinPlacements:M(function(){return e.builtinPlacements}),triggerSubMenuAction:M(function(){return e.triggerSubMenuAction}),getPopupContainer:M(function(){return e.getPopupContainer}),inlineCollapsed:D,antdMenuTheme:M(function(){return e.theme}),siderCollapsed:m,defaultMotions:M(function(){return s.value?k.value:null}),motion:M(function(){return s.value?e.motion:null}),overflowDisabled:I(void 0),onOpenChange:L,onItemClick:z,registerMenuInfo:ie,unRegisterMenuInfo:re,selectedSubMenuKeys:b,isRootMenu:I(!0),expandIcon:le,forceSubMenuRender:M(function(){return e.forceSubMenuRender})}),function(){var A,S,R=it((A=i.default)===null||A===void 0?void 0:A.call(i)),H=ee.value>=R.length-1||N.value!=="horizontal"||e.disabledOverflow,X=N.value!=="horizontal"||e.disabledOverflow?R:R.map(function(J,G){return g(yt,{key:J.key,overflowDisabled:G>ee.value},{default:function(){return J}})}),Z=((S=i.overflowedIndicator)===null||S===void 0?void 0:S.call(i))||g(gi,null,null);return g(Ue,f(f({},a),{},{onMousedown:e.onMousedown,prefixCls:"".concat(l.value,"-overflow"),component:"ul",itemComponent:bt,class:[Y.value,a.class],role:"menu",id:e.id,data:X,renderRawItem:function(G){return G},renderRawRest:function(G){var ne=G.length,he=ne?R.slice(-ne):null;return g(De,null,[g(nt,{eventKey:vt,key:vt,title:Z,disabled:H,internalPopupClose:ne===0},{default:function(){return he}}),g(Kn,null,{default:function(){return[g(nt,{eventKey:vt,key:vt,title:Z,disabled:H,internalPopupClose:ne===0},{default:function(){return he}})]}})])},maxCount:N.value!=="horizontal"||e.disabledOverflow?Ue.INVALIDATE:Ue.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(G){ee.value=G}}),{default:function(){return[g(Hi,{to:"body"},{default:function(){return[g("div",{style:{display:"none"},"aria-hidden":!0},[g(Kn,null,{default:function(){return[X]}})])]}})]}})}}});var fr=function(){return{title:_.any}};const Bt=W({compatConfig:{MODE:3},name:"AMenuItemGroup",inheritAttrs:!1,props:fr(),slots:["title"],setup:function(e,n){var i=n.slots,o=n.attrs,a=Me(),r=a.prefixCls,l=M(function(){return"".concat(r.value,"-item-group")}),u=nn();return function(){var c,d;return u?(c=i.default)===null||c===void 0?void 0:c.call(i):g("li",f(f({},o),{},{onClick:function(p){return p.stopPropagation()},class:l.value}),[g("div",{title:typeof e.title=="string"?e.title:void 0,class:"".concat(l.value,"-title")},[Ie(i,e,"title")]),g("ul",{class:"".concat(l.value,"-list")},[(d=i.default)===null||d===void 0?void 0:d.call(i)])])}}});var vr=function(){return{prefixCls:String,dashed:Boolean}};const Kt=W({compatConfig:{MODE:3},name:"AMenuDivider",props:vr(),setup:function(e){var n=be("menu",e),i=n.prefixCls,o=M(function(){var a;return a={},K(a,"".concat(i.value,"-item-divider"),!0),K(a,"".concat(i.value,"-item-divider-dashed"),!!e.dashed),a});return function(){return g("li",{class:o.value},null)}}});Ne.install=function(t){return t.component(Ne.name,Ne),t.component(bt.name,bt),t.component(nt.name,nt),t.component(Kt.name,Kt),t.component(Bt.name,Bt),t};Ne.Item=bt;Ne.Divider=Kt;Ne.SubMenu=nt;Ne.ItemGroup=Bt;var dr={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"};const pr=dr;function Hn(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?Object(arguments[e]):{},i=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),i.forEach(function(o){mr(t,o,n[o])})}return t}function mr(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var on=function(e,n){var i=Hn({},e,n.attrs);return g(Wt,Hn({},i,{icon:pr}),null)};on.displayName="LeftOutlined";on.inheritAttrs=!1;const Or=on;qe.Button=ht;qe.install=function(t){return t.component(qe.name,qe),t.component(ht.name,ht),t};var gr={small:8,middle:16,large:24},hr=function(){return{prefixCls:String,size:{type:[String,Number,Array]},direction:_.oneOf(mt("horizontal","vertical")).def("horizontal"),align:_.oneOf(mt("start","end","center","baseline")),wrap:{type:Boolean,default:void 0}}};function yr(t){return typeof t=="string"?gr[t]:t||0}var br=W({compatConfig:{MODE:3},name:"ASpace",props:hr(),slots:["split"],setup:function(e,n){var i=n.slots,o=be("space",e),a=o.prefixCls,r=o.space,l=o.direction,u=to(),c=M(function(){var h,b,T;return(h=(b=e.size)!==null&&b!==void 0?b:(T=r.value)===null||T===void 0?void 0:T.size)!==null&&h!==void 0?h:"small"}),d=I(),m=I();q(c,function(){var h=(Array.isArray(c.value)?c.value:[c.value,c.value]).map(function(T){return yr(T)}),b=Qe(h,2);d.value=b[0],m.value=b[1]},{immediate:!0});var p=M(function(){return e.align===void 0&&e.direction==="horizontal"?"center":e.align}),s=M(function(){var h;return oe(a.value,"".concat(a.value,"-").concat(e.direction),(h={},K(h,"".concat(a.value,"-rtl"),l.value==="rtl"),K(h,"".concat(a.value,"-align-").concat(p.value),p.value),h))}),y=M(function(){return l.value==="rtl"?"marginLeft":"marginRight"}),v=M(function(){var h={};return u.value&&(h.columnGap="".concat(d.value,"px"),h.rowGap="".concat(m.value,"px")),f(f({},h),e.wrap&&{flexWrap:"wrap",marginBottom:"".concat(-m.value,"px")})});return function(){var h,b,T=e.wrap,w=e.direction,P=w===void 0?"horizontal":w,x=Je((h=i.default)===null||h===void 0?void 0:h.call(i)),C=x.length;if(C===0)return null;var O=(b=i.split)===null||b===void 0?void 0:b.call(i),N="".concat(a.value,"-item"),D=d.value,V=C-1;return g("div",{class:s.value,style:v.value},[x.map(function(E,$){var j={};return u.value||(P==="vertical"?$<V&&(j={marginBottom:"".concat(D/(O?2:1),"px")}):j=f(f({},$<V&&K({},y.value,"".concat(D/(O?2:1),"px"))),T&&{paddingBottom:"".concat(m.value,"px")})),g(De,null,[g("div",{class:N,style:j},[E]),$<V&&O&&g("span",{class:"".concat(N,"-split"),style:j},[O])])})])}}});const Sr=Ht(br);export{Ge as A,qo as B,qe as D,gi as E,Or as L,Ne as M,Ue as O,La as R,xr as S,Qt as T,er as a,Sr as b,bt as c,_a as d,ca as e,Ca as f,pi as g,Ko as i,sa as u};
|