2 lines
79 KiB
JavaScript
2 lines
79 KiB
JavaScript
var e=Object.defineProperty,t=Object.defineProperties,n=Object.getOwnPropertyDescriptors,o=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable,i=(t,n,o)=>n in t?e(t,n,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[n]=o,l=(e,t)=>{for(var n in t||(t={}))r.call(t,n)&&i(e,n,t[n]);if(o)for(var n of o(t))a.call(t,n)&&i(e,n,t[n]);return e},s=(e,o)=>t(e,n(o));import{t as u,c,a as p,u as d,b as f}from"./base-e0fd87d9.js";import{d as m,_ as h,o as v,a as g,b,at as y,ar as w,k as x,m as k,w as E,G as S,J as O,i as M,R as C,au as T,H as A,t as I,a3 as R,E as F,af as _,h as B,F as L,l as P,r as H,u as z,a6 as $,C as D,v as j,x as N,Y as K,Z as W,B as G,s as q,T as Y,W as V,P as U,a4 as X,p as J,q as Z,av as Q,L as ee,a2 as te,aw as ne,a5 as oe,A as re,y as ae,$ as ie,D as le,N as se,ax as ue,ay as ce,az as pe,aA as de,aB as fe,M as me,S as he,aC as ve,a7 as ge,I as be,a1 as ye,aD as we,aE as xe,aF as ke,j as Ee,a8 as Se,aG as Oe,as as Me,z as Ce,K as Te,aH as Ae,aI as Ie,an as Re,aj as Fe,ag as _e}from"./index-da9845f9.js";const Be=(e,t,n,o=!1)=>{e&&t&&n&&(null==e||e.addEventListener(t,n,o))},Le=(e,t,n,o=!1)=>{e&&t&&n&&(null==e||e.removeEventListener(t,n,o))},Pe=(e,t,{checkForDefaultPrevented:n=!0}={})=>o=>{const r=null==e?void 0:e(o);if(!1===n||!r)return null==t?void 0:t(o)},He=e=>t=>"mouse"===t.pointerType?e(t):void 0,ze=m({name:"ArrowDown"}),$e={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},De=[b("path",{fill:"currentColor",d:"M831.872 340.864 512 652.672 192.128 340.864a30.592 30.592 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.592 30.592 0 0 0-42.752 0z"},null,-1)];var je=h(ze,[["render",function(e,t,n,o,r,a){return v(),g("svg",$e,De)}]]);const Ne=m({name:"MagicStick"}),Ke={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},We=[b("path",{fill:"currentColor",d:"M512 64h64v192h-64V64zm0 576h64v192h-64V640zM160 480v-64h192v64H160zm576 0v-64h192v64H736zM249.856 199.04l45.248-45.184L430.848 289.6 385.6 334.848 249.856 199.104zM657.152 606.4l45.248-45.248 135.744 135.744-45.248 45.248L657.152 606.4zM114.048 923.2 68.8 877.952l316.8-316.8 45.248 45.248-316.8 316.8zM702.4 334.848 657.152 289.6l135.744-135.744 45.248 45.248L702.4 334.848z"},null,-1)];var Ge=h(Ne,[["render",function(e,t,n,o,r,a){return v(),g("svg",Ke,We)}]]);const qe=(...e)=>t=>{e.forEach((e=>{y(e)?e(t):e.value=t}))},Ye=Symbol("buttonGroupContextKey"),Ve=Symbol("scrollbarContextKey"),Ue=Symbol("popper"),Xe=Symbol("popperContent"),Je=w({type:x(Boolean),default:null}),Ze=w({type:x(Function)});const Qe={prefix:Math.floor(1e4*Math.random()),current:0},et=Symbol("elIdInjection"),tt=e=>{const t=A(et,Qe);return k((()=>I(e)||`el-id-${t.prefix}-${t.current++}`))};let nt;const ot=`el-popper-container-${Math.floor(1e4*Math.random())}`,rt=`#${ot}`,at=()=>{_((()=>{M&&(nt&&document.body.querySelector(rt)||(nt=(()=>{const e=document.createElement("div");return e.id=ot,document.body.appendChild(e),e})()))}))},it=B({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200}}),lt=({showAfter:e,hideAfter:t,open:n,close:o})=>{const{registerTimeout:r}=function(){let e;const t=()=>window.clearTimeout(e);return T((()=>t())),{registerTimeout:(n,o)=>{t(),e=window.setTimeout(n,o)},cancelTimeout:t}}();return{onOpen:()=>{r((()=>{n()}),I(e))},onClose:()=>{r((()=>{o()}),I(t))}}},st=Symbol("elForwardRef"),ut={vertical:{offset:"offsetHeight",scroll:"scrollTop",scrollSize:"scrollHeight",size:"height",key:"vertical",axis:"Y",client:"clientY",direction:"top"},horizontal:{offset:"offsetWidth",scroll:"scrollLeft",scrollSize:"scrollWidth",size:"width",key:"horizontal",axis:"X",client:"clientX",direction:"left"}},ct=B({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),pt=m({name:"Thumb",props:ct,setup(e){const t=A(Ve),n=P("scrollbar");t||u("Thumb","can not inject scrollbar context");const o=H(),r=H(),a=H({}),i=H(!1);let l=!1,s=!1,c=M?document.onselectstart:null;const p=k((()=>ut[e.vertical?"vertical":"horizontal"])),d=k((()=>(({move:e,size:t,bar:n})=>({[n.size]:t,transform:`translate${n.axis}(${e}%)`}))({size:e.size,move:e.move,bar:p.value}))),f=k((()=>o.value[p.value.offset]**2/t.wrapElement[p.value.scrollSize]/e.ratio/r.value[p.value.offset])),m=e=>{e.stopImmediatePropagation(),l=!0,document.addEventListener("mousemove",h),document.addEventListener("mouseup",v),c=document.onselectstart,document.onselectstart=()=>!1},h=e=>{if(!o.value||!r.value)return;if(!1===l)return;const n=a.value[p.value.axis];if(!n)return;const i=100*(-1*(o.value.getBoundingClientRect()[p.value.direction]-e[p.value.client])-(r.value[p.value.offset]-n))*f.value/o.value[p.value.offset];t.wrapElement[p.value.scroll]=i*t.wrapElement[p.value.scrollSize]/100},v=()=>{l=!1,a.value[p.value.axis]=0,document.removeEventListener("mousemove",h),document.removeEventListener("mouseup",v),g(),s&&(i.value=!1)};R((()=>{g(),document.removeEventListener("mouseup",v)}));const g=()=>{document.onselectstart!==c&&(document.onselectstart=c)};return z($(t,"scrollbarElement"),"mousemove",(()=>{s=!1,i.value=!!e.size})),z($(t,"scrollbarElement"),"mouseleave",(()=>{s=!0,i.value=l})),{ns:n,instance:o,thumb:r,bar:p,thumbStyle:d,visible:i,clickTrackHandler:e=>{if(!r.value||!o.value||!t.wrapElement)return;const n=100*(Math.abs(e.target.getBoundingClientRect()[p.value.direction]-e[p.value.client])-r.value[p.value.offset]/2)*f.value/o.value[p.value.offset];t.wrapElement[p.value.scroll]=n*t.wrapElement[p.value.scrollSize]/100},clickThumbHandler:e=>{var t;if(e.stopPropagation(),e.ctrlKey||[1,2].includes(e.button))return;null==(t=window.getSelection())||t.removeAllRanges(),m(e);const n=e.currentTarget;n&&(a.value[p.value.axis]=n[p.value.offset]-(e[p.value.client]-n.getBoundingClientRect()[p.value.direction]))}}}});const dt=m({components:{Thumb:D(pt,[["render",function(e,t,n,o,r,a){return v(),j(Y,{name:e.ns.b("fade")},{default:N((()=>[K(b("div",{ref:"instance",class:G([e.ns.e("bar"),e.ns.is(e.bar.key)]),onMousedown:t[1]||(t[1]=(...t)=>e.clickTrackHandler&&e.clickTrackHandler(...t))},[b("div",{ref:"thumb",class:G(e.ns.e("thumb")),style:q(e.thumbStyle),onMousedown:t[0]||(t[0]=(...t)=>e.clickThumbHandler&&e.clickThumbHandler(...t))},null,38)],34),[[W,e.always||e.visible]])])),_:1},8,["name"])}],["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/thumb.vue"]])},props:B({always:{type:Boolean,default:!0},width:{type:String,default:""},height:{type:String,default:""},ratioX:{type:Number,default:1},ratioY:{type:Number,default:1}}),setup(e){const t=H(0),n=H(0);return{handleScroll:o=>{if(o){const r=o.offsetHeight-4,a=o.offsetWidth-4;n.value=100*o.scrollTop/r*e.ratioY,t.value=100*o.scrollLeft/a*e.ratioX}},moveX:t,moveY:n}}});const ft=le(D(m({name:"ElScrollbar",components:{Bar:D(dt,[["render",function(e,t,n,o,r,a){const i=V("thumb");return v(),g(X,null,[U(i,{move:e.moveX,ratio:e.ratioX,size:e.width,always:e.always},null,8,["move","ratio","size","always"]),U(i,{move:e.moveY,ratio:e.ratioY,size:e.height,vertical:"",always:e.always},null,8,["move","ratio","size","always"])],64)}],["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/bar.vue"]])},props:B({height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:{type:Boolean,default:!1},wrapStyle:{type:x([String,Object,Array]),default:""},wrapClass:{type:[String,Array],default:""},viewClass:{type:[String,Array],default:""},viewStyle:{type:[String,Array,Object],default:""},noresize:Boolean,tag:{type:String,default:"div"},always:{type:Boolean,default:!1},minSize:{type:Number,default:20}}),emits:{scroll:({scrollTop:e,scrollLeft:t})=>J(e)&&J(t)},setup(e,{emit:t}){const n=P("scrollbar");let o,r;const a=H(),i=H(),l=H(),s=H("0"),u=H("0"),c=H(),p=H(0),d=H(0),f=H(1),m=H(1),h=k((()=>{const t={};return e.height&&(t.height=Z(e.height)),e.maxHeight&&(t.maxHeight=Z(e.maxHeight)),[e.wrapStyle,t]}));const v=()=>{if(!i.value)return;const t=i.value.offsetHeight-4,n=i.value.offsetWidth-4,o=t**2/i.value.scrollHeight,r=n**2/i.value.scrollWidth,a=Math.max(o,e.minSize),l=Math.max(r,e.minSize);f.value=o/(t-o)/(a/(t-a)),m.value=r/(n-r)/(l/(n-l)),u.value=a+4<t?`${a}px`:"",s.value=l+4<n?`${l}px`:""};return E((()=>e.noresize),(e=>{e?(null==o||o(),null==r||r()):(({stop:o}=Q(l,v)),r=z("resize",v))}),{immediate:!0}),E((()=>[e.maxHeight,e.height]),(()=>{e.native||ee((()=>{var e;v(),i.value&&(null==(e=c.value)||e.handleScroll(i.value))}))})),L(Ve,te({scrollbarElement:a,wrapElement:i})),S((()=>{e.native||ee((()=>v()))})),ne((()=>v())),{ns:n,scrollbar$:a,wrap$:i,resize$:l,barRef:c,moveX:p,moveY:d,ratioX:m,ratioY:f,sizeWidth:s,sizeHeight:u,style:h,update:v,handleScroll:()=>{var e;i.value&&(null==(e=c.value)||e.handleScroll(i.value),t("scroll",{scrollTop:i.value.scrollTop,scrollLeft:i.value.scrollLeft}))},scrollTo:function(e,t){oe(e)?i.value.scrollTo(e):J(e)&&J(t)&&i.value.scrollTo(e,t)},setScrollTop:e=>{J(e)&&(i.value.scrollTop=e)},setScrollLeft:e=>{J(e)&&(i.value.scrollLeft=e)}}}}),[["render",function(e,t,n,o,r,a){const i=V("bar");return v(),g("div",{ref:"scrollbar$",class:G(e.ns.b())},[b("div",{ref:"wrap$",class:G([e.wrapClass,e.ns.e("wrap"),{[e.ns.em("wrap","hidden-default")]:!e.native}]),style:q(e.style),onScroll:t[0]||(t[0]=(...t)=>e.handleScroll&&e.handleScroll(...t))},[(v(),j(ae(e.tag),{ref:"resize$",class:G([e.ns.e("view"),e.viewClass]),style:q(e.viewStyle)},{default:N((()=>[re(e.$slots,"default")])),_:3},8,["class","style"]))],38),e.native?ie("v-if",!0):(v(),j(i,{key:0,ref:"barRef",height:e.sizeHeight,width:e.sizeWidth,always:e.always,"ratio-x":e.ratioX,"ratio-y":e.ratioY},null,8,["height","width","always","ratio-x","ratio-y"]))],2)}],["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/scrollbar.vue"]]));var mt=D(m(s(l({},{name:"ElPopperRoot",inheritAttrs:!1}),{setup(e,{expose:t}){const n={triggerRef:H(),popperInstanceRef:H(),contentRef:H(),referenceRef:H()};return t(n),L(Ue,n),(e,t)=>re(e.$slots,"default")}})),[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/popper.vue"]]);const ht=B({arrowOffset:{type:Number,default:5}});var vt=D(m(s(l({},{name:"ElPopperArrow",inheritAttrs:!1}),{props:ht,setup(e,{expose:t}){const n=e,o=P("popper"),{arrowOffset:r,arrowRef:a}=A(Xe,void 0);return E((()=>n.arrowOffset),(e=>{r.value=e})),R((()=>{a.value=void 0})),t({arrowRef:a}),(e,t)=>(v(),g("span",{ref_key:"arrowRef",ref:a,class:G(I(o).e("arrow")),"data-popper-arrow":""},null,2))}})),[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/arrow.vue"]]);const gt=m({name:"ElOnlyChild",setup(e,{slots:t,attrs:n}){var o;const r=A(st),a=(i=null!=(o=null==r?void 0:r.setForwardRef)?o:se,{mounted(e){i(e)},updated(e){i(e)},unmounted(){i(null)}});var i;return()=>{var e;const o=null==(e=t.default)?void 0:e.call(t,n);if(!o)return null;if(o.length>1)return null;const r=bt(o);return r?K(ue(r,n),[[a]]):null}}});function bt(e){if(!e)return null;const t=e;for(const n of t){if(oe(n))switch(n.type){case pe:continue;case ce:case"svg":return yt(n);case X:return bt(n.children);default:return n}return yt(n)}return null}function yt(e){return U("span",{class:"el-only-child__content"},[e])}const wt=B({virtualRef:{type:x(Object)},virtualTriggering:Boolean,onMouseenter:Function,onMouseleave:Function,onClick:Function,onKeydown:Function,onFocus:Function,onBlur:Function,onContextmenu:Function,id:String,open:Boolean});var xt=D(m(s(l({},{name:"ElPopperTrigger",inheritAttrs:!1}),{props:wt,setup(e,{expose:t}){const n=e,{triggerRef:o}=A(Ue,void 0);var r;return r=o,L(st,{setForwardRef:e=>{r.value=e}}),S((()=>{E((()=>n.virtualRef),(e=>{e&&(o.value=de(e))}),{immediate:!0}),E((()=>o.value),((e,t)=>{fe(e)&&["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"].forEach((o=>{var r;const a=n[o];a&&(e.addEventListener(o.slice(2).toLowerCase(),a),null==(r=null==t?void 0:t.removeEventListener)||r.call(t,o.slice(2).toLowerCase(),a))}))}),{immediate:!0})})),t({triggerRef:o}),(e,t)=>e.virtualTriggering?ie("v-if",!0):(v(),j(I(gt),me({key:0},e.$attrs,{"aria-describedby":e.open?e.id:void 0}),{default:N((()=>[re(e.$slots,"default")])),_:3},16,["aria-describedby"]))}})),[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/trigger.vue"]]),kt="top",Et="bottom",St="right",Ot="left",Mt=[kt,Et,St,Ot],Ct=Mt.reduce((function(e,t){return e.concat([t+"-start",t+"-end"])}),[]),Tt=[].concat(Mt,["auto"]).reduce((function(e,t){return e.concat([t,t+"-start",t+"-end"])}),[]),At=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function It(e){return e?(e.nodeName||"").toLowerCase():null}function Rt(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Ft(e){return e instanceof Rt(e).Element||e instanceof Element}function _t(e){return e instanceof Rt(e).HTMLElement||e instanceof HTMLElement}function Bt(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Rt(e).ShadowRoot||e instanceof ShadowRoot)}var Lt={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},o=t.attributes[e]||{},r=t.elements[e];_t(r)&&It(r)&&(Object.assign(r.style,n),Object.keys(o).forEach((function(e){var t=o[e];!1===t?r.removeAttribute(e):r.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var o=t.elements[e],r=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});_t(o)&&It(o)&&(Object.assign(o.style,a),Object.keys(r).forEach((function(e){o.removeAttribute(e)})))}))}},requires:["computeStyles"]};function Pt(e){return e.split("-")[0]}var Ht=Math.max,zt=Math.min,$t=Math.round;function Dt(e,t){void 0===t&&(t=!1);var n=e.getBoundingClientRect(),o=1,r=1;if(_t(e)&&t){var a=e.offsetHeight,i=e.offsetWidth;i>0&&(o=$t(n.width)/i||1),a>0&&(r=$t(n.height)/a||1)}return{width:n.width/o,height:n.height/r,top:n.top/r,right:n.right/o,bottom:n.bottom/r,left:n.left/o,x:n.left/o,y:n.top/r}}function jt(e){var t=Dt(e),n=e.offsetWidth,o=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-o)<=1&&(o=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:o}}function Nt(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Bt(n)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function Kt(e){return Rt(e).getComputedStyle(e)}function Wt(e){return["table","td","th"].indexOf(It(e))>=0}function Gt(e){return((Ft(e)?e.ownerDocument:e.document)||window.document).documentElement}function qt(e){return"html"===It(e)?e:e.assignedSlot||e.parentNode||(Bt(e)?e.host:null)||Gt(e)}function Yt(e){return _t(e)&&"fixed"!==Kt(e).position?e.offsetParent:null}function Vt(e){for(var t=Rt(e),n=Yt(e);n&&Wt(n)&&"static"===Kt(n).position;)n=Yt(n);return n&&("html"===It(n)||"body"===It(n)&&"static"===Kt(n).position)?t:n||function(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&_t(e)&&"fixed"===Kt(e).position)return null;var n=qt(e);for(Bt(n)&&(n=n.host);_t(n)&&["html","body"].indexOf(It(n))<0;){var o=Kt(n);if("none"!==o.transform||"none"!==o.perspective||"paint"===o.contain||-1!==["transform","perspective"].indexOf(o.willChange)||t&&"filter"===o.willChange||t&&o.filter&&"none"!==o.filter)return n;n=n.parentNode}return null}(e)||t}function Ut(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Xt(e,t,n){return Ht(e,zt(t,n))}function Jt(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Zt(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}var Qt={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,o=e.name,r=e.options,a=n.elements.arrow,i=n.modifiersData.popperOffsets,l=Pt(n.placement),s=Ut(l),u=[Ot,St].indexOf(l)>=0?"height":"width";if(a&&i){var c=function(e,t){return Jt("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Zt(e,Mt))}(r.padding,n),p=jt(a),d="y"===s?kt:Ot,f="y"===s?Et:St,m=n.rects.reference[u]+n.rects.reference[s]-i[s]-n.rects.popper[u],h=i[s]-n.rects.reference[s],v=Vt(a),g=v?"y"===s?v.clientHeight||0:v.clientWidth||0:0,b=m/2-h/2,y=c[d],w=g-p[u]-c[f],x=g/2-p[u]/2+b,k=Xt(y,x,w),E=s;n.modifiersData[o]=((t={})[E]=k,t.centerOffset=k-x,t)}},effect:function(e){var t=e.state,n=e.options.element,o=void 0===n?"[data-popper-arrow]":n;null!=o&&("string"!=typeof o||(o=t.elements.popper.querySelector(o)))&&Nt(t.elements.popper,o)&&(t.elements.arrow=o)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function en(e){return e.split("-")[1]}var tn={top:"auto",right:"auto",bottom:"auto",left:"auto"};function nn(e){var t,n=e.popper,o=e.popperRect,r=e.placement,a=e.variation,i=e.offsets,l=e.position,s=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,p=e.isFixed,d=i.x,f=void 0===d?0:d,m=i.y,h=void 0===m?0:m,v="function"==typeof c?c({x:f,y:h}):{x:f,y:h};f=v.x,h=v.y;var g=i.hasOwnProperty("x"),b=i.hasOwnProperty("y"),y=Ot,w=kt,x=window;if(u){var k=Vt(n),E="clientHeight",S="clientWidth";if(k===Rt(n)&&"static"!==Kt(k=Gt(n)).position&&"absolute"===l&&(E="scrollHeight",S="scrollWidth"),k=k,r===kt||(r===Ot||r===St)&&"end"===a)w=Et,h-=(p&&k===x&&x.visualViewport?x.visualViewport.height:k[E])-o.height,h*=s?1:-1;if(r===Ot||(r===kt||r===Et)&&"end"===a)y=St,f-=(p&&k===x&&x.visualViewport?x.visualViewport.width:k[S])-o.width,f*=s?1:-1}var O,M=Object.assign({position:l},u&&tn),C=!0===c?function(e){var t=e.x,n=e.y,o=window.devicePixelRatio||1;return{x:$t(t*o)/o||0,y:$t(n*o)/o||0}}({x:f,y:h}):{x:f,y:h};return f=C.x,h=C.y,s?Object.assign({},M,((O={})[w]=b?"0":"",O[y]=g?"0":"",O.transform=(x.devicePixelRatio||1)<=1?"translate("+f+"px, "+h+"px)":"translate3d("+f+"px, "+h+"px, 0)",O)):Object.assign({},M,((t={})[w]=b?h+"px":"",t[y]=g?f+"px":"",t.transform="",t))}var on={passive:!0};var rn={left:"right",right:"left",bottom:"top",top:"bottom"};function an(e){return e.replace(/left|right|bottom|top/g,(function(e){return rn[e]}))}var ln={start:"end",end:"start"};function sn(e){return e.replace(/start|end/g,(function(e){return ln[e]}))}function un(e){var t=Rt(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function cn(e){return Dt(Gt(e)).left+un(e).scrollLeft}function pn(e){var t=Kt(e),n=t.overflow,o=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+o)}function dn(e){return["html","body","#document"].indexOf(It(e))>=0?e.ownerDocument.body:_t(e)&&pn(e)?e:dn(qt(e))}function fn(e,t){var n;void 0===t&&(t=[]);var o=dn(e),r=o===(null==(n=e.ownerDocument)?void 0:n.body),a=Rt(o),i=r?[a].concat(a.visualViewport||[],pn(o)?o:[]):o,l=t.concat(i);return r?l:l.concat(fn(qt(i)))}function mn(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function hn(e,t){return"viewport"===t?mn(function(e){var t=Rt(e),n=Gt(e),o=t.visualViewport,r=n.clientWidth,a=n.clientHeight,i=0,l=0;return o&&(r=o.width,a=o.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(i=o.offsetLeft,l=o.offsetTop)),{width:r,height:a,x:i+cn(e),y:l}}(e)):Ft(t)?function(e){var t=Dt(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}(t):mn(function(e){var t,n=Gt(e),o=un(e),r=null==(t=e.ownerDocument)?void 0:t.body,a=Ht(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),i=Ht(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),l=-o.scrollLeft+cn(e),s=-o.scrollTop;return"rtl"===Kt(r||n).direction&&(l+=Ht(n.clientWidth,r?r.clientWidth:0)-a),{width:a,height:i,x:l,y:s}}(Gt(e)))}function vn(e,t,n){var o="clippingParents"===t?function(e){var t=fn(qt(e)),n=["absolute","fixed"].indexOf(Kt(e).position)>=0&&_t(e)?Vt(e):e;return Ft(n)?t.filter((function(e){return Ft(e)&&Nt(e,n)&&"body"!==It(e)})):[]}(e):[].concat(t),r=[].concat(o,[n]),a=r[0],i=r.reduce((function(t,n){var o=hn(e,n);return t.top=Ht(o.top,t.top),t.right=zt(o.right,t.right),t.bottom=zt(o.bottom,t.bottom),t.left=Ht(o.left,t.left),t}),hn(e,a));return i.width=i.right-i.left,i.height=i.bottom-i.top,i.x=i.left,i.y=i.top,i}function gn(e){var t,n=e.reference,o=e.element,r=e.placement,a=r?Pt(r):null,i=r?en(r):null,l=n.x+n.width/2-o.width/2,s=n.y+n.height/2-o.height/2;switch(a){case kt:t={x:l,y:n.y-o.height};break;case Et:t={x:l,y:n.y+n.height};break;case St:t={x:n.x+n.width,y:s};break;case Ot:t={x:n.x-o.width,y:s};break;default:t={x:n.x,y:n.y}}var u=a?Ut(a):null;if(null!=u){var c="y"===u?"height":"width";switch(i){case"start":t[u]=t[u]-(n[c]/2-o[c]/2);break;case"end":t[u]=t[u]+(n[c]/2-o[c]/2)}}return t}function bn(e,t){void 0===t&&(t={});var n=t,o=n.placement,r=void 0===o?e.placement:o,a=n.boundary,i=void 0===a?"clippingParents":a,l=n.rootBoundary,s=void 0===l?"viewport":l,u=n.elementContext,c=void 0===u?"popper":u,p=n.altBoundary,d=void 0!==p&&p,f=n.padding,m=void 0===f?0:f,h=Jt("number"!=typeof m?m:Zt(m,Mt)),v="popper"===c?"reference":"popper",g=e.rects.popper,b=e.elements[d?v:c],y=vn(Ft(b)?b:b.contextElement||Gt(e.elements.popper),i,s),w=Dt(e.elements.reference),x=gn({reference:w,element:g,strategy:"absolute",placement:r}),k=mn(Object.assign({},g,x)),E="popper"===c?k:w,S={top:y.top-E.top+h.top,bottom:E.bottom-y.bottom+h.bottom,left:y.left-E.left+h.left,right:E.right-y.right+h.right},O=e.modifiersData.offset;if("popper"===c&&O){var M=O[r];Object.keys(S).forEach((function(e){var t=[St,Et].indexOf(e)>=0?1:-1,n=[kt,Et].indexOf(e)>=0?"y":"x";S[e]+=M[n]*t}))}return S}var yn={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,o=e.name;if(!t.modifiersData[o]._skip){for(var r=n.mainAxis,a=void 0===r||r,i=n.altAxis,l=void 0===i||i,s=n.fallbackPlacements,u=n.padding,c=n.boundary,p=n.rootBoundary,d=n.altBoundary,f=n.flipVariations,m=void 0===f||f,h=n.allowedAutoPlacements,v=t.options.placement,g=Pt(v),b=s||(g===v||!m?[an(v)]:function(e){if("auto"===Pt(e))return[];var t=an(e);return[sn(e),t,sn(t)]}(v)),y=[v].concat(b).reduce((function(e,n){return e.concat("auto"===Pt(n)?function(e,t){void 0===t&&(t={});var n=t,o=n.placement,r=n.boundary,a=n.rootBoundary,i=n.padding,l=n.flipVariations,s=n.allowedAutoPlacements,u=void 0===s?Tt:s,c=en(o),p=c?l?Ct:Ct.filter((function(e){return en(e)===c})):Mt,d=p.filter((function(e){return u.indexOf(e)>=0}));0===d.length&&(d=p);var f=d.reduce((function(t,n){return t[n]=bn(e,{placement:n,boundary:r,rootBoundary:a,padding:i})[Pt(n)],t}),{});return Object.keys(f).sort((function(e,t){return f[e]-f[t]}))}(t,{placement:n,boundary:c,rootBoundary:p,padding:u,flipVariations:m,allowedAutoPlacements:h}):n)}),[]),w=t.rects.reference,x=t.rects.popper,k=new Map,E=!0,S=y[0],O=0;O<y.length;O++){var M=y[O],C=Pt(M),T="start"===en(M),A=[kt,Et].indexOf(C)>=0,I=A?"width":"height",R=bn(t,{placement:M,boundary:c,rootBoundary:p,altBoundary:d,padding:u}),F=A?T?St:Ot:T?Et:kt;w[I]>x[I]&&(F=an(F));var _=an(F),B=[];if(a&&B.push(R[C]<=0),l&&B.push(R[F]<=0,R[_]<=0),B.every((function(e){return e}))){S=M,E=!1;break}k.set(M,B)}if(E)for(var L=function(e){var t=y.find((function(t){var n=k.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return S=t,"break"},P=m?3:1;P>0;P--){if("break"===L(P))break}t.placement!==S&&(t.modifiersData[o]._skip=!0,t.placement=S,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function wn(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function xn(e){return[kt,St,Et,Ot].some((function(t){return e[t]>=0}))}var kn={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,o=t.rects.reference,r=t.rects.popper,a=t.modifiersData.preventOverflow,i=bn(t,{elementContext:"reference"}),l=bn(t,{altBoundary:!0}),s=wn(i,o),u=wn(l,r,a),c=xn(s),p=xn(u);t.modifiersData[n]={referenceClippingOffsets:s,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":p})}};var En={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,o=e.name,r=n.offset,a=void 0===r?[0,0]:r,i=Tt.reduce((function(e,n){return e[n]=function(e,t,n){var o=Pt(e),r=[Ot,kt].indexOf(o)>=0?-1:1,a="function"==typeof n?n(Object.assign({},t,{placement:e})):n,i=a[0],l=a[1];return i=i||0,l=(l||0)*r,[Ot,St].indexOf(o)>=0?{x:l,y:i}:{x:i,y:l}}(n,t.rects,a),e}),{}),l=i[t.placement],s=l.x,u=l.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=u),t.modifiersData[o]=i}};var Sn={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=gn({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}};var On={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,o=e.name,r=n.mainAxis,a=void 0===r||r,i=n.altAxis,l=void 0!==i&&i,s=n.boundary,u=n.rootBoundary,c=n.altBoundary,p=n.padding,d=n.tether,f=void 0===d||d,m=n.tetherOffset,h=void 0===m?0:m,v=bn(t,{boundary:s,rootBoundary:u,padding:p,altBoundary:c}),g=Pt(t.placement),b=en(t.placement),y=!b,w=Ut(g),x="x"===w?"y":"x",k=t.modifiersData.popperOffsets,E=t.rects.reference,S=t.rects.popper,O="function"==typeof h?h(Object.assign({},t.rects,{placement:t.placement})):h,M="number"==typeof O?{mainAxis:O,altAxis:O}:Object.assign({mainAxis:0,altAxis:0},O),C=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,T={x:0,y:0};if(k){if(a){var A,I="y"===w?kt:Ot,R="y"===w?Et:St,F="y"===w?"height":"width",_=k[w],B=_+v[I],L=_-v[R],P=f?-S[F]/2:0,H="start"===b?E[F]:S[F],z="start"===b?-S[F]:-E[F],$=t.elements.arrow,D=f&&$?jt($):{width:0,height:0},j=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},N=j[I],K=j[R],W=Xt(0,E[F],D[F]),G=y?E[F]/2-P-W-N-M.mainAxis:H-W-N-M.mainAxis,q=y?-E[F]/2+P+W+K+M.mainAxis:z+W+K+M.mainAxis,Y=t.elements.arrow&&Vt(t.elements.arrow),V=Y?"y"===w?Y.clientTop||0:Y.clientLeft||0:0,U=null!=(A=null==C?void 0:C[w])?A:0,X=_+q-U,J=Xt(f?zt(B,_+G-U-V):B,_,f?Ht(L,X):L);k[w]=J,T[w]=J-_}if(l){var Z,Q="x"===w?kt:Ot,ee="x"===w?Et:St,te=k[x],ne="y"===x?"height":"width",oe=te+v[Q],re=te-v[ee],ae=-1!==[kt,Ot].indexOf(g),ie=null!=(Z=null==C?void 0:C[x])?Z:0,le=ae?oe:te-E[ne]-S[ne]-ie+M.altAxis,se=ae?te+E[ne]+S[ne]-ie-M.altAxis:re,ue=f&&ae?(pe=Xt(le,te,ce=se))>ce?ce:pe:Xt(f?le:oe,te,f?se:re);k[x]=ue,T[x]=ue-te}var ce,pe;t.modifiersData[o]=T}},requiresIfExists:["offset"]};function Mn(e,t,n){void 0===n&&(n=!1);var o,r,a=_t(t),i=_t(t)&&function(e){var t=e.getBoundingClientRect(),n=$t(t.width)/e.offsetWidth||1,o=$t(t.height)/e.offsetHeight||1;return 1!==n||1!==o}(t),l=Gt(t),s=Dt(e,i),u={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(a||!a&&!n)&&(("body"!==It(t)||pn(l))&&(u=(o=t)!==Rt(o)&&_t(o)?{scrollLeft:(r=o).scrollLeft,scrollTop:r.scrollTop}:un(o)),_t(t)?((c=Dt(t,!0)).x+=t.clientLeft,c.y+=t.clientTop):l&&(c.x=cn(l))),{x:s.left+u.scrollLeft-c.x,y:s.top+u.scrollTop-c.y,width:s.width,height:s.height}}function Cn(e){var t=new Map,n=new Set,o=[];function r(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var o=t.get(e);o&&r(o)}})),o.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||r(e)})),o}var Tn={placement:"bottom",modifiers:[],strategy:"absolute"};function An(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function In(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,o=void 0===n?[]:n,r=t.defaultOptions,a=void 0===r?Tn:r;return function(e,t,n){void 0===n&&(n=a);var r,i,l={placement:"bottom",orderedModifiers:[],options:Object.assign({},Tn,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},s=[],u=!1,c={state:l,setOptions:function(n){var r="function"==typeof n?n(l.options):n;p(),l.options=Object.assign({},a,l.options,r),l.scrollParents={reference:Ft(e)?fn(e):e.contextElement?fn(e.contextElement):[],popper:fn(t)};var i,u,d=function(e){var t=Cn(e);return At.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}((i=[].concat(o,l.options.modifiers),u=i.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{}),Object.keys(u).map((function(e){return u[e]}))));return l.orderedModifiers=d.filter((function(e){return e.enabled})),l.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,o=void 0===n?{}:n,r=e.effect;if("function"==typeof r){var a=r({state:l,name:t,instance:c,options:o}),i=function(){};s.push(a||i)}})),c.update()},forceUpdate:function(){if(!u){var e=l.elements,t=e.reference,n=e.popper;if(An(t,n)){l.rects={reference:Mn(t,Vt(n),"fixed"===l.options.strategy),popper:jt(n)},l.reset=!1,l.placement=l.options.placement,l.orderedModifiers.forEach((function(e){return l.modifiersData[e.name]=Object.assign({},e.data)}));for(var o=0;o<l.orderedModifiers.length;o++)if(!0!==l.reset){var r=l.orderedModifiers[o],a=r.fn,i=r.options,s=void 0===i?{}:i,p=r.name;"function"==typeof a&&(l=a({state:l,options:s,name:p,instance:c})||l)}else l.reset=!1,o=-1}}},update:(r=function(){return new Promise((function(e){c.forceUpdate(),e(l)}))},function(){return i||(i=new Promise((function(e){Promise.resolve().then((function(){i=void 0,e(r())}))}))),i}),destroy:function(){p(),u=!0}};if(!An(e,t))return c;function p(){s.forEach((function(e){return e()})),s=[]}return c.setOptions(n).then((function(e){!u&&n.onFirstUpdate&&n.onFirstUpdate(e)})),c}}var Rn=In({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,o=e.options,r=o.scroll,a=void 0===r||r,i=o.resize,l=void 0===i||i,s=Rt(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&u.forEach((function(e){e.addEventListener("scroll",n.update,on)})),l&&s.addEventListener("resize",n.update,on),function(){a&&u.forEach((function(e){e.removeEventListener("scroll",n.update,on)})),l&&s.removeEventListener("resize",n.update,on)}},data:{}},Sn,{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,o=n.gpuAcceleration,r=void 0===o||o,a=n.adaptive,i=void 0===a||a,l=n.roundOffsets,s=void 0===l||l,u={placement:Pt(t.placement),variation:en(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,nn(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:s})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,nn(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},Lt,En,yn,On,Qt,kn]});const Fn=B({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:x(Array),default:()=>[]},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:Tt,default:"bottom"},popperOptions:{type:x(Object),default:()=>({})},strategy:{type:String,values:["fixed","absolute"],default:"absolute"}}),_n=B(s(l({},Fn),{style:{type:x([String,Array,Object])},className:{type:x([String,Array,Object])},effect:{type:String,default:"dark"},visible:Boolean,enterable:{type:Boolean,default:!0},pure:Boolean,popperClass:{type:x([String,Array,Object])},popperStyle:{type:x([String,Array,Object])},referenceEl:{type:x(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},zIndex:Number})),Bn=(e,t)=>{const{placement:n,strategy:o,popperOptions:r}=e,a=s(l({placement:n,strategy:o},r),{modifiers:Ln(e)});return function(e,{arrowEl:t,arrowOffset:n}){e.modifiers.push({name:"arrow",options:{element:t,padding:null!=n?n:5}})}(a,t),function(e,t){t&&(e.modifiers=[...e.modifiers,...null!=t?t:[]])}(a,null==r?void 0:r.modifiers),a};function Ln(e){const{offset:t,gpuAcceleration:n,fallbackPlacements:o}=e;return[{name:"offset",options:{offset:[0,null!=t?t:12]}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5,fallbackPlacements:null!=o?o:[]}},{name:"computeStyles",options:{gpuAcceleration:n,adaptive:n}}]}var Pn=D(m(s(l({},{name:"ElPopperContent"}),{props:_n,emits:["mouseenter","mouseleave"],setup(e,{expose:t}){const n=e,{popperInstanceRef:o,contentRef:r,triggerRef:a}=A(Ue,void 0),{nextZIndex:i}=he(),u=P("popper"),c=H(),p=H(),d=H();L(Xe,{arrowRef:p,arrowOffset:d});const f=H(n.zIndex||i()),m=k((()=>(e=>{if(M)return de(e)})(n.referenceEl)||I(a))),h=k((()=>[{zIndex:I(f)},n.popperStyle])),b=k((()=>[u.b(),u.is("pure",n.pure),u.is(n.effect),n.popperClass])),y=(e=!0)=>{var t;null==(t=I(o))||t.update(),e&&(f.value=n.zIndex||i())},w=()=>{var e,t;const r={name:"eventListeners",enabled:n.visible};null==(t=null==(e=I(o))?void 0:e.setOptions)||t.call(e,(e=>s(l({},e),{modifiers:[...e.modifiers||[],r]}))),y(!1)};return S((()=>{let e;E(m,(t=>{var a;null==e||e();const i=I(o);if(null==(a=null==i?void 0:i.destroy)||a.call(i),t){const a=I(c);r.value=a,o.value=(({referenceEl:e,popperContentEl:t,arrowEl:o})=>{const r=Bn(n,{arrowEl:o,arrowOffset:I(d)});return Rn(e,t,r)})({referenceEl:t,popperContentEl:a,arrowEl:I(p)}),e=E((()=>t.getBoundingClientRect()),(()=>y()),{immediate:!0})}else o.value=void 0}),{immediate:!0}),E((()=>n.visible),w,{immediate:!0}),E((()=>Bn(n,{arrowEl:I(p),arrowOffset:I(d)})),(e=>{var t;return null==(t=o.value)?void 0:t.setOptions(e)}))})),t({popperContentRef:c,popperInstanceRef:o,updatePopper:y,contentStyle:h}),(e,t)=>(v(),g("div",{ref_key:"popperContentRef",ref:c,style:q(I(h)),class:G(I(b)),role:"tooltip",onMouseenter:t[0]||(t[0]=t=>e.$emit("mouseenter",t)),onMouseleave:t[1]||(t[1]=t=>e.$emit("mouseleave",t))},[re(e.$slots,"default")],38))}})),[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/content.vue"]]);const Hn=le(mt);var zn=D(m({name:"ElVisuallyHidden",props:{style:{type:[String,Object,Array]}},setup:e=>({computedStyle:k((()=>[e.style,{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}]))})}),[["render",function(e,t,n,o,r,a){return v(),g("span",me(e.$attrs,{style:e.computedStyle}),[re(e.$slots,"default")],16)}],["__file","/home/runner/work/element-plus/element-plus/packages/components/visual-hidden/src/visual-hidden.vue"]]);const $n=B(s(l(l({},it),_n),{appendTo:{type:x([String,Object]),default:rt},content:{type:String,default:""},rawContent:{type:Boolean,default:!1},persistent:Boolean,ariaLabel:String,visible:{type:x(Boolean),default:null},transition:{type:String,default:"el-fade-in-linear"},teleported:{type:Boolean,default:!0},disabled:{type:Boolean}})),Dn=B(s(l({},wt),{disabled:Boolean,trigger:{type:x([String,Array]),default:"hover"}})),jn=B({openDelay:{type:Number},visibleArrow:{type:Boolean,default:void 0},hideAfter:{type:Number,default:200},showArrow:{type:Boolean,default:!0}}),Nn=Symbol("elTooltip");var Kn=D(m({name:"ElTooltipContent",components:{ElPopperContent:Pn,ElVisuallyHidden:zn},inheritAttrs:!1,props:$n,setup(e){const t=H(null),n=H(!1),o=H(!1),r=H(!1),a=H(!1),{controlled:i,id:l,open:s,trigger:u,onClose:c,onOpen:p,onShow:d,onHide:f,onBeforeShow:m,onBeforeHide:h}=A(Nn,void 0),v=k((()=>e.persistent));R((()=>{a.value=!0}));const g=k((()=>!!I(v)||I(s))),b=k((()=>!e.disabled&&I(s))),y=k((()=>{var t;return null!=(t=e.style)?t:{}})),w=k((()=>!I(s)));(e=>{const t=t=>{const n=t;n.key===F.esc&&(null==e||e(n))};S((()=>{Be(document,"keydown",t)})),R((()=>{Le(document,"keydown",t)}))})(c);const x=()=>{if(I(i))return!0},O=Pe(x,(()=>{e.enterable&&"hover"===I(u)&&p()})),M=Pe(x,(()=>{"hover"===I(u)&&c()}));let C;return E((()=>I(s)),(e=>{e?C=ve(k((()=>{var e;return null==(e=t.value)?void 0:e.popperContentRef})),(()=>{if(I(i))return;"hover"!==I(u)&&c()})):null==C||C()}),{flush:"post"}),{ariaHidden:w,entering:o,leaving:r,id:l,intermediateOpen:n,contentStyle:y,contentRef:t,destroyed:a,shouldRender:g,shouldShow:b,open:s,onAfterShow:()=>{d()},onBeforeEnter:()=>{var e,n;null==(n=null==(e=t.value)?void 0:e.updatePopper)||n.call(e),null==m||m()},onBeforeLeave:()=>{null==h||h()},onContentEnter:O,onContentLeave:M,onTransitionLeave:()=>{f()}}}}),[["render",function(e,t,n,o,r,a){const i=V("el-visually-hidden"),l=V("el-popper-content");return v(),j(ye,{disabled:!e.teleported,to:e.appendTo},[U(Y,{name:e.transition,onAfterLeave:e.onTransitionLeave,onBeforeEnter:e.onBeforeEnter,onAfterEnter:e.onAfterShow,onBeforeLeave:e.onBeforeLeave},{default:N((()=>[e.shouldRender?K((v(),j(l,me({key:0,ref:"contentRef"},e.$attrs,{"aria-hidden":e.ariaHidden,"boundaries-padding":e.boundariesPadding,"fallback-placements":e.fallbackPlacements,"gpu-acceleration":e.gpuAcceleration,offset:e.offset,placement:e.placement,"popper-options":e.popperOptions,strategy:e.strategy,effect:e.effect,enterable:e.enterable,pure:e.pure,"popper-class":e.popperClass,"popper-style":[e.popperStyle,e.contentStyle],"reference-el":e.referenceEl,visible:e.shouldShow,"z-index":e.zIndex,onMouseenter:e.onContentEnter,onMouseleave:e.onContentLeave}),{default:N((()=>[ie(" Workaround bug #6378 "),e.destroyed?ie("v-if",!0):(v(),g(X,{key:0},[re(e.$slots,"default"),U(i,{id:e.id,role:"tooltip"},{default:N((()=>[ge(be(e.ariaLabel),1)])),_:1},8,["id"])],64))])),_:3},16,["aria-hidden","boundaries-padding","fallback-placements","gpu-acceleration","offset","placement","popper-options","strategy","effect","enterable","pure","popper-class","popper-style","reference-el","visible","z-index","onMouseenter","onMouseleave"])),[[W,e.shouldShow]]):ie("v-if",!0)])),_:3},8,["name","onAfterLeave","onBeforeEnter","onAfterEnter","onBeforeLeave"])],8,["disabled","to"])}],["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/content.vue"]]);const Wn=(e,t,n)=>o=>{((e,t)=>we(e)?e.includes(t):e===t)(I(e),t)&&n(o)};var Gn=D(m({name:"ElTooltipTrigger",components:{ElPopperTrigger:xt},props:Dn,setup(e){const t=P("tooltip"),{controlled:n,id:o,open:r,onOpen:a,onClose:i,onToggle:l}=A(Nn,void 0),s=H(null),u=()=>{if(I(n)||e.disabled)return!0},c=$(e,"trigger"),p=Pe(u,Wn(c,"hover",a)),d=Pe(u,Wn(c,"hover",i)),f=Pe(u,Wn(c,"click",(e=>{0===e.button&&l(e)}))),m=Pe(u,Wn(c,"focus",a));return{onBlur:Pe(u,Wn(c,"focus",i)),onContextMenu:Pe(u,Wn(c,"contextmenu",(e=>{e.preventDefault(),l(e)}))),onFocus:m,onMouseenter:p,onMouseleave:d,onClick:f,onKeydown:Pe(u,(e=>{const{code:t}=e;t!==F.enter&&t!==F.space||l(e)})),open:r,id:o,triggerRef:s,ns:t}}}),[["render",function(e,t,n,o,r,a){const i=V("el-popper-trigger");return v(),j(i,{id:e.id,"virtual-ref":e.virtualRef,open:e.open,"virtual-triggering":e.virtualTriggering,class:G(e.ns.e("trigger")),onBlur:e.onBlur,onClick:e.onClick,onContextmenu:e.onContextMenu,onFocus:e.onFocus,onMouseenter:e.onMouseenter,onMouseleave:e.onMouseleave,onKeydown:e.onKeydown},{default:N((()=>[re(e.$slots,"default")])),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"])}],["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/trigger.vue"]]);const{useModelToggleProps:qn,useModelToggle:Yn,useModelToggleEmits:Vn}={useModelToggle:({indicator:e,shouldHideWhenRouteChanges:t,shouldProceed:n,onShow:o,onHide:r})=>{const a=O(),i=a.props,{emit:s}=a,u=`update:${Un}`,c=k((()=>y(i[`onUpdate:${Un}`]))),p=k((()=>null===i[Un])),d=()=>{!0!==e.value&&(e.value=!0,y(o)&&o())},f=()=>{!1!==e.value&&(e.value=!1,y(r)&&r())},m=()=>{if(!0===i.disabled||y(n)&&!n())return;const e=c.value&&M;e&&s(u,!0),!p.value&&e||d()},h=()=>{if(!0===i.disabled||!M)return;const e=c.value&&M;e&&s(u,!1),!p.value&&e||f()},v=t=>{C(t)&&(i.disabled&&t?c.value&&s(u,!1):e.value!==t&&(t?d():f()))};return E((()=>i[Un]),v),t&&void 0!==a.appContext.config.globalProperties.$route&&E((()=>l({},a.proxy.$route)),(()=>{t.value&&e.value&&h()})),S((()=>{v(i[Un])})),{hide:h,show:m,toggle:()=>{e.value?h():m()}}},useModelToggleProps:{[Un="visible"]:Je,[`onUpdate:${Un}`]:Ze},useModelToggleEmits:[`update:${Un}`]};var Un;const Xn=m({name:"ElTooltip",components:{ElPopper:Hn,ElPopperArrow:vt,ElTooltipContent:Kn,ElTooltipTrigger:Gn},props:l(l(l(l(l({},qn),$n),Dn),ht),jn),emits:[...Vn,"before-show","before-hide","show","hide"],setup(e,{emit:t}){at();const n=k((()=>(xe(e.openDelay),e.openDelay||e.showAfter))),o=k((()=>(xe(e.visibleArrow),C(e.visibleArrow)?e.visibleArrow:e.showArrow))),r=tt(),a=H(null),i=()=>{var e;const t=I(a);t&&(null==(e=t.popperInstanceRef)||e.update())},l=H(!1),{show:s,hide:u}=Yn({indicator:l}),{onOpen:c,onClose:p}=lt({showAfter:n,hideAfter:$(e,"hideAfter"),open:s,close:u}),d=k((()=>C(e.visible)));return L(Nn,{controlled:d,id:r,open:ke(l),trigger:$(e,"trigger"),onOpen:c,onClose:p,onToggle:()=>{I(l)?p():c()},onShow:()=>{t("show")},onHide:()=>{t("hide")},onBeforeShow:()=>{t("before-show")},onBeforeHide:()=>{t("before-hide")},updatePopper:i}),E((()=>e.disabled),(e=>{e&&l.value&&(l.value=!1)})),{compatShowAfter:n,compatShowArrow:o,popperRef:a,open:l,hide:u,updatePopper:i,onOpen:c,onClose:p}}}),Jn=["innerHTML"],Zn={key:1};const Qn=le(D(Xn,[["render",function(e,t,n,o,r,a){const i=V("el-tooltip-trigger"),l=V("el-popper-arrow"),s=V("el-tooltip-content"),u=V("el-popper");return v(),j(u,{ref:"popperRef"},{default:N((()=>[U(i,{disabled:e.disabled,trigger:e.trigger,"virtual-ref":e.virtualRef,"virtual-triggering":e.virtualTriggering},{default:N((()=>[e.$slots.default?re(e.$slots,"default",{key:0}):ie("v-if",!0)])),_:3},8,["disabled","trigger","virtual-ref","virtual-triggering"]),U(s,{"aria-label":e.ariaLabel,"boundaries-padding":e.boundariesPadding,content:e.content,disabled:e.disabled,effect:e.effect,enterable:e.enterable,"fallback-placements":e.fallbackPlacements,"hide-after":e.hideAfter,"gpu-acceleration":e.gpuAcceleration,offset:e.offset,persistent:e.persistent,"popper-class":e.popperClass,"popper-style":e.popperStyle,placement:e.placement,"popper-options":e.popperOptions,pure:e.pure,"raw-content":e.rawContent,"reference-el":e.referenceEl,"show-after":e.compatShowAfter,strategy:e.strategy,teleported:e.teleported,transition:e.transition,"z-index":e.zIndex,"append-to":e.appendTo},{default:N((()=>[re(e.$slots,"content",{},(()=>[e.rawContent?(v(),g("span",{key:0,innerHTML:e.content},null,8,Jn)):(v(),g("span",Zn,be(e.content),1))])),e.compatShowArrow?(v(),j(l,{key:0,"arrow-offset":e.arrowOffset},null,8,["arrow-offset"])):ie("v-if",!0)])),_:3},8,["aria-label","boundaries-padding","content","disabled","effect","enterable","fallback-placements","hide-after","gpu-acceleration","offset","persistent","popper-class","popper-style","placement","popper-options","pure","raw-content","reference-el","show-after","strategy","teleported","transition","z-index","append-to"])])),_:3},512)}],["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/tooltip.vue"]])),eo=B({size:c,disabled:Boolean,type:{type:String,values:["default","primary","success","warning","info","danger","text",""],default:""},icon:{type:Ee,default:""},nativeType:{type:String,values:["button","submit","reset"],default:"button"},loading:Boolean,loadingIcon:{type:Ee,default:()=>Se},plain:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0}}),to={click:e=>e instanceof MouseEvent};function no(e,t){(function(e){return"string"==typeof e&&-1!==e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!==e.indexOf("%")}(e);return e=360===t?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:e=360===t?(e<0?e%t+t:e%t)/parseFloat(String(t)):e%t/parseFloat(String(t))}function oo(e){return Math.min(1,Math.max(0,e))}function ro(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function ao(e){return e<=1?"".concat(100*Number(e),"%"):e}function io(e){return 1===e.length?"0"+e:String(e)}function lo(e,t,n){e=no(e,255),t=no(t,255),n=no(n,255);var o=Math.max(e,t,n),r=Math.min(e,t,n),a=0,i=0,l=(o+r)/2;if(o===r)i=0,a=0;else{var s=o-r;switch(i=l>.5?s/(2-o-r):s/(o+r),o){case e:a=(t-n)/s+(t<n?6:0);break;case t:a=(n-e)/s+2;break;case n:a=(e-t)/s+4}a/=6}return{h:a,s:i,l:l}}function so(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*n*(t-e):n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function uo(e,t,n){e=no(e,255),t=no(t,255),n=no(n,255);var o=Math.max(e,t,n),r=Math.min(e,t,n),a=0,i=o,l=o-r,s=0===o?0:l/o;if(o===r)a=0;else{switch(o){case e:a=(t-n)/l+(t<n?6:0);break;case t:a=(n-e)/l+2;break;case n:a=(e-t)/l+4}a/=6}return{h:a,s:s,v:i}}function co(e,t,n,o){var r=[io(Math.round(e).toString(16)),io(Math.round(t).toString(16)),io(Math.round(n).toString(16))];return o&&r[0].startsWith(r[0].charAt(1))&&r[1].startsWith(r[1].charAt(1))&&r[2].startsWith(r[2].charAt(1))?r[0].charAt(0)+r[1].charAt(0)+r[2].charAt(0):r.join("")}function po(e){return fo(e)/255}function fo(e){return parseInt(e,16)}var mo={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function ho(e){var t,n,o,r={r:0,g:0,b:0},a=1,i=null,l=null,s=null,u=!1,c=!1;return"string"==typeof e&&(e=function(e){if(0===(e=e.trim().toLowerCase()).length)return!1;var t=!1;if(mo[e])e=mo[e],t=!0;else if("transparent"===e)return{r:0,g:0,b:0,a:0,format:"name"};var n=yo.rgb.exec(e);if(n)return{r:n[1],g:n[2],b:n[3]};if(n=yo.rgba.exec(e))return{r:n[1],g:n[2],b:n[3],a:n[4]};if(n=yo.hsl.exec(e))return{h:n[1],s:n[2],l:n[3]};if(n=yo.hsla.exec(e))return{h:n[1],s:n[2],l:n[3],a:n[4]};if(n=yo.hsv.exec(e))return{h:n[1],s:n[2],v:n[3]};if(n=yo.hsva.exec(e))return{h:n[1],s:n[2],v:n[3],a:n[4]};if(n=yo.hex8.exec(e))return{r:fo(n[1]),g:fo(n[2]),b:fo(n[3]),a:po(n[4]),format:t?"name":"hex8"};if(n=yo.hex6.exec(e))return{r:fo(n[1]),g:fo(n[2]),b:fo(n[3]),format:t?"name":"hex"};if(n=yo.hex4.exec(e))return{r:fo(n[1]+n[1]),g:fo(n[2]+n[2]),b:fo(n[3]+n[3]),a:po(n[4]+n[4]),format:t?"name":"hex8"};if(n=yo.hex3.exec(e))return{r:fo(n[1]+n[1]),g:fo(n[2]+n[2]),b:fo(n[3]+n[3]),format:t?"name":"hex"};return!1}(e)),"object"==typeof e&&(wo(e.r)&&wo(e.g)&&wo(e.b)?(t=e.r,n=e.g,o=e.b,r={r:255*no(t,255),g:255*no(n,255),b:255*no(o,255)},u=!0,c="%"===String(e.r).substr(-1)?"prgb":"rgb"):wo(e.h)&&wo(e.s)&&wo(e.v)?(i=ao(e.s),l=ao(e.v),r=function(e,t,n){e=6*no(e,360),t=no(t,100),n=no(n,100);var o=Math.floor(e),r=e-o,a=n*(1-t),i=n*(1-r*t),l=n*(1-(1-r)*t),s=o%6;return{r:255*[n,i,a,a,l,n][s],g:255*[l,n,n,i,a,a][s],b:255*[a,a,l,n,n,i][s]}}(e.h,i,l),u=!0,c="hsv"):wo(e.h)&&wo(e.s)&&wo(e.l)&&(i=ao(e.s),s=ao(e.l),r=function(e,t,n){var o,r,a;if(e=no(e,360),t=no(t,100),n=no(n,100),0===t)r=n,a=n,o=n;else{var i=n<.5?n*(1+t):n+t-n*t,l=2*n-i;o=so(l,i,e+1/3),r=so(l,i,e),a=so(l,i,e-1/3)}return{r:255*o,g:255*r,b:255*a}}(e.h,i,s),u=!0,c="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(a=e.a)),a=ro(a),{ok:u,format:e.format||c,r:Math.min(255,Math.max(r.r,0)),g:Math.min(255,Math.max(r.g,0)),b:Math.min(255,Math.max(r.b,0)),a:a}}var vo="(?:".concat("[-\\+]?\\d*\\.\\d+%?",")|(?:").concat("[-\\+]?\\d+%?",")"),go="[\\s|\\(]+(".concat(vo,")[,|\\s]+(").concat(vo,")[,|\\s]+(").concat(vo,")\\s*\\)?"),bo="[\\s|\\(]+(".concat(vo,")[,|\\s]+(").concat(vo,")[,|\\s]+(").concat(vo,")[,|\\s]+(").concat(vo,")\\s*\\)?"),yo={CSS_UNIT:new RegExp(vo),rgb:new RegExp("rgb"+go),rgba:new RegExp("rgba"+bo),hsl:new RegExp("hsl"+go),hsla:new RegExp("hsla"+bo),hsv:new RegExp("hsv"+go),hsva:new RegExp("hsva"+bo),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function wo(e){return Boolean(yo.CSS_UNIT.exec(String(e)))}var xo=function(){function e(t,n){var o;if(void 0===t&&(t=""),void 0===n&&(n={}),t instanceof e)return t;"number"==typeof t&&(t=function(e){return{r:e>>16,g:(65280&e)>>8,b:255&e}}(t)),this.originalInput=t;var r=ho(t);this.originalInput=t,this.r=r.r,this.g=r.g,this.b=r.b,this.a=r.a,this.roundA=Math.round(100*this.a)/100,this.format=null!==(o=n.format)&&void 0!==o?o:r.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=r.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},e.prototype.getLuminance=function(){var e=this.toRgb(),t=e.r/255,n=e.g/255,o=e.b/255;return.2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))+.0722*(o<=.03928?o/12.92:Math.pow((o+.055)/1.055,2.4))},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(e){return this.a=ro(e),this.roundA=Math.round(100*this.a)/100,this},e.prototype.toHsv=function(){var e=uo(this.r,this.g,this.b);return{h:360*e.h,s:e.s,v:e.v,a:this.a}},e.prototype.toHsvString=function(){var e=uo(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),o=Math.round(100*e.v);return 1===this.a?"hsv(".concat(t,", ").concat(n,"%, ").concat(o,"%)"):"hsva(".concat(t,", ").concat(n,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var e=lo(this.r,this.g,this.b);return{h:360*e.h,s:e.s,l:e.l,a:this.a}},e.prototype.toHslString=function(){var e=lo(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),o=Math.round(100*e.l);return 1===this.a?"hsl(".concat(t,", ").concat(n,"%, ").concat(o,"%)"):"hsla(".concat(t,", ").concat(n,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(e){return void 0===e&&(e=!1),co(this.r,this.g,this.b,e)},e.prototype.toHexString=function(e){return void 0===e&&(e=!1),"#"+this.toHex(e)},e.prototype.toHex8=function(e){return void 0===e&&(e=!1),function(e,t,n,o,r){var a,i=[io(Math.round(e).toString(16)),io(Math.round(t).toString(16)),io(Math.round(n).toString(16)),io((a=o,Math.round(255*parseFloat(a)).toString(16)))];return r&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))&&i[3].startsWith(i[3].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0):i.join("")}(this.r,this.g,this.b,this.a,e)},e.prototype.toHex8String=function(e){return void 0===e&&(e=!1),"#"+this.toHex8(e)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var e=Math.round(this.r),t=Math.round(this.g),n=Math.round(this.b);return 1===this.a?"rgb(".concat(e,", ").concat(t,", ").concat(n,")"):"rgba(".concat(e,", ").concat(t,", ").concat(n,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var e=function(e){return"".concat(Math.round(100*no(e,255)),"%")};return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var e=function(e){return Math.round(100*no(e,255))};return 1===this.a?"rgb(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%)"):"rgba(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(0===this.a)return"transparent";if(this.a<1)return!1;for(var e="#"+co(this.r,this.g,this.b,!1),t=0,n=Object.entries(mo);t<n.length;t++){var o=n[t],r=o[0];if(e===o[1])return r}return!1},e.prototype.toString=function(e){var t=Boolean(e);e=null!=e?e:this.format;var n=!1,o=this.a<1&&this.a>=0;return t||!o||!e.startsWith("hex")&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this.a?this.toName():this.toRgbString()},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=oo(n.l),new e(n)},e.prototype.brighten=function(t){void 0===t&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-t/100*255))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-t/100*255))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-t/100*255))),new e(n)},e.prototype.darken=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=oo(n.l),new e(n)},e.prototype.tint=function(e){return void 0===e&&(e=10),this.mix("white",e)},e.prototype.shade=function(e){return void 0===e&&(e=10),this.mix("black",e)},e.prototype.desaturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=oo(n.s),new e(n)},e.prototype.saturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=oo(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),o=(n.h+t)%360;return n.h=o<0?360+o:o,new e(n)},e.prototype.mix=function(t,n){void 0===n&&(n=50);var o=this.toRgb(),r=new e(t).toRgb(),a=n/100;return new e({r:(r.r-o.r)*a+o.r,g:(r.g-o.g)*a+o.g,b:(r.b-o.b)*a+o.b,a:(r.a-o.a)*a+o.a})},e.prototype.analogous=function(t,n){void 0===t&&(t=6),void 0===n&&(n=30);var o=this.toHsl(),r=360/n,a=[this];for(o.h=(o.h-(r*t>>1)+720)%360;--t;)o.h=(o.h+r)%360,a.push(new e(o));return a},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){void 0===t&&(t=6);for(var n=this.toHsv(),o=n.h,r=n.s,a=n.v,i=[],l=1/t;t--;)i.push(new e({h:o,s:r,v:a})),a=(a+l)%1;return i},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),o=new e(t).toRgb();return new e({r:o.r+(n.r-o.r)*n.a,g:o.g+(n.g-o.g)*n.a,b:o.b+(n.b-o.b)*n.a})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),o=n.h,r=[this],a=360/t,i=1;i<t;i++)r.push(new e({h:(o+i*a)%360,s:n.s,l:n.l}));return r},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}();function ko(e,t=20){return e.mix("#141414",t).toString()}const Eo=["disabled","autofocus","type"];var So=D(m(s(l({},{name:"ElButton"}),{props:eo,emits:to,setup(e,{expose:t,emit:n}){const o=e,r=Oe(),a=A(Ye,void 0),i=Me("button"),l=P("button"),{form:s}=d(),u=f(k((()=>null==a?void 0:a.size))),c=p(),m=H(),h=k((()=>o.type||(null==a?void 0:a.type)||"")),b=k((()=>{var e,t,n;return null!=(n=null!=(t=o.autoInsertSpace)?t:null==(e=i.value)?void 0:e.autoInsertSpace)&&n})),y=k((()=>{var e;const t=null==(e=r.default)?void 0:e.call(r);if(b.value&&1===(null==t?void 0:t.length)){const e=t[0];if((null==e?void 0:e.type)===ce){const t=e.children;return/^\p{Unified_Ideograph}{2}$/u.test(t.trim())}}return!1})),w=function(e){const t=p();return k((()=>{let n={};const o=e.color;if(o){const r=new xo(o),a=e.dark?r.tint(20).toString():ko(r,20);if(e.plain)n={"--el-button-bg-color":e.dark?ko(r,90):r.tint(90).toString(),"--el-button-text-color":o,"--el-button-border-color":e.dark?ko(r,50):r.tint(50).toString(),"--el-button-hover-text-color":"var(--el-color-white)","--el-button-hover-bg-color":o,"--el-button-hover-border-color":o,"--el-button-active-bg-color":a,"--el-button-active-text-color":"var(--el-color-white)","--el-button-active-border-color":a},t.value&&(n["--el-button-disabled-bg-color"]=e.dark?ko(r,90):r.tint(90).toString(),n["--el-button-disabled-text-color"]=e.dark?ko(r,50):r.tint(50).toString(),n["--el-button-disabled-border-color"]=e.dark?ko(r,80):r.tint(80).toString());else{const i=e.dark?ko(r,30):r.tint(30).toString(),l=r.isDark()?"var(--el-color-white)":"var(--el-color-black)";if(n={"--el-button-bg-color":o,"--el-button-text-color":l,"--el-button-border-color":o,"--el-button-hover-bg-color":i,"--el-button-hover-text-color":l,"--el-button-hover-border-color":i,"--el-button-active-bg-color":a,"--el-button-active-border-color":a},t.value){const t=e.dark?ko(r,50):r.tint(50).toString();n["--el-button-disabled-bg-color"]=t,n["--el-button-disabled-text-color"]=e.dark?"rgba(255, 255, 255, 0.5)":"var(--el-color-white)",n["--el-button-disabled-border-color"]=t}}}return n}))}(o),x=e=>{"reset"===o.nativeType&&(null==s||s.resetFields()),n("click",e)};return t({ref:m,size:u,type:h,disabled:c,shouldAddSpace:y}),(e,t)=>(v(),g("button",{ref_key:"_ref",ref:m,class:G([I(l).b(),I(l).m(I(h)),I(l).m(I(u)),I(l).is("disabled",I(c)),I(l).is("loading",e.loading),I(l).is("plain",e.plain),I(l).is("round",e.round),I(l).is("circle",e.circle)]),disabled:I(c)||e.loading,autofocus:e.autofocus,type:e.nativeType,style:q(I(w)),onClick:x},[e.loading?(v(),g(X,{key:0},[e.$slots.loading?re(e.$slots,"loading",{key:0}):(v(),j(I(Ce),{key:1,class:G(I(l).is("loading"))},{default:N((()=>[(v(),j(ae(e.loadingIcon)))])),_:1},8,["class"]))],2112)):e.icon||e.$slots.icon?(v(),j(I(Ce),{key:1},{default:N((()=>[e.icon?(v(),j(ae(e.icon),{key:0})):re(e.$slots,"icon",{key:1})])),_:3})):ie("v-if",!0),e.$slots.default?(v(),g("span",{key:2,class:G({[I(l).em("text","expand")]:I(y)})},[re(e.$slots,"default")],2)):ie("v-if",!0)],14,Eo))}})),[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button.vue"]]);const Oo={size:eo.size,type:eo.type};var Mo=D(m(s(l({},{name:"ElButtonGroup"}),{props:Oo,setup(e){const t=e;L(Ye,te({size:$(t,"size"),type:$(t,"type")}));const n=P("button");return(e,t)=>(v(),g("div",{class:G(`${I(n).b("group")}`)},[re(e.$slots,"default")],2))}})),[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button-group.vue"]]);const Co=le(So,{ButtonGroup:Mo});Te(Mo);const To=e=>{const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t},Ao=(e,t)=>{for(const n of e)if(!Io(n,t))return n},Io=(e,t)=>{if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1},Ro=(e,t)=>{if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&(e=>e instanceof HTMLInputElement&&"select"in e)(e)&&t&&e.select()}};function Fo(e,t){const n=[...e],o=e.indexOf(t);return-1!==o&&n.splice(o,1),n}const _o=(()=>{let e=[];return{push:t=>{const n=e[0];n&&t!==n&&n.pause(),e=Fo(e,t),e.unshift(t)},remove:t=>{var n,o;e=Fo(e,t),null==(o=null==(n=e[0])?void 0:n.resume)||o.call(n)}}})(),Bo={cancelable:!0,bubbles:!1},Lo=Symbol("elFocusTrap");var Po=D(m({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean},emits:["mountOnFocus","unmountOnFocus"],setup(e,{emit:t}){const n=H(),o=H(null);let r,a;const i={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},l=t=>{if(!e.loop&&!e.trapped)return;if(i.paused)return;const{key:n,altKey:o,ctrlKey:r,metaKey:a,currentTarget:l,shiftKey:s}=t,{loop:u}=e,c=n===F.tab&&!o&&!r&&!a,p=document.activeElement;if(c&&p){const e=l,[n,o]=(e=>{const t=To(e);return[Ao(t,e),Ao(t.reverse(),e)]})(e);n&&o?s||p!==o?s&&p===n&&(t.preventDefault(),u&&Ro(o,!0)):(t.preventDefault(),u&&Ro(n,!0)):p===e&&t.preventDefault()}};L(Lo,{focusTrapRef:o,onKeydown:l});const s=e=>{t("mountOnFocus",e)},u=e=>t("unmountOnFocus",e),c=e=>{const t=I(o);if(i.paused||!t)return;const n=e.target;n&&t.contains(n)?a=n:Ro(a,!0)},p=e=>{const t=I(o);!i.paused&&t&&(t.contains(e.relatedTarget)||Ro(a,!0))},d=()=>{document.removeEventListener("focusin",c),document.removeEventListener("focusout",p)};return S((()=>{const t=I(o);if(t){_o.push(i);const e=document.activeElement;r=e;if(!t.contains(e)){const n=new Event("focus-trap.focus-on-mount",Bo);t.addEventListener("focus-trap.focus-on-mount",s),t.dispatchEvent(n),n.defaultPrevented||ee((()=>{((e,t=!1)=>{const n=document.activeElement;for(const o of e)if(Ro(o,t),document.activeElement!==n)return})(To(t),!0),document.activeElement===e&&Ro(t)}))}}E((()=>e.trapped),(e=>{e?(document.addEventListener("focusin",c),document.addEventListener("focusout",p)):d()}),{immediate:!0})})),R((()=>{d();const e=I(o);if(e){e.removeEventListener("focus-trap.focus-on-mount",s);const t=new Event("focus-trap.focus-on-unmount",Bo);e.addEventListener("focus-trap.focus-on-unmount",u),e.dispatchEvent(t),t.defaultPrevented||Ro(null!=r?r:document.body,!0),e.removeEventListener("focus-trap.focus-on-unmount",s),_o.remove(i)}})),{focusTrapRef:n,forwardRef:o,onKeydown:l}}}),[["render",function(e,t,n,o,r,a){return re(e.$slots,"default")}],["__file","/home/runner/work/element-plus/element-plus/packages/components/focus-trap/src/focus-trap.vue"]]);var Ho=D(m({inheritAttrs:!1}),[["render",function(e,t,n,o,r,a){return re(e.$slots,"default")}],["__file","/home/runner/work/element-plus/element-plus/packages/components/collection/src/collection.vue"]]);var zo=D(m({name:"ElCollectionItem",inheritAttrs:!1}),[["render",function(e,t,n,o,r,a){return re(e.$slots,"default")}],["__file","/home/runner/work/element-plus/element-plus/packages/components/collection/src/collection-item.vue"]]);const $o=e=>{const t=`El${e}Collection`,n=`${t}Item`,o=Symbol(t),r=Symbol(n),a=s(l({},Ho),{name:t,setup(){const e=H(null),t=new Map;L(o,{itemMap:t,getItems:()=>{const n=I(e);if(!n)return[];const o=Array.from(n.querySelectorAll("[data-el-collection-item]"));return[...t.values()].sort(((e,t)=>o.indexOf(e.ref)-o.indexOf(t.ref)))},collectionRef:e})}}),i=s(l({},zo),{name:n,setup(e,{attrs:t}){const n=H(null),a=A(o,void 0);L(r,{collectionItemRef:n}),S((()=>{const e=I(n);e&&a.itemMap.set(e,l({ref:e},t))})),R((()=>{const e=I(n);a.itemMap.delete(e)}))}});return{COLLECTION_INJECTION_KEY:o,COLLECTION_ITEM_INJECTION_KEY:r,ElCollection:a,ElCollectionItem:i}},Do=B({style:{type:x([String,Array,Object])},currentTabId:{type:x(String)},defaultCurrentTabId:String,loop:Boolean,dir:{type:String,values:["ltr","rtl"],default:"ltr"},orientation:{type:x(String)},onBlur:Function,onFocus:Function,onMousedown:Function}),{ElCollection:jo,ElCollectionItem:No,COLLECTION_INJECTION_KEY:Ko,COLLECTION_ITEM_INJECTION_KEY:Wo}=$o("RovingFocusGroup"),Go=Symbol("elRovingFocusGroup"),qo=Symbol("elRovingFocusGroupItem"),Yo={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"},Vo=(e,t,n)=>{const o=((e,t)=>{if("rtl"!==t)return e;switch(e){case F.right:return F.left;case F.left:return F.right;default:return e}})(e.key,n);if(!("vertical"===t&&[F.left,F.right].includes(o)||"horizontal"===t&&[F.up,F.down].includes(o)))return Yo[o]},Uo=e=>{const{activeElement:t}=document;for(const n of e){if(n===t)return;if(n.focus(),t!==document.activeElement)return}},Xo={bubbles:!1,cancelable:!0},Jo=m({name:"ElRovingFocusGroupImpl",inheritAttrs:!1,props:Do,emits:["currentTabIdChange","entryFocus"],setup(e,{emit:t}){var n;const o=H(null!=(n=e.currentTabId||e.defaultCurrentTabId)?n:null),r=H(!1),a=H(!1),i=H(null),{getItems:l}=A(Ko,void 0),s=k((()=>[{outline:"none"},e.style])),u=Pe((t=>{var n;null==(n=e.onMousedown)||n.call(e,t)}),(()=>{a.value=!0})),c=Pe((t=>{var n;null==(n=e.onFocus)||n.call(e,t)}),(e=>{const t=!I(a),{target:n,currentTarget:i}=e;if(n===i&&t&&!I(r)){const e=new Event("rovingFocusGroup.entryFocus",Xo);if(null==i||i.dispatchEvent(e),!e.defaultPrevented){const e=l().filter((e=>e.focusable)),t=[e.find((e=>e.active)),e.find((e=>e.id===I(o))),...e].filter(Boolean).map((e=>e.ref));Uo(t)}}a.value=!1})),p=Pe((t=>{var n;null==(n=e.onBlur)||n.call(e,t)}),(()=>{r.value=!1})),d=(...e)=>{t("entryFocus",...e)};L(Go,{currentTabbedId:ke(o),loop:$(e,"loop"),tabIndex:k((()=>I(r)?-1:0)),rovingFocusGroupRef:i,rovingFocusGroupRootStyle:s,orientation:$(e,"orientation"),dir:$(e,"dir"),onItemFocus:e=>{t("currentTabIdChange",e)},onItemShiftTab:()=>{r.value=!0},onBlur:p,onFocus:c,onMousedown:u}),E((()=>e.currentTabId),(e=>{o.value=null!=e?e:null})),S((()=>{const e=I(i);Be(e,"rovingFocusGroup.entryFocus",d)})),R((()=>{const e=I(i);Le(e,"rovingFocusGroup.entryFocus",d)}))}});var Zo=D(m({name:"ElRovingFocusGroup",components:{ElFocusGroupCollection:jo,ElRovingFocusGroupImpl:D(Jo,[["render",function(e,t,n,o,r,a){return re(e.$slots,"default")}],["__file","/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-group-impl.vue"]])}}),[["render",function(e,t,n,o,r,a){const i=V("el-roving-focus-group-impl"),l=V("el-focus-group-collection");return v(),j(l,null,{default:N((()=>[U(i,Ae(Ie(e.$attrs)),{default:N((()=>[re(e.$slots,"default")])),_:3},16)])),_:3})}],["__file","/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-group.vue"]]);var Qo=D(m({components:{ElRovingFocusCollectionItem:No},props:{focusable:{type:Boolean,default:!0},active:{type:Boolean,default:!1}},emits:["mousedown","focus","keydown"],setup(e,{emit:t}){const{currentTabbedId:n,loop:o,onItemFocus:r,onItemShiftTab:a}=A(Go,void 0),{getItems:i}=A(Ko,void 0),l=tt(),s=H(null),u=Pe((e=>{t("mousedown",e)}),(t=>{e.focusable?r(I(l)):t.preventDefault()})),c=Pe((e=>{t("focus",e)}),(()=>{r(I(l))})),p=Pe((e=>{t("keydown",e)}),(e=>{const{key:t,shiftKey:n,target:r,currentTarget:l}=e;if(t===F.tab&&n)return void a();if(r!==l)return;const s=Vo(e);if(s){e.preventDefault();let t=i().filter((e=>e.focusable)).map((e=>e.ref));switch(s){case"last":t.reverse();break;case"prev":case"next":{"prev"===s&&t.reverse();const e=t.indexOf(l);t=o.value?(c=e+1,(u=t).map(((e,t)=>u[(t+c)%u.length]))):t.slice(e+1);break}}ee((()=>{Uo(t)}))}var u,c})),d=k((()=>n.value===I(l)));return L(qo,{rovingFocusGroupItemRef:s,tabIndex:k((()=>I(d)?0:-1)),handleMousedown:u,handleFocus:c,handleKeydown:p}),{id:l,handleKeydown:p,handleFocus:c,handleMousedown:u}}}),[["render",function(e,t,n,o,r,a){const i=V("el-roving-focus-collection-item");return v(),j(i,{id:e.id,focusable:e.focusable,active:e.active},{default:N((()=>[re(e.$slots,"default")])),_:3},8,["id","focusable","active"])}],["__file","/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-item.vue"]]);const er=B({trigger:Dn.trigger,effect:s(l({},$n.effect),{default:"light"}),type:{type:x(String)},placement:{type:x(String),default:"bottom"},popperOptions:{type:x(Object),default:()=>({})},size:{type:String,default:""},splitButton:Boolean,hideOnClick:{type:Boolean,default:!0},loop:{type:Boolean},showTimeout:{type:Number,default:150},hideTimeout:{type:Number,default:150},tabindex:{type:x([Number,String]),default:0},maxHeight:{type:x([Number,String]),default:""},popperClass:{type:String,default:""},disabled:{type:Boolean,default:!1},buttonProps:{type:x(Object)}}),tr=B({command:{type:[Object,String,Number],default:()=>({})},disabled:Boolean,divided:Boolean,textValue:String,icon:{type:Ee}}),nr=B({onKeydown:{type:x(Function)}}),or=[F.down,F.pageDown,F.home],rr=[F.up,F.pageUp,F.end],ar=[...or,...rr],{ElCollection:ir,ElCollectionItem:lr,COLLECTION_INJECTION_KEY:sr,COLLECTION_ITEM_INJECTION_KEY:ur}=$o("Dropdown"),cr=Symbol("elDropdown"),{ButtonGroup:pr}=Co;var dr=D(m({name:"ElDropdown",components:{ElButton:Co,ElFocusTrap:Po,ElButtonGroup:pr,ElScrollbar:ft,ElDropdownCollection:ir,ElTooltip:Qn,ElRovingFocusGroup:Zo,ElIcon:Ce,ArrowDown:je},props:er,emits:["visible-change","click","command"],setup(e,{emit:t}){const n=O(),o=P("dropdown"),r=H(),a=H(),i=H(null),l=H(null),s=H(null),u=H(null),c=H(!1),p=k((()=>({maxHeight:Z(e.maxHeight)}))),d=k((()=>[o.m(h.value)]));function m(){var e;null==(e=i.value)||e.onClose()}const h=f();L(cr,{contentRef:l,isUsingKeyboard:c,onItemEnter:function(){},onItemLeave:function(){const e=I(l);null==e||e.focus(),u.value=null}}),L("elDropdown",{instance:n,dropdownSize:h,handleClick:function(){m()},commandHandler:function(...e){t("command",...e)},trigger:$(e,"trigger"),hideOnClick:$(e,"hideOnClick")});return{ns:o,scrollbar:s,wrapStyle:p,dropdownTriggerKls:d,dropdownSize:h,currentTabId:u,handleCurrentTabIdChange:function(e){u.value=e},handlerMainButtonClick:e=>{t("click",e)},handleEntryFocus:function(e){c.value||(e.preventDefault(),e.stopImmediatePropagation())},handleClose:m,handleOpen:function(){var e;null==(e=i.value)||e.onOpen()},onMountOnFocus:e=>{var t,n;e.preventDefault(),null==(n=null==(t=l.value)?void 0:t.focus)||n.call(t,{preventScroll:!0})},popperRef:i,triggeringElementRef:r,referenceElementRef:a}}}),[["render",function(e,t,n,o,r,a){var i;const l=V("el-dropdown-collection"),s=V("el-roving-focus-group"),u=V("el-focus-trap"),c=V("el-scrollbar"),p=V("el-tooltip"),d=V("el-button"),f=V("arrow-down"),m=V("el-icon"),h=V("el-button-group");return v(),g("div",{class:G([e.ns.b(),e.ns.is("disabled",e.disabled)])},[U(p,{ref:"popperRef",effect:e.effect,"fallback-placements":["bottom","top"],"popper-options":e.popperOptions,"gpu-acceleration":!1,"hide-after":"hover"===e.trigger?e.hideTimeout:0,"manual-mode":!0,placement:e.placement,"popper-class":[e.ns.e("popper"),e.popperClass],"reference-element":null==(i=e.referenceElementRef)?void 0:i.$el,trigger:e.trigger,"show-after":"hover"===e.trigger?e.showTimeout:0,"stop-popper-mouse-event":!1,"virtual-ref":e.triggeringElementRef,"virtual-triggering":e.splitButton,disabled:e.disabled,"append-to-body":"",pure:"",transition:`${e.ns.namespace.value}-zoom-in-top`,persistent:"",onShow:t[0]||(t[0]=t=>e.$emit("visible-change",!0)),onHide:t[1]||(t[1]=t=>e.$emit("visible-change",!1))},Re({content:N((()=>[U(c,{ref:"scrollbar","wrap-style":e.wrapStyle,tag:"div","view-class":e.ns.e("list")},{default:N((()=>[U(u,{trapped:"",onMountOnFocus:e.onMountOnFocus},{default:N((()=>[U(s,{loop:e.loop,"current-tab-id":e.currentTabId,orientation:"horizontal",onCurrentTabIdChange:e.handleCurrentTabIdChange,onEntryFocus:e.handleEntryFocus},{default:N((()=>[U(l,null,{default:N((()=>[re(e.$slots,"dropdown")])),_:3})])),_:3},8,["loop","current-tab-id","onCurrentTabIdChange","onEntryFocus"])])),_:3},8,["onMountOnFocus"])])),_:3},8,["wrap-style","view-class"])])),_:2},[e.splitButton?void 0:{name:"default",fn:N((()=>[b("div",{class:G(e.dropdownTriggerKls)},[re(e.$slots,"default")],2)]))}]),1032,["effect","popper-options","hide-after","placement","popper-class","reference-element","trigger","show-after","virtual-ref","virtual-triggering","disabled","transition"]),e.splitButton?(v(),j(h,{key:0},{default:N((()=>[U(d,me({ref:"referenceElementRef"},e.buttonProps,{size:e.dropdownSize,type:e.type,disabled:e.disabled,onClick:e.handlerMainButtonClick}),{default:N((()=>[re(e.$slots,"default")])),_:3},16,["size","type","disabled","onClick"]),U(d,me({ref:"triggeringElementRef"},e.buttonProps,{size:e.dropdownSize,type:e.type,class:e.ns.e("caret-button"),disabled:e.disabled}),{default:N((()=>[U(m,{class:G(e.ns.e("icon"))},{default:N((()=>[U(f)])),_:1},8,["class"])])),_:1},16,["size","type","class","disabled"])])),_:3})):ie("v-if",!0)],2)}],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown.vue"]]);const fr=m({name:"DropdownItemImpl",components:{ElIcon:Ce},props:tr,emits:["pointermove","pointerleave","click","clickimpl"],setup(e,{emit:t}){const n=P("dropdown"),{collectionItemRef:o}=A(ur,void 0),{collectionItemRef:r}=A(Wo,void 0),{rovingFocusGroupItemRef:a,tabIndex:i,handleFocus:l,handleKeydown:s,handleMousedown:u}=A(qo,void 0);return{ns:n,itemRef:qe(o,r,a),dataset:{"data-el-collection-item":""},tabIndex:i,handleFocus:l,handleKeydown:Pe((e=>{const{code:n}=e;if(n===F.enter||n===F.space)return e.preventDefault(),e.stopImmediatePropagation(),t("clickimpl",e),!0}),s),handleMousedown:u}}}),mr=["aria-disabled","tabindex"];const hr=()=>{const e=A("elDropdown",{}),t=k((()=>null==e?void 0:e.dropdownSize));return{elDropdown:e,_elDropdownSize:t}};var vr=D(m({name:"ElDropdownItem",components:{ElDropdownCollectionItem:lr,ElRovingFocusItem:Qo,ElDropdownItemImpl:D(fr,[["render",function(e,t,n,o,r,a){const i=V("el-icon");return v(),g(X,null,[e.divided?(v(),g("li",me({key:0,class:e.ns.bem("menu","item","divided")},e.$attrs),null,16)):ie("v-if",!0),b("li",me({ref:e.itemRef},l(l({},e.dataset),e.$attrs),{"aria-disabled":e.disabled,class:[e.ns.be("menu","item"),e.ns.is("disabled",e.disabled)],tabindex:e.tabIndex,role:"menuitem",onClick:t[0]||(t[0]=t=>e.$emit("clickimpl",t)),onFocus:t[1]||(t[1]=(...t)=>e.handleFocus&&e.handleFocus(...t)),onKeydown:t[2]||(t[2]=(...t)=>e.handleKeydown&&e.handleKeydown(...t)),onMousedown:t[3]||(t[3]=(...t)=>e.handleMousedown&&e.handleMousedown(...t)),onPointermove:t[4]||(t[4]=t=>e.$emit("pointermove",t)),onPointerleave:t[5]||(t[5]=t=>e.$emit("pointerleave",t))}),[e.icon?(v(),j(i,{key:0},{default:N((()=>[(v(),j(ae(e.icon)))])),_:1})):ie("v-if",!0),re(e.$slots,"default")],16,mr)],64)}],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-item-impl.vue"]])},inheritAttrs:!1,props:tr,emits:["pointermove","pointerleave","click"],setup(e,{emit:t,attrs:n}){const{elDropdown:o}=hr(),r=O(),a=H(null),i=k((()=>{var e,t;return null!=(t=null==(e=I(a))?void 0:e.textContent)?t:""})),{onItemEnter:s,onItemLeave:u}=A(cr,void 0),c=Pe((e=>(t("pointermove",e),e.defaultPrevented)),He((t=>{var n;e.disabled?u(t):(s(t),t.defaultPrevented||null==(n=t.currentTarget)||n.focus())}))),p=Pe((e=>(t("pointerleave",e),e.defaultPrevented)),He((e=>{u(e)})));return{handleClick:Pe((e=>(t("click",e),e.defaultPrevented)),(t=>{var n,a,i;e.disabled?t.stopImmediatePropagation():((null==(n=null==o?void 0:o.hideOnClick)?void 0:n.value)&&(null==(a=o.handleClick)||a.call(o)),null==(i=o.commandHandler)||i.call(o,e.command,r,t))})),handlePointerMove:c,handlePointerLeave:p,textContent:i,propsAndAttrs:k((()=>l(l({},e),n)))}}}),[["render",function(e,t,n,o,r,a){var i;const l=V("el-dropdown-item-impl"),s=V("el-roving-focus-item"),u=V("el-dropdown-collection-item");return v(),j(u,{disabled:e.disabled,"text-value":null!=(i=e.textValue)?i:e.textContent},{default:N((()=>[U(s,{focusable:!e.disabled},{default:N((()=>[U(l,me(e.propsAndAttrs,{onPointerleave:e.handlePointerLeave,onPointermove:e.handlePointerMove,onClickimpl:e.handleClick}),{default:N((()=>[re(e.$slots,"default")])),_:3},16,["onPointerleave","onPointermove","onClickimpl"])])),_:3},8,["focusable"])])),_:3},8,["disabled","text-value"])}],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-item.vue"]]);var gr=D(m({name:"ElDropdownMenu",props:nr,setup(e){const t=P("dropdown"),{_elDropdownSize:n}=hr(),o=n.value,{focusTrapRef:r,onKeydown:a}=A(Lo,void 0),{contentRef:i}=A(cr,void 0),{collectionRef:l,getItems:s}=A(sr,void 0),{rovingFocusGroupRef:u,rovingFocusGroupRootStyle:c,tabIndex:p,onBlur:d,onFocus:f,onMousedown:m}=A(Go,void 0),{collectionRef:h}=A(Ko,void 0),v=k((()=>[t.b("menu"),t.bm("menu",null==o?void 0:o.value)])),g=qe(i,l,r,u,h),b=Pe((t=>{var n;null==(n=e.onKeydown)||n.call(e,t)}),(e=>{const{currentTarget:t,code:n,target:o}=e;if(t.contains(o),F.tab===n&&e.stopImmediatePropagation(),e.preventDefault(),o!==I(i))return;if(!ar.includes(n))return;const r=s().filter((e=>!e.disabled)).map((e=>e.ref));rr.includes(n)&&r.reverse(),Uo(r)}));return{size:o,rovingFocusGroupRootStyle:c,tabIndex:p,dropdownKls:v,dropdownListWrapperRef:g,handleKeydown:e=>{b(e),a(e)},onBlur:d,onFocus:f,onMousedown:m}}}),[["render",function(e,t,n,o,r,a){return v(),g("ul",{ref:e.dropdownListWrapperRef,class:G(e.dropdownKls),style:q(e.rovingFocusGroupRootStyle),tabindex:-1,role:"menu",onBlur:t[0]||(t[0]=(...t)=>e.onBlur&&e.onBlur(...t)),onFocus:t[1]||(t[1]=(...t)=>e.onFocus&&e.onFocus(...t)),onKeydown:t[2]||(t[2]=(...t)=>e.handleKeydown&&e.handleKeydown(...t)),onMousedown:t[3]||(t[3]=(...t)=>e.onMousedown&&e.onMousedown(...t))},[re(e.$slots,"default")],38)}],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-menu.vue"]]);const br=le(dr,{DropdownItem:vr,DropdownMenu:gr}),yr=Te(vr),wr=Te(gr);const xr=m({setup(e){const t=Fe(),n=k((()=>t.themeList)),o=k((()=>t.activeThemeName)),r=e=>{t.setTheme(e)};return(e,t)=>{const a=Ce,i=Qn,l=yr,s=wr,u=br;return v(),j(u,{trigger:"click",onCommand:r},{dropdown:N((()=>[U(s,null,{default:N((()=>[(v(!0),g(X,null,_e(I(n),((e,t)=>(v(),j(l,{key:t,disabled:I(o)===e.name,command:e.name},{default:N((()=>[b("span",null,be(e.title),1)])),_:2},1032,["disabled","command"])))),128))])),_:1})])),default:N((()=>[U(i,{effect:"dark",content:"主题模式",placement:"bottom"},{default:N((()=>[U(a,{size:20},{default:N((()=>[U(I(Ge))])),_:1})])),_:1})])),_:1})}}});export{Qn as E,xo as T,xr as _,Le as a,je as b,yr as c,wr as d,br as e,ft as f,Co as g,Be as o};
|