import{q as at,v as Mt,x as ru,y as He,z as Rt,A as iu,N as tt,B as Pt,e as $,i as De,r as P,C as fe,D as Fe,u as a,w as oe,j as Re,l as Nn,E as yt,F as ct,G as vl,k as Qt,f as uu,p as sa,d as se,o as k,c as L,H as Q,I as vt,J as Xt,K as Z,L as K,M as Ie,a as x,O as S,P as Ve,Q as Y,R as Xe,S as de,T as Pe,U as j,V as Ye,W as St,X as Bo,s as Ht,n as ke,Y as Mn,Z as Oe,_ as $e,$ as rt,a0 as cu,a1 as xs,a2 as qs,a3 as _t,a4 as Ee,a5 as ml,m as Us,a6 as du,a7 as ot,a8 as xe,a9 as Jn,aa as za,ab as fu,ac as al,ad as Ys,ae as pu,af as hl,h as Se,ag as vu,ah as mu,ai as Va,aj as hu,t as Gs,ak as wo,al as Nl,am as gu,an as Ha,ao as Rn,ap as bu,aq as yu,ar as Cu,as as wu,at as pn,au as Zn}from"./@vue.51d7f2d8.js";import{i as je,a as We,b as It,t as ku,u as yn,c as zt,d as Xs,o as ra,e as Qn,r as Su,f as Eu,g as $u,h as Tu,j as Ka,k as Nu}from"./@vueuse.ec90c285.js";import{l as vo,c as ia,a as Do,b as rn,s as Js,i as Zs,w as ua,d as Qs,v as Pu,h as Iu,e as Mu,f as Ou,g as gl,j as mo,k as eo,m as to,n as ln,o as no,p as Au,q as Bu,z as Du,r as er,t as Lu,u as Ru,x as _u,y as tr,A as Fu,B as zu,C as Wa,D as nr,E as Vu,F as Hu,G as Ku}from"./@element-plus.c80b8015.js";import{g as Tt,s as Wu,f as or,i as an,d as mn,a as oo,c as Wl,b as ja,t as Pl,p as sl}from"./lodash-es.29c53eac.js";import{d as Me,l as ju,a as xu,c as qu,w as Uu,b as Yu,e as Gu,i as Xu,f as Ju}from"./dayjs.e873ead7.js";import{S as Zu}from"./async-validator.fb49d0f5.js";import{T as lr}from"./@ctrl.82a509e0.js";import{e as Qu}from"./escape-html.e5dfadb9.js";import{Y as ec}from"./normalize-wheel-es.8aeb3683.js";const tc='a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])',nc=e=>getComputedStyle(e).position==="fixed"?!1:e.offsetParent!==null,xa=e=>Array.from(e.querySelectorAll(tc)).filter(t=>oc(t)&&nc(t)),oc=e=>{if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute("tabIndex")!==null)return!0;if(e.disabled)return!1;switch(e.nodeName){case"A":return!!e.href&&e.rel!=="ignore";case"INPUT":return!(e.type==="hidden"||e.type==="file");case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},jo=function(e,t,...n){let o;t.includes("mouse")||t.includes("click")?o="MouseEvents":t.includes("key")?o="KeyboardEvent":o="HTMLEvents";const l=document.createEvent(o);return l.initEvent(t,...n),e.dispatchEvent(l),e},Nt=(e,t,n,o=!1)=>{e&&t&&n&&(e==null||e.addEventListener(t,n,o))},xt=(e,t,n,o=!1)=>{e&&t&&n&&(e==null||e.removeEventListener(t,n,o))},lc=(e,t,n)=>{const o=function(...l){n&&n.apply(this,l),xt(e,t,o)};Nt(e,t,o)},pt=(e,t,{checkForDefaultPrevented:n=!0}={})=>l=>{const s=e==null?void 0:e(l);if(n===!1||!s)return t==null?void 0:t(l)},qa=e=>t=>t.pointerType==="mouse"?e(t):void 0,ac=(e,t)=>{if(!je||!e||!t)return!1;const n=e.getBoundingClientRect();let o;return t instanceof Element?o=t.getBoundingClientRect():o={top:0,right:window.innerWidth,bottom:window.innerHeight,left:0},n.topo.top&&n.right>o.left&&n.left{let t,n;return e.type==="touchend"?(n=e.changedTouches[0].clientY,t=e.changedTouches[0].clientX):e.type.startsWith("touch")?(n=e.touches[0].clientY,t=e.touches[0].clientX):(n=e.clientY,t=e.clientX),{clientX:t,clientY:n}},sc=function(e){for(const t of e){const n=t.target.__resizeListeners__||[];n.length&&n.forEach(o=>{o()})}},rc=function(e,t){!je||!e||(e.__resizeListeners__||(e.__resizeListeners__=[],e.__ro__=new ResizeObserver(sc),e.__ro__.observe(e)),e.__resizeListeners__.push(t))},ic=function(e,t){var n;!e||!e.__resizeListeners__||(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),e.__resizeListeners__.length||(n=e.__ro__)==null||n.disconnect())},Zt=e=>e===void 0,ar=e=>!e&&e!==0||at(e)&&e.length===0||Mt(e)&&!Object.keys(e).length,hn=e=>typeof Element>"u"?!1:e instanceof Element,uc=(e="")=>e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d"),rl=e=>Object.keys(e),cc=e=>Object.entries(e),xo=(e,t,n)=>({get value(){return Tt(e,t,n)},set value(o){Wu(e,t,o)}});class dc extends Error{constructor(t){super(t),this.name="ElementPlusError"}}function Ot(e,t){throw new dc(`[${e}] ${t}`)}const sr=(e="")=>e.split(" ").filter(t=>!!t.trim()),vn=(e,t)=>{if(!e||!t)return!1;if(t.includes(" "))throw new Error("className should not contain space.");return e.classList.contains(t)},nn=(e,t)=>{!e||!t.trim()||e.classList.add(...sr(t))},Bt=(e,t)=>{!e||!t.trim()||e.classList.remove(...sr(t))},tn=(e,t)=>{var n;if(!je||!e||!t)return"";let o=ru(t);o==="float"&&(o="cssFloat");try{const l=e.style[o];if(l)return l;const s=(n=document.defaultView)==null?void 0:n.getComputedStyle(e,"");return s?s[o]:""}catch{return e.style[o]}};function Kt(e,t="px"){if(!e)return"";if(He(e))return e;if(We(e))return`${e}${t}`}const fc=(e,t)=>{if(!je)return!1;const n={undefined:"overflow",true:"overflow-y",false:"overflow-x"}[String(t)],o=tn(e,n);return["scroll","auto","overlay"].some(l=>o.includes(l))},pc=(e,t)=>{if(!je)return;let n=e;for(;n;){if([window,document,document.documentElement].includes(n))return window;if(fc(n,t))return n;n=n.parentNode}return n};let zo;const vc=()=>{var e;if(!je)return 0;if(zo!==void 0)return zo;const t=document.createElement("div");t.className="el-scrollbar__wrap",t.style.visibility="hidden",t.style.width="100px",t.style.position="absolute",t.style.top="-9999px",document.body.appendChild(t);const n=t.offsetWidth;t.style.overflow="scroll";const o=document.createElement("div");o.style.width="100%",t.appendChild(o);const l=o.offsetWidth;return(e=t.parentNode)==null||e.removeChild(t),zo=n-l,zo};function mc(e,t){if(!je)return;if(!t){e.scrollTop=0;return}const n=[];let o=t.offsetParent;for(;o!==null&&e!==o&&e.contains(o);)n.push(o),o=o.offsetParent;const l=t.offsetTop+n.reduce((i,c)=>i+c.offsetTop,0),s=l+t.offsetHeight,r=e.scrollTop,u=r+e.clientHeight;lu&&(e.scrollTop=s-e.clientHeight)}const rr="__epPropKey",te=e=>e,hc=e=>Mt(e)&&!!e[rr],bl=(e,t)=>{if(!Mt(e)||hc(e))return e;const{values:n,required:o,default:l,type:s,validator:r}=e,i={type:s,required:!!o,validator:n||r?c=>{let f=!1,h=[];if(n&&(h=Array.from(n),Rt(e,"default")&&h.push(l),f||(f=h.includes(c))),r&&(f||(f=r(c))),!f&&h.length>0){const p=[...new Set(h)].map(d=>JSON.stringify(d)).join(", ");iu(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${p}], got value ${JSON.stringify(c)}.`)}return f}:void 0,[rr]:!0};return Rt(e,"default")&&(i.default=l),i},pe=e=>or(Object.entries(e).map(([t,n])=>[t,bl(n,t)])),Wt=te([String,Object,Function]),gc={Close:rn},yl={Close:rn,SuccessFilled:Js,InfoFilled:Zs,WarningFilled:ua,CircleCloseFilled:Qs},Pn={success:Js,warning:ua,error:Qs,info:Zs},bc={validating:vo,success:ia,error:Do},Ke=(e,t)=>{if(e.install=n=>{for(const o of[e,...Object.values(t!=null?t:{})])n.component(o.name,o)},t)for(const[n,o]of Object.entries(t))e[n]=o;return e},ir=(e,t)=>(e.install=n=>{e._context=n._context,n.config.globalProperties[t]=e},e),yc=(e,t)=>(e.install=n=>{n.directive(t,e)},e),mt=e=>(e.install=tt,e),da=(...e)=>t=>{e.forEach(n=>{Pt(n)?n(t):n.value=t})},be={tab:"Tab",enter:"Enter",space:"Space",left:"ArrowLeft",up:"ArrowUp",right:"ArrowRight",down:"ArrowDown",esc:"Escape",delete:"Delete",backspace:"Backspace",numpadEnter:"NumpadEnter",pageUp:"PageUp",pageDown:"PageDown",home:"Home",end:"End"},Cc=["year","month","date","dates","week","datetime","datetimerange","daterange","monthrange"],qe="update:modelValue",gn="change",Kn="input",ho=["","default","small","large"],wc={large:40,default:32,small:24},kc=e=>wc[e||"default"],Cl=e=>["",...ho].includes(e);var qo=(e=>(e[e.TEXT=1]="TEXT",e[e.CLASS=2]="CLASS",e[e.STYLE=4]="STYLE",e[e.PROPS=8]="PROPS",e[e.FULL_PROPS=16]="FULL_PROPS",e[e.HYDRATE_EVENTS=32]="HYDRATE_EVENTS",e[e.STABLE_FRAGMENT=64]="STABLE_FRAGMENT",e[e.KEYED_FRAGMENT=128]="KEYED_FRAGMENT",e[e.UNKEYED_FRAGMENT=256]="UNKEYED_FRAGMENT",e[e.NEED_PATCH=512]="NEED_PATCH",e[e.DYNAMIC_SLOTS=1024]="DYNAMIC_SLOTS",e[e.HOISTED=-1]="HOISTED",e[e.BAIL=-2]="BAIL",e))(qo||{});const zn=e=>!e&&e!==0?[]:Array.isArray(e)?e:[e],Sc=()=>je&&/firefox/i.test(window.navigator.userAgent),ur=e=>/([(\uAC00-\uD7AF)|(\u3130-\u318F)])+/gi.test(e),cr=()=>Math.floor(Math.random()*1e4),Ct=e=>e,Ec=["class","style"],$c=/^on[A-Z]/,fa=(e={})=>{const{excludeListeners:t=!1,excludeKeys:n}=e,o=$(()=>((n==null?void 0:n.value)||[]).concat(Ec)),l=De();return l?$(()=>{var s;return or(Object.entries((s=l.proxy)==null?void 0:s.$attrs).filter(([r])=>!o.value.includes(r)&&!(t&&$c.test(r))))}):$(()=>({}))},dr=Symbol("breadcrumbKey"),fr=Symbol("buttonGroupContextKey"),pr=Symbol(),vr=Symbol("dialogInjectionKey"),dn=Symbol("formContextKey"),Ut=Symbol("formItemContextKey"),mr=Symbol("elPaginationKey"),hr=Symbol("radioGroupKey"),gr=Symbol("rowContextKey"),br=Symbol("scrollbarContextKey"),wl=Symbol("tabsRootContextKey"),yr=Symbol("uploadContextKey"),pa=Symbol("popper"),Cr=Symbol("popperContent"),va=Symbol(),wr=e=>{const t=De();return $(()=>{var n,o;return(o=((n=t.proxy)==null?void 0:n.$props)[e])!=null?o:void 0})},il=P();function jn(e,t=void 0){const n=De()?fe(pr,il):il;return e?$(()=>{var o,l;return(l=(o=n.value)==null?void 0:o[e])!=null?l:t}):n}const Tc=(e,t,n=!1)=>{var o;const l=!!De(),s=l?jn():void 0,r=(o=t==null?void 0:t.provide)!=null?o:l?Fe:void 0;if(!r)return;const u=$(()=>{const i=a(e);return s!=null&&s.value?Nc(s.value,i):i});return r(pr,u),(n||!il.value)&&(il.value=u.value),u},Nc=(e,t)=>{var n;const o=[...new Set([...rl(e),...rl(t)])],l={};for(const s of o)l[s]=(n=t[s])!=null?n:e[s];return l},Cn=bl({type:String,values:ho,required:!1}),kt=(e,t={})=>{const n=P(void 0),o=t.prop?n:wr("size"),l=t.global?n:jn("size"),s=t.form?{size:void 0}:fe(dn,void 0),r=t.formItem?{size:void 0}:fe(Ut,void 0);return $(()=>o.value||a(e)||(r==null?void 0:r.size)||(s==null?void 0:s.size)||l.value||"")},On=e=>{const t=wr("disabled"),n=fe(dn,void 0);return $(()=>t.value||a(e)||(n==null?void 0:n.disabled)||!1)},Lo=({from:e,replacement:t,scope:n,version:o,ref:l,type:s="API"},r)=>{oe(()=>a(r),u=>{},{immediate:!0})},kr=(e,t,n)=>{let o={offsetX:0,offsetY:0};const l=u=>{const i=u.clientX,c=u.clientY,{offsetX:f,offsetY:h}=o,p=e.value.getBoundingClientRect(),d=p.left,v=p.top,m=p.width,y=p.height,b=document.documentElement.clientWidth,C=document.documentElement.clientHeight,g=-d+f,w=-v+h,M=b-d-m+f,I=C-v-y+h,T=O=>{const V=Math.min(Math.max(f+O.clientX-i,g),M),W=Math.min(Math.max(h+O.clientY-c,w),I);o={offsetX:V,offsetY:W},e.value.style.transform=`translate(${Kt(V)}, ${Kt(W)})`},B=()=>{document.removeEventListener("mousemove",T),document.removeEventListener("mouseup",B)};document.addEventListener("mousemove",T),document.addEventListener("mouseup",B)},s=()=>{t.value&&e.value&&t.value.addEventListener("mousedown",l)},r=()=>{t.value&&e.value&&t.value.removeEventListener("mousedown",l)};Re(()=>{Nn(()=>{n.value?s():r()})}),yt(()=>{r()})},Pc=e=>({focus:()=>{var t,n;(n=(t=e.value)==null?void 0:t.focus)==null||n.call(t)}}),Ic={prefix:Math.floor(Math.random()*1e4),current:0},Mc=Symbol("elIdInjection"),un=e=>{const t=fe(Mc,Ic);return $(()=>a(e)||`el-id-${t.prefix}-${t.current++}`)},Ro=()=>{const e=fe(dn,void 0),t=fe(Ut,void 0);return{form:e,formItem:t}},go=(e,{formItemContext:t,disableIdGeneration:n,disableIdManagement:o})=>{n||(n=P(!1)),o||(o=P(!1));const l=P();let s;const r=$(()=>{var u;return!!(!e.label&&t&&t.inputIds&&((u=t.inputIds)==null?void 0:u.length)<=1)});return Re(()=>{s=oe([ct(e,"id"),n],([u,i])=>{const c=u!=null?u:i?void 0:un().value;c!==l.value&&(t!=null&&t.removeInputId&&(l.value&&t.removeInputId(l.value),!(o!=null&&o.value)&&!i&&c&&t.addInputId(c)),l.value=c)},{immediate:!0})}),vl(()=>{s&&s(),t!=null&&t.removeInputId&&l.value&&t.removeInputId(l.value)}),{isLabeledByFormItem:r,inputId:l}};var Oc={name:"en",el:{colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color."},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",week:"week",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},dropdown:{toggleDropdown:"Toggle Dropdown"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"}}};const Ac=e=>(t,n)=>Bc(t,n,a(e)),Bc=(e,t,n)=>Tt(n,e,e).replace(/\{(\w+)\}/g,(o,l)=>{var s;return`${(s=t==null?void 0:t[l])!=null?s:`{${l}}`}`}),Dc=e=>{const t=$(()=>a(e).name),n=Qt(e)?e:P(e);return{lang:t,locale:n,t:Ac(e)}},Je=()=>{const e=jn("locale");return Dc($(()=>e.value||Oc))},Sr=e=>{if(Qt(e)||Ot("[useLockscreen]","You need to pass a ref param to this function"),!je||vn(document.body,"el-popup-parent--hidden"))return;let t=0,n=!1,o="0",l=0;const s=()=>{Bt(document.body,"el-popup-parent--hidden"),n&&(document.body.style.paddingRight=o)};oe(e,r=>{if(!r){s();return}n=!vn(document.body,"el-popup-parent--hidden"),n&&(o=document.body.style.paddingRight,l=Number.parseInt(tn(document.body,"paddingRight"),10)),t=vc();const u=document.documentElement.clientHeight0&&(u||i==="scroll")&&n&&(document.body.style.paddingRight=`${l+t}px`),nn(document.body,"el-popup-parent--hidden")}),uu(()=>s())},Lc=bl({type:te(Boolean),default:null}),Rc=bl({type:te(Function)}),_c=e=>{const t=`update:${e}`,n=`onUpdate:${e}`,o=[t],l={[e]:Lc,[n]:Rc};return{useModelToggle:({indicator:r,toggleReason:u,shouldHideWhenRouteChanges:i,shouldProceed:c,onShow:f,onHide:h})=>{const p=De(),{emit:d}=p,v=p.props,m=$(()=>Pt(v[n])),y=$(()=>v[e]===null),b=T=>{r.value!==!0&&(r.value=!0,u&&(u.value=T),Pt(f)&&f(T))},C=T=>{r.value!==!1&&(r.value=!1,u&&(u.value=T),Pt(h)&&h(T))},g=T=>{if(v.disabled===!0||Pt(c)&&!c())return;const B=m.value&&je;B&&d(t,!0),(y.value||!B)&&b(T)},w=T=>{if(v.disabled===!0||!je)return;const B=m.value&&je;B&&d(t,!1),(y.value||!B)&&C(T)},M=T=>{!It(T)||(v.disabled&&T?m.value&&d(t,!1):r.value!==T&&(T?b():C()))},I=()=>{r.value?w():g()};return oe(()=>v[e],M),i&&p.appContext.config.globalProperties.$route!==void 0&&oe(()=>({...p.proxy.$route}),()=>{i.value&&r.value&&w()}),Re(()=>{M(v[e])}),{hide:w,show:g,toggle:I}},useModelToggleProps:l,useModelToggleEmits:o}},Fc=(e,t)=>{let n;oe(()=>e.value,o=>{var l,s;o?(n=document.activeElement,Qt(t)&&((s=(l=t.value).focus)==null||s.call(l))):n.focus()})},ma=e=>{if(!e)return{onClick:tt,onMousedown:tt,onMouseup:tt};let t=!1,n=!1;return{onClick:r=>{t&&n&&e(r),t=n=!1},onMousedown:r=>{t=r.target===r.currentTarget},onMouseup:r=>{n=r.target===r.currentTarget}}};function zc(){let e;const t=(o,l)=>{n(),e=window.setTimeout(o,l)},n=()=>window.clearTimeout(e);return ku(()=>n()),{registerTimeout:t,cancelTimeout:n}}let xn=[];const Vc=e=>{const t=n=>{const o=n;o.key===be.esc&&xn.forEach(l=>l(o))};Re(()=>{xn.length===0&&document.addEventListener("keydown",t),je&&xn.push(e)}),yt(()=>{xn=xn.filter(n=>n!==e),xn.length===0&&je&&document.removeEventListener("keydown",t)})};let Ua;const Er=`el-popper-container-${cr()}`,$r=`#${Er}`,Hc=()=>{const e=document.createElement("div");return e.id=Er,document.body.appendChild(e),e},Kc=()=>{sa(()=>{!je||(!Ua||!document.body.querySelector($r))&&(Ua=Hc())})},Wc=pe({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200}}),jc=({showAfter:e,hideAfter:t,open:n,close:o})=>{const{registerTimeout:l}=zc();return{onOpen:u=>{l(()=>{n(u)},a(e))},onClose:u=>{l(()=>{o(u)},a(t))}}},Tr=Symbol("elForwardRef"),xc=e=>{Fe(Tr,{setForwardRef:n=>{e.value=n}})},qc=e=>({mounted(t){e(t)},updated(t){e(t)},unmounted(){e(null)}}),Nr="el",Uc="is-",Dn=(e,t,n,o,l)=>{let s=`${e}-${t}`;return n&&(s+=`-${n}`),o&&(s+=`__${o}`),l&&(s+=`--${l}`),s},le=e=>{const t=jn("namespace"),n=$(()=>t.value||Nr);return{namespace:n,b:(m="")=>Dn(a(n),e,m,"",""),e:m=>m?Dn(a(n),e,"",m,""):"",m:m=>m?Dn(a(n),e,"","",m):"",be:(m,y)=>m&&y?Dn(a(n),e,m,y,""):"",em:(m,y)=>m&&y?Dn(a(n),e,"",m,y):"",bm:(m,y)=>m&&y?Dn(a(n),e,m,"",y):"",bem:(m,y,b)=>m&&y&&b?Dn(a(n),e,m,y,b):"",is:(m,...y)=>{const b=y.length>=1?y[0]:!0;return m&&b?`${Uc}${m}`:""},cssVar:m=>{const y={};for(const b in m)y[`--${n.value}-${b}`]=m[b];return y},cssVarName:m=>`--${n.value}-${m}`,cssVarBlock:m=>{const y={};for(const b in m)y[`--${n.value}-${e}-${b}`]=m[b];return y},cssVarBlockName:m=>`--${n.value}-${e}-${m}`}},Ya=P(0),An=()=>{const e=jn("zIndex",2e3),t=$(()=>e.value+Ya.value);return{initialZIndex:e,currentZIndex:t,nextZIndex:()=>(Ya.value++,t.value)}};function Yc(e){const t=P();function n(){if(e.value==null)return;const{selectionStart:l,selectionEnd:s,value:r}=e.value;if(l==null||s==null)return;const u=r.slice(0,Math.max(0,l)),i=r.slice(Math.max(0,s));t.value={selectionStart:l,selectionEnd:s,value:r,beforeTxt:u,afterTxt:i}}function o(){if(e.value==null||t.value==null)return;const{value:l}=e.value,{beforeTxt:s,afterTxt:r,selectionStart:u}=t.value;if(s==null||r==null||u==null)return;let i=l.length;if(l.endsWith(r))i=l.length-r.length;else if(l.startsWith(s))i=s.length;else{const c=s[u-1],f=l.indexOf(c,u-1);f!==-1&&(i=f+1)}e.value.setSelectionRange(i,i)}return[n,o]}var ie=(e,t)=>{const n=e.__vccOpts||e;for(const[o,l]of t)n[o]=l;return n};const Gc=pe({size:{type:te([Number,String])},color:{type:String}}),Xc={name:"ElIcon",inheritAttrs:!1},Jc=se({...Xc,props:Gc,setup(e){const t=e,n=le("icon"),o=$(()=>!t.size&&!t.color?{}:{fontSize:Zt(t.size)?void 0:Kt(t.size),"--color":t.color});return(l,s)=>(k(),L("i",vt({class:a(n).b(),style:a(o)},l.$attrs),[Q(l.$slots,"default")],16))}});var Zc=ie(Jc,[["__file","/home/runner/work/element-plus/element-plus/packages/components/icon/src/icon.vue"]]);const he=Ke(Zc),Qc=["light","dark"],ed=pe({title:{type:String,default:""},description:{type:String,default:""},type:{type:String,values:rl(Pn),default:"info"},closable:{type:Boolean,default:!0},closeText:{type:String,default:""},showIcon:Boolean,center:Boolean,effect:{type:String,values:Qc,default:"light"}}),td={close:e=>e instanceof MouseEvent},nd={name:"ElAlert"},od=se({...nd,props:ed,emits:td,setup(e,{emit:t}){const n=e,{Close:o}=yl,l=Xt(),s=le("alert"),r=P(!0),u=$(()=>Pn[n.type]),i=$(()=>[s.e("icon"),{[s.is("big")]:!!n.description||!!l.default}]),c=$(()=>n.description||{[s.is("bold")]:l.default}),f=h=>{r.value=!1,t("close",h)};return(h,p)=>(k(),Z(St,{name:a(s).b("fade"),persisted:""},{default:K(()=>[Ie(x("div",{class:S([a(s).b(),a(s).m(h.type),a(s).is("center",h.center),a(s).is(h.effect)]),role:"alert"},[h.showIcon&&a(u)?(k(),Z(a(he),{key:0,class:S(a(i))},{default:K(()=>[(k(),Z(Ve(a(u))))]),_:1},8,["class"])):Y("v-if",!0),x("div",{class:S(a(s).e("content"))},[h.title||h.$slots.title?(k(),L("span",{key:0,class:S([a(s).e("title"),a(c)])},[Q(h.$slots,"title",{},()=>[Xe(de(h.title),1)])],2)):Y("v-if",!0),h.$slots.default||h.description?(k(),L("p",{key:1,class:S(a(s).e("description"))},[Q(h.$slots,"default",{},()=>[Xe(de(h.description),1)])],2)):Y("v-if",!0),h.closable?(k(),L(Pe,{key:2},[h.closeText?(k(),L("div",{key:0,class:S([a(s).e("close-btn"),a(s).is("customed")]),onClick:f},de(h.closeText),3)):(k(),Z(a(he),{key:1,class:S(a(s).e("close-btn")),onClick:f},{default:K(()=>[j(a(o))]),_:1},8,["class"]))],64)):Y("v-if",!0)],2)],2),[[Ye,r.value]])]),_:3},8,["name"]))}});var ld=ie(od,[["__file","/home/runner/work/element-plus/element-plus/packages/components/alert/src/alert.vue"]]);const CS=Ke(ld);let Jt;const ad=` height:0 !important; visibility:hidden !important; overflow:hidden !important; position:absolute !important; z-index:-1000 !important; top:0 !important; right:0 !important; `,sd=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"];function rd(e){const t=window.getComputedStyle(e),n=t.getPropertyValue("box-sizing"),o=Number.parseFloat(t.getPropertyValue("padding-bottom"))+Number.parseFloat(t.getPropertyValue("padding-top")),l=Number.parseFloat(t.getPropertyValue("border-bottom-width"))+Number.parseFloat(t.getPropertyValue("border-top-width"));return{contextStyle:sd.map(r=>`${r}:${t.getPropertyValue(r)}`).join(";"),paddingSize:o,borderSize:l,boxSizing:n}}function Ga(e,t=1,n){var o;Jt||(Jt=document.createElement("textarea"),document.body.appendChild(Jt));const{paddingSize:l,borderSize:s,boxSizing:r,contextStyle:u}=rd(e);Jt.setAttribute("style",`${u};${ad}`),Jt.value=e.value||e.placeholder||"";let i=Jt.scrollHeight;const c={};r==="border-box"?i=i+s:r==="content-box"&&(i=i-l),Jt.value="";const f=Jt.scrollHeight-l;if(We(t)){let h=f*t;r==="border-box"&&(h=h+l+s),i=Math.max(h,i),c.minHeight=`${h}px`}if(We(n)){let h=f*n;r==="border-box"&&(h=h+l+s),i=Math.min(h,i)}return c.height=`${i}px`,(o=Jt.parentNode)==null||o.removeChild(Jt),Jt=void 0,c}const id=pe({id:{type:String,default:void 0},size:Cn,disabled:Boolean,modelValue:{type:te([String,Number,Object]),default:""},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:te([Boolean,Object]),default:!1},autocomplete:{type:String,default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String,default:""},readonly:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},showPassword:{type:Boolean,default:!1},showWordLimit:{type:Boolean,default:!1},suffixIcon:{type:Wt,default:""},prefixIcon:{type:Wt,default:""},containerRole:{type:String,default:void 0},label:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:te([Object,Array,String]),default:()=>Ct({})}}),ud={[qe]:e=>He(e),input:e=>He(e),change:e=>He(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,mouseleave:e=>e instanceof MouseEvent,mouseenter:e=>e instanceof MouseEvent,keydown:e=>e instanceof Event,compositionstart:e=>e instanceof CompositionEvent,compositionupdate:e=>e instanceof CompositionEvent,compositionend:e=>e instanceof CompositionEvent},cd=["role"],dd=["id","type","disabled","formatter","parser","readonly","autocomplete","tabindex","aria-label","placeholder"],fd=["id","tabindex","disabled","readonly","autocomplete","aria-label","placeholder"],pd={name:"ElInput",inheritAttrs:!1},vd=se({...pd,props:id,emits:ud,setup(e,{expose:t,emit:n}){const o=e,l={suffix:"append",prefix:"prepend"},s=De(),r=Bo(),u=Xt(),i=$(()=>{const ae={};return o.containerRole==="combobox"&&(ae["aria-haspopup"]=r["aria-haspopup"],ae["aria-owns"]=r["aria-owns"],ae["aria-expanded"]=r["aria-expanded"]),ae}),c=fa({excludeKeys:$(()=>Object.keys(i.value))}),{form:f,formItem:h}=Ro(),{inputId:p}=go(o,{formItemContext:h}),d=kt(),v=On(),m=le("input"),y=le("textarea"),b=Ht(),C=Ht(),g=P(!1),w=P(!1),M=P(!1),I=P(!1),T=P(),B=Ht(o.inputStyle),O=$(()=>b.value||C.value),V=$(()=>{var ae;return(ae=f==null?void 0:f.statusIcon)!=null?ae:!1}),W=$(()=>(h==null?void 0:h.validateState)||""),J=$(()=>W.value&&bc[W.value]),F=$(()=>I.value?Pu:Iu),H=$(()=>[r.style,o.inputStyle]),U=$(()=>[o.inputStyle,B.value,{resize:o.resize}]),_=$(()=>an(o.modelValue)?"":String(o.modelValue)),D=$(()=>o.clearable&&!v.value&&!o.readonly&&!!_.value&&(g.value||w.value)),A=$(()=>o.showPassword&&!v.value&&!o.readonly&&!!_.value&&(!!_.value||g.value)),N=$(()=>o.showWordLimit&&!!c.value.maxlength&&(o.type==="text"||o.type==="textarea")&&!v.value&&!o.readonly&&!o.showPassword),R=$(()=>Array.from(_.value).length),G=$(()=>!!N.value&&R.value>Number(c.value.maxlength)),re=$(()=>!!u.suffix||!!o.suffixIcon||D.value||o.showPassword||N.value||!!W.value&&V.value),[ce,ye]=Yc(b);yn(C,ae=>{if(!N.value||o.resize!=="both")return;const Be=ae[0],{width:_e}=Be.contentRect;T.value={right:`calc(100% - ${_e+15+6}px)`}});const ge=()=>{const{type:ae,autosize:Be}=o;if(!(!je||ae!=="textarea"))if(Be){const _e=Mt(Be)?Be.minRows:void 0,Qe=Mt(Be)?Be.maxRows:void 0;B.value={...Ga(C.value,_e,Qe)}}else B.value={minHeight:Ga(C.value).minHeight}},Te=()=>{const ae=O.value;!ae||ae.value===_.value||(ae.value=_.value)},X=ae=>{const{el:Be}=s.vnode;if(!Be)return;const Qe=Array.from(Be.querySelectorAll(`.${m.e(ae)}`)).find(ne=>ne.parentNode===Be);if(!Qe)return;const q=l[ae];u[q]?Qe.style.transform=`translateX(${ae==="suffix"?"-":""}${Be.querySelector(`.${m.be("group",q)}`).offsetWidth}px)`:Qe.removeAttribute("style")},ve=()=>{X("prefix"),X("suffix")},Ne=async ae=>{ce();let{value:Be}=ae.target;o.formatter&&(Be=o.parser?o.parser(Be):Be,Be=o.formatter(Be)),!M.value&&Be!==_.value&&(n(qe,Be),n("input",Be),await ke(),Te(),ye())},Le=ae=>{n("change",ae.target.value)},Ge=ae=>{n("compositionstart",ae),M.value=!0},Ze=ae=>{var Be;n("compositionupdate",ae);const _e=(Be=ae.target)==null?void 0:Be.value,Qe=_e[_e.length-1]||"";M.value=!ur(Qe)},Ue=ae=>{n("compositionend",ae),M.value&&(M.value=!1,Ne(ae))},ht=()=>{I.value=!I.value,Ae()},Ae=async()=>{var ae;await ke(),(ae=O.value)==null||ae.focus()},it=()=>{var ae;return(ae=O.value)==null?void 0:ae.blur()},lt=ae=>{g.value=!0,n("focus",ae)},ft=ae=>{var Be;g.value=!1,n("blur",ae),o.validateEvent&&((Be=h==null?void 0:h.validate)==null||Be.call(h,"blur").catch(_e=>void 0))},gt=ae=>{w.value=!1,n("mouseleave",ae)},et=ae=>{w.value=!0,n("mouseenter",ae)},st=ae=>{n("keydown",ae)},Et=()=>{var ae;(ae=O.value)==null||ae.select()},bt=()=>{n(qe,""),n("change",""),n("clear"),n("input","")};return oe(()=>o.modelValue,()=>{var ae;ke(()=>ge()),o.validateEvent&&((ae=h==null?void 0:h.validate)==null||ae.call(h,"change").catch(Be=>void 0))}),oe(_,()=>Te()),oe(()=>o.type,async()=>{await ke(),Te(),ge(),ve()}),Re(async()=>{!o.formatter&&o.parser,Te(),ve(),await ke(),ge()}),Mn(async()=>{await ke(),ve()}),t({input:b,textarea:C,ref:O,textareaStyle:U,autosize:ct(o,"autosize"),focus:Ae,blur:it,select:Et,clear:bt,resizeTextarea:ge}),(ae,Be)=>Ie((k(),L("div",vt(a(i),{class:[ae.type==="textarea"?a(y).b():a(m).b(),a(m).m(a(d)),a(m).is("disabled",a(v)),a(m).is("exceed",a(G)),{[a(m).b("group")]:ae.$slots.prepend||ae.$slots.append,[a(m).bm("group","append")]:ae.$slots.append,[a(m).bm("group","prepend")]:ae.$slots.prepend,[a(m).m("prefix")]:ae.$slots.prefix||ae.prefixIcon,[a(m).m("suffix")]:ae.$slots.suffix||ae.suffixIcon||ae.clearable||ae.showPassword,[a(m).bm("suffix","password-clear")]:a(D)&&a(A)},ae.$attrs.class],style:a(H),role:ae.containerRole,onMouseenter:et,onMouseleave:gt}),[Y(" input "),ae.type!=="textarea"?(k(),L(Pe,{key:0},[Y(" prepend slot "),ae.$slots.prepend?(k(),L("div",{key:0,class:S(a(m).be("group","prepend"))},[Q(ae.$slots,"prepend")],2)):Y("v-if",!0),x("div",{class:S([a(m).e("wrapper"),a(m).is("focus",g.value)])},[Y(" prefix slot "),ae.$slots.prefix||ae.prefixIcon?(k(),L("span",{key:0,class:S(a(m).e("prefix"))},[x("span",{class:S(a(m).e("prefix-inner"))},[Q(ae.$slots,"prefix"),ae.prefixIcon?(k(),Z(a(he),{key:0,class:S(a(m).e("icon"))},{default:K(()=>[(k(),Z(Ve(ae.prefixIcon)))]),_:1},8,["class"])):Y("v-if",!0)],2)],2)):Y("v-if",!0),x("input",vt({id:a(p),ref_key:"input",ref:b,class:a(m).e("inner")},a(c),{type:ae.showPassword?I.value?"text":"password":ae.type,disabled:a(v),formatter:ae.formatter,parser:ae.parser,readonly:ae.readonly,autocomplete:ae.autocomplete,tabindex:ae.tabindex,"aria-label":ae.label,placeholder:ae.placeholder,style:ae.inputStyle,onCompositionstart:Ge,onCompositionupdate:Ze,onCompositionend:Ue,onInput:Ne,onFocus:lt,onBlur:ft,onChange:Le,onKeydown:st}),null,16,dd),Y(" suffix slot "),a(re)?(k(),L("span",{key:1,class:S(a(m).e("suffix"))},[x("span",{class:S(a(m).e("suffix-inner"))},[!a(D)||!a(A)||!a(N)?(k(),L(Pe,{key:0},[Q(ae.$slots,"suffix"),ae.suffixIcon?(k(),Z(a(he),{key:0,class:S(a(m).e("icon"))},{default:K(()=>[(k(),Z(Ve(ae.suffixIcon)))]),_:1},8,["class"])):Y("v-if",!0)],64)):Y("v-if",!0),a(D)?(k(),Z(a(he),{key:1,class:S([a(m).e("icon"),a(m).e("clear")]),onMousedown:Oe(a(tt),["prevent"]),onClick:bt},{default:K(()=>[j(a(Do))]),_:1},8,["class","onMousedown"])):Y("v-if",!0),a(A)?(k(),Z(a(he),{key:2,class:S([a(m).e("icon"),a(m).e("password")]),onClick:ht},{default:K(()=>[(k(),Z(Ve(a(F))))]),_:1},8,["class"])):Y("v-if",!0),a(N)?(k(),L("span",{key:3,class:S(a(m).e("count"))},[x("span",{class:S(a(m).e("count-inner"))},de(a(R))+" / "+de(a(c).maxlength),3)],2)):Y("v-if",!0),a(W)&&a(J)&&a(V)?(k(),Z(a(he),{key:4,class:S([a(m).e("icon"),a(m).e("validateIcon"),a(m).is("loading",a(W)==="validating")])},{default:K(()=>[(k(),Z(Ve(a(J))))]),_:1},8,["class"])):Y("v-if",!0)],2)],2)):Y("v-if",!0)],2),Y(" append slot "),ae.$slots.append?(k(),L("div",{key:1,class:S(a(m).be("group","append"))},[Q(ae.$slots,"append")],2)):Y("v-if",!0)],64)):(k(),L(Pe,{key:1},[Y(" textarea "),x("textarea",vt({id:a(p),ref_key:"textarea",ref:C,class:a(y).e("inner")},a(c),{tabindex:ae.tabindex,disabled:a(v),readonly:ae.readonly,autocomplete:ae.autocomplete,style:a(U),"aria-label":ae.label,placeholder:ae.placeholder,onCompositionstart:Ge,onCompositionupdate:Ze,onCompositionend:Ue,onInput:Ne,onFocus:lt,onBlur:ft,onChange:Le,onKeydown:st}),null,16,fd),a(N)?(k(),L("span",{key:0,style:$e(T.value),class:S(a(m).e("count"))},de(a(R))+" / "+de(a(c).maxlength),7)):Y("v-if",!0)],64))],16,cd)),[[Ye,ae.type!=="hidden"]])}});var md=ie(vd,[["__file","/home/runner/work/element-plus/element-plus/packages/components/input/src/input.vue"]]);const Vt=Ke(md),Yn=4,hd={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"}},gd=({move:e,size:t,bar:n})=>({[n.size]:t,transform:`translate${n.axis}(${e}%)`}),bd=pe({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),yd=se({__name:"thumb",props:bd,setup(e){const t=e,n="Thumb",o=fe(br),l=le("scrollbar");o||Ot(n,"can not inject scrollbar context");const s=P(),r=P(),u=P({}),i=P(!1);let c=!1,f=!1,h=je?document.onselectstart:null;const p=$(()=>hd[t.vertical?"vertical":"horizontal"]),d=$(()=>gd({size:t.size,move:t.move,bar:p.value})),v=$(()=>s.value[p.value.offset]**2/o.wrapElement[p.value.scrollSize]/t.ratio/r.value[p.value.offset]),m=T=>{var B;if(T.stopPropagation(),T.ctrlKey||[1,2].includes(T.button))return;(B=window.getSelection())==null||B.removeAllRanges(),b(T);const O=T.currentTarget;!O||(u.value[p.value.axis]=O[p.value.offset]-(T[p.value.client]-O.getBoundingClientRect()[p.value.direction]))},y=T=>{if(!r.value||!s.value||!o.wrapElement)return;const B=Math.abs(T.target.getBoundingClientRect()[p.value.direction]-T[p.value.client]),O=r.value[p.value.offset]/2,V=(B-O)*100*v.value/s.value[p.value.offset];o.wrapElement[p.value.scroll]=V*o.wrapElement[p.value.scrollSize]/100},b=T=>{T.stopImmediatePropagation(),c=!0,document.addEventListener("mousemove",C),document.addEventListener("mouseup",g),h=document.onselectstart,document.onselectstart=()=>!1},C=T=>{if(!s.value||!r.value||c===!1)return;const B=u.value[p.value.axis];if(!B)return;const O=(s.value.getBoundingClientRect()[p.value.direction]-T[p.value.client])*-1,V=r.value[p.value.offset]-B,W=(O-V)*100*v.value/s.value[p.value.offset];o.wrapElement[p.value.scroll]=W*o.wrapElement[p.value.scrollSize]/100},g=()=>{c=!1,u.value[p.value.axis]=0,document.removeEventListener("mousemove",C),document.removeEventListener("mouseup",g),I(),f&&(i.value=!1)},w=()=>{f=!1,i.value=!!t.size},M=()=>{f=!0,i.value=c};yt(()=>{I(),document.removeEventListener("mouseup",g)});const I=()=>{document.onselectstart!==h&&(document.onselectstart=h)};return zt(ct(o,"scrollbarElement"),"mousemove",w),zt(ct(o,"scrollbarElement"),"mouseleave",M),(T,B)=>(k(),Z(St,{name:a(l).b("fade"),persisted:""},{default:K(()=>[Ie(x("div",{ref_key:"instance",ref:s,class:S([a(l).e("bar"),a(l).is(a(p).key)]),onMousedown:y},[x("div",{ref_key:"thumb",ref:r,class:S(a(l).e("thumb")),style:$e(a(d)),onMousedown:m},null,38)],34),[[Ye,T.always||i.value]])]),_:1},8,["name"]))}});var Xa=ie(yd,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/thumb.vue"]]);const Cd=pe({always:{type:Boolean,default:!0},width:String,height:String,ratioX:{type:Number,default:1},ratioY:{type:Number,default:1}}),wd=se({__name:"bar",props:Cd,setup(e,{expose:t}){const n=e,o=P(0),l=P(0);return t({handleScroll:r=>{if(r){const u=r.offsetHeight-Yn,i=r.offsetWidth-Yn;l.value=r.scrollTop*100/u*n.ratioY,o.value=r.scrollLeft*100/i*n.ratioX}}}),(r,u)=>(k(),L(Pe,null,[j(Xa,{move:o.value,ratio:r.ratioX,size:r.width,always:r.always},null,8,["move","ratio","size","always"]),j(Xa,{move:l.value,ratio:r.ratioY,size:r.height,vertical:"",always:r.always},null,8,["move","ratio","size","always"])],64))}});var kd=ie(wd,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/bar.vue"]]);const Sd=pe({height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:Boolean,wrapStyle:{type:te([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:Boolean,minSize:{type:Number,default:20}}),Ed={scroll:({scrollTop:e,scrollLeft:t})=>[e,t].every(We)},$d={name:"ElScrollbar"},Td=se({...$d,props:Sd,emits:Ed,setup(e,{expose:t,emit:n}){const o=e,l=le("scrollbar");let s,r;const u=P(),i=P(),c=P(),f=P("0"),h=P("0"),p=P(),d=P(1),v=P(1),m=$(()=>{const M={};return o.height&&(M.height=Kt(o.height)),o.maxHeight&&(M.maxHeight=Kt(o.maxHeight)),[o.wrapStyle,M]}),y=()=>{var M;i.value&&((M=p.value)==null||M.handleScroll(i.value),n("scroll",{scrollTop:i.value.scrollTop,scrollLeft:i.value.scrollLeft}))};function b(M,I){Mt(M)?i.value.scrollTo(M):We(M)&&We(I)&&i.value.scrollTo(M,I)}const C=M=>{!We(M)||(i.value.scrollTop=M)},g=M=>{!We(M)||(i.value.scrollLeft=M)},w=()=>{if(!i.value)return;const M=i.value.offsetHeight-Yn,I=i.value.offsetWidth-Yn,T=M**2/i.value.scrollHeight,B=I**2/i.value.scrollWidth,O=Math.max(T,o.minSize),V=Math.max(B,o.minSize);d.value=T/(M-T)/(O/(M-O)),v.value=B/(I-B)/(V/(I-V)),h.value=O+Yno.noresize,M=>{M?(s==null||s(),r==null||r()):({stop:s}=yn(c,w),r=zt("resize",w))},{immediate:!0}),oe(()=>[o.maxHeight,o.height],()=>{o.native||ke(()=>{var M;w(),i.value&&((M=p.value)==null||M.handleScroll(i.value))})}),Fe(br,rt({scrollbarElement:u,wrapElement:i})),Re(()=>{o.native||ke(()=>w())}),Mn(()=>w()),t({wrap$:i,update:w,scrollTo:b,setScrollTop:C,setScrollLeft:g,handleScroll:y}),(M,I)=>(k(),L("div",{ref_key:"scrollbar$",ref:u,class:S(a(l).b())},[x("div",{ref_key:"wrap$",ref:i,class:S([M.wrapClass,a(l).e("wrap"),{[a(l).em("wrap","hidden-default")]:!M.native}]),style:$e(a(m)),onScroll:y},[(k(),Z(Ve(M.tag),{ref_key:"resize$",ref:c,class:S([a(l).e("view"),M.viewClass]),style:$e(M.viewStyle)},{default:K(()=>[Q(M.$slots,"default")]),_:3},8,["class","style"]))],38),M.native?Y("v-if",!0):(k(),Z(kd,{key:0,ref_key:"barRef",ref:p,height:h.value,width:f.value,always:M.always,"ratio-x":v.value,"ratio-y":d.value},null,8,["height","width","always","ratio-x","ratio-y"]))],2))}});var Nd=ie(Td,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/scrollbar.vue"]]);const bo=Ke(Nd),Pd={LIGHT:"light",DARK:"dark"},Pr=pe({role:{type:String,default:"tooltip"}}),Id={name:"ElPopperRoot",inheritAttrs:!1},Md=se({...Id,props:Pr,setup(e,{expose:t}){const n=e,o=P(),l=P(),s=P(),r=P(),u=$(()=>n.role),i={triggerRef:o,popperInstanceRef:l,contentRef:s,referenceRef:r,role:u};return t(i),Fe(pa,i),(c,f)=>Q(c.$slots,"default")}});var Od=ie(Md,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/popper.vue"]]);const Ir=pe({arrowOffset:{type:Number,default:5}}),Ad={name:"ElPopperArrow",inheritAttrs:!1},Bd=se({...Ad,props:Ir,setup(e,{expose:t}){const n=e,o=le("popper"),{arrowOffset:l,arrowRef:s}=fe(Cr,void 0);return oe(()=>n.arrowOffset,r=>{l.value=r}),yt(()=>{s.value=void 0}),t({arrowRef:s}),(r,u)=>(k(),L("span",{ref_key:"arrowRef",ref:s,class:S(a(o).e("arrow")),"data-popper-arrow":""},null,2))}});var Dd=ie(Bd,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/arrow.vue"]]);const Ld="ElOnlyChild",Mr=se({name:Ld,setup(e,{slots:t,attrs:n}){var o;const l=fe(Tr),s=qc((o=l==null?void 0:l.setForwardRef)!=null?o:tt);return()=>{var r;const u=(r=t.default)==null?void 0:r.call(t,n);if(!u||u.length>1)return null;const i=Or(u);return i?Ie(cu(i,n),[[s]]):null}}});function Or(e){if(!e)return null;const t=e;for(const n of t){if(Mt(n))switch(n.type){case qs:continue;case xs:case"svg":return Ja(n);case Pe:return Or(n.children);default:return n}return Ja(n)}return null}function Ja(e){return j("span",{class:"el-only-child__content"},[e])}const Ar=pe({virtualRef:{type:te(Object)},virtualTriggering:Boolean,onMouseenter:Function,onMouseleave:Function,onClick:Function,onKeydown:Function,onFocus:Function,onBlur:Function,onContextmenu:Function,id:String,open:Boolean}),Rd={name:"ElPopperTrigger",inheritAttrs:!1},_d=se({...Rd,props:Ar,setup(e,{expose:t}){const n=e,{role:o,triggerRef:l}=fe(pa,void 0);xc(l);const s=$(()=>u.value?n.id:void 0),r=$(()=>{if(o&&o.value==="tooltip")return n.open&&n.id?n.id:void 0}),u=$(()=>{if(o&&o.value!=="tooltip")return o.value}),i=$(()=>u.value?`${n.open}`:void 0);let c;return Re(()=>{oe(()=>n.virtualRef,f=>{f&&(l.value=Xs(f))},{immediate:!0}),oe(()=>l.value,(f,h)=>{c==null||c(),c=void 0,hn(f)&&(["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"].forEach(p=>{var d;const v=n[p];v&&(f.addEventListener(p.slice(2).toLowerCase(),v),(d=h==null?void 0:h.removeEventListener)==null||d.call(h,p.slice(2).toLowerCase(),v))}),c=oe([s,r,u,i],p=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((d,v)=>{an(p[v])?f.removeAttribute(d):f.setAttribute(d,p[v])})},{immediate:!0})),hn(h)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(p=>h.removeAttribute(p))},{immediate:!0})}),yt(()=>{c==null||c(),c=void 0}),t({triggerRef:l}),(f,h)=>f.virtualTriggering?Y("v-if",!0):(k(),Z(a(Mr),vt({key:0},f.$attrs,{"aria-controls":a(s),"aria-describedby":a(r),"aria-expanded":a(i),"aria-haspopup":a(u)}),{default:K(()=>[Q(f.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}});var Fd=ie(_d,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/trigger.vue"]]),Dt="top",Yt="bottom",Gt="right",Lt="left",ha="auto",_o=[Dt,Yt,Gt,Lt],lo="start",Po="end",zd="clippingParents",Br="viewport",ko="popper",Vd="reference",Za=_o.reduce(function(e,t){return e.concat([t+"-"+lo,t+"-"+Po])},[]),ga=[].concat(_o,[ha]).reduce(function(e,t){return e.concat([t,t+"-"+lo,t+"-"+Po])},[]),Hd="beforeRead",Kd="read",Wd="afterRead",jd="beforeMain",xd="main",qd="afterMain",Ud="beforeWrite",Yd="write",Gd="afterWrite",Xd=[Hd,Kd,Wd,jd,xd,qd,Ud,Yd,Gd];function cn(e){return e?(e.nodeName||"").toLowerCase():null}function en(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ao(e){var t=en(e).Element;return e instanceof t||e instanceof Element}function qt(e){var t=en(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function ba(e){if(typeof ShadowRoot>"u")return!1;var t=en(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Jd(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var o=t.styles[n]||{},l=t.attributes[n]||{},s=t.elements[n];!qt(s)||!cn(s)||(Object.assign(s.style,o),Object.keys(l).forEach(function(r){var u=l[r];u===!1?s.removeAttribute(r):s.setAttribute(r,u===!0?"":u)}))})}function Zd(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(o){var l=t.elements[o],s=t.attributes[o]||{},r=Object.keys(t.styles.hasOwnProperty(o)?t.styles[o]:n[o]),u=r.reduce(function(i,c){return i[c]="",i},{});!qt(l)||!cn(l)||(Object.assign(l.style,u),Object.keys(s).forEach(function(i){l.removeAttribute(i)}))})}}var Dr={name:"applyStyles",enabled:!0,phase:"write",fn:Jd,effect:Zd,requires:["computeStyles"]};function sn(e){return e.split("-")[0]}var Vn=Math.max,ul=Math.min,so=Math.round;function ro(e,t){t===void 0&&(t=!1);var n=e.getBoundingClientRect(),o=1,l=1;if(qt(e)&&t){var s=e.offsetHeight,r=e.offsetWidth;r>0&&(o=so(n.width)/r||1),s>0&&(l=so(n.height)/s||1)}return{width:n.width/o,height:n.height/l,top:n.top/l,right:n.right/o,bottom:n.bottom/l,left:n.left/o,x:n.left/o,y:n.top/l}}function ya(e){var t=ro(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 Lr(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&ba(n)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function bn(e){return en(e).getComputedStyle(e)}function Qd(e){return["table","td","th"].indexOf(cn(e))>=0}function Bn(e){return((ao(e)?e.ownerDocument:e.document)||window.document).documentElement}function kl(e){return cn(e)==="html"?e:e.assignedSlot||e.parentNode||(ba(e)?e.host:null)||Bn(e)}function Qa(e){return!qt(e)||bn(e).position==="fixed"?null:e.offsetParent}function ef(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&qt(e)){var o=bn(e);if(o.position==="fixed")return null}var l=kl(e);for(ba(l)&&(l=l.host);qt(l)&&["html","body"].indexOf(cn(l))<0;){var s=bn(l);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||t&&s.willChange==="filter"||t&&s.filter&&s.filter!=="none")return l;l=l.parentNode}return null}function Fo(e){for(var t=en(e),n=Qa(e);n&&Qd(n)&&bn(n).position==="static";)n=Qa(n);return n&&(cn(n)==="html"||cn(n)==="body"&&bn(n).position==="static")?t:n||ef(e)||t}function Ca(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Eo(e,t,n){return Vn(e,ul(t,n))}function tf(e,t,n){var o=Eo(e,t,n);return o>n?n:o}function Rr(){return{top:0,right:0,bottom:0,left:0}}function _r(e){return Object.assign({},Rr(),e)}function Fr(e,t){return t.reduce(function(n,o){return n[o]=e,n},{})}var nf=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,_r(typeof e!="number"?e:Fr(e,_o))};function of(e){var t,n=e.state,o=e.name,l=e.options,s=n.elements.arrow,r=n.modifiersData.popperOffsets,u=sn(n.placement),i=Ca(u),c=[Lt,Gt].indexOf(u)>=0,f=c?"height":"width";if(!(!s||!r)){var h=nf(l.padding,n),p=ya(s),d=i==="y"?Dt:Lt,v=i==="y"?Yt:Gt,m=n.rects.reference[f]+n.rects.reference[i]-r[i]-n.rects.popper[f],y=r[i]-n.rects.reference[i],b=Fo(s),C=b?i==="y"?b.clientHeight||0:b.clientWidth||0:0,g=m/2-y/2,w=h[d],M=C-p[f]-h[v],I=C/2-p[f]/2+g,T=Eo(w,I,M),B=i;n.modifiersData[o]=(t={},t[B]=T,t.centerOffset=T-I,t)}}function lf(e){var t=e.state,n=e.options,o=n.element,l=o===void 0?"[data-popper-arrow]":o;l!=null&&(typeof l=="string"&&(l=t.elements.popper.querySelector(l),!l)||!Lr(t.elements.popper,l)||(t.elements.arrow=l))}var af={name:"arrow",enabled:!0,phase:"main",fn:of,effect:lf,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function io(e){return e.split("-")[1]}var sf={top:"auto",right:"auto",bottom:"auto",left:"auto"};function rf(e){var t=e.x,n=e.y,o=window,l=o.devicePixelRatio||1;return{x:so(t*l)/l||0,y:so(n*l)/l||0}}function es(e){var t,n=e.popper,o=e.popperRect,l=e.placement,s=e.variation,r=e.offsets,u=e.position,i=e.gpuAcceleration,c=e.adaptive,f=e.roundOffsets,h=e.isFixed,p=r.x,d=p===void 0?0:p,v=r.y,m=v===void 0?0:v,y=typeof f=="function"?f({x:d,y:m}):{x:d,y:m};d=y.x,m=y.y;var b=r.hasOwnProperty("x"),C=r.hasOwnProperty("y"),g=Lt,w=Dt,M=window;if(c){var I=Fo(n),T="clientHeight",B="clientWidth";if(I===en(n)&&(I=Bn(n),bn(I).position!=="static"&&u==="absolute"&&(T="scrollHeight",B="scrollWidth")),I=I,l===Dt||(l===Lt||l===Gt)&&s===Po){w=Yt;var O=h&&I===M&&M.visualViewport?M.visualViewport.height:I[T];m-=O-o.height,m*=i?1:-1}if(l===Lt||(l===Dt||l===Yt)&&s===Po){g=Gt;var V=h&&I===M&&M.visualViewport?M.visualViewport.width:I[B];d-=V-o.width,d*=i?1:-1}}var W=Object.assign({position:u},c&&sf),J=f===!0?rf({x:d,y:m}):{x:d,y:m};if(d=J.x,m=J.y,i){var F;return Object.assign({},W,(F={},F[w]=C?"0":"",F[g]=b?"0":"",F.transform=(M.devicePixelRatio||1)<=1?"translate("+d+"px, "+m+"px)":"translate3d("+d+"px, "+m+"px, 0)",F))}return Object.assign({},W,(t={},t[w]=C?m+"px":"",t[g]=b?d+"px":"",t.transform="",t))}function uf(e){var t=e.state,n=e.options,o=n.gpuAcceleration,l=o===void 0?!0:o,s=n.adaptive,r=s===void 0?!0:s,u=n.roundOffsets,i=u===void 0?!0:u,c={placement:sn(t.placement),variation:io(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:l,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,es(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:r,roundOffsets:i})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,es(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:i})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var zr={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:uf,data:{}},Vo={passive:!0};function cf(e){var t=e.state,n=e.instance,o=e.options,l=o.scroll,s=l===void 0?!0:l,r=o.resize,u=r===void 0?!0:r,i=en(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&c.forEach(function(f){f.addEventListener("scroll",n.update,Vo)}),u&&i.addEventListener("resize",n.update,Vo),function(){s&&c.forEach(function(f){f.removeEventListener("scroll",n.update,Vo)}),u&&i.removeEventListener("resize",n.update,Vo)}}var Vr={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:cf,data:{}},df={left:"right",right:"left",bottom:"top",top:"bottom"};function Uo(e){return e.replace(/left|right|bottom|top/g,function(t){return df[t]})}var ff={start:"end",end:"start"};function ts(e){return e.replace(/start|end/g,function(t){return ff[t]})}function wa(e){var t=en(e),n=t.pageXOffset,o=t.pageYOffset;return{scrollLeft:n,scrollTop:o}}function ka(e){return ro(Bn(e)).left+wa(e).scrollLeft}function pf(e){var t=en(e),n=Bn(e),o=t.visualViewport,l=n.clientWidth,s=n.clientHeight,r=0,u=0;return o&&(l=o.width,s=o.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(r=o.offsetLeft,u=o.offsetTop)),{width:l,height:s,x:r+ka(e),y:u}}function vf(e){var t,n=Bn(e),o=wa(e),l=(t=e.ownerDocument)==null?void 0:t.body,s=Vn(n.scrollWidth,n.clientWidth,l?l.scrollWidth:0,l?l.clientWidth:0),r=Vn(n.scrollHeight,n.clientHeight,l?l.scrollHeight:0,l?l.clientHeight:0),u=-o.scrollLeft+ka(e),i=-o.scrollTop;return bn(l||n).direction==="rtl"&&(u+=Vn(n.clientWidth,l?l.clientWidth:0)-s),{width:s,height:r,x:u,y:i}}function Sa(e){var t=bn(e),n=t.overflow,o=t.overflowX,l=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+l+o)}function Hr(e){return["html","body","#document"].indexOf(cn(e))>=0?e.ownerDocument.body:qt(e)&&Sa(e)?e:Hr(kl(e))}function $o(e,t){var n;t===void 0&&(t=[]);var o=Hr(e),l=o===((n=e.ownerDocument)==null?void 0:n.body),s=en(o),r=l?[s].concat(s.visualViewport||[],Sa(o)?o:[]):o,u=t.concat(r);return l?u:u.concat($o(kl(r)))}function jl(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function mf(e){var t=ro(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}function ns(e,t){return t===Br?jl(pf(e)):ao(t)?mf(t):jl(vf(Bn(e)))}function hf(e){var t=$o(kl(e)),n=["absolute","fixed"].indexOf(bn(e).position)>=0,o=n&&qt(e)?Fo(e):e;return ao(o)?t.filter(function(l){return ao(l)&&Lr(l,o)&&cn(l)!=="body"}):[]}function gf(e,t,n){var o=t==="clippingParents"?hf(e):[].concat(t),l=[].concat(o,[n]),s=l[0],r=l.reduce(function(u,i){var c=ns(e,i);return u.top=Vn(c.top,u.top),u.right=ul(c.right,u.right),u.bottom=ul(c.bottom,u.bottom),u.left=Vn(c.left,u.left),u},ns(e,s));return r.width=r.right-r.left,r.height=r.bottom-r.top,r.x=r.left,r.y=r.top,r}function Kr(e){var t=e.reference,n=e.element,o=e.placement,l=o?sn(o):null,s=o?io(o):null,r=t.x+t.width/2-n.width/2,u=t.y+t.height/2-n.height/2,i;switch(l){case Dt:i={x:r,y:t.y-n.height};break;case Yt:i={x:r,y:t.y+t.height};break;case Gt:i={x:t.x+t.width,y:u};break;case Lt:i={x:t.x-n.width,y:u};break;default:i={x:t.x,y:t.y}}var c=l?Ca(l):null;if(c!=null){var f=c==="y"?"height":"width";switch(s){case lo:i[c]=i[c]-(t[f]/2-n[f]/2);break;case Po:i[c]=i[c]+(t[f]/2-n[f]/2);break}}return i}function Io(e,t){t===void 0&&(t={});var n=t,o=n.placement,l=o===void 0?e.placement:o,s=n.boundary,r=s===void 0?zd:s,u=n.rootBoundary,i=u===void 0?Br:u,c=n.elementContext,f=c===void 0?ko:c,h=n.altBoundary,p=h===void 0?!1:h,d=n.padding,v=d===void 0?0:d,m=_r(typeof v!="number"?v:Fr(v,_o)),y=f===ko?Vd:ko,b=e.rects.popper,C=e.elements[p?y:f],g=gf(ao(C)?C:C.contextElement||Bn(e.elements.popper),r,i),w=ro(e.elements.reference),M=Kr({reference:w,element:b,strategy:"absolute",placement:l}),I=jl(Object.assign({},b,M)),T=f===ko?I:w,B={top:g.top-T.top+m.top,bottom:T.bottom-g.bottom+m.bottom,left:g.left-T.left+m.left,right:T.right-g.right+m.right},O=e.modifiersData.offset;if(f===ko&&O){var V=O[l];Object.keys(B).forEach(function(W){var J=[Gt,Yt].indexOf(W)>=0?1:-1,F=[Dt,Yt].indexOf(W)>=0?"y":"x";B[W]+=V[F]*J})}return B}function bf(e,t){t===void 0&&(t={});var n=t,o=n.placement,l=n.boundary,s=n.rootBoundary,r=n.padding,u=n.flipVariations,i=n.allowedAutoPlacements,c=i===void 0?ga:i,f=io(o),h=f?u?Za:Za.filter(function(v){return io(v)===f}):_o,p=h.filter(function(v){return c.indexOf(v)>=0});p.length===0&&(p=h);var d=p.reduce(function(v,m){return v[m]=Io(e,{placement:m,boundary:l,rootBoundary:s,padding:r})[sn(m)],v},{});return Object.keys(d).sort(function(v,m){return d[v]-d[m]})}function yf(e){if(sn(e)===ha)return[];var t=Uo(e);return[ts(e),t,ts(t)]}function Cf(e){var t=e.state,n=e.options,o=e.name;if(!t.modifiersData[o]._skip){for(var l=n.mainAxis,s=l===void 0?!0:l,r=n.altAxis,u=r===void 0?!0:r,i=n.fallbackPlacements,c=n.padding,f=n.boundary,h=n.rootBoundary,p=n.altBoundary,d=n.flipVariations,v=d===void 0?!0:d,m=n.allowedAutoPlacements,y=t.options.placement,b=sn(y),C=b===y,g=i||(C||!v?[Uo(y)]:yf(y)),w=[y].concat(g).reduce(function(ye,ge){return ye.concat(sn(ge)===ha?bf(t,{placement:ge,boundary:f,rootBoundary:h,padding:c,flipVariations:v,allowedAutoPlacements:m}):ge)},[]),M=t.rects.reference,I=t.rects.popper,T=new Map,B=!0,O=w[0],V=0;V=0,U=H?"width":"height",_=Io(t,{placement:W,boundary:f,rootBoundary:h,altBoundary:p,padding:c}),D=H?F?Gt:Lt:F?Yt:Dt;M[U]>I[U]&&(D=Uo(D));var A=Uo(D),N=[];if(s&&N.push(_[J]<=0),u&&N.push(_[D]<=0,_[A]<=0),N.every(function(ye){return ye})){O=W,B=!1;break}T.set(W,N)}if(B)for(var R=v?3:1,G=function(ye){var ge=w.find(function(Te){var X=T.get(Te);if(X)return X.slice(0,ye).every(function(ve){return ve})});if(ge)return O=ge,"break"},re=R;re>0;re--){var ce=G(re);if(ce==="break")break}t.placement!==O&&(t.modifiersData[o]._skip=!0,t.placement=O,t.reset=!0)}}var wf={name:"flip",enabled:!0,phase:"main",fn:Cf,requiresIfExists:["offset"],data:{_skip:!1}};function os(e,t,n){return n===void 0&&(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 ls(e){return[Dt,Gt,Yt,Lt].some(function(t){return e[t]>=0})}function kf(e){var t=e.state,n=e.name,o=t.rects.reference,l=t.rects.popper,s=t.modifiersData.preventOverflow,r=Io(t,{elementContext:"reference"}),u=Io(t,{altBoundary:!0}),i=os(r,o),c=os(u,l,s),f=ls(i),h=ls(c);t.modifiersData[n]={referenceClippingOffsets:i,popperEscapeOffsets:c,isReferenceHidden:f,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":h})}var Sf={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:kf};function Ef(e,t,n){var o=sn(e),l=[Lt,Dt].indexOf(o)>=0?-1:1,s=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,r=s[0],u=s[1];return r=r||0,u=(u||0)*l,[Lt,Gt].indexOf(o)>=0?{x:u,y:r}:{x:r,y:u}}function $f(e){var t=e.state,n=e.options,o=e.name,l=n.offset,s=l===void 0?[0,0]:l,r=ga.reduce(function(f,h){return f[h]=Ef(h,t.rects,s),f},{}),u=r[t.placement],i=u.x,c=u.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=i,t.modifiersData.popperOffsets.y+=c),t.modifiersData[o]=r}var Tf={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:$f};function Nf(e){var t=e.state,n=e.name;t.modifiersData[n]=Kr({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var Wr={name:"popperOffsets",enabled:!0,phase:"read",fn:Nf,data:{}};function Pf(e){return e==="x"?"y":"x"}function If(e){var t=e.state,n=e.options,o=e.name,l=n.mainAxis,s=l===void 0?!0:l,r=n.altAxis,u=r===void 0?!1:r,i=n.boundary,c=n.rootBoundary,f=n.altBoundary,h=n.padding,p=n.tether,d=p===void 0?!0:p,v=n.tetherOffset,m=v===void 0?0:v,y=Io(t,{boundary:i,rootBoundary:c,padding:h,altBoundary:f}),b=sn(t.placement),C=io(t.placement),g=!C,w=Ca(b),M=Pf(w),I=t.modifiersData.popperOffsets,T=t.rects.reference,B=t.rects.popper,O=typeof m=="function"?m(Object.assign({},t.rects,{placement:t.placement})):m,V=typeof O=="number"?{mainAxis:O,altAxis:O}:Object.assign({mainAxis:0,altAxis:0},O),W=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,J={x:0,y:0};if(I){if(s){var F,H=w==="y"?Dt:Lt,U=w==="y"?Yt:Gt,_=w==="y"?"height":"width",D=I[w],A=D+y[H],N=D-y[U],R=d?-B[_]/2:0,G=C===lo?T[_]:B[_],re=C===lo?-B[_]:-T[_],ce=t.elements.arrow,ye=d&&ce?ya(ce):{width:0,height:0},ge=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Rr(),Te=ge[H],X=ge[U],ve=Eo(0,T[_],ye[_]),Ne=g?T[_]/2-R-ve-Te-V.mainAxis:G-ve-Te-V.mainAxis,Le=g?-T[_]/2+R+ve+X+V.mainAxis:re+ve+X+V.mainAxis,Ge=t.elements.arrow&&Fo(t.elements.arrow),Ze=Ge?w==="y"?Ge.clientTop||0:Ge.clientLeft||0:0,Ue=(F=W==null?void 0:W[w])!=null?F:0,ht=D+Ne-Ue-Ze,Ae=D+Le-Ue,it=Eo(d?ul(A,ht):A,D,d?Vn(N,Ae):N);I[w]=it,J[w]=it-D}if(u){var lt,ft=w==="x"?Dt:Lt,gt=w==="x"?Yt:Gt,et=I[M],st=M==="y"?"height":"width",Et=et+y[ft],bt=et-y[gt],ae=[Dt,Lt].indexOf(b)!==-1,Be=(lt=W==null?void 0:W[M])!=null?lt:0,_e=ae?Et:et-T[st]-B[st]-Be+V.altAxis,Qe=ae?et+T[st]+B[st]-Be-V.altAxis:bt,q=d&&ae?tf(_e,et,Qe):Eo(d?_e:Et,et,d?Qe:bt);I[M]=q,J[M]=q-et}t.modifiersData[o]=J}}var Mf={name:"preventOverflow",enabled:!0,phase:"main",fn:If,requiresIfExists:["offset"]};function Of(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Af(e){return e===en(e)||!qt(e)?wa(e):Of(e)}function Bf(e){var t=e.getBoundingClientRect(),n=so(t.width)/e.offsetWidth||1,o=so(t.height)/e.offsetHeight||1;return n!==1||o!==1}function Df(e,t,n){n===void 0&&(n=!1);var o=qt(t),l=qt(t)&&Bf(t),s=Bn(t),r=ro(e,l),u={scrollLeft:0,scrollTop:0},i={x:0,y:0};return(o||!o&&!n)&&((cn(t)!=="body"||Sa(s))&&(u=Af(t)),qt(t)?(i=ro(t,!0),i.x+=t.clientLeft,i.y+=t.clientTop):s&&(i.x=ka(s))),{x:r.left+u.scrollLeft-i.x,y:r.top+u.scrollTop-i.y,width:r.width,height:r.height}}function Lf(e){var t=new Map,n=new Set,o=[];e.forEach(function(s){t.set(s.name,s)});function l(s){n.add(s.name);var r=[].concat(s.requires||[],s.requiresIfExists||[]);r.forEach(function(u){if(!n.has(u)){var i=t.get(u);i&&l(i)}}),o.push(s)}return e.forEach(function(s){n.has(s.name)||l(s)}),o}function Rf(e){var t=Lf(e);return Xd.reduce(function(n,o){return n.concat(t.filter(function(l){return l.phase===o}))},[])}function _f(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Ff(e){var t=e.reduce(function(n,o){var l=n[o.name];return n[o.name]=l?Object.assign({},l,o,{options:Object.assign({},l.options,o.options),data:Object.assign({},l.data,o.data)}):o,n},{});return Object.keys(t).map(function(n){return t[n]})}var as={placement:"bottom",modifiers:[],strategy:"absolute"};function ss(){for(var e=arguments.length,t=new Array(e),n=0;n{const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const l=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||l?NodeFilter.FILTER_SKIP:o.tabIndex>=0||o===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t},rs=(e,t)=>{for(const n of e)if(!Hf(n,t))return n},Hf=(e,t)=>{if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1},Kf=e=>{const t=xr(e),n=rs(t,e),o=rs(t.reverse(),e);return[n,o]},Wf=e=>e instanceof HTMLInputElement&&"select"in e,Sn=(e,t)=>{if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Wf(e)&&t&&e.select()}};function is(e,t){const n=[...e],o=e.indexOf(t);return o!==-1&&n.splice(o,1),n}const jf=()=>{let e=[];return{push:o=>{const l=e[0];l&&o!==l&&l.pause(),e=is(e,o),e.unshift(o)},remove:o=>{var l,s;e=is(e,o),(s=(l=e[0])==null?void 0:l.resume)==null||s.call(l)}}},xf=(e,t=!1)=>{const n=document.activeElement;for(const o of e)if(Sn(o,t),document.activeElement!==n)return},us=jf(),Il="focus-trap.focus-after-trapped",Ml="focus-trap.focus-after-released",cs={cancelable:!0,bubbles:!1},ds="focusAfterTrapped",fs="focusAfterReleased",$a=Symbol("elFocusTrap"),qf=se({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[ds,fs,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const n=P();let o,l;Vc(d=>{e.trapped&&!s.paused&&t("release-requested",d)});const s={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},r=d=>{if(!e.loop&&!e.trapped||s.paused)return;const{key:v,altKey:m,ctrlKey:y,metaKey:b,currentTarget:C,shiftKey:g}=d,{loop:w}=e,M=v===be.tab&&!m&&!y&&!b,I=document.activeElement;if(M&&I){const T=C,[B,O]=Kf(T);B&&O?!g&&I===O?(d.preventDefault(),w&&Sn(B,!0),t("focusout-prevented")):g&&[B,T].includes(I)&&(d.preventDefault(),w&&Sn(O,!0),t("focusout-prevented")):I===T&&(d.preventDefault(),t("focusout-prevented"))}};Fe($a,{focusTrapRef:n,onKeydown:r}),oe(()=>e.focusTrapEl,d=>{d&&(n.value=d)},{immediate:!0}),oe([n],([d],[v])=>{d&&(d.addEventListener("keydown",r),d.addEventListener("focusin",c),d.addEventListener("focusout",f)),v&&(v.removeEventListener("keydown",r),v.removeEventListener("focusin",c),v.removeEventListener("focusout",f))});const u=d=>{t(ds,d)},i=d=>t(fs,d),c=d=>{const v=a(n);if(!v)return;const m=d.target,y=m&&v.contains(m);y&&t("focusin",d),!s.paused&&e.trapped&&(y?l=m:Sn(l,!0))},f=d=>{const v=a(n);if(!(s.paused||!v))if(e.trapped){const m=d.relatedTarget;!an(m)&&!v.contains(m)&&setTimeout(()=>{!s.paused&&e.trapped&&Sn(l,!0)},0)}else{const m=d.target;m&&v.contains(m)||t("focusout",d)}};async function h(){await ke();const d=a(n);if(d){us.push(s);const v=document.activeElement;if(o=v,!d.contains(v)){const y=new Event(Il,cs);d.addEventListener(Il,u),d.dispatchEvent(y),y.defaultPrevented||ke(()=>{let b=e.focusStartEl;He(b)||(Sn(b),document.activeElement!==b&&(b="first")),b==="first"&&xf(xr(d),!0),(document.activeElement===v||b==="container")&&Sn(d)})}}}function p(){const d=a(n);if(d){d.removeEventListener(Il,u);const v=new Event(Ml,cs);d.addEventListener(Ml,i),d.dispatchEvent(v),v.defaultPrevented||Sn(o!=null?o:document.body,!0),d.removeEventListener(Ml,u),us.remove(s)}}return Re(()=>{e.trapped&&h(),oe(()=>e.trapped,d=>{d?h():p()})}),yt(()=>{e.trapped&&p()}),{onKeydown:r}}});function Uf(e,t,n,o,l,s){return Q(e.$slots,"default",{handleKeydown:e.onKeydown})}var Sl=ie(qf,[["render",Uf],["__file","/home/runner/work/element-plus/element-plus/packages/components/focus-trap/src/focus-trap.vue"]]);const Yf=["fixed","absolute"],Gf=pe({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:te(Array),default:()=>[]},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:ga,default:"bottom"},popperOptions:{type:te(Object),default:()=>({})},strategy:{type:String,values:Yf,default:"absolute"}}),qr=pe({...Gf,id:String,style:{type:te([String,Array,Object])},className:{type:te([String,Array,Object])},effect:{type:String,default:"dark"},visible:Boolean,enterable:{type:Boolean,default:!0},pure:Boolean,focusOnShow:{type:Boolean,default:!1},trapping:{type:Boolean,default:!1},popperClass:{type:te([String,Array,Object])},popperStyle:{type:te([String,Array,Object])},referenceEl:{type:te(Object)},triggerTargetEl:{type:te(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},ariaLabel:{type:String,default:void 0},virtualTriggering:Boolean,zIndex:Number}),Xf=["mouseenter","mouseleave","focus","blur","close"],ps=(e,t)=>{const{placement:n,strategy:o,popperOptions:l}=e,s={placement:n,strategy:o,...l,modifiers:Zf(e)};return Qf(s,t),ep(s,l==null?void 0:l.modifiers),s},Jf=e=>{if(!!je)return Xs(e)};function Zf(e){const{offset:t,gpuAcceleration:n,fallbackPlacements:o}=e;return[{name:"offset",options:{offset:[0,t!=null?t:12]}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5,fallbackPlacements:o!=null?o:[]}},{name:"computeStyles",options:{gpuAcceleration:n,adaptive:n}}]}function Qf(e,{arrowEl:t,arrowOffset:n}){e.modifiers.push({name:"arrow",options:{element:t,padding:n!=null?n:5}})}function ep(e,t){t&&(e.modifiers=[...e.modifiers,...t!=null?t:[]])}const tp={name:"ElPopperContent"},np=se({...tp,props:qr,emits:Xf,setup(e,{expose:t,emit:n}){const o=e,{popperInstanceRef:l,contentRef:s,triggerRef:r,role:u}=fe(pa,void 0),i=fe(Ut,void 0),{nextZIndex:c}=An(),f=le("popper"),h=P(),p=P("first"),d=P(),v=P();Fe(Cr,{arrowRef:d,arrowOffset:v}),i&&(i.addInputId||i.removeInputId)&&Fe(Ut,{...i,addInputId:tt,removeInputId:tt});const m=P(o.zIndex||c()),y=P(!1);let b;const C=$(()=>Jf(o.referenceEl)||a(r)),g=$(()=>[{zIndex:a(m)},o.popperStyle]),w=$(()=>[f.b(),f.is("pure",o.pure),f.is(o.effect),o.popperClass]),M=$(()=>u&&u.value==="dialog"?"false":void 0),I=({referenceEl:H,popperContentEl:U,arrowEl:_})=>{const D=ps(o,{arrowEl:_,arrowOffset:a(v)});return jr(H,U,D)},T=(H=!0)=>{var U;(U=a(l))==null||U.update(),H&&(m.value=o.zIndex||c())},B=()=>{var H,U;const _={name:"eventListeners",enabled:o.visible};(U=(H=a(l))==null?void 0:H.setOptions)==null||U.call(H,D=>({...D,modifiers:[...D.modifiers||[],_]})),T(!1),o.visible&&o.focusOnShow?y.value=!0:o.visible===!1&&(y.value=!1)},O=()=>{n("focus")},V=()=>{p.value="first",n("blur")},W=H=>{var U;o.visible&&!y.value&&(H.relatedTarget&&((U=H.relatedTarget)==null||U.focus()),H.target&&(p.value=H.target),y.value=!0)},J=()=>{o.trapping||(y.value=!1)},F=()=>{y.value=!1,n("close")};return Re(()=>{let H;oe(C,U=>{var _;H==null||H();const D=a(l);if((_=D==null?void 0:D.destroy)==null||_.call(D),U){const A=a(h);s.value=A,l.value=I({referenceEl:U,popperContentEl:A,arrowEl:a(d)}),H=oe(()=>U.getBoundingClientRect(),()=>T(),{immediate:!0})}else l.value=void 0},{immediate:!0}),oe(()=>o.triggerTargetEl,(U,_)=>{b==null||b(),b=void 0;const D=a(U||h.value),A=a(_||h.value);if(hn(D)){const{ariaLabel:N,id:R}=_t(o);b=oe([u,N,M,R],G=>{["role","aria-label","aria-modal","id"].forEach((re,ce)=>{an(G[ce])?D.removeAttribute(re):D.setAttribute(re,G[ce])})},{immediate:!0})}hn(A)&&["role","aria-label","aria-modal","id"].forEach(N=>{A.removeAttribute(N)})},{immediate:!0}),oe(()=>o.visible,B,{immediate:!0}),oe(()=>ps(o,{arrowEl:a(d),arrowOffset:a(v)}),U=>{var _;return(_=l.value)==null?void 0:_.setOptions(U)})}),yt(()=>{b==null||b(),b=void 0}),t({popperContentRef:h,popperInstanceRef:l,updatePopper:T,contentStyle:g}),(H,U)=>(k(),L("div",{ref_key:"popperContentRef",ref:h,style:$e(a(g)),class:S(a(w)),tabindex:"-1",onMouseenter:U[0]||(U[0]=_=>H.$emit("mouseenter",_)),onMouseleave:U[1]||(U[1]=_=>H.$emit("mouseleave",_))},[j(a(Sl),{trapped:y.value,"trap-on-focus-in":!0,"focus-trap-el":h.value,"focus-start-el":p.value,onFocusAfterTrapped:O,onFocusAfterReleased:V,onFocusin:W,onFocusoutPrevented:J,onReleaseRequested:F},{default:K(()=>[Q(H.$slots,"default")]),_:3},8,["trapped","focus-trap-el","focus-start-el"])],38))}});var op=ie(np,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/content.vue"]]);const lp=Ke(Od),ap=le("tooltip"),Ft=pe({...Wc,...qr,appendTo:{type:te([String,Object]),default:$r},content:{type:String,default:""},rawContent:{type:Boolean,default:!1},persistent:Boolean,ariaLabel:String,visible:{type:te(Boolean),default:null},transition:{type:String,default:`${ap.namespace.value}-fade-in-linear`},teleported:{type:Boolean,default:!0},disabled:{type:Boolean}}),Mo=pe({...Ar,disabled:Boolean,trigger:{type:te([String,Array]),default:"hover"},triggerKeys:{type:te(Array),default:()=>[be.enter,be.space]}}),sp=pe({openDelay:{type:Number},visibleArrow:{type:Boolean,default:void 0},hideAfter:{type:Number,default:200},showArrow:{type:Boolean,default:!0}}),El=Symbol("elTooltip"),rp=se({name:"ElTooltipContent",components:{ElPopperContent:op},inheritAttrs:!1,props:Ft,setup(e){const t=P(null),n=P(!1),o=P(!1),l=P(!1),s=P(!1),{controlled:r,id:u,open:i,trigger:c,onClose:f,onOpen:h,onShow:p,onHide:d,onBeforeShow:v,onBeforeHide:m}=fe(El,void 0),y=$(()=>e.persistent);yt(()=>{s.value=!0});const b=$(()=>a(y)?!0:a(i)),C=$(()=>e.disabled?!1:a(i)),g=$(()=>{var H;return(H=e.style)!=null?H:{}}),w=$(()=>!a(i)),M=()=>{d()},I=()=>{if(a(r))return!0},T=pt(I,()=>{e.enterable&&a(c)==="hover"&&h()}),B=pt(I,()=>{a(c)==="hover"&&f()}),O=()=>{var H,U;(U=(H=t.value)==null?void 0:H.updatePopper)==null||U.call(H),v==null||v()},V=()=>{m==null||m()},W=()=>{p(),F=ra($(()=>{var H;return(H=t.value)==null?void 0:H.popperContentRef}),()=>{if(a(r))return;a(c)!=="hover"&&f()})},J=()=>{e.virtualTriggering||f()};let F;return oe(()=>a(i),H=>{H||F==null||F()},{flush:"post"}),{ariaHidden:w,entering:o,leaving:l,id:u,intermediateOpen:n,contentStyle:g,contentRef:t,destroyed:s,shouldRender:b,shouldShow:C,onClose:f,open:i,onAfterShow:W,onBeforeEnter:O,onBeforeLeave:V,onContentEnter:T,onContentLeave:B,onTransitionLeave:M,onBlur:J}}});function ip(e,t,n,o,l,s){const r=Ee("el-popper-content");return k(),Z(ml,{disabled:!e.teleported,to:e.appendTo},[j(St,{name:e.transition,onAfterLeave:e.onTransitionLeave,onBeforeEnter:e.onBeforeEnter,onAfterEnter:e.onAfterShow,onBeforeLeave:e.onBeforeLeave},{default:K(()=>[e.shouldRender?Ie((k(),Z(r,vt({key:0,id:e.id,ref:"contentRef"},e.$attrs,{"aria-label":e.ariaLabel,"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,"trigger-target-el":e.triggerTargetEl,visible:e.shouldShow,"z-index":e.zIndex,onMouseenter:e.onContentEnter,onMouseleave:e.onContentLeave,onBlur:e.onBlur,onClose:e.onClose}),{default:K(()=>[Y(" Workaround bug #6378 "),e.destroyed?Y("v-if",!0):Q(e.$slots,"default",{key:0})]),_:3},16,["id","aria-label","aria-hidden","boundaries-padding","fallback-placements","gpu-acceleration","offset","placement","popper-options","strategy","effect","enterable","pure","popper-class","popper-style","reference-el","trigger-target-el","visible","z-index","onMouseenter","onMouseleave","onBlur","onClose"])),[[Ye,e.shouldShow]]):Y("v-if",!0)]),_:3},8,["name","onAfterLeave","onBeforeEnter","onAfterEnter","onBeforeLeave"])],8,["disabled","to"])}var up=ie(rp,[["render",ip],["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/content.vue"]]);const cp=(e,t)=>at(e)?e.includes(t):e===t,qn=(e,t,n)=>o=>{cp(a(e),t)&&n(o)},dp=se({name:"ElTooltipTrigger",components:{ElPopperTrigger:Fd},props:Mo,setup(e){const t=le("tooltip"),{controlled:n,id:o,open:l,onOpen:s,onClose:r,onToggle:u}=fe(El,void 0),i=P(null),c=()=>{if(a(n)||e.disabled)return!0},f=ct(e,"trigger"),h=pt(c,qn(f,"hover",s)),p=pt(c,qn(f,"hover",r)),d=pt(c,qn(f,"click",C=>{C.button===0&&u(C)})),v=pt(c,qn(f,"focus",s)),m=pt(c,qn(f,"focus",r)),y=pt(c,qn(f,"contextmenu",C=>{C.preventDefault(),u(C)})),b=pt(c,C=>{const{code:g}=C;e.triggerKeys.includes(g)&&(C.preventDefault(),u(C))});return{onBlur:m,onContextMenu:y,onFocus:v,onMouseenter:h,onMouseleave:p,onClick:d,onKeydown:b,open:l,id:o,triggerRef:i,ns:t}}});function fp(e,t,n,o,l,s){const r=Ee("el-popper-trigger");return k(),Z(r,{id:e.id,"virtual-ref":e.virtualRef,open:e.open,"virtual-triggering":e.virtualTriggering,class:S(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:K(()=>[Q(e.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"])}var pp=ie(dp,[["render",fp],["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/trigger.vue"]]);const{useModelToggleProps:vp,useModelToggle:mp,useModelToggleEmits:hp}=_c("visible"),gp=se({name:"ElTooltip",components:{ElPopper:lp,ElPopperArrow:Dd,ElTooltipContent:up,ElTooltipTrigger:pp},props:{...Pr,...vp,...Ft,...Mo,...Ir,...sp},emits:[...hp,"before-show","before-hide","show","hide","open","close"],setup(e,{emit:t}){Kc();const n=$(()=>(Zt(e.openDelay),e.openDelay||e.showAfter)),o=$(()=>(Zt(e.visibleArrow),It(e.visibleArrow)?e.visibleArrow:e.showArrow)),l=un(),s=P(null),r=P(null),u=()=>{var y;const b=a(s);b&&((y=b.popperInstanceRef)==null||y.update())},i=P(!1),c=P(void 0),{show:f,hide:h}=mp({indicator:i,toggleReason:c}),{onOpen:p,onClose:d}=jc({showAfter:n,hideAfter:ct(e,"hideAfter"),open:f,close:h}),v=$(()=>It(e.visible));Fe(El,{controlled:v,id:l,open:Us(i),trigger:ct(e,"trigger"),onOpen:y=>{p(y)},onClose:y=>{d(y)},onToggle:y=>{a(i)?d(y):p(y)},onShow:()=>{t("show",c.value)},onHide:()=>{t("hide",c.value)},onBeforeShow:()=>{t("before-show",c.value)},onBeforeHide:()=>{t("before-hide",c.value)},updatePopper:u}),oe(()=>e.disabled,y=>{y&&i.value&&(i.value=!1)});const m=()=>{var y,b;const C=(b=(y=r.value)==null?void 0:y.contentRef)==null?void 0:b.popperContentRef;return C&&C.contains(document.activeElement)};return du(()=>i.value&&h()),{compatShowAfter:n,compatShowArrow:o,popperRef:s,contentRef:r,open:i,hide:h,isFocusInsideContent:m,updatePopper:u,onOpen:p,onClose:d}}}),bp=["innerHTML"],yp={key:1};function Cp(e,t,n,o,l,s){const r=Ee("el-tooltip-trigger"),u=Ee("el-popper-arrow"),i=Ee("el-tooltip-content"),c=Ee("el-popper");return k(),Z(c,{ref:"popperRef",role:e.role},{default:K(()=>[j(r,{disabled:e.disabled,trigger:e.trigger,"trigger-keys":e.triggerKeys,"virtual-ref":e.virtualRef,"virtual-triggering":e.virtualTriggering},{default:K(()=>[e.$slots.default?Q(e.$slots,"default",{key:0}):Y("v-if",!0)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering"]),j(i,{ref:"contentRef","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,"trigger-target-el":e.triggerTargetEl,"show-after":e.compatShowAfter,strategy:e.strategy,teleported:e.teleported,transition:e.transition,"virtual-triggering":e.virtualTriggering,"z-index":e.zIndex,"append-to":e.appendTo},{default:K(()=>[Q(e.$slots,"content",{},()=>[e.rawContent?(k(),L("span",{key:0,innerHTML:e.content},null,8,bp)):(k(),L("span",yp,de(e.content),1))]),e.compatShowArrow?(k(),Z(u,{key:0,"arrow-offset":e.arrowOffset},null,8,["arrow-offset"])):Y("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","trigger-target-el","show-after","strategy","teleported","transition","virtual-triggering","z-index","append-to"])]),_:3},8,["role"])}var wp=ie(gp,[["render",Cp],["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/tooltip.vue"]]);const wn=Ke(wp),kp=pe({valueKey:{type:String,default:"value"},modelValue:{type:[String,Number],default:""},debounce:{type:Number,default:300},placement:{type:te(String),values:["top","top-start","top-end","bottom","bottom-start","bottom-end"],default:"bottom-start"},fetchSuggestions:{type:te([Function,Array]),default:tt},popperClass:{type:String,default:""},triggerOnFocus:{type:Boolean,default:!0},selectWhenUnmatched:{type:Boolean,default:!1},hideLoading:{type:Boolean,default:!1},label:{type:String},teleported:Ft.teleported,highlightFirstItem:{type:Boolean,default:!1},fitInputWidth:{type:Boolean,default:!1}}),Sp={[qe]:e=>He(e),[Kn]:e=>He(e),[gn]:e=>He(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,select:e=>Mt(e)},Ep=["aria-expanded","aria-owns"],$p={key:0},Tp=["id","aria-selected","onClick"],Np={name:"ElAutocomplete",inheritAttrs:!1},Pp=se({...Np,props:kp,emits:Sp,setup(e,{expose:t,emit:n}){const o=e,l="ElAutocomplete",s=fa(),r=Bo(),u=On(),i=le("autocomplete"),c=P(),f=P(),h=P(),p=P();let d=!1;const v=P([]),m=P(-1),y=P(""),b=P(!1),C=P(!1),g=P(!1),w=$(()=>i.b(String(cr()))),M=$(()=>r.style),I=$(()=>(v.value.length>0||g.value)&&b.value),T=$(()=>!o.hideLoading&&g.value),B=$(()=>c.value?Array.from(c.value.$el.querySelectorAll("input")):[]),O=async()=>{await ke(),I.value&&(y.value=`${c.value.$el.offsetWidth}px`)},V=()=>{d=!0},W=()=>{d=!1,m.value=-1},F=mn(async X=>{if(C.value)return;const ve=Ne=>{g.value=!1,!C.value&&(at(Ne)?(v.value=Ne,m.value=o.highlightFirstItem?0:-1):Ot(l,"autocomplete suggestions must be an array"))};if(g.value=!0,at(o.fetchSuggestions))ve(o.fetchSuggestions);else{const Ne=await o.fetchSuggestions(X,ve);at(Ne)&&ve(Ne)}},o.debounce),H=X=>{const ve=!!X;if(n(Kn,X),n(qe,X),C.value=!1,b.value||(b.value=ve),!o.triggerOnFocus&&!X){C.value=!0,v.value=[];return}F(X)},U=X=>{var ve;u.value||(((ve=X.target)==null?void 0:ve.tagName)!=="INPUT"||B.value.includes(document.activeElement))&&(b.value=!0)},_=X=>{n(gn,X)},D=X=>{d||(b.value=!0,n("focus",X),o.triggerOnFocus&&F(String(o.modelValue)))},A=X=>{d||n("blur",X)},N=()=>{b.value=!1,n(qe,""),n("clear")},R=async()=>{I.value&&m.value>=0&&m.value{I.value&&(X.preventDefault(),X.stopPropagation(),re())},re=()=>{b.value=!1},ce=()=>{var X;(X=c.value)==null||X.focus()},ye=()=>{var X;(X=c.value)==null||X.blur()},ge=async X=>{n(Kn,X[o.valueKey]),n(qe,X[o.valueKey]),n("select",X),v.value=[],m.value=-1},Te=X=>{if(!I.value||g.value)return;if(X<0){m.value=-1;return}X>=v.value.length&&(X=v.value.length-1);const ve=f.value.querySelector(`.${i.be("suggestion","wrap")}`),Le=ve.querySelectorAll(`.${i.be("suggestion","list")} li`)[X],Ge=ve.scrollTop,{offsetTop:Ze,scrollHeight:Ue}=Le;Ze+Ue>Ge+ve.clientHeight&&(ve.scrollTop+=Ue),Ze{I.value&&re()}),Re(()=>{c.value.ref.setAttribute("role","textbox"),c.value.ref.setAttribute("aria-autocomplete","list"),c.value.ref.setAttribute("aria-controls","id"),c.value.ref.setAttribute("aria-activedescendant",`${w.value}-item-${m.value}`)}),t({highlightedIndex:m,activated:b,loading:g,inputRef:c,popperRef:h,suggestions:v,handleSelect:ge,handleKeyEnter:R,focus:ce,blur:ye,close:re,highlight:Te}),(X,ve)=>(k(),Z(a(wn),{ref_key:"popperRef",ref:h,visible:a(I),placement:X.placement,"fallback-placements":["bottom-start","top-start"],"popper-class":[a(i).e("popper"),X.popperClass],teleported:X.teleported,"gpu-acceleration":!1,pure:"","manual-mode":"",effect:"light",trigger:"click",transition:`${a(i).namespace.value}-zoom-in-top`,persistent:"",onBeforeShow:O,onShow:V,onHide:W},{content:K(()=>[x("div",{ref_key:"regionRef",ref:f,class:S([a(i).b("suggestion"),a(i).is("loading",a(T))]),style:$e({[X.fitInputWidth?"width":"minWidth"]:y.value,outline:"none"}),role:"region"},[j(a(bo),{id:a(w),tag:"ul","wrap-class":a(i).be("suggestion","wrap"),"view-class":a(i).be("suggestion","list"),role:"listbox"},{default:K(()=>[a(T)?(k(),L("li",$p,[j(a(he),{class:S(a(i).is("loading"))},{default:K(()=>[j(a(vo))]),_:1},8,["class"])])):(k(!0),L(Pe,{key:1},ot(v.value,(Ne,Le)=>(k(),L("li",{id:`${a(w)}-item-${Le}`,key:Le,class:S({highlighted:m.value===Le}),role:"option","aria-selected":m.value===Le,onClick:Ge=>ge(Ne)},[Q(X.$slots,"default",{item:Ne},()=>[Xe(de(Ne[X.valueKey]),1)])],10,Tp))),128))]),_:3},8,["id","wrap-class","view-class"])],6)]),default:K(()=>[x("div",{ref_key:"listboxRef",ref:p,class:S([a(i).b(),X.$attrs.class]),style:$e(a(M)),role:"combobox","aria-haspopup":"listbox","aria-expanded":a(I),"aria-owns":a(w)},[j(a(Vt),vt({ref_key:"inputRef",ref:c},a(s),{"model-value":X.modelValue,onInput:H,onChange:_,onFocus:D,onBlur:A,onClear:N,onKeydown:[ve[0]||(ve[0]=xe(Oe(Ne=>Te(m.value-1),["prevent"]),["up"])),ve[1]||(ve[1]=xe(Oe(Ne=>Te(m.value+1),["prevent"]),["down"])),xe(R,["enter"]),xe(re,["tab"]),xe(G,["esc"])],onMousedown:U}),Jn({_:2},[X.$slots.prepend?{name:"prepend",fn:K(()=>[Q(X.$slots,"prepend")])}:void 0,X.$slots.append?{name:"append",fn:K(()=>[Q(X.$slots,"append")])}:void 0,X.$slots.prefix?{name:"prefix",fn:K(()=>[Q(X.$slots,"prefix")])}:void 0,X.$slots.suffix?{name:"suffix",fn:K(()=>[Q(X.$slots,"suffix")])}:void 0]),1040,["model-value","onKeydown"])],14,Ep)]),_:3},8,["visible","placement","popper-class","teleported","transition"]))}});var Ip=ie(Pp,[["__file","/home/runner/work/element-plus/element-plus/packages/components/autocomplete/src/autocomplete.vue"]]);const wS=Ke(Ip),Mp=pe({size:{type:[Number,String],values:ho,default:"",validator:e=>We(e)},shape:{type:String,values:["circle","square"],default:"circle"},icon:{type:Wt},src:{type:String,default:""},alt:String,srcSet:String,fit:{type:te(String),default:"cover"}}),Op={error:e=>e instanceof Event},Ap=["src","alt","srcset"],Bp={name:"ElAvatar"},Dp=se({...Bp,props:Mp,emits:Op,setup(e,{emit:t}){const n=e,o=le("avatar"),l=P(!1),s=$(()=>{const{size:c,icon:f,shape:h}=n,p=[o.b()];return He(c)&&p.push(o.m(c)),f&&p.push(o.m("icon")),h&&p.push(o.m(h)),p}),r=$(()=>{const{size:c}=n;return We(c)?o.cssVarBlock({size:Kt(c)||""}):void 0}),u=$(()=>({objectFit:n.fit}));oe(()=>n.src,()=>l.value=!1);function i(c){l.value=!0,t("error",c)}return(c,f)=>(k(),L("span",{class:S(a(s)),style:$e(a(r))},[(c.src||c.srcSet)&&!l.value?(k(),L("img",{key:0,src:c.src,alt:c.alt,srcset:c.srcSet,style:$e(a(u)),onError:i},null,44,Ap)):c.icon?(k(),Z(a(he),{key:1},{default:K(()=>[(k(),Z(Ve(c.icon)))]),_:1})):Q(c.$slots,"default",{key:2})],6))}});var Lp=ie(Dp,[["__file","/home/runner/work/element-plus/element-plus/packages/components/avatar/src/avatar.vue"]]);const kS=Ke(Lp),Rp=pe({value:{type:[String,Number],default:""},max:{type:Number,default:99},isDot:Boolean,hidden:Boolean,type:{type:String,values:["primary","success","warning","info","danger"],default:"danger"}}),_p=["textContent"],Fp={name:"ElBadge"},zp=se({...Fp,props:Rp,setup(e,{expose:t}){const n=e,o=le("badge"),l=$(()=>n.isDot?"":We(n.value)&&We(n.max)?n.max(k(),L("div",{class:S(a(o).b())},[Q(s.$slots,"default"),j(St,{name:`${a(o).namespace.value}-zoom-in-center`,persisted:""},{default:K(()=>[Ie(x("sup",{class:S([a(o).e("content"),a(o).em("content",s.type),a(o).is("fixed",!!s.$slots.default),a(o).is("dot",s.isDot)]),textContent:de(a(l))},null,10,_p),[[Ye,!s.hidden&&(a(l)||s.isDot)]])]),_:1},8,["name"])],2))}});var Vp=ie(zp,[["__file","/home/runner/work/element-plus/element-plus/packages/components/badge/src/badge.vue"]]);const Hp=Ke(Vp),Kp=pe({separator:{type:String,default:"/"},separatorIcon:{type:Wt,default:""}}),Wp={name:"ElBreadcrumb"},jp=se({...Wp,props:Kp,setup(e){const t=e,n=le("breadcrumb"),o=P();return Fe(dr,t),Re(()=>{const l=o.value.querySelectorAll(`.${n.e("item")}`);l.length&&l[l.length-1].setAttribute("aria-current","page")}),(l,s)=>(k(),L("div",{ref_key:"breadcrumb",ref:o,class:S(a(n).b()),"aria-label":"Breadcrumb",role:"navigation"},[Q(l.$slots,"default")],2))}});var xp=ie(jp,[["__file","/home/runner/work/element-plus/element-plus/packages/components/breadcrumb/src/breadcrumb.vue"]]);const qp=pe({to:{type:te([String,Object]),default:""},replace:{type:Boolean,default:!1}}),Up={name:"ElBreadcrumbItem"},Yp=se({...Up,props:qp,setup(e){const t=e,n=De(),o=fe(dr,void 0),l=le("breadcrumb"),{separator:s,separatorIcon:r}=_t(o),u=n.appContext.config.globalProperties.$router,i=P(),c=()=>{!t.to||!u||(t.replace?u.replace(t.to):u.push(t.to))};return(f,h)=>(k(),L("span",{class:S(a(l).e("item"))},[x("span",{ref_key:"link",ref:i,class:S([a(l).e("inner"),a(l).is("link",!!f.to)]),role:"link",onClick:c},[Q(f.$slots,"default")],2),a(r)?(k(),Z(a(he),{key:0,class:S(a(l).e("separator"))},{default:K(()=>[(k(),Z(Ve(a(r))))]),_:1},8,["class"])):(k(),L("span",{key:1,class:S(a(l).e("separator")),role:"presentation"},de(a(s)),3))],2))}});var Ur=ie(Yp,[["__file","/home/runner/work/element-plus/element-plus/packages/components/breadcrumb/src/breadcrumb-item.vue"]]);const SS=Ke(xp,{BreadcrumbItem:Ur}),ES=mt(Ur),Gp=["default","primary","success","warning","info","danger","text",""],Xp=["button","submit","reset"],xl=pe({size:Cn,disabled:Boolean,type:{type:String,values:Gp,default:""},icon:{type:Wt,default:""},nativeType:{type:String,values:Xp,default:"button"},loading:Boolean,loadingIcon:{type:Wt,default:()=>vo},plain:Boolean,text:Boolean,link:Boolean,bg:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0}}),Jp={click:e=>e instanceof MouseEvent};function kn(e,t=20){return e.mix("#141414",t).toString()}function Zp(e){const t=On(),n=le("button");return $(()=>{let o={};const l=e.color;if(l){const s=new lr(l),r=e.dark?s.tint(20).toString():kn(s,20);if(e.plain)o=n.cssVarBlock({"bg-color":e.dark?kn(s,90):s.tint(90).toString(),"text-color":l,"border-color":e.dark?kn(s,50):s.tint(50).toString(),"hover-text-color":`var(${n.cssVarName("color-white")})`,"hover-bg-color":l,"hover-border-color":l,"active-bg-color":r,"active-text-color":`var(${n.cssVarName("color-white")})`,"active-border-color":r}),t.value&&(o[n.cssVarBlockName("disabled-bg-color")]=e.dark?kn(s,90):s.tint(90).toString(),o[n.cssVarBlockName("disabled-text-color")]=e.dark?kn(s,50):s.tint(50).toString(),o[n.cssVarBlockName("disabled-border-color")]=e.dark?kn(s,80):s.tint(80).toString());else{const u=e.dark?kn(s,30):s.tint(30).toString(),i=s.isDark()?`var(${n.cssVarName("color-white")})`:`var(${n.cssVarName("color-black")})`;if(o=n.cssVarBlock({"bg-color":l,"text-color":i,"border-color":l,"hover-bg-color":u,"hover-text-color":i,"hover-border-color":u,"active-bg-color":r,"active-border-color":r}),t.value){const c=e.dark?kn(s,50):s.tint(50).toString();o[n.cssVarBlockName("disabled-bg-color")]=c,o[n.cssVarBlockName("disabled-text-color")]=e.dark?"rgba(255, 255, 255, 0.5)":`var(${n.cssVarName("color-white")})`,o[n.cssVarBlockName("disabled-border-color")]=c}}}return o})}const Qp=["aria-disabled","disabled","autofocus","type"],ev={name:"ElButton"},tv=se({...ev,props:xl,emits:Jp,setup(e,{expose:t,emit:n}){const o=e,l=Xt();Lo({from:"type.text",replacement:"type.link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},$(()=>o.type==="text"));const s=fe(fr,void 0),r=jn("button"),u=le("button"),{form:i}=Ro(),c=kt($(()=>s==null?void 0:s.size)),f=On(),h=P(),p=$(()=>o.type||(s==null?void 0:s.type)||""),d=$(()=>{var b,C,g;return(g=(C=o.autoInsertSpace)!=null?C:(b=r.value)==null?void 0:b.autoInsertSpace)!=null?g:!1}),v=$(()=>{var b;const C=(b=l.default)==null?void 0:b.call(l);if(d.value&&(C==null?void 0:C.length)===1){const g=C[0];if((g==null?void 0:g.type)===xs){const w=g.children;return/^\p{Unified_Ideograph}{2}$/u.test(w.trim())}}return!1}),m=Zp(o),y=b=>{o.nativeType==="reset"&&(i==null||i.resetFields()),n("click",b)};return t({ref:h,size:c,type:p,disabled:f,shouldAddSpace:v}),(b,C)=>(k(),L("button",{ref_key:"_ref",ref:h,class:S([a(u).b(),a(u).m(a(p)),a(u).m(a(c)),a(u).is("disabled",a(f)),a(u).is("loading",b.loading),a(u).is("plain",b.plain),a(u).is("round",b.round),a(u).is("circle",b.circle),a(u).is("text",b.text),a(u).is("link",b.link),a(u).is("has-bg",b.bg)]),"aria-disabled":a(f)||b.loading,disabled:a(f)||b.loading,autofocus:b.autofocus,type:b.nativeType,style:$e(a(m)),onClick:y},[b.loading?(k(),L(Pe,{key:0},[b.$slots.loading?Q(b.$slots,"loading",{key:0}):(k(),Z(a(he),{key:1,class:S(a(u).is("loading"))},{default:K(()=>[(k(),Z(Ve(b.loadingIcon)))]),_:1},8,["class"]))],64)):b.icon||b.$slots.icon?(k(),Z(a(he),{key:1},{default:K(()=>[b.icon?(k(),Z(Ve(b.icon),{key:0})):Q(b.$slots,"icon",{key:1})]),_:3})):Y("v-if",!0),b.$slots.default?(k(),L("span",{key:2,class:S({[a(u).em("text","expand")]:a(v)})},[Q(b.$slots,"default")],2)):Y("v-if",!0)],14,Qp))}});var nv=ie(tv,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button.vue"]]);const ov={size:xl.size,type:xl.type},lv={name:"ElButtonGroup"},av=se({...lv,props:ov,setup(e){const t=e;Fe(fr,rt({size:ct(t,"size"),type:ct(t,"type")}));const n=le("button");return(o,l)=>(k(),L("div",{class:S(`${a(n).b("group")}`)},[Q(o.$slots,"default")],2))}});var Yr=ie(av,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button-group.vue"]]);const In=Ke(nv,{ButtonGroup:Yr});mt(Yr);const vs=["hours","minutes","seconds"],ms="HH:mm:ss",Un="YYYY-MM-DD",sv={date:Un,dates:Un,week:"gggg[w]ww",year:"YYYY",month:"YYYY-MM",datetime:`${Un} ${ms}`,monthrange:"YYYY-MM",daterange:Un,datetimerange:`${Un} ${ms}`},Ol=(e,t)=>[e>0?e-1:void 0,e,eArray.from(Array.from({length:e}).keys()),Xr=e=>e.replace(/\W?m{1,2}|\W?ZZ/g,"").replace(/\W?h{1,2}|\W?s{1,3}|\W?a/gi,"").trim(),Jr=e=>e.replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?Y{2,4}/g,"").trim(),hs=function(e,t){const n=za(e),o=za(t);return n&&o?e.getTime()===t.getTime():!n&&!o?e===t:!1},gs=function(e,t){const n=at(e),o=at(t);return n&&o?e.length!==t.length?!1:e.every((l,s)=>hs(l,t[s])):!n&&!o?hs(e,t):!1},bs=function(e,t,n){const o=ar(t)||t==="x"?Me(e).locale(n):Me(e,t).locale(n);return o.isValid()?o:void 0},ys=function(e,t,n){return ar(t)?e:t==="x"?+e:Me(e).locale(n).format(t)},Al=(e,t)=>{var n;const o=[],l=t==null?void 0:t();for(let s=0;s({})},modelValue:{type:te([Date,Array,String,Number]),default:""},rangeSeparator:{type:String,default:"-"},startPlaceholder:String,endPlaceholder:String,defaultValue:{type:te([Date,Array])},defaultTime:{type:te([Date,Array])},isRange:{type:Boolean,default:!1},...Zr,disabledDate:{type:Function},cellClassName:{type:Function},shortcuts:{type:Array,default:()=>[]},arrowControl:{type:Boolean,default:!1},label:{type:String,default:void 0},tabindex:{type:te([String,Number]),default:0},validateEvent:{type:Boolean,default:!0},unlinkPanels:Boolean}),iv=["id","name","placeholder","value","disabled","readonly"],uv=["id","name","placeholder","value","disabled","readonly"],cv={name:"Picker"},dv=se({...cv,props:Qr,emits:["update:modelValue","change","focus","blur","calendar-change","panel-change","visible-change","keydown"],setup(e,{expose:t,emit:n}){const o=e,{lang:l}=Je(),s=le("date"),r=le("input"),u=le("range"),i=fe(dn,{}),c=fe(Ut,{}),f=fe("ElPopperOptions",{}),h=P(),p=P(),d=P(!1),v=P(!1),m=P(null);let y=!1,b=!1;oe(d,E=>{E?m.value=o.modelValue:(Ae.value=null,ke(()=>{C(o.modelValue)}))});const C=(E,z)=>{var ee;(z||!gs(E,m.value))&&(n("change",E),o.validateEvent&&((ee=c.validate)==null||ee.call(c,"change").catch(me=>void 0)))},g=E=>{if(!gs(o.modelValue,E)){let z;at(E)?z=E.map(ee=>ys(ee,o.valueFormat,l.value)):E&&(z=ys(E,o.valueFormat,l.value)),n("update:modelValue",E&&z,l.value)}},w=E=>{n("keydown",E)},M=$(()=>{if(p.value){const E=Ge.value?p.value:p.value.$el;return Array.from(E.querySelectorAll("input"))}return[]}),I=(E,z,ee)=>{const me=M.value;!me.length||(!ee||ee==="min"?(me[0].setSelectionRange(E,z),me[0].focus()):ee==="max"&&(me[1].setSelectionRange(E,z),me[1].focus()))},T=()=>{F(!0,!0),ke(()=>{b=!1})},B=(E="",z=!1)=>{z||T(),d.value=z;let ee;at(E)?ee=E.map(me=>me.toDate()):ee=E&&E.toDate(),Ae.value=null,g(ee)},O=()=>{v.value=!0},V=()=>{n("visible-change",!0)},W=E=>{(E==null?void 0:E.key)===be.esc&&F(!0,!0)},J=()=>{v.value=!1,b=!1,n("visible-change",!1)},F=(E=!0,z=!1)=>{b=z;const[ee,me]=a(M);let ue=ee;!E&&Ge.value&&(ue=me),ue&&ue.focus()},H=E=>{o.readonly||D.value||d.value||b||(d.value=!0,n("focus",E))};let U;const _=E=>{const z=async()=>{setTimeout(()=>{var ee,me;U===z&&(!(((ee=h.value)==null?void 0:ee.isFocusInsideContent())&&!y)&&M.value.filter(ue=>ue.contains(document.activeElement)).length===0&&(it(),d.value=!1,n("blur",E),o.validateEvent&&((me=c.validate)==null||me.call(c,"blur").catch(ue=>void 0))),y=!1)},0)};U=z,z()},D=$(()=>o.disabled||i.disabled),A=$(()=>{let E;if(Te.value?_e.value.getDefaultValue&&(E=_e.value.getDefaultValue()):at(o.modelValue)?E=o.modelValue.map(z=>bs(z,o.valueFormat,l.value)):E=bs(o.modelValue,o.valueFormat,l.value),_e.value.getRangeAvailableTime){const z=_e.value.getRangeAvailableTime(E);oo(z,E)||(E=z,g(at(E)?E.map(ee=>ee.toDate()):E.toDate()))}return at(E)&&E.some(z=>!z)&&(E=[]),E}),N=$(()=>{if(!_e.value.panelReady)return"";const E=ft(A.value);return at(Ae.value)?[Ae.value[0]||E&&E[0]||"",Ae.value[1]||E&&E[1]||""]:Ae.value!==null?Ae.value:!G.value&&Te.value||!d.value&&Te.value?"":E?re.value?E.join(", "):E:""}),R=$(()=>o.type.includes("time")),G=$(()=>o.type.startsWith("time")),re=$(()=>o.type==="dates"),ce=$(()=>o.prefixIcon||(R.value?Mu:Ou)),ye=P(!1),ge=E=>{o.readonly||D.value||ye.value&&(E.stopPropagation(),T(),g(null),C(null,!0),ye.value=!1,d.value=!1,_e.value.handleClear&&_e.value.handleClear())},Te=$(()=>{const{modelValue:E}=o;return!E||at(E)&&!E.filter(Boolean).length}),X=async E=>{var z;o.readonly||D.value||(((z=E.target)==null?void 0:z.tagName)!=="INPUT"||M.value.includes(document.activeElement))&&(d.value=!0)},ve=()=>{o.readonly||D.value||!Te.value&&o.clearable&&(ye.value=!0)},Ne=()=>{ye.value=!1},Le=E=>{var z;(((z=E.touches[0].target)==null?void 0:z.tagName)!=="INPUT"||M.value.includes(document.activeElement))&&(d.value=!0)},Ge=$(()=>o.type.includes("range")),Ze=kt(),Ue=$(()=>{var E,z;return(z=(E=a(h))==null?void 0:E.popperRef)==null?void 0:z.contentRef}),ht=$(()=>{var E;return a(Ge)?a(p):(E=a(p))==null?void 0:E.$el});ra(ht,E=>{const z=a(Ue),ee=a(ht);z&&(E.target===z||E.composedPath().includes(z))||E.target===ee||E.composedPath().includes(ee)||(d.value=!1)});const Ae=P(null),it=()=>{if(Ae.value){const E=lt(N.value);E&>(E)&&(g(at(E)?E.map(z=>z.toDate()):E.toDate()),Ae.value=null)}Ae.value===""&&(g(null),C(null),Ae.value=null)},lt=E=>E?_e.value.parseUserInput(E):null,ft=E=>E?_e.value.formatToString(E):null,gt=E=>_e.value.isValidValue(E),et=async E=>{if(o.readonly||D.value)return;const{code:z}=E;if(w(E),z===be.esc){d.value===!0&&(d.value=!1,E.preventDefault(),E.stopPropagation());return}if(z===be.down&&(_e.value.handleFocusPicker&&(E.preventDefault(),E.stopPropagation()),d.value===!1&&(d.value=!0,await ke()),_e.value.handleFocusPicker)){_e.value.handleFocusPicker();return}if(z===be.tab){y=!0;return}if(z===be.enter||z===be.numpadEnter){(Ae.value===null||Ae.value===""||gt(lt(N.value)))&&(it(),d.value=!1),E.stopPropagation();return}if(Ae.value){E.stopPropagation();return}_e.value.handleKeydownInput&&_e.value.handleKeydownInput(E)},st=E=>{Ae.value=E,d.value||(d.value=!0)},Et=E=>{const z=E.target;Ae.value?Ae.value=[z.value,Ae.value[1]]:Ae.value=[z.value,null]},bt=E=>{const z=E.target;Ae.value?Ae.value=[Ae.value[0],z.value]:Ae.value=[null,z.value]},ae=()=>{var E;const z=Ae.value,ee=lt(z&&z[0]),me=a(A);if(ee&&ee.isValid()){Ae.value=[ft(ee),((E=N.value)==null?void 0:E[1])||null];const ue=[ee,me&&(me[1]||null)];gt(ue)&&(g(ue),Ae.value=null)}},Be=()=>{var E;const z=a(Ae),ee=lt(z&&z[1]),me=a(A);if(ee&&ee.isValid()){Ae.value=[((E=a(N))==null?void 0:E[0])||null,ft(ee)];const ue=[me&&me[0],ee];gt(ue)&&(g(ue),Ae.value=null)}},_e=P({}),Qe=E=>{_e.value[E[0]]=E[1],_e.value.panelReady=!0},q=E=>{n("calendar-change",E)},ne=(E,z,ee)=>{n("panel-change",E,z,ee)};return Fe("EP_PICKER_BASE",{props:o}),t({focus:F,handleFocusInput:H,handleBlurInput:_,onPick:B}),(E,z)=>(k(),Z(a(wn),vt({ref_key:"refPopper",ref:h,visible:d.value,"onUpdate:visible":z[2]||(z[2]=ee=>d.value=ee),effect:"light",pure:"",trigger:"click"},E.$attrs,{role:"dialog",teleported:"",transition:`${a(s).namespace.value}-zoom-in-top`,"popper-class":[`${a(s).namespace.value}-picker__popper`,E.popperClass],"popper-options":a(f),"fallback-placements":["bottom","top","right","left"],"gpu-acceleration":!1,"stop-popper-mouse-event":!1,"hide-after":0,persistent:"",onBeforeShow:O,onShow:V,onHide:J}),{default:K(()=>[a(Ge)?(k(),L("div",{key:1,ref_key:"inputRef",ref:p,class:S([a(s).b("editor"),a(s).bm("editor",E.type),a(r).e("wrapper"),a(s).is("disabled",a(D)),a(s).is("active",d.value),a(u).b("editor"),a(Ze)?a(u).bm("editor",a(Ze)):"",E.$attrs.class]),style:$e(E.$attrs.style),onClick:H,onMousedown:X,onMouseenter:ve,onMouseleave:Ne,onTouchstart:Le,onKeydown:et},[a(ce)?(k(),Z(a(he),{key:0,class:S([a(r).e("icon"),a(u).e("icon")]),onMousedown:X,onTouchstart:Le},{default:K(()=>[(k(),Z(Ve(a(ce))))]),_:1},8,["class"])):Y("v-if",!0),x("input",{id:E.id&&E.id[0],autocomplete:"off",name:E.name&&E.name[0],placeholder:E.startPlaceholder,value:a(N)&&a(N)[0],disabled:a(D),readonly:!E.editable||E.readonly,class:S(a(u).b("input")),onInput:Et,onChange:ae,onFocus:H,onBlur:_},null,42,iv),Q(E.$slots,"range-separator",{},()=>[x("span",{class:S(a(u).b("separator"))},de(E.rangeSeparator),3)]),x("input",{id:E.id&&E.id[1],autocomplete:"off",name:E.name&&E.name[1],placeholder:E.endPlaceholder,value:a(N)&&a(N)[1],disabled:a(D),readonly:!E.editable||E.readonly,class:S(a(u).b("input")),onFocus:H,onBlur:_,onInput:bt,onChange:Be},null,42,uv),E.clearIcon?(k(),Z(a(he),{key:1,class:S([a(r).e("icon"),a(u).e("close-icon"),{[a(u).e("close-icon--hidden")]:!ye.value}]),onClick:ge},{default:K(()=>[(k(),Z(Ve(E.clearIcon)))]),_:1},8,["class"])):Y("v-if",!0)],38)):(k(),Z(a(Vt),{key:0,id:E.id,ref_key:"inputRef",ref:p,"container-role":"combobox","model-value":a(N),name:E.name,size:a(Ze),disabled:a(D),placeholder:E.placeholder,class:S([a(s).b("editor"),a(s).bm("editor",E.type),E.$attrs.class]),style:$e(E.$attrs.style),readonly:!E.editable||E.readonly||a(re)||E.type==="week",label:E.label,tabindex:E.tabindex,"validate-event":E.validateEvent,onInput:st,onFocus:H,onBlur:_,onKeydown:et,onChange:it,onMousedown:X,onMouseenter:ve,onMouseleave:Ne,onTouchstart:Le,onClick:z[0]||(z[0]=Oe(()=>{},["stop"]))},{prefix:K(()=>[a(ce)?(k(),Z(a(he),{key:0,class:S(a(r).e("icon")),onMousedown:X,onTouchstart:Le},{default:K(()=>[(k(),Z(Ve(a(ce))))]),_:1},8,["class"])):Y("v-if",!0)]),suffix:K(()=>[ye.value&&E.clearIcon?(k(),Z(a(he),{key:0,class:S(`${a(r).e("icon")} clear-icon`),onClick:Oe(ge,["stop"])},{default:K(()=>[(k(),Z(Ve(E.clearIcon)))]),_:1},8,["class","onClick"])):Y("v-if",!0)]),_:1},8,["id","model-value","name","size","disabled","placeholder","class","style","readonly","label","tabindex","validate-event","onKeydown"]))]),content:K(()=>[Q(E.$slots,"default",{visible:d.value,actualVisible:v.value,parsedValue:a(A),format:E.format,unlinkPanels:E.unlinkPanels,type:E.type,defaultValue:E.defaultValue,onPick:B,onSelectRange:I,onSetPickerOption:Qe,onCalendarChange:q,onPanelChange:ne,onKeydown:W,onMousedown:z[1]||(z[1]=Oe(()=>{},["stop"]))})]),_:3},16,["visible","transition","popper-class","popper-options"]))}});var fv=ie(dv,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-picker/src/common/picker.vue"]]);const pv=pe({...rv,datetimeRole:String,parsedValue:{type:te(Object)}}),vv=({getAvailableHours:e,getAvailableMinutes:t,getAvailableSeconds:n})=>{const o=(r,u,i,c)=>{const f={hour:e,minute:t,second:n};let h=r;return["hour","minute","second"].forEach(p=>{if(f[p]){let d;const v=f[p];switch(p){case"minute":{d=v(h.hour(),u,c);break}case"second":{d=v(h.hour(),h.minute(),u,c);break}default:{d=v(u,c);break}}if((d==null?void 0:d.length)&&!d.includes(h[p]())){const m=i?0:d.length-1;h=h[p](d[m])}}}),h},l={};return{timePickerOptions:l,getAvailableTime:o,onSetOption:([r,u])=>{l[r]=u}}},Bl=e=>{const t=(o,l)=>o||l,n=o=>o!==!0;return e.map(t).filter(n)},ei=(e,t,n)=>({getHoursList:(r,u)=>Al(24,e&&(()=>e==null?void 0:e(r,u))),getMinutesList:(r,u,i)=>Al(60,t&&(()=>t==null?void 0:t(r,u,i))),getSecondsList:(r,u,i,c)=>Al(60,n&&(()=>n==null?void 0:n(r,u,i,c)))}),mv=(e,t,n)=>{const{getHoursList:o,getMinutesList:l,getSecondsList:s}=ei(e,t,n);return{getAvailableHours:(c,f)=>Bl(o(c,f)),getAvailableMinutes:(c,f,h)=>Bl(l(c,f,h)),getAvailableSeconds:(c,f,h,p)=>Bl(s(c,f,h,p))}},hv=e=>{const t=P(e.parsedValue);return oe(()=>e.visible,n=>{n||(t.value=e.parsedValue)}),t},En=new Map;let Cs;je&&(document.addEventListener("mousedown",e=>Cs=e),document.addEventListener("mouseup",e=>{for(const t of En.values())for(const{documentHandler:n}of t)n(e,Cs)}));function ws(e,t){let n=[];return Array.isArray(t.arg)?n=t.arg:hn(t.arg)&&n.push(t.arg),function(o,l){const s=t.instance.popperRef,r=o.target,u=l==null?void 0:l.target,i=!t||!t.instance,c=!r||!u,f=e.contains(r)||e.contains(u),h=e===r,p=n.length&&n.some(v=>v==null?void 0:v.contains(r))||n.length&&n.includes(u),d=s&&(s.contains(r)||s.contains(u));i||c||f||h||p||d||t.value(o,l)}}const uo={beforeMount(e,t){En.has(e)||En.set(e,[]),En.get(e).push({documentHandler:ws(e,t),bindingFn:t.value})},updated(e,t){En.has(e)||En.set(e,[]);const n=En.get(e),o=n.findIndex(s=>s.bindingFn===t.oldValue),l={documentHandler:ws(e,t),bindingFn:t.value};o>=0?n.splice(o,1,l):n.push(l)},unmounted(e){En.delete(e)}};var cl={beforeMount(e,t){let n=null,o;const l=()=>t.value&&t.value(),s=()=>{Date.now()-o<100&&l(),clearInterval(n),n=null};Nt(e,"mousedown",r=>{r.button===0&&(o=Date.now(),lc(document,"mouseup",s),clearInterval(n),n=setInterval(l,100))})}};const ql="_trap-focus-children",_n=[],ks=e=>{if(_n.length===0)return;const t=_n[_n.length-1][ql];if(t.length>0&&e.code===be.tab){if(t.length===1){e.preventDefault(),document.activeElement!==t[0]&&t[0].focus();return}const n=e.shiftKey,o=e.target===t[0],l=e.target===t[t.length-1];o&&n&&(e.preventDefault(),t[t.length-1].focus()),l&&!n&&(e.preventDefault(),t[0].focus())}},gv={beforeMount(e){e[ql]=xa(e),_n.push(e),_n.length<=1&&Nt(document,"keydown",ks)},updated(e){ke(()=>{e[ql]=xa(e)})},unmounted(){_n.shift(),_n.length===0&&xt(document,"keydown",ks)}},bv=function(e,t){if(e&&e.addEventListener){const n=function(o){const l=ec(o);t&&Reflect.apply(t,this,[o,l])};e.addEventListener("wheel",n,{passive:!0})}},yv={beforeMount(e,t){bv(e,t.value)}},Cv={beforeMount(e,t){e._handleResize=()=>{var n;e&&((n=t.value)==null||n.call(t,e))},rc(e,e._handleResize)},beforeUnmount(e){ic(e,e._handleResize)}},wv=pe({role:{type:String,required:!0},spinnerDate:{type:te(Object),required:!0},showSeconds:{type:Boolean,default:!0},arrowControl:Boolean,amPmMode:{type:te(String),default:""},...Zr}),kv=["onClick"],Sv=["onMouseenter"],Ev=se({__name:"basic-time-spinner",props:wv,emits:["change","select-range","set-option"],setup(e,{emit:t}){const n=e,o=le("time"),{getHoursList:l,getMinutesList:s,getSecondsList:r}=ei(n.disabledHours,n.disabledMinutes,n.disabledSeconds);let u=!1;const i=P(),c=P(),f=P(),h=P(),p={hours:c,minutes:f,seconds:h},d=$(()=>n.showSeconds?vs:vs.slice(0,2)),v=$(()=>{const{spinnerDate:A}=n,N=A.hour(),R=A.minute(),G=A.second();return{hours:N,minutes:R,seconds:G}}),m=$(()=>{const{hours:A,minutes:N}=a(v);return{hours:l(n.role),minutes:s(A,n.role),seconds:r(A,N,n.role)}}),y=$(()=>{const{hours:A,minutes:N,seconds:R}=a(v);return{hours:Ol(A,23),minutes:Ol(N,59),seconds:Ol(R,59)}}),b=mn(A=>{u=!1,w(A)},200),C=A=>{if(!!!n.amPmMode)return"";const R=n.amPmMode==="A";let G=A<12?" am":" pm";return R&&(G=G.toUpperCase()),G},g=A=>{let N;switch(A){case"hours":N=[0,2];break;case"minutes":N=[3,5];break;case"seconds":N=[6,8];break}const[R,G]=N;t("select-range",R,G),i.value=A},w=A=>{T(A,a(v)[A])},M=()=>{w("hours"),w("minutes"),w("seconds")},I=A=>A.querySelector(`.${o.namespace.value}-scrollbar__wrap`),T=(A,N)=>{if(n.arrowControl)return;const R=a(p[A]);R&&R.$el&&(I(R.$el).scrollTop=Math.max(0,N*B(A)))},B=A=>{const N=a(p[A]);return(N==null?void 0:N.$el.querySelector("li").offsetHeight)||0},O=()=>{W(1)},V=()=>{W(-1)},W=A=>{i.value||g("hours");const N=i.value;let R=a(v)[N];const G=i.value==="hours"?24:60;R=(R+A+G)%G,J(N,R),T(N,R),ke(()=>g(N))},J=(A,N)=>{if(a(m)[A][N])return;const{hours:re,minutes:ce,seconds:ye}=a(v);let ge;switch(A){case"hours":ge=n.spinnerDate.hour(N).minute(ce).second(ye);break;case"minutes":ge=n.spinnerDate.hour(re).minute(N).second(ye);break;case"seconds":ge=n.spinnerDate.hour(re).minute(ce).second(N);break}t("change",ge)},F=(A,{value:N,disabled:R})=>{R||(J(A,N),g(A),T(A,N))},H=A=>{u=!0,b(A);const N=Math.min(Math.round((I(a(p[A]).$el).scrollTop-(U(A)*.5-10)/B(A)+3)/B(A)),A==="hours"?23:59);J(A,N)},U=A=>a(p[A]).$el.offsetHeight,_=()=>{const A=N=>{const R=a(p[N]);R&&R.$el&&(I(R.$el).onscroll=()=>{H(N)})};A("hours"),A("minutes"),A("seconds")};Re(()=>{ke(()=>{!n.arrowControl&&_(),M(),n.role==="start"&&g("hours")})});const D=(A,N)=>{p[N].value=A};return t("set-option",[`${n.role}_scrollDown`,W]),t("set-option",[`${n.role}_emitSelectRange`,g]),oe(()=>n.spinnerDate,()=>{u||M()}),(A,N)=>(k(),L("div",{class:S([a(o).b("spinner"),{"has-seconds":A.showSeconds}])},[A.arrowControl?Y("v-if",!0):(k(!0),L(Pe,{key:0},ot(a(d),R=>(k(),Z(a(bo),{key:R,ref_for:!0,ref:G=>D(G,R),class:S(a(o).be("spinner","wrapper")),"wrap-style":"max-height: inherit;","view-class":a(o).be("spinner","list"),noresize:"",tag:"ul",onMouseenter:G=>g(R),onMousemove:G=>w(R)},{default:K(()=>[(k(!0),L(Pe,null,ot(a(m)[R],(G,re)=>(k(),L("li",{key:re,class:S([a(o).be("spinner","item"),a(o).is("active",re===a(v)[R]),a(o).is("disabled",G)]),onClick:ce=>F(R,{value:re,disabled:G})},[R==="hours"?(k(),L(Pe,{key:0},[Xe(de(("0"+(A.amPmMode?re%12||12:re)).slice(-2))+de(C(re)),1)],64)):(k(),L(Pe,{key:1},[Xe(de(("0"+re).slice(-2)),1)],64))],10,kv))),128))]),_:2},1032,["class","view-class","onMouseenter","onMousemove"]))),128)),A.arrowControl?(k(!0),L(Pe,{key:1},ot(a(d),R=>(k(),L("div",{key:R,class:S([a(o).be("spinner","wrapper"),a(o).is("arrow")]),onMouseenter:G=>g(R)},[Ie((k(),Z(a(he),{class:S(["arrow-up",a(o).be("spinner","arrow")])},{default:K(()=>[j(a(gl))]),_:1},8,["class"])),[[a(cl),V]]),Ie((k(),Z(a(he),{class:S(["arrow-down",a(o).be("spinner","arrow")])},{default:K(()=>[j(a(mo))]),_:1},8,["class"])),[[a(cl),O]]),x("ul",{class:S(a(o).be("spinner","list"))},[(k(!0),L(Pe,null,ot(a(y)[R],(G,re)=>(k(),L("li",{key:re,class:S([a(o).be("spinner","item"),a(o).is("active",G===a(v)[R]),a(o).is("disabled",a(m)[R][G])])},[typeof G=="number"?(k(),L(Pe,{key:0},[R==="hours"?(k(),L(Pe,{key:0},[Xe(de(("0"+(A.amPmMode?G%12||12:G)).slice(-2))+de(C(G)),1)],64)):(k(),L(Pe,{key:1},[Xe(de(("0"+G).slice(-2)),1)],64))],64)):Y("v-if",!0)],2))),128))],2)],42,Sv))),128)):Y("v-if",!0)],2))}});var $v=ie(Ev,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-picker/src/time-picker-com/basic-time-spinner.vue"]]);const Tv=se({__name:"panel-time-pick",props:pv,emits:["pick","select-range","set-picker-option"],setup(e,{emit:t}){const n=e,o=fe("EP_PICKER_BASE"),{arrowControl:l,disabledHours:s,disabledMinutes:r,disabledSeconds:u,defaultValue:i}=o.props,{getAvailableHours:c,getAvailableMinutes:f,getAvailableSeconds:h}=mv(s,r,u),p=le("time"),{t:d,lang:v}=Je(),m=P([0,2]),y=hv(n),b=$(()=>Zt(n.actualVisible)?`${p.namespace.value}-zoom-in-top`:""),C=$(()=>n.format.includes("ss")),g=$(()=>n.format.includes("A")?"A":n.format.includes("a")?"a":""),w=A=>{const N=Me(A).locale(v.value),R=H(N);return N.isSame(R)},M=()=>{t("pick",y.value,!1)},I=(A=!1,N=!1)=>{N||t("pick",n.parsedValue,A)},T=A=>{if(!n.visible)return;const N=H(A).millisecond(0);t("pick",N,!0)},B=(A,N)=>{t("select-range",A,N),m.value=[A,N]},O=A=>{const N=[0,3].concat(C.value?[6]:[]),R=["hours","minutes"].concat(C.value?["seconds"]:[]),re=(N.indexOf(m.value[0])+A+N.length)%N.length;W.start_emitSelectRange(R[re])},V=A=>{const N=A.code,{left:R,right:G,up:re,down:ce}=be;if([R,G].includes(N)){O(N===R?-1:1),A.preventDefault();return}if([re,ce].includes(N)){const ye=N===re?-1:1;W.start_scrollDown(ye),A.preventDefault();return}},{timePickerOptions:W,onSetOption:J,getAvailableTime:F}=vv({getAvailableHours:c,getAvailableMinutes:f,getAvailableSeconds:h}),H=A=>F(A,n.datetimeRole||"",!0),U=A=>A?Me(A,n.format).locale(v.value):null,_=A=>A?A.format(n.format):null,D=()=>Me(i).locale(v.value);return t("set-picker-option",["isValidValue",w]),t("set-picker-option",["formatToString",_]),t("set-picker-option",["parseUserInput",U]),t("set-picker-option",["handleKeydownInput",V]),t("set-picker-option",["getRangeAvailableTime",H]),t("set-picker-option",["getDefaultValue",D]),(A,N)=>(k(),Z(St,{name:a(b)},{default:K(()=>[A.actualVisible||A.visible?(k(),L("div",{key:0,class:S(a(p).b("panel"))},[x("div",{class:S([a(p).be("panel","content"),{"has-seconds":a(C)}])},[j($v,{ref:"spinner",role:A.datetimeRole||"start","arrow-control":a(l),"show-seconds":a(C),"am-pm-mode":a(g),"spinner-date":A.parsedValue,"disabled-hours":a(s),"disabled-minutes":a(r),"disabled-seconds":a(u),onChange:T,onSetOption:a(J),onSelectRange:B},null,8,["role","arrow-control","show-seconds","am-pm-mode","spinner-date","disabled-hours","disabled-minutes","disabled-seconds","onSetOption"])],2),x("div",{class:S(a(p).be("panel","footer"))},[x("button",{type:"button",class:S([a(p).be("panel","btn"),"cancel"]),onClick:M},de(a(d)("el.datepicker.cancel")),3),x("button",{type:"button",class:S([a(p).be("panel","btn"),"confirm"]),onClick:N[0]||(N[0]=R=>I())},de(a(d)("el.datepicker.confirm")),3)],2)],2)):Y("v-if",!0)]),_:1},8,["name"]))}});var Ul=ie(Tv,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-picker/src/time-picker-com/panel-time-pick.vue"]]);const Nv=pe({header:{type:String,default:""},bodyStyle:{type:te([String,Object,Array]),default:""},shadow:{type:String,values:["always","hover","never"],default:"always"}}),Pv={name:"ElCard"},Iv=se({...Pv,props:Nv,setup(e){const t=le("card");return(n,o)=>(k(),L("div",{class:S([a(t).b(),a(t).is(`${n.shadow}-shadow`)])},[n.$slots.header||n.header?(k(),L("div",{key:0,class:S(a(t).e("header"))},[Q(n.$slots,"header",{},()=>[Xe(de(n.header),1)])],2)):Y("v-if",!0),x("div",{class:S(a(t).e("body")),style:$e(n.bodyStyle)},[Q(n.$slots,"default")],6)],2))}});var Mv=ie(Iv,[["__file","/home/runner/work/element-plus/element-plus/packages/components/card/src/card.vue"]]);const $S=Ke(Mv),Ov={modelValue:{type:Array,default:()=>[]},disabled:Boolean,min:{type:Number,default:void 0},max:{type:Number,default:void 0},size:Cn,id:{type:String,default:void 0},label:{type:String,default:void 0},fill:{type:String,default:void 0},textColor:{type:String,default:void 0},tag:{type:String,default:"div"},validateEvent:{type:Boolean,default:!0}},ti={modelValue:{type:[Number,String,Boolean],default:()=>{}},label:{type:[String,Boolean,Number,Object]},indeterminate:Boolean,disabled:Boolean,checked:Boolean,name:{type:String,default:void 0},trueLabel:{type:[String,Number],default:void 0},falseLabel:{type:[String,Number],default:void 0},id:{type:String,default:void 0},controls:{type:String,default:void 0},border:Boolean,size:Cn,tabindex:[String,Number],validateEvent:{type:Boolean,default:!0}},yo=()=>{const e=fe(dn,{}),t=fe(Ut,{}),n=fe("CheckboxGroup",{}),o=$(()=>n&&(n==null?void 0:n.name)==="ElCheckboxGroup"),l=$(()=>t.size);return{isGroup:o,checkboxGroup:n,elForm:e,elFormItemSize:l,elFormItem:t}},Av=(e,{elFormItem:t})=>{const{inputId:n,isLabeledByFormItem:o}=go(e,{formItemContext:t});return{isLabeledByFormItem:o,groupId:n}},Bv=e=>{const t=P(!1),{emit:n}=De(),{isGroup:o,checkboxGroup:l,elFormItem:s}=yo(),r=P(!1);return{model:$({get(){var i,c;return o.value?(i=l.modelValue)==null?void 0:i.value:(c=e.modelValue)!=null?c:t.value},set(i){var c;o.value&&Array.isArray(i)?(r.value=l.max!==void 0&&i.length>l.max.value,r.value===!1&&((c=l==null?void 0:l.changeEvent)==null||c.call(l,i))):(n(qe,i),t.value=i)}}),isGroup:o,isLimitExceeded:r,elFormItem:s}},Dv=(e,t,{model:n})=>{const{isGroup:o,checkboxGroup:l}=yo(),s=P(!1),r=kt(l==null?void 0:l.checkboxGroupSize,{prop:!0}),u=$(()=>{const f=n.value;return fu(f)==="[object Boolean]"?f:Array.isArray(f)?f.includes(e.label):f!=null?f===e.trueLabel:!!f}),i=kt($(()=>{var f;return o.value?(f=l==null?void 0:l.checkboxGroupSize)==null?void 0:f.value:void 0})),c=$(()=>!!(t.default||e.label));return{isChecked:u,focus:s,size:r,checkboxSize:i,hasOwnLabel:c}},Lv=(e,{model:t,isChecked:n})=>{const{elForm:o,isGroup:l,checkboxGroup:s}=yo(),r=$(()=>{var i,c;const f=(i=s.max)==null?void 0:i.value,h=(c=s.min)==null?void 0:c.value;return!!(f||h)&&t.value.length>=f&&!n.value||t.value.length<=h&&n.value});return{isDisabled:$(()=>{var i,c;const f=e.disabled||(o==null?void 0:o.disabled);return(c=l.value?((i=s.disabled)==null?void 0:i.value)||f||r.value:f)!=null?c:!1}),isLimitDisabled:r}},Rv=(e,{model:t})=>{function n(){Array.isArray(t.value)&&!t.value.includes(e.label)?t.value.push(e.label):t.value=e.trueLabel||!0}e.checked&&n()},_v=(e,{model:t,isLimitExceeded:n,hasOwnLabel:o,isDisabled:l,isLabeledByFormItem:s})=>{const{elFormItem:r,checkboxGroup:u}=yo(),{emit:i}=De();function c(v){var m,y;return v===e.trueLabel||v===!0?(m=e.trueLabel)!=null?m:!0:(y=e.falseLabel)!=null?y:!1}function f(v,m){i("change",c(v),m)}function h(v){if(n.value)return;const m=v.target;i("change",c(m.checked),v)}async function p(v){n.value||!o.value&&!l.value&&s.value&&(t.value=c([!1,e.falseLabel].includes(t.value)),await ke(),f(t.value,v))}const d=$(()=>{var v;return((v=u.validateEvent)==null?void 0:v.value)||e.validateEvent});return oe(()=>e.modelValue,()=>{var v;d.value&&((v=r==null?void 0:r.validate)==null||v.call(r,"change").catch(m=>void 0))}),{handleChange:h,onClickRoot:p}},ni={[qe]:e=>He(e)||We(e)||It(e),change:e=>He(e)||We(e)||It(e)},Fv={[qe]:e=>at(e),change:e=>at(e)},oi=(e,t)=>{const{model:n,isGroup:o,isLimitExceeded:l,elFormItem:s}=Bv(e),{focus:r,size:u,isChecked:i,checkboxSize:c,hasOwnLabel:f}=Dv(e,t,{model:n}),{isDisabled:h}=Lv(e,{model:n,isChecked:i}),{inputId:p,isLabeledByFormItem:d}=go(e,{formItemContext:s,disableIdGeneration:f,disableIdManagement:o}),{handleChange:v,onClickRoot:m}=_v(e,{model:n,isLimitExceeded:l,hasOwnLabel:f,isDisabled:h,isLabeledByFormItem:d});return Rv(e,{model:n}),{elFormItem:s,inputId:p,isLabeledByFormItem:d,isChecked:i,isDisabled:h,isGroup:o,checkboxSize:c,hasOwnLabel:f,model:n,handleChange:v,onClickRoot:m,focus:r,size:u}},zv=["tabindex","role","aria-checked"],Vv=["id","aria-hidden","name","tabindex","disabled","true-value","false-value"],Hv=["id","aria-hidden","disabled","value","name","tabindex"],Kv={name:"ElCheckbox"},Wv=se({...Kv,props:ti,emits:ni,setup(e){const t=e,n=Xt(),{inputId:o,isLabeledByFormItem:l,isChecked:s,isDisabled:r,checkboxSize:u,hasOwnLabel:i,model:c,handleChange:f,onClickRoot:h,focus:p}=oi(t,n),d=le("checkbox");return(v,m)=>(k(),Z(Ve(!a(i)&&a(l)?"span":"label"),{class:S([a(d).b(),a(d).m(a(u)),a(d).is("disabled",a(r)),a(d).is("bordered",v.border),a(d).is("checked",a(s))]),"aria-controls":v.indeterminate?v.controls:null,onClick:a(h)},{default:K(()=>[x("span",{class:S([a(d).e("input"),a(d).is("disabled",a(r)),a(d).is("checked",a(s)),a(d).is("indeterminate",v.indeterminate),a(d).is("focus",a(p))]),tabindex:v.indeterminate?0:void 0,role:v.indeterminate?"checkbox":void 0,"aria-checked":v.indeterminate?"mixed":void 0},[v.trueLabel||v.falseLabel?Ie((k(),L("input",{key:0,id:a(o),"onUpdate:modelValue":m[0]||(m[0]=y=>Qt(c)?c.value=y:null),class:S(a(d).e("original")),type:"checkbox","aria-hidden":v.indeterminate?"true":"false",name:v.name,tabindex:v.tabindex,disabled:a(r),"true-value":v.trueLabel,"false-value":v.falseLabel,onChange:m[1]||(m[1]=(...y)=>a(f)&&a(f)(...y)),onFocus:m[2]||(m[2]=y=>p.value=!0),onBlur:m[3]||(m[3]=y=>p.value=!1)},null,42,Vv)),[[al,a(c)]]):Ie((k(),L("input",{key:1,id:a(o),"onUpdate:modelValue":m[4]||(m[4]=y=>Qt(c)?c.value=y:null),class:S(a(d).e("original")),type:"checkbox","aria-hidden":v.indeterminate?"true":"false",disabled:a(r),value:v.label,name:v.name,tabindex:v.tabindex,onChange:m[5]||(m[5]=(...y)=>a(f)&&a(f)(...y)),onFocus:m[6]||(m[6]=y=>p.value=!0),onBlur:m[7]||(m[7]=y=>p.value=!1)},null,42,Hv)),[[al,a(c)]]),x("span",{class:S(a(d).e("inner"))},null,2)],10,zv),a(i)?(k(),L("span",{key:0,class:S(a(d).e("label"))},[Q(v.$slots,"default"),v.$slots.default?Y("v-if",!0):(k(),L(Pe,{key:0},[Xe(de(v.label),1)],64))],2)):Y("v-if",!0)]),_:3},8,["class","aria-controls","onClick"]))}});var jv=ie(Wv,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox.vue"]]);const xv=["name","tabindex","disabled","true-value","false-value"],qv=["name","tabindex","disabled","value"],Uv={name:"ElCheckboxButton"},Yv=se({...Uv,props:ti,emits:ni,setup(e){const t=e,n=Xt(),{focus:o,isChecked:l,isDisabled:s,size:r,model:u,handleChange:i}=oi(t,n),{checkboxGroup:c}=yo(),f=le("checkbox"),h=$(()=>{var p,d,v,m;const y=(d=(p=c==null?void 0:c.fill)==null?void 0:p.value)!=null?d:"";return{backgroundColor:y,borderColor:y,color:(m=(v=c==null?void 0:c.textColor)==null?void 0:v.value)!=null?m:"",boxShadow:y?`-1px 0 0 0 ${y}`:void 0}});return(p,d)=>(k(),L("label",{class:S([a(f).b("button"),a(f).bm("button",a(r)),a(f).is("disabled",a(s)),a(f).is("checked",a(l)),a(f).is("focus",a(o))])},[p.trueLabel||p.falseLabel?Ie((k(),L("input",{key:0,"onUpdate:modelValue":d[0]||(d[0]=v=>Qt(u)?u.value=v:null),class:S(a(f).be("button","original")),type:"checkbox",name:p.name,tabindex:p.tabindex,disabled:a(s),"true-value":p.trueLabel,"false-value":p.falseLabel,onChange:d[1]||(d[1]=(...v)=>a(i)&&a(i)(...v)),onFocus:d[2]||(d[2]=v=>o.value=!0),onBlur:d[3]||(d[3]=v=>o.value=!1)},null,42,xv)),[[al,a(u)]]):Ie((k(),L("input",{key:1,"onUpdate:modelValue":d[4]||(d[4]=v=>Qt(u)?u.value=v:null),class:S(a(f).be("button","original")),type:"checkbox",name:p.name,tabindex:p.tabindex,disabled:a(s),value:p.label,onChange:d[5]||(d[5]=(...v)=>a(i)&&a(i)(...v)),onFocus:d[6]||(d[6]=v=>o.value=!0),onBlur:d[7]||(d[7]=v=>o.value=!1)},null,42,qv)),[[al,a(u)]]),p.$slots.default||p.label?(k(),L("span",{key:2,class:S(a(f).be("button","inner")),style:$e(a(l)?a(h):void 0)},[Q(p.$slots,"default",{},()=>[Xe(de(p.label),1)])],6)):Y("v-if",!0)],2))}});var li=ie(Yv,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox-button.vue"]]);const Gv={name:"ElCheckboxGroup"},Xv=se({...Gv,props:Ov,emits:Fv,setup(e,{emit:t}){const n=e,{elFormItem:o}=yo(),{groupId:l,isLabeledByFormItem:s}=Av(n,{elFormItem:o}),r=kt(),u=le("checkbox"),i=f=>{t(qe,f),ke(()=>{t("change",f)})},c=$({get(){return n.modelValue},set(f){i(f)}});return Fe("CheckboxGroup",{name:"ElCheckboxGroup",modelValue:c,..._t(n),checkboxGroupSize:r,changeEvent:i}),oe(()=>n.modelValue,()=>{var f;n.validateEvent&&((f=o.validate)==null||f.call(o,"change").catch(h=>void 0))}),(f,h)=>(k(),Z(Ve(f.tag),{id:a(l),class:S(a(u).b("group")),role:"group","aria-label":a(s)?void 0:f.label||"checkbox-group","aria-labelledby":a(s)?a(o).labelId:void 0},{default:K(()=>[Q(f.$slots,"default")]),_:3},8,["id","class","aria-label","aria-labelledby"]))}});var ai=ie(Xv,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox-group.vue"]]);const Wn=Ke(jv,{CheckboxButton:li,CheckboxGroup:ai});mt(li);const TS=mt(ai),si=pe({size:Cn,disabled:Boolean,label:{type:[String,Number,Boolean],default:""}}),Jv=pe({...si,modelValue:{type:[String,Number,Boolean],default:""},name:{type:String,default:""},border:Boolean}),ri={[qe]:e=>He(e)||We(e)||It(e),[gn]:e=>He(e)||We(e)||It(e)},ii=(e,t)=>{const n=P(),o=fe(hr,void 0),l=$(()=>!!o),s=$({get(){return l.value?o.modelValue:e.modelValue},set(f){l.value?o.changeEvent(f):t&&t(qe,f),n.value.checked=e.modelValue===e.label}}),r=kt($(()=>o==null?void 0:o.size)),u=On($(()=>o==null?void 0:o.disabled)),i=P(!1),c=$(()=>u.value||l.value&&s.value!==e.label?-1:0);return{radioRef:n,isGroup:l,radioGroup:o,focus:i,size:r,disabled:u,tabIndex:c,modelValue:s}},Zv=["value","name","disabled"],Qv={name:"ElRadio"},em=se({...Qv,props:Jv,emits:ri,setup(e,{emit:t}){const n=e,o=le("radio"),{radioRef:l,radioGroup:s,focus:r,size:u,disabled:i,modelValue:c}=ii(n,t);function f(){ke(()=>t("change",c.value))}return(h,p)=>{var d;return k(),L("label",{class:S([a(o).b(),a(o).is("disabled",a(i)),a(o).is("focus",a(r)),a(o).is("bordered",h.border),a(o).is("checked",a(c)===h.label),a(o).m(a(u))])},[x("span",{class:S([a(o).e("input"),a(o).is("disabled",a(i)),a(o).is("checked",a(c)===h.label)])},[Ie(x("input",{ref_key:"radioRef",ref:l,"onUpdate:modelValue":p[0]||(p[0]=v=>Qt(c)?c.value=v:null),class:S(a(o).e("original")),value:h.label,name:h.name||((d=a(s))==null?void 0:d.name),disabled:a(i),type:"radio",onFocus:p[1]||(p[1]=v=>r.value=!0),onBlur:p[2]||(p[2]=v=>r.value=!1),onChange:f},null,42,Zv),[[Ys,a(c)]]),x("span",{class:S(a(o).e("inner"))},null,2)],2),x("span",{class:S(a(o).e("label")),onKeydown:p[3]||(p[3]=Oe(()=>{},["stop"]))},[Q(h.$slots,"default",{},()=>[Xe(de(h.label),1)])],34)],2)}}});var tm=ie(em,[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio.vue"]]);const nm=pe({...si,name:{type:String,default:""}}),om=["value","name","disabled"],lm={name:"ElRadioButton"},am=se({...lm,props:nm,setup(e){const t=e,n=le("radio"),{radioRef:o,focus:l,size:s,disabled:r,modelValue:u,radioGroup:i}=ii(t),c=$(()=>({backgroundColor:(i==null?void 0:i.fill)||"",borderColor:(i==null?void 0:i.fill)||"",boxShadow:i!=null&&i.fill?`-1px 0 0 0 ${i.fill}`:"",color:(i==null?void 0:i.textColor)||""}));return(f,h)=>{var p;return k(),L("label",{class:S([a(n).b("button"),a(n).is("active",a(u)===f.label),a(n).is("disabled",a(r)),a(n).is("focus",a(l)),a(n).bm("button",a(s))])},[Ie(x("input",{ref_key:"radioRef",ref:o,"onUpdate:modelValue":h[0]||(h[0]=d=>Qt(u)?u.value=d:null),class:S(a(n).be("button","original-radio")),value:f.label,type:"radio",name:f.name||((p=a(i))==null?void 0:p.name),disabled:a(r),onFocus:h[1]||(h[1]=d=>l.value=!0),onBlur:h[2]||(h[2]=d=>l.value=!1)},null,42,om),[[Ys,a(u)]]),x("span",{class:S(a(n).be("button","inner")),style:$e(a(u)===f.label?a(c):{}),onKeydown:h[3]||(h[3]=Oe(()=>{},["stop"]))},[Q(f.$slots,"default",{},()=>[Xe(de(f.label),1)])],38)],2)}}});var ui=ie(am,[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio-button.vue"]]);const sm=pe({id:{type:String,default:void 0},size:Cn,disabled:Boolean,modelValue:{type:[String,Number,Boolean],default:""},fill:{type:String,default:""},label:{type:String,default:void 0},textColor:{type:String,default:""},name:{type:String,default:void 0},validateEvent:{type:Boolean,default:!0}}),rm=ri,im=["id","aria-label","aria-labelledby"],um={name:"ElRadioGroup"},cm=se({...um,props:sm,emits:rm,setup(e,{emit:t}){const n=e,o=le("radio"),l=un(),s=P(),{formItem:r}=Ro(),{inputId:u,isLabeledByFormItem:i}=go(n,{formItemContext:r}),c=h=>{t(qe,h),ke(()=>t("change",h))};Re(()=>{const h=s.value.querySelectorAll("[type=radio]"),p=h[0];!Array.from(h).some(d=>d.checked)&&p&&(p.tabIndex=0)});const f=$(()=>n.name||l.value);return Fe(hr,rt({..._t(n),changeEvent:c,name:f})),oe(()=>n.modelValue,()=>{n.validateEvent&&(r==null||r.validate("change").catch(h=>void 0))}),(h,p)=>(k(),L("div",{id:a(u),ref_key:"radioGroupRef",ref:s,class:S(a(o).b("group")),role:"radiogroup","aria-label":a(i)?void 0:h.label||"radio-group","aria-labelledby":a(i)?a(r).labelId:void 0},[Q(h.$slots,"default")],10,im))}});var ci=ie(cm,[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio-group.vue"]]);const NS=Ke(tm,{RadioButton:ui,RadioGroup:ci}),PS=mt(ci);mt(ui);const di=pe({closable:Boolean,type:{type:String,values:["success","info","warning","danger",""],default:""},hit:Boolean,disableTransitions:Boolean,color:{type:String,default:""},size:{type:String,values:ho,default:""},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),dm={close:e=>e instanceof MouseEvent,click:e=>e instanceof MouseEvent},fm={name:"ElTag"},pm=se({...fm,props:di,emits:dm,setup(e,{emit:t}){const n=e,o=kt(),l=le("tag"),s=$(()=>{const{type:i,hit:c,effect:f,closable:h,round:p}=n;return[l.b(),l.is("closable",h),l.m(i),l.m(o.value),l.m(f),l.is("hit",c),l.is("round",p)]}),r=i=>{t("close",i)},u=i=>{t("click",i)};return(i,c)=>i.disableTransitions?(k(),L("span",{key:0,class:S(a(s)),style:$e({backgroundColor:i.color}),onClick:u},[x("span",{class:S(a(l).e("content"))},[Q(i.$slots,"default")],2),i.closable?(k(),Z(a(he),{key:0,class:S(a(l).e("close")),onClick:Oe(r,["stop"])},{default:K(()=>[j(a(rn))]),_:1},8,["class","onClick"])):Y("v-if",!0)],6)):(k(),Z(St,{key:1,name:`${a(l).namespace.value}-zoom-in-center`,appear:""},{default:K(()=>[x("span",{class:S(a(s)),style:$e({backgroundColor:i.color}),onClick:u},[x("span",{class:S(a(l).e("content"))},[Q(i.$slots,"default")],2),i.closable?(k(),Z(a(he),{key:0,class:S(a(l).e("close")),onClick:Oe(r,["stop"])},{default:K(()=>[j(a(rn))]),_:1},8,["class","onClick"])):Y("v-if",!0)],6)]),_:3},8,["name"]))}});var vm=ie(pm,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tag/src/tag.vue"]]);const mm=Ke(vm),hm=pe({tag:{type:String,default:"div"},span:{type:Number,default:24},offset:{type:Number,default:0},pull:{type:Number,default:0},push:{type:Number,default:0},xs:{type:te([Number,Object]),default:()=>Ct({})},sm:{type:te([Number,Object]),default:()=>Ct({})},md:{type:te([Number,Object]),default:()=>Ct({})},lg:{type:te([Number,Object]),default:()=>Ct({})},xl:{type:te([Number,Object]),default:()=>Ct({})}}),gm={name:"ElCol"},bm=se({...gm,props:hm,setup(e){const t=e,{gutter:n}=fe(gr,{gutter:$(()=>0)}),o=le("col"),l=$(()=>{const r={};return n.value&&(r.paddingLeft=r.paddingRight=`${n.value/2}px`),r}),s=$(()=>{const r=[];return["span","offset","pull","push"].forEach(c=>{const f=t[c];We(f)&&(c==="span"?r.push(o.b(`${t[c]}`)):f>0&&r.push(o.b(`${c}-${t[c]}`)))}),["xs","sm","md","lg","xl"].forEach(c=>{We(t[c])?r.push(o.b(`${c}-${t[c]}`)):Mt(t[c])&&Object.entries(t[c]).forEach(([f,h])=>{r.push(f!=="span"?o.b(`${c}-${f}-${h}`):o.b(`${c}-${h}`))})}),n.value&&r.push(o.is("guttered")),r});return(r,u)=>(k(),Z(Ve(r.tag),{class:S([a(o).b(),a(s)]),style:$e(a(l))},{default:K(()=>[Q(r.$slots,"default")]),_:3},8,["class","style"]))}});var ym=ie(bm,[["__file","/home/runner/work/element-plus/element-plus/packages/components/col/src/col.vue"]]);const IS=Ke(ym),Cm={name:"ElCollapseTransition"},wm=se({...Cm,setup(e){const t=le("collapse-transition"),n={beforeEnter(o){o.dataset||(o.dataset={}),o.dataset.oldPaddingTop=o.style.paddingTop,o.dataset.oldPaddingBottom=o.style.paddingBottom,o.style.maxHeight=0,o.style.paddingTop=0,o.style.paddingBottom=0},enter(o){o.dataset.oldOverflow=o.style.overflow,o.scrollHeight!==0?(o.style.maxHeight=`${o.scrollHeight}px`,o.style.paddingTop=o.dataset.oldPaddingTop,o.style.paddingBottom=o.dataset.oldPaddingBottom):(o.style.maxHeight=0,o.style.paddingTop=o.dataset.oldPaddingTop,o.style.paddingBottom=o.dataset.oldPaddingBottom),o.style.overflow="hidden"},afterEnter(o){o.style.maxHeight="",o.style.overflow=o.dataset.oldOverflow},beforeLeave(o){o.dataset||(o.dataset={}),o.dataset.oldPaddingTop=o.style.paddingTop,o.dataset.oldPaddingBottom=o.style.paddingBottom,o.dataset.oldOverflow=o.style.overflow,o.style.maxHeight=`${o.scrollHeight}px`,o.style.overflow="hidden"},leave(o){o.scrollHeight!==0&&(o.style.maxHeight=0,o.style.paddingTop=0,o.style.paddingBottom=0)},afterLeave(o){o.style.maxHeight="",o.style.overflow=o.dataset.oldOverflow,o.style.paddingTop=o.dataset.oldPaddingTop,o.style.paddingBottom=o.dataset.oldPaddingBottom}};return(o,l)=>(k(),Z(St,vt({name:a(t).b()},pu(n)),{default:K(()=>[Q(o.$slots,"default")]),_:3},16,["name"]))}});var Yo=ie(wm,[["__file","/home/runner/work/element-plus/element-plus/packages/components/collapse-transition/src/collapse-transition.vue"]]);Yo.install=e=>{e.component(Yo.name,Yo)};const fi=Yo;let Dl=!1;function Oo(e,t){if(!je)return;const n=function(s){var r;(r=t.drag)==null||r.call(t,s)},o=function(s){var r;xt(document,"mousemove",n),xt(document,"mouseup",o),xt(document,"touchmove",n),xt(document,"touchend",o),document.onselectstart=null,document.ondragstart=null,Dl=!1,(r=t.end)==null||r.call(t,s)},l=function(s){var r;Dl||(s.preventDefault(),document.onselectstart=()=>!1,document.ondragstart=()=>!1,Nt(document,"mousemove",n),Nt(document,"mouseup",o),Nt(document,"touchmove",n),Nt(document,"touchend",o),Dl=!0,(r=t.start)==null||r.call(t,s))};Nt(e,"mousedown",l),Nt(e,"touchstart",l)}const km=se({name:"ElColorAlphaSlider",props:{color:{type:Object,required:!0},vertical:{type:Boolean,default:!1}},setup(e){const t=De(),n=Ht(null),o=Ht(null),l=P(0),s=P(0),r=P(null);oe(()=>e.color.get("alpha"),()=>{p()}),oe(()=>e.color.value,()=>{p()});function u(){if(e.vertical)return 0;const d=t.vnode.el,v=e.color.get("alpha");return d?Math.round(v*(d.offsetWidth-n.value.offsetWidth/2)/100):0}function i(){const d=t.vnode.el;if(!e.vertical)return 0;const v=e.color.get("alpha");return d?Math.round(v*(d.offsetHeight-n.value.offsetHeight/2)/100):0}function c(){if(e.color&&e.color.value){const{r:d,g:v,b:m}=e.color.toRgb();return`linear-gradient(to right, rgba(${d}, ${v}, ${m}, 0) 0%, rgba(${d}, ${v}, ${m}, 1) 100%)`}return null}function f(d){d.target!==n.value&&h(d)}function h(d){const m=t.vnode.el.getBoundingClientRect(),{clientX:y,clientY:b}=ca(d);if(e.vertical){let C=b-m.top;C=Math.max(n.value.offsetHeight/2,C),C=Math.min(C,m.height-n.value.offsetHeight/2),e.color.set("alpha",Math.round((C-n.value.offsetHeight/2)/(m.height-n.value.offsetHeight)*100))}else{let C=y-m.left;C=Math.max(n.value.offsetWidth/2,C),C=Math.min(C,m.width-n.value.offsetWidth/2),e.color.set("alpha",Math.round((C-n.value.offsetWidth/2)/(m.width-n.value.offsetWidth)*100))}}function p(){l.value=u(),s.value=i(),r.value=c()}return Re(()=>{const d={drag:v=>{h(v)},end:v=>{h(v)}};Oo(o.value,d),Oo(n.value,d),p()}),{thumb:n,bar:o,thumbLeft:l,thumbTop:s,background:r,handleClick:f,update:p}}});function Sm(e,t,n,o,l,s){return k(),L("div",{class:S(["el-color-alpha-slider",{"is-vertical":e.vertical}])},[x("div",{ref:"bar",class:"el-color-alpha-slider__bar",style:$e({background:e.background}),onClick:t[0]||(t[0]=(...r)=>e.handleClick&&e.handleClick(...r))},null,4),x("div",{ref:"thumb",class:"el-color-alpha-slider__thumb",style:$e({left:e.thumbLeft+"px",top:e.thumbTop+"px"})},null,4)],2)}var Em=ie(km,[["render",Sm],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/alpha-slider.vue"]]);const $m=se({name:"ElColorHueSlider",props:{color:{type:Object,required:!0},vertical:Boolean},setup(e){const t=De(),n=P(null),o=P(null),l=P(0),s=P(0),r=$(()=>e.color.get("hue"));oe(()=>r.value,()=>{h()});function u(p){p.target!==n.value&&i(p)}function i(p){const v=t.vnode.el.getBoundingClientRect(),{clientX:m,clientY:y}=ca(p);let b;if(e.vertical){let C=y-v.top;C=Math.min(C,v.height-n.value.offsetHeight/2),C=Math.max(n.value.offsetHeight/2,C),b=Math.round((C-n.value.offsetHeight/2)/(v.height-n.value.offsetHeight)*360)}else{let C=m-v.left;C=Math.min(C,v.width-n.value.offsetWidth/2),C=Math.max(n.value.offsetWidth/2,C),b=Math.round((C-n.value.offsetWidth/2)/(v.width-n.value.offsetWidth)*360)}e.color.set("hue",b)}function c(){const p=t.vnode.el;if(e.vertical)return 0;const d=e.color.get("hue");return p?Math.round(d*(p.offsetWidth-n.value.offsetWidth/2)/360):0}function f(){const p=t.vnode.el;if(!e.vertical)return 0;const d=e.color.get("hue");return p?Math.round(d*(p.offsetHeight-n.value.offsetHeight/2)/360):0}function h(){l.value=c(),s.value=f()}return Re(()=>{const p={drag:d=>{i(d)},end:d=>{i(d)}};Oo(o.value,p),Oo(n.value,p),h()}),{bar:o,thumb:n,thumbLeft:l,thumbTop:s,hueValue:r,handleClick:u,update:h}}});function Tm(e,t,n,o,l,s){return k(),L("div",{class:S(["el-color-hue-slider",{"is-vertical":e.vertical}])},[x("div",{ref:"bar",class:"el-color-hue-slider__bar",onClick:t[0]||(t[0]=(...r)=>e.handleClick&&e.handleClick(...r))},null,512),x("div",{ref:"thumb",class:"el-color-hue-slider__thumb",style:$e({left:e.thumbLeft+"px",top:e.thumbTop+"px"})},null,4)],2)}var Nm=ie($m,[["render",Tm],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/hue-slider.vue"]]);const pi=Symbol(),Pm=()=>fe(pi),Ss=function(e,t,n){return[e,t*n/((e=(2-t)*n)<1?e:2-e)||0,e/2]},Im=function(e){return typeof e=="string"&&e.includes(".")&&Number.parseFloat(e)===1},Mm=function(e){return typeof e=="string"&&e.includes("%")},Gn=function(e,t){Im(e)&&(e="100%");const n=Mm(e);return e=Math.min(t,Math.max(0,Number.parseFloat(`${e}`))),n&&(e=Number.parseInt(`${e*t}`,10)/100),Math.abs(e-t)<1e-6?1:e%t/Number.parseFloat(t)},Es={10:"A",11:"B",12:"C",13:"D",14:"E",15:"F"},Go=function(e){e=Math.min(Math.round(e),255);const t=Math.floor(e/16),n=e%16;return`${Es[t]||t}${Es[n]||n}`},$s=function({r:e,g:t,b:n}){return Number.isNaN(+e)||Number.isNaN(+t)||Number.isNaN(+n)?"":`#${Go(e)}${Go(t)}${Go(n)}`},Ll={A:10,B:11,C:12,D:13,E:14,F:15},Ln=function(e){return e.length===2?(Ll[e[0].toUpperCase()]||+e[0])*16+(Ll[e[1].toUpperCase()]||+e[1]):Ll[e[1].toUpperCase()]||+e[1]},Om=function(e,t,n){t=t/100,n=n/100;let o=t;const l=Math.max(n,.01);n*=2,t*=n<=1?n:2-n,o*=l<=1?l:2-l;const s=(n+t)/2,r=n===0?2*o/(l+o):2*t/(n+t);return{h:e,s:r*100,v:s*100}},Ts=function(e,t,n){e=Gn(e,255),t=Gn(t,255),n=Gn(n,255);const o=Math.max(e,t,n),l=Math.min(e,t,n);let s;const r=o,u=o-l,i=o===0?0:u/o;if(o===l)s=0;else{switch(o){case e:{s=(t-n)/u+(t{this._hue=Math.max(0,Math.min(360,o)),this._saturation=Math.max(0,Math.min(100,l)),this._value=Math.max(0,Math.min(100,s)),this.doOnChange()};if(t.includes("hsl")){const o=t.replace(/hsla|hsl|\(|\)/gm,"").split(/\s|,/g).filter(l=>l!=="").map((l,s)=>s>2?Number.parseFloat(l):Number.parseInt(l,10));if(o.length===4?this._alpha=Number.parseFloat(o[3])*100:o.length===3&&(this._alpha=100),o.length>=3){const{h:l,s,v:r}=Om(o[0],o[1],o[2]);n(l,s,r)}}else if(t.includes("hsv")){const o=t.replace(/hsva|hsv|\(|\)/gm,"").split(/\s|,/g).filter(l=>l!=="").map((l,s)=>s>2?Number.parseFloat(l):Number.parseInt(l,10));o.length===4?this._alpha=Number.parseFloat(o[3])*100:o.length===3&&(this._alpha=100),o.length>=3&&n(o[0],o[1],o[2])}else if(t.includes("rgb")){const o=t.replace(/rgba|rgb|\(|\)/gm,"").split(/\s|,/g).filter(l=>l!=="").map((l,s)=>s>2?Number.parseFloat(l):Number.parseInt(l,10));if(o.length===4?this._alpha=Number.parseFloat(o[3])*100:o.length===3&&(this._alpha=100),o.length>=3){const{h:l,s,v:r}=Ts(o[0],o[1],o[2]);n(l,s,r)}}else if(t.includes("#")){const o=t.replace("#","").trim();if(!/^[0-9a-fA-F]{3}$|^[0-9a-fA-F]{6}$|^[0-9a-fA-F]{8}$/.test(o))return;let l,s,r;o.length===3?(l=Ln(o[0]+o[0]),s=Ln(o[1]+o[1]),r=Ln(o[2]+o[2])):(o.length===6||o.length===8)&&(l=Ln(o.slice(0,2)),s=Ln(o.slice(2,4)),r=Ln(o.slice(4,6))),o.length===8?this._alpha=Ln(o.slice(6))/255*100:(o.length===3||o.length===6)&&(this._alpha=100);const{h:u,s:i,v:c}=Ts(l,s,r);n(u,i,c)}}compare(t){return Math.abs(t._hue-this._hue)<2&&Math.abs(t._saturation-this._saturation)<1&&Math.abs(t._value-this._value)<1&&Math.abs(t._alpha-this._alpha)<1}doOnChange(){const{_hue:t,_saturation:n,_value:o,_alpha:l,format:s}=this;if(this.enableAlpha)switch(s){case"hsl":{const r=Ss(t,n/100,o/100);this.value=`hsla(${t}, ${Math.round(r[1]*100)}%, ${Math.round(r[2]*100)}%, ${this.get("alpha")/100})`;break}case"hsv":{this.value=`hsva(${t}, ${Math.round(n)}%, ${Math.round(o)}%, ${this.get("alpha")/100})`;break}case"hex":{this.value=`${$s(So(t,n,o))}${Go(l*255/100)}`;break}default:{const{r,g:u,b:i}=So(t,n,o);this.value=`rgba(${r}, ${u}, ${i}, ${this.get("alpha")/100})`}}else switch(s){case"hsl":{const r=Ss(t,n/100,o/100);this.value=`hsl(${t}, ${Math.round(r[1]*100)}%, ${Math.round(r[2]*100)}%)`;break}case"hsv":{this.value=`hsv(${t}, ${Math.round(n)}%, ${Math.round(o)}%)`;break}case"rgb":{const{r,g:u,b:i}=So(t,n,o);this.value=`rgb(${r}, ${u}, ${i})`;break}default:this.value=$s(So(t,n,o))}}}const Am=se({props:{colors:{type:Array,required:!0},color:{type:Object,required:!0}},setup(e){const{currentColor:t}=Pm(),n=P(l(e.colors,e.color));oe(()=>t.value,s=>{const r=new To;r.fromString(s),n.value.forEach(u=>{u.selected=r.compare(u)})}),Nn(()=>{n.value=l(e.colors,e.color)});function o(s){e.color.fromString(e.colors[s])}function l(s,r){return s.map(u=>{const i=new To;return i.enableAlpha=!0,i.format="rgba",i.fromString(u),i.selected=i.value===r.value,i})}return{rgbaColors:n,handleSelect:o}}}),Bm={class:"el-color-predefine"},Dm={class:"el-color-predefine__colors"},Lm=["onClick"];function Rm(e,t,n,o,l,s){return k(),L("div",Bm,[x("div",Dm,[(k(!0),L(Pe,null,ot(e.rgbaColors,(r,u)=>(k(),L("div",{key:e.colors[u],class:S(["el-color-predefine__color-selector",{selected:r.selected,"is-alpha":r._alpha<100}]),onClick:i=>e.handleSelect(u)},[x("div",{style:$e({backgroundColor:r.value})},null,4)],10,Lm))),128))])])}var _m=ie(Am,[["render",Rm],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/predefine.vue"]]);const Fm=se({name:"ElSlPanel",props:{color:{type:Object,required:!0}},setup(e){const t=De(),n=P(0),o=P(0),l=P("hsl(0, 100%, 50%)"),s=$(()=>{const i=e.color.get("hue"),c=e.color.get("value");return{hue:i,value:c}});function r(){const i=e.color.get("saturation"),c=e.color.get("value"),f=t.vnode.el,{clientWidth:h,clientHeight:p}=f;o.value=i*h/100,n.value=(100-c)*p/100,l.value=`hsl(${e.color.get("hue")}, 100%, 50%)`}function u(i){const f=t.vnode.el.getBoundingClientRect(),{clientX:h,clientY:p}=ca(i);let d=h-f.left,v=p-f.top;d=Math.max(0,d),d=Math.min(d,f.width),v=Math.max(0,v),v=Math.min(v,f.height),o.value=d,n.value=v,e.color.set({saturation:d/f.width*100,value:100-v/f.height*100})}return oe(()=>s.value,()=>{r()}),Re(()=>{Oo(t.vnode.el,{drag:i=>{u(i)},end:i=>{u(i)}}),r()}),{cursorTop:n,cursorLeft:o,background:l,colorValue:s,handleDrag:u,update:r}}}),zm=x("div",{class:"el-color-svpanel__white"},null,-1),Vm=x("div",{class:"el-color-svpanel__black"},null,-1),Hm=x("div",null,null,-1),Km=[Hm];function Wm(e,t,n,o,l,s){return k(),L("div",{class:"el-color-svpanel",style:$e({backgroundColor:e.background})},[zm,Vm,x("div",{class:"el-color-svpanel__cursor",style:$e({top:e.cursorTop+"px",left:e.cursorLeft+"px"})},Km,4)],4)}var jm=ie(Fm,[["render",Wm],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/sv-panel.vue"]]);const xm=se({name:"ElColorPicker",components:{ElButton:In,ElTooltip:wn,ElInput:Vt,ElIcon:he,Close:rn,ArrowDown:mo,SvPanel:jm,HueSlider:Nm,AlphaSlider:Em,Predefine:_m},directives:{ClickOutside:uo},props:{modelValue:String,id:String,showAlpha:Boolean,colorFormat:String,disabled:Boolean,size:{type:String,validator:Cl},popperClass:String,label:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},predefine:Array,validateEvent:{type:Boolean,default:!0}},emits:["change","active-change",qe],setup(e,{emit:t}){const{t:n}=Je(),o=le("color"),l=fe(dn,{}),s=fe(Ut,{}),{inputId:r,isLabeledByFormItem:u}=go(e,{formItemContext:s}),i=P(),c=P(),f=P(),h=P(null);let p=!0;const d=rt(new To({enableAlpha:e.showAlpha,format:e.colorFormat||"",value:e.modelValue})),v=P(!1),m=P(!1),y=P(""),b=$(()=>!e.modelValue&&!m.value?"transparent":T(d,e.showAlpha)),C=kt(),g=$(()=>!!(e.disabled||l.disabled)),w=$(()=>!e.modelValue&&!m.value?"":d.value),M=$(()=>u.value?void 0:e.label||n("el.colorpicker.defaultLabel")),I=$(()=>u.value?s.labelId:void 0);oe(()=>e.modelValue,_=>{_?_&&_!==d.value&&(p=!1,d.fromString(_)):m.value=!1}),oe(()=>w.value,_=>{y.value=_,p&&t("active-change",_),p=!0}),oe(()=>d.value,()=>{!e.modelValue&&!m.value&&(m.value=!0)});function T(_,D){if(!(_ instanceof To))throw new TypeError("color should be instance of _color Class");const{r:A,g:N,b:R}=_.toRgb();return D?`rgba(${A}, ${N}, ${R}, ${_.get("alpha")/100})`:`rgb(${A}, ${N}, ${R})`}function B(_){v.value=_}const O=mn(B,100);function V(){O(!1),W()}function W(){ke(()=>{e.modelValue?d.fromString(e.modelValue):(d.value="",ke(()=>{m.value=!1}))})}function J(){g.value||O(!v.value)}function F(){d.fromString(y.value)}function H(){var _;const D=d.value;t(qe,D),t("change",D),e.validateEvent&&((_=s.validate)==null||_.call(s,"change").catch(A=>void 0)),O(!1),ke(()=>{const A=new To({enableAlpha:e.showAlpha,format:e.colorFormat||"",value:e.modelValue});d.compare(A)||W()})}function U(){var _;O(!1),t(qe,null),t("change",null),e.modelValue!==null&&e.validateEvent&&((_=s.validate)==null||_.call(s,"change").catch(D=>void 0)),W()}return Re(()=>{e.modelValue&&(y.value=w.value)}),oe(()=>v.value,()=>{ke(()=>{var _,D,A;(_=i.value)==null||_.update(),(D=c.value)==null||D.update(),(A=f.value)==null||A.update()})}),Fe(pi,{currentColor:w}),{color:d,colorDisabled:g,colorSize:C,displayedColor:b,showPanelColor:m,showPicker:v,customInput:y,buttonId:r,buttonAriaLabel:M,buttonAriaLabelledby:I,handleConfirm:F,hide:V,handleTrigger:J,clear:U,confirmValue:H,t:n,ns:o,hue:i,svPanel:c,alpha:f,popper:h}}}),qm=["id","aria-label","aria-labelledby","aria-description","tabindex"];function Um(e,t,n,o,l,s){const r=Ee("hue-slider"),u=Ee("sv-panel"),i=Ee("alpha-slider"),c=Ee("predefine"),f=Ee("el-input"),h=Ee("el-button"),p=Ee("arrow-down"),d=Ee("el-icon"),v=Ee("close"),m=Ee("el-tooltip"),y=hl("click-outside");return k(),Z(m,{ref:"popper",visible:e.showPicker,"onUpdate:visible":t[3]||(t[3]=b=>e.showPicker=b),"show-arrow":!1,"fallback-placements":["bottom","top","right","left"],offset:0,"gpu-acceleration":!1,"popper-class":[e.ns.be("picker","panel"),e.ns.b("dropdown"),e.popperClass],"stop-popper-mouse-event":!1,effect:"light",trigger:"click",transition:"el-zoom-in-top",persistent:""},{content:K(()=>[Ie((k(),L("div",null,[x("div",{class:S(e.ns.be("dropdown","main-wrapper"))},[j(r,{ref:"hue",class:"hue-slider",color:e.color,vertical:""},null,8,["color"]),j(u,{ref:"svPanel",color:e.color},null,8,["color"])],2),e.showAlpha?(k(),Z(i,{key:0,ref:"alpha",color:e.color},null,8,["color"])):Y("v-if",!0),e.predefine?(k(),Z(c,{key:1,ref:"predefine",color:e.color,colors:e.predefine},null,8,["color","colors"])):Y("v-if",!0),x("div",{class:S(e.ns.be("dropdown","btns"))},[x("span",{class:S(e.ns.be("dropdown","value"))},[j(f,{modelValue:e.customInput,"onUpdate:modelValue":t[0]||(t[0]=b=>e.customInput=b),"validate-event":!1,size:"small",onKeyup:xe(e.handleConfirm,["enter"]),onBlur:e.handleConfirm},null,8,["modelValue","onKeyup","onBlur"])],2),j(h,{class:S(e.ns.be("dropdown","link-btn")),text:"",size:"small",onClick:e.clear},{default:K(()=>[Xe(de(e.t("el.colorpicker.clear")),1)]),_:1},8,["class","onClick"]),j(h,{plain:"",size:"small",class:S(e.ns.be("dropdown","btn")),onClick:e.confirmValue},{default:K(()=>[Xe(de(e.t("el.colorpicker.confirm")),1)]),_:1},8,["class","onClick"])],2)])),[[y,e.hide]])]),default:K(()=>[x("div",{id:e.buttonId,class:S([e.ns.b("picker"),e.ns.is("disabled",e.colorDisabled),e.ns.bm("picker",e.colorSize)]),role:"button","aria-label":e.buttonAriaLabel,"aria-labelledby":e.buttonAriaLabelledby,"aria-description":e.t("el.colorpicker.description",{color:e.modelValue||""}),tabindex:e.tabindex,onKeydown:t[2]||(t[2]=xe((...b)=>e.handleTrigger&&e.handleTrigger(...b),["enter"]))},[e.colorDisabled?(k(),L("div",{key:0,class:S(e.ns.be("picker","mask"))},null,2)):Y("v-if",!0),x("div",{class:S(e.ns.be("picker","trigger")),onClick:t[1]||(t[1]=(...b)=>e.handleTrigger&&e.handleTrigger(...b))},[x("span",{class:S([e.ns.be("picker","color"),e.ns.is("alpha",e.showAlpha)])},[x("span",{class:S(e.ns.be("picker","color-inner")),style:$e({backgroundColor:e.displayedColor})},[Ie(j(d,{class:S([e.ns.be("picker","icon"),e.ns.is("icon-arrow-down")])},{default:K(()=>[j(p)]),_:1},8,["class"]),[[Ye,e.modelValue||e.showPanelColor]]),!e.modelValue&&!e.showPanelColor?(k(),Z(d,{key:0,class:S([e.ns.be("picker","empty"),e.ns.is("icon-close")])},{default:K(()=>[j(v)]),_:1},8,["class"])):Y("v-if",!0)],6)],2)],2)],42,qm)]),_:1},8,["visible","popper-class"])}var Xo=ie(xm,[["render",Um],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/index.vue"]]);Xo.install=e=>{e.component(Xo.name,Xo)};const Ym=Xo,MS=Ym,Yl={},Gm=pe({a11y:{type:Boolean,default:!0},locale:{type:te(Object)},size:Cn,button:{type:te(Object)},experimentalFeatures:{type:te(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:te(Object)},zIndex:Number,namespace:{type:String,default:"el"}}),Xm=se({name:"ElConfigProvider",props:Gm,setup(e,{slots:t}){oe(()=>e.message,o=>{Object.assign(Yl,o!=null?o:{})},{immediate:!0,deep:!0});const n=Tc(e);return()=>Q(t,"default",{config:n==null?void 0:n.value})}}),OS=Ke(Xm),Jm={name:"ElContainer"},Zm=se({...Jm,props:{direction:{type:String}},setup(e){const t=e,n=Xt(),o=le("container"),l=$(()=>t.direction==="vertical"?!0:t.direction==="horizontal"?!1:n&&n.default?n.default().some(r=>{const u=r.type.name;return u==="ElHeader"||u==="ElFooter"}):!1);return(s,r)=>(k(),L("section",{class:S([a(o).b(),a(o).is("vertical",a(l))])},[Q(s.$slots,"default")],2))}});var Qm=ie(Zm,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/container.vue"]]);const eh={name:"ElAside"},th=se({...eh,props:{width:{type:String,default:null}},setup(e){const t=e,n=le("aside"),o=$(()=>t.width?n.cssVarBlock({width:t.width}):{});return(l,s)=>(k(),L("aside",{class:S(a(n).b()),style:$e(a(o))},[Q(l.$slots,"default")],6))}});var vi=ie(th,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/aside.vue"]]);const nh={name:"ElFooter"},oh=se({...nh,props:{height:{type:String,default:null}},setup(e){const t=e,n=le("footer"),o=$(()=>t.height?n.cssVarBlock({height:t.height}):{});return(l,s)=>(k(),L("footer",{class:S(a(n).b()),style:$e(a(o))},[Q(l.$slots,"default")],6))}});var mi=ie(oh,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/footer.vue"]]);const lh={name:"ElHeader"},ah=se({...lh,props:{height:{type:String,default:null}},setup(e){const t=e,n=le("header"),o=$(()=>t.height?n.cssVarBlock({height:t.height}):{});return(l,s)=>(k(),L("header",{class:S(a(n).b()),style:$e(a(o))},[Q(l.$slots,"default")],6))}});var hi=ie(ah,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/header.vue"]]);const sh={name:"ElMain"},rh=se({...sh,setup(e){const t=le("main");return(n,o)=>(k(),L("main",{class:S(a(t).b())},[Q(n.$slots,"default")],2))}});var gi=ie(rh,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/main.vue"]]);const AS=Ke(Qm,{Aside:vi,Footer:mi,Header:hi,Main:gi}),BS=mt(vi);mt(mi);mt(hi);const DS=mt(gi),ih=pe({type:{type:te(String),default:"date"}}),uh=["date","dates","year","month","week","range"],Ta=pe({disabledDate:{type:te(Function)},date:{type:te(Object),required:!0},minDate:{type:te(Object)},maxDate:{type:te(Object)},parsedValue:{type:te([Object,Array])},rangeState:{type:te(Object),default:()=>({endDate:null,selecting:!1})}}),bi=pe({type:{type:te(String),required:!0,values:Cc}}),yi=pe({unlinkPanels:Boolean,parsedValue:{type:te(Array)}}),Ci=e=>({type:String,values:uh,default:e}),ch=pe({...bi,parsedValue:{type:te([Object,Array])},visible:{type:Boolean},format:{type:String,default:""}}),dh=pe({...Ta,cellClassName:{type:te(Function)},showWeekNumber:Boolean,selectionMode:Ci("date")}),Gl=e=>{if(!at(e))return!1;const[t,n]=e;return Me.isDayjs(t)&&Me.isDayjs(n)&&t.isSameOrBefore(n)},wi=(e,{lang:t,unit:n,unlinkPanels:o})=>{let l;if(at(e)){let[s,r]=e.map(u=>Me(u).locale(t));return o||(r=s.add(1,n)),[s,r]}else e?l=Me(e):l=Me();return l=l.locale(t),[l,l.add(1,n)]},fh=(e,t,{columnIndexOffset:n,startDate:o,nextEndDate:l,now:s,unit:r,relativeDateGetter:u,setCellMetadata:i,setRowMetadata:c})=>{for(let f=0;f{const{cell:o}=e;if(n.default){const l=n.default(o).filter(s=>s.patchFlag!==-2&&s.type.toString()!=="Symbol(Comment)");if(l.length)return l}return j("div",{class:t.b()},[j("span",{class:t.e("text")},[o==null?void 0:o.text])])}}});const mh=["aria-label"],hh={key:0,scope:"col"},gh=["aria-label"],bh=["aria-current","aria-selected","tabindex"],yh=se({__name:"basic-date-table",props:dh,emits:["changerange","pick","select"],setup(e,{expose:t,emit:n}){const o=e,l=le("date-table"),{t:s,lang:r}=Je(),u=P(),i=P(),c=P(),f=P(),h=P([[],[],[],[],[],[]]),p=o.date.$locale().weekStart||7,d=o.date.locale("en").localeData().weekdaysShort().map(N=>N.toLowerCase()),v=$(()=>p>3?7-p:-p),m=$(()=>{const N=o.date.startOf("month");return N.subtract(N.day()||7,"day")}),y=$(()=>d.concat(d).slice(p,p+7)),b=$(()=>T.value.flat().some(N=>N.isCurrent)),C=$(()=>{const N=o.date.startOf("month"),R=N.day()||7,G=N.daysInMonth(),re=N.subtract(1,"month").daysInMonth();return{startOfMonthDay:R,dateCountOfMonth:G,dateCountOfLastMonth:re}}),g=$(()=>o.selectionMode==="dates"?zn(o.parsedValue):[]),w=(N,{count:R,rowIndex:G,columnIndex:re})=>{const{startOfMonthDay:ce,dateCountOfMonth:ye,dateCountOfLastMonth:ge}=a(C),Te=a(v);if(G>=0&&G<=1){const X=ce+Te<0?7+ce+Te:ce+Te;if(re+G*7>=X)return N.text=R,!0;N.text=ge-(X-re%7)+1+G*7,N.type="prev-month"}else return R<=ye?N.text=R:(N.text=R-ye,N.type="next-month"),!0;return!1},M=(N,{columnIndex:R,rowIndex:G},re)=>{const{disabledDate:ce,cellClassName:ye}=o,ge=a(g),Te=w(N,{count:re,rowIndex:G,columnIndex:R}),X=N.dayjs.toDate();return N.selected=ge.find(ve=>ve.valueOf()===N.dayjs.valueOf()),N.isSelected=!!N.selected,N.isCurrent=V(N),N.disabled=ce==null?void 0:ce(X),N.customClass=ye==null?void 0:ye(X),Te},I=N=>{if(o.selectionMode==="week"){const[R,G]=o.showWeekNumber?[1,7]:[0,6],re=A(N[R+1]);N[R].inRange=re,N[R].start=re,N[G].inRange=re,N[G].end=re}},T=$(()=>{const{minDate:N,maxDate:R,rangeState:G,showWeekNumber:re}=o,ce=v.value,ye=h.value,ge="day";let Te=1;if(re)for(let X=0;X<6;X++)ye[X][0]||(ye[X][0]={type:"week",text:m.value.add(X*7+1,ge).week()});return fh({row:6,column:7},ye,{startDate:N,columnIndexOffset:re?1:0,nextEndDate:G.endDate||R||G.selecting&&N||null,now:Me().locale(a(r)).startOf(ge),unit:ge,relativeDateGetter:X=>m.value.add(X-ce,ge),setCellMetadata:(...X)=>{M(...X,Te)&&(Te+=1)},setRowMetadata:I}),ye});oe(()=>o.date,async()=>{var N,R;(N=u.value)!=null&&N.contains(document.activeElement)&&(await ke(),(R=i.value)==null||R.focus())});const B=async()=>{var N;(N=i.value)==null||N.focus()},O=(N="")=>["normal","today"].includes(N),V=N=>o.selectionMode==="date"&&O(N.type)&&W(N,o.parsedValue),W=(N,R)=>R?Me(R).locale(r.value).isSame(o.date.date(Number(N.text)),"day"):!1,J=N=>{const R=[];return O(N.type)&&!N.disabled?(R.push("available"),N.type==="today"&&R.push("today")):R.push(N.type),V(N)&&R.push("current"),N.inRange&&(O(N.type)||o.selectionMode==="week")&&(R.push("in-range"),N.start&&R.push("start-date"),N.end&&R.push("end-date")),N.disabled&&R.push("disabled"),N.selected&&R.push("selected"),N.customClass&&R.push(N.customClass),R.join(" ")},F=(N,R)=>{const G=N*7+(R-(o.showWeekNumber?1:0))-v.value;return m.value.add(G,"day")},H=N=>{var R;if(!o.rangeState.selecting)return;let G=N.target;if(G.tagName==="SPAN"&&(G=(R=G.parentNode)==null?void 0:R.parentNode),G.tagName==="DIV"&&(G=G.parentNode),G.tagName!=="TD")return;const re=G.parentNode.rowIndex-1,ce=G.cellIndex;T.value[re][ce].disabled||(re!==c.value||ce!==f.value)&&(c.value=re,f.value=ce,n("changerange",{selecting:!0,endDate:F(re,ce)}))},U=N=>!b.value&&(N==null?void 0:N.text)===1&&N.type==="normal"||N.isCurrent,_=N=>{!b.value&&o.selectionMode==="date"&&D(N,!0)},D=(N,R=!1)=>{const G=N.target.closest("td");if(!G||G.tagName!=="TD")return;const re=G.parentNode.rowIndex-1,ce=G.cellIndex,ye=T.value[re][ce];if(ye.disabled||ye.type==="week")return;const ge=F(re,ce);if(o.selectionMode==="range")!o.rangeState.selecting||!o.minDate?(n("pick",{minDate:ge,maxDate:null}),n("select",!0)):(ge>=o.minDate?n("pick",{minDate:o.minDate,maxDate:ge}):n("pick",{minDate:ge,maxDate:o.minDate}),n("select",!1));else if(o.selectionMode==="date")n("pick",ge,R);else if(o.selectionMode==="week"){const Te=ge.week(),X=`${ge.year()}w${Te}`;n("pick",{year:ge.year(),week:Te,value:X,date:ge.startOf("week")})}else if(o.selectionMode==="dates"){const Te=ye.selected?zn(o.parsedValue).filter(X=>(X==null?void 0:X.valueOf())!==ge.valueOf()):zn(o.parsedValue).concat([ge]);n("pick",Te)}},A=N=>{if(o.selectionMode!=="week")return!1;let R=o.date.startOf("day");if(N.type==="prev-month"&&(R=R.subtract(1,"month")),N.type==="next-month"&&(R=R.add(1,"month")),R=R.date(Number.parseInt(N.text,10)),o.parsedValue&&!Array.isArray(o.parsedValue)){const G=(o.parsedValue.day()-p+7)%7-1;return o.parsedValue.subtract(G,"day").isSame(R,"day")}return!1};return t({focus:B}),(N,R)=>(k(),L("table",{role:"grid","aria-label":a(s)("el.datepicker.dateTablePrompt"),cellspacing:"0",cellpadding:"0",class:S([a(l).b(),{"is-week-mode":N.selectionMode==="week"}]),onClick:D,onMousemove:H},[x("tbody",{ref_key:"tbodyRef",ref:u},[x("tr",null,[N.showWeekNumber?(k(),L("th",hh,de(a(s)("el.datepicker.week")),1)):Y("v-if",!0),(k(!0),L(Pe,null,ot(a(y),(G,re)=>(k(),L("th",{key:re,scope:"col","aria-label":a(s)("el.datepicker.weeksFull."+G)},de(a(s)("el.datepicker.weeks."+G)),9,gh))),128))]),(k(!0),L(Pe,null,ot(a(T),(G,re)=>(k(),L("tr",{key:re,class:S([a(l).e("row"),{current:A(G[1])}])},[(k(!0),L(Pe,null,ot(G,(ce,ye)=>(k(),L("td",{key:`${re}.${ye}`,ref_for:!0,ref:ge=>{U(ce)&&(i.value=ge)},class:S(J(ce)),"aria-current":ce.isCurrent?"date":void 0,"aria-selected":ce.isCurrent,tabindex:U(ce)?0:-1,onFocus:_},[j(a(vh),{cell:ce},null,8,["cell"])],42,bh))),128))],2))),128))],512)],42,mh))}});var Xl=ie(yh,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/basic-date-table.vue"]]);const Ch=pe({...Ta,selectionMode:Ci("month")}),wh=["aria-label"],kh=["aria-selected","aria-label","tabindex","onKeydown"],Sh={class:"cell"},Eh=se({__name:"basic-month-table",props:Ch,emits:["changerange","pick","select"],setup(e,{expose:t,emit:n}){const o=e,l=(w,M,I)=>{const T=Me().locale(I).startOf("month").month(M).year(w),B=T.daysInMonth();return Gr(B).map(O=>T.add(O,"day").toDate())},s=le("month-table"),{t:r,lang:u}=Je(),i=P(),c=P(),f=P(o.date.locale("en").localeData().monthsShort().map(w=>w.toLowerCase())),h=P([[],[],[]]),p=P(),d=P(),v=$(()=>{var w,M;const I=h.value,T=Me().locale(u.value).startOf("month");for(let B=0;B<3;B++){const O=I[B];for(let V=0;V<4;V++){const W=O[V]||(O[V]={row:B,column:V,type:"normal",inRange:!1,start:!1,end:!1,text:-1,disabled:!1});W.type="normal";const J=B*4+V,F=o.date.startOf("year").month(J),H=o.rangeState.endDate||o.maxDate||o.rangeState.selecting&&o.minDate||null;W.inRange=!!(o.minDate&&F.isSameOrAfter(o.minDate,"month")&&H&&F.isSameOrBefore(H,"month"))||!!(o.minDate&&F.isSameOrBefore(o.minDate,"month")&&H&&F.isSameOrAfter(H,"month")),(w=o.minDate)!=null&&w.isSameOrAfter(H)?(W.start=!!(H&&F.isSame(H,"month")),W.end=o.minDate&&F.isSame(o.minDate,"month")):(W.start=!!(o.minDate&&F.isSame(o.minDate,"month")),W.end=!!(H&&F.isSame(H,"month"))),T.isSame(F)&&(W.type="today"),W.text=J,W.disabled=((M=o.disabledDate)==null?void 0:M.call(o,F.toDate()))||!1}}return I}),m=()=>{var w;(w=c.value)==null||w.focus()},y=w=>{const M={},I=o.date.year(),T=new Date,B=w.text;return M.disabled=o.disabledDate?l(I,B,u.value).every(o.disabledDate):!1,M.current=zn(o.parsedValue).findIndex(O=>Me.isDayjs(O)&&O.year()===I&&O.month()===B)>=0,M.today=T.getFullYear()===I&&T.getMonth()===B,w.inRange&&(M["in-range"]=!0,w.start&&(M["start-date"]=!0),w.end&&(M["end-date"]=!0)),M},b=w=>{const M=o.date.year(),I=w.text;return zn(o.date).findIndex(T=>T.year()===M&&T.month()===I)>=0},C=w=>{var M;if(!o.rangeState.selecting)return;let I=w.target;if(I.tagName==="A"&&(I=(M=I.parentNode)==null?void 0:M.parentNode),I.tagName==="DIV"&&(I=I.parentNode),I.tagName!=="TD")return;const T=I.parentNode.rowIndex,B=I.cellIndex;v.value[T][B].disabled||(T!==p.value||B!==d.value)&&(p.value=T,d.value=B,n("changerange",{selecting:!0,endDate:o.date.startOf("year").month(T*4+B)}))},g=w=>{var M;const I=(M=w.target)==null?void 0:M.closest("td");if((I==null?void 0:I.tagName)!=="TD"||vn(I,"disabled"))return;const T=I.cellIndex,O=I.parentNode.rowIndex*4+T,V=o.date.startOf("year").month(O);o.selectionMode==="range"?o.rangeState.selecting?(o.minDate&&V>=o.minDate?n("pick",{minDate:o.minDate,maxDate:V}):n("pick",{minDate:V,maxDate:o.minDate}),n("select",!1)):(n("pick",{minDate:V,maxDate:null}),n("select",!0)):n("pick",O)};return oe(()=>o.date,async()=>{var w,M;(w=i.value)!=null&&w.contains(document.activeElement)&&(await ke(),(M=c.value)==null||M.focus())}),t({focus:m}),(w,M)=>(k(),L("table",{role:"grid","aria-label":a(r)("el.datepicker.monthTablePrompt"),class:S(a(s).b()),onClick:g,onMousemove:C},[x("tbody",{ref_key:"tbodyRef",ref:i},[(k(!0),L(Pe,null,ot(a(v),(I,T)=>(k(),L("tr",{key:T},[(k(!0),L(Pe,null,ot(I,(B,O)=>(k(),L("td",{key:O,ref_for:!0,ref:V=>b(B)&&(c.value=V),class:S(y(B)),"aria-selected":`${b(B)}`,"aria-label":a(r)(`el.datepicker.month${+B.text+1}`),tabindex:b(B)?0:-1,onKeydown:[xe(Oe(g,["prevent","stop"]),["space"]),xe(Oe(g,["prevent","stop"]),["enter"])]},[x("div",null,[x("span",Sh,de(a(r)("el.datepicker.months."+f.value[B.text])),1)])],42,kh))),128))]))),128))],512)],42,wh))}});var Jl=ie(Eh,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/basic-month-table.vue"]]);const{date:$h,disabledDate:Th,parsedValue:Nh}=Ta,Ph=pe({date:$h,disabledDate:Th,parsedValue:Nh}),Ih=["aria-label"],Mh=["aria-selected","tabindex","onKeydown"],Oh={class:"cell"},Ah={key:1},Bh=se({__name:"basic-year-table",props:Ph,emits:["pick"],setup(e,{expose:t,emit:n}){const o=e,l=(m,y)=>{const b=Me(String(m)).locale(y).startOf("year"),g=b.endOf("year").dayOfYear();return Gr(g).map(w=>b.add(w,"day").toDate())},s=le("year-table"),{t:r,lang:u}=Je(),i=P(),c=P(),f=$(()=>Math.floor(o.date.year()/10)*10),h=()=>{var m;(m=c.value)==null||m.focus()},p=m=>{const y={},b=Me().locale(u.value);return y.disabled=o.disabledDate?l(m,u.value).every(o.disabledDate):!1,y.current=zn(o.parsedValue).findIndex(C=>C.year()===m)>=0,y.today=b.year()===m,y},d=m=>m===f.value&&o.date.year()f.value+9||zn(o.date).findIndex(y=>y.year()===m)>=0,v=m=>{const b=m.target.closest("td");if(b){if(vn(b,"disabled"))return;const C=b.textContent||b.innerText;n("pick",Number(C))}};return oe(()=>o.date,async()=>{var m,y;(m=i.value)!=null&&m.contains(document.activeElement)&&(await ke(),(y=c.value)==null||y.focus())}),t({focus:h}),(m,y)=>(k(),L("table",{role:"grid","aria-label":a(r)("el.datepicker.yearTablePrompt"),class:S(a(s).b()),onClick:v},[x("tbody",{ref_key:"tbodyRef",ref:i},[(k(),L(Pe,null,ot(3,(b,C)=>x("tr",{key:C},[(k(),L(Pe,null,ot(4,(g,w)=>(k(),L(Pe,{key:C+"_"+w},[C*4+w<10?(k(),L("td",{key:0,ref_for:!0,ref:M=>d(a(f)+C*4+w)&&(c.value=M),class:S(["available",p(a(f)+C*4+w)]),"aria-selected":`${d(a(f)+C*4+w)}`,tabindex:d(a(f)+C*4+w)?0:-1,onKeydown:[xe(Oe(v,["prevent","stop"]),["space"]),xe(Oe(v,["prevent","stop"]),["enter"])]},[x("span",Oh,de(a(f)+C*4+w),1)],42,Mh)):(k(),L("td",Ah))],64))),64))])),64))],512)],10,Ih))}});var Dh=ie(Bh,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/basic-year-table.vue"]]);const Lh=["onClick"],Rh=["aria-label"],_h=["aria-label"],Fh=["aria-label"],zh=["aria-label"],Vh=se({__name:"panel-date-pick",props:ch,emits:["pick","set-picker-option","panel-change"],setup(e,{emit:t}){const n=e,o=(q,ne,E)=>!0,l=le("picker-panel"),s=le("date-picker"),r=Bo(),u=Xt(),{t:i,lang:c}=Je(),f=fe("EP_PICKER_BASE"),h=fe(El),{shortcuts:p,disabledDate:d,cellClassName:v,defaultTime:m,arrowControl:y}=f.props,b=ct(f.props,"defaultValue"),C=P(),g=P(Me().locale(c.value)),w=$(()=>Me(m).locale(c.value)),M=$(()=>g.value.month()),I=$(()=>g.value.year()),T=P([]),B=P(null),O=P(null),V=q=>T.value.length>0?o(q,T.value,n.format||"HH:mm:ss"):!0,W=q=>m&&!Ge.value?w.value.year(q.year()).month(q.month()).date(q.date()):ge.value?q.millisecond(0):q.startOf("day"),J=(q,...ne)=>{if(!q)t("pick",q,...ne);else if(at(q)){const E=q.map(W);t("pick",E,...ne)}else t("pick",W(q),...ne);B.value=null,O.value=null},F=(q,ne)=>{if(N.value==="date"){q=q;let E=n.parsedValue?n.parsedValue.year(q.year()).month(q.month()).date(q.date()):q;V(E)||(E=T.value[0][0].year(q.year()).month(q.month()).date(q.date())),g.value=E,J(E,ge.value||ne)}else N.value==="week"?J(q.date):N.value==="dates"&&J(q,!0)},H=q=>{const ne=q?"add":"subtract";g.value=g.value[ne](1,"month"),Qe("month")},U=q=>{const ne=g.value,E=q?"add":"subtract";g.value=_.value==="year"?ne[E](10,"year"):ne[E](1,"year"),Qe("year")},_=P("date"),D=$(()=>{const q=i("el.datepicker.year");if(_.value==="year"){const ne=Math.floor(I.value/10)*10;return q?`${ne} ${q} - ${ne+9} ${q}`:`${ne} - ${ne+9}`}return`${I.value} ${q}`}),A=q=>{const ne=Pt(q.value)?q.value():q.value;if(ne){J(Me(ne).locale(c.value));return}q.onClick&&q.onClick({attrs:r,slots:u,emit:t})},N=$(()=>{const{type:q}=n;return["week","month","year","dates"].includes(q)?q:"date"}),R=$(()=>N.value==="date"?_.value:N.value),G=$(()=>!!p.length),re=async q=>{g.value=g.value.startOf("month").month(q),N.value==="month"?J(g.value,!1):(_.value="date",["month","year","date","week"].includes(N.value)&&(J(g.value,!0),await ke(),ae())),Qe("month")},ce=async q=>{N.value==="year"?(g.value=g.value.startOf("year").year(q),J(g.value,!1)):(g.value=g.value.year(q),_.value="month",["month","year","date","week"].includes(N.value)&&(J(g.value,!0),await ke(),ae())),Qe("year")},ye=async q=>{_.value=q,await ke(),ae()},ge=$(()=>n.type==="datetime"||n.type==="datetimerange"),Te=$(()=>ge.value||N.value==="dates"),X=()=>{if(N.value==="dates")J(n.parsedValue);else{let q=n.parsedValue;if(!q){const ne=Me(m).locale(c.value),E=bt();q=ne.year(E.year()).month(E.month()).date(E.date())}g.value=q,J(q)}},ve=()=>{const ne=Me().locale(c.value).toDate();(!d||!d(ne))&&V(ne)&&(g.value=Me().locale(c.value),J(g.value))},Ne=$(()=>Jr(n.format)),Le=$(()=>Xr(n.format)),Ge=$(()=>{if(O.value)return O.value;if(!(!n.parsedValue&&!b.value))return(n.parsedValue||g.value).format(Ne.value)}),Ze=$(()=>{if(B.value)return B.value;if(!(!n.parsedValue&&!b.value))return(n.parsedValue||g.value).format(Le.value)}),Ue=P(!1),ht=()=>{Ue.value=!0},Ae=()=>{Ue.value=!1},it=q=>({hour:q.hour(),minute:q.minute(),second:q.second(),year:q.year(),month:q.month(),date:q.date()}),lt=(q,ne,E)=>{const{hour:z,minute:ee,second:me}=it(q),ue=n.parsedValue?n.parsedValue.hour(z).minute(ee).second(me):q;g.value=ue,J(g.value,!0),E||(Ue.value=ne)},ft=q=>{const ne=Me(q,Ne.value).locale(c.value);if(ne.isValid()&&V(ne)){const{year:E,month:z,date:ee}=it(g.value);g.value=ne.year(E).month(z).date(ee),O.value=null,Ue.value=!1,J(g.value,!0)}},gt=q=>{const ne=Me(q,Le.value).locale(c.value);if(ne.isValid()){if(d&&d(ne.toDate()))return;const{hour:E,minute:z,second:ee}=it(g.value);g.value=ne.hour(E).minute(z).second(ee),B.value=null,J(g.value,!0)}},et=q=>Me.isDayjs(q)&&q.isValid()&&(d?!d(q.toDate()):!0),st=q=>N.value==="dates"?q.map(ne=>ne.format(n.format)):q.format(n.format),Et=q=>Me(q,n.format).locale(c.value),bt=()=>{const q=Me(b.value).locale(c.value);if(!b.value){const ne=w.value;return Me().hour(ne.hour()).minute(ne.minute()).second(ne.second()).locale(c.value)}return q},ae=async()=>{var q;["week","month","year","date"].includes(N.value)&&((q=C.value)==null||q.focus(),N.value==="week"&&_e(be.down))},Be=q=>{const{code:ne}=q;[be.up,be.down,be.left,be.right,be.home,be.end,be.pageUp,be.pageDown].includes(ne)&&(_e(ne),q.stopPropagation(),q.preventDefault()),[be.enter,be.space].includes(ne)&&B.value===null&&O.value===null&&(q.preventDefault(),J(g.value,!1))},_e=q=>{var ne;const{up:E,down:z,left:ee,right:me,home:ue,end:Ce,pageUp:we,pageDown:dt}=be,ut={year:{[E]:-4,[z]:4,[ee]:-1,[me]:1,offset:(ze,jt)=>ze.setFullYear(ze.getFullYear()+jt)},month:{[E]:-4,[z]:4,[ee]:-1,[me]:1,offset:(ze,jt)=>ze.setMonth(ze.getMonth()+jt)},week:{[E]:-1,[z]:1,[ee]:-1,[me]:1,offset:(ze,jt)=>ze.setDate(ze.getDate()+jt*7)},date:{[E]:-7,[z]:7,[ee]:-1,[me]:1,[ue]:ze=>-ze.getDay(),[Ce]:ze=>-ze.getDay()+6,[we]:ze=>-new Date(ze.getFullYear(),ze.getMonth(),0).getDate(),[dt]:ze=>new Date(ze.getFullYear(),ze.getMonth()+1,0).getDate(),offset:(ze,jt)=>ze.setDate(ze.getDate()+jt)}},nt=g.value.toDate();for(;Math.abs(g.value.diff(nt,"year",!0))<1;){const ze=ut[R.value];if(!ze)return;if(ze.offset(nt,Pt(ze[q])?ze[q](nt):(ne=ze[q])!=null?ne:0),d&&d(nt))break;const jt=Me(nt).locale(c.value);g.value=jt,t("pick",jt,!0);break}},Qe=q=>{t("panel-change",g.value.toDate(),q,_.value)};return oe(()=>N.value,q=>{if(["month","year"].includes(q)){_.value=q;return}_.value="date"},{immediate:!0}),oe(()=>_.value,()=>{h==null||h.updatePopper()}),oe(()=>b.value,q=>{q&&(g.value=bt())},{immediate:!0}),oe(()=>n.parsedValue,q=>{if(q){if(N.value==="dates"||Array.isArray(q))return;g.value=q}else g.value=bt()},{immediate:!0}),t("set-picker-option",["isValidValue",et]),t("set-picker-option",["formatToString",st]),t("set-picker-option",["parseUserInput",Et]),t("set-picker-option",["handleFocusPicker",ae]),(q,ne)=>(k(),L("div",{class:S([a(l).b(),a(s).b(),{"has-sidebar":q.$slots.sidebar||a(G),"has-time":a(ge)}])},[x("div",{class:S(a(l).e("body-wrapper"))},[Q(q.$slots,"sidebar",{class:S(a(l).e("sidebar"))}),a(G)?(k(),L("div",{key:0,class:S(a(l).e("sidebar"))},[(k(!0),L(Pe,null,ot(a(p),(E,z)=>(k(),L("button",{key:z,type:"button",class:S(a(l).e("shortcut")),onClick:ee=>A(E)},de(E.text),11,Lh))),128))],2)):Y("v-if",!0),x("div",{class:S(a(l).e("body"))},[a(ge)?(k(),L("div",{key:0,class:S(a(s).e("time-header"))},[x("span",{class:S(a(s).e("editor-wrap"))},[j(a(Vt),{placeholder:a(i)("el.datepicker.selectDate"),"model-value":a(Ze),size:"small",onInput:ne[0]||(ne[0]=E=>B.value=E),onChange:gt},null,8,["placeholder","model-value"])],2),Ie((k(),L("span",{class:S(a(s).e("editor-wrap"))},[j(a(Vt),{placeholder:a(i)("el.datepicker.selectTime"),"model-value":a(Ge),size:"small",onFocus:ht,onInput:ne[1]||(ne[1]=E=>O.value=E),onChange:ft},null,8,["placeholder","model-value"]),j(a(Ul),{visible:Ue.value,format:a(Ne),"time-arrow-control":a(y),"parsed-value":g.value,onPick:lt},null,8,["visible","format","time-arrow-control","parsed-value"])],2)),[[a(uo),Ae]])],2)):Y("v-if",!0),Ie(x("div",{class:S([a(s).e("header"),(_.value==="year"||_.value==="month")&&a(s).e("header--bordered")])},[x("span",{class:S(a(s).e("prev-btn"))},[x("button",{type:"button","aria-label":a(i)("el.datepicker.prevYear"),class:S(["d-arrow-left",a(l).e("icon-btn")]),onClick:ne[2]||(ne[2]=E=>U(!1))},[j(a(he),null,{default:K(()=>[j(a(eo))]),_:1})],10,Rh),Ie(x("button",{type:"button","aria-label":a(i)("el.datepicker.prevMonth"),class:S([a(l).e("icon-btn"),"arrow-left"]),onClick:ne[3]||(ne[3]=E=>H(!1))},[j(a(he),null,{default:K(()=>[j(a(to))]),_:1})],10,_h),[[Ye,_.value==="date"]])],2),x("span",{role:"button",class:S(a(s).e("header-label")),"aria-live":"polite",tabindex:"0",onKeydown:ne[4]||(ne[4]=xe(E=>ye("year"),["enter"])),onClick:ne[5]||(ne[5]=E=>ye("year"))},de(a(D)),35),Ie(x("span",{role:"button","aria-live":"polite",tabindex:"0",class:S([a(s).e("header-label"),{active:_.value==="month"}]),onKeydown:ne[6]||(ne[6]=xe(E=>ye("month"),["enter"])),onClick:ne[7]||(ne[7]=E=>ye("month"))},de(a(i)(`el.datepicker.month${a(M)+1}`)),35),[[Ye,_.value==="date"]]),x("span",{class:S(a(s).e("next-btn"))},[Ie(x("button",{type:"button","aria-label":a(i)("el.datepicker.nextMonth"),class:S([a(l).e("icon-btn"),"arrow-right"]),onClick:ne[8]||(ne[8]=E=>H(!0))},[j(a(he),null,{default:K(()=>[j(a(ln))]),_:1})],10,Fh),[[Ye,_.value==="date"]]),x("button",{type:"button","aria-label":a(i)("el.datepicker.nextYear"),class:S([a(l).e("icon-btn"),"d-arrow-right"]),onClick:ne[9]||(ne[9]=E=>U(!0))},[j(a(he),null,{default:K(()=>[j(a(no))]),_:1})],10,zh)],2)],2),[[Ye,_.value!=="time"]]),x("div",{class:S(a(l).e("content")),onKeydown:Be},[_.value==="date"?(k(),Z(Xl,{key:0,ref_key:"currentViewRef",ref:C,"selection-mode":a(N),date:g.value,"parsed-value":q.parsedValue,"disabled-date":a(d),"cell-class-name":a(v),onPick:F},null,8,["selection-mode","date","parsed-value","disabled-date","cell-class-name"])):Y("v-if",!0),_.value==="year"?(k(),Z(Dh,{key:1,ref_key:"currentViewRef",ref:C,date:g.value,"disabled-date":a(d),"parsed-value":q.parsedValue,onPick:ce},null,8,["date","disabled-date","parsed-value"])):Y("v-if",!0),_.value==="month"?(k(),Z(Jl,{key:2,ref_key:"currentViewRef",ref:C,date:g.value,"parsed-value":q.parsedValue,"disabled-date":a(d),onPick:re},null,8,["date","parsed-value","disabled-date"])):Y("v-if",!0)],34)],2)],2),Ie(x("div",{class:S(a(l).e("footer"))},[Ie(j(a(In),{text:"",size:"small",class:S(a(l).e("link-btn")),onClick:ve},{default:K(()=>[Xe(de(a(i)("el.datepicker.now")),1)]),_:1},8,["class"]),[[Ye,a(N)!=="dates"]]),j(a(In),{plain:"",size:"small",class:S(a(l).e("link-btn")),onClick:X},{default:K(()=>[Xe(de(a(i)("el.datepicker.confirm")),1)]),_:1},8,["class"])],2),[[Ye,a(Te)&&_.value==="date"]])],2))}});var Hh=ie(Vh,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/panel-date-pick.vue"]]);const Kh=pe({...bi,...yi}),Wh=e=>{const{emit:t}=De(),n=Bo(),o=Xt();return s=>{const r=Pt(s.value)?s.value():s.value;if(r){t("pick",[Me(r[0]).locale(e.value),Me(r[1]).locale(e.value)]);return}s.onClick&&s.onClick({attrs:n,slots:o,emit:t})}},ki=(e,{defaultValue:t,leftDate:n,rightDate:o,unit:l,onParsedValueChanged:s})=>{const{emit:r}=De(),{pickerNs:u}=fe(va),i=le("date-range-picker"),{t:c,lang:f}=Je(),h=Wh(f),p=P(),d=P(),v=P({endDate:null,selecting:!1}),m=g=>{v.value=g},y=(g=!1)=>{const w=a(p),M=a(d);Gl([w,M])&&r("pick",[w,M],g)},b=g=>{v.value.selecting=g,g||(v.value.endDate=null)},C=()=>{const[g,w]=wi(a(t),{lang:a(f),unit:l,unlinkPanels:e.unlinkPanels});p.value=void 0,d.value=void 0,n.value=g,o.value=w};return oe(t,g=>{g&&C()},{immediate:!0}),oe(()=>e.parsedValue,g=>{if(at(g)&&g.length===2){const[w,M]=g;p.value=w,n.value=w,d.value=M,s(a(p),a(d))}else C()},{immediate:!0}),{minDate:p,maxDate:d,rangeState:v,lang:f,ppNs:u,drpNs:i,handleChangeRange:m,handleRangeConfirm:y,handleShortcutClick:h,onSelect:b,t:c}},jh=["onClick"],xh=["disabled"],qh=["disabled"],Uh=["disabled"],Yh=["disabled"],Gh=se({__name:"panel-date-range",props:Kh,emits:["pick","set-picker-option","calendar-change","panel-change"],setup(e,{emit:t}){const n=e,o="month",l=fe("EP_PICKER_BASE"),{disabledDate:s,cellClassName:r,format:u,defaultTime:i,arrowControl:c,clearable:f}=l.props,h=ct(l.props,"shortcuts"),p=ct(l.props,"defaultValue"),{lang:d}=Je(),v=P(Me().locale(d.value)),m=P(Me().locale(d.value).add(1,o)),{minDate:y,maxDate:b,rangeState:C,ppNs:g,drpNs:w,handleChangeRange:M,handleRangeConfirm:I,handleShortcutClick:T,onSelect:B,t:O}=ki(n,{defaultValue:p,leftDate:v,rightDate:m,unit:o,onParsedValueChanged:me}),V=P({min:null,max:null}),W=P({min:null,max:null}),J=$(()=>`${v.value.year()} ${O("el.datepicker.year")} ${O(`el.datepicker.month${v.value.month()+1}`)}`),F=$(()=>`${m.value.year()} ${O("el.datepicker.year")} ${O(`el.datepicker.month${m.value.month()+1}`)}`),H=$(()=>v.value.year()),U=$(()=>v.value.month()),_=$(()=>m.value.year()),D=$(()=>m.value.month()),A=$(()=>!!h.value.length),N=$(()=>V.value.min!==null?V.value.min:y.value?y.value.format(ye.value):""),R=$(()=>V.value.max!==null?V.value.max:b.value||y.value?(b.value||y.value).format(ye.value):""),G=$(()=>W.value.min!==null?W.value.min:y.value?y.value.format(ce.value):""),re=$(()=>W.value.max!==null?W.value.max:b.value||y.value?(b.value||y.value).format(ce.value):""),ce=$(()=>Jr(u)),ye=$(()=>Xr(u)),ge=()=>{v.value=v.value.subtract(1,"year"),n.unlinkPanels||(m.value=v.value.add(1,"month")),Ue("year")},Te=()=>{v.value=v.value.subtract(1,"month"),n.unlinkPanels||(m.value=v.value.add(1,"month")),Ue("month")},X=()=>{n.unlinkPanels?m.value=m.value.add(1,"year"):(v.value=v.value.add(1,"year"),m.value=v.value.add(1,"month")),Ue("year")},ve=()=>{n.unlinkPanels?m.value=m.value.add(1,"month"):(v.value=v.value.add(1,"month"),m.value=v.value.add(1,"month")),Ue("month")},Ne=()=>{v.value=v.value.add(1,"year"),Ue("year")},Le=()=>{v.value=v.value.add(1,"month"),Ue("month")},Ge=()=>{m.value=m.value.subtract(1,"year"),Ue("year")},Ze=()=>{m.value=m.value.subtract(1,"month"),Ue("month")},Ue=ue=>{t("panel-change",[v.value.toDate(),m.value.toDate()],ue)},ht=$(()=>{const ue=(U.value+1)%12,Ce=U.value+1>=12?1:0;return n.unlinkPanels&&new Date(H.value+Ce,ue)n.unlinkPanels&&_.value*12+D.value-(H.value*12+U.value+1)>=12),it=$(()=>!(y.value&&b.value&&!C.value.selecting&&Gl([y.value,b.value]))),lt=$(()=>n.type==="datetime"||n.type==="datetimerange"),ft=(ue,Ce)=>{if(!!ue)return i?Me(i[Ce]||i).locale(d.value).year(ue.year()).month(ue.month()).date(ue.date()):ue},gt=(ue,Ce=!0)=>{const we=ue.minDate,dt=ue.maxDate,ut=ft(we,0),nt=ft(dt,1);b.value===nt&&y.value===ut||(t("calendar-change",[we.toDate(),dt&&dt.toDate()]),b.value=nt,y.value=ut,!(!Ce||lt.value)&&I())},et=P(!1),st=P(!1),Et=()=>{et.value=!1},bt=()=>{st.value=!1},ae=(ue,Ce)=>{V.value[Ce]=ue;const we=Me(ue,ye.value).locale(d.value);if(we.isValid()){if(s&&s(we.toDate()))return;Ce==="min"?(v.value=we,y.value=(y.value||v.value).year(we.year()).month(we.month()).date(we.date()),n.unlinkPanels||(m.value=we.add(1,"month"),b.value=y.value.add(1,"month"))):(m.value=we,b.value=(b.value||m.value).year(we.year()).month(we.month()).date(we.date()),n.unlinkPanels||(v.value=we.subtract(1,"month"),y.value=b.value.subtract(1,"month")))}},Be=(ue,Ce)=>{V.value[Ce]=null},_e=(ue,Ce)=>{W.value[Ce]=ue;const we=Me(ue,ce.value).locale(d.value);we.isValid()&&(Ce==="min"?(et.value=!0,y.value=(y.value||v.value).hour(we.hour()).minute(we.minute()).second(we.second()),(!b.value||b.value.isBefore(y.value))&&(b.value=y.value)):(st.value=!0,b.value=(b.value||m.value).hour(we.hour()).minute(we.minute()).second(we.second()),m.value=b.value,b.value&&b.value.isBefore(y.value)&&(y.value=b.value)))},Qe=(ue,Ce)=>{W.value[Ce]=null,Ce==="min"?(v.value=y.value,et.value=!1):(m.value=b.value,st.value=!1)},q=(ue,Ce,we)=>{W.value.min||(ue&&(v.value=ue,y.value=(y.value||v.value).hour(ue.hour()).minute(ue.minute()).second(ue.second())),we||(et.value=Ce),(!b.value||b.value.isBefore(y.value))&&(b.value=y.value,m.value=ue))},ne=(ue,Ce,we)=>{W.value.max||(ue&&(m.value=ue,b.value=(b.value||m.value).hour(ue.hour()).minute(ue.minute()).second(ue.second())),we||(st.value=Ce),b.value&&b.value.isBefore(y.value)&&(y.value=b.value))},E=()=>{v.value=wi(a(p),{lang:a(d),unit:"month",unlinkPanels:n.unlinkPanels})[0],m.value=v.value.add(1,"month"),t("pick",null)},z=ue=>at(ue)?ue.map(Ce=>Ce.format(u)):ue.format(u),ee=ue=>at(ue)?ue.map(Ce=>Me(Ce,u).locale(d.value)):Me(ue,u).locale(d.value);function me(ue,Ce){if(n.unlinkPanels&&Ce){const we=(ue==null?void 0:ue.year())||0,dt=(ue==null?void 0:ue.month())||0,ut=Ce.year(),nt=Ce.month();m.value=we===ut&&dt===nt?Ce.add(1,o):Ce}else m.value=v.value.add(1,o),Ce&&(m.value=m.value.hour(Ce.hour()).minute(Ce.minute()).second(Ce.second()))}return t("set-picker-option",["isValidValue",Gl]),t("set-picker-option",["parseUserInput",ee]),t("set-picker-option",["formatToString",z]),t("set-picker-option",["handleClear",E]),(ue,Ce)=>(k(),L("div",{class:S([a(g).b(),a(w).b(),{"has-sidebar":ue.$slots.sidebar||a(A),"has-time":a(lt)}])},[x("div",{class:S(a(g).e("body-wrapper"))},[Q(ue.$slots,"sidebar",{class:S(a(g).e("sidebar"))}),a(A)?(k(),L("div",{key:0,class:S(a(g).e("sidebar"))},[(k(!0),L(Pe,null,ot(a(h),(we,dt)=>(k(),L("button",{key:dt,type:"button",class:S(a(g).e("shortcut")),onClick:ut=>a(T)(we)},de(we.text),11,jh))),128))],2)):Y("v-if",!0),x("div",{class:S(a(g).e("body"))},[a(lt)?(k(),L("div",{key:0,class:S(a(w).e("time-header"))},[x("span",{class:S(a(w).e("editors-wrap"))},[x("span",{class:S(a(w).e("time-picker-wrap"))},[j(a(Vt),{size:"small",disabled:a(C).selecting,placeholder:a(O)("el.datepicker.startDate"),class:S(a(w).e("editor")),"model-value":a(N),onInput:Ce[0]||(Ce[0]=we=>ae(we,"min")),onChange:Ce[1]||(Ce[1]=we=>Be(we,"min"))},null,8,["disabled","placeholder","class","model-value"])],2),Ie((k(),L("span",{class:S(a(w).e("time-picker-wrap"))},[j(a(Vt),{size:"small",class:S(a(w).e("editor")),disabled:a(C).selecting,placeholder:a(O)("el.datepicker.startTime"),"model-value":a(G),onFocus:Ce[2]||(Ce[2]=we=>et.value=!0),onInput:Ce[3]||(Ce[3]=we=>_e(we,"min")),onChange:Ce[4]||(Ce[4]=we=>Qe(we,"min"))},null,8,["class","disabled","placeholder","model-value"]),j(a(Ul),{visible:et.value,format:a(ce),"datetime-role":"start","time-arrow-control":a(c),"parsed-value":v.value,onPick:q},null,8,["visible","format","time-arrow-control","parsed-value"])],2)),[[a(uo),Et]])],2),x("span",null,[j(a(he),null,{default:K(()=>[j(a(ln))]),_:1})]),x("span",{class:S([a(w).e("editors-wrap"),"is-right"])},[x("span",{class:S(a(w).e("time-picker-wrap"))},[j(a(Vt),{size:"small",class:S(a(w).e("editor")),disabled:a(C).selecting,placeholder:a(O)("el.datepicker.endDate"),"model-value":a(R),readonly:!a(y),onInput:Ce[5]||(Ce[5]=we=>ae(we,"max")),onChange:Ce[6]||(Ce[6]=we=>Be(we,"max"))},null,8,["class","disabled","placeholder","model-value","readonly"])],2),Ie((k(),L("span",{class:S(a(w).e("time-picker-wrap"))},[j(a(Vt),{size:"small",class:S(a(w).e("editor")),disabled:a(C).selecting,placeholder:a(O)("el.datepicker.endTime"),"model-value":a(re),readonly:!a(y),onFocus:Ce[7]||(Ce[7]=we=>a(y)&&(st.value=!0)),onInput:Ce[8]||(Ce[8]=we=>_e(we,"max")),onChange:Ce[9]||(Ce[9]=we=>Qe(we,"max"))},null,8,["class","disabled","placeholder","model-value","readonly"]),j(a(Ul),{"datetime-role":"end",visible:st.value,format:a(ce),"time-arrow-control":a(c),"parsed-value":m.value,onPick:ne},null,8,["visible","format","time-arrow-control","parsed-value"])],2)),[[a(uo),bt]])],2)],2)):Y("v-if",!0),x("div",{class:S([[a(g).e("content"),a(w).e("content")],"is-left"])},[x("div",{class:S(a(w).e("header"))},[x("button",{type:"button",class:S([a(g).e("icon-btn"),"d-arrow-left"]),onClick:ge},[j(a(he),null,{default:K(()=>[j(a(eo))]),_:1})],2),x("button",{type:"button",class:S([a(g).e("icon-btn"),"arrow-left"]),onClick:Te},[j(a(he),null,{default:K(()=>[j(a(to))]),_:1})],2),ue.unlinkPanels?(k(),L("button",{key:0,type:"button",disabled:!a(Ae),class:S([[a(g).e("icon-btn"),{"is-disabled":!a(Ae)}],"d-arrow-right"]),onClick:Ne},[j(a(he),null,{default:K(()=>[j(a(no))]),_:1})],10,xh)):Y("v-if",!0),ue.unlinkPanels?(k(),L("button",{key:1,type:"button",disabled:!a(ht),class:S([[a(g).e("icon-btn"),{"is-disabled":!a(ht)}],"arrow-right"]),onClick:Le},[j(a(he),null,{default:K(()=>[j(a(ln))]),_:1})],10,qh)):Y("v-if",!0),x("div",null,de(a(J)),1)],2),j(Xl,{"selection-mode":"range",date:v.value,"min-date":a(y),"max-date":a(b),"range-state":a(C),"disabled-date":a(s),"cell-class-name":a(r),onChangerange:a(M),onPick:gt,onSelect:a(B)},null,8,["date","min-date","max-date","range-state","disabled-date","cell-class-name","onChangerange","onSelect"])],2),x("div",{class:S([[a(g).e("content"),a(w).e("content")],"is-right"])},[x("div",{class:S(a(w).e("header"))},[ue.unlinkPanels?(k(),L("button",{key:0,type:"button",disabled:!a(Ae),class:S([[a(g).e("icon-btn"),{"is-disabled":!a(Ae)}],"d-arrow-left"]),onClick:Ge},[j(a(he),null,{default:K(()=>[j(a(eo))]),_:1})],10,Uh)):Y("v-if",!0),ue.unlinkPanels?(k(),L("button",{key:1,type:"button",disabled:!a(ht),class:S([[a(g).e("icon-btn"),{"is-disabled":!a(ht)}],"arrow-left"]),onClick:Ze},[j(a(he),null,{default:K(()=>[j(a(to))]),_:1})],10,Yh)):Y("v-if",!0),x("button",{type:"button",class:S([a(g).e("icon-btn"),"d-arrow-right"]),onClick:X},[j(a(he),null,{default:K(()=>[j(a(no))]),_:1})],2),x("button",{type:"button",class:S([a(g).e("icon-btn"),"arrow-right"]),onClick:ve},[j(a(he),null,{default:K(()=>[j(a(ln))]),_:1})],2),x("div",null,de(a(F)),1)],2),j(Xl,{"selection-mode":"range",date:m.value,"min-date":a(y),"max-date":a(b),"range-state":a(C),"disabled-date":a(s),"cell-class-name":a(r),onChangerange:a(M),onPick:gt,onSelect:a(B)},null,8,["date","min-date","max-date","range-state","disabled-date","cell-class-name","onChangerange","onSelect"])],2)],2)],2),a(lt)?(k(),L("div",{key:0,class:S(a(g).e("footer"))},[a(f)?(k(),Z(a(In),{key:0,text:"",size:"small",class:S(a(g).e("link-btn")),onClick:E},{default:K(()=>[Xe(de(a(O)("el.datepicker.clear")),1)]),_:1},8,["class"])):Y("v-if",!0),j(a(In),{plain:"",size:"small",class:S(a(g).e("link-btn")),disabled:a(it),onClick:Ce[10]||(Ce[10]=we=>a(I)(!1))},{default:K(()=>[Xe(de(a(O)("el.datepicker.confirm")),1)]),_:1},8,["class","disabled"])],2)):Y("v-if",!0)],2))}});var Xh=ie(Gh,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/panel-date-range.vue"]]);const Jh=pe({...yi}),Zh=["pick","set-picker-option"],Qh=({unlinkPanels:e,leftDate:t,rightDate:n})=>{const{t:o}=Je(),l=()=>{t.value=t.value.subtract(1,"year"),e||(n.value=n.value.subtract(1,"year"))},s=()=>{e||(t.value=t.value.add(1,"year")),n.value=n.value.add(1,"year")},r=()=>{t.value=t.value.add(1,"year")},u=()=>{n.value=n.value.subtract(1,"year")},i=$(()=>`${t.value.year()} ${o("el.datepicker.year")}`),c=$(()=>`${n.value.year()} ${o("el.datepicker.year")}`),f=$(()=>t.value.year()),h=$(()=>n.value.year()===t.value.year()?t.value.year()+1:n.value.year());return{leftPrevYear:l,rightNextYear:s,leftNextYear:r,rightPrevYear:u,leftLabel:i,rightLabel:c,leftYear:f,rightYear:h}},eg=["onClick"],tg=["disabled"],ng=["disabled"],og={name:"DatePickerMonthRange"},lg=se({...og,props:Jh,emits:Zh,setup(e,{emit:t}){const n=e,o="year",{lang:l}=Je(),s=fe("EP_PICKER_BASE"),{shortcuts:r,disabledDate:u,format:i}=s.props,c=ct(s.props,"defaultValue"),f=P(Me().locale(l.value)),h=P(Me().locale(l.value).add(1,o)),{minDate:p,maxDate:d,rangeState:v,ppNs:m,drpNs:y,handleChangeRange:b,handleRangeConfirm:C,handleShortcutClick:g,onSelect:w}=ki(n,{defaultValue:c,leftDate:f,rightDate:h,unit:o,onParsedValueChanged:D}),M=$(()=>!!r.length),{leftPrevYear:I,rightNextYear:T,leftNextYear:B,rightPrevYear:O,leftLabel:V,rightLabel:W,leftYear:J,rightYear:F}=Qh({unlinkPanels:ct(n,"unlinkPanels"),leftDate:f,rightDate:h}),H=$(()=>n.unlinkPanels&&F.value>J.value+1),U=(A,N=!0)=>{const R=A.minDate,G=A.maxDate;d.value===G&&p.value===R||(d.value=G,p.value=R,N&&C())},_=A=>A.map(N=>N.format(i));function D(A,N){if(n.unlinkPanels&&N){const R=(A==null?void 0:A.year())||0,G=N.year();h.value=R===G?N.add(1,o):N}else h.value=f.value.add(1,o)}return t("set-picker-option",["formatToString",_]),(A,N)=>(k(),L("div",{class:S([a(m).b(),a(y).b(),{"has-sidebar":Boolean(A.$slots.sidebar)||a(M)}])},[x("div",{class:S(a(m).e("body-wrapper"))},[Q(A.$slots,"sidebar",{class:S(a(m).e("sidebar"))}),a(M)?(k(),L("div",{key:0,class:S(a(m).e("sidebar"))},[(k(!0),L(Pe,null,ot(a(r),(R,G)=>(k(),L("button",{key:G,type:"button",class:S(a(m).e("shortcut")),onClick:re=>a(g)(R)},de(R.text),11,eg))),128))],2)):Y("v-if",!0),x("div",{class:S(a(m).e("body"))},[x("div",{class:S([[a(m).e("content"),a(y).e("content")],"is-left"])},[x("div",{class:S(a(y).e("header"))},[x("button",{type:"button",class:S([a(m).e("icon-btn"),"d-arrow-left"]),onClick:N[0]||(N[0]=(...R)=>a(I)&&a(I)(...R))},[j(a(he),null,{default:K(()=>[j(a(eo))]),_:1})],2),A.unlinkPanels?(k(),L("button",{key:0,type:"button",disabled:!a(H),class:S([[a(m).e("icon-btn"),{[a(m).is("disabled")]:!a(H)}],"d-arrow-right"]),onClick:N[1]||(N[1]=(...R)=>a(B)&&a(B)(...R))},[j(a(he),null,{default:K(()=>[j(a(no))]),_:1})],10,tg)):Y("v-if",!0),x("div",null,de(a(V)),1)],2),j(Jl,{"selection-mode":"range",date:f.value,"min-date":a(p),"max-date":a(d),"range-state":a(v),"disabled-date":a(u),onChangerange:a(b),onPick:U,onSelect:a(w)},null,8,["date","min-date","max-date","range-state","disabled-date","onChangerange","onSelect"])],2),x("div",{class:S([[a(m).e("content"),a(y).e("content")],"is-right"])},[x("div",{class:S(a(y).e("header"))},[A.unlinkPanels?(k(),L("button",{key:0,type:"button",disabled:!a(H),class:S([[a(m).e("icon-btn"),{"is-disabled":!a(H)}],"d-arrow-left"]),onClick:N[2]||(N[2]=(...R)=>a(O)&&a(O)(...R))},[j(a(he),null,{default:K(()=>[j(a(eo))]),_:1})],10,ng)):Y("v-if",!0),x("button",{type:"button",class:S([a(m).e("icon-btn"),"d-arrow-right"]),onClick:N[3]||(N[3]=(...R)=>a(T)&&a(T)(...R))},[j(a(he),null,{default:K(()=>[j(a(no))]),_:1})],2),x("div",null,de(a(W)),1)],2),j(Jl,{"selection-mode":"range",date:h.value,"min-date":a(p),"max-date":a(d),"range-state":a(v),"disabled-date":a(u),onChangerange:a(b),onPick:U,onSelect:a(w)},null,8,["date","min-date","max-date","range-state","disabled-date","onChangerange","onSelect"])],2)],2)],2)],2))}});var ag=ie(lg,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/panel-month-range.vue"]]);const sg=function(e){switch(e){case"daterange":case"datetimerange":return Xh;case"monthrange":return ag;default:return Hh}};Me.extend(ju);Me.extend(xu);Me.extend(qu);Me.extend(Uu);Me.extend(Yu);Me.extend(Gu);Me.extend(Xu);Me.extend(Ju);var rg=se({name:"ElDatePicker",install:null,props:{...Qr,...ih},emits:["update:modelValue"],setup(e,{expose:t,emit:n,slots:o}){const l=le("picker-panel");Fe("ElPopperOptions",rt(ct(e,"popperOptions"))),Fe(va,{slots:o,pickerNs:l});const s=P();t({focus:(i=!0)=>{var c;(c=s.value)==null||c.focus(i)}});const u=i=>{n("update:modelValue",i)};return()=>{var i;const c=(i=e.format)!=null?i:sv[e.type]||Un,f=sg(e.type);return j(fv,vt(e,{format:c,type:e.type,ref:s,"onUpdate:modelValue":u}),{default:h=>j(f,h,null),"range-separator":o["range-separator"]})}}});const Jo=rg;Jo.install=e=>{e.component(Jo.name,Jo)};const LS=Jo,ig=pe({mask:{type:Boolean,default:!0},customMaskEvent:{type:Boolean,default:!1},overlayClass:{type:te([String,Array,Object])},zIndex:{type:te([String,Number])}}),ug={click:e=>e instanceof MouseEvent};var cg=se({name:"ElOverlay",props:ig,emits:ug,setup(e,{slots:t,emit:n}){const o=le("overlay"),l=i=>{n("click",i)},{onClick:s,onMousedown:r,onMouseup:u}=ma(e.customMaskEvent?void 0:l);return()=>e.mask?j("div",{class:[o.b(),e.overlayClass],style:{zIndex:e.zIndex},onClick:s,onMousedown:r,onMouseup:u},[Q(t,"default")],qo.STYLE|qo.CLASS|qo.PROPS,["onClick","onMouseup","onMousedown"]):Se("div",{class:e.overlayClass,style:{zIndex:e.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[Q(t,"default")])}});const Na=cg,Si=pe({center:{type:Boolean,default:!1},closeIcon:{type:Wt,default:""},customClass:{type:String,default:""},draggable:{type:Boolean,default:!1},fullscreen:{type:Boolean,default:!1},showClose:{type:Boolean,default:!0},title:{type:String,default:""}}),dg={close:()=>!0},fg=["aria-label"],pg=["id"],vg={name:"ElDialogContent"},mg=se({...vg,props:Si,emits:dg,setup(e){const t=e,{t:n}=Je(),{Close:o}=gc,{dialogRef:l,headerRef:s,bodyId:r,ns:u,style:i}=fe(vr),{focusTrapRef:c}=fe($a),f=da(c,l),h=$(()=>t.draggable);return kr(l,s,h),(p,d)=>(k(),L("div",{ref:a(f),class:S([a(u).b(),a(u).is("fullscreen",p.fullscreen),a(u).is("draggable",a(h)),{[a(u).m("center")]:p.center},p.customClass]),style:$e(a(i)),tabindex:"-1",onClick:d[1]||(d[1]=Oe(()=>{},["stop"]))},[x("header",{ref_key:"headerRef",ref:s,class:S(a(u).e("header"))},[Q(p.$slots,"header",{},()=>[x("span",{role:"heading",class:S(a(u).e("title"))},de(p.title),3)]),p.showClose?(k(),L("button",{key:0,"aria-label":a(n)("el.dialog.close"),class:S(a(u).e("headerbtn")),type:"button",onClick:d[0]||(d[0]=v=>p.$emit("close"))},[j(a(he),{class:S(a(u).e("close"))},{default:K(()=>[(k(),Z(Ve(p.closeIcon||a(o))))]),_:1},8,["class"])],10,fg)):Y("v-if",!0)],2),x("div",{id:a(r),class:S(a(u).e("body"))},[Q(p.$slots,"default")],10,pg),p.$slots.footer?(k(),L("footer",{key:0,class:S(a(u).e("footer"))},[Q(p.$slots,"footer")],2)):Y("v-if",!0)],6))}});var hg=ie(mg,[["__file","/home/runner/work/element-plus/element-plus/packages/components/dialog/src/dialog-content.vue"]]);const Ei=pe({...Si,appendToBody:{type:Boolean,default:!1},beforeClose:{type:te(Function)},destroyOnClose:{type:Boolean,default:!1},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},modal:{type:Boolean,default:!0},openDelay:{type:Number,default:0},closeDelay:{type:Number,default:0},top:{type:String},modelValue:{type:Boolean,default:!1},modalClass:String,width:{type:[String,Number]},zIndex:{type:Number},trapFocus:{type:Boolean,default:!1}}),$i={open:()=>!0,opened:()=>!0,close:()=>!0,closed:()=>!0,[qe]:e=>It(e),openAutoFocus:()=>!0,closeAutoFocus:()=>!0},Ti=(e,t)=>{const o=De().emit,{nextZIndex:l}=An();let s="";const r=un(),u=un(),i=P(!1),c=P(!1),f=P(!1),h=P(e.zIndex||l());let p,d;const v=jn("namespace",Nr),m=$(()=>{const J={},F=`--${v.value}-dialog`;return e.fullscreen||(e.top&&(J[`${F}-margin-top`]=e.top),e.width&&(J[`${F}-width`]=Kt(e.width))),J});function y(){o("opened")}function b(){o("closed"),o(qe,!1),e.destroyOnClose&&(f.value=!1)}function C(){o("close")}function g(){d==null||d(),p==null||p(),e.openDelay&&e.openDelay>0?{stop:p}=Qn(()=>T(),e.openDelay):T()}function w(){p==null||p(),d==null||d(),e.closeDelay&&e.closeDelay>0?{stop:d}=Qn(()=>B(),e.closeDelay):B()}function M(){function J(F){F||(c.value=!0,i.value=!1)}e.beforeClose?e.beforeClose(J):w()}function I(){e.closeOnClickModal&&M()}function T(){!je||(i.value=!0)}function B(){i.value=!1}function O(){o("openAutoFocus")}function V(){o("closeAutoFocus")}e.lockScroll&&Sr(i);function W(){e.closeOnPressEscape&&M()}return oe(()=>e.modelValue,J=>{J?(c.value=!1,g(),f.value=!0,o("open"),h.value=e.zIndex?h.value++:l(),ke(()=>{t.value&&(t.value.scrollTop=0)})):i.value&&w()}),oe(()=>e.fullscreen,J=>{!t.value||(J?(s=t.value.style.transform,t.value.style.transform=""):t.value.style.transform=s)}),Re(()=>{e.modelValue&&(i.value=!0,f.value=!0,g())}),{afterEnter:y,afterLeave:b,beforeLeave:C,handleClose:M,onModalClick:I,close:w,doClose:B,onOpenAutoFocus:O,onCloseAutoFocus:V,onCloseRequested:W,titleId:r,bodyId:u,closed:c,style:m,rendered:f,visible:i,zIndex:h}},gg=["aria-label","aria-labelledby","aria-describedby"],bg={name:"ElDialog"},yg=se({...bg,props:Ei,emits:$i,setup(e,{expose:t}){const n=e,o=Xt();Lo({scope:"el-dialog",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/dialog.html#slots"},$(()=>!!o.title));const l=le("dialog"),s=P(),r=P(),u=P(),{visible:i,titleId:c,bodyId:f,style:h,rendered:p,zIndex:d,afterEnter:v,afterLeave:m,beforeLeave:y,handleClose:b,onModalClick:C,onOpenAutoFocus:g,onCloseAutoFocus:w,onCloseRequested:M}=Ti(n,s);Fe(vr,{dialogRef:s,headerRef:r,bodyId:f,ns:l,rendered:p,style:h});const I=ma(C),T=$(()=>n.draggable&&!n.fullscreen);return t({visible:i,dialogContentRef:u}),(B,O)=>(k(),Z(ml,{to:"body",disabled:!B.appendToBody},[j(St,{name:"dialog-fade",onAfterEnter:a(v),onAfterLeave:a(m),onBeforeLeave:a(y),persisted:""},{default:K(()=>[Ie(j(a(Na),{"custom-mask-event":"",mask:B.modal,"overlay-class":B.modalClass,"z-index":a(d)},{default:K(()=>[x("div",{role:"dialog","aria-modal":"true","aria-label":B.title||void 0,"aria-labelledby":B.title?void 0:a(c),"aria-describedby":a(f),class:S(`${a(l).namespace.value}-overlay-dialog`),onClick:O[0]||(O[0]=(...V)=>a(I).onClick&&a(I).onClick(...V)),onMousedown:O[1]||(O[1]=(...V)=>a(I).onMousedown&&a(I).onMousedown(...V)),onMouseup:O[2]||(O[2]=(...V)=>a(I).onMouseup&&a(I).onMouseup(...V))},[j(a(Sl),{loop:"",trapped:a(i),"focus-start-el":"container",onFocusAfterTrapped:a(g),onFocusAfterReleased:a(w),onReleaseRequested:a(M)},{default:K(()=>[a(p)?(k(),Z(hg,{key:0,ref_key:"dialogContentRef",ref:u,"custom-class":B.customClass,center:B.center,"close-icon":B.closeIcon,draggable:a(T),fullscreen:B.fullscreen,"show-close":B.showClose,title:B.title,onClose:a(b)},Jn({header:K(()=>[B.$slots.title?Q(B.$slots,"title",{key:1}):Q(B.$slots,"header",{key:0,close:a(b),titleId:a(c),titleClass:a(l).e("title")})]),default:K(()=>[Q(B.$slots,"default")]),_:2},[B.$slots.footer?{name:"footer",fn:K(()=>[Q(B.$slots,"footer")])}:void 0]),1032,["custom-class","center","close-icon","draggable","fullscreen","show-close","title","onClose"])):Y("v-if",!0)]),_:3},8,["trapped","onFocusAfterTrapped","onFocusAfterReleased","onReleaseRequested"])],42,gg)]),_:3},8,["mask","overlay-class","z-index"]),[[Ye,a(i)]])]),_:3},8,["onAfterEnter","onAfterLeave","onBeforeLeave"])],8,["disabled"]))}});var Cg=ie(yg,[["__file","/home/runner/work/element-plus/element-plus/packages/components/dialog/src/dialog.vue"]]);const RS=Ke(Cg),wg=pe({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},contentPosition:{type:String,values:["left","center","right"],default:"center"},borderStyle:{type:te(String),default:"solid"}}),kg={name:"ElDivider"},Sg=se({...kg,props:wg,setup(e){const t=e,n=le("divider"),o=$(()=>n.cssVar({"border-style":t.borderStyle}));return(l,s)=>(k(),L("div",{class:S([a(n).b(),a(n).m(l.direction)]),style:$e(a(o)),role:"separator"},[l.$slots.default&&l.direction!=="vertical"?(k(),L("div",{key:0,class:S([a(n).e("text"),a(n).is(l.contentPosition)])},[Q(l.$slots,"default")],2)):Y("v-if",!0)],6))}});var Eg=ie(Sg,[["__file","/home/runner/work/element-plus/element-plus/packages/components/divider/src/divider.vue"]]);const _S=Ke(Eg),$g=pe({...Ei,direction:{type:String,default:"rtl",values:["ltr","rtl","ttb","btt"]},size:{type:[String,Number],default:"30%"},withHeader:{type:Boolean,default:!0},modalFade:{type:Boolean,default:!0}}),Tg=$i,Ng=se({name:"ElDrawer",components:{ElOverlay:Na,ElFocusTrap:Sl,ElIcon:he,Close:rn},props:$g,emits:Tg,setup(e,{slots:t}){Lo({scope:"el-drawer",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/drawer.html#slots"},$(()=>!!t.title));const n=P(),o=P(),l=le("drawer"),{t:s}=Je(),r=$(()=>e.direction==="rtl"||e.direction==="ltr"),u=$(()=>Kt(e.size));return{...Ti(e,n),drawerRef:n,focusStartRef:o,isHorizontal:r,drawerSize:u,ns:l,t:s}}}),Pg=["aria-label","aria-labelledby","aria-describedby"],Ig=["id"],Mg=["aria-label"],Og=["id"];function Ag(e,t,n,o,l,s){const r=Ee("close"),u=Ee("el-icon"),i=Ee("el-focus-trap"),c=Ee("el-overlay");return k(),Z(ml,{to:"body",disabled:!e.appendToBody},[j(St,{name:e.ns.b("fade"),onAfterEnter:e.afterEnter,onAfterLeave:e.afterLeave,onBeforeLeave:e.beforeLeave,persisted:""},{default:K(()=>[Ie(j(c,{mask:e.modal,"overlay-class":e.modalClass,"z-index":e.zIndex,onClick:e.onModalClick},{default:K(()=>[j(i,{loop:"",trapped:e.visible,"focus-trap-el":e.drawerRef,"focus-start-el":e.focusStartRef,onReleaseRequested:e.onCloseRequested},{default:K(()=>[x("div",{ref:"drawerRef","aria-modal":"true","aria-label":e.title||void 0,"aria-labelledby":e.title?void 0:e.titleId,"aria-describedby":e.bodyId,class:S([e.ns.b(),e.direction,e.visible&&"open",e.customClass]),style:$e(e.isHorizontal?"width: "+e.drawerSize:"height: "+e.drawerSize),role:"dialog",onClick:t[1]||(t[1]=Oe(()=>{},["stop"]))},[x("span",{ref:"focusStartRef",class:S(e.ns.e("sr-focus")),tabindex:"-1"},null,2),e.withHeader?(k(),L("header",{key:0,class:S(e.ns.e("header"))},[e.$slots.title?Q(e.$slots,"title",{key:1},()=>[Y(" DEPRECATED SLOT ")]):Q(e.$slots,"header",{key:0,close:e.handleClose,titleId:e.titleId,titleClass:e.ns.e("title")},()=>[e.$slots.title?Y("v-if",!0):(k(),L("span",{key:0,id:e.titleId,role:"heading",class:S(e.ns.e("title"))},de(e.title),11,Ig))]),e.showClose?(k(),L("button",{key:2,"aria-label":e.t("el.drawer.close"),class:S(e.ns.e("close-btn")),type:"button",onClick:t[0]||(t[0]=(...f)=>e.handleClose&&e.handleClose(...f))},[j(u,{class:S(e.ns.e("close"))},{default:K(()=>[j(r)]),_:1},8,["class"])],10,Mg)):Y("v-if",!0)],2)):Y("v-if",!0),e.rendered?(k(),L("div",{key:1,id:e.bodyId,class:S(e.ns.e("body"))},[Q(e.$slots,"default")],10,Og)):Y("v-if",!0),e.$slots.footer?(k(),L("div",{key:2,class:S(e.ns.e("footer"))},[Q(e.$slots,"footer")],2)):Y("v-if",!0)],14,Pg)]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])]),_:3},8,["mask","overlay-class","z-index","onClick"]),[[Ye,e.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave","onBeforeLeave"])],8,["disabled"])}var Bg=ie(Ng,[["render",Ag],["__file","/home/runner/work/element-plus/element-plus/packages/components/drawer/src/drawer.vue"]]);const FS=Ke(Bg),Dg={inheritAttrs:!1};function Lg(e,t,n,o,l,s){return Q(e.$slots,"default")}var Rg=ie(Dg,[["render",Lg],["__file","/home/runner/work/element-plus/element-plus/packages/components/collection/src/collection.vue"]]);const _g={name:"ElCollectionItem",inheritAttrs:!1};function Fg(e,t,n,o,l,s){return Q(e.$slots,"default")}var zg=ie(_g,[["render",Fg],["__file","/home/runner/work/element-plus/element-plus/packages/components/collection/src/collection-item.vue"]]);const Ni="data-el-collection-item",Pi=e=>{const t=`El${e}Collection`,n=`${t}Item`,o=Symbol(t),l=Symbol(n),s={...Rg,name:t,setup(){const u=P(null),i=new Map;Fe(o,{itemMap:i,getItems:()=>{const f=a(u);if(!f)return[];const h=Array.from(f.querySelectorAll(`[${Ni}]`));return[...i.values()].sort((d,v)=>h.indexOf(d.ref)-h.indexOf(v.ref))},collectionRef:u})}},r={...zg,name:n,setup(u,{attrs:i}){const c=P(null),f=fe(o,void 0);Fe(l,{collectionItemRef:c}),Re(()=>{const h=a(c);h&&f.itemMap.set(h,{ref:h,...i})}),yt(()=>{const h=a(c);f.itemMap.delete(h)})}};return{COLLECTION_INJECTION_KEY:o,COLLECTION_ITEM_INJECTION_KEY:l,ElCollection:s,ElCollectionItem:r}},Vg=pe({style:{type:te([String,Array,Object])},currentTabId:{type:te(String)},defaultCurrentTabId:String,loop:Boolean,dir:{type:String,values:["ltr","rtl"],default:"ltr"},orientation:{type:te(String)},onBlur:Function,onFocus:Function,onMousedown:Function}),{ElCollection:Hg,ElCollectionItem:Kg,COLLECTION_INJECTION_KEY:Pa,COLLECTION_ITEM_INJECTION_KEY:Wg}=Pi("RovingFocusGroup"),Ia=Symbol("elRovingFocusGroup"),Ii=Symbol("elRovingFocusGroupItem"),jg={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"},xg=(e,t)=>{if(t!=="rtl")return e;switch(e){case be.right:return be.left;case be.left:return be.right;default:return e}},qg=(e,t,n)=>{const o=xg(e.key,n);if(!(t==="vertical"&&[be.left,be.right].includes(o))&&!(t==="horizontal"&&[be.up,be.down].includes(o)))return jg[o]},Ug=(e,t)=>e.map((n,o)=>e[(o+t)%e.length]),Ma=e=>{const{activeElement:t}=document;for(const n of e)if(n===t||(n.focus(),t!==document.activeElement))return},Ns="currentTabIdChange",Rl="rovingFocusGroup.entryFocus",Yg={bubbles:!1,cancelable:!0},Gg=se({name:"ElRovingFocusGroupImpl",inheritAttrs:!1,props:Vg,emits:[Ns,"entryFocus"],setup(e,{emit:t}){var n;const o=P((n=e.currentTabId||e.defaultCurrentTabId)!=null?n:null),l=P(!1),s=P(!1),r=P(null),{getItems:u}=fe(Pa,void 0),i=$(()=>[{outline:"none"},e.style]),c=m=>{t(Ns,m)},f=()=>{l.value=!0},h=pt(m=>{var y;(y=e.onMousedown)==null||y.call(e,m)},()=>{s.value=!0}),p=pt(m=>{var y;(y=e.onFocus)==null||y.call(e,m)},m=>{const y=!a(s),{target:b,currentTarget:C}=m;if(b===C&&y&&!a(l)){const g=new Event(Rl,Yg);if(C==null||C.dispatchEvent(g),!g.defaultPrevented){const w=u().filter(O=>O.focusable),M=w.find(O=>O.active),I=w.find(O=>O.id===a(o)),B=[M,I,...w].filter(Boolean).map(O=>O.ref);Ma(B)}}s.value=!1}),d=pt(m=>{var y;(y=e.onBlur)==null||y.call(e,m)},()=>{l.value=!1}),v=(...m)=>{t("entryFocus",...m)};Fe(Ia,{currentTabbedId:Us(o),loop:ct(e,"loop"),tabIndex:$(()=>a(l)?-1:0),rovingFocusGroupRef:r,rovingFocusGroupRootStyle:i,orientation:ct(e,"orientation"),dir:ct(e,"dir"),onItemFocus:c,onItemShiftTab:f,onBlur:d,onFocus:p,onMousedown:h}),oe(()=>e.currentTabId,m=>{o.value=m!=null?m:null}),Re(()=>{const m=a(r);Nt(m,Rl,v)}),yt(()=>{const m=a(r);xt(m,Rl,v)})}});function Xg(e,t,n,o,l,s){return Q(e.$slots,"default")}var Jg=ie(Gg,[["render",Xg],["__file","/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-group-impl.vue"]]);const Zg=se({name:"ElRovingFocusGroup",components:{ElFocusGroupCollection:Hg,ElRovingFocusGroupImpl:Jg}});function Qg(e,t,n,o,l,s){const r=Ee("el-roving-focus-group-impl"),u=Ee("el-focus-group-collection");return k(),Z(u,null,{default:K(()=>[j(r,vu(mu(e.$attrs)),{default:K(()=>[Q(e.$slots,"default")]),_:3},16)]),_:3})}var eb=ie(Zg,[["render",Qg],["__file","/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-group.vue"]]);const tb=se({components:{ElRovingFocusCollectionItem:Kg},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:l,onItemShiftTab:s}=fe(Ia,void 0),{getItems:r}=fe(Pa,void 0),u=un(),i=P(null),c=pt(d=>{t("mousedown",d)},d=>{e.focusable?l(a(u)):d.preventDefault()}),f=pt(d=>{t("focus",d)},()=>{l(a(u))}),h=pt(d=>{t("keydown",d)},d=>{const{key:v,shiftKey:m,target:y,currentTarget:b}=d;if(v===be.tab&&m){s();return}if(y!==b)return;const C=qg(d);if(C){d.preventDefault();let w=r().filter(M=>M.focusable).map(M=>M.ref);switch(C){case"last":{w.reverse();break}case"prev":case"next":{C==="prev"&&w.reverse();const M=w.indexOf(b);w=o.value?Ug(w,M+1):w.slice(M+1);break}}ke(()=>{Ma(w)})}}),p=$(()=>n.value===a(u));return Fe(Ii,{rovingFocusGroupItemRef:i,tabIndex:$(()=>a(p)?0:-1),handleMousedown:c,handleFocus:f,handleKeydown:h}),{id:u,handleKeydown:h,handleFocus:f,handleMousedown:c}}});function nb(e,t,n,o,l,s){const r=Ee("el-roving-focus-collection-item");return k(),Z(r,{id:e.id,focusable:e.focusable,active:e.active},{default:K(()=>[Q(e.$slots,"default")]),_:3},8,["id","focusable","active"])}var ob=ie(tb,[["render",nb],["__file","/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-item.vue"]]);const Zo=pe({trigger:Mo.trigger,effect:{...Ft.effect,default:"light"},type:{type:te(String)},placement:{type:te(String),default:"bottom"},popperOptions:{type:te(Object),default:()=>({})},id:String,size:{type:String,default:""},splitButton:Boolean,hideOnClick:{type:Boolean,default:!0},loop:{type:Boolean,default:!0},showTimeout:{type:Number,default:150},hideTimeout:{type:Number,default:150},tabindex:{type:te([Number,String]),default:0},maxHeight:{type:te([Number,String]),default:""},popperClass:{type:String,default:""},disabled:{type:Boolean,default:!1},role:{type:String,default:"menu"},buttonProps:{type:te(Object)}}),Mi=pe({command:{type:[Object,String,Number],default:()=>({})},disabled:Boolean,divided:Boolean,textValue:String,icon:{type:Wt}}),lb=pe({onKeydown:{type:te(Function)}}),ab=[be.down,be.pageDown,be.home],Oi=[be.up,be.pageUp,be.end],sb=[...ab,...Oi],{ElCollection:rb,ElCollectionItem:ib,COLLECTION_INJECTION_KEY:ub,COLLECTION_ITEM_INJECTION_KEY:cb}=Pi("Dropdown"),$l=Symbol("elDropdown"),{ButtonGroup:db}=In,fb=se({name:"ElDropdown",components:{ElButton:In,ElButtonGroup:db,ElScrollbar:bo,ElDropdownCollection:rb,ElTooltip:wn,ElRovingFocusGroup:eb,ElOnlyChild:Mr,ElIcon:he,ArrowDown:mo},props:Zo,emits:["visible-change","click","command"],setup(e,{emit:t}){const n=De(),o=le("dropdown"),{t:l}=Je(),s=P(),r=P(),u=P(null),i=P(null),c=P(null),f=P(null),h=P(!1),p=[be.enter,be.space,be.down],d=$(()=>({maxHeight:Kt(e.maxHeight)})),v=$(()=>[o.m(w.value)]),m=un().value,y=$(()=>e.id||m);function b(){C()}function C(){var U;(U=u.value)==null||U.onClose()}function g(){var U;(U=u.value)==null||U.onOpen()}const w=kt();function M(...U){t("command",...U)}function I(){}function T(){const U=a(i);U==null||U.focus(),f.value=null}function B(U){f.value=U}function O(U){h.value||(U.preventDefault(),U.stopImmediatePropagation())}function V(){t("visible-change",!0)}function W(U){(U==null?void 0:U.type)==="keydown"&&i.value.focus()}function J(){t("visible-change",!1)}return Fe($l,{contentRef:i,role:$(()=>e.role),triggerId:y,isUsingKeyboard:h,onItemEnter:I,onItemLeave:T}),Fe("elDropdown",{instance:n,dropdownSize:w,handleClick:b,commandHandler:M,trigger:ct(e,"trigger"),hideOnClick:ct(e,"hideOnClick")}),{t:l,ns:o,scrollbar:c,wrapStyle:d,dropdownTriggerKls:v,dropdownSize:w,triggerId:y,triggerKeys:p,currentTabId:f,handleCurrentTabIdChange:B,handlerMainButtonClick:U=>{t("click",U)},handleEntryFocus:O,handleClose:C,handleOpen:g,handleBeforeShowTooltip:V,handleShowTooltip:W,handleBeforeHideTooltip:J,onFocusAfterTrapped:U=>{var _,D;U.preventDefault(),(D=(_=i.value)==null?void 0:_.focus)==null||D.call(_,{preventScroll:!0})},popperRef:u,contentRef:i,triggeringElementRef:s,referenceElementRef:r}}});function pb(e,t,n,o,l,s){var r;const u=Ee("el-dropdown-collection"),i=Ee("el-roving-focus-group"),c=Ee("el-scrollbar"),f=Ee("el-only-child"),h=Ee("el-tooltip"),p=Ee("el-button"),d=Ee("arrow-down"),v=Ee("el-icon"),m=Ee("el-button-group");return k(),L("div",{class:S([e.ns.b(),e.ns.is("disabled",e.disabled)])},[j(h,{ref:"popperRef",role:e.role,effect:e.effect,"fallback-placements":["bottom","top"],"popper-options":e.popperOptions,"gpu-acceleration":!1,"hide-after":e.trigger==="hover"?e.hideTimeout:0,"manual-mode":!0,placement:e.placement,"popper-class":[e.ns.e("popper"),e.popperClass],"reference-element":(r=e.referenceElementRef)==null?void 0:r.$el,trigger:e.trigger,"trigger-keys":e.triggerKeys,"trigger-target-el":e.contentRef,"show-after":e.trigger==="hover"?e.showTimeout:0,"stop-popper-mouse-event":!1,"virtual-ref":e.triggeringElementRef,"virtual-triggering":e.splitButton,disabled:e.disabled,transition:`${e.ns.namespace.value}-zoom-in-top`,teleported:"",pure:"",persistent:"",onBeforeShow:e.handleBeforeShowTooltip,onShow:e.handleShowTooltip,onBeforeHide:e.handleBeforeHideTooltip},Jn({content:K(()=>[j(c,{ref:"scrollbar","wrap-style":e.wrapStyle,tag:"div","view-class":e.ns.e("list")},{default:K(()=>[j(i,{loop:e.loop,"current-tab-id":e.currentTabId,orientation:"horizontal",onCurrentTabIdChange:e.handleCurrentTabIdChange,onEntryFocus:e.handleEntryFocus},{default:K(()=>[j(u,null,{default:K(()=>[Q(e.$slots,"dropdown")]),_:3})]),_:3},8,["loop","current-tab-id","onCurrentTabIdChange","onEntryFocus"])]),_:3},8,["wrap-style","view-class"])]),_:2},[e.splitButton?void 0:{name:"default",fn:K(()=>[j(f,{id:e.triggerId,role:"button",tabindex:e.tabindex},{default:K(()=>[Q(e.$slots,"default")]),_:3},8,["id","tabindex"])])}]),1032,["role","effect","popper-options","hide-after","placement","popper-class","reference-element","trigger","trigger-keys","trigger-target-el","show-after","virtual-ref","virtual-triggering","disabled","transition","onBeforeShow","onShow","onBeforeHide"]),e.splitButton?(k(),Z(m,{key:0},{default:K(()=>[j(p,vt({ref:"referenceElementRef"},e.buttonProps,{size:e.dropdownSize,type:e.type,disabled:e.disabled,tabindex:e.tabindex,onClick:e.handlerMainButtonClick}),{default:K(()=>[Q(e.$slots,"default")]),_:3},16,["size","type","disabled","tabindex","onClick"]),j(p,vt({id:e.triggerId,ref:"triggeringElementRef"},e.buttonProps,{role:"button",size:e.dropdownSize,type:e.type,class:e.ns.e("caret-button"),disabled:e.disabled,tabindex:e.tabindex,"aria-label":e.t("el.dropdown.toggleDropdown")}),{default:K(()=>[j(v,{class:S(e.ns.e("icon"))},{default:K(()=>[j(d)]),_:1},8,["class"])]),_:1},16,["id","size","type","class","disabled","tabindex","aria-label"])]),_:3})):Y("v-if",!0)],2)}var vb=ie(fb,[["render",pb],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown.vue"]]);const mb=se({name:"DropdownItemImpl",components:{ElIcon:he},props:Mi,emits:["pointermove","pointerleave","click","clickimpl"],setup(e,{emit:t}){const n=le("dropdown"),{role:o}=fe($l,void 0),{collectionItemRef:l}=fe(cb,void 0),{collectionItemRef:s}=fe(Wg,void 0),{rovingFocusGroupItemRef:r,tabIndex:u,handleFocus:i,handleKeydown:c,handleMousedown:f}=fe(Ii,void 0),h=da(l,s,r),p=$(()=>o.value==="menu"?"menuitem":o.value==="navigation"?"link":"button"),d=pt(v=>{const{code:m}=v;if(m===be.enter||m===be.space)return v.preventDefault(),v.stopImmediatePropagation(),t("clickimpl",v),!0},c);return{ns:n,itemRef:h,dataset:{[Ni]:""},role:p,tabIndex:u,handleFocus:i,handleKeydown:d,handleMousedown:f}}}),hb=["aria-disabled","tabindex","role"];function gb(e,t,n,o,l,s){const r=Ee("el-icon");return k(),L(Pe,null,[e.divided?(k(),L("li",vt({key:0,role:"separator",class:e.ns.bem("menu","item","divided")},e.$attrs),null,16)):Y("v-if",!0),x("li",vt({ref:e.itemRef},{...e.dataset,...e.$attrs},{"aria-disabled":e.disabled,class:[e.ns.be("menu","item"),e.ns.is("disabled",e.disabled)],tabindex:e.tabIndex,role:e.role,onClick:t[0]||(t[0]=u=>e.$emit("clickimpl",u)),onFocus:t[1]||(t[1]=(...u)=>e.handleFocus&&e.handleFocus(...u)),onKeydown:t[2]||(t[2]=(...u)=>e.handleKeydown&&e.handleKeydown(...u)),onMousedown:t[3]||(t[3]=(...u)=>e.handleMousedown&&e.handleMousedown(...u)),onPointermove:t[4]||(t[4]=u=>e.$emit("pointermove",u)),onPointerleave:t[5]||(t[5]=u=>e.$emit("pointerleave",u))}),[e.icon?(k(),Z(r,{key:0},{default:K(()=>[(k(),Z(Ve(e.icon)))]),_:1})):Y("v-if",!0),Q(e.$slots,"default")],16,hb)],64)}var bb=ie(mb,[["render",gb],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-item-impl.vue"]]);const Ai=()=>{const e=fe("elDropdown",{}),t=$(()=>e==null?void 0:e.dropdownSize);return{elDropdown:e,_elDropdownSize:t}},yb=se({name:"ElDropdownItem",components:{ElDropdownCollectionItem:ib,ElRovingFocusItem:ob,ElDropdownItemImpl:bb},inheritAttrs:!1,props:Mi,emits:["pointermove","pointerleave","click"],setup(e,{emit:t,attrs:n}){const{elDropdown:o}=Ai(),l=De(),s=P(null),r=$(()=>{var d,v;return(v=(d=a(s))==null?void 0:d.textContent)!=null?v:""}),{onItemEnter:u,onItemLeave:i}=fe($l,void 0),c=pt(d=>(t("pointermove",d),d.defaultPrevented),qa(d=>{var v;e.disabled?i(d):(u(d),d.defaultPrevented||(v=d.currentTarget)==null||v.focus())})),f=pt(d=>(t("pointerleave",d),d.defaultPrevented),qa(d=>{i(d)})),h=pt(d=>(t("click",d),d.type!=="keydown"&&d.defaultPrevented),d=>{var v,m,y;if(e.disabled){d.stopImmediatePropagation();return}(v=o==null?void 0:o.hideOnClick)!=null&&v.value&&((m=o.handleClick)==null||m.call(o)),(y=o.commandHandler)==null||y.call(o,e.command,l,d)}),p=$(()=>({...e,...n}));return{handleClick:h,handlePointerMove:c,handlePointerLeave:f,textContent:r,propsAndAttrs:p}}});function Cb(e,t,n,o,l,s){var r;const u=Ee("el-dropdown-item-impl"),i=Ee("el-roving-focus-item"),c=Ee("el-dropdown-collection-item");return k(),Z(c,{disabled:e.disabled,"text-value":(r=e.textValue)!=null?r:e.textContent},{default:K(()=>[j(i,{focusable:!e.disabled},{default:K(()=>[j(u,vt(e.propsAndAttrs,{onPointerleave:e.handlePointerLeave,onPointermove:e.handlePointerMove,onClickimpl:e.handleClick}),{default:K(()=>[Q(e.$slots,"default")]),_:3},16,["onPointerleave","onPointermove","onClickimpl"])]),_:3},8,["focusable"])]),_:3},8,["disabled","text-value"])}var Bi=ie(yb,[["render",Cb],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-item.vue"]]);const wb=se({name:"ElDropdownMenu",props:lb,setup(e){const t=le("dropdown"),{_elDropdownSize:n}=Ai(),o=n.value,{focusTrapRef:l,onKeydown:s}=fe($a,void 0),{contentRef:r,role:u,triggerId:i}=fe($l,void 0),{collectionRef:c,getItems:f}=fe(ub,void 0),{rovingFocusGroupRef:h,rovingFocusGroupRootStyle:p,tabIndex:d,onBlur:v,onFocus:m,onMousedown:y}=fe(Ia,void 0),{collectionRef:b}=fe(Pa,void 0),C=$(()=>[t.b("menu"),t.bm("menu",o==null?void 0:o.value)]),g=da(r,c,l,h,b),w=pt(I=>{var T;(T=e.onKeydown)==null||T.call(e,I)},I=>{const{currentTarget:T,code:B,target:O}=I;if(T.contains(O),be.tab===B&&I.stopImmediatePropagation(),I.preventDefault(),O!==a(r)||!sb.includes(B))return;const W=f().filter(J=>!J.disabled).map(J=>J.ref);Oi.includes(B)&&W.reverse(),Ma(W)});return{size:o,rovingFocusGroupRootStyle:p,tabIndex:d,dropdownKls:C,role:u,triggerId:i,dropdownListWrapperRef:g,handleKeydown:I=>{w(I),s(I)},onBlur:v,onFocus:m,onMousedown:y}}}),kb=["role","aria-labelledby"];function Sb(e,t,n,o,l,s){return k(),L("ul",{ref:e.dropdownListWrapperRef,class:S(e.dropdownKls),style:$e(e.rovingFocusGroupRootStyle),tabindex:-1,role:e.role,"aria-labelledby":e.triggerId,onBlur:t[0]||(t[0]=(...r)=>e.onBlur&&e.onBlur(...r)),onFocus:t[1]||(t[1]=(...r)=>e.onFocus&&e.onFocus(...r)),onKeydown:t[2]||(t[2]=(...r)=>e.handleKeydown&&e.handleKeydown(...r)),onMousedown:t[3]||(t[3]=(...r)=>e.onMousedown&&e.onMousedown(...r))},[Q(e.$slots,"default")],46,kb)}var Di=ie(wb,[["render",Sb],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-menu.vue"]]);const zS=Ke(vb,{DropdownItem:Bi,DropdownMenu:Di}),VS=mt(Bi),HS=mt(Di),Eb=pe({model:Object,rules:{type:te(Object)},labelPosition:{type:String,values:["left","right","top"],default:"right"},labelWidth:{type:[String,Number],default:""},labelSuffix:{type:String,default:""},inline:Boolean,inlineMessage:Boolean,statusIcon:Boolean,showMessage:{type:Boolean,default:!0},size:{type:String,values:ho},disabled:Boolean,validateOnRuleChange:{type:Boolean,default:!0},hideRequiredAsterisk:{type:Boolean,default:!1},scrollToError:Boolean}),$b={validate:(e,t,n)=>(at(e)||He(e))&&It(t)&&He(n)};function Tb(){const e=P([]),t=$(()=>{if(!e.value.length)return"0";const s=Math.max(...e.value);return s?`${s}px`:""});function n(s){return e.value.indexOf(s)}function o(s,r){if(s&&r){const u=n(r);e.value.splice(u,1,s)}else s&&e.value.push(s)}function l(s){const r=n(s);r>-1&&e.value.splice(r,1)}return{autoLabelWidth:t,registerLabelWidth:o,deregisterLabelWidth:l}}const Ho=(e,t)=>{const n=Wl(t);return n.length>0?e.filter(o=>o.prop&&n.includes(o.prop)):e},Nb={name:"ElForm"},Pb=se({...Nb,props:Eb,emits:$b,setup(e,{expose:t,emit:n}){const o=e,l=[],s=kt(),r=le("form"),u=$(()=>{const{labelPosition:C,inline:g}=o;return[r.b(),r.m(s.value||"default"),{[r.m(`label-${C}`)]:C,[r.m("inline")]:g}]}),i=C=>{l.push(C)},c=C=>{C.prop&&l.splice(l.indexOf(C),1)},f=(C=[])=>{!o.model||Ho(l,C).forEach(g=>g.resetField())},h=(C=[])=>{Ho(l,C).forEach(g=>g.clearValidate())},p=$(()=>!!o.model),d=C=>{if(l.length===0)return[];const g=Ho(l,C);return g.length?g:[]},v=async C=>y(void 0,C),m=async(C=[])=>{if(!p.value)return!1;const g=d(C);if(g.length===0)return!0;let w={};for(const M of g)try{await M.validate("")}catch(I){w={...w,...I}}return Object.keys(w).length===0?!0:Promise.reject(w)},y=async(C=[],g)=>{const w=!Pt(g);try{const M=await m(C);return M===!0&&(g==null||g(M)),M}catch(M){const I=M;return o.scrollToError&&b(Object.keys(I)[0]),g==null||g(!1,I),w&&Promise.reject(I)}},b=C=>{var g;const w=Ho(l,C)[0];w&&((g=w.$el)==null||g.scrollIntoView())};return oe(()=>o.rules,()=>{o.validateOnRuleChange&&v().catch(C=>void 0)},{deep:!0}),Fe(dn,rt({..._t(o),emit:n,resetFields:f,clearValidate:h,validateField:y,addField:i,removeField:c,...Tb()})),t({validate:v,validateField:y,resetFields:f,clearValidate:h,scrollToField:b}),(C,g)=>(k(),L("form",{class:S(a(u))},[Q(C.$slots,"default")],2))}});var Ib=ie(Pb,[["__file","/home/runner/work/element-plus/element-plus/packages/components/form/src/form.vue"]]);const Mb=["","error","validating","success"],Ob=pe({label:String,labelWidth:{type:[String,Number],default:""},prop:{type:te([String,Array])},required:{type:Boolean,default:void 0},rules:{type:te([Object,Array])},error:String,validateStatus:{type:String,values:Mb},for:String,inlineMessage:{type:[String,Boolean],default:""},showMessage:{type:Boolean,default:!0},size:{type:String,values:ho}}),Ps="ElLabelWrap";var Ab=se({name:Ps,props:{isAutoWidth:Boolean,updateAll:Boolean},setup(e,{slots:t}){const n=fe(dn,void 0);fe(Ut)||Ot(Ps,"usage: ");const l=le("form"),s=P(),r=P(0),u=()=>{var f;if((f=s.value)!=null&&f.firstElementChild){const h=window.getComputedStyle(s.value.firstElementChild).width;return Math.ceil(Number.parseFloat(h))}else return 0},i=(f="update")=>{ke(()=>{t.default&&e.isAutoWidth&&(f==="update"?r.value=u():f==="remove"&&(n==null||n.deregisterLabelWidth(r.value)))})},c=()=>i("update");return Re(()=>{c()}),yt(()=>{i("remove")}),Mn(()=>c()),oe(r,(f,h)=>{e.updateAll&&(n==null||n.registerLabelWidth(f,h))}),yn($(()=>{var f,h;return(h=(f=s.value)==null?void 0:f.firstElementChild)!=null?h:null}),c),()=>{var f,h;if(!t)return null;const{isAutoWidth:p}=e;if(p){const d=n==null?void 0:n.autoLabelWidth,v={};if(d&&d!=="auto"){const m=Math.max(0,Number.parseInt(d,10)-r.value),y=n.labelPosition==="left"?"marginRight":"marginLeft";m&&(v[y]=`${m}px`)}return j("div",{ref:s,class:[l.be("item","label-wrap")],style:v},[(f=t.default)==null?void 0:f.call(t)])}else return j(Pe,{ref:s},[(h=t.default)==null?void 0:h.call(t)])}}});const Bb=["role","aria-labelledby"],Db={name:"ElFormItem"},Lb=se({...Db,props:Ob,setup(e,{expose:t}){const n=e,o=Xt(),l=fe(dn,void 0),s=fe(Ut,void 0),r=kt(void 0,{formItem:!1}),u=le("form-item"),i=un().value,c=P([]),f=P(""),h=Su(f,100),p=P(""),d=P();let v,m=!1;const y=$(()=>{if((l==null?void 0:l.labelPosition)==="top")return{};const X=Kt(n.labelWidth||(l==null?void 0:l.labelWidth)||"");return X?{width:X}:{}}),b=$(()=>{if((l==null?void 0:l.labelPosition)==="top"||(l==null?void 0:l.inline))return{};if(!n.label&&!n.labelWidth&&O)return{};const X=Kt(n.labelWidth||(l==null?void 0:l.labelWidth)||"");return!n.label&&!o.label?{marginLeft:X}:{}}),C=$(()=>[u.b(),u.m(r.value),u.is("error",f.value==="error"),u.is("validating",f.value==="validating"),u.is("success",f.value==="success"),u.is("required",H.value||n.required),u.is("no-asterisk",l==null?void 0:l.hideRequiredAsterisk),{[u.m("feedback")]:l==null?void 0:l.statusIcon}]),g=$(()=>It(n.inlineMessage)?n.inlineMessage:(l==null?void 0:l.inlineMessage)||!1),w=$(()=>[u.e("error"),{[u.em("error","inline")]:g.value}]),M=$(()=>n.prop?He(n.prop)?n.prop:n.prop.join("."):""),I=$(()=>!!(n.label||o.label)),T=$(()=>n.for||c.value.length===1?c.value[0]:void 0),B=$(()=>!T.value&&I.value),O=!!s,V=$(()=>{const X=l==null?void 0:l.model;if(!(!X||!n.prop))return xo(X,n.prop).value}),W=$(()=>{const X=n.rules?Wl(n.rules):[],ve=l==null?void 0:l.rules;if(ve&&n.prop){const Ne=xo(ve,n.prop).value;Ne&&X.push(...Wl(Ne))}return n.required!==void 0&&X.push({required:!!n.required}),X}),J=$(()=>W.value.length>0),F=X=>W.value.filter(Ne=>!Ne.trigger||!X?!0:Array.isArray(Ne.trigger)?Ne.trigger.includes(X):Ne.trigger===X).map(({trigger:Ne,...Le})=>Le),H=$(()=>W.value.some(X=>X.required===!0)),U=$(()=>{var X;return h.value==="error"&&n.showMessage&&((X=l==null?void 0:l.showMessage)!=null?X:!0)}),_=$(()=>`${n.label||""}${(l==null?void 0:l.labelSuffix)||""}`),D=X=>{f.value=X},A=X=>{var ve,Ne;const{errors:Le,fields:Ge}=X;(!Le||!Ge)&&console.error(X),D("error"),p.value=Le?(Ne=(ve=Le==null?void 0:Le[0])==null?void 0:ve.message)!=null?Ne:`${n.prop} is required`:"",l==null||l.emit("validate",n.prop,!1,p.value)},N=()=>{D("success"),l==null||l.emit("validate",n.prop,!0,"")},R=async X=>{const ve=M.value;return new Zu({[ve]:X}).validate({[ve]:V.value},{firstFields:!0}).then(()=>(N(),!0)).catch(Le=>(A(Le),Promise.reject(Le)))},G=async(X,ve)=>{if(m)return m=!1,!1;const Ne=Pt(ve);if(!J.value)return ve==null||ve(!1),!1;const Le=F(X);return Le.length===0?(ve==null||ve(!0),!0):(D("validating"),R(Le).then(()=>(ve==null||ve(!0),!0)).catch(Ge=>{const{fields:Ze}=Ge;return ve==null||ve(!1,Ze),Ne?!1:Promise.reject(Ze)}))},re=()=>{D(""),p.value=""},ce=async()=>{const X=l==null?void 0:l.model;if(!X||!n.prop)return;const ve=xo(X,n.prop);oo(ve.value,v)||(m=!0),ve.value=ja(v),await ke(),re()},ye=X=>{c.value.includes(X)||c.value.push(X)},ge=X=>{c.value=c.value.filter(ve=>ve!==X)};oe(()=>n.error,X=>{p.value=X||"",D(X?"error":"")},{immediate:!0}),oe(()=>n.validateStatus,X=>D(X||""));const Te=rt({..._t(n),$el:d,size:r,validateState:f,labelId:i,inputIds:c,isGroup:B,addInputId:ye,removeInputId:ge,resetField:ce,clearValidate:re,validate:G});return Fe(Ut,Te),Re(()=>{n.prop&&(l==null||l.addField(Te),v=ja(V.value))}),yt(()=>{l==null||l.removeField(Te)}),t({size:r,validateMessage:p,validateState:f,validate:G,clearValidate:re,resetField:ce}),(X,ve)=>{var Ne;return k(),L("div",{ref_key:"formItemRef",ref:d,class:S(a(C)),role:a(B)?"group":void 0,"aria-labelledby":a(B)?a(i):void 0},[j(a(Ab),{"is-auto-width":a(y).width==="auto","update-all":((Ne=a(l))==null?void 0:Ne.labelWidth)==="auto"},{default:K(()=>[a(I)?(k(),Z(Ve(a(T)?"label":"div"),{key:0,id:a(i),for:a(T),class:S(a(u).e("label")),style:$e(a(y))},{default:K(()=>[Q(X.$slots,"label",{label:a(_)},()=>[Xe(de(a(_)),1)])]),_:3},8,["id","for","class","style"])):Y("v-if",!0)]),_:3},8,["is-auto-width","update-all"]),x("div",{class:S(a(u).e("content")),style:$e(a(b))},[Q(X.$slots,"default"),j(St,{name:`${a(u).namespace.value}-zoom-in-top`},{default:K(()=>[a(U)?Q(X.$slots,"error",{key:0,error:p.value},()=>[x("div",{class:S(a(w))},de(p.value),3)]):Y("v-if",!0)]),_:3},8,["name"])],6)],10,Bb)}}});var Li=ie(Lb,[["__file","/home/runner/work/element-plus/element-plus/packages/components/form/src/form-item.vue"]]);const KS=Ke(Ib,{FormItem:Li}),WS=mt(Li),Rb=pe({urlList:{type:te(Array),default:()=>Ct([])},zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!0},hideOnClickModal:{type:Boolean,default:!1},teleported:{type:Boolean,default:!1},closeOnPressEscape:{type:Boolean,default:!0}}),_b={close:()=>!0,switch:e=>We(e)},Fb=["src"],zb={name:"ElImageViewer"},Vb=se({...zb,props:Rb,emits:_b,setup(e,{emit:t}){const n=e,o={CONTAIN:{name:"contain",icon:Va(Au)},ORIGINAL:{name:"original",icon:Va(Bu)}},l=Sc()?"DOMMouseScroll":"mousewheel",{t:s}=Je(),r=le("image-viewer"),{nextZIndex:u}=An(),i=P(),c=P([]),f=hu(),h=P(!0),p=P(n.initialIndex),d=Ht(o.CONTAIN),v=P({scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}),m=$(()=>{const{urlList:_}=n;return _.length<=1}),y=$(()=>p.value===0),b=$(()=>p.value===n.urlList.length-1),C=$(()=>n.urlList[p.value]),g=$(()=>{const{scale:_,deg:D,offsetX:A,offsetY:N,enableTransition:R}=v.value;let G=A/_,re=N/_;switch(D%360){case 90:case-270:[G,re]=[re,-G];break;case 180:case-180:[G,re]=[-G,-re];break;case 270:case-90:[G,re]=[-re,G];break}const ce={transform:`scale(${_}) rotate(${D}deg) translate(${G}px, ${re}px)`,transition:R?"transform .3s":""};return d.value.name===o.CONTAIN.name&&(ce.maxWidth=ce.maxHeight="100%"),ce}),w=$(()=>We(n.zIndex)?n.zIndex:u());function M(){T(),t("close")}function I(){const _=Pl(A=>{switch(A.code){case be.esc:n.closeOnPressEscape&&M();break;case be.space:J();break;case be.left:F();break;case be.up:U("zoomIn");break;case be.right:H();break;case be.down:U("zoomOut");break}}),D=Pl(A=>{(A.wheelDelta?A.wheelDelta:-A.detail)>0?U("zoomIn",{zoomRate:1.2,enableTransition:!1}):U("zoomOut",{zoomRate:1.2,enableTransition:!1})});f.run(()=>{zt(document,"keydown",_),zt(document,l,D)})}function T(){f.stop()}function B(){h.value=!1}function O(_){h.value=!1,_.target.alt=s("el.image.error")}function V(_){if(h.value||_.button!==0||!i.value)return;v.value.enableTransition=!1;const{offsetX:D,offsetY:A}=v.value,N=_.pageX,R=_.pageY,G=Pl(ce=>{v.value={...v.value,offsetX:D+ce.pageX-N,offsetY:A+ce.pageY-R}}),re=zt(document,"mousemove",G);zt(document,"mouseup",()=>{re()}),_.preventDefault()}function W(){v.value={scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}}function J(){if(h.value)return;const _=rl(o),D=Object.values(o),A=d.value.name,R=(D.findIndex(G=>G.name===A)+1)%_.length;d.value=o[_[R]],W()}function F(){if(y.value&&!n.infinite)return;const _=n.urlList.length;p.value=(p.value-1+_)%_}function H(){if(b.value&&!n.infinite)return;const _=n.urlList.length;p.value=(p.value+1)%_}function U(_,D={}){if(h.value)return;const{zoomRate:A,rotateDeg:N,enableTransition:R}={zoomRate:1.4,rotateDeg:90,enableTransition:!0,...D};switch(_){case"zoomOut":v.value.scale>.2&&(v.value.scale=Number.parseFloat((v.value.scale/A).toFixed(3)));break;case"zoomIn":v.value.scale<7&&(v.value.scale=Number.parseFloat((v.value.scale*A).toFixed(3)));break;case"clockwise":v.value.deg+=N;break;case"anticlockwise":v.value.deg-=N;break}v.value.enableTransition=R}return oe(C,()=>{ke(()=>{const _=c.value[0];_!=null&&_.complete||(h.value=!0)})}),oe(p,_=>{W(),t("switch",_)}),Re(()=>{var _,D;I(),(D=(_=i.value)==null?void 0:_.focus)==null||D.call(_)}),(_,D)=>(k(),Z(ml,{to:"body",disabled:!_.teleported},[j(St,{name:"viewer-fade",appear:""},{default:K(()=>[x("div",{ref_key:"wrapper",ref:i,tabindex:-1,class:S(a(r).e("wrapper")),style:$e({zIndex:a(w)})},[x("div",{class:S(a(r).e("mask")),onClick:D[0]||(D[0]=Oe(A=>_.hideOnClickModal&&M(),["self"]))},null,2),Y(" CLOSE "),x("span",{class:S([a(r).e("btn"),a(r).e("close")]),onClick:M},[j(a(he),null,{default:K(()=>[j(a(rn))]),_:1})],2),Y(" ARROW "),a(m)?Y("v-if",!0):(k(),L(Pe,{key:0},[x("span",{class:S([a(r).e("btn"),a(r).e("prev"),a(r).is("disabled",!_.infinite&&a(y))]),onClick:F},[j(a(he),null,{default:K(()=>[j(a(to))]),_:1})],2),x("span",{class:S([a(r).e("btn"),a(r).e("next"),a(r).is("disabled",!_.infinite&&a(b))]),onClick:H},[j(a(he),null,{default:K(()=>[j(a(ln))]),_:1})],2)],64)),Y(" ACTIONS "),x("div",{class:S([a(r).e("btn"),a(r).e("actions")])},[x("div",{class:S(a(r).e("actions__inner"))},[j(a(he),{onClick:D[1]||(D[1]=A=>U("zoomOut"))},{default:K(()=>[j(a(Du))]),_:1}),j(a(he),{onClick:D[2]||(D[2]=A=>U("zoomIn"))},{default:K(()=>[j(a(er))]),_:1}),x("i",{class:S(a(r).e("actions__divider"))},null,2),j(a(he),{onClick:J},{default:K(()=>[(k(),Z(Ve(a(d).icon)))]),_:1}),x("i",{class:S(a(r).e("actions__divider"))},null,2),j(a(he),{onClick:D[3]||(D[3]=A=>U("anticlockwise"))},{default:K(()=>[j(a(Lu))]),_:1}),j(a(he),{onClick:D[4]||(D[4]=A=>U("clockwise"))},{default:K(()=>[j(a(Ru))]),_:1})],2)],2),Y(" CANVAS "),x("div",{class:S(a(r).e("canvas"))},[(k(!0),L(Pe,null,ot(_.urlList,(A,N)=>Ie((k(),L("img",{ref_for:!0,ref:R=>c.value[N]=R,key:A,src:A,style:$e(a(g)),class:S(a(r).e("img")),onLoad:B,onError:O,onMousedown:V},null,46,Fb)),[[Ye,N===p.value]])),128))],2),Q(_.$slots,"default")],6)]),_:3})],8,["disabled"]))}});var Hb=ie(Vb,[["__file","/home/runner/work/element-plus/element-plus/packages/components/image-viewer/src/image-viewer.vue"]]);const Kb=Ke(Hb),Wb=pe({hideOnClickModal:{type:Boolean,default:!1},src:{type:String,default:""},fit:{type:String,values:["","contain","cover","fill","none","scale-down"],default:""},loading:{type:String,values:["eager","lazy"]},lazy:{type:Boolean,default:!1},scrollContainer:{type:te([String,Object])},previewSrcList:{type:te(Array),default:()=>Ct([])},previewTeleported:{type:Boolean,default:!1},zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0}}),jb={load:e=>e instanceof Event,error:e=>e instanceof Event,switch:e=>We(e),close:()=>!0},xb=["src","loading"],qb={key:0},Ub={name:"ElImage",inheritAttrs:!1},Yb=se({...Ub,props:Wb,emits:jb,setup(e,{emit:t}){const n=e;let o="";const{t:l}=Je(),s=le("image"),r=Bo(),u=fa(),i=P(),c=P(!1),f=P(!0),h=P(!1),p=P(),d=P(),v=je&&"loading"in HTMLImageElement.prototype;let m,y;const b=$(()=>r.style),C=$(()=>{const{fit:D}=n;return je&&D?{objectFit:D}:{}}),g=$(()=>{const{previewSrcList:D}=n;return Array.isArray(D)&&D.length>0}),w=$(()=>{const{previewSrcList:D,initialIndex:A}=n;let N=A;return A>D.length-1&&(N=0),N}),M=$(()=>n.loading==="eager"?!1:!v&&n.loading==="lazy"||n.lazy),I=()=>{!je||(f.value=!0,c.value=!1,i.value=n.src)};function T(D){f.value=!1,c.value=!1,t("load",D)}function B(D){f.value=!1,c.value=!0,t("error",D)}function O(){ac(p.value,d.value)&&(I(),J())}const V=Eu(O,200);async function W(){var D;if(!je)return;await ke();const{scrollContainer:A}=n;hn(A)?d.value=A:He(A)&&A!==""?d.value=(D=document.querySelector(A))!=null?D:void 0:p.value&&(d.value=pc(p.value)),d.value&&(m=zt(d,"scroll",V),setTimeout(()=>O(),100))}function J(){!je||!d.value||!V||(m==null||m(),d.value=void 0)}function F(D){if(!!D.ctrlKey){if(D.deltaY<0)return D.preventDefault(),!1;if(D.deltaY>0)return D.preventDefault(),!1}}function H(){!g.value||(y=zt("wheel",F,{passive:!1}),o=document.body.style.overflow,document.body.style.overflow="hidden",h.value=!0)}function U(){y==null||y(),document.body.style.overflow=o,h.value=!1,t("close")}function _(D){t("switch",D)}return oe(()=>n.src,()=>{M.value?(f.value=!0,c.value=!1,J(),W()):I()}),Re(()=>{M.value?W():I()}),(D,A)=>(k(),L("div",{ref_key:"container",ref:p,class:S([a(s).b(),D.$attrs.class]),style:$e(a(b))},[i.value!==void 0&&!c.value?(k(),L("img",vt({key:0},a(u),{src:i.value,loading:D.loading,style:a(C),class:[a(s).e("inner"),a(g)&&a(s).e("preview"),f.value&&a(s).is("loading")],onClick:H,onLoad:T,onError:B}),null,16,xb)):Y("v-if",!0),f.value||c.value?(k(),L("div",{key:1,class:S(a(s).e("wrapper"))},[f.value?Q(D.$slots,"placeholder",{key:0},()=>[x("div",{class:S(a(s).e("placeholder"))},null,2)]):c.value?Q(D.$slots,"error",{key:1},()=>[x("div",{class:S(a(s).e("error"))},de(a(l)("el.image.error")),3)]):Y("v-if",!0)],2)):Y("v-if",!0),a(g)?(k(),L(Pe,{key:2},[h.value?(k(),Z(a(Kb),{key:0,"z-index":D.zIndex,"initial-index":a(w),infinite:D.infinite,"url-list":D.previewSrcList,"hide-on-click-modal":D.hideOnClickModal,teleported:D.previewTeleported,"close-on-press-escape":D.closeOnPressEscape,onClose:U,onSwitch:_},{default:K(()=>[D.$slots.viewer?(k(),L("div",qb,[Q(D.$slots,"viewer")])):Y("v-if",!0)]),_:3},8,["z-index","initial-index","infinite","url-list","hide-on-click-modal","teleported","close-on-press-escape"])):Y("v-if",!0)],64)):Y("v-if",!0)],6))}});var Gb=ie(Yb,[["__file","/home/runner/work/element-plus/element-plus/packages/components/image/src/image.vue"]]);const jS=Ke(Gb),Xb=pe({id:{type:String,default:void 0},step:{type:Number,default:1},stepStrictly:Boolean,max:{type:Number,default:Number.POSITIVE_INFINITY},min:{type:Number,default:Number.NEGATIVE_INFINITY},modelValue:Number,disabled:Boolean,size:Cn,controls:{type:Boolean,default:!0},controlsPosition:{type:String,default:"",values:["","right"]},valueOnClear:{type:[String,Number,null],validator:e=>e===null||We(e)||["min","max"].includes(e),default:null},name:String,label:String,placeholder:String,precision:{type:Number,validator:e=>e>=0&&e===Number.parseInt(`${e}`,10)},validateEvent:{type:Boolean,default:!0}}),Jb={[gn]:(e,t)=>e!==t,blur:e=>e instanceof FocusEvent,focus:e=>e instanceof FocusEvent,[Kn]:e=>We(e)||an(e),[qe]:e=>We(e)||an(e)},Zb=["aria-label","onKeydown"],Qb=["aria-label","onKeydown"],ey={name:"ElInputNumber"},ty=se({...ey,props:Xb,emits:Jb,setup(e,{expose:t,emit:n}){const o=e,{t:l}=Je(),s=le("input-number"),r=P(),u=rt({currentValue:o.modelValue,userInput:null}),{formItem:i}=Ro(),c=$(()=>We(o.modelValue)&&C(o.modelValue,-1)We(o.modelValue)&&C(o.modelValue)>o.max),h=$(()=>{const F=b(o.step);return Zt(o.precision)?Math.max(b(o.modelValue),F):(F>o.precision,o.precision)}),p=$(()=>o.controls&&o.controlsPosition==="right"),d=kt(),v=On(),m=$(()=>{if(u.userInput!==null)return u.userInput;let F=u.currentValue;if(an(F))return"";if(We(F)){if(Number.isNaN(F))return"";Zt(o.precision)||(F=F.toFixed(o.precision))}return F}),y=(F,H)=>{if(Zt(H)&&(H=h.value),H===0)return Math.round(F);let U=String(F);const _=U.indexOf(".");if(_===-1||!U.replace(".","").split("")[_+H])return F;const N=U.length;return U.charAt(N-1)==="5"&&(U=`${U.slice(0,Math.max(0,N-1))}6`),Number.parseFloat(Number(U).toFixed(H))},b=F=>{if(an(F))return 0;const H=F.toString(),U=H.indexOf(".");let _=0;return U!==-1&&(_=H.length-U-1),_},C=(F,H=1)=>We(F)?y(F+o.step*H):u.currentValue,g=()=>{if(v.value||f.value)return;const F=o.modelValue||0,H=C(F);I(H)},w=()=>{if(v.value||c.value)return;const F=o.modelValue||0,H=C(F,-1);I(H)},M=(F,H)=>{const{max:U,min:_,step:D,precision:A,stepStrictly:N,valueOnClear:R}=o;let G=Number(F);if(an(F)||Number.isNaN(G))return null;if(F===""){if(R===null)return null;G=He(R)?{min:_,max:U}[R]:R}return N&&(G=y(Math.round(G/D)*D,A)),Zt(A)||(G=y(G,A)),(G>U||G<_)&&(G=G>U?U:_,H&&n("update:modelValue",G)),G},I=F=>{var H;const U=u.currentValue,_=M(F);U!==_&&(u.userInput=null,n("update:modelValue",_),n("input",_),n("change",_,U),o.validateEvent&&((H=i==null?void 0:i.validate)==null||H.call(i,"change").catch(D=>void 0)),u.currentValue=_)},T=F=>u.userInput=F,B=F=>{const H=F!==""?Number(F):"";(We(H)&&!Number.isNaN(H)||F==="")&&I(H),u.userInput=null},O=()=>{var F,H;(H=(F=r.value)==null?void 0:F.focus)==null||H.call(F)},V=()=>{var F,H;(H=(F=r.value)==null?void 0:F.blur)==null||H.call(F)},W=F=>{n("focus",F)},J=F=>{var H;n("blur",F),o.validateEvent&&((H=i==null?void 0:i.validate)==null||H.call(i,"blur").catch(U=>void 0))};return oe(()=>o.modelValue,F=>{u.currentValue=M(F,!0),u.userInput=null},{immediate:!0}),Re(()=>{var F;const{min:H,max:U,modelValue:_}=o,D=(F=r.value)==null?void 0:F.input;if(D.setAttribute("role","spinbutton"),Number.isFinite(U)?D.setAttribute("aria-valuemax",String(U)):D.removeAttribute("aria-valuemax"),Number.isFinite(H)?D.setAttribute("aria-valuemin",String(H)):D.removeAttribute("aria-valuemin"),D.setAttribute("aria-valuenow",String(u.currentValue)),D.setAttribute("aria-disabled",String(v.value)),!We(_)&&_!=null){let A=Number(_);Number.isNaN(A)&&(A=null),n("update:modelValue",A)}}),Mn(()=>{var F;const H=(F=r.value)==null?void 0:F.input;H==null||H.setAttribute("aria-valuenow",`${u.currentValue}`)}),t({focus:O,blur:V}),(F,H)=>(k(),L("div",{class:S([a(s).b(),a(s).m(a(d)),a(s).is("disabled",a(v)),a(s).is("without-controls",!F.controls),a(s).is("controls-right",a(p))]),onDragstart:H[0]||(H[0]=Oe(()=>{},["prevent"]))},[F.controls?Ie((k(),L("span",{key:0,role:"button","aria-label":a(l)("el.inputNumber.decrease"),class:S([a(s).e("decrease"),a(s).is("disabled",a(c))]),onKeydown:xe(w,["enter"])},[j(a(he),null,{default:K(()=>[a(p)?(k(),Z(a(mo),{key:0})):(k(),Z(a(_u),{key:1}))]),_:1})],42,Zb)),[[a(cl),w]]):Y("v-if",!0),F.controls?Ie((k(),L("span",{key:1,role:"button","aria-label":a(l)("el.inputNumber.increase"),class:S([a(s).e("increase"),a(s).is("disabled",a(f))]),onKeydown:xe(g,["enter"])},[j(a(he),null,{default:K(()=>[a(p)?(k(),Z(a(gl),{key:0})):(k(),Z(a(tr),{key:1}))]),_:1})],42,Qb)),[[a(cl),g]]):Y("v-if",!0),j(a(Vt),{id:F.id,ref_key:"input",ref:r,type:"number",step:F.step,"model-value":a(m),placeholder:F.placeholder,disabled:a(v),size:a(d),max:F.max,min:F.min,name:F.name,label:F.label,"validate-event":!1,onKeydown:[xe(Oe(g,["prevent"]),["up"]),xe(Oe(w,["prevent"]),["down"])],onBlur:J,onFocus:W,onInput:T,onChange:B},null,8,["id","step","model-value","placeholder","disabled","size","max","min","name","label","onKeydown"])],34))}});var ny=ie(ty,[["__file","/home/runner/work/element-plus/element-plus/packages/components/input-number/src/input-number.vue"]]);const xS=Ke(ny),oy=pe({type:{type:String,values:["primary","success","warning","info","danger","default"],default:"default"},underline:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},href:{type:String,default:""},icon:{type:Wt,default:""}}),ly={click:e=>e instanceof MouseEvent},ay=["href"],sy={name:"ElLink"},ry=se({...sy,props:oy,emits:ly,setup(e,{emit:t}){const n=e,o=le("link");function l(s){n.disabled||t("click",s)}return(s,r)=>(k(),L("a",{class:S([a(o).b(),a(o).m(s.type),a(o).is("disabled",s.disabled),a(o).is("underline",s.underline&&!s.disabled)]),href:s.disabled||!s.href?void 0:s.href,onClick:l},[s.icon?(k(),Z(a(he),{key:0},{default:K(()=>[(k(),Z(Ve(s.icon)))]),_:1})):Y("v-if",!0),s.$slots.default?(k(),L("span",{key:1,class:S(a(o).e("inner"))},[Q(s.$slots,"default")],2)):Y("v-if",!0),s.$slots.icon?Q(s.$slots,"icon",{key:2}):Y("v-if",!0)],10,ay))}});var iy=ie(ry,[["__file","/home/runner/work/element-plus/element-plus/packages/components/link/src/link.vue"]]);const qS=Ke(iy);class uy{constructor(t,n){this.parent=t,this.domNode=n,this.subIndex=0,this.subIndex=0,this.init()}init(){this.subMenuItems=this.domNode.querySelectorAll("li"),this.addListeners()}gotoSubIndex(t){t===this.subMenuItems.length?t=0:t<0&&(t=this.subMenuItems.length-1),this.subMenuItems[t].focus(),this.subIndex=t}addListeners(){const t=this.parent.domNode;Array.prototype.forEach.call(this.subMenuItems,n=>{n.addEventListener("keydown",o=>{let l=!1;switch(o.code){case be.down:{this.gotoSubIndex(this.subIndex+1),l=!0;break}case be.up:{this.gotoSubIndex(this.subIndex-1),l=!0;break}case be.tab:{jo(t,"mouseleave");break}case be.enter:case be.space:{l=!0,o.currentTarget.click();break}}return l&&(o.preventDefault(),o.stopPropagation()),!1})})}}class cy{constructor(t,n){this.domNode=t,this.submenu=null,this.submenu=null,this.init(n)}init(t){this.domNode.setAttribute("tabindex","0");const n=this.domNode.querySelector(`.${t}-menu`);n&&(this.submenu=new uy(this,n)),this.addListeners()}addListeners(){this.domNode.addEventListener("keydown",t=>{let n=!1;switch(t.code){case be.down:{jo(t.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(0),n=!0;break}case be.up:{jo(t.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(this.submenu.subMenuItems.length-1),n=!0;break}case be.tab:{jo(t.currentTarget,"mouseleave");break}case be.enter:case be.space:{n=!0,t.currentTarget.click();break}}n&&t.preventDefault()})}}class dy{constructor(t,n){this.domNode=t,this.init(n)}init(t){const n=this.domNode.childNodes;Array.from(n).forEach(o=>{o.nodeType===1&&new cy(o,t)})}}const fy=se({name:"ElMenuCollapseTransition",setup(){const e=le("menu");return{listeners:{onBeforeEnter:n=>n.style.opacity="0.2",onEnter(n,o){nn(n,`${e.namespace.value}-opacity-transition`),n.style.opacity="1",o()},onAfterEnter(n){Bt(n,`${e.namespace.value}-opacity-transition`),n.style.opacity=""},onBeforeLeave(n){n.dataset||(n.dataset={}),vn(n,e.m("collapse"))?(Bt(n,e.m("collapse")),n.dataset.oldOverflow=n.style.overflow,n.dataset.scrollWidth=n.clientWidth.toString(),nn(n,e.m("collapse"))):(nn(n,e.m("collapse")),n.dataset.oldOverflow=n.style.overflow,n.dataset.scrollWidth=n.clientWidth.toString(),Bt(n,e.m("collapse"))),n.style.width=`${n.scrollWidth}px`,n.style.overflow="hidden"},onLeave(n){nn(n,"horizontal-collapse-transition"),n.style.width=`${n.dataset.scrollWidth}px`}}}}});function py(e,t,n,o,l,s){return k(),Z(St,vt({mode:"out-in"},e.listeners),{default:K(()=>[Q(e.$slots,"default")]),_:3},16)}var vy=ie(fy,[["render",py],["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-collapse-transition.vue"]]);function Ri(e,t){const n=$(()=>{let l=e.parent;const s=[t.value];for(;l.type.name!=="ElMenu";)l.props.index&&s.unshift(l.props.index),l=l.parent;return s});return{parentMenu:$(()=>{let l=e.parent;for(;l&&!["ElMenu","ElSubMenu"].includes(l.type.name);)l=l.parent;return l}),indexPath:n}}function my(e){return $(()=>{const n=e.backgroundColor;return n?new lr(n).shade(20).toString():""})}const _i=(e,t)=>{const n=le("menu");return $(()=>n.cssVarBlock({"text-color":e.textColor||"","hover-text-color":e.textColor||"","bg-color":e.backgroundColor||"","hover-bg-color":my(e).value||"","active-color":e.activeTextColor||"",level:`${t}`}))},hy=pe({index:{type:String,required:!0},showTimeout:{type:Number,default:300},hideTimeout:{type:Number,default:300},popperClass:String,disabled:Boolean,popperAppendToBody:{type:Boolean,default:void 0},popperOffset:{type:Number,default:6}}),_l="ElSubMenu";var Oa=se({name:_l,props:hy,setup(e,{slots:t,expose:n}){const o=De(),{indexPath:l,parentMenu:s}=Ri(o,$(()=>e.index)),r=le("menu"),u=le("sub-menu"),i=fe("rootMenu");i||Ot(_l,"can not inject root menu");const c=fe(`subMenu:${s.value.uid}`);c||Ot(_l,"can not inject sub menu");const f=P({}),h=P({});let p;const d=P(!1),v=P(),m=P(null),y=$(()=>W.value==="horizontal"&&C.value?"bottom-start":"right-start"),b=$(()=>W.value==="horizontal"&&C.value||W.value==="vertical"&&!i.props.collapse?mo:ln),C=$(()=>c.level===0),g=$(()=>e.popperAppendToBody===void 0?C.value:Boolean(e.popperAppendToBody)),w=$(()=>i.props.collapse?`${r.namespace.value}-zoom-in-left`:`${r.namespace.value}-zoom-in-top`),M=$(()=>W.value==="horizontal"&&C.value?["bottom-start","bottom-end","top-start","top-end","right-start","left-start"]:["right-start","left-start","bottom-start","bottom-end","top-start","top-end"]),I=$(()=>i.openedMenus.includes(e.index)),T=$(()=>{let N=!1;return Object.values(f.value).forEach(R=>{R.active&&(N=!0)}),Object.values(h.value).forEach(R=>{R.active&&(N=!0)}),N}),B=$(()=>i.props.backgroundColor||""),O=$(()=>i.props.activeTextColor||""),V=$(()=>i.props.textColor||""),W=$(()=>i.props.mode),J=rt({index:e.index,indexPath:l,active:T}),F=$(()=>W.value!=="horizontal"?{color:V.value}:{borderBottomColor:T.value?i.props.activeTextColor?O.value:"":"transparent",color:T.value?O.value:V.value}),H=()=>{var N,R,G;return(G=(R=(N=m.value)==null?void 0:N.popperRef)==null?void 0:R.popperInstanceRef)==null?void 0:G.destroy()},U=N=>{N||H()},_=()=>{i.props.menuTrigger==="hover"&&i.props.mode==="horizontal"||i.props.collapse&&i.props.mode==="vertical"||e.disabled||i.handleSubMenuClick({index:e.index,indexPath:l.value,active:T.value})},D=(N,R=e.showTimeout)=>{var G;N.type!=="focus"&&(i.props.menuTrigger==="click"&&i.props.mode==="horizontal"||!i.props.collapse&&i.props.mode==="vertical"||e.disabled||(c.mouseInChild.value=!0,p==null||p(),{stop:p}=Qn(()=>{i.openMenu(e.index,l.value)},R),g.value&&((G=s.value.vnode.el)==null||G.dispatchEvent(new MouseEvent("mouseenter")))))},A=(N=!1)=>{var R,G;i.props.menuTrigger==="click"&&i.props.mode==="horizontal"||!i.props.collapse&&i.props.mode==="vertical"||(p==null||p(),c.mouseInChild.value=!1,{stop:p}=Qn(()=>!d.value&&i.closeMenu(e.index,l.value),e.hideTimeout),g.value&&N&&((R=o.parent)==null?void 0:R.type.name)==="ElSubMenu"&&((G=c.handleMouseleave)==null||G.call(c,!0)))};oe(()=>i.props.collapse,N=>U(Boolean(N)));{const N=G=>{h.value[G.index]=G},R=G=>{delete h.value[G.index]};Fe(`subMenu:${o.uid}`,{addSubMenu:N,removeSubMenu:R,handleMouseleave:A,mouseInChild:d,level:c.level+1})}return n({opened:I}),Re(()=>{i.addSubMenu(J),c.addSubMenu(J)}),yt(()=>{c.removeSubMenu(J),i.removeSubMenu(J)}),()=>{var N;const R=[(N=t.title)==null?void 0:N.call(t),Se(he,{class:u.e("icon-arrow")},{default:()=>Se(b.value)})],G=_i(i.props,c.level+1),re=i.isMenuPopup?Se(wn,{ref:m,visible:I.value,effect:"light",pure:!0,offset:e.popperOffset,showArrow:!1,persistent:!0,popperClass:e.popperClass,placement:y.value,teleported:g.value,fallbackPlacements:M.value,transition:w.value,gpuAcceleration:!1},{content:()=>{var ce;return Se("div",{class:[r.m(W.value),r.m("popup-container"),e.popperClass],onMouseenter:ye=>D(ye,100),onMouseleave:()=>A(!0),onFocus:ye=>D(ye,100)},[Se("ul",{class:[r.b(),r.m("popup"),r.m(`popup-${y.value}`)],style:G.value},[(ce=t.default)==null?void 0:ce.call(t)])])},default:()=>Se("div",{class:u.e("title"),style:[F.value,{backgroundColor:B.value}],onClick:_},R)}):Se(Pe,{},[Se("div",{class:u.e("title"),style:[F.value,{backgroundColor:B.value}],ref:v,onClick:_},R),Se(fi,{},{default:()=>{var ce;return Ie(Se("ul",{role:"menu",class:[r.b(),r.m("inline")],style:G.value},[(ce=t.default)==null?void 0:ce.call(t)]),[[Ye,I.value]])}})]);return Se("li",{class:[u.b(),u.is("active",T.value),u.is("opened",I.value),u.is("disabled",e.disabled)],role:"menuitem",ariaHaspopup:!0,ariaExpanded:I.value,onMouseenter:D,onMouseleave:()=>A(!0),onFocus:D},[re])}}});const gy=pe({mode:{type:String,values:["horizontal","vertical"],default:"vertical"},defaultActive:{type:String,default:""},defaultOpeneds:{type:te(Array),default:()=>Ct([])},uniqueOpened:Boolean,router:Boolean,menuTrigger:{type:String,values:["hover","click"],default:"hover"},collapse:Boolean,backgroundColor:String,textColor:String,activeTextColor:String,collapseTransition:{type:Boolean,default:!0},ellipsis:{type:Boolean,default:!0}}),Fl=e=>Array.isArray(e)&&e.every(t=>He(t)),by={close:(e,t)=>He(e)&&Fl(t),open:(e,t)=>He(e)&&Fl(t),select:(e,t,n,o)=>He(e)&&Fl(t)&&Mt(n)&&(o===void 0||o instanceof Promise)};var yy=se({name:"ElMenu",props:gy,emits:by,setup(e,{emit:t,slots:n,expose:o}){const l=De(),s=l.appContext.config.globalProperties.$router,r=P(),u=le("menu"),i=le("sub-menu"),c=P(e.defaultOpeneds&&!e.collapse?e.defaultOpeneds.slice(0):[]),f=P(e.defaultActive),h=P({}),p=P({}),d=$(()=>e.mode==="horizontal"||e.mode==="vertical"&&e.collapse),v=()=>{const T=f.value&&h.value[f.value];if(!T||e.mode==="horizontal"||e.collapse)return;T.indexPath.forEach(O=>{const V=p.value[O];V&&m(O,V.indexPath)})},m=(T,B)=>{c.value.includes(T)||(e.uniqueOpened&&(c.value=c.value.filter(O=>B.includes(O))),c.value.push(T),t("open",T,B))},y=(T,B)=>{const O=c.value.indexOf(T);O!==-1&&c.value.splice(O,1),t("close",T,B)},b=({index:T,indexPath:B})=>{c.value.includes(T)?y(T,B):m(T,B)},C=T=>{(e.mode==="horizontal"||e.collapse)&&(c.value=[]);const{index:B,indexPath:O}=T;if(!(B===void 0||O===void 0))if(e.router&&s){const V=T.route||B,W=s.push(V).then(J=>(J||(f.value=B),J));t("select",B,O,{index:B,indexPath:O,route:V},W)}else f.value=B,t("select",B,O,{index:B,indexPath:O})},g=T=>{const B=h.value,O=B[T]||f.value&&B[f.value]||B[e.defaultActive];O?(f.value=O.index,v()):f.value=T},w=()=>{ke(()=>l.proxy.$forceUpdate())};oe(()=>e.defaultActive,T=>{h.value[T]||(f.value=""),g(T)}),oe(h.value,()=>v()),oe(()=>e.collapse,T=>{T&&(c.value=[])});{const T=W=>{p.value[W.index]=W},B=W=>{delete p.value[W.index]};Fe("rootMenu",rt({props:e,openedMenus:c,items:h,subMenus:p,activeIndex:f,isMenuPopup:d,addMenuItem:W=>{h.value[W.index]=W},removeMenuItem:W=>{delete h.value[W.index]},addSubMenu:T,removeSubMenu:B,openMenu:m,closeMenu:y,handleMenuItemClick:C,handleSubMenuClick:b})),Fe(`subMenu:${l.uid}`,{addSubMenu:T,removeSubMenu:B,mouseInChild:P(!1),level:0})}Re(()=>{v(),e.mode==="horizontal"&&new dy(l.vnode.el,u.namespace.value)}),o({open:B=>{const{indexPath:O}=p.value[B];O.forEach(V=>m(V,O))},close:y,handleResize:w});const M=T=>{const B=Array.isArray(T)?T:[T],O=[];return B.forEach(V=>{Array.isArray(V.children)?O.push(...M(V.children)):O.push(V)}),O},I=T=>e.mode==="horizontal"?Ie(T,[[Cv,w]]):T;return()=>{var T,B,O,V;let W=(B=(T=n.default)==null?void 0:T.call(n))!=null?B:[];const J=[];if(e.mode==="horizontal"&&r.value){const _=Array.from((V=(O=r.value)==null?void 0:O.childNodes)!=null?V:[]).filter(Te=>Te.nodeName!=="#text"||Te.nodeValue),D=M(W),A=64,N=Number.parseInt(getComputedStyle(r.value).paddingLeft,10),R=Number.parseInt(getComputedStyle(r.value).paddingRight,10),G=r.value.clientWidth-N-R;let re=0,ce=0;_.forEach((Te,X)=>{re+=Te.offsetWidth||0,re<=G-A&&(ce=X+1)});const ye=D.slice(0,ce),ge=D.slice(ce);(ge==null?void 0:ge.length)&&e.ellipsis&&(W=ye,J.push(Se(Oa,{index:"sub-menu-more",class:i.e("hide-arrow")},{title:()=>Se(he,{class:i.e("icon-more")},{default:()=>Se(Fu)}),default:()=>ge})))}const F=_i(e,0),U=(_=>e.ellipsis?I(_):_)(Se("ul",{key:String(e.collapse),role:"menubar",ref:r,style:F.value,class:{[u.b()]:!0,[u.m(e.mode)]:!0,[u.m("collapse")]:e.collapse}},[...W,...J]));return e.collapseTransition&&e.mode==="vertical"?Se(vy,()=>U):U}}});const Cy=pe({index:{type:te([String,null]),default:null},route:{type:te([String,Object])},disabled:Boolean}),wy={click:e=>He(e.index)&&Array.isArray(e.indexPath)},zl="ElMenuItem",ky=se({name:zl,components:{ElTooltip:wn},props:Cy,emits:wy,setup(e,{emit:t}){const n=De(),o=fe("rootMenu"),l=le("menu"),s=le("menu-item");o||Ot(zl,"can not inject root menu");const{parentMenu:r,indexPath:u}=Ri(n,ct(e,"index")),i=fe(`subMenu:${r.value.uid}`);i||Ot(zl,"can not inject sub menu");const c=$(()=>e.index===o.activeIndex),f=rt({index:e.index,indexPath:u,active:c}),h=()=>{e.disabled||(o.handleMenuItemClick({index:e.index,indexPath:u.value,route:e.route}),t("click",f))};return Re(()=>{i.addSubMenu(f),o.addMenuItem(f)}),yt(()=>{i.removeSubMenu(f),o.removeMenuItem(f)}),{Effect:Pd,parentMenu:r,rootMenu:o,active:c,nsMenu:l,nsMenuItem:s,handleClick:h}}});function Sy(e,t,n,o,l,s){const r=Ee("el-tooltip");return k(),L("li",{class:S([e.nsMenuItem.b(),e.nsMenuItem.is("active",e.active),e.nsMenuItem.is("disabled",e.disabled)]),role:"menuitem",tabindex:"-1",onClick:t[0]||(t[0]=(...u)=>e.handleClick&&e.handleClick(...u))},[e.parentMenu.type.name==="ElMenu"&&e.rootMenu.props.collapse&&e.$slots.title?(k(),Z(r,{key:0,effect:e.Effect.DARK,placement:"right","fallback-placements":["left"],persistent:""},{content:K(()=>[Q(e.$slots,"title")]),default:K(()=>[x("div",{class:S(e.nsMenu.be("tooltip","trigger"))},[Q(e.$slots,"default")],2)]),_:3},8,["effect"])):(k(),L(Pe,{key:1},[Q(e.$slots,"default"),Q(e.$slots,"title")],64))],2)}var Fi=ie(ky,[["render",Sy],["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-item.vue"]]);const Ey={title:String},$y="ElMenuItemGroup",Ty=se({name:$y,props:Ey,setup(){return{ns:le("menu-item-group")}}});function Ny(e,t,n,o,l,s){return k(),L("li",{class:S(e.ns.b())},[x("div",{class:S(e.ns.e("title"))},[e.$slots.title?Q(e.$slots,"title",{key:1}):(k(),L(Pe,{key:0},[Xe(de(e.title),1)],64))],2),x("ul",null,[Q(e.$slots,"default")])],2)}var zi=ie(Ty,[["render",Ny],["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-item-group.vue"]]);const US=Ke(yy,{MenuItem:Fi,MenuItemGroup:zi,SubMenu:Oa}),YS=mt(Fi);mt(zi);const GS=mt(Oa),Py=pe({icon:{type:Wt,default:()=>zu},title:String,content:{type:String,default:""}}),Iy={back:()=>!0},My={name:"ElPageHeader"},Oy=se({...My,props:Py,emits:Iy,setup(e,{emit:t}){const{t:n}=Je(),o=le("page-header");function l(){t("back")}return(s,r)=>(k(),L("div",{class:S(a(o).b())},[x("div",{class:S(a(o).e("left")),onClick:l},[s.icon||s.$slots.icon?(k(),L("div",{key:0,class:S(a(o).e("icon"))},[Q(s.$slots,"icon",{},()=>[s.icon?(k(),Z(a(he),{key:0},{default:K(()=>[(k(),Z(Ve(s.icon)))]),_:1})):Y("v-if",!0)])],2)):Y("v-if",!0),x("div",{class:S(a(o).e("title"))},[Q(s.$slots,"title",{},()=>[Xe(de(s.title||a(n)("el.pageHeader.title")),1)])],2)],2),x("div",{class:S(a(o).e("content"))},[Q(s.$slots,"content",{},()=>[Xe(de(s.content),1)])],2)],2))}});var Ay=ie(Oy,[["__file","/home/runner/work/element-plus/element-plus/packages/components/page-header/src/page-header.vue"]]);const XS=Ke(Ay),By=pe({disabled:Boolean,currentPage:{type:Number,default:1},prevText:{type:String}}),Dy={click:e=>e instanceof MouseEvent},Ly=["disabled","aria-disabled"],Ry={key:0},_y={name:"ElPaginationPrev"},Fy=se({..._y,props:By,emits:Dy,setup(e){const t=e,n=$(()=>t.disabled||t.currentPage<=1);return(o,l)=>(k(),L("button",{type:"button",class:"btn-prev",disabled:a(n),"aria-disabled":a(n),onClick:l[0]||(l[0]=s=>o.$emit("click",s))},[o.prevText?(k(),L("span",Ry,de(o.prevText),1)):(k(),Z(a(he),{key:1},{default:K(()=>[j(a(to))]),_:1}))],8,Ly))}});var zy=ie(Fy,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/prev.vue"]]);const Vy=pe({disabled:Boolean,currentPage:{type:Number,default:1},pageCount:{type:Number,default:50},nextText:{type:String}}),Hy=["disabled","aria-disabled"],Ky={key:0},Wy={name:"ElPaginationNext"},jy=se({...Wy,props:Vy,emits:["click"],setup(e){const t=e,n=$(()=>t.disabled||t.currentPage===t.pageCount||t.pageCount===0);return(o,l)=>(k(),L("button",{type:"button",class:"btn-next",disabled:a(n),"aria-disabled":a(n),onClick:l[0]||(l[0]=s=>o.$emit("click",s))},[o.nextText?(k(),L("span",Ky,de(o.nextText),1)):(k(),Z(a(he),{key:1},{default:K(()=>[j(a(ln))]),_:1}))],8,Hy))}});var xy=ie(jy,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/next.vue"]]);const Vi="ElSelectGroup",Tl="ElSelect";function qy(e,t){const n=fe(Tl),o=fe(Vi,{disabled:!1}),l=$(()=>Object.prototype.toString.call(e.value).toLowerCase()==="[object object]"),s=$(()=>n.props.multiple?h(n.props.modelValue,e.value):p(e.value,n.props.modelValue)),r=$(()=>{if(n.props.multiple){const m=n.props.modelValue||[];return!s.value&&m.length>=n.props.multipleLimit&&n.props.multipleLimit>0}else return!1}),u=$(()=>e.label||(l.value?"":e.value)),i=$(()=>e.value||e.label||""),c=$(()=>e.disabled||t.groupDisabled||r.value),f=De(),h=(m=[],y)=>{if(l.value){const b=n.props.valueKey;return m&&m.some(C=>Tt(C,b)===Tt(y,b))}else return m&&m.includes(y)},p=(m,y)=>{if(l.value){const{valueKey:b}=n.props;return Tt(m,b)===Tt(y,b)}else return m===y},d=()=>{!e.disabled&&!o.disabled&&(n.hoverIndex=n.optionsArray.indexOf(f.proxy))};oe(()=>u.value,()=>{!e.created&&!n.props.remote&&n.setSelected()}),oe(()=>e.value,(m,y)=>{const{remote:b,valueKey:C}=n.props;if(!e.created&&!b){if(C&&typeof m=="object"&&typeof y=="object"&&m[C]===y[C])return;n.setSelected()}}),oe(()=>o.disabled,()=>{t.groupDisabled=o.disabled},{immediate:!0});const{queryChange:v}=Gs(n);return oe(v,m=>{const{query:y}=a(m),b=new RegExp(uc(y),"i");t.visible=b.test(u.value)||e.created,t.visible||n.filteredOptionsCount--}),{select:n,currentLabel:u,currentValue:i,itemSelected:s,isDisabled:c,hoverItem:d}}const Uy=se({name:"ElOption",componentName:"ElOption",props:{value:{required:!0,type:[String,Number,Boolean,Object]},label:[String,Number],created:Boolean,disabled:{type:Boolean,default:!1}},setup(e){const t=le("select"),n=rt({index:-1,groupDisabled:!1,visible:!0,hitState:!1,hover:!1}),{currentLabel:o,itemSelected:l,isDisabled:s,select:r,hoverItem:u}=qy(e,n),{visible:i,hover:c}=_t(n),f=De().proxy,h=f.value;r.onOptionCreate(f),yt(()=>{const{selected:d}=r,m=(r.props.multiple?d:[d]).some(y=>y.value===f.value);r.cachedOptions.get(h)===f&&!m&&ke(()=>{r.cachedOptions.delete(h)}),r.onOptionDestroy(h,f)});function p(){e.disabled!==!0&&n.groupDisabled!==!0&&r.handleOptionSelect(f,!0)}return{ns:t,currentLabel:o,itemSelected:l,isDisabled:s,select:r,hoverItem:u,visible:i,hover:c,selectOptionClick:p,states:n}}});function Yy(e,t,n,o,l,s){return Ie((k(),L("li",{class:S([e.ns.be("dropdown","item"),e.ns.is("disabled",e.isDisabled),{selected:e.itemSelected,hover:e.hover}]),onMouseenter:t[0]||(t[0]=(...r)=>e.hoverItem&&e.hoverItem(...r)),onClick:t[1]||(t[1]=Oe((...r)=>e.selectOptionClick&&e.selectOptionClick(...r),["stop"]))},[Q(e.$slots,"default",{},()=>[x("span",null,de(e.currentLabel),1)])],34)),[[Ye,e.visible]])}var Aa=ie(Uy,[["render",Yy],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/option.vue"]]);const Gy=se({name:"ElSelectDropdown",componentName:"ElSelectDropdown",setup(){const e=fe(Tl),t=le("select"),n=$(()=>e.props.popperClass),o=$(()=>e.props.multiple),l=$(()=>e.props.fitInputWidth),s=P("");function r(){var u;s.value=`${(u=e.selectWrapper)==null?void 0:u.offsetWidth}px`}return Re(()=>{r(),yn(e.selectWrapper,r)}),{ns:t,minWidth:s,popperClass:n,isMultiple:o,isFitInputWidth:l}}});function Xy(e,t,n,o,l,s){return k(),L("div",{class:S([e.ns.b("dropdown"),e.ns.is("multiple",e.isMultiple),e.popperClass]),style:$e({[e.isFitInputWidth?"width":"minWidth"]:e.minWidth})},[Q(e.$slots,"default")],6)}var Jy=ie(Gy,[["render",Xy],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/select-dropdown.vue"]]);function Zy(e){const{t}=Je();return rt({options:new Map,cachedOptions:new Map,createdLabel:null,createdSelected:!1,selected:e.multiple?[]:{},inputLength:20,inputWidth:0,optionsCount:0,filteredOptionsCount:0,visible:!1,softFocus:!1,selectedLabel:"",hoverIndex:-1,query:"",previousQuery:null,inputHovering:!1,cachedPlaceHolder:"",currentPlaceholder:t("el.select.placeholder"),menuVisibleOnFocus:!1,isOnComposition:!1,isSilentBlur:!1,prefixWidth:11,tagInMultiLine:!1})}const Qy=(e,t,n)=>{const{t:o}=Je(),l=le("select"),s=P(null),r=P(null),u=P(null),i=P(null),c=P(null),f=P(null),h=P(-1),p=Ht({query:""}),d=Ht(""),v=fe(dn,{}),m=fe(Ut,{}),y=$(()=>!e.filterable||e.multiple||!t.visible),b=$(()=>e.disabled||v.disabled),C=$(()=>{const E=e.multiple?Array.isArray(e.modelValue)&&e.modelValue.length>0:e.modelValue!==void 0&&e.modelValue!==null&&e.modelValue!=="";return e.clearable&&!b.value&&t.inputHovering&&E}),g=$(()=>e.remote&&e.filterable?"":e.suffixIcon),w=$(()=>l.is("reverse",g.value&&t.visible)),M=$(()=>e.remote?300:0),I=$(()=>e.loading?e.loadingText||o("el.select.loading"):e.remote&&t.query===""&&t.options.size===0?!1:e.filterable&&t.query&&t.options.size>0&&t.filteredOptionsCount===0?e.noMatchText||o("el.select.noMatch"):t.options.size===0?e.noDataText||o("el.select.noData"):null),T=$(()=>Array.from(t.options.values())),B=$(()=>Array.from(t.cachedOptions.values())),O=$(()=>{const E=T.value.filter(z=>!z.created).some(z=>z.currentLabel===t.query);return e.filterable&&e.allowCreate&&t.query!==""&&!E}),V=kt(),W=$(()=>["small"].includes(V.value)?"small":"default"),J=$({get(){return t.visible&&I.value!==!1},set(E){t.visible=E}});oe([()=>b.value,()=>V.value,()=>v.size],()=>{ke(()=>{F()})}),oe(()=>e.placeholder,E=>{t.cachedPlaceHolder=t.currentPlaceholder=E}),oe(()=>e.modelValue,(E,z)=>{var ee;e.multiple&&(F(),E&&E.length>0||r.value&&t.query!==""?t.currentPlaceholder="":t.currentPlaceholder=t.cachedPlaceHolder,e.filterable&&!e.reserveKeyword&&(t.query="",H(t.query))),D(),e.filterable&&!e.multiple&&(t.inputLength=20),!oo(E,z)&&e.validateEvent&&((ee=m.validate)==null||ee.call(m,"change").catch(me=>void 0))},{flush:"post",deep:!0}),oe(()=>t.visible,E=>{var z,ee,me;E?((ee=(z=u.value)==null?void 0:z.updatePopper)==null||ee.call(z),e.filterable&&(t.filteredOptionsCount=t.optionsCount,t.query=e.remote?"":t.selectedLabel,e.multiple?(me=r.value)==null||me.focus():t.selectedLabel&&(t.currentPlaceholder=`${t.selectedLabel}`,t.selectedLabel=""),H(t.query),!e.multiple&&!e.remote&&(p.value.query="",wo(p),wo(d)))):(r.value&&r.value.blur(),t.query="",t.previousQuery=null,t.selectedLabel="",t.inputLength=20,t.menuVisibleOnFocus=!1,N(),ke(()=>{r.value&&r.value.value===""&&t.selected.length===0&&(t.currentPlaceholder=t.cachedPlaceHolder)}),e.multiple||(t.selected&&(e.filterable&&e.allowCreate&&t.createdSelected&&t.createdLabel?t.selectedLabel=t.createdLabel:t.selectedLabel=t.selected.currentLabel,e.filterable&&(t.query=t.selectedLabel)),e.filterable&&(t.currentPlaceholder=t.cachedPlaceHolder))),n.emit("visible-change",E)}),oe(()=>t.options.entries(),()=>{var E,z,ee;if(!je)return;(z=(E=u.value)==null?void 0:E.updatePopper)==null||z.call(E),e.multiple&&F();const me=((ee=c.value)==null?void 0:ee.querySelectorAll("input"))||[];Array.from(me).includes(document.activeElement)||D(),e.defaultFirstOption&&(e.filterable||e.remote)&&t.filteredOptionsCount&&_()},{flush:"post"}),oe(()=>t.hoverIndex,E=>{typeof E=="number"&&E>-1&&(h.value=T.value[E]||{}),T.value.forEach(z=>{z.hover=h.value===z})});const F=()=>{e.collapseTags&&!e.filterable||ke(()=>{var E,z;if(!s.value)return;const ee=s.value.$el.querySelector("input"),me=i.value,ue=kc(V.value||v.size);ee.style.height=`${(t.selected.length===0?ue:Math.max(me?me.clientHeight+(me.clientHeight>ue?6:0):0,ue))-2}px`,t.tagInMultiLine=Number.parseFloat(ee.style.height)>=ue,t.visible&&I.value!==!1&&((z=(E=u.value)==null?void 0:E.updatePopper)==null||z.call(E))})},H=E=>{if(!(t.previousQuery===E||t.isOnComposition)){if(t.previousQuery===null&&(typeof e.filterMethod=="function"||typeof e.remoteMethod=="function")){t.previousQuery=E;return}t.previousQuery=E,ke(()=>{var z,ee;t.visible&&((ee=(z=u.value)==null?void 0:z.updatePopper)==null||ee.call(z))}),t.hoverIndex=-1,e.multiple&&e.filterable&&ke(()=>{const z=r.value.value.length*15+20;t.inputLength=e.collapseTags?Math.min(50,z):z,U(),F()}),e.remote&&typeof e.remoteMethod=="function"?(t.hoverIndex=-1,e.remoteMethod(E)):typeof e.filterMethod=="function"?(e.filterMethod(E),wo(d)):(t.filteredOptionsCount=t.optionsCount,p.value.query=E,wo(p),wo(d)),e.defaultFirstOption&&(e.filterable||e.remote)&&t.filteredOptionsCount&&_()}},U=()=>{t.currentPlaceholder!==""&&(t.currentPlaceholder=r.value.value?"":t.cachedPlaceHolder)},_=()=>{const E=T.value.filter(me=>me.visible&&!me.disabled&&!me.states.groupDisabled),z=E.find(me=>me.created),ee=E[0];t.hoverIndex=Le(T.value,z||ee)},D=()=>{var E;if(e.multiple)t.selectedLabel="";else{const ee=A(e.modelValue);(E=ee.props)!=null&&E.created?(t.createdLabel=ee.props.value,t.createdSelected=!0):t.createdSelected=!1,t.selectedLabel=ee.currentLabel,t.selected=ee,e.filterable&&(t.query=t.selectedLabel);return}const z=[];Array.isArray(e.modelValue)&&e.modelValue.forEach(ee=>{z.push(A(ee))}),t.selected=z,ke(()=>{F()})},A=E=>{let z;const ee=Nl(E).toLowerCase()==="object",me=Nl(E).toLowerCase()==="null",ue=Nl(E).toLowerCase()==="undefined";for(let dt=t.cachedOptions.size-1;dt>=0;dt--){const ut=B.value[dt];if(ee?Tt(ut.value,e.valueKey)===Tt(E,e.valueKey):ut.value===E){z={value:E,currentLabel:ut.currentLabel,isDisabled:ut.isDisabled};break}}if(z)return z;const Ce=ee?E.label:!me&&!ue?E:"",we={value:E,currentLabel:Ce};return e.multiple&&(we.hitState=!1),we},N=()=>{setTimeout(()=>{const E=e.valueKey;e.multiple?t.selected.length>0?t.hoverIndex=Math.min.apply(null,t.selected.map(z=>T.value.findIndex(ee=>Tt(ee,E)===Tt(z,E)))):t.hoverIndex=-1:t.hoverIndex=T.value.findIndex(z=>Qe(z)===Qe(t.selected))},300)},R=()=>{var E,z;G(),(z=(E=u.value)==null?void 0:E.updatePopper)==null||z.call(E),e.multiple&&!e.filterable&&F()},G=()=>{var E;t.inputWidth=(E=s.value)==null?void 0:E.$el.getBoundingClientRect().width},re=()=>{e.filterable&&t.query!==t.selectedLabel&&(t.query=t.selectedLabel,H(t.query))},ce=mn(()=>{re()},M.value),ye=mn(E=>{H(E.target.value)},M.value),ge=E=>{oo(e.modelValue,E)||n.emit(gn,E)},Te=E=>{if(E.target.value.length<=0&&!it()){const z=e.modelValue.slice();z.pop(),n.emit(qe,z),ge(z)}E.target.value.length===1&&e.modelValue.length===0&&(t.currentPlaceholder=t.cachedPlaceHolder)},X=(E,z)=>{const ee=t.selected.indexOf(z);if(ee>-1&&!b.value){const me=e.modelValue.slice();me.splice(ee,1),n.emit(qe,me),ge(me),n.emit("remove-tag",z.value)}E.stopPropagation()},ve=E=>{E.stopPropagation();const z=e.multiple?[]:"";if(typeof z!="string")for(const ee of t.selected)ee.isDisabled&&z.push(ee.value);n.emit(qe,z),ge(z),t.visible=!1,n.emit("clear")},Ne=(E,z)=>{var ee;if(e.multiple){const me=(e.modelValue||[]).slice(),ue=Le(me,E.value);ue>-1?me.splice(ue,1):(e.multipleLimit<=0||me.length{Ze(E)})},Le=(E=[],z)=>{if(!Mt(z))return E.indexOf(z);const ee=e.valueKey;let me=-1;return E.some((ue,Ce)=>Tt(ue,ee)===Tt(z,ee)?(me=Ce,!0):!1),me},Ge=()=>{t.softFocus=!0;const E=r.value||s.value;E&&(E==null||E.focus())},Ze=E=>{var z,ee,me,ue,Ce;const we=Array.isArray(E)?E[0]:E;let dt=null;if(we!=null&&we.value){const ut=T.value.filter(nt=>nt.value===we.value);ut.length>0&&(dt=ut[0].$el)}if(u.value&&dt){const ut=(ue=(me=(ee=(z=u.value)==null?void 0:z.popperRef)==null?void 0:ee.contentRef)==null?void 0:me.querySelector)==null?void 0:ue.call(me,`.${l.be("dropdown","wrap")}`);ut&&mc(ut,dt)}(Ce=f.value)==null||Ce.handleScroll()},Ue=E=>{t.optionsCount++,t.filteredOptionsCount++,t.options.set(E.value,E),t.cachedOptions.set(E.value,E)},ht=(E,z)=>{t.options.get(E)===z&&(t.optionsCount--,t.filteredOptionsCount--,t.options.delete(E))},Ae=E=>{E.code!==be.backspace&&it(!1),t.inputLength=r.value.value.length*15+20,F()},it=E=>{if(!Array.isArray(t.selected))return;const z=t.selected[t.selected.length-1];if(!!z)return E===!0||E===!1?(z.hitState=E,E):(z.hitState=!z.hitState,z.hitState)},lt=E=>{const z=E.target.value;if(E.type==="compositionend")t.isOnComposition=!1,ke(()=>H(z));else{const ee=z[z.length-1]||"";t.isOnComposition=!ur(ee)}},ft=()=>{ke(()=>Ze(t.selected))},gt=E=>{t.softFocus?t.softFocus=!1:((e.automaticDropdown||e.filterable)&&(e.filterable&&!t.visible&&(t.menuVisibleOnFocus=!0),t.visible=!0),n.emit("focus",E))},et=()=>{var E;t.visible=!1,(E=s.value)==null||E.blur()},st=E=>{ke(()=>{t.isSilentBlur?t.isSilentBlur=!1:n.emit("blur",E)}),t.softFocus=!1},Et=E=>{ve(E)},bt=()=>{t.visible=!1},ae=E=>{t.visible&&(E.preventDefault(),E.stopPropagation(),t.visible=!1)},Be=()=>{var E;e.automaticDropdown||b.value||(t.menuVisibleOnFocus?t.menuVisibleOnFocus=!1:t.visible=!t.visible,t.visible&&((E=r.value||s.value)==null||E.focus()))},_e=()=>{t.visible?T.value[t.hoverIndex]&&Ne(T.value[t.hoverIndex],void 0):Be()},Qe=E=>Mt(E.value)?Tt(E.value,e.valueKey):E.value,q=$(()=>T.value.filter(E=>E.visible).every(E=>E.disabled)),ne=E=>{if(!t.visible){t.visible=!0;return}if(!(t.options.size===0||t.filteredOptionsCount===0)&&!t.isOnComposition&&!q.value){E==="next"?(t.hoverIndex++,t.hoverIndex===t.options.size&&(t.hoverIndex=0)):E==="prev"&&(t.hoverIndex--,t.hoverIndex<0&&(t.hoverIndex=t.options.size-1));const z=T.value[t.hoverIndex];(z.disabled===!0||z.states.groupDisabled===!0||!z.visible)&&ne(E),ke(()=>Ze(h.value))}};return{optionsArray:T,selectSize:V,handleResize:R,debouncedOnInputChange:ce,debouncedQueryChange:ye,deletePrevTag:Te,deleteTag:X,deleteSelected:ve,handleOptionSelect:Ne,scrollToOption:Ze,readonly:y,resetInputHeight:F,showClose:C,iconComponent:g,iconReverse:w,showNewOption:O,collapseTagSize:W,setSelected:D,managePlaceholder:U,selectDisabled:b,emptyText:I,toggleLastOptionHitState:it,resetInputState:Ae,handleComposition:lt,onOptionCreate:Ue,onOptionDestroy:ht,handleMenuEnter:ft,handleFocus:gt,blur:et,handleBlur:st,handleClearClick:Et,handleClose:bt,handleKeydownEscape:ae,toggleMenu:Be,selectOption:_e,getValueKey:Qe,navigateOptions:ne,dropMenuVisible:J,queryChange:p,groupQueryChange:d,reference:s,input:r,tooltipRef:u,tags:i,selectWrapper:c,scrollbar:f}},Is="ElSelect",e0=se({name:Is,componentName:Is,components:{ElInput:Vt,ElSelectMenu:Jy,ElOption:Aa,ElTag:mm,ElScrollbar:bo,ElTooltip:wn,ElIcon:he},directives:{ClickOutside:uo},props:{name:String,id:String,modelValue:{type:[Array,String,Number,Boolean,Object],default:void 0},autocomplete:{type:String,default:"off"},automaticDropdown:Boolean,size:{type:String,validator:Cl},effect:{type:String,default:"light"},disabled:Boolean,clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:{type:String,default:""},remote:Boolean,loadingText:String,noMatchText:String,noDataText:String,remoteMethod:Function,filterMethod:Function,multiple:Boolean,multipleLimit:{type:Number,default:0},placeholder:{type:String},defaultFirstOption:Boolean,reserveKeyword:{type:Boolean,default:!0},valueKey:{type:String,default:"value"},collapseTags:Boolean,collapseTagsTooltip:{type:Boolean,default:!1},teleported:Ft.teleported,persistent:{type:Boolean,default:!0},clearIcon:{type:[String,Object],default:Do},fitInputWidth:{type:Boolean,default:!1},suffixIcon:{type:[String,Object],default:gl},tagType:{...di.type,default:"info"},validateEvent:{type:Boolean,default:!0}},emits:[qe,gn,"remove-tag","clear","visible-change","focus","blur"],setup(e,t){const n=le("select"),o=le("input"),{t:l}=Je(),s=Zy(e),{optionsArray:r,selectSize:u,readonly:i,handleResize:c,collapseTagSize:f,debouncedOnInputChange:h,debouncedQueryChange:p,deletePrevTag:d,deleteTag:v,deleteSelected:m,handleOptionSelect:y,scrollToOption:b,setSelected:C,resetInputHeight:g,managePlaceholder:w,showClose:M,selectDisabled:I,iconComponent:T,iconReverse:B,showNewOption:O,emptyText:V,toggleLastOptionHitState:W,resetInputState:J,handleComposition:F,onOptionCreate:H,onOptionDestroy:U,handleMenuEnter:_,handleFocus:D,blur:A,handleBlur:N,handleClearClick:R,handleClose:G,handleKeydownEscape:re,toggleMenu:ce,selectOption:ye,getValueKey:ge,navigateOptions:Te,dropMenuVisible:X,reference:ve,input:Ne,tooltipRef:Le,tags:Ge,selectWrapper:Ze,scrollbar:Ue,queryChange:ht,groupQueryChange:Ae}=Qy(e,s,t),{focus:it}=Pc(ve),{inputWidth:lt,selected:ft,inputLength:gt,filteredOptionsCount:et,visible:st,softFocus:Et,selectedLabel:bt,hoverIndex:ae,query:Be,inputHovering:_e,currentPlaceholder:Qe,menuVisibleOnFocus:q,isOnComposition:ne,isSilentBlur:E,options:z,cachedOptions:ee,optionsCount:me,prefixWidth:ue,tagInMultiLine:Ce}=_t(s),we=$(()=>{const nt=[n.b()],ze=a(u);return ze&&nt.push(n.m(ze)),e.disabled&&nt.push(n.m("disabled")),nt}),dt=$(()=>({maxWidth:`${a(lt)-32}px`,width:"100%"}));Fe(Tl,rt({props:e,options:z,optionsArray:r,cachedOptions:ee,optionsCount:me,filteredOptionsCount:et,hoverIndex:ae,handleOptionSelect:y,onOptionCreate:H,onOptionDestroy:U,selectWrapper:Ze,selected:ft,setSelected:C,queryChange:ht,groupQueryChange:Ae})),Re(()=>{s.cachedPlaceHolder=Qe.value=e.placeholder||l("el.select.placeholder"),e.multiple&&Array.isArray(e.modelValue)&&e.modelValue.length>0&&(Qe.value=""),yn(Ze,c),e.remote&&e.multiple&&g(),ke(()=>{const nt=ve.value&&ve.value.$el;if(!!nt&&(lt.value=nt.getBoundingClientRect().width,t.slots.prefix)){const ze=nt.querySelector(`.${o.e("prefix")}`);ue.value=Math.max(ze.getBoundingClientRect().width+5,30)}}),C()}),e.multiple&&!Array.isArray(e.modelValue)&&t.emit(qe,[]),!e.multiple&&Array.isArray(e.modelValue)&&t.emit(qe,"");const ut=$(()=>{var nt,ze;return(ze=(nt=Le.value)==null?void 0:nt.popperRef)==null?void 0:ze.contentRef});return{tagInMultiLine:Ce,prefixWidth:ue,selectSize:u,readonly:i,handleResize:c,collapseTagSize:f,debouncedOnInputChange:h,debouncedQueryChange:p,deletePrevTag:d,deleteTag:v,deleteSelected:m,handleOptionSelect:y,scrollToOption:b,inputWidth:lt,selected:ft,inputLength:gt,filteredOptionsCount:et,visible:st,softFocus:Et,selectedLabel:bt,hoverIndex:ae,query:Be,inputHovering:_e,currentPlaceholder:Qe,menuVisibleOnFocus:q,isOnComposition:ne,isSilentBlur:E,options:z,resetInputHeight:g,managePlaceholder:w,showClose:M,selectDisabled:I,iconComponent:T,iconReverse:B,showNewOption:O,emptyText:V,toggleLastOptionHitState:W,resetInputState:J,handleComposition:F,handleMenuEnter:_,handleFocus:D,blur:A,handleBlur:N,handleClearClick:R,handleClose:G,handleKeydownEscape:re,toggleMenu:ce,selectOption:ye,getValueKey:ge,navigateOptions:Te,dropMenuVisible:X,focus:it,reference:ve,input:Ne,tooltipRef:Le,popperPaneRef:ut,tags:Ge,selectWrapper:Ze,scrollbar:Ue,wrapperKls:we,selectTagsStyle:dt,nsSelect:n}}}),t0={class:"select-trigger"},n0=["disabled","autocomplete"],o0={style:{height:"100%",display:"flex","justify-content":"center","align-items":"center"}};function l0(e,t,n,o,l,s){const r=Ee("el-tag"),u=Ee("el-tooltip"),i=Ee("el-icon"),c=Ee("el-input"),f=Ee("el-option"),h=Ee("el-scrollbar"),p=Ee("el-select-menu"),d=hl("click-outside");return Ie((k(),L("div",{ref:"selectWrapper",class:S(e.wrapperKls),onClick:t[23]||(t[23]=Oe((...v)=>e.toggleMenu&&e.toggleMenu(...v),["stop"]))},[j(u,{ref:"tooltipRef",visible:e.dropMenuVisible,"onUpdate:visible":t[22]||(t[22]=v=>e.dropMenuVisible=v),placement:"bottom-start",teleported:e.teleported,"popper-class":[e.nsSelect.e("popper"),e.popperClass],"fallback-placements":["bottom-start","top-start","right","left"],effect:e.effect,pure:"",trigger:"click",transition:`${e.nsSelect.namespace.value}-zoom-in-top`,"stop-popper-mouse-event":!1,"gpu-acceleration":!1,persistent:e.persistent,onShow:e.handleMenuEnter},{default:K(()=>[x("div",t0,[e.multiple?(k(),L("div",{key:0,ref:"tags",class:S(e.nsSelect.e("tags")),style:$e(e.selectTagsStyle)},[e.collapseTags&&e.selected.length?(k(),L("span",{key:0,class:S([e.nsSelect.b("tags-wrapper"),{"has-prefix":e.prefixWidth&&e.selected.length}])},[j(r,{closable:!e.selectDisabled&&!e.selected[0].isDisabled,size:e.collapseTagSize,hit:e.selected[0].hitState,type:e.tagType,"disable-transitions":"",onClose:t[0]||(t[0]=v=>e.deleteTag(v,e.selected[0]))},{default:K(()=>[x("span",{class:S(e.nsSelect.e("tags-text")),style:$e({maxWidth:e.inputWidth-123+"px"})},de(e.selected[0].currentLabel),7)]),_:1},8,["closable","size","hit","type"]),e.selected.length>1?(k(),Z(r,{key:0,closable:!1,size:e.collapseTagSize,type:e.tagType,"disable-transitions":""},{default:K(()=>[e.collapseTagsTooltip?(k(),Z(u,{key:0,disabled:e.dropMenuVisible,"fallback-placements":["bottom","top","right","left"],effect:e.effect,placement:"bottom",teleported:!1},{default:K(()=>[x("span",{class:S(e.nsSelect.e("tags-text"))},"+ "+de(e.selected.length-1),3)]),content:K(()=>[x("div",{class:S(e.nsSelect.e("collapse-tags"))},[(k(!0),L(Pe,null,ot(e.selected.slice(1),(v,m)=>(k(),L("div",{key:m,class:S(e.nsSelect.e("collapse-tag"))},[(k(),Z(r,{key:e.getValueKey(v),class:"in-tooltip",closable:!e.selectDisabled&&!v.isDisabled,size:e.collapseTagSize,hit:v.hitState,type:e.tagType,"disable-transitions":"",style:{margin:"2px"},onClose:y=>e.deleteTag(y,v)},{default:K(()=>[x("span",{class:S(e.nsSelect.e("tags-text")),style:$e({maxWidth:e.inputWidth-75+"px"})},de(v.currentLabel),7)]),_:2},1032,["closable","size","hit","type","onClose"]))],2))),128))],2)]),_:1},8,["disabled","effect"])):(k(),L("span",{key:1,class:S(e.nsSelect.e("tags-text"))},"+ "+de(e.selected.length-1),3))]),_:1},8,["size","type"])):Y("v-if",!0)],2)):Y("v-if",!0),Y("
"),e.collapseTags?Y("v-if",!0):(k(),Z(St,{key:1,onAfterLeave:e.resetInputHeight},{default:K(()=>[x("span",{class:S([e.nsSelect.b("tags-wrapper"),{"has-prefix":e.prefixWidth&&e.selected.length}])},[(k(!0),L(Pe,null,ot(e.selected,v=>(k(),Z(r,{key:e.getValueKey(v),closable:!e.selectDisabled&&!v.isDisabled,size:e.collapseTagSize,hit:v.hitState,type:e.tagType,"disable-transitions":"",onClose:m=>e.deleteTag(m,v)},{default:K(()=>[x("span",{class:S(e.nsSelect.e("tags-text")),style:$e({maxWidth:e.inputWidth-75+"px"})},de(v.currentLabel),7)]),_:2},1032,["closable","size","hit","type","onClose"]))),128))],2)]),_:1},8,["onAfterLeave"])),Y("
"),e.filterable?Ie((k(),L("input",{key:2,ref:"input","onUpdate:modelValue":t[1]||(t[1]=v=>e.query=v),type:"text",class:S([e.nsSelect.e("input"),e.nsSelect.is(e.selectSize)]),disabled:e.selectDisabled,autocomplete:e.autocomplete,style:$e({marginLeft:e.prefixWidth&&!e.selected.length||e.tagInMultiLine?`${e.prefixWidth}px`:"",flexGrow:1,width:`${e.inputLength/(e.inputWidth-32)}%`,maxWidth:`${e.inputWidth-42}px`}),onFocus:t[2]||(t[2]=(...v)=>e.handleFocus&&e.handleFocus(...v)),onBlur:t[3]||(t[3]=(...v)=>e.handleBlur&&e.handleBlur(...v)),onKeyup:t[4]||(t[4]=(...v)=>e.managePlaceholder&&e.managePlaceholder(...v)),onKeydown:[t[5]||(t[5]=(...v)=>e.resetInputState&&e.resetInputState(...v)),t[6]||(t[6]=xe(Oe(v=>e.navigateOptions("next"),["prevent"]),["down"])),t[7]||(t[7]=xe(Oe(v=>e.navigateOptions("prev"),["prevent"]),["up"])),t[8]||(t[8]=xe((...v)=>e.handleKeydownEscape&&e.handleKeydownEscape(...v),["esc"])),t[9]||(t[9]=xe(Oe((...v)=>e.selectOption&&e.selectOption(...v),["stop","prevent"]),["enter"])),t[10]||(t[10]=xe((...v)=>e.deletePrevTag&&e.deletePrevTag(...v),["delete"])),t[11]||(t[11]=xe(v=>e.visible=!1,["tab"]))],onCompositionstart:t[12]||(t[12]=(...v)=>e.handleComposition&&e.handleComposition(...v)),onCompositionupdate:t[13]||(t[13]=(...v)=>e.handleComposition&&e.handleComposition(...v)),onCompositionend:t[14]||(t[14]=(...v)=>e.handleComposition&&e.handleComposition(...v)),onInput:t[15]||(t[15]=(...v)=>e.debouncedQueryChange&&e.debouncedQueryChange(...v))},null,46,n0)),[[gu,e.query]]):Y("v-if",!0)],6)):Y("v-if",!0),j(c,{id:e.id,ref:"reference",modelValue:e.selectedLabel,"onUpdate:modelValue":t[16]||(t[16]=v=>e.selectedLabel=v),type:"text",placeholder:e.currentPlaceholder,name:e.name,autocomplete:e.autocomplete,size:e.selectSize,disabled:e.selectDisabled,readonly:e.readonly,"validate-event":!1,class:S([e.nsSelect.is("focus",e.visible)]),tabindex:e.multiple&&e.filterable?-1:void 0,onFocus:e.handleFocus,onBlur:e.handleBlur,onInput:e.debouncedOnInputChange,onPaste:e.debouncedOnInputChange,onCompositionstart:e.handleComposition,onCompositionupdate:e.handleComposition,onCompositionend:e.handleComposition,onKeydown:[t[17]||(t[17]=xe(Oe(v=>e.navigateOptions("next"),["stop","prevent"]),["down"])),t[18]||(t[18]=xe(Oe(v=>e.navigateOptions("prev"),["stop","prevent"]),["up"])),xe(Oe(e.selectOption,["stop","prevent"]),["enter"]),xe(e.handleKeydownEscape,["esc"]),t[19]||(t[19]=xe(v=>e.visible=!1,["tab"]))],onMouseenter:t[20]||(t[20]=v=>e.inputHovering=!0),onMouseleave:t[21]||(t[21]=v=>e.inputHovering=!1)},Jn({suffix:K(()=>[e.iconComponent&&!e.showClose?(k(),Z(i,{key:0,class:S([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.iconReverse])},{default:K(()=>[(k(),Z(Ve(e.iconComponent)))]),_:1},8,["class"])):Y("v-if",!0),e.showClose&&e.clearIcon?(k(),Z(i,{key:1,class:S([e.nsSelect.e("caret"),e.nsSelect.e("icon")]),onClick:e.handleClearClick},{default:K(()=>[(k(),Z(Ve(e.clearIcon)))]),_:1},8,["class","onClick"])):Y("v-if",!0)]),_:2},[e.$slots.prefix?{name:"prefix",fn:K(()=>[x("div",o0,[Q(e.$slots,"prefix")])])}:void 0]),1032,["id","modelValue","placeholder","name","autocomplete","size","disabled","readonly","class","tabindex","onFocus","onBlur","onInput","onPaste","onCompositionstart","onCompositionupdate","onCompositionend","onKeydown"])])]),content:K(()=>[j(p,null,{default:K(()=>[Ie(j(h,{ref:"scrollbar",tag:"ul","wrap-class":e.nsSelect.be("dropdown","wrap"),"view-class":e.nsSelect.be("dropdown","list"),class:S([e.nsSelect.is("empty",!e.allowCreate&&Boolean(e.query)&&e.filteredOptionsCount===0)])},{default:K(()=>[e.showNewOption?(k(),Z(f,{key:0,value:e.query,created:!0},null,8,["value"])):Y("v-if",!0),Q(e.$slots,"default")]),_:3},8,["wrap-class","view-class","class"]),[[Ye,e.options.size>0&&!e.loading]]),e.emptyText&&(!e.allowCreate||e.loading||e.allowCreate&&e.options.size===0)?(k(),L(Pe,{key:0},[e.$slots.empty?Q(e.$slots,"empty",{key:0}):(k(),L("p",{key:1,class:S(e.nsSelect.be("dropdown","empty"))},de(e.emptyText),3))],64)):Y("v-if",!0)]),_:3})]),_:3},8,["visible","teleported","popper-class","effect","transition","persistent","onShow"])],2)),[[d,e.handleClose,e.popperPaneRef]])}var a0=ie(e0,[["render",l0],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/select.vue"]]);const s0=se({name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:{type:Boolean,default:!1}},setup(e){const t=le("select"),n=P(!0),o=De(),l=P([]);Fe(Vi,rt({..._t(e)}));const s=fe(Tl);Re(()=>{l.value=r(o.subTree)});const r=i=>{const c=[];return Array.isArray(i.children)&&i.children.forEach(f=>{var h;f.type&&f.type.name==="ElOption"&&f.component&&f.component.proxy?c.push(f.component.proxy):(h=f.children)!=null&&h.length&&c.push(...r(f))}),c},{groupQueryChange:u}=Gs(s);return oe(u,()=>{n.value=l.value.some(i=>i.visible===!0)}),{visible:n,ns:t}}});function r0(e,t,n,o,l,s){return Ie((k(),L("ul",{class:S(e.ns.be("group","wrap"))},[x("li",{class:S(e.ns.be("group","title"))},de(e.label),3),x("li",null,[x("ul",{class:S(e.ns.b("group"))},[Q(e.$slots,"default")],2)])],2)),[[Ye,e.visible]])}var Hi=ie(s0,[["render",r0],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/option-group.vue"]]);const dl=Ke(a0,{Option:Aa,OptionGroup:Hi}),Zl=mt(Aa);mt(Hi);const Ba=()=>fe(mr,{}),i0=pe({pageSize:{type:Number,required:!0},pageSizes:{type:te(Array),default:()=>Ct([10,20,30,40,50,100])},popperClass:{type:String},disabled:Boolean,size:{type:String,default:"default"}}),u0={name:"ElPaginationSizes"},c0=se({...u0,props:i0,emits:["page-size-change"],setup(e,{emit:t}){const n=e,{t:o}=Je(),l=le("pagination"),s=Ba(),r=P(n.pageSize);oe(()=>n.pageSizes,(c,f)=>{if(!oo(c,f)&&Array.isArray(c)){const h=c.includes(n.pageSize)?n.pageSize:n.pageSizes[0];t("page-size-change",h)}}),oe(()=>n.pageSize,c=>{r.value=c});const u=$(()=>n.pageSizes);function i(c){var f;c!==r.value&&(r.value=c,(f=s.handleSizeChange)==null||f.call(s,Number(c)))}return(c,f)=>(k(),L("span",{class:S(a(l).e("sizes"))},[j(a(dl),{"model-value":r.value,disabled:c.disabled,"popper-class":c.popperClass,size:c.size,onChange:i},{default:K(()=>[(k(!0),L(Pe,null,ot(a(u),h=>(k(),Z(a(Zl),{key:h,value:h,label:h+a(o)("el.pagination.pagesize")},null,8,["value","label"]))),128))]),_:1},8,["model-value","disabled","popper-class","size"])],2))}});var d0=ie(c0,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/sizes.vue"]]);const f0=["disabled"],p0={name:"ElPaginationJumper"},v0=se({...p0,setup(e){const{t}=Je(),n=le("pagination"),{pageCount:o,disabled:l,currentPage:s,changeEvent:r}=Ba(),u=P(),i=$(()=>{var h;return(h=u.value)!=null?h:s==null?void 0:s.value});function c(h){u.value=+h}function f(h){h=Math.trunc(+h),r==null||r(+h),u.value=void 0}return(h,p)=>(k(),L("span",{class:S(a(n).e("jump")),disabled:a(l)},[Xe(de(a(t)("el.pagination.goto"))+" ",1),j(a(Vt),{size:"small",class:S([a(n).e("editor"),a(n).is("in-pagination")]),min:1,max:a(o),disabled:a(l),"model-value":a(i),type:"number","onUpdate:modelValue":c,onChange:f},null,8,["class","max","disabled","model-value"]),Xe(" "+de(a(t)("el.pagination.pageClassifier")),1)],10,f0))}});var m0=ie(v0,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/jumper.vue"]]);const h0=pe({total:{type:Number,default:1e3}}),g0=["disabled"],b0={name:"ElPaginationTotal"},y0=se({...b0,props:h0,setup(e){const{t}=Je(),n=le("pagination"),{disabled:o}=Ba();return(l,s)=>(k(),L("span",{class:S(a(n).e("total")),disabled:a(o)},de(a(t)("el.pagination.total",{total:l.total})),11,g0))}});var C0=ie(y0,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/total.vue"]]);const w0=pe({currentPage:{type:Number,default:1},pageCount:{type:Number,required:!0},pagerCount:{type:Number,default:7},disabled:Boolean}),k0=["onKeyup"],S0=["aria-current","tabindex"],E0=["tabindex"],$0=["aria-current","tabindex"],T0=["tabindex"],N0=["aria-current","tabindex"],P0={name:"ElPaginationPager"},I0=se({...P0,props:w0,emits:["change"],setup(e,{emit:t}){const n=e,o=le("pager"),l=le("icon"),s=P(!1),r=P(!1),u=P(!1),i=P(!1),c=P(!1),f=P(!1),h=$(()=>{const b=n.pagerCount,C=(b-1)/2,g=Number(n.currentPage),w=Number(n.pageCount);let M=!1,I=!1;w>b&&(g>b-C&&(M=!0),gn.disabled?-1:0);Nn(()=>{const b=(n.pagerCount-1)/2;s.value=!1,r.value=!1,n.pageCount>n.pagerCount&&(n.currentPage>n.pagerCount-b&&(s.value=!0),n.currentPagew&&(g=w)),g!==M&&t("change",g)}return(b,C)=>(k(),L("ul",{class:S(a(o).b()),onClick:y,onKeyup:xe(m,["enter"])},[b.pageCount>0?(k(),L("li",{key:0,class:S([[a(o).is("active",b.currentPage===1),a(o).is("disabled",b.disabled)],"number"]),"aria-current":b.currentPage===1,tabindex:a(p)}," 1 ",10,S0)):Y("v-if",!0),s.value?(k(),L("li",{key:1,class:S(["more","btn-quickprev",a(l).b(),a(o).is("disabled",b.disabled)]),tabindex:a(p),onMouseenter:C[0]||(C[0]=g=>d(!0)),onMouseleave:C[1]||(C[1]=g=>u.value=!1),onFocus:C[2]||(C[2]=g=>v(!0)),onBlur:C[3]||(C[3]=g=>c.value=!1)},[u.value||c.value?(k(),Z(a(eo),{key:0})):(k(),Z(a(Wa),{key:1}))],42,E0)):Y("v-if",!0),(k(!0),L(Pe,null,ot(a(h),g=>(k(),L("li",{key:g,class:S([[a(o).is("active",b.currentPage===g),a(o).is("disabled",b.disabled)],"number"]),"aria-current":b.currentPage===g,tabindex:a(p)},de(g),11,$0))),128)),r.value?(k(),L("li",{key:2,class:S(["more","btn-quicknext",a(l).b(),a(o).is("disabled",b.disabled)]),tabindex:a(p),onMouseenter:C[4]||(C[4]=g=>d()),onMouseleave:C[5]||(C[5]=g=>i.value=!1),onFocus:C[6]||(C[6]=g=>v()),onBlur:C[7]||(C[7]=g=>f.value=!1)},[i.value||f.value?(k(),Z(a(no),{key:0})):(k(),Z(a(Wa),{key:1}))],42,T0)):Y("v-if",!0),b.pageCount>1?(k(),L("li",{key:3,class:S([[a(o).is("active",b.currentPage===b.pageCount),a(o).is("disabled",b.disabled)],"number"]),"aria-current":b.currentPage===b.pageCount,tabindex:a(p)},de(b.pageCount),11,N0)):Y("v-if",!0)],42,k0))}});var M0=ie(I0,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/pager.vue"]]);const $t=e=>typeof e!="number",O0=pe({total:Number,pageSize:Number,defaultPageSize:Number,currentPage:Number,defaultCurrentPage:Number,pageCount:Number,pagerCount:{type:Number,validator:e=>typeof e=="number"&&Math.trunc(e)===e&&e>4&&e<22&&e%2===1,default:7},layout:{type:String,default:["prev","pager","next","jumper","->","total"].join(", ")},pageSizes:{type:te(Array),default:()=>Ct([10,20,30,40,50,100])},popperClass:{type:String,default:""},prevText:{type:String,default:""},nextText:{type:String,default:""},small:Boolean,background:Boolean,disabled:Boolean,hideOnSinglePage:Boolean}),A0={"update:current-page":e=>typeof e=="number","update:page-size":e=>typeof e=="number","size-change":e=>typeof e=="number","current-change":e=>typeof e=="number","prev-click":e=>typeof e=="number","next-click":e=>typeof e=="number"},Ms="ElPagination";var B0=se({name:Ms,props:O0,emits:A0,setup(e,{emit:t,slots:n}){const{t:o}=Je(),l=le("pagination"),s=De().vnode.props||{},r="onUpdate:currentPage"in s||"onUpdate:current-page"in s||"onCurrentChange"in s,u="onUpdate:pageSize"in s||"onUpdate:page-size"in s||"onSizeChange"in s,i=$(()=>{if($t(e.total)&&$t(e.pageCount)||!$t(e.currentPage)&&!r)return!1;if(e.layout.includes("sizes")){if($t(e.pageCount)){if(!$t(e.total)&&!$t(e.pageSize)&&!u)return!1}else if(!u)return!1}return!0}),c=P($t(e.defaultPageSize)?10:e.defaultPageSize),f=P($t(e.defaultCurrentPage)?1:e.defaultCurrentPage),h=$({get(){return $t(e.pageSize)?c.value:e.pageSize},set(g){$t(e.pageSize)&&(c.value=g),u&&(t("update:page-size",g),t("size-change",g))}}),p=$(()=>{let g=0;return $t(e.pageCount)?$t(e.total)||(g=Math.max(1,Math.ceil(e.total/h.value))):g=e.pageCount,g}),d=$({get(){return $t(e.currentPage)?f.value:e.currentPage},set(g){let w=g;g<1?w=1:g>p.value&&(w=p.value),$t(e.currentPage)&&(f.value=w),r&&(t("update:current-page",w),t("current-change",w))}});oe(p,g=>{d.value>g&&(d.value=g)});function v(g){d.value=g}function m(g){h.value=g;const w=p.value;d.value>w&&(d.value=w)}function y(){e.disabled||(d.value-=1,t("prev-click",d.value))}function b(){e.disabled||(d.value+=1,t("next-click",d.value))}function C(g,w){g&&(g.props||(g.props={}),g.props.class=[g.props.class,w].join(" "))}return Fe(mr,{pageCount:p,disabled:$(()=>e.disabled),currentPage:d,changeEvent:v,handleSizeChange:m}),()=>{var g,w;if(!i.value)return o("el.pagination.deprecationWarning"),null;if(!e.layout||e.hideOnSinglePage&&p.value<=1)return null;const M=[],I=[],T=Se("div",{class:l.e("rightwrapper")},I),B={prev:Se(zy,{disabled:e.disabled,currentPage:d.value,prevText:e.prevText,onClick:y}),jumper:Se(m0),pager:Se(M0,{currentPage:d.value,pageCount:p.value,pagerCount:e.pagerCount,onChange:v,disabled:e.disabled}),next:Se(xy,{disabled:e.disabled,currentPage:d.value,pageCount:p.value,nextText:e.nextText,onClick:b}),sizes:Se(d0,{pageSize:h.value,pageSizes:e.pageSizes,popperClass:e.popperClass,disabled:e.disabled,size:e.small?"small":"default"}),slot:(w=(g=n==null?void 0:n.default)==null?void 0:g.call(n))!=null?w:null,total:Se(C0,{total:$t(e.total)?0:e.total})},O=e.layout.split(",").map(W=>W.trim());let V=!1;return O.forEach(W=>{if(W==="->"){V=!0;return}V?I.push(B[W]):M.push(B[W])}),C(M[0],l.is("first")),C(M[M.length-1],l.is("last")),V&&I.length>0&&(C(I[0],l.is("first")),C(I[I.length-1],l.is("last")),M.push(T)),Se("div",{role:"pagination","aria-label":"pagination",class:[l.b(),l.is("background",e.background),{[l.m("small")]:e.small}]},M)}}});const JS=Ke(B0),D0=pe({trigger:Mo.trigger,placement:Zo.placement,disabled:Mo.disabled,visible:Ft.visible,transition:Ft.transition,popperOptions:Zo.popperOptions,tabindex:Zo.tabindex,content:Ft.content,popperStyle:Ft.popperStyle,popperClass:Ft.popperClass,enterable:{...Ft.enterable,default:!0},effect:{...Ft.effect,default:"light"},teleported:Ft.teleported,title:String,width:{type:[String,Number],default:150},offset:{type:Number,default:void 0},showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0},showArrow:{type:Boolean,default:!0},persistent:{type:Boolean,default:!0}}),L0={"update:visible":e=>It(e),"before-enter":()=>!0,"before-leave":()=>!0,"after-enter":()=>!0,"after-leave":()=>!0},R0={name:"ElPopover"},_0=se({...R0,props:D0,emits:L0,setup(e,{expose:t,emit:n}){const o=e,l=le("popover"),s=P(),r=$(()=>{var m;return(m=a(s))==null?void 0:m.popperRef}),u=$(()=>[{width:Kt(o.width)},o.popperStyle]),i=$(()=>[l.b(),o.popperClass,{[l.m("plain")]:!!o.content}]),c=$(()=>o.transition==="el-fade-in-linear"),f=()=>{var m;(m=s.value)==null||m.hide()},h=()=>{n("before-enter")},p=()=>{n("before-leave")},d=()=>{n("after-enter")},v=()=>{n("update:visible",!1),n("after-leave")};return t({popperRef:r,hide:f}),(m,y)=>(k(),Z(a(wn),vt({ref_key:"tooltipRef",ref:s},m.$attrs,{trigger:m.trigger,placement:m.placement,disabled:m.disabled,visible:m.visible,transition:m.transition,"popper-options":m.popperOptions,tabindex:m.tabindex,content:m.content,offset:m.offset,"show-after":m.showAfter,"hide-after":m.hideAfter,"auto-close":m.autoClose,"show-arrow":m.showArrow,"aria-label":m.title,effect:m.effect,enterable:m.enterable,"popper-class":a(i),"popper-style":a(u),teleported:m.teleported,persistent:m.persistent,"gpu-acceleration":a(c),onBeforeShow:h,onBeforeHide:p,onShow:d,onHide:v}),{content:K(()=>[m.title?(k(),L("div",{key:0,class:S(a(l).e("title")),role:"title"},de(m.title),3)):Y("v-if",!0),Q(m.$slots,"default",{},()=>[Xe(de(m.content),1)])]),default:K(()=>[m.$slots.reference?Q(m.$slots,"reference",{key:0}):Y("v-if",!0)]),_:3},16,["trigger","placement","disabled","visible","transition","popper-options","tabindex","content","offset","show-after","hide-after","auto-close","show-arrow","aria-label","effect","enterable","popper-class","popper-style","teleported","persistent","gpu-acceleration"]))}});var F0=ie(_0,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popover/src/popover.vue"]]);const Os=(e,t)=>{const n=t.arg||t.value,o=n==null?void 0:n.popperRef;o&&(o.triggerRef=e)};var z0={mounted(e,t){Os(e,t)},updated(e,t){Os(e,t)}};const V0="popover",H0=yc(z0,V0),ZS=Ke(F0,{directive:H0}),K0=pe({type:{type:String,default:"line",values:["line","circle","dashboard"]},percentage:{type:Number,default:0,validator:e=>e>=0&&e<=100},status:{type:String,default:"",values:["","success","exception","warning"]},indeterminate:{type:Boolean,default:!1},duration:{type:Number,default:3},strokeWidth:{type:Number,default:6},strokeLinecap:{type:te(String),default:"round"},textInside:{type:Boolean,default:!1},width:{type:Number,default:126},showText:{type:Boolean,default:!0},color:{type:te([String,Array,Function]),default:""},format:{type:te(Function),default:e=>`${e}%`}}),W0=["aria-valuenow"],j0={viewBox:"0 0 100 100"},x0=["d","stroke","stroke-width"],q0=["d","stroke","opacity","stroke-linecap","stroke-width"],U0={key:0},Y0={name:"ElProgress"},G0=se({...Y0,props:K0,setup(e){const t=e,n={success:"#13ce66",exception:"#ff4949",warning:"#e6a23c",default:"#20a0ff"},o=le("progress"),l=$(()=>({width:`${t.percentage}%`,animationDuration:`${t.duration}s`,backgroundColor:C(t.percentage)})),s=$(()=>(t.strokeWidth/t.width*100).toFixed(1)),r=$(()=>["circle","dashboard"].includes(t.type)?Number.parseInt(`${50-Number.parseFloat(s.value)/2}`,10):0),u=$(()=>{const g=r.value,w=t.type==="dashboard";return` M 50 50 m 0 ${w?"":"-"}${g} a ${g} ${g} 0 1 1 0 ${w?"-":""}${g*2} a ${g} ${g} 0 1 1 0 ${w?"":"-"}${g*2} `}),i=$(()=>2*Math.PI*r.value),c=$(()=>t.type==="dashboard"?.75:1),f=$(()=>`${-1*i.value*(1-c.value)/2}px`),h=$(()=>({strokeDasharray:`${i.value*c.value}px, ${i.value}px`,strokeDashoffset:f.value})),p=$(()=>({strokeDasharray:`${i.value*c.value*(t.percentage/100)}px, ${i.value}px`,strokeDashoffset:f.value,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease, opacity ease 0.6s"})),d=$(()=>{let g;return t.color?g=C(t.percentage):g=n[t.status]||n.default,g}),v=$(()=>t.status==="warning"?ua:t.type==="line"?t.status==="success"?ia:Do:t.status==="success"?nr:rn),m=$(()=>t.type==="line"?12+t.strokeWidth*.4:t.width*.111111+2),y=$(()=>t.format(t.percentage));function b(g){const w=100/g.length;return g.map((I,T)=>He(I)?{color:I,percentage:(T+1)*w}:I).sort((I,T)=>I.percentage-T.percentage)}const C=g=>{var w;const{color:M}=t;if(Pt(M))return M(g);if(He(M))return M;{const I=b(M);for(const T of I)if(T.percentage>g)return T.color;return(w=I[I.length-1])==null?void 0:w.color}};return(g,w)=>(k(),L("div",{class:S([a(o).b(),a(o).m(g.type),a(o).is(g.status),{[a(o).m("without-text")]:!g.showText,[a(o).m("text-inside")]:g.textInside}]),role:"progressbar","aria-valuenow":g.percentage,"aria-valuemin":"0","aria-valuemax":"100"},[g.type==="line"?(k(),L("div",{key:0,class:S(a(o).b("bar"))},[x("div",{class:S(a(o).be("bar","outer")),style:$e({height:`${g.strokeWidth}px`})},[x("div",{class:S([a(o).be("bar","inner"),{[a(o).bem("bar","inner","indeterminate")]:g.indeterminate}]),style:$e(a(l))},[(g.showText||g.$slots.default)&&g.textInside?(k(),L("div",{key:0,class:S(a(o).be("bar","innerText"))},[Q(g.$slots,"default",{percentage:g.percentage},()=>[x("span",null,de(a(y)),1)])],2)):Y("v-if",!0)],6)],6)],2)):(k(),L("div",{key:1,class:S(a(o).b("circle")),style:$e({height:`${g.width}px`,width:`${g.width}px`})},[(k(),L("svg",j0,[x("path",{class:S(a(o).be("circle","track")),d:a(u),stroke:`var(${a(o).cssVarName("fill-color-light")}, #e5e9f2)`,"stroke-width":a(s),fill:"none",style:$e(a(h))},null,14,x0),x("path",{class:S(a(o).be("circle","path")),d:a(u),stroke:a(d),fill:"none",opacity:g.percentage?1:0,"stroke-linecap":g.strokeLinecap,"stroke-width":a(s),style:$e(a(p))},null,14,q0)]))],6)),(g.showText||g.$slots.default)&&!g.textInside?(k(),L("div",{key:2,class:S(a(o).e("text")),style:$e({fontSize:`${a(m)}px`})},[Q(g.$slots,"default",{percentage:g.percentage},()=>[g.status?(k(),Z(a(he),{key:1},{default:K(()=>[(k(),Z(Ve(a(v))))]),_:1})):(k(),L("span",U0,de(a(y)),1))])],6)):Y("v-if",!0)],10,W0))}});var X0=ie(G0,[["__file","/home/runner/work/element-plus/element-plus/packages/components/progress/src/progress.vue"]]);const J0=Ke(X0),Z0=["start","center","end","space-around","space-between","space-evenly"],Q0=["top","middle","bottom"],eC=pe({tag:{type:String,default:"div"},gutter:{type:Number,default:0},justify:{type:String,values:Z0,default:"start"},align:{type:String,values:Q0,default:"top"}}),tC={name:"ElRow"},nC=se({...tC,props:eC,setup(e){const t=e,n=le("row"),o=$(()=>t.gutter);Fe(gr,{gutter:o});const l=$(()=>{const s={};return t.gutter&&(s.marginRight=s.marginLeft=`-${t.gutter/2}px`),s});return(s,r)=>(k(),Z(Ve(s.tag),{class:S([a(n).b(),a(n).is(`justify-${t.justify}`,s.justify!=="start"),a(n).is(`align-${t.align}`,s.align!=="top")]),style:$e(a(l))},{default:K(()=>[Q(s.$slots,"default")]),_:3},8,["class","style"]))}});var oC=ie(nC,[["__file","/home/runner/work/element-plus/element-plus/packages/components/row/src/row.vue"]]);const QS=Ke(oC),lC=pe({modelValue:{type:[Boolean,String,Number],default:!1},value:{type:[Boolean,String,Number],default:!1},disabled:{type:Boolean,default:!1},width:{type:[String,Number],default:""},inlinePrompt:{type:Boolean,default:!1},activeIcon:{type:Wt,default:""},inactiveIcon:{type:Wt,default:""},activeText:{type:String,default:""},inactiveText:{type:String,default:""},activeColor:{type:String,default:""},inactiveColor:{type:String,default:""},borderColor:{type:String,default:""},activeValue:{type:[Boolean,String,Number],default:!0},inactiveValue:{type:[Boolean,String,Number],default:!1},name:{type:String,default:""},validateEvent:{type:Boolean,default:!0},id:String,loading:{type:Boolean,default:!1},beforeChange:{type:te(Function)},size:{type:String,validator:Cl},tabindex:{type:[String,Number]}}),aC={[qe]:e=>It(e)||He(e)||We(e),[gn]:e=>It(e)||He(e)||We(e),[Kn]:e=>It(e)||He(e)||We(e)},sC=["onClick"],rC=["id","aria-checked","aria-disabled","name","true-value","false-value","disabled","tabindex","onKeydown"],iC=["aria-hidden"],uC=["aria-hidden"],cC=["aria-hidden"],dC=["aria-hidden"],fC={name:"ElSwitch"},pC=se({...fC,props:lC,emits:aC,setup(e,{expose:t,emit:n}){const o=e,l="ElSwitch",s=De(),{formItem:r}=Ro(),u=kt(),i=le("switch");Lo({from:'"value"',replacement:'"model-value" or "v-model"',scope:l,version:"2.3.0",ref:"https://element-plus.org/en-US/component/switch.html#attributes",type:"Attribute"},$(()=>{var I;return!!((I=s.vnode.props)!=null&&I.value)}));const{inputId:c}=go(o,{formItemContext:r}),f=On($(()=>o.loading)),h=P(o.modelValue!==!1),p=P(),d=P(),v=$(()=>[i.b(),i.m(u.value),i.is("disabled",f.value),i.is("checked",b.value)]),m=$(()=>({width:Kt(o.width)}));oe(()=>o.modelValue,()=>{h.value=!0}),oe(()=>o.value,()=>{h.value=!1});const y=$(()=>h.value?o.modelValue:o.value),b=$(()=>y.value===o.activeValue);[o.activeValue,o.inactiveValue].includes(y.value)||(n(qe,o.inactiveValue),n(gn,o.inactiveValue),n(Kn,o.inactiveValue)),oe(b,I=>{var T;p.value.checked=I,o.validateEvent&&((T=r==null?void 0:r.validate)==null||T.call(r,"change").catch(B=>void 0))});const C=()=>{const I=b.value?o.inactiveValue:o.activeValue;n(qe,I),n(gn,I),n(Kn,I),ke(()=>{p.value.checked=b.value})},g=()=>{if(f.value)return;const{beforeChange:I}=o;if(!I){C();return}const T=I();[Ha(T),It(T)].includes(!0)||Ot(l,"beforeChange must return type `Promise` or `boolean`"),Ha(T)?T.then(O=>{O&&C()}).catch(O=>{}):T&&C()},w=$(()=>i.cssVarBlock({...o.activeColor?{"on-color":o.activeColor}:null,...o.inactiveColor?{"off-color":o.inactiveColor}:null,...o.borderColor?{"border-color":o.borderColor}:null})),M=()=>{var I,T;(T=(I=p.value)==null?void 0:I.focus)==null||T.call(I)};return Re(()=>{p.value.checked=b.value}),t({focus:M}),(I,T)=>(k(),L("div",{class:S(a(v)),style:$e(a(w)),onClick:Oe(g,["prevent"])},[x("input",{id:a(c),ref_key:"input",ref:p,class:S(a(i).e("input")),type:"checkbox",role:"switch","aria-checked":a(b),"aria-disabled":a(f),name:I.name,"true-value":I.activeValue,"false-value":I.inactiveValue,disabled:a(f),tabindex:I.tabindex,onChange:C,onKeydown:xe(g,["enter"])},null,42,rC),!I.inlinePrompt&&(I.inactiveIcon||I.inactiveText)?(k(),L("span",{key:0,class:S([a(i).e("label"),a(i).em("label","left"),a(i).is("active",!a(b))])},[I.inactiveIcon?(k(),Z(a(he),{key:0},{default:K(()=>[(k(),Z(Ve(I.inactiveIcon)))]),_:1})):Y("v-if",!0),!I.inactiveIcon&&I.inactiveText?(k(),L("span",{key:1,"aria-hidden":a(b)},de(I.inactiveText),9,iC)):Y("v-if",!0)],2)):Y("v-if",!0),x("span",{ref_key:"core",ref:d,class:S(a(i).e("core")),style:$e(a(m))},[I.inlinePrompt?(k(),L("div",{key:0,class:S(a(i).e("inner"))},[I.activeIcon||I.inactiveIcon?(k(),L(Pe,{key:0},[I.activeIcon?(k(),Z(a(he),{key:0,class:S([a(i).is("icon"),a(b)?a(i).is("show"):a(i).is("hide")])},{default:K(()=>[(k(),Z(Ve(I.activeIcon)))]),_:1},8,["class"])):Y("v-if",!0),I.inactiveIcon?(k(),Z(a(he),{key:1,class:S([a(i).is("icon"),a(b)?a(i).is("hide"):a(i).is("show")])},{default:K(()=>[(k(),Z(Ve(I.inactiveIcon)))]),_:1},8,["class"])):Y("v-if",!0)],64)):I.activeText||I.inactiveIcon?(k(),L(Pe,{key:1},[I.activeText?(k(),L("span",{key:0,class:S([a(i).is("text"),a(b)?a(i).is("show"):a(i).is("hide")]),"aria-hidden":!a(b)},de(I.activeText.substring(0,3)),11,uC)):Y("v-if",!0),I.inactiveText?(k(),L("span",{key:1,class:S([a(i).is("text"),a(b)?a(i).is("hide"):a(i).is("show")]),"aria-hidden":a(b)},de(I.inactiveText.substring(0,3)),11,cC)):Y("v-if",!0)],64)):Y("v-if",!0)],2)):Y("v-if",!0),x("div",{class:S(a(i).e("action"))},[I.loading?(k(),Z(a(he),{key:0,class:S(a(i).is("loading"))},{default:K(()=>[j(a(vo))]),_:1},8,["class"])):Y("v-if",!0)],2)],6),!I.inlinePrompt&&(I.activeIcon||I.activeText)?(k(),L("span",{key:1,class:S([a(i).e("label"),a(i).em("label","right"),a(i).is("active",a(b))])},[I.activeIcon?(k(),Z(a(he),{key:0},{default:K(()=>[(k(),Z(Ve(I.activeIcon)))]),_:1})):Y("v-if",!0),!I.activeIcon&&I.activeText?(k(),L("span",{key:1,"aria-hidden":!a(b)},de(I.activeText),9,dC)):Y("v-if",!0)],2)):Y("v-if",!0)],14,sC))}});var vC=ie(pC,[["__file","/home/runner/work/element-plus/element-plus/packages/components/switch/src/switch.vue"]]);const eE=Ke(vC),Vl=function(e){let t=e.target;for(;t&&t.tagName.toUpperCase()!=="HTML";){if(t.tagName.toUpperCase()==="TD")return t;t=t.parentNode}return null},As=function(e){return e!==null&&typeof e=="object"},mC=function(e,t,n,o,l){if(!t&&!o&&(!l||Array.isArray(l)&&!l.length))return e;typeof n=="string"?n=n==="descending"?-1:1:n=n&&n<0?-1:1;const s=o?null:function(u,i){return l?(Array.isArray(l)||(l=[l]),l.map(c=>typeof c=="string"?Tt(u,c):c(u,i,e))):(t!=="$key"&&As(u)&&"$value"in u&&(u=u.$value),[As(u)?Tt(u,t):u])},r=function(u,i){if(o)return o(u.value,i.value);for(let c=0,f=u.key.length;ci.key[c])return 1}return 0};return e.map((u,i)=>({value:u,index:i,key:s?s(u,i):null})).sort((u,i)=>{let c=r(u,i);return c||(c=u.index-i.index),c*+n}).map(u=>u.value)},Ki=function(e,t){let n=null;return e.columns.forEach(o=>{o.id===t&&(n=o)}),n},hC=function(e,t){let n=null;for(let o=0;o{if(!e)throw new Error("Row is required when get row identity");if(typeof t=="string"){if(!t.includes("."))return`${e[t]}`;const n=t.split(".");let o=e;for(const l of n)o=o[l];return`${o}`}else if(typeof t=="function")return t.call(null,e)},Fn=function(e,t){const n={};return(e||[]).forEach((o,l)=>{n[wt(o,t)]={row:o,index:l}}),n};function gC(e,t){const n={};let o;for(o in e)n[o]=e[o];for(o in t)if(Rt(t,o)){const l=t[o];typeof l<"u"&&(n[o]=l)}return n}function Da(e){return e===""||e!==void 0&&(e=Number.parseInt(e,10),Number.isNaN(e)&&(e="")),e}function Wi(e){return e===""||e!==void 0&&(e=Da(e),Number.isNaN(e)&&(e=80)),e}function Ql(e){return typeof e=="number"?e:typeof e=="string"?/^\d+(?:px)?$/.test(e)?Number.parseInt(e,10):e:null}function bC(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...o)=>t(n(...o)))}function Qo(e,t,n){let o=!1;const l=e.indexOf(t),s=l!==-1,r=()=>{e.push(t),o=!0},u=()=>{e.splice(l,1),o=!0};return typeof n=="boolean"?n&&!s?r():!n&&s&&u():s?u():r(),o}function yC(e,t,n="children",o="hasChildren"){const l=r=>!(Array.isArray(r)&&r.length);function s(r,u,i){t(r,u,i),u.forEach(c=>{if(c[o]){t(c,null,i+1);return}const f=c[n];l(f)||s(c,f,i+1)})}e.forEach(r=>{if(r[o]){t(r,null,0);return}const u=r[n];l(u)||s(r,u,0)})}let Tn;function CC(e,t,n,o,l){const{nextZIndex:s}=An(),r=e==null?void 0:e.dataset.prefix,u=e==null?void 0:e.querySelector(`.${r}-scrollbar__wrap`);function i(){const v=l==="light",m=document.createElement("div");return m.className=`${r}-popper ${v?"is-light":"is-dark"}`,n=Qu(n),m.innerHTML=n,m.style.zIndex=String(s()),e==null||e.appendChild(m),m}function c(){const v=document.createElement("div");return v.className=`${r}-popper__arrow`,v}function f(){h&&h.update()}Tn=()=>{try{h&&h.destroy(),p&&(e==null||e.removeChild(p)),xt(t,"mouseenter",f),xt(t,"mouseleave",Tn),u&&xt(u,"scroll",Tn),Tn=void 0}catch{}};let h=null;const p=i(),d=c();return p.appendChild(d),h=jr(t,p,{strategy:"absolute",modifiers:[{name:"offset",options:{offset:[0,8]}},{name:"arrow",options:{element:d,padding:10}}],...o}),Nt(t,"mouseenter",f),Nt(t,"mouseleave",Tn),u&&Nt(u,"scroll",Tn),h}const ji=(e,t,n,o)=>{let l=0,s=e;if(o){if(o[e].colSpan>1)return{};for(let i=0;i=u.value.length-n.states.rightFixedLeafColumnsLength.value&&(r="right");break;default:s=u.value.length-n.states.rightFixedLeafColumnsLength.value&&(r="right")}return r?{direction:r,start:l,after:s}:{}},La=(e,t,n,o,l)=>{const s=[],{direction:r,start:u}=ji(t,n,o,l);if(r){const i=r==="left";s.push(`${e}-fixed-column--${r}`),i&&u===o.states.fixedLeafColumnsLength.value-1?s.push("is-last-column"):!i&&u===o.states.columns.value.length-o.states.rightFixedLeafColumnsLength.value&&s.push("is-first-column")}return s};function Ds(e,t){return e+(t.realWidth===null||Number.isNaN(t.realWidth)?Number(t.width):t.realWidth)}const Ra=(e,t,n,o)=>{const{direction:l,start:s=0}=ji(e,t,n,o);if(!l)return;const r={},u=l==="left",i=n.states.columns.value;return u?r.left=i.slice(0,e).reduce(Ds,0):r.right=i.slice(s+1).reverse().reduce(Ds,0),r},co=(e,t)=>{!e||Number.isNaN(e[t])||(e[t]=`${e[t]}px`)};function wC(e){const t=De(),n=P(!1),o=P([]);return{updateExpandRows:()=>{const i=e.data.value||[],c=e.rowKey.value;if(n.value)o.value=i.slice();else if(c){const f=Fn(o.value,c);o.value=i.reduce((h,p)=>{const d=wt(p,c);return f[d]&&h.push(p),h},[])}else o.value=[]},toggleRowExpansion:(i,c)=>{Qo(o.value,i,c)&&t.emit("expand-change",i,o.value.slice())},setExpandRowKeys:i=>{t.store.assertRowKey();const c=e.data.value||[],f=e.rowKey.value,h=Fn(c,f);o.value=i.reduce((p,d)=>{const v=h[d];return v&&p.push(v.row),p},[])},isRowExpanded:i=>{const c=e.rowKey.value;return c?!!Fn(o.value,c)[wt(i,c)]:o.value.includes(i)},states:{expandRows:o,defaultExpandAll:n}}}function kC(e){const t=De(),n=P(null),o=P(null),l=c=>{t.store.assertRowKey(),n.value=c,r(c)},s=()=>{n.value=null},r=c=>{const{data:f,rowKey:h}=e;let p=null;h.value&&(p=(a(f)||[]).find(d=>wt(d,h.value)===c)),o.value=p,t.emit("current-change",o.value,null)};return{setCurrentRowKey:l,restoreCurrentRowKey:s,setCurrentRowByKey:r,updateCurrentRow:c=>{const f=o.value;if(c&&c!==f){o.value=c,t.emit("current-change",o.value,f);return}!c&&f&&(o.value=null,t.emit("current-change",null,f))},updateCurrentRowData:()=>{const c=e.rowKey.value,f=e.data.value||[],h=o.value;if(!f.includes(h)&&h){if(c){const p=wt(h,c);r(p)}else o.value=null;o.value===null&&t.emit("current-change",null,h)}else n.value&&(r(n.value),s())},states:{_currentRowKey:n,currentRow:o}}}function SC(e){const t=P([]),n=P({}),o=P(16),l=P(!1),s=P({}),r=P("hasChildren"),u=P("children"),i=De(),c=$(()=>{if(!e.rowKey.value)return{};const b=e.data.value||[];return h(b)}),f=$(()=>{const b=e.rowKey.value,C=Object.keys(s.value),g={};return C.length&&C.forEach(w=>{if(s.value[w].length){const M={children:[]};s.value[w].forEach(I=>{const T=wt(I,b);M.children.push(T),I[r.value]&&!g[T]&&(g[T]={children:[]})}),g[w]=M}}),g}),h=b=>{const C=e.rowKey.value,g={};return yC(b,(w,M,I)=>{const T=wt(w,C);Array.isArray(M)?g[T]={children:M.map(B=>wt(B,C)),level:I}:l.value&&(g[T]={children:[],lazy:!0,level:I})},u.value,r.value),g},p=(b=!1,C=(g=>(g=i.store)==null?void 0:g.states.defaultExpandAll.value)())=>{var g;const w=c.value,M=f.value,I=Object.keys(w),T={};if(I.length){const B=a(n),O=[],V=(J,F)=>{if(b)return t.value?C||t.value.includes(F):!!(C||(J==null?void 0:J.expanded));{const H=C||t.value&&t.value.includes(F);return!!((J==null?void 0:J.expanded)||H)}};I.forEach(J=>{const F=B[J],H={...w[J]};if(H.expanded=V(F,J),H.lazy){const{loaded:U=!1,loading:_=!1}=F||{};H.loaded=!!U,H.loading=!!_,O.push(J)}T[J]=H});const W=Object.keys(M);l.value&&W.length&&O.length&&W.forEach(J=>{const F=B[J],H=M[J].children;if(O.includes(J)){if(T[J].children.length!==0)throw new Error("[ElTable]children must be an empty array.");T[J].children=H}else{const{loaded:U=!1,loading:_=!1}=F||{};T[J]={lazy:!0,loaded:!!U,loading:!!_,expanded:V(F,J),children:H,level:""}}})}n.value=T,(g=i.store)==null||g.updateTableScrollY()};oe(()=>t.value,()=>{p(!0)}),oe(()=>c.value,()=>{p()}),oe(()=>f.value,()=>{p()});const d=b=>{t.value=b,p()},v=(b,C)=>{i.store.assertRowKey();const g=e.rowKey.value,w=wt(b,g),M=w&&n.value[w];if(w&&M&&"expanded"in M){const I=M.expanded;C=typeof C>"u"?!M.expanded:C,n.value[w].expanded=C,I!==C&&i.emit("expand-change",b,C),i.store.updateTableScrollY()}},m=b=>{i.store.assertRowKey();const C=e.rowKey.value,g=wt(b,C),w=n.value[g];l.value&&w&&"loaded"in w&&!w.loaded?y(b,g,w):v(b,void 0)},y=(b,C,g)=>{const{load:w}=i.props;w&&!n.value[C].loaded&&(n.value[C].loading=!0,w(b,g,M=>{if(!Array.isArray(M))throw new TypeError("[ElTable] data must be an array");n.value[C].loading=!1,n.value[C].loaded=!0,n.value[C].expanded=!0,M.length&&(s.value[C]=M),i.emit("expand-change",b,!0)}))};return{loadData:y,loadOrToggle:m,toggleTreeExpansion:v,updateTreeExpandKeys:d,updateTreeData:p,normalize:h,states:{expandRowKeys:t,treeData:n,indent:o,lazy:l,lazyTreeNodeMap:s,lazyColumnIdentifier:r,childrenColumnName:u}}}const EC=(e,t)=>{const n=t.sortingColumn;return!n||typeof n.sortable=="string"?e:mC(e,t.sortProp,t.sortOrder,n.sortMethod,n.sortBy)},el=e=>{const t=[];return e.forEach(n=>{n.children?t.push.apply(t,el(n.children)):t.push(n)}),t};function $C(){var e;const t=De(),{size:n}=_t((e=t.proxy)==null?void 0:e.$props),o=P(null),l=P([]),s=P([]),r=P(!1),u=P([]),i=P([]),c=P([]),f=P([]),h=P([]),p=P([]),d=P([]),v=P([]),m=P(0),y=P(0),b=P(0),C=P(!1),g=P([]),w=P(!1),M=P(!1),I=P(null),T=P({}),B=P(null),O=P(null),V=P(null),W=P(null),J=P(null);oe(l,()=>t.state&&U(!1),{deep:!0});const F=()=>{if(!o.value)throw new Error("[ElTable] prop row-key is required")},H=()=>{f.value=u.value.filter(ee=>ee.fixed===!0||ee.fixed==="left"),h.value=u.value.filter(ee=>ee.fixed==="right"),f.value.length>0&&u.value[0]&&u.value[0].type==="selection"&&!u.value[0].fixed&&(u.value[0].fixed=!0,f.value.unshift(u.value[0]));const q=u.value.filter(ee=>!ee.fixed);i.value=[].concat(f.value).concat(q).concat(h.value);const ne=el(q),E=el(f.value),z=el(h.value);m.value=ne.length,y.value=E.length,b.value=z.length,c.value=[].concat(E).concat(ne).concat(z),r.value=f.value.length>0||h.value.length>0},U=(q,ne=!1)=>{q&&H(),ne?t.state.doLayout():t.state.debouncedUpdateLayout()},_=q=>g.value.includes(q),D=()=>{C.value=!1,g.value.length&&(g.value=[],t.emit("selection-change",[]))},A=()=>{let q;if(o.value){q=[];const ne=Fn(g.value,o.value),E=Fn(l.value,o.value);for(const z in ne)Rt(ne,z)&&!E[z]&&q.push(ne[z].row)}else q=g.value.filter(ne=>!l.value.includes(ne));if(q.length){const ne=g.value.filter(E=>!q.includes(E));g.value=ne,t.emit("selection-change",ne.slice())}},N=()=>(g.value||[]).slice(),R=(q,ne=void 0,E=!0)=>{if(Qo(g.value,q,ne)){const ee=(g.value||[]).slice();E&&t.emit("select",ee,q),t.emit("selection-change",ee)}},G=()=>{var q,ne;const E=M.value?!C.value:!(C.value||g.value.length);C.value=E;let z=!1,ee=0;const me=(ne=(q=t==null?void 0:t.store)==null?void 0:q.states)==null?void 0:ne.rowKey.value;l.value.forEach((ue,Ce)=>{const we=Ce+ee;I.value?I.value.call(null,ue,we)&&Qo(g.value,ue,E)&&(z=!0):Qo(g.value,ue,E)&&(z=!0),ee+=ye(wt(ue,me))}),z&&t.emit("selection-change",g.value?g.value.slice():[]),t.emit("select-all",g.value)},re=()=>{const q=Fn(g.value,o.value);l.value.forEach(ne=>{const E=wt(ne,o.value),z=q[E];z&&(g.value[z.index]=ne)})},ce=()=>{var q,ne,E;if(((q=l.value)==null?void 0:q.length)===0){C.value=!1;return}let z;o.value&&(z=Fn(g.value,o.value));const ee=function(we){return z?!!z[wt(we,o.value)]:g.value.includes(we)};let me=!0,ue=0,Ce=0;for(let we=0,dt=(l.value||[]).length;we{var ne;if(!t||!t.store)return 0;const{treeData:E}=t.store.states;let z=0;const ee=(ne=E.value[q])==null?void 0:ne.children;return ee&&(z+=ee.length,ee.forEach(me=>{z+=ye(me)})),z},ge=(q,ne)=>{Array.isArray(q)||(q=[q]);const E={};return q.forEach(z=>{T.value[z.id]=ne,E[z.columnKey||z.id]=ne}),E},Te=(q,ne,E)=>{O.value&&O.value!==q&&(O.value.order=null),O.value=q,V.value=ne,W.value=E},X=()=>{let q=a(s);Object.keys(T.value).forEach(ne=>{const E=T.value[ne];if(!E||E.length===0)return;const z=Ki({columns:c.value},ne);z&&z.filterMethod&&(q=q.filter(ee=>E.some(me=>z.filterMethod.call(null,me,ee,z))))}),B.value=q},ve=()=>{l.value=EC(B.value,{sortingColumn:O.value,sortProp:V.value,sortOrder:W.value})},Ne=(q=void 0)=>{q&&q.filter||X(),ve()},Le=q=>{const{tableHeaderRef:ne}=t.refs;if(!ne)return;const E=Object.assign({},ne.filterPanels),z=Object.keys(E);if(!!z.length)if(typeof q=="string"&&(q=[q]),Array.isArray(q)){const ee=q.map(me=>hC({columns:c.value},me));z.forEach(me=>{const ue=ee.find(Ce=>Ce.id===me);ue&&(ue.filteredValue=[])}),t.store.commit("filterChange",{column:ee,values:[],silent:!0,multi:!0})}else z.forEach(ee=>{const me=c.value.find(ue=>ue.id===ee);me&&(me.filteredValue=[])}),T.value={},t.store.commit("filterChange",{column:{},values:[],silent:!0})},Ge=()=>{!O.value||(Te(null,null,null),t.store.commit("changeSortCondition",{silent:!0}))},{setExpandRowKeys:Ze,toggleRowExpansion:Ue,updateExpandRows:ht,states:Ae,isRowExpanded:it}=wC({data:l,rowKey:o}),{updateTreeExpandKeys:lt,toggleTreeExpansion:ft,updateTreeData:gt,loadOrToggle:et,states:st}=SC({data:l,rowKey:o}),{updateCurrentRowData:Et,updateCurrentRow:bt,setCurrentRowKey:ae,states:Be}=kC({data:l,rowKey:o});return{assertRowKey:F,updateColumns:H,scheduleLayout:U,isSelected:_,clearSelection:D,cleanSelection:A,getSelectionRows:N,toggleRowSelection:R,_toggleAllSelection:G,toggleAllSelection:null,updateSelectionByRowKey:re,updateAllSelected:ce,updateFilters:ge,updateCurrentRow:bt,updateSort:Te,execFilter:X,execSort:ve,execQuery:Ne,clearFilter:Le,clearSort:Ge,toggleRowExpansion:Ue,setExpandRowKeysAdapter:q=>{Ze(q),lt(q)},setCurrentRowKey:ae,toggleRowExpansionAdapter:(q,ne)=>{c.value.some(({type:z})=>z==="expand")?Ue(q,ne):ft(q,ne)},isRowExpanded:it,updateExpandRows:ht,updateCurrentRowData:Et,loadOrToggle:et,updateTreeData:gt,states:{tableSize:n,rowKey:o,data:l,_data:s,isComplex:r,_columns:u,originColumns:i,columns:c,fixedColumns:f,rightFixedColumns:h,leafColumns:p,fixedLeafColumns:d,rightFixedLeafColumns:v,leafColumnsLength:m,fixedLeafColumnsLength:y,rightFixedLeafColumnsLength:b,isAllSelected:C,selection:g,reserveSelection:w,selectOnIndeterminate:M,selectable:I,filters:T,filteredData:B,sortingColumn:O,sortProp:V,sortOrder:W,hoverRow:J,...Ae,...st,...Be}}}function ea(e,t){return e.map(n=>{var o;return n.id===t.id?t:((o=n.children)!=null&&o.length&&(n.children=ea(n.children,t)),n)})}function xi(e){e.forEach(t=>{var n,o;t.no=(n=t.getColumnIndex)==null?void 0:n.call(t),(o=t.children)!=null&&o.length&&xi(t.children)}),e.sort((t,n)=>t.no-n.no)}function TC(){const e=De(),t=$C();return{ns:le("table"),...t,mutations:{setData(r,u){const i=a(r._data)!==u;r.data.value=u,r._data.value=u,e.store.execQuery(),e.store.updateCurrentRowData(),e.store.updateExpandRows(),e.store.updateTreeData(e.store.states.defaultExpandAll.value),a(r.reserveSelection)?(e.store.assertRowKey(),e.store.updateSelectionByRowKey()):i?e.store.clearSelection():e.store.cleanSelection(),e.store.updateAllSelected(),e.$ready&&e.store.scheduleLayout()},insertColumn(r,u,i){const c=a(r._columns);let f=[];i?(i&&!i.children&&(i.children=[]),i.children.push(u),f=ea(c,i)):(c.push(u),f=c),xi(f),r._columns.value=f,u.type==="selection"&&(r.selectable.value=u.selectable,r.reserveSelection.value=u.reserveSelection),e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},removeColumn(r,u,i){const c=a(r._columns)||[];if(i)i.children.splice(i.children.findIndex(f=>f.id===u.id),1),i.children.length===0&&delete i.children,r._columns.value=ea(c,i);else{const f=c.indexOf(u);f>-1&&(c.splice(f,1),r._columns.value=c)}e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},sort(r,u){const{prop:i,order:c,init:f}=u;if(i){const h=a(r.columns).find(p=>p.property===i);h&&(h.order=c,e.store.updateSort(h,i,c),e.store.commit("changeSortCondition",{init:f}))}},changeSortCondition(r,u){const{sortingColumn:i,sortProp:c,sortOrder:f}=r;a(f)===null&&(r.sortingColumn.value=null,r.sortProp.value=null);const h={filter:!0};e.store.execQuery(h),(!u||!(u.silent||u.init))&&e.emit("sort-change",{column:a(i),prop:a(c),order:a(f)}),e.store.updateTableScrollY()},filterChange(r,u){const{column:i,values:c,silent:f}=u,h=e.store.updateFilters(i,c);e.store.execQuery(),f||e.emit("filter-change",h),e.store.updateTableScrollY()},toggleAllSelection(){e.store.toggleAllSelection()},rowSelectedChanged(r,u){e.store.toggleRowSelection(u),e.store.updateAllSelected()},setHoverRow(r,u){r.hoverRow.value=u},setCurrentRow(r,u){e.store.updateCurrentRow(u)}},commit:function(r,...u){const i=e.store.mutations;if(i[r])i[r].apply(e,[e.store.states].concat(u));else throw new Error(`Action not found: ${r}`)},updateTableScrollY:function(){ke(()=>e.layout.updateScrollY.apply(e.layout))}}}const No={rowKey:"rowKey",defaultExpandAll:"defaultExpandAll",selectOnIndeterminate:"selectOnIndeterminate",indent:"indent",lazy:"lazy",data:"data",["treeProps.hasChildren"]:{key:"lazyColumnIdentifier",default:"hasChildren"},["treeProps.children"]:{key:"childrenColumnName",default:"children"}};function NC(e,t){if(!e)throw new Error("Table is required.");const n=TC();return n.toggleAllSelection=mn(n._toggleAllSelection,10),Object.keys(No).forEach(o=>{qi(Ui(t,o),o,n)}),PC(n,t),n}function PC(e,t){Object.keys(No).forEach(n=>{oe(()=>Ui(t,n),o=>{qi(o,n,e)})})}function qi(e,t,n){let o=e,l=No[t];typeof No[t]=="object"&&(l=l.key,o=o||No[t].default),n.states[l].value=o}function Ui(e,t){if(t.includes(".")){const n=t.split(".");let o=e;return n.forEach(l=>{o=o[l]}),o}else return e[t]}class IC{constructor(t){this.observers=[],this.table=null,this.store=null,this.columns=[],this.fit=!0,this.showHeader=!0,this.height=P(null),this.scrollX=P(!1),this.scrollY=P(!1),this.bodyWidth=P(null),this.fixedWidth=P(null),this.rightFixedWidth=P(null),this.tableHeight=P(null),this.headerHeight=P(44),this.appendHeight=P(0),this.footerHeight=P(44),this.viewportHeight=P(null),this.bodyHeight=P(null),this.bodyScrollHeight=P(0),this.fixedBodyHeight=P(null),this.gutterWidth=0;for(const n in t)Rt(t,n)&&(Qt(this[n])?this[n].value=t[n]:this[n]=t[n]);if(!this.table)throw new Error("Table is required for Table Layout");if(!this.store)throw new Error("Store is required for Table Layout")}updateScrollY(){if(this.height.value===null)return!1;const n=this.table.refs.bodyWrapper;if(this.table.vnode.el&&n){let o=!0;const l=this.scrollY.value;return this.bodyHeight.value===null?o=!1:o=n.scrollHeight>this.bodyHeight.value,this.scrollY.value=o,l!==o}return!1}setHeight(t,n="height"){if(!je)return;const o=this.table.vnode.el;if(t=Ql(t),this.height.value=Number(t),!o&&(t||t===0))return ke(()=>this.setHeight(t,n));typeof t=="number"?(o.style[n]=`${t}px`,this.updateElsHeight()):typeof t=="string"&&(o.style[n]=t,this.updateElsHeight())}setMaxHeight(t){this.setHeight(t,"max-height")}getFlattenColumns(){const t=[];return this.table.store.states.columns.value.forEach(o=>{o.isColumnGroup?t.push.apply(t,o.columns):t.push(o)}),t}updateElsHeight(){var t,n;if(!this.table.$ready)return ke(()=>this.updateElsHeight());const{tableWrapper:o,headerWrapper:l,appendWrapper:s,footerWrapper:r,tableHeader:u,tableBody:i}=this.table.refs;if(o&&o.style.display==="none")return;const{tableLayout:c}=this.table.props;if(this.appendHeight.value=s?s.offsetHeight:0,this.showHeader&&!l&&c==="fixed")return;const f=u||null,h=this.headerDisplayNone(f),p=(l==null?void 0:l.offsetHeight)||0,d=this.headerHeight.value=this.showHeader?p:0;if(this.showHeader&&!h&&p>0&&(this.table.store.states.columns.value||[]).length>0&&d<2)return ke(()=>this.updateElsHeight());const v=this.tableHeight.value=(n=(t=this.table)==null?void 0:t.vnode.el)==null?void 0:n.clientHeight,m=this.footerHeight.value=r?r.offsetHeight:0;this.height.value!==null&&(this.bodyHeight.value===null&&requestAnimationFrame(()=>this.updateElsHeight()),this.bodyHeight.value=v-d-m+(r?1:0),this.bodyScrollHeight.value=i==null?void 0:i.scrollHeight),this.fixedBodyHeight.value=this.scrollX.value?this.bodyHeight.value-this.gutterWidth:this.bodyHeight.value,this.viewportHeight.value=this.scrollX.value?v-this.gutterWidth:v,this.updateScrollY(),this.notifyObservers("scrollable")}headerDisplayNone(t){if(!t)return!0;let n=t;for(;n.tagName!=="DIV";){if(getComputedStyle(n).display==="none")return!0;n=n.parentElement}return!1}updateColumnsWidth(){if(!je)return;const t=this.fit,n=this.table.vnode.el.clientWidth;let o=0;const l=this.getFlattenColumns(),s=l.filter(i=>typeof i.width!="number");if(l.forEach(i=>{typeof i.width=="number"&&i.realWidth&&(i.realWidth=null)}),s.length>0&&t){if(l.forEach(i=>{o+=Number(i.width||i.minWidth||80)}),o<=n){this.scrollX.value=!1;const i=n-o;if(s.length===1)s[0].realWidth=Number(s[0].minWidth||80)+i;else{const c=s.reduce((p,d)=>p+Number(d.minWidth||80),0),f=i/c;let h=0;s.forEach((p,d)=>{if(d===0)return;const v=Math.floor(Number(p.minWidth||80)*f);h+=v,p.realWidth=Number(p.minWidth||80)+v}),s[0].realWidth=Number(s[0].minWidth||80)+i-h}}else this.scrollX.value=!0,s.forEach(i=>{i.realWidth=Number(i.minWidth)});this.bodyWidth.value=Math.max(o,n),this.table.state.resizeState.value.width=this.bodyWidth.value}else l.forEach(i=>{!i.width&&!i.minWidth?i.realWidth=80:i.realWidth=Number(i.width||i.minWidth),o+=i.realWidth}),this.scrollX.value=o>n,this.bodyWidth.value=o;const r=this.store.states.fixedColumns.value;if(r.length>0){let i=0;r.forEach(c=>{i+=Number(c.realWidth||c.width)}),this.fixedWidth.value=i}const u=this.store.states.rightFixedColumns.value;if(u.length>0){let i=0;u.forEach(c=>{i+=Number(c.realWidth||c.width)}),this.rightFixedWidth.value=i}this.notifyObservers("columns")}addObserver(t){this.observers.push(t)}removeObserver(t){const n=this.observers.indexOf(t);n!==-1&&this.observers.splice(n,1)}notifyObservers(t){this.observers.forEach(o=>{var l,s;switch(t){case"columns":(l=o.state)==null||l.onColumnsChange(this);break;case"scrollable":(s=o.state)==null||s.onScrollableChange(this);break;default:throw new Error(`Table Layout don't have event ${t}.`)}})}}const{CheckboxGroup:MC}=Wn,OC=se({name:"ElTableFilterPanel",components:{ElCheckbox:Wn,ElCheckboxGroup:MC,ElScrollbar:bo,ElTooltip:wn,ElIcon:he,ArrowDown:mo,ArrowUp:gl},directives:{ClickOutside:uo},props:{placement:{type:String,default:"bottom-start"},store:{type:Object},column:{type:Object},upDataColumn:{type:Function}},setup(e){const t=De(),{t:n}=Je(),o=le("table-filter"),l=t==null?void 0:t.parent;l.filterPanels.value[e.column.id]||(l.filterPanels.value[e.column.id]=t);const s=P(!1),r=P(null),u=$(()=>e.column&&e.column.filters),i=$({get:()=>{var w;return(((w=e.column)==null?void 0:w.filteredValue)||[])[0]},set:w=>{c.value&&(typeof w<"u"&&w!==null?c.value.splice(0,1,w):c.value.splice(0,1))}}),c=$({get(){return e.column?e.column.filteredValue||[]:[]},set(w){e.column&&e.upDataColumn("filteredValue",w)}}),f=$(()=>e.column?e.column.filterMultiple:!0),h=w=>w.value===i.value,p=()=>{s.value=!1},d=w=>{w.stopPropagation(),s.value=!s.value},v=()=>{s.value=!1},m=()=>{C(c.value),p()},y=()=>{c.value=[],C(c.value),p()},b=w=>{i.value=w,C(typeof w<"u"&&w!==null?c.value:[]),p()},C=w=>{e.store.commit("filterChange",{column:e.column,values:w}),e.store.updateAllSelected()};oe(s,w=>{e.column&&e.upDataColumn("filterOpened",w)},{immediate:!0});const g=$(()=>{var w,M;return(M=(w=r.value)==null?void 0:w.popperRef)==null?void 0:M.contentRef});return{tooltipVisible:s,multiple:f,filteredValue:c,filterValue:i,filters:u,handleConfirm:m,handleReset:y,handleSelect:b,isActive:h,t:n,ns:o,showFilterPanel:d,hideFilterPanel:v,popperPaneRef:g,tooltip:r}}}),AC={key:0},BC=["disabled"],DC=["label","onClick"];function LC(e,t,n,o,l,s){const r=Ee("el-checkbox"),u=Ee("el-checkbox-group"),i=Ee("el-scrollbar"),c=Ee("arrow-up"),f=Ee("arrow-down"),h=Ee("el-icon"),p=Ee("el-tooltip"),d=hl("click-outside");return k(),Z(p,{ref:"tooltip",visible:e.tooltipVisible,"onUpdate:visible":t[5]||(t[5]=v=>e.tooltipVisible=v),offset:0,placement:e.placement,"show-arrow":!1,"stop-popper-mouse-event":!1,teleported:"",effect:"light",pure:"","popper-class":e.ns.b(),persistent:""},{content:K(()=>[e.multiple?(k(),L("div",AC,[x("div",{class:S(e.ns.e("content"))},[j(i,{"wrap-class":e.ns.e("wrap")},{default:K(()=>[j(u,{modelValue:e.filteredValue,"onUpdate:modelValue":t[0]||(t[0]=v=>e.filteredValue=v),class:S(e.ns.e("checkbox-group"))},{default:K(()=>[(k(!0),L(Pe,null,ot(e.filters,v=>(k(),Z(r,{key:v.value,label:v.value},{default:K(()=>[Xe(de(v.text),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue","class"])]),_:1},8,["wrap-class"])],2),x("div",{class:S(e.ns.e("bottom"))},[x("button",{class:S({[e.ns.is("disabled")]:e.filteredValue.length===0}),disabled:e.filteredValue.length===0,type:"button",onClick:t[1]||(t[1]=(...v)=>e.handleConfirm&&e.handleConfirm(...v))},de(e.t("el.table.confirmFilter")),11,BC),x("button",{type:"button",onClick:t[2]||(t[2]=(...v)=>e.handleReset&&e.handleReset(...v))},de(e.t("el.table.resetFilter")),1)],2)])):(k(),L("ul",{key:1,class:S(e.ns.e("list"))},[x("li",{class:S([e.ns.e("list-item"),{[e.ns.is("active")]:e.filterValue===void 0||e.filterValue===null}]),onClick:t[3]||(t[3]=v=>e.handleSelect(null))},de(e.t("el.table.clearFilter")),3),(k(!0),L(Pe,null,ot(e.filters,v=>(k(),L("li",{key:v.value,class:S([e.ns.e("list-item"),e.ns.is("active",e.isActive(v))]),label:v.value,onClick:m=>e.handleSelect(v.value)},de(v.text),11,DC))),128))],2))]),default:K(()=>[Ie((k(),L("span",{class:S([`${e.ns.namespace.value}-table__column-filter-trigger`,`${e.ns.namespace.value}-none-outline`]),onClick:t[4]||(t[4]=(...v)=>e.showFilterPanel&&e.showFilterPanel(...v))},[j(h,null,{default:K(()=>[e.column.filterOpened?(k(),Z(c,{key:0})):(k(),Z(f,{key:1}))]),_:1})],2)),[[d,e.hideFilterPanel,e.popperPaneRef]])]),_:1},8,["visible","placement","popper-class"])}var RC=ie(OC,[["render",LC],["__file","/home/runner/work/element-plus/element-plus/packages/components/table/src/filter-panel.vue"]]);function Yi(e){const t=De();sa(()=>{n.value.addObserver(t)}),Re(()=>{o(n.value),l(n.value)}),Mn(()=>{o(n.value),l(n.value)}),vl(()=>{n.value.removeObserver(t)});const n=$(()=>{const s=e.layout;if(!s)throw new Error("Can not find table layout.");return s}),o=s=>{var r;const u=((r=e.vnode.el)==null?void 0:r.querySelectorAll("colgroup > col"))||[];if(!u.length)return;const i=s.getFlattenColumns(),c={};i.forEach(f=>{c[f.id]=f});for(let f=0,h=u.length;f{var r,u;const i=((r=e.vnode.el)==null?void 0:r.querySelectorAll("colgroup > col[name=gutter]"))||[];for(let f=0,h=i.length;f{m.stopPropagation()},s=(m,y)=>{!y.filters&&y.sortable?v(m,y,!1):y.filterable&&!y.sortable&&l(m),o==null||o.emit("header-click",y,m)},r=(m,y)=>{o==null||o.emit("header-contextmenu",y,m)},u=P(null),i=P(!1),c=P({}),f=(m,y)=>{if(!!je&&!(y.children&&y.children.length>0)&&u.value&&e.border){i.value=!0;const b=o;t("set-drag-visible",!0);const g=(b==null?void 0:b.vnode.el).getBoundingClientRect().left,w=n.vnode.el.querySelector(`th.${y.id}`),M=w.getBoundingClientRect(),I=M.left-g+30;nn(w,"noclick"),c.value={startMouseLeft:m.clientX,startLeft:M.right-g,startColumnLeft:M.left-g,tableLeft:g};const T=b==null?void 0:b.refs.resizeProxy;T.style.left=`${c.value.startLeft}px`,document.onselectstart=function(){return!1},document.ondragstart=function(){return!1};const B=V=>{const W=V.clientX-c.value.startMouseLeft,J=c.value.startLeft+W;T.style.left=`${Math.max(I,J)}px`},O=()=>{if(i.value){const{startColumnLeft:V,startLeft:W}=c.value,F=Number.parseInt(T.style.left,10)-V;y.width=y.realWidth=F,b==null||b.emit("header-dragend",y.width,W-V,y,m),requestAnimationFrame(()=>{e.store.scheduleLayout(!1,!0)}),document.body.style.cursor="",i.value=!1,u.value=null,c.value={},t("set-drag-visible",!1)}document.removeEventListener("mousemove",B),document.removeEventListener("mouseup",O),document.onselectstart=null,document.ondragstart=null,setTimeout(()=>{Bt(w,"noclick")},0)};document.addEventListener("mousemove",B),document.addEventListener("mouseup",O)}},h=(m,y)=>{if(y.children&&y.children.length>0)return;let b=m.target;for(;b&&b.tagName!=="TH";)b=b.parentNode;if(!(!y||!y.resizable)&&!i.value&&e.border){const C=b.getBoundingClientRect(),g=document.body.style;C.width>12&&C.right-m.pageX<8?(g.cursor="col-resize",vn(b,"is-sortable")&&(b.style.cursor="col-resize"),u.value=y):i.value||(g.cursor="",vn(b,"is-sortable")&&(b.style.cursor="pointer"),u.value=null)}},p=()=>{!je||(document.body.style.cursor="")},d=({order:m,sortOrders:y})=>{if(m==="")return y[0];const b=y.indexOf(m||null);return y[b>y.length-2?0:b+1]},v=(m,y,b)=>{m.stopPropagation();const C=y.order===b?null:b||d(y);let g=m.target;for(;g&&g.tagName!=="TH";)g=g.parentNode;if(g&&g.tagName==="TH"&&vn(g,"noclick")){Bt(g,"noclick");return}if(!y.sortable)return;const w=e.store.states;let M=w.sortProp.value,I;const T=w.sortingColumn.value;(T!==y||T===y&&T.order===null)&&(T&&(T.order=null),w.sortingColumn.value=y,M=y.property),C?I=y.order=C:I=y.order=null,w.sortProp.value=M,w.sortOrder.value=I,o==null||o.store.commit("changeSortCondition")};return{handleHeaderClick:s,handleHeaderContextMenu:r,handleMouseDown:f,handleMouseMove:h,handleMouseOut:p,handleSortClick:v,handleFilterClick:l}}function FC(e){const t=fe(fn),n=le("table");return{getHeaderRowStyle:u=>{const i=t==null?void 0:t.props.headerRowStyle;return typeof i=="function"?i.call(null,{rowIndex:u}):i},getHeaderRowClass:u=>{const i=[],c=t==null?void 0:t.props.headerRowClassName;return typeof c=="string"?i.push(c):typeof c=="function"&&i.push(c.call(null,{rowIndex:u})),i.join(" ")},getHeaderCellStyle:(u,i,c,f)=>{var h;let p=(h=t==null?void 0:t.props.headerCellStyle)!=null?h:{};typeof p=="function"&&(p=p.call(null,{rowIndex:u,columnIndex:i,row:c,column:f}));const d=f.isSubColumn?null:Ra(i,f.fixed,e.store,c);return co(d,"left"),co(d,"right"),Object.assign({},p,d)},getHeaderCellClass:(u,i,c,f)=>{const h=f.isSubColumn?[]:La(n.b(),i,f.fixed,e.store,c),p=[f.id,f.order,f.headerAlign,f.className,f.labelClassName,...h];f.children||p.push("is-leaf"),f.sortable&&p.push("is-sortable");const d=t==null?void 0:t.props.headerCellClassName;return typeof d=="string"?p.push(d):typeof d=="function"&&p.push(d.call(null,{rowIndex:u,columnIndex:i,row:c,column:f})),p.push(n.e("cell")),p.filter(v=>Boolean(v)).join(" ")}}}const Gi=e=>{const t=[];return e.forEach(n=>{n.children?(t.push(n),t.push.apply(t,Gi(n.children))):t.push(n)}),t},zC=e=>{let t=1;const n=(s,r)=>{if(r&&(s.level=r.level+1,t{n(i,s),u+=i.colSpan}),s.colSpan=u}else s.colSpan=1};e.forEach(s=>{s.level=1,n(s,void 0)});const o=[];for(let s=0;s{s.children?(s.rowSpan=1,s.children.forEach(r=>r.isSubColumn=!0)):s.rowSpan=t-s.level+1,o[s.level-1].push(s)}),o};function VC(e){const t=fe(fn),n=$(()=>zC(e.store.states.originColumns.value));return{isGroup:$(()=>{const s=n.value.length>1;return s&&t&&(t.state.isGroup.value=!0),s}),toggleAllSelection:s=>{s.stopPropagation(),t==null||t.store.commit("toggleAllSelection")},columnRows:n}}var HC=se({name:"ElTableHeader",components:{ElCheckbox:Wn},props:{fixed:{type:String,default:""},store:{required:!0,type:Object},border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})}},setup(e,{emit:t}){const n=De(),o=fe(fn),l=le("table"),s=P({}),{onColumnsChange:r,onScrollableChange:u}=Yi(o);Re(async()=>{await ke(),await ke();const{prop:I,order:T}=e.defaultSort;o==null||o.store.commit("sort",{prop:I,order:T,init:!0})});const{handleHeaderClick:i,handleHeaderContextMenu:c,handleMouseDown:f,handleMouseMove:h,handleMouseOut:p,handleSortClick:d,handleFilterClick:v}=_C(e,t),{getHeaderRowStyle:m,getHeaderRowClass:y,getHeaderCellStyle:b,getHeaderCellClass:C}=FC(e),{isGroup:g,toggleAllSelection:w,columnRows:M}=VC(e);return n.state={onColumnsChange:r,onScrollableChange:u},n.filterPanels=s,{ns:l,filterPanels:s,onColumnsChange:r,onScrollableChange:u,columnRows:M,getHeaderRowClass:y,getHeaderRowStyle:m,getHeaderCellClass:C,getHeaderCellStyle:b,handleHeaderClick:i,handleHeaderContextMenu:c,handleMouseDown:f,handleMouseMove:h,handleMouseOut:p,handleSortClick:d,handleFilterClick:v,isGroup:g,toggleAllSelection:w}},render(){const{ns:e,isGroup:t,columnRows:n,getHeaderCellStyle:o,getHeaderCellClass:l,getHeaderRowClass:s,getHeaderRowStyle:r,handleHeaderClick:u,handleHeaderContextMenu:i,handleMouseDown:c,handleMouseMove:f,handleSortClick:h,handleMouseOut:p,store:d,$parent:v}=this;let m=1;return Se("thead",{class:{[e.is("group")]:t}},n.map((y,b)=>Se("tr",{class:s(b),key:b,style:r(b)},y.map((C,g)=>(C.rowSpan>m&&(m=C.rowSpan),Se("th",{class:l(b,g,y,C),colspan:C.colSpan,key:`${C.id}-thead`,rowspan:C.rowSpan,style:o(b,g,y,C),onClick:w=>u(w,C),onContextmenu:w=>i(w,C),onMousedown:w=>c(w,C),onMousemove:w=>f(w,C),onMouseout:p},[Se("div",{class:["cell",C.filteredValue&&C.filteredValue.length>0?"highlight":"",C.labelClassName]},[C.renderHeader?C.renderHeader({column:C,$index:g,store:d,_self:v}):C.label,C.sortable&&Se("span",{onClick:w=>h(w,C),class:"caret-wrapper"},[Se("i",{onClick:w=>h(w,C,"ascending"),class:"sort-caret ascending"}),Se("i",{onClick:w=>h(w,C,"descending"),class:"sort-caret descending"})]),C.filterable&&Se(RC,{store:d,placement:C.filterPlacement||"bottom-start",column:C,upDataColumn:(w,M)=>{C[w]=M}})])]))))))}});function KC(e){const t=fe(fn),n=P(""),o=P(Se("div")),l=(p,d,v)=>{var m;const y=t,b=Vl(p);let C;const g=(m=y==null?void 0:y.vnode.el)==null?void 0:m.dataset.prefix;b&&(C=Bs({columns:e.store.states.columns.value},b,g),C&&(y==null||y.emit(`cell-${v}`,d,C,b,p))),y==null||y.emit(`row-${v}`,d,C,p)},s=(p,d)=>{l(p,d,"dblclick")},r=(p,d)=>{e.store.commit("setCurrentRow",d),l(p,d,"click")},u=(p,d)=>{l(p,d,"contextmenu")},i=mn(p=>{e.store.commit("setHoverRow",p)},30),c=mn(()=>{e.store.commit("setHoverRow",null)},30);return{handleDoubleClick:s,handleClick:r,handleContextMenu:u,handleMouseEnter:i,handleMouseLeave:c,handleCellMouseEnter:(p,d)=>{var v;const m=t,y=Vl(p),b=(v=m==null?void 0:m.vnode.el)==null?void 0:v.dataset.prefix;if(y){const I=Bs({columns:e.store.states.columns.value},y,b),T=m.hoverState={cell:y,column:I,row:d};m==null||m.emit("cell-mouse-enter",T.row,T.column,T.cell,p)}const C=p.target.querySelector(".cell");if(!(vn(C,`${b}-tooltip`)&&C.childNodes.length))return;const g=document.createRange();g.setStart(C,0),g.setEnd(C,C.childNodes.length);const w=g.getBoundingClientRect().width,M=(Number.parseInt(tn(C,"paddingLeft"),10)||0)+(Number.parseInt(tn(C,"paddingRight"),10)||0);(w+M>C.offsetWidth||C.scrollWidth>C.offsetWidth)&&CC(t==null?void 0:t.refs.tableWrapper,y,y.innerText||y.textContent,{placement:"top",strategy:"fixed"},d.tooltipEffect)},handleCellMouseLeave:p=>{if(!Vl(p))return;const v=t==null?void 0:t.hoverState;t==null||t.emit("cell-mouse-leave",v==null?void 0:v.row,v==null?void 0:v.column,v==null?void 0:v.cell,p)},tooltipContent:n,tooltipTrigger:o}}function WC(e){const t=fe(fn),n=le("table");return{getRowStyle:(c,f)=>{const h=t==null?void 0:t.props.rowStyle;return typeof h=="function"?h.call(null,{row:c,rowIndex:f}):h||null},getRowClass:(c,f)=>{const h=[n.e("row")];(t==null?void 0:t.props.highlightCurrentRow)&&c===e.store.states.currentRow.value&&h.push("current-row"),e.stripe&&f%2===1&&h.push(n.em("row","striped"));const p=t==null?void 0:t.props.rowClassName;return typeof p=="string"?h.push(p):typeof p=="function"&&h.push(p.call(null,{row:c,rowIndex:f})),h},getCellStyle:(c,f,h,p)=>{const d=t==null?void 0:t.props.cellStyle;let v=d!=null?d:{};typeof d=="function"&&(v=d.call(null,{rowIndex:c,columnIndex:f,row:h,column:p}));const m=p.isSubColumn?null:Ra(f,e==null?void 0:e.fixed,e.store);return co(m,"left"),co(m,"right"),Object.assign({},v,m)},getCellClass:(c,f,h,p)=>{const d=p.isSubColumn?[]:La(n.b(),f,e==null?void 0:e.fixed,e.store),v=[p.id,p.align,p.className,...d],m=t==null?void 0:t.props.cellClassName;return typeof m=="string"?v.push(m):typeof m=="function"&&v.push(m.call(null,{rowIndex:c,columnIndex:f,row:h,column:p})),v.push(n.e("cell")),v.filter(y=>Boolean(y)).join(" ")},getSpan:(c,f,h,p)=>{let d=1,v=1;const m=t==null?void 0:t.props.spanMethod;if(typeof m=="function"){const y=m({row:c,column:f,rowIndex:h,columnIndex:p});Array.isArray(y)?(d=y[0],v=y[1]):typeof y=="object"&&(d=y.rowspan,v=y.colspan)}return{rowspan:d,colspan:v}},getColspanRealWidth:(c,f,h)=>{if(f<1)return c[h].realWidth;const p=c.map(({realWidth:d,width:v})=>d||v).slice(h,h+f);return Number(p.reduce((d,v)=>Number(d)+Number(v),-1))}}}function jC(e){const t=fe(fn),n=le("table"),{handleDoubleClick:o,handleClick:l,handleContextMenu:s,handleMouseEnter:r,handleMouseLeave:u,handleCellMouseEnter:i,handleCellMouseLeave:c,tooltipContent:f,tooltipTrigger:h}=KC(e),{getRowStyle:p,getRowClass:d,getCellStyle:v,getCellClass:m,getSpan:y,getColspanRealWidth:b}=WC(e),C=$(()=>e.store.states.columns.value.findIndex(({type:T})=>T==="default")),g=(T,B)=>{const O=t.props.rowKey;return O?wt(T,O):B},w=(T,B,O,V=!1)=>{const{tooltipEffect:W,store:J}=e,{indent:F,columns:H}=J.states,U=d(T,B);let _=!0;return O&&(U.push(n.em("row",`level-${O.level}`)),_=O.display),Se("tr",{style:[_?null:{display:"none"},p(T,B)],class:U,key:g(T,B),onDblclick:A=>o(A,T),onClick:A=>l(A,T),onContextmenu:A=>s(A,T),onMouseenter:()=>r(B),onMouseleave:u},H.value.map((A,N)=>{const{rowspan:R,colspan:G}=y(T,A,B,N);if(!R||!G)return null;const re={...A};re.realWidth=b(H.value,G,N);const ce={store:e.store,_self:e.context||t,column:re,row:T,$index:B,cellIndex:N,expanded:V};N===C.value&&O&&(ce.treeNode={indent:O.level*F.value,level:O.level},typeof O.expanded=="boolean"&&(ce.treeNode.expanded=O.expanded,"loading"in O&&(ce.treeNode.loading=O.loading),"noLazyChildren"in O&&(ce.treeNode.noLazyChildren=O.noLazyChildren)));const ye=`${B},${N}`,ge=re.columnKey||re.rawColumnKey||"",Te=M(N,A,ce);return Se("td",{style:v(B,N,T,A),class:m(B,N,T,A),key:`${ge}${ye}`,rowspan:R,colspan:G,onMouseenter:X=>i(X,{...T,tooltipEffect:W}),onMouseleave:c},[Te])}))},M=(T,B,O)=>B.renderCell(O);return{wrappedRowRender:(T,B)=>{const O=e.store,{isRowExpanded:V,assertRowKey:W}=O,{treeData:J,lazyTreeNodeMap:F,childrenColumnName:H,rowKey:U}=O.states,_=O.states.columns.value;if(_.some(({type:A})=>A==="expand")){const A=V(T),N=w(T,B,void 0,A),R=t.renderExpanded;return A?R?[[N,Se("tr",{key:`expanded-row__${N.key}`},[Se("td",{colspan:_.length,class:"el-table__cell el-table__expanded-cell"},[R({row:T,$index:B,store:O,expanded:A})])])]]:(console.error("[Element Error]renderExpanded is required."),N):[[N]]}else if(Object.keys(J.value).length){W();const A=wt(T,U.value);let N=J.value[A],R=null;N&&(R={expanded:N.expanded,level:N.level,display:!0},typeof N.lazy=="boolean"&&(typeof N.loaded=="boolean"&&N.loaded&&(R.noLazyChildren=!(N.children&&N.children.length)),R.loading=N.loading));const G=[w(T,B,R)];if(N){let re=0;const ce=(ge,Te)=>{!(ge&&ge.length&&Te)||ge.forEach(X=>{const ve={display:Te.display&&Te.expanded,level:Te.level+1,expanded:!1,noLazyChildren:!1,loading:!1},Ne=wt(X,U.value);if(Ne==null)throw new Error("For nested data item, row-key is required.");if(N={...J.value[Ne]},N&&(ve.expanded=N.expanded,N.level=N.level||ve.level,N.display=!!(N.expanded&&ve.display),typeof N.lazy=="boolean"&&(typeof N.loaded=="boolean"&&N.loaded&&(ve.noLazyChildren=!(N.children&&N.children.length)),ve.loading=N.loading)),re++,G.push(w(X,B+re,ve)),N){const Le=F.value[Ne]||X[H.value];ce(Le,N)}})};N.display=!0;const ye=F.value[A]||T[H.value];ce(ye,N)}return G}else return w(T,B,void 0)},tooltipContent:f,tooltipTrigger:h}}const xC={store:{required:!0,type:Object},stripe:Boolean,tooltipEffect:String,context:{default:()=>({}),type:Object},rowClassName:[String,Function],rowStyle:[Object,Function],fixed:{type:String,default:""},highlight:Boolean};var qC=se({name:"ElTableBody",props:xC,setup(e){const t=De(),n=fe(fn),o=le("table"),{wrappedRowRender:l,tooltipContent:s,tooltipTrigger:r}=jC(e),{onColumnsChange:u,onScrollableChange:i}=Yi(n);return oe(e.store.states.hoverRow,(c,f)=>{if(!e.store.states.isComplex.value||!je)return;let h=window.requestAnimationFrame;h||(h=p=>window.setTimeout(p,16)),h(()=>{var p;const d=(p=t==null?void 0:t.vnode.el)==null?void 0:p.querySelectorAll(`.${o.e("row")}`),v=d[f],m=d[c];v&&Bt(v,"hover-row"),m&&nn(m,"hover-row")})}),vl(()=>{var c;(c=Tn)==null||c()}),Mn(()=>{var c;(c=Tn)==null||c()}),{ns:o,onColumnsChange:u,onScrollableChange:i,wrappedRowRender:l,tooltipContent:s,tooltipTrigger:r}},render(){const{wrappedRowRender:e,store:t}=this,n=t.states.data.value||[];return Se("tbody",{},[n.reduce((o,l)=>o.concat(e(l,o.length)),[])])}});function _a(e){const t=e.tableLayout==="auto";let n=e.columns||[];t&&n.every(l=>l.width===void 0)&&(n=[]);const o=l=>{const s={key:`${e.tableLayout}_${l.id}`,style:{},name:void 0};return t?s.style={width:`${l.width}px`}:s.name=l.id,s};return Se("colgroup",{},n.map(l=>Se("col",o(l))))}_a.props=["columns","tableLayout"];function UC(){const e=fe(fn),t=e==null?void 0:e.store,n=$(()=>t.states.fixedLeafColumnsLength.value),o=$(()=>t.states.rightFixedColumns.value.length),l=$(()=>t.states.columns.value.length),s=$(()=>t.states.fixedColumns.value.length),r=$(()=>t.states.rightFixedColumns.value.length);return{leftFixedLeafCount:n,rightFixedLeafCount:o,columnsCount:l,leftFixedCount:s,rightFixedCount:r,columns:t.states.columns}}function YC(e){const{columns:t}=UC(),n=le("table");return{getCellClasses:(s,r)=>{const u=s[r],i=[n.e("cell"),u.id,u.align,u.labelClassName,...La(n.b(),r,u.fixed,e.store)];return u.className&&i.push(u.className),u.children||i.push(n.is("leaf")),i},getCellStyles:(s,r)=>{const u=Ra(r,s.fixed,e.store);return co(u,"left"),co(u,"right"),u},columns:t}}var GC=se({name:"ElTableFooter",props:{fixed:{type:String,default:""},store:{required:!0,type:Object},summaryMethod:Function,sumText:String,border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})}},setup(e){const{getCellClasses:t,getCellStyles:n,columns:o}=YC(e);return{ns:le("table"),getCellClasses:t,getCellStyles:n,columns:o}},render(){const{columns:e,getCellStyles:t,getCellClasses:n,summaryMethod:o,sumText:l,ns:s}=this,r=this.store.states.data.value;let u=[];return o?u=o({columns:e,data:r}):e.forEach((i,c)=>{if(c===0){u[c]=l;return}const f=r.map(v=>Number(v[i.property])),h=[];let p=!0;f.forEach(v=>{if(!Number.isNaN(+v)){p=!1;const m=`${v}`.split(".")[1];h.push(m?m.length:0)}});const d=Math.max.apply(null,h);p?u[c]="":u[c]=f.reduce((v,m)=>{const y=Number(m);return Number.isNaN(+y)?v:Number.parseFloat((v+m).toFixed(Math.min(d,20)))},0)}),Se("table",{class:s.e("footer"),cellspacing:"0",cellpadding:"0",border:"0"},[_a({columns:e}),Se("tbody",[Se("tr",{},[...e.map((i,c)=>Se("td",{key:c,colspan:i.colSpan,rowspan:i.rowSpan,class:n(e,c),style:t(i,c)},[Se("div",{class:["cell",i.labelClassName]},[u[c]])]))])])])}});function XC(e){return{setCurrentRow:f=>{e.commit("setCurrentRow",f)},getSelectionRows:()=>e.getSelectionRows(),toggleRowSelection:(f,h)=>{e.toggleRowSelection(f,h,!1),e.updateAllSelected()},clearSelection:()=>{e.clearSelection()},clearFilter:f=>{e.clearFilter(f)},toggleAllSelection:()=>{e.commit("toggleAllSelection")},toggleRowExpansion:(f,h)=>{e.toggleRowExpansionAdapter(f,h)},clearSort:()=>{e.clearSort()},sort:(f,h)=>{e.commit("sort",{prop:f,order:h})}}}function JC(e,t,n,o){const l=P(!1),s=P(null),r=P(!1),u=D=>{r.value=D},i=P({width:null,height:null}),c=P(!1),f={display:"block",verticalAlign:"middle"},h=P();Nn(()=>{t.setHeight(e.height)}),Nn(()=>{t.setMaxHeight(e.maxHeight)}),oe(()=>[e.currentRowKey,n.states.rowKey],([D,A])=>{!a(A)||n.setCurrentRowKey(`${D}`)},{immediate:!0}),oe(()=>e.data,D=>{o.store.commit("setData",D)},{immediate:!0,deep:!0}),Nn(()=>{e.expandRowKeys&&n.setExpandRowKeysAdapter(e.expandRowKeys)});const p=()=>{o.store.commit("setHoverRow",null),o.hoverState&&(o.hoverState=null)},d=(D,A)=>{const{pixelX:N,pixelY:R}=A;Math.abs(N)>=Math.abs(R)&&(o.refs.bodyWrapper.scrollLeft+=A.pixelX/5)},v=$(()=>e.height||e.maxHeight||n.states.fixedColumns.value.length>0||n.states.rightFixedColumns.value.length>0),m=$(()=>({width:t.bodyWidth.value?`${t.bodyWidth.value}px`:""})),y=()=>{v.value&&t.updateElsHeight(),t.updateColumnsWidth(),requestAnimationFrame(w)};Re(async()=>{await ke(),n.updateColumns(),M(),requestAnimationFrame(y);const D=o.vnode.el;e.flexible&&D&&D.parentElement&&(D.parentElement.style.minWidth="0"),i.value={width:h.value=D.offsetWidth,height:D.offsetHeight},n.states.columns.value.forEach(A=>{A.filteredValue&&A.filteredValue.length&&o.store.commit("filterChange",{column:A,values:A.filteredValue,silent:!0})}),o.$ready=!0});const b=(D,A)=>{if(!D)return;const N=Array.from(D.classList).filter(R=>!R.startsWith("is-scrolling-"));N.push(t.scrollX.value?A:"is-scrolling-none"),D.className=N.join(" ")},C=D=>{const{tableWrapper:A}=o.refs;b(A,D)},g=D=>{const{tableWrapper:A}=o.refs;return!!(A&&A.classList.contains(D))},w=function(){if(!o.refs.scrollBarRef)return;if(!t.scrollX.value){const ye="is-scrolling-none";g(ye)||C(ye);return}const D=o.refs.scrollBarRef.wrap$;if(!D)return;const{scrollLeft:A,offsetWidth:N,scrollWidth:R}=D,{headerWrapper:G,footerWrapper:re}=o.refs;G&&(G.scrollLeft=A),re&&(re.scrollLeft=A);const ce=R-N-1;A>=ce?C("is-scrolling-right"):C(A===0?"is-scrolling-left":"is-scrolling-middle")},M=()=>{!o.refs.scrollBarRef||(o.refs.scrollBarRef.wrap$&&zt(o.refs.scrollBarRef.wrap$,"scroll",w,{passive:!0}),e.fit?yn(o.vnode.el,I):zt(window,"resize",I))},I=()=>{if(!o.$ready)return;let D=!1;const A=o.vnode.el,{width:N,height:R}=i.value,G=h.value=A.offsetWidth;N!==G&&(D=!0);const re=A.offsetHeight;(e.height||v.value)&&R!==re&&(D=!0),D&&(i.value={width:G,height:re},y())},T=kt(),B=$(()=>{const{bodyWidth:D,scrollY:A,gutterWidth:N}=t;return D.value?`${D.value-(A.value?N:0)}px`:""}),O=$(()=>e.maxHeight?"fixed":e.tableLayout);function V(D,A,N){const R=Ql(D),G=e.showHeader?N:0;if(R!==null)return He(R)?`calc(${R} - ${A}px - ${G}px)`:R-A-G}const W=$(()=>{const D=t.headerHeight.value||0,A=t.bodyHeight.value,N=t.footerHeight.value||0;if(e.height)return A||void 0;if(e.maxHeight)return V(e.maxHeight,N,D)}),J=$(()=>{const D=t.headerHeight.value||0,A=t.bodyHeight.value,N=t.footerHeight.value||0;if(e.height)return{height:A?`${A}px`:""};if(e.maxHeight){const R=V(e.maxHeight,N,D);if(R!==null)return{"max-height":`${R}${We(R)?"px":""}`}}return{}}),F=$(()=>{if(e.data&&e.data.length)return null;let D="100%";return t.appendHeight.value&&(D=`calc(100% - ${t.appendHeight.value}px)`),{width:h.value?`${h.value}px`:"",height:D}}),H=(D,A)=>{const N=o.refs.bodyWrapper;if(Math.abs(A.spinY)>0){const R=N.scrollTop;A.pixelY<0&&R!==0&&D.preventDefault(),A.pixelY>0&&N.scrollHeight-N.clientHeight>R&&D.preventDefault(),N.scrollTop+=Math.ceil(A.pixelY/5)}else N.scrollLeft+=Math.ceil(A.pixelX/5)},U=$(()=>e.maxHeight?e.showSummary?{bottom:0}:{bottom:t.scrollX.value&&e.data.length?`${t.gutterWidth}px`:""}:e.showSummary?{height:t.tableHeight.value?`${t.tableHeight.value}px`:""}:{height:t.viewportHeight.value?`${t.viewportHeight.value}px`:""}),_=$(()=>{if(e.height)return{height:t.fixedBodyHeight.value?`${t.fixedBodyHeight.value}px`:""};if(e.maxHeight){let D=Ql(e.maxHeight);if(typeof D=="number")return D=t.scrollX.value?D-t.gutterWidth:D,e.showHeader&&(D-=t.headerHeight.value),D-=t.footerHeight.value,{"max-height":`${D}px`}}return{}});return{isHidden:l,renderExpanded:s,setDragVisible:u,isGroup:c,handleMouseLeave:p,handleHeaderFooterMousewheel:d,tableSize:T,bodyHeight:J,height:W,emptyBlockStyle:F,handleFixedMousewheel:H,fixedHeight:U,fixedBodyHeight:_,resizeProxyVisible:r,bodyWidth:B,resizeState:i,doLayout:y,tableBodyStyles:m,tableLayout:O,scrollbarViewStyle:f}}var ZC={data:{type:Array,default:()=>[]},size:String,width:[String,Number],height:[String,Number],maxHeight:[String,Number],fit:{type:Boolean,default:!0},stripe:Boolean,border:Boolean,rowKey:[String,Function],showHeader:{type:Boolean,default:!0},showSummary:Boolean,sumText:String,summaryMethod:Function,rowClassName:[String,Function],rowStyle:[Object,Function],cellClassName:[String,Function],cellStyle:[Object,Function],headerRowClassName:[String,Function],headerRowStyle:[Object,Function],headerCellClassName:[String,Function],headerCellStyle:[Object,Function],highlightCurrentRow:Boolean,currentRowKey:[String,Number],emptyText:String,expandRowKeys:Array,defaultExpandAll:Boolean,defaultSort:Object,tooltipEffect:String,spanMethod:Function,selectOnIndeterminate:{type:Boolean,default:!0},indent:{type:Number,default:16},treeProps:{type:Object,default:()=>({hasChildren:"hasChildren",children:"children"})},lazy:Boolean,load:Function,style:{type:Object,default:()=>({})},className:{type:String,default:""},tableLayout:{type:String,default:"fixed"},scrollbarAlwaysOn:{type:Boolean,default:!1},flexible:Boolean};const QC=()=>{const e=P(),t=(s,r)=>{const u=e.value;u&&u.scrollTo(s,r)},n=(s,r)=>{const u=e.value;u&&We(r)&&["Top","Left"].includes(s)&&u[`setScroll${s}`](r)};return{scrollBarRef:e,scrollTo:t,setScrollTop:s=>n("Top",s),setScrollLeft:s=>n("Left",s)}};let ew=1;const tw=se({name:"ElTable",directives:{Mousewheel:yv},components:{TableHeader:HC,TableBody:qC,TableFooter:GC,ElScrollbar:bo,hColgroup:_a},props:ZC,emits:["select","select-all","selection-change","cell-mouse-enter","cell-mouse-leave","cell-contextmenu","cell-click","cell-dblclick","row-click","row-contextmenu","row-dblclick","header-click","header-contextmenu","sort-change","filter-change","current-change","header-dragend","expand-change"],setup(e){const{t}=Je(),n=le("table"),o=De();Fe(fn,o);const l=NC(o,e);o.store=l;const s=new IC({store:o.store,table:o,fit:e.fit,showHeader:e.showHeader});o.layout=s;const r=$(()=>(l.states.data.value||[]).length===0),{setCurrentRow:u,getSelectionRows:i,toggleRowSelection:c,clearSelection:f,clearFilter:h,toggleAllSelection:p,toggleRowExpansion:d,clearSort:v,sort:m}=XC(l),{isHidden:y,renderExpanded:b,setDragVisible:C,isGroup:g,handleMouseLeave:w,handleHeaderFooterMousewheel:M,tableSize:I,bodyHeight:T,height:B,emptyBlockStyle:O,handleFixedMousewheel:V,fixedHeight:W,fixedBodyHeight:J,resizeProxyVisible:F,bodyWidth:H,resizeState:U,doLayout:_,tableBodyStyles:D,tableLayout:A,scrollbarViewStyle:N}=JC(e,s,l,o),{scrollBarRef:R,scrollTo:G,setScrollLeft:re,setScrollTop:ce}=QC(),ye=mn(_,50),ge=`el-table_${ew++}`;o.tableId=ge,o.state={isGroup:g,resizeState:U,doLayout:_,debouncedUpdateLayout:ye};const Te=$(()=>e.sumText||t("el.table.sumText")),X=$(()=>e.emptyText||t("el.table.emptyText"));return{ns:n,layout:s,store:l,handleHeaderFooterMousewheel:M,handleMouseLeave:w,tableId:ge,tableSize:I,isHidden:y,isEmpty:r,renderExpanded:b,resizeProxyVisible:F,resizeState:U,isGroup:g,bodyWidth:H,bodyHeight:T,height:B,tableBodyStyles:D,emptyBlockStyle:O,debouncedUpdateLayout:ye,handleFixedMousewheel:V,fixedHeight:W,fixedBodyHeight:J,setCurrentRow:u,getSelectionRows:i,toggleRowSelection:c,clearSelection:f,clearFilter:h,toggleAllSelection:p,toggleRowExpansion:d,clearSort:v,doLayout:_,sort:m,t,setDragVisible:C,context:o,computedSumText:Te,computedEmptyText:X,tableLayout:A,scrollbarViewStyle:N,scrollBarRef:R,scrollTo:G,setScrollLeft:re,setScrollTop:ce}}}),nw=["data-prefix"],ow={ref:"hiddenColumns",class:"hidden-columns"};function lw(e,t,n,o,l,s){const r=Ee("hColgroup"),u=Ee("table-header"),i=Ee("table-body"),c=Ee("el-scrollbar"),f=Ee("table-footer"),h=hl("mousewheel");return k(),L("div",{ref:"tableWrapper",class:S([{[e.ns.m("fit")]:e.fit,[e.ns.m("striped")]:e.stripe,[e.ns.m("border")]:e.border||e.isGroup,[e.ns.m("hidden")]:e.isHidden,[e.ns.m("group")]:e.isGroup,[e.ns.m("fluid-height")]:e.maxHeight,[e.ns.m("scrollable-x")]:e.layout.scrollX.value,[e.ns.m("scrollable-y")]:e.layout.scrollY.value,[e.ns.m("enable-row-hover")]:!e.store.states.isComplex.value,[e.ns.m("enable-row-transition")]:(e.store.states.data.value||[]).length!==0&&(e.store.states.data.value||[]).length<100,"has-footer":e.showSummary},e.ns.m(e.tableSize),e.className,e.ns.b(),e.ns.m(`layout-${e.tableLayout}`)]),style:$e(e.style),"data-prefix":e.ns.namespace.value,onMouseleave:t[0]||(t[0]=p=>e.handleMouseLeave())},[x("div",{class:S(e.ns.e("inner-wrapper"))},[x("div",ow,[Q(e.$slots,"default")],512),e.showHeader&&e.tableLayout==="fixed"?Ie((k(),L("div",{key:0,ref:"headerWrapper",class:S(e.ns.e("header-wrapper"))},[x("table",{ref:"tableHeader",class:S(e.ns.e("header")),style:$e(e.tableBodyStyles),border:"0",cellpadding:"0",cellspacing:"0"},[j(r,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),j(u,{ref:"tableHeaderRef",border:e.border,"default-sort":e.defaultSort,store:e.store,onSetDragVisible:e.setDragVisible},null,8,["border","default-sort","store","onSetDragVisible"])],6)],2)),[[h,e.handleHeaderFooterMousewheel]]):Y("v-if",!0),x("div",{ref:"bodyWrapper",style:$e(e.bodyHeight),class:S(e.ns.e("body-wrapper"))},[j(c,{ref:"scrollBarRef",height:e.maxHeight?void 0:e.height,"max-height":e.maxHeight?e.height:void 0,"view-style":e.scrollbarViewStyle,always:e.scrollbarAlwaysOn},{default:K(()=>[x("table",{ref:"tableBody",class:S(e.ns.e("body")),cellspacing:"0",cellpadding:"0",border:"0",style:$e({width:e.bodyWidth,tableLayout:e.tableLayout})},[j(r,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),e.showHeader&&e.tableLayout==="auto"?(k(),Z(u,{key:0,border:e.border,"default-sort":e.defaultSort,store:e.store,onSetDragVisible:e.setDragVisible},null,8,["border","default-sort","store","onSetDragVisible"])):Y("v-if",!0),j(i,{context:e.context,highlight:e.highlightCurrentRow,"row-class-name":e.rowClassName,"tooltip-effect":e.tooltipEffect,"row-style":e.rowStyle,store:e.store,stripe:e.stripe},null,8,["context","highlight","row-class-name","tooltip-effect","row-style","store","stripe"])],6),e.isEmpty?(k(),L("div",{key:0,ref:"emptyBlock",style:$e(e.emptyBlockStyle),class:S(e.ns.e("empty-block"))},[x("span",{class:S(e.ns.e("empty-text"))},[Q(e.$slots,"empty",{},()=>[Xe(de(e.computedEmptyText),1)])],2)],6)):Y("v-if",!0),e.$slots.append?(k(),L("div",{key:1,ref:"appendWrapper",class:S(e.ns.e("append-wrapper"))},[Q(e.$slots,"append")],2)):Y("v-if",!0)]),_:3},8,["height","max-height","view-style","always"])],6),e.border||e.isGroup?(k(),L("div",{key:1,class:S(e.ns.e("border-left-patch"))},null,2)):Y("v-if",!0)],2),e.showSummary?Ie((k(),L("div",{key:0,ref:"footerWrapper",class:S(e.ns.e("footer-wrapper"))},[j(f,{border:e.border,"default-sort":e.defaultSort,store:e.store,style:$e(e.tableBodyStyles),"sum-text":e.computedSumText,"summary-method":e.summaryMethod},null,8,["border","default-sort","store","style","sum-text","summary-method"])],2)),[[Ye,!e.isEmpty],[h,e.handleHeaderFooterMousewheel]]):Y("v-if",!0),Ie(x("div",{ref:"resizeProxy",class:S(e.ns.e("column-resize-proxy"))},null,2),[[Ye,e.resizeProxyVisible]])],46,nw)}var aw=ie(tw,[["render",lw],["__file","/home/runner/work/element-plus/element-plus/packages/components/table/src/table.vue"]]);const sw={selection:"table-column--selection",expand:"table__expand-column"},rw={default:{order:""},selection:{width:48,minWidth:48,realWidth:48,order:""},expand:{width:48,minWidth:48,realWidth:48,order:""},index:{width:48,minWidth:48,realWidth:48,order:""}},iw=e=>sw[e]||"",uw={selection:{renderHeader({store:e}){function t(){return e.states.data.value&&e.states.data.value.length===0}return Se(Wn,{disabled:t(),size:e.states.tableSize.value,indeterminate:e.states.selection.value.length>0&&!e.states.isAllSelected.value,"onUpdate:modelValue":e.toggleAllSelection,modelValue:e.states.isAllSelected.value})},renderCell({row:e,column:t,store:n,$index:o}){return Se(Wn,{disabled:t.selectable?!t.selectable.call(null,e,o):!1,size:n.states.tableSize.value,onChange:()=>{n.commit("rowSelectedChanged",e)},onClick:l=>l.stopPropagation(),modelValue:n.isSelected(e)})},sortable:!1,resizable:!1},index:{renderHeader({column:e}){return e.label||"#"},renderCell({column:e,$index:t}){let n=t+1;const o=e.index;return typeof o=="number"?n=t+o:typeof o=="function"&&(n=o(t)),Se("div",{},[n])},sortable:!1},expand:{renderHeader({column:e}){return e.label||""},renderCell({row:e,store:t,expanded:n}){const{ns:o}=t,l=[o.e("expand-icon")];return n&&l.push(o.em("expand-icon","expanded")),Se("div",{class:l,onClick:function(r){r.stopPropagation(),t.toggleRowExpansion(e)}},{default:()=>[Se(he,null,{default:()=>[Se(ln)]})]})},sortable:!1,resizable:!1}};function cw({row:e,column:t,$index:n}){var o;const l=t.property,s=l&&xo(e,l).value;return t&&t.formatter?t.formatter(e,t,s,n):((o=s==null?void 0:s.toString)==null?void 0:o.call(s))||""}function dw({row:e,treeNode:t,store:n},o=!1){const{ns:l}=n;if(!t)return o?[Se("span",{class:l.e("placeholder")})]:null;const s=[],r=function(u){u.stopPropagation(),n.loadOrToggle(e)};if(t.indent&&s.push(Se("span",{class:l.e("indent"),style:{"padding-left":`${t.indent}px`}})),typeof t.expanded=="boolean"&&!t.noLazyChildren){const u=[l.e("expand-icon"),t.expanded?l.em("expand-icon","expanded"):""];let i=ln;t.loading&&(i=vo),s.push(Se("div",{class:u,onClick:r},{default:()=>[Se(he,{class:{[l.is("loading")]:t.loading}},{default:()=>[Se(i)]})]}))}else s.push(Se("span",{class:l.e("placeholder")}));return s}function Ls(e,t){return e.reduce((n,o)=>(n[o]=o,n),t)}function fw(e,t){const n=De();return{registerComplexWatchers:()=>{const s=["fixed"],r={realWidth:"width",realMinWidth:"minWidth"},u=Ls(s,r);Object.keys(u).forEach(i=>{const c=r[i];Rt(t,c)&&oe(()=>t[c],f=>{let h=f;c==="width"&&i==="realWidth"&&(h=Da(f)),c==="minWidth"&&i==="realMinWidth"&&(h=Wi(f)),n.columnConfig.value[c]=h,n.columnConfig.value[i]=h;const p=c==="fixed";e.value.store.scheduleLayout(p)})})},registerNormalWatchers:()=>{const s=["label","filters","filterMultiple","sortable","index","formatter","className","labelClassName","showOverflowTooltip"],r={property:"prop",align:"realAlign",headerAlign:"realHeaderAlign"},u=Ls(s,r);Object.keys(u).forEach(i=>{const c=r[i];Rt(t,c)&&oe(()=>t[c],f=>{n.columnConfig.value[i]=f})})}}}function pw(e,t,n){const o=De(),l=P(""),s=P(!1),r=P(),u=P(),i=le("table");Nn(()=>{r.value=e.align?`is-${e.align}`:null,r.value}),Nn(()=>{u.value=e.headerAlign?`is-${e.headerAlign}`:r.value,u.value});const c=$(()=>{let g=o.vnode.vParent||o.parent;for(;g&&!g.tableId&&!g.columnId;)g=g.vnode.vParent||g.parent;return g}),f=$(()=>{const{store:g}=o.parent;if(!g)return!1;const{treeData:w}=g.states,M=w.value;return M&&Object.keys(M).length>0}),h=P(Da(e.width)),p=P(Wi(e.minWidth)),d=g=>(h.value&&(g.width=h.value),p.value&&(g.minWidth=p.value),g.minWidth||(g.minWidth=80),g.realWidth=Number(g.width===void 0?g.minWidth:g.width),g),v=g=>{const w=g.type,M=uw[w]||{};Object.keys(M).forEach(T=>{const B=M[T];T!=="className"&&B!==void 0&&(g[T]=B)});const I=iw(w);if(I){const T=`${a(i.namespace)}-${I}`;g.className=g.className?`${g.className} ${T}`:T}return g},m=g=>{Array.isArray(g)?g.forEach(M=>w(M)):w(g);function w(M){var I;((I=M==null?void 0:M.type)==null?void 0:I.name)==="ElTableColumn"&&(M.vParent=o)}};return{columnId:l,realAlign:r,isSubColumn:s,realHeaderAlign:u,columnOrTableParent:c,setColumnWidth:d,setColumnForcedProps:v,setColumnRenders:g=>{e.renderHeader||g.type!=="selection"&&(g.renderHeader=I=>{o.columnConfig.value.label;const T=t.header;return T?T(I):g.label});let w=g.renderCell;const M=f.value;return g.type==="expand"?(g.renderCell=I=>Se("div",{class:"cell"},[w(I)]),n.value.renderExpanded=I=>t.default?t.default(I):t.default):(w=w||cw,g.renderCell=I=>{let T=null;if(t.default){const W=t.default(I);T=W.some(J=>J.type!==qs)?W:w(I)}else T=w(I);const B=M&&I.cellIndex===0,O=dw(I,B),V={class:"cell",style:{}};return g.showOverflowTooltip&&(V.class=`${V.class} ${a(i.namespace)}-tooltip`,V.style={width:`${(I.column.realWidth||Number(I.column.width))-1}px`}),m(T),Se("div",V,[O,T])}),g},getPropsData:(...g)=>g.reduce((w,M)=>(Array.isArray(M)&&M.forEach(I=>{w[I]=e[I]}),w),{}),getColumnElIndex:(g,w)=>Array.prototype.indexOf.call(g,w)}}var vw={type:{type:String,default:"default"},label:String,className:String,labelClassName:String,property:String,prop:String,width:{type:[String,Number],default:""},minWidth:{type:[String,Number],default:""},renderHeader:Function,sortable:{type:[Boolean,String],default:!1},sortMethod:Function,sortBy:[String,Function,Array],resizable:{type:Boolean,default:!0},columnKey:String,align:String,headerAlign:String,showTooltipWhenOverflow:Boolean,showOverflowTooltip:Boolean,fixed:[Boolean,String],formatter:Function,selectable:Function,reserveSelection:Boolean,filterMethod:Function,filteredValue:Array,filters:Array,filterPlacement:String,filterMultiple:{type:Boolean,default:!0},index:[Number,Function],sortOrders:{type:Array,default:()=>["ascending","descending",null],validator:e=>e.every(t=>["ascending","descending",null].includes(t))}};let mw=1;var Xi=se({name:"ElTableColumn",components:{ElCheckbox:Wn},props:vw,setup(e,{slots:t}){const n=De(),o=P({}),l=$(()=>{let C=n.parent;for(;C&&!C.tableId;)C=C.parent;return C}),{registerNormalWatchers:s,registerComplexWatchers:r}=fw(l,e),{columnId:u,isSubColumn:i,realHeaderAlign:c,columnOrTableParent:f,setColumnWidth:h,setColumnForcedProps:p,setColumnRenders:d,getPropsData:v,getColumnElIndex:m,realAlign:y}=pw(e,t,l),b=f.value;u.value=`${b.tableId||b.columnId}_column_${mw++}`,sa(()=>{i.value=l.value!==b;const C=e.type||"default",g=e.sortable===""?!0:e.sortable,w={...rw[C],id:u.value,type:C,property:e.prop||e.property,align:y,headerAlign:c,showOverflowTooltip:e.showOverflowTooltip||e.showTooltipWhenOverflow,filterable:e.filters||e.filterMethod,filteredValue:[],filterPlacement:"",isColumnGroup:!1,isSubColumn:!1,filterOpened:!1,sortable:g,index:e.index,rawColumnKey:n.vnode.key};let O=v(["columnKey","label","className","labelClassName","type","renderHeader","formatter","fixed","resizable"],["sortMethod","sortBy","sortOrders"],["selectable","reserveSelection"],["filterMethod","filters","filterMultiple","filterOpened","filteredValue","filterPlacement"]);O=gC(w,O),O=bC(d,h,p)(O),o.value=O,s(),r()}),Re(()=>{var C;const g=f.value,w=i.value?g.vnode.el.children:(C=g.refs.hiddenColumns)==null?void 0:C.children,M=()=>m(w||[],n.vnode.el);o.value.getColumnIndex=M,M()>-1&&l.value.store.commit("insertColumn",o.value,i.value?g.columnConfig.value:null)}),yt(()=>{l.value.store.commit("removeColumn",o.value,i.value?b.columnConfig.value:null)}),n.columnId=u.value,n.columnConfig=o},render(){var e,t,n;try{const o=(t=(e=this.$slots).default)==null?void 0:t.call(e,{row:{},column:{},$index:-1}),l=[];if(Array.isArray(o))for(const r of o)((n=r.type)==null?void 0:n.name)==="ElTableColumn"||r.shapeFlag&2?l.push(r):r.type===Pe&&Array.isArray(r.children)&&r.children.forEach(u=>{(u==null?void 0:u.patchFlag)!==1024&&!He(u==null?void 0:u.children)&&l.push(u)});return Se("div",l)}catch{return Se("div",[])}}});const tE=Ke(aw,{TableColumn:Xi}),nE=mt(Xi),hw=pe({tabs:{type:te(Array),default:()=>Ct([])}}),gw={name:"ElTabBar"},bw=se({...gw,props:hw,setup(e,{expose:t}){const n=e,o="ElTabBar",l=De(),s=fe(wl);s||Ot(o,"");const r=le("tabs"),u=P(),i=P(),c=()=>{let h=0,p=0;const d=["top","bottom"].includes(s.props.tabPosition)?"width":"height",v=d==="width"?"x":"y";return n.tabs.every(m=>{var y,b,C,g;const w=(b=(y=l.parent)==null?void 0:y.refs)==null?void 0:b[`tab-${m.paneName}`];if(!w)return!1;if(!m.active)return!0;p=w[`client${Rn(d)}`];const M=v==="x"?"left":"top";h=w.getBoundingClientRect()[M]-((g=(C=w.parentElement)==null?void 0:C.getBoundingClientRect()[M])!=null?g:0);const I=window.getComputedStyle(w);return d==="width"&&(n.tabs.length>1&&(p-=Number.parseFloat(I.paddingLeft)+Number.parseFloat(I.paddingRight)),h+=Number.parseFloat(I.paddingLeft)),!1}),{[d]:`${p}px`,transform:`translate${Rn(v)}(${h}px)`}},f=()=>i.value=c();return oe(()=>n.tabs,async()=>{await ke(),f()},{immediate:!0}),yn(u,()=>f()),t({ref:u,update:f}),(h,p)=>(k(),L("div",{ref_key:"barRef",ref:u,class:S([a(r).e("active-bar"),a(r).is(a(s).props.tabPosition)]),style:$e(i.value)},null,6))}});var yw=ie(bw,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tabs/src/tab-bar.vue"]]);const Cw=pe({panes:{type:te(Array),default:()=>Ct([])},currentName:{type:[String,Number],default:""},editable:Boolean,onTabClick:{type:te(Function),default:tt},onTabRemove:{type:te(Function),default:tt},type:{type:String,values:["card","border-card",""],default:""},stretch:Boolean}),Rs="ElTabNav",ww=se({name:Rs,props:Cw,setup(e,{expose:t}){const n=De(),o=fe(wl);o||Ot(Rs,"");const l=le("tabs"),s=$u(),r=Tu(),u=P(),i=P(),c=P(),f=P(!1),h=P(0),p=P(!1),d=P(!0),v=$(()=>["top","bottom"].includes(o.props.tabPosition)?"width":"height"),m=$(()=>({transform:`translate${v.value==="width"?"X":"Y"}(-${h.value}px)`})),y=()=>{if(!u.value)return;const T=u.value[`offset${Rn(v.value)}`],B=h.value;if(!B)return;const O=B>T?B-T:0;h.value=O},b=()=>{if(!u.value||!i.value)return;const T=i.value[`offset${Rn(v.value)}`],B=u.value[`offset${Rn(v.value)}`],O=h.value;if(T-O<=B)return;const V=T-O>B*2?O+B:T-B;h.value=V},C=async()=>{const T=i.value;if(!f.value||!c.value||!u.value||!T)return;await ke();const B=c.value.querySelector(".is-active");if(!B)return;const O=u.value,V=["top","bottom"].includes(o.props.tabPosition),W=B.getBoundingClientRect(),J=O.getBoundingClientRect(),F=V?T.offsetWidth-J.width:T.offsetHeight-J.height,H=h.value;let U=H;V?(W.leftJ.right&&(U=H+W.right-J.right)):(W.topJ.bottom&&(U=H+(W.bottom-J.bottom))),U=Math.max(U,0),h.value=Math.min(U,F)},g=()=>{if(!i.value||!u.value)return;const T=i.value[`offset${Rn(v.value)}`],B=u.value[`offset${Rn(v.value)}`],O=h.value;if(B0&&(h.value=0)},w=T=>{const B=T.code,{up:O,down:V,left:W,right:J}=be;if(![O,V,W,J].includes(B))return;const F=Array.from(T.currentTarget.querySelectorAll("[role=tab]")),H=F.indexOf(T.target);let U;B===W||B===O?H===0?U=F.length-1:U=H-1:H{d.value&&(p.value=!0)},I=()=>p.value=!1;return oe(s,T=>{T==="hidden"?d.value=!1:T==="visible"&&setTimeout(()=>d.value=!0,50)}),oe(r,T=>{T?setTimeout(()=>d.value=!0,50):d.value=!1}),yn(c,g),Re(()=>setTimeout(()=>C(),0)),Mn(()=>g()),t({scrollToActiveTab:C,removeFocus:I}),oe(()=>e.panes,()=>n.update(),{flush:"post"}),()=>{const T=f.value?[j("span",{class:[l.e("nav-prev"),l.is("disabled",!f.value.prev)],onClick:y},[j(he,null,{default:()=>[j(to,null,null)]})]),j("span",{class:[l.e("nav-next"),l.is("disabled",!f.value.next)],onClick:b},[j(he,null,{default:()=>[j(ln,null,null)]})])]:null,B=e.panes.map((O,V)=>{var W,J,F,H;const U=(J=(W=O.props.name)!=null?W:O.index)!=null?J:`${V}`,_=O.isClosable||e.editable;O.index=`${V}`;const D=_?j(he,{class:"is-icon-close",onClick:R=>e.onTabRemove(O,R)},{default:()=>[j(rn,null,null)]}):null,A=((H=(F=O.slots).label)==null?void 0:H.call(F))||O.props.label,N=O.active?0:-1;return j("div",{ref:`tab-${U}`,class:[l.e("item"),l.is(o.props.tabPosition),l.is("active",O.active),l.is("disabled",O.props.disabled),l.is("closable",_),l.is("focus",p.value)],id:`tab-${U}`,key:`tab-${U}`,"aria-controls":`pane-${U}`,role:"tab","aria-selected":O.active,tabindex:N,onFocus:()=>M(),onBlur:()=>I(),onClick:R=>{I(),e.onTabClick(O,U,R)},onKeydown:R=>{_&&(R.code===be.delete||R.code===be.backspace)&&e.onTabRemove(O,R)}},[A,D])});return j("div",{ref:c,class:[l.e("nav-wrap"),l.is("scrollable",!!f.value),l.is(o.props.tabPosition)]},[T,j("div",{class:l.e("nav-scroll"),ref:u},[j("div",{class:[l.e("nav"),l.is(o.props.tabPosition),l.is("stretch",e.stretch&&["top","bottom"].includes(o.props.tabPosition))],ref:i,style:m.value,role:"tablist",onKeydown:w},[e.type?null:j(yw,{tabs:[...e.panes]},null),B])])])}}}),kw=pe({type:{type:String,values:["card","border-card",""],default:""},activeName:{type:[String,Number]},closable:Boolean,addable:Boolean,modelValue:{type:[String,Number]},editable:Boolean,tabPosition:{type:String,values:["top","right","bottom","left"],default:"top"},beforeLeave:{type:te(Function),default:()=>!0},stretch:Boolean}),Hl=e=>He(e)||We(e),Sw={[qe]:e=>Hl(e),"tab-click":(e,t)=>t instanceof Event,"tab-change":e=>Hl(e),edit:(e,t)=>["remove","add"].includes(t),"tab-remove":e=>Hl(e),"tab-add":()=>!0};var Ew=se({name:"ElTabs",props:kw,emits:Sw,setup(e,{emit:t,slots:n,expose:o}){var l,s;const r=le("tabs"),u=P(),i=rt({}),c=P((s=(l=e.modelValue)!=null?l:e.activeName)!=null?s:"0"),f=m=>{c.value=m,t(qe,m),t("tab-change",m)},h=async m=>{var y,b,C;if(!(c.value===m||Zt(m)))try{await((y=e.beforeLeave)==null?void 0:y.call(e,m,c.value))!==!1&&(f(m),(C=(b=u.value)==null?void 0:b.removeFocus)==null||C.call(b))}catch{}},p=(m,y,b)=>{m.props.disabled||(h(y),t("tab-click",m,b))},d=(m,y)=>{m.props.disabled||Zt(m.props.name)||(y.stopPropagation(),t("edit",m.props.name,"remove"),t("tab-remove",m.props.name))},v=()=>{t("edit",void 0,"add"),t("tab-add")};return Lo({from:'"activeName"',replacement:'"model-value" or "v-model"',scope:"ElTabs",version:"2.3.0",ref:"https://element-plus.org/en-US/component/tabs.html#attributes",type:"Attribute"},$(()=>!!e.activeName)),oe(()=>e.activeName,m=>h(m)),oe(()=>e.modelValue,m=>h(m)),oe(c,async()=>{var m;await ke(),(m=u.value)==null||m.scrollToActiveTab()}),Fe(wl,{props:e,currentName:c,registerPane:b=>i[b.uid]=b,unregisterPane:b=>delete i[b]}),o({currentName:c}),()=>{const m=e.editable||e.addable?j("span",{class:r.e("new-tab"),tabindex:"0",onClick:v,onKeydown:C=>{C.code===be.enter&&v()}},[j(he,{class:r.is("icon-plus")},{default:()=>[j(tr,null,null)]})]):null,y=j("div",{class:[r.e("header"),r.is(e.tabPosition)]},[m,j(ww,{ref:u,currentName:c.value,editable:e.editable,type:e.type,panes:Object.values(i),stretch:e.stretch,onTabClick:p,onTabRemove:d},null)]),b=j("div",{class:r.e("content")},[Q(n,"default")]);return j("div",{class:[r.b(),r.m(e.tabPosition),{[r.m("card")]:e.type==="card",[r.m("border-card")]:e.type==="border-card"}]},[...e.tabPosition!=="bottom"?[y,b]:[b,y]])}}});const $w=pe({label:{type:String,default:""},name:{type:[String,Number]},closable:Boolean,disabled:Boolean,lazy:Boolean}),Tw=["id","aria-hidden","aria-labelledby"],Nw={name:"ElTabPane"},Pw=se({...Nw,props:$w,setup(e){const t=e,n="ElTabPane",o=De(),l=Xt(),s=fe(wl);s||Ot(n,"usage: ");const r=le("tab-pane"),u=P(),i=$(()=>t.closable||s.props.closable),c=Ka(()=>{var v;return s.currentName.value===((v=t.name)!=null?v:u.value)}),f=P(c.value),h=$(()=>{var v;return(v=t.name)!=null?v:u.value}),p=Ka(()=>!t.lazy||f.value||c.value);oe(c,v=>{v&&(f.value=!0)});const d=rt({uid:o.uid,slots:l,props:t,paneName:h,active:c,index:u,isClosable:i});return Re(()=>{s.registerPane(d)}),vl(()=>{s.unregisterPane(d.uid)}),(v,m)=>a(p)?Ie((k(),L("div",{key:0,id:`pane-${a(h)}`,class:S(a(r).b()),role:"tabpanel","aria-hidden":!a(c),"aria-labelledby":`tab-${a(h)}`},[Q(v.$slots,"default")],10,Tw)),[[Ye,a(c)]]):Y("v-if",!0)}});var Ji=ie(Pw,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tabs/src/tab-pane.vue"]]);const oE=Ke(Ew,{TabPane:Ji}),lE=mt(Ji),Xn="$treeNodeId",_s=function(e,t){!t||t[Xn]||Object.defineProperty(t,Xn,{value:e.id,enumerable:!1,configurable:!1,writable:!1})},Fa=function(e,t){return e?t[e]:t[Xn]},ta=e=>{let t=!0,n=!0,o=!0;for(let l=0,s=e.length;l"u"){const s=o[t];return s===void 0?"":s}};let Iw=0;class Hn{constructor(t){this.id=Iw++,this.text=null,this.checked=!1,this.indeterminate=!1,this.data=null,this.expanded=!1,this.parent=null,this.visible=!0,this.isCurrent=!1,this.canFocus=!1;for(const n in t)Rt(t,n)&&(this[n]=t[n]);this.level=0,this.loaded=!1,this.childNodes=[],this.loading=!1,this.parent&&(this.level=this.parent.level+1)}initialize(){const t=this.store;if(!t)throw new Error("[Node]store is required!");t.registerNode(this);const n=t.props;if(n&&typeof n.isLeaf<"u"){const s=Ko(this,"isLeaf");typeof s=="boolean"&&(this.isLeafByUser=s)}if(t.lazy!==!0&&this.data?(this.setData(this.data),t.defaultExpandAll&&(this.expanded=!0,this.canFocus=!0)):this.level>0&&t.lazy&&t.defaultExpandAll&&this.expand(),Array.isArray(this.data)||_s(this,this.data),!this.data)return;const o=t.defaultExpandedKeys,l=t.key;l&&o&&o.includes(this.key)&&this.expand(null,t.autoExpandParent),l&&t.currentNodeKey!==void 0&&this.key===t.currentNodeKey&&(t.currentNode=this,t.currentNode.isCurrent=!0),t.lazy&&t._initDefaultCheckedNode(this),this.updateLeafState(),this.parent&&(this.level===1||this.parent.expanded===!0)&&(this.canFocus=!0)}setData(t){Array.isArray(t)||_s(this,t),this.data=t,this.childNodes=[];let n;this.level===0&&Array.isArray(this.data)?n=this.data:n=Ko(this,"children")||[];for(let o=0,l=n.length;o-1)return t.childNodes[n+1]}return null}get previousSibling(){const t=this.parent;if(t){const n=t.childNodes.indexOf(this);if(n>-1)return n>0?t.childNodes[n-1]:null}return null}contains(t,n=!0){return(this.childNodes||[]).some(o=>o===t||n&&o.contains(t))}remove(){const t=this.parent;t&&t.removeChild(this)}insertChild(t,n,o){if(!t)throw new Error("InsertChild error: child is required.");if(!(t instanceof Hn)){if(!o){const l=this.getChildren(!0);l.includes(t.data)||(typeof n>"u"||n<0?l.push(t.data):l.splice(n,0,t.data))}Object.assign(t,{parent:this,store:this.store}),t=rt(new Hn(t)),t instanceof Hn&&t.initialize()}t.level=this.level+1,typeof n>"u"||n<0?this.childNodes.push(t):this.childNodes.splice(n,0,t),this.updateLeafState()}insertBefore(t,n){let o;n&&(o=this.childNodes.indexOf(n)),this.insertChild(t,o)}insertAfter(t,n){let o;n&&(o=this.childNodes.indexOf(n),o!==-1&&(o+=1)),this.insertChild(t,o)}removeChild(t){const n=this.getChildren()||[],o=n.indexOf(t.data);o>-1&&n.splice(o,1);const l=this.childNodes.indexOf(t);l>-1&&(this.store&&this.store.deregisterNode(t),t.parent=null,this.childNodes.splice(l,1)),this.updateLeafState()}removeChildByData(t){let n=null;for(let o=0;o{if(n){let l=this.parent;for(;l.level>0;)l.expanded=!0,l=l.parent}this.expanded=!0,t&&t(),this.childNodes.forEach(l=>{l.canFocus=!0})};this.shouldLoadData()?this.loadData(l=>{Array.isArray(l)&&(this.checked?this.setChecked(!0,!0):this.store.checkStrictly||tl(this),o())}):o()}doCreateChildren(t,n={}){t.forEach(o=>{this.insertChild(Object.assign({data:o},n),void 0,!0)})}collapse(){this.expanded=!1,this.childNodes.forEach(t=>{t.canFocus=!1})}shouldLoadData(){return this.store.lazy===!0&&this.store.load&&!this.loaded}updateLeafState(){if(this.store.lazy===!0&&this.loaded!==!0&&typeof this.isLeafByUser<"u"){this.isLeaf=this.isLeafByUser;return}const t=this.childNodes;if(!this.store.lazy||this.store.lazy===!0&&this.loaded===!0){this.isLeaf=!t||t.length===0;return}this.isLeaf=!1}setChecked(t,n,o,l){if(this.indeterminate=t==="half",this.checked=t===!0,this.store.checkStrictly)return;if(!(this.shouldLoadData()&&!this.store.checkDescendants)){const{all:r,allWithoutDisable:u}=ta(this.childNodes);!this.isLeaf&&!r&&u&&(this.checked=!1,t=!1);const i=()=>{if(n){const c=this.childNodes;for(let p=0,d=c.length;p{i(),tl(this)},{checked:t!==!1});return}else i()}const s=this.parent;!s||s.level===0||o||tl(s)}getChildren(t=!1){if(this.level===0)return this.data;const n=this.data;if(!n)return null;const o=this.store.props;let l="children";return o&&(l=o.children||"children"),n[l]===void 0&&(n[l]=null),t&&!n[l]&&(n[l]=[]),n[l]}updateChildren(){const t=this.getChildren()||[],n=this.childNodes.map(s=>s.data),o={},l=[];t.forEach((s,r)=>{const u=s[Xn];!!u&&n.findIndex(c=>c[Xn]===u)>=0?o[u]={index:r,data:s}:l.push({index:r,data:s})}),this.store.lazy||n.forEach(s=>{o[s[Xn]]||this.removeChildByData(s)}),l.forEach(({index:s,data:r})=>{this.insertChild({data:r},s)}),this.updateLeafState()}loadData(t,n={}){if(this.store.lazy===!0&&this.store.load&&!this.loaded&&(!this.loading||Object.keys(n).length)){this.loading=!0;const o=l=>{this.loaded=!0,this.loading=!1,this.childNodes=[],this.doCreateChildren(l,n),this.updateLeafState(),t&&t.call(this,l)};this.store.load(this,o)}else t&&t.call(this)}}class Mw{constructor(t){this.currentNode=null,this.currentNodeKey=null;for(const n in t)Rt(t,n)&&(this[n]=t[n]);this.nodesMap={}}initialize(){if(this.root=new Hn({data:this.data,store:this}),this.root.initialize(),this.lazy&&this.load){const t=this.load;t(this.root,n=>{this.root.doCreateChildren(n),this._initDefaultCheckedNodes()})}else this._initDefaultCheckedNodes()}filter(t){const n=this.filterNodeMethod,o=this.lazy,l=function(s){const r=s.root?s.root.childNodes:s.childNodes;if(r.forEach(u=>{u.visible=n.call(u,t,u.data,u),l(u)}),!s.visible&&r.length){let u=!0;u=!r.some(i=>i.visible),s.root?s.root.visible=u===!1:s.visible=u===!1}!t||s.visible&&!s.isLeaf&&!o&&s.expand()};l(this)}setData(t){t!==this.root.data?(this.root.setData(t),this._initDefaultCheckedNodes()):this.root.updateChildren()}getNode(t){if(t instanceof Hn)return t;const n=typeof t!="object"?t:Fa(this.key,t);return this.nodesMap[n]||null}insertBefore(t,n){const o=this.getNode(n);o.parent.insertBefore({data:t},o)}insertAfter(t,n){const o=this.getNode(n);o.parent.insertAfter({data:t},o)}remove(t){const n=this.getNode(t);n&&n.parent&&(n===this.currentNode&&(this.currentNode=null),n.parent.removeChild(n))}append(t,n){const o=n?this.getNode(n):this.root;o&&o.insertChild({data:t})}_initDefaultCheckedNodes(){const t=this.defaultCheckedKeys||[],n=this.nodesMap;t.forEach(o=>{const l=n[o];l&&l.setChecked(!0,!this.checkStrictly)})}_initDefaultCheckedNode(t){(this.defaultCheckedKeys||[]).includes(t.key)&&t.setChecked(!0,!this.checkStrictly)}setDefaultCheckedKey(t){t!==this.defaultCheckedKeys&&(this.defaultCheckedKeys=t,this._initDefaultCheckedNodes())}registerNode(t){const n=this.key;!t||!t.data||(n?t.key!==void 0&&(this.nodesMap[t.key]=t):this.nodesMap[t.id]=t)}deregisterNode(t){!this.key||!t||!t.data||(t.childNodes.forEach(o=>{this.deregisterNode(o)}),delete this.nodesMap[t.key])}getCheckedNodes(t=!1,n=!1){const o=[],l=function(s){(s.root?s.root.childNodes:s.childNodes).forEach(u=>{(u.checked||n&&u.indeterminate)&&(!t||t&&u.isLeaf)&&o.push(u.data),l(u)})};return l(this),o}getCheckedKeys(t=!1){return this.getCheckedNodes(t).map(n=>(n||{})[this.key])}getHalfCheckedNodes(){const t=[],n=function(o){(o.root?o.root.childNodes:o.childNodes).forEach(s=>{s.indeterminate&&t.push(s.data),n(s)})};return n(this),t}getHalfCheckedKeys(){return this.getHalfCheckedNodes().map(t=>(t||{})[this.key])}_getAllNodes(){const t=[],n=this.nodesMap;for(const o in n)Rt(n,o)&&t.push(n[o]);return t}updateChildren(t,n){const o=this.nodesMap[t];if(!o)return;const l=o.childNodes;for(let s=l.length-1;s>=0;s--){const r=l[s];this.remove(r.data)}for(let s=0,r=n.length;si.level-u.level),s=Object.create(null),r=Object.keys(o);l.forEach(u=>u.setChecked(!1,!1));for(let u=0,i=l.length;u0;)s[p.data[t]]=!0,p=p.parent;if(c.isLeaf||this.checkStrictly){c.setChecked(!0,!1);continue}if(c.setChecked(!0,!0),n){c.setChecked(!1,!1);const d=function(v){v.childNodes.forEach(y=>{y.isLeaf||y.setChecked(!1,!1),d(y)})};d(c)}}}setCheckedNodes(t,n=!1){const o=this.key,l={};t.forEach(s=>{l[(s||{})[o]]=!0}),this._setCheckedKeys(o,n,l)}setCheckedKeys(t,n=!1){this.defaultCheckedKeys=t;const o=this.key,l={};t.forEach(s=>{l[s]=!0}),this._setCheckedKeys(o,n,l)}setDefaultExpandedKeys(t){t=t||[],this.defaultExpandedKeys=t,t.forEach(n=>{const o=this.getNode(n);o&&o.expand(null,this.autoExpandParent)})}setChecked(t,n,o){const l=this.getNode(t);l&&l.setChecked(!!n,o)}getCurrentNode(){return this.currentNode}setCurrentNode(t){const n=this.currentNode;n&&(n.isCurrent=!1),this.currentNode=t,this.currentNode.isCurrent=!0}setUserCurrentNode(t,n=!0){const o=t[this.key],l=this.nodesMap[o];this.setCurrentNode(l),n&&this.currentNode.level>1&&this.currentNode.parent.expand(null,!0)}setCurrentNodeKey(t,n=!0){if(t==null){this.currentNode&&(this.currentNode.isCurrent=!1),this.currentNode=null;return}const o=this.getNode(t);o&&(this.setCurrentNode(o),n&&this.currentNode.level>1&&this.currentNode.parent.expand(null,!0))}}const Ow=se({name:"ElTreeNodeContent",props:{node:{type:Object,required:!0},renderContent:Function},setup(e){const t=le("tree"),n=fe("NodeInstance"),o=fe("RootTree");return()=>{const l=e.node,{data:s,store:r}=l;return e.renderContent?e.renderContent(Se,{_self:n,node:l,data:s,store:r}):o.ctx.slots.default?o.ctx.slots.default({node:l,data:s}):Se("span",{class:t.be("node","label")},[l.label])}}});var Aw=ie(Ow,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree/src/tree-node-content.vue"]]);function Zi(e){const t=fe("TreeNodeMap",null),n={treeNodeExpand:o=>{e.node!==o&&e.node.collapse()},children:[]};return t&&t.children.push(n),Fe("TreeNodeMap",n),{broadcastExpanded:o=>{if(!!e.accordion)for(const l of n.children)l.treeNodeExpand(o)}}}const Qi=Symbol("dragEvents");function Bw({props:e,ctx:t,el$:n,dropIndicator$:o,store:l}){const s=le("tree"),r=P({showDropIndicator:!1,draggingNode:null,dropNode:null,allowDrop:!0,dropType:null});return Fe(Qi,{treeNodeDragStart:({event:f,treeNode:h})=>{if(typeof e.allowDrag=="function"&&!e.allowDrag(h.node))return f.preventDefault(),!1;f.dataTransfer.effectAllowed="move";try{f.dataTransfer.setData("text/plain","")}catch{}r.value.draggingNode=h,t.emit("node-drag-start",h.node,f)},treeNodeDragOver:({event:f,treeNode:h})=>{const p=h,d=r.value.dropNode;d&&d!==p&&Bt(d.$el,s.is("drop-inner"));const v=r.value.draggingNode;if(!v||!p)return;let m=!0,y=!0,b=!0,C=!0;typeof e.allowDrop=="function"&&(m=e.allowDrop(v.node,p.node,"prev"),C=y=e.allowDrop(v.node,p.node,"inner"),b=e.allowDrop(v.node,p.node,"next")),f.dataTransfer.dropEffect=y||m||b?"move":"none",(m||y||b)&&d!==p&&(d&&t.emit("node-drag-leave",v.node,d.node,f),t.emit("node-drag-enter",v.node,p.node,f)),(m||y||b)&&(r.value.dropNode=p),p.node.nextSibling===v.node&&(b=!1),p.node.previousSibling===v.node&&(m=!1),p.node.contains(v.node,!1)&&(y=!1),(v.node===p.node||v.node.contains(p.node))&&(m=!1,y=!1,b=!1);const g=p.$el.getBoundingClientRect(),w=n.value.getBoundingClientRect();let M;const I=m?y?.25:b?.45:1:-1,T=b?y?.75:m?.55:0:1;let B=-9999;const O=f.clientY-g.top;Og.height*T?M="after":y?M="inner":M="none";const V=p.$el.querySelector(`.${s.be("node","expand-icon")}`).getBoundingClientRect(),W=o.value;M==="before"?B=V.top-w.top:M==="after"&&(B=V.bottom-w.top),W.style.top=`${B}px`,W.style.left=`${V.right-w.left}px`,M==="inner"?nn(p.$el,s.is("drop-inner")):Bt(p.$el,s.is("drop-inner")),r.value.showDropIndicator=M==="before"||M==="after",r.value.allowDrop=r.value.showDropIndicator||C,r.value.dropType=M,t.emit("node-drag-over",v.node,p.node,f)},treeNodeDragEnd:f=>{const{draggingNode:h,dropType:p,dropNode:d}=r.value;if(f.preventDefault(),f.dataTransfer.dropEffect="move",h&&d){const v={data:h.node.data};p!=="none"&&h.node.remove(),p==="before"?d.node.parent.insertBefore(v,d.node):p==="after"?d.node.parent.insertAfter(v,d.node):p==="inner"&&d.node.insertChild(v),p!=="none"&&l.value.registerNode(v),Bt(d.$el,s.is("drop-inner")),t.emit("node-drag-end",h.node,d.node,p,f),p!=="none"&&t.emit("node-drop",h.node,d.node,p,f)}h&&!d&&t.emit("node-drag-end",h.node,null,p,f),r.value.showDropIndicator=!1,r.value.draggingNode=null,r.value.dropNode=null,r.value.allowDrop=!0}}),{dragState:r}}const Dw=se({name:"ElTreeNode",components:{ElCollapseTransition:fi,ElCheckbox:Wn,NodeContent:Aw,ElIcon:he,Loading:vo},props:{node:{type:Hn,default:()=>({})},props:{type:Object,default:()=>({})},accordion:Boolean,renderContent:Function,renderAfterExpand:Boolean,showCheckbox:{type:Boolean,default:!1}},emits:["node-expand"],setup(e,t){const n=le("tree"),{broadcastExpanded:o}=Zi(e),l=fe("RootTree"),s=P(!1),r=P(!1),u=P(null),i=P(null),c=P(null),f=fe(Qi),h=De();Fe("NodeInstance",h),e.node.expanded&&(s.value=!0,r.value=!0);const p=l.props.children||"children";oe(()=>{const O=e.node.data[p];return O&&[...O]},()=>{e.node.updateChildren()}),oe(()=>e.node.indeterminate,O=>{m(e.node.checked,O)}),oe(()=>e.node.checked,O=>{m(O,e.node.indeterminate)}),oe(()=>e.node.expanded,O=>{ke(()=>s.value=O),O&&(r.value=!0)});const d=O=>Fa(l.props.nodeKey,O.data),v=O=>{const V=e.props.class;if(!V)return{};let W;if(Pt(V)){const{data:J}=O;W=V(J,O)}else W=V;return He(W)?{[W]:!0}:W},m=(O,V)=>{(u.value!==O||i.value!==V)&&l.ctx.emit("check-change",e.node.data,O,V),u.value=O,i.value=V},y=O=>{const V=l.store.value;V.setCurrentNode(e.node),l.ctx.emit("current-change",V.currentNode?V.currentNode.data:null,V.currentNode),l.currentNode.value=e.node,l.props.expandOnClickNode&&C(),l.props.checkOnClickNode&&!e.node.disabled&&g(null,{target:{checked:!e.node.checked}}),l.ctx.emit("node-click",e.node.data,e.node,h,O)},b=O=>{l.instance.vnode.props.onNodeContextmenu&&(O.stopPropagation(),O.preventDefault()),l.ctx.emit("node-contextmenu",O,e.node.data,e.node,h)},C=()=>{e.node.isLeaf||(s.value?(l.ctx.emit("node-collapse",e.node.data,e.node,h),e.node.collapse()):(e.node.expand(),t.emit("node-expand",e.node.data,e.node,h)))},g=(O,V)=>{e.node.setChecked(V.target.checked,!l.props.checkStrictly),ke(()=>{const W=l.store.value;l.ctx.emit("check",e.node.data,{checkedNodes:W.getCheckedNodes(),checkedKeys:W.getCheckedKeys(),halfCheckedNodes:W.getHalfCheckedNodes(),halfCheckedKeys:W.getHalfCheckedKeys()})})};return{ns:n,node$:c,tree:l,expanded:s,childNodeRendered:r,oldChecked:u,oldIndeterminate:i,getNodeKey:d,getNodeClass:v,handleSelectChange:m,handleClick:y,handleContextMenu:b,handleExpandIconClick:C,handleCheckChange:g,handleChildNodeExpand:(O,V,W)=>{o(V),l.ctx.emit("node-expand",O,V,W)},handleDragStart:O=>{!l.props.draggable||f.treeNodeDragStart({event:O,treeNode:e})},handleDragOver:O=>{O.preventDefault(),l.props.draggable&&f.treeNodeDragOver({event:O,treeNode:{$el:c.value,node:e.node}})},handleDrop:O=>{O.preventDefault()},handleDragEnd:O=>{!l.props.draggable||f.treeNodeDragEnd(O)},CaretRight:Vu}}}),Lw=["aria-expanded","aria-disabled","aria-checked","draggable","data-key"],Rw=["aria-expanded"];function _w(e,t,n,o,l,s){const r=Ee("el-icon"),u=Ee("el-checkbox"),i=Ee("loading"),c=Ee("node-content"),f=Ee("el-tree-node"),h=Ee("el-collapse-transition");return Ie((k(),L("div",{ref:"node$",class:S([e.ns.b("node"),e.ns.is("expanded",e.expanded),e.ns.is("current",e.node.isCurrent),e.ns.is("hidden",!e.node.visible),e.ns.is("focusable",!e.node.disabled),e.ns.is("checked",!e.node.disabled&&e.node.checked),e.getNodeClass(e.node)]),role:"treeitem",tabindex:"-1","aria-expanded":e.expanded,"aria-disabled":e.node.disabled,"aria-checked":e.node.checked,draggable:e.tree.props.draggable,"data-key":e.getNodeKey(e.node),onClick:t[1]||(t[1]=Oe((...p)=>e.handleClick&&e.handleClick(...p),["stop"])),onContextmenu:t[2]||(t[2]=(...p)=>e.handleContextMenu&&e.handleContextMenu(...p)),onDragstart:t[3]||(t[3]=Oe((...p)=>e.handleDragStart&&e.handleDragStart(...p),["stop"])),onDragover:t[4]||(t[4]=Oe((...p)=>e.handleDragOver&&e.handleDragOver(...p),["stop"])),onDragend:t[5]||(t[5]=Oe((...p)=>e.handleDragEnd&&e.handleDragEnd(...p),["stop"])),onDrop:t[6]||(t[6]=Oe((...p)=>e.handleDrop&&e.handleDrop(...p),["stop"]))},[x("div",{class:S(e.ns.be("node","content")),style:$e({paddingLeft:(e.node.level-1)*e.tree.props.indent+"px"})},[e.tree.props.icon||e.CaretRight?(k(),Z(r,{key:0,class:S([e.ns.be("node","expand-icon"),e.ns.is("leaf",e.node.isLeaf),{expanded:!e.node.isLeaf&&e.expanded}]),onClick:Oe(e.handleExpandIconClick,["stop"])},{default:K(()=>[(k(),Z(Ve(e.tree.props.icon||e.CaretRight)))]),_:1},8,["class","onClick"])):Y("v-if",!0),e.showCheckbox?(k(),Z(u,{key:1,"model-value":e.node.checked,indeterminate:e.node.indeterminate,disabled:!!e.node.disabled,onClick:t[0]||(t[0]=Oe(()=>{},["stop"])),onChange:e.handleCheckChange},null,8,["model-value","indeterminate","disabled","onChange"])):Y("v-if",!0),e.node.loading?(k(),Z(r,{key:2,class:S([e.ns.be("node","loading-icon"),e.ns.is("loading")])},{default:K(()=>[j(i)]),_:1},8,["class"])):Y("v-if",!0),j(c,{node:e.node,"render-content":e.renderContent},null,8,["node","render-content"])],6),j(h,null,{default:K(()=>[!e.renderAfterExpand||e.childNodeRendered?Ie((k(),L("div",{key:0,class:S(e.ns.be("node","children")),role:"group","aria-expanded":e.expanded},[(k(!0),L(Pe,null,ot(e.node.childNodes,p=>(k(),Z(f,{key:e.getNodeKey(p),"render-content":e.renderContent,"render-after-expand":e.renderAfterExpand,"show-checkbox":e.showCheckbox,node:p,accordion:e.accordion,props:e.props,onNodeExpand:e.handleChildNodeExpand},null,8,["render-content","render-after-expand","show-checkbox","node","accordion","props","onNodeExpand"]))),128))],10,Rw)),[[Ye,e.expanded]]):Y("v-if",!0)]),_:1})],42,Lw)),[[Ye,e.node.visible]])}var Fw=ie(Dw,[["render",_w],["__file","/home/runner/work/element-plus/element-plus/packages/components/tree/src/tree-node.vue"]]);function zw({el$:e},t){const n=le("tree"),o=Ht([]),l=Ht([]);Re(()=>{r(),Nt(e.value,"keydown",s)}),yt(()=>{xt(e.value,"keydown",s)}),Mn(()=>{o.value=Array.from(e.value.querySelectorAll("[role=treeitem]")),l.value=Array.from(e.value.querySelectorAll("input[type=checkbox]"))}),oe(l,u=>{u.forEach(i=>{i.setAttribute("tabindex","-1")})});const s=u=>{const i=u.target;if(!i.className.includes(n.b("node")))return;const c=u.code;o.value=Array.from(e.value.querySelectorAll(`.${n.is("focusable")}[role=treeitem]`));const f=o.value.indexOf(i);let h;if([be.up,be.down].includes(c)){if(u.preventDefault(),c===be.up){h=f===-1?0:f!==0?f-1:o.value.length-1;const d=h;for(;!t.value.getNode(o.value[h].dataset.key).canFocus;){if(h--,h===d){h=-1;break}h<0&&(h=o.value.length-1)}}else{h=f===-1?0:f=o.value.length&&(h=0)}}h!==-1&&o.value[h].focus()}[be.left,be.right].includes(c)&&(u.preventDefault(),i.click());const p=i.querySelector('[type="checkbox"]');[be.enter,be.space].includes(c)&&p&&(u.preventDefault(),p.click())},r=()=>{var u;o.value=Array.from(e.value.querySelectorAll(`.${n.is("focusable")}[role=treeitem]`)),l.value=Array.from(e.value.querySelectorAll("input[type=checkbox]"));const i=e.value.querySelectorAll(`.${n.is("checked")}[role=treeitem]`);if(i.length){i[0].setAttribute("tabindex","0");return}(u=o.value[0])==null||u.setAttribute("tabindex","0")}}const Vw=se({name:"ElTree",components:{ElTreeNode:Fw},props:{data:{type:Array,default:()=>[]},emptyText:{type:String},renderAfterExpand:{type:Boolean,default:!0},nodeKey:String,checkStrictly:Boolean,defaultExpandAll:Boolean,expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:Boolean,checkDescendants:{type:Boolean,default:!1},autoExpandParent:{type:Boolean,default:!0},defaultCheckedKeys:Array,defaultExpandedKeys:Array,currentNodeKey:[String,Number],renderContent:Function,showCheckbox:{type:Boolean,default:!1},draggable:{type:Boolean,default:!1},allowDrag:Function,allowDrop:Function,props:{type:Object,default:()=>({children:"children",label:"label",disabled:"disabled"})},lazy:{type:Boolean,default:!1},highlightCurrent:Boolean,load:Function,filterNodeMethod:Function,accordion:Boolean,indent:{type:Number,default:18},icon:[String,Object]},emits:["check-change","current-change","node-click","node-contextmenu","node-collapse","node-expand","check","node-drag-start","node-drag-end","node-drop","node-drag-leave","node-drag-enter","node-drag-over"],setup(e,t){const{t:n}=Je(),o=le("tree"),l=P(new Mw({key:e.nodeKey,data:e.data,lazy:e.lazy,props:e.props,load:e.load,currentNodeKey:e.currentNodeKey,checkStrictly:e.checkStrictly,checkDescendants:e.checkDescendants,defaultCheckedKeys:e.defaultCheckedKeys,defaultExpandedKeys:e.defaultExpandedKeys,autoExpandParent:e.autoExpandParent,defaultExpandAll:e.defaultExpandAll,filterNodeMethod:e.filterNodeMethod}));l.value.initialize();const s=P(l.value.root),r=P(null),u=P(null),i=P(null),{broadcastExpanded:c}=Zi(e),{dragState:f}=Bw({props:e,ctx:t,el$:u,dropIndicator$:i,store:l});zw({el$:u},l);const h=$(()=>{const{childNodes:D}=s.value;return!D||D.length===0||D.every(({visible:A})=>!A)});oe(()=>e.defaultCheckedKeys,D=>{l.value.setDefaultCheckedKey(D)}),oe(()=>e.defaultExpandedKeys,D=>{l.value.setDefaultExpandedKeys(D)}),oe(()=>e.data,D=>{l.value.setData(D)},{deep:!0}),oe(()=>e.checkStrictly,D=>{l.value.checkStrictly=D});const p=D=>{if(!e.filterNodeMethod)throw new Error("[Tree] filterNodeMethod is required when filter");l.value.filter(D)},d=D=>Fa(e.nodeKey,D.data),v=D=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in getNodePath");const A=l.value.getNode(D);if(!A)return[];const N=[A.data];let R=A.parent;for(;R&&R!==s.value;)N.push(R.data),R=R.parent;return N.reverse()},m=(D,A)=>l.value.getCheckedNodes(D,A),y=D=>l.value.getCheckedKeys(D),b=()=>{const D=l.value.getCurrentNode();return D?D.data:null},C=()=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in getCurrentKey");const D=b();return D?D[e.nodeKey]:null},g=(D,A)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedNodes");l.value.setCheckedNodes(D,A)},w=(D,A)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedKeys");l.value.setCheckedKeys(D,A)},M=(D,A,N)=>{l.value.setChecked(D,A,N)},I=()=>l.value.getHalfCheckedNodes(),T=()=>l.value.getHalfCheckedKeys(),B=(D,A=!0)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentNode");l.value.setUserCurrentNode(D,A)},O=(D,A=!0)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentKey");l.value.setCurrentNodeKey(D,A)},V=D=>l.value.getNode(D),W=D=>{l.value.remove(D)},J=(D,A)=>{l.value.append(D,A)},F=(D,A)=>{l.value.insertBefore(D,A)},H=(D,A)=>{l.value.insertAfter(D,A)},U=(D,A,N)=>{c(A),t.emit("node-expand",D,A,N)},_=(D,A)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in updateKeyChild");l.value.updateChildren(D,A)};return Fe("RootTree",{ctx:t,props:e,store:l,root:s,currentNode:r,instance:De()}),Fe(Ut,void 0),{ns:o,store:l,root:s,currentNode:r,dragState:f,el$:u,dropIndicator$:i,isEmpty:h,filter:p,getNodeKey:d,getNodePath:v,getCheckedNodes:m,getCheckedKeys:y,getCurrentNode:b,getCurrentKey:C,setCheckedNodes:g,setCheckedKeys:w,setChecked:M,getHalfCheckedNodes:I,getHalfCheckedKeys:T,setCurrentNode:B,setCurrentKey:O,t:n,getNode:V,remove:W,append:J,insertBefore:F,insertAfter:H,handleNodeExpand:U,updateKeyChildren:_}}});function Hw(e,t,n,o,l,s){var r;const u=Ee("el-tree-node");return k(),L("div",{ref:"el$",class:S([e.ns.b(),e.ns.is("dragging",!!e.dragState.draggingNode),e.ns.is("drop-not-allow",!e.dragState.allowDrop),e.ns.is("drop-inner",e.dragState.dropType==="inner"),{[e.ns.m("highlight-current")]:e.highlightCurrent}]),role:"tree"},[(k(!0),L(Pe,null,ot(e.root.childNodes,i=>(k(),Z(u,{key:e.getNodeKey(i),node:i,props:e.props,accordion:e.accordion,"render-after-expand":e.renderAfterExpand,"show-checkbox":e.showCheckbox,"render-content":e.renderContent,onNodeExpand:e.handleNodeExpand},null,8,["node","props","accordion","render-after-expand","show-checkbox","render-content","onNodeExpand"]))),128)),e.isEmpty?(k(),L("div",{key:0,class:S(e.ns.e("empty-block"))},[x("span",{class:S(e.ns.e("empty-text"))},de((r=e.emptyText)!=null?r:e.t("el.tree.emptyText")),3)],2)):Y("v-if",!0),Ie(x("div",{ref:"dropIndicator$",class:S(e.ns.e("drop-indicator"))},null,2),[[Ye,e.dragState.showDropIndicator]])],2)}var nl=ie(Vw,[["render",Hw],["__file","/home/runner/work/element-plus/element-plus/packages/components/tree/src/tree.vue"]]);nl.install=e=>{e.component(nl.name,nl)};const fl=nl,aE=fl,Kw=(e,{attrs:t},{tree:n,key:o})=>{const l=le("tree-select"),s={...sl(_t(e),Object.keys(dl.props)),...t,valueKey:o,popperClass:$(()=>{const r=[l.e("popper")];return e.popperClass&&r.push(e.popperClass),r.join(" ")}),filterMethod:(r="")=>{e.filterMethod&&e.filterMethod(r),ke(()=>{var u;(u=n.value)==null||u.filter(r)})},onVisibleChange:r=>{var u;(u=t.onVisibleChange)==null||u.call(t,r),e.filterable&&r&&s.filterMethod()}};return s},Ww=se({extends:Zl,setup(e,t){const n=Zl.setup(e,t);delete n.selectOptionClick;const o=De().proxy;return ke(()=>{n.select.cachedOptions.get(o.value)||n.select.onOptionCreate(o)}),n},methods:{selectOptionClick(){this.$el.parentElement.click()}}});function na(e){return e||e===0}function eu(e){return Array.isArray(e)&&e.length}function Kl(e){return Array.isArray(e)?e:na(e)?[e]:[]}function ol(e,t,n,o,l){for(let s=0;s{oe(()=>e.modelValue,()=>{e.showCheckbox&&ke(()=>{const f=s.value;f&&!oo(f.getCheckedKeys(),Kl(e.modelValue))&&f.setCheckedKeys(Kl(e.modelValue))})},{immediate:!0,deep:!0});const u=$(()=>({value:r.value,...e.props})),i=(f,h)=>{var p;const d=u.value[f];return Pt(d)?d(h,(p=s.value)==null?void 0:p.getNode(i("value",h))):h[d]},c=Kl(e.modelValue).map(f=>ol(e.data||[],h=>i("value",h)===f,h=>i("children",h),(h,p,d,v)=>v&&i("value",v))).filter(f=>na(f));return{...sl(_t(e),Object.keys(fl.props)),...t,nodeKey:r,expandOnClickNode:$(()=>!e.checkStrictly),defaultExpandedKeys:$(()=>e.defaultExpandedKeys?e.defaultExpandedKeys.concat(c):c),renderContent:(f,{node:h,data:p,store:d})=>f(Ww,{value:i("value",p),label:i("label",p),disabled:i("disabled",p)},e.renderContent?()=>e.renderContent(f,{node:h,data:p,store:d}):n.default?()=>n.default({node:h,data:p,store:d}):void 0),filterNodeMethod:(f,h,p)=>{var d;return e.filterNodeMethod?e.filterNodeMethod(f,h,p):f?(d=i("label",h))==null?void 0:d.includes(f):!0},onNodeClick:(f,h,p)=>{var d,v,m;if((d=t.onNodeClick)==null||d.call(t,f,h,p),!(e.showCheckbox&&e.checkOnClickNode))if(!e.showCheckbox&&(e.checkStrictly||h.isLeaf)){if(!i("disabled",f)){const y=(v=l.value)==null?void 0:v.options.get(i("value",f));(m=l.value)==null||m.handleOptionSelect(y,!0)}}else p.proxy.handleExpandIconClick()},onCheck:(f,h)=>{var p;(p=t.onCheck)==null||p.call(t,f,h);const d=i("value",f);if(e.checkStrictly)o(qe,e.multiple?h.checkedKeys:h.checkedKeys.includes(d)?d:void 0);else if(e.multiple)o(qe,s.value.getCheckedKeys(!0));else{const v=ol([f],b=>!eu(i("children",b))&&!i("disabled",b),b=>i("children",b)),m=v?i("value",v):void 0,y=na(e.modelValue)&&!!ol([f],b=>i("value",b)===e.modelValue,b=>i("children",b));o(qe,m===e.modelValue||y?void 0:m)}}}},xw=se({name:"ElTreeSelect",inheritAttrs:!1,props:{...dl.props,...fl.props},setup(e,t){const{slots:n,expose:o}=t,l=P(),s=P(),r=$(()=>e.nodeKey||e.valueKey||"value"),u=Kw(e,t,{select:l,tree:s,key:r}),i=jw(e,t,{select:l,tree:s,key:r}),c=rt({});return o(c),Re(()=>{Object.assign(c,{...sl(s.value,["filter","updateKeyChildren","getCheckedNodes","setCheckedNodes","getCheckedKeys","setCheckedKeys","setChecked","getHalfCheckedNodes","getHalfCheckedKeys","getCurrentKey","getCurrentNode","setCurrentKey","setCurrentNode","getNode","remove","append","insertBefore","insertAfter"]),...sl(l.value,["focus","blur"])})}),()=>Se(dl,rt({...u,ref:f=>l.value=f}),{...n,default:()=>Se(fl,rt({...i,ref:f=>s.value=f}))})}});var ll=ie(xw,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree-select/src/tree-select.vue"]]);ll.install=e=>{e.component(ll.name,ll)};const qw=ll,sE=qw,Uw="ElUpload";class Yw extends Error{constructor(t,n,o,l){super(t),this.name="UploadAjaxError",this.status=n,this.method=o,this.url=l}}function Fs(e,t,n){let o;return n.response?o=`${n.response.error||n.response}`:n.responseText?o=`${n.responseText}`:o=`fail to ${t.method} ${e} ${n.status}`,new Yw(o,n.status,t.method,e)}function Gw(e){const t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}const Xw=e=>{typeof XMLHttpRequest>"u"&&Ot(Uw,"XMLHttpRequest is undefined");const t=new XMLHttpRequest,n=e.action;t.upload&&t.upload.addEventListener("progress",s=>{const r=s;r.percent=s.total>0?s.loaded/s.total*100:0,e.onProgress(r)});const o=new FormData;if(e.data)for(const[s,r]of Object.entries(e.data))Array.isArray(r)?o.append(s,...r):o.append(s,r);o.append(e.filename,e.file,e.file.name),t.addEventListener("error",()=>{e.onError(Fs(n,e,t))}),t.addEventListener("load",()=>{if(t.status<200||t.status>=300)return e.onError(Fs(n,e,t));e.onSuccess(Gw(t))}),t.open(e.method,n,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);const l=e.headers||{};if(l instanceof Headers)l.forEach((s,r)=>t.setRequestHeader(r,s));else for(const[s,r]of Object.entries(l))an(r)||t.setRequestHeader(s,String(r));return t.send(o),t},tu=["text","picture","picture-card"];let Jw=1;const nu=()=>Date.now()+Jw++,ou=pe({action:{type:String,default:"#"},headers:{type:te(Object)},method:{type:String,default:"post"},data:{type:Object,default:()=>Ct({})},multiple:{type:Boolean,default:!1},name:{type:String,default:"file"},drag:{type:Boolean,default:!1},withCredentials:Boolean,showFileList:{type:Boolean,default:!0},accept:{type:String,default:""},type:{type:String,default:"select"},fileList:{type:te(Array),default:()=>Ct([])},autoUpload:{type:Boolean,default:!0},listType:{type:String,values:tu,default:"text"},httpRequest:{type:te(Function),default:Xw},disabled:Boolean,limit:Number}),Zw=pe({...ou,beforeUpload:{type:te(Function),default:tt},beforeRemove:{type:te(Function)},onRemove:{type:te(Function),default:tt},onChange:{type:te(Function),default:tt},onPreview:{type:te(Function),default:tt},onSuccess:{type:te(Function),default:tt},onProgress:{type:te(Function),default:tt},onError:{type:te(Function),default:tt},onExceed:{type:te(Function),default:tt}}),Qw=pe({files:{type:te(Array),default:()=>Ct([])},disabled:{type:Boolean,default:!1},handlePreview:{type:te(Function),default:tt},listType:{type:String,values:tu,default:"text"}}),ek={remove:e=>!!e},tk=["onKeydown"],nk=["src"],ok=["onClick"],lk=["onClick"],ak=["onClick"],sk={name:"ElUploadList"},rk=se({...sk,props:Qw,emits:ek,setup(e,{emit:t}){const n=e,{t:o}=Je(),l=le("upload"),s=le("icon"),r=le("list"),u=P(!1),i=f=>{n.handlePreview(f)},c=f=>{t("remove",f)};return(f,h)=>(k(),Z(bu,{tag:"ul",class:S([a(l).b("list"),a(l).bm("list",f.listType),a(l).is("disabled",f.disabled)]),name:a(r).b()},{default:K(()=>[(k(!0),L(Pe,null,ot(f.files,p=>(k(),L("li",{key:p.uid||p.name,class:S([a(l).be("list","item"),a(l).is(p.status),{focusing:u.value}]),tabindex:"0",onKeydown:xe(d=>!f.disabled&&c(p),["delete"]),onFocus:h[0]||(h[0]=d=>u.value=!0),onBlur:h[1]||(h[1]=d=>u.value=!1),onClick:h[2]||(h[2]=d=>u.value=!1)},[Q(f.$slots,"default",{file:p},()=>[f.listType==="picture"||p.status!=="uploading"&&f.listType==="picture-card"?(k(),L("img",{key:0,class:S(a(l).be("list","item-thumbnail")),src:p.url,alt:""},null,10,nk)):Y("v-if",!0),f.listType!=="picture"&&(p.status==="uploading"||f.listType!=="picture-card")?(k(),L("div",{key:1,class:S(a(l).be("list","item-info"))},[x("a",{class:S(a(l).be("list","item-name")),onClick:Oe(d=>i(p),["prevent"])},[j(a(he),{class:S(a(s).m("document"))},{default:K(()=>[j(a(Hu))]),_:1},8,["class"]),x("span",{class:S(a(l).be("list","item-file-name"))},de(p.name),3)],10,ok),p.status==="uploading"?(k(),Z(a(J0),{key:0,type:f.listType==="picture-card"?"circle":"line","stroke-width":f.listType==="picture-card"?6:2,percentage:Number(p.percentage),style:$e(f.listType==="picture-card"?"":"margin-top: 0.5rem")},null,8,["type","stroke-width","percentage","style"])):Y("v-if",!0)],2)):Y("v-if",!0),x("label",{class:S(a(l).be("list","item-status-label"))},[f.listType==="text"?(k(),Z(a(he),{key:0,class:S([a(s).m("upload-success"),a(s).m("circle-check")])},{default:K(()=>[j(a(ia))]),_:1},8,["class"])):["picture-card","picture"].includes(f.listType)?(k(),Z(a(he),{key:1,class:S([a(s).m("upload-success"),a(s).m("check")])},{default:K(()=>[j(a(nr))]),_:1},8,["class"])):Y("v-if",!0)],2),f.disabled?Y("v-if",!0):(k(),Z(a(he),{key:2,class:S(a(s).m("close")),onClick:d=>c(p)},{default:K(()=>[j(a(rn))]),_:2},1032,["class","onClick"])),Y(" Due to close btn only appears when li gets focused disappears after li gets blurred, thus keyboard navigation can never reach close btn"),Y(" This is a bug which needs to be fixed "),Y(" TODO: Fix the incorrect navigation interaction "),f.disabled?Y("v-if",!0):(k(),L("i",{key:3,class:S(a(s).m("close-tip"))},de(a(o)("el.upload.deleteTip")),3)),f.listType==="picture-card"?(k(),L("span",{key:4,class:S(a(l).be("list","item-actions"))},[x("span",{class:S(a(l).be("list","item-preview")),onClick:d=>f.handlePreview(p)},[j(a(he),{class:S(a(s).m("zoom-in"))},{default:K(()=>[j(a(er))]),_:1},8,["class"])],10,lk),f.disabled?Y("v-if",!0):(k(),L("span",{key:0,class:S(a(l).be("list","item-delete")),onClick:d=>c(p)},[j(a(he),{class:S(a(s).m("delete"))},{default:K(()=>[j(a(Ku))]),_:1},8,["class"])],10,ak))],2)):Y("v-if",!0)])],42,tk))),128)),Q(f.$slots,"append")]),_:3},8,["class","name"]))}});var zs=ie(rk,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-list.vue"]]);const ik=pe({disabled:{type:Boolean,default:!1}}),uk={file:e=>at(e)},ck=["onDrop","onDragover"],dk={name:"ElUploadDrag"},fk=se({...dk,props:ik,emits:uk,setup(e,{emit:t}){const n=e,o="ElUploadDrag",l=fe(yr);l||Ot(o,"usage: ");const s=le("upload"),r=P(!1),u=c=>{if(n.disabled)return;r.value=!1;const f=Array.from(c.dataTransfer.files),h=l.accept.value;if(!h){t("file",f);return}const p=f.filter(d=>{const{type:v,name:m}=d,y=m.includes(".")?`.${m.split(".").pop()}`:"",b=v.replace(/\/.*$/,"");return h.split(",").map(C=>C.trim()).filter(C=>C).some(C=>C.startsWith(".")?y===C:/\/\*$/.test(C)?b===C.replace(/\/\*$/,""):/^[^/]+\/[^/]+$/.test(C)?v===C:!1)});t("file",p)},i=()=>{n.disabled||(r.value=!0)};return(c,f)=>(k(),L("div",{class:S([a(s).b("dragger"),a(s).is("dragover",r.value)]),onDrop:Oe(u,["prevent"]),onDragover:Oe(i,["prevent"]),onDragleave:f[0]||(f[0]=Oe(h=>r.value=!1,["prevent"]))},[Q(c.$slots,"default")],42,ck))}});var pk=ie(fk,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-dragger.vue"]]);const vk=pe({...ou,beforeUpload:{type:te(Function),default:tt},onRemove:{type:te(Function),default:tt},onStart:{type:te(Function),default:tt},onSuccess:{type:te(Function),default:tt},onProgress:{type:te(Function),default:tt},onError:{type:te(Function),default:tt},onExceed:{type:te(Function),default:tt}}),mk=["onKeydown"],hk=["name","multiple","accept"],gk={name:"ElUploadContent",inheritAttrs:!1},bk=se({...gk,props:vk,setup(e,{expose:t}){const n=e,o=le("upload"),l=Ht({}),s=Ht(),r=d=>{if(d.length===0)return;const{autoUpload:v,limit:m,fileList:y,multiple:b,onStart:C,onExceed:g}=n;if(m&&y.length+d.length>m){g(d,y);return}b||(d=d.slice(0,1));for(const w of d){const M=w;M.uid=nu(),C(M),v&&u(M)}},u=async d=>{if(s.value.value="",!n.beforeUpload)return i(d);let v;try{v=await n.beforeUpload(d)}catch{v=!1}if(v===!1){n.onRemove(d);return}let m=d;v instanceof Blob&&(v instanceof File?m=v:m=new File([v],d.name,{type:d.type})),i(Object.assign(m,{uid:d.uid}))},i=d=>{const{headers:v,data:m,method:y,withCredentials:b,name:C,action:g,onProgress:w,onSuccess:M,onError:I,httpRequest:T}=n,{uid:B}=d,O={headers:v||{},withCredentials:b,file:d,data:m,method:y,filename:C,action:g,onProgress:W=>{w(W,d)},onSuccess:W=>{M(W,d),delete l.value[B]},onError:W=>{I(W,d),delete l.value[B]}},V=T(O);l.value[B]=V,V instanceof Promise&&V.then(O.onSuccess,O.onError)},c=d=>{const v=d.target.files;!v||r(Array.from(v))},f=()=>{n.disabled||(s.value.value="",s.value.click())},h=()=>{f()};return t({abort:d=>{cc(l.value).filter(d?([m])=>String(d.uid)===m:()=>!0).forEach(([m,y])=>{y instanceof XMLHttpRequest&&y.abort(),delete l.value[m]})},upload:u}),(d,v)=>(k(),L("div",{class:S([a(o).b(),a(o).m(d.listType),a(o).is("drag",d.drag)]),tabindex:"0",onClick:f,onKeydown:xe(Oe(h,["self"]),["enter","space"])},[d.drag?(k(),Z(pk,{key:0,disabled:d.disabled,onFile:r},{default:K(()=>[Q(d.$slots,"default")]),_:3},8,["disabled"])):Q(d.$slots,"default",{key:1}),x("input",{ref_key:"inputRef",ref:s,class:S(a(o).e("input")),name:d.name,multiple:d.multiple,accept:d.accept,type:"file",onChange:c,onClick:v[0]||(v[0]=Oe(()=>{},["stop"]))},null,42,hk)],42,mk))}});var Vs=ie(bk,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-content.vue"]]);const Hs="ElUpload",yk=e=>{var t;(t=e.url)!=null&&t.startsWith("blob:")&&URL.revokeObjectURL(e.url)},Ck=(e,t)=>{const n=Nu(e,"fileList",void 0,{passive:!0}),o=p=>n.value.find(d=>d.uid===p.uid);function l(p){var d;(d=t.value)==null||d.abort(p)}function s(p=["ready","uploading","success","fail"]){n.value=n.value.filter(d=>!p.includes(d.status))}const r=(p,d)=>{const v=o(d);!v||(console.error(p),v.status="fail",n.value.splice(n.value.indexOf(v),1),e.onError(p,v,n.value),e.onChange(v,n.value))},u=(p,d)=>{const v=o(d);!v||(e.onProgress(p,v,n.value),v.status="uploading",v.percentage=Math.round(p.percent))},i=(p,d)=>{const v=o(d);!v||(v.status="success",v.response=p,e.onSuccess(p,v,n.value),e.onChange(v,n.value))},c=p=>{const d={name:p.name,percentage:0,status:"ready",size:p.size,raw:p,uid:p.uid};if(e.listType==="picture-card"||e.listType==="picture")try{d.url=URL.createObjectURL(p)}catch(v){v.message,e.onError(v,d,n.value)}n.value.push(d),e.onChange(d,n.value)},f=async p=>{const d=p instanceof File?o(p):p;d||Ot(Hs,"file to be removed not found");const v=m=>{l(m);const y=n.value;y.splice(y.indexOf(m),1),e.onRemove(m,y),yk(m)};e.beforeRemove?await e.beforeRemove(d,n.value)!==!1&&v(d):v(d)};function h(){n.value.filter(({status:p})=>p==="ready").forEach(({raw:p})=>{var d;return p&&((d=t.value)==null?void 0:d.upload(p))})}return oe(()=>e.listType,p=>{p!=="picture-card"&&p!=="picture"||(n.value=n.value.map(d=>{const{raw:v,url:m}=d;if(!m&&v)try{d.url=URL.createObjectURL(v)}catch(y){e.onError(y,d,n.value)}return d}))}),oe(n,p=>{for(const d of p)d.uid||(d.uid=nu()),d.status||(d.status="success")},{immediate:!0,deep:!0}),{uploadFiles:n,abort:l,clearFiles:s,handleError:r,handleProgress:u,handleStart:c,handleSuccess:i,handleRemove:f,submit:h}},wk={name:"ElUpload"},kk=se({...wk,props:Zw,setup(e,{expose:t}){const n=e,o=Xt(),l=On(),s=Ht(),{abort:r,submit:u,clearFiles:i,uploadFiles:c,handleStart:f,handleError:h,handleRemove:p,handleSuccess:d,handleProgress:v}=Ck(n,s),m=$(()=>n.listType==="picture-card"),y=$(()=>({...n,onStart:f,onProgress:v,onSuccess:d,onError:h,onRemove:p}));return yt(()=>{c.value.forEach(({url:b})=>{b!=null&&b.startsWith("blob:")&&URL.revokeObjectURL(b)})}),Fe(yr,{accept:ct(n,"accept")}),t({abort:r,submit:u,clearFiles:i,handleStart:f,handleRemove:p}),(b,C)=>(k(),L("div",null,[a(m)&&b.showFileList?(k(),Z(zs,{key:0,disabled:a(l),"list-type":b.listType,files:a(c),"handle-preview":b.onPreview,onRemove:a(p)},Jn({append:K(()=>[b.listType==="picture-card"?(k(),Z(Vs,vt({key:0,ref_key:"uploadRef",ref:s},a(y)),{default:K(()=>[a(o).trigger?Q(b.$slots,"trigger",{key:0}):Y("v-if",!0),!a(o).trigger&&a(o).default?Q(b.$slots,"default",{key:1}):Y("v-if",!0)]),_:3},16)):Y("v-if",!0)]),_:2},[b.$slots.file?{name:"default",fn:K(({file:g})=>[Q(b.$slots,"file",{file:g})])}:void 0]),1032,["disabled","list-type","files","handle-preview","onRemove"])):Y("v-if",!0),b.listType!=="picture-card"?(k(),Z(Vs,vt({key:1,ref_key:"uploadRef",ref:s},a(y)),{default:K(()=>[a(o).trigger?Q(b.$slots,"trigger",{key:0}):Y("v-if",!0),!a(o).trigger&&a(o).default?Q(b.$slots,"default",{key:1}):Y("v-if",!0)]),_:3},16)):Y("v-if",!0),b.$slots.trigger?Q(b.$slots,"default",{key:2}):Y("v-if",!0),Q(b.$slots,"tip"),!a(m)&&b.showFileList?(k(),Z(zs,{key:3,disabled:a(l),"list-type":b.listType,files:a(c),"handle-preview":b.onPreview,onRemove:a(p)},Jn({_:2},[b.$slots.file?{name:"default",fn:K(({file:g})=>[Q(b.$slots,"file",{file:g})])}:void 0]),1032,["disabled","list-type","files","handle-preview","onRemove"])):Y("v-if",!0)]))}});var Sk=ie(kk,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload.vue"]]);const rE=Ke(Sk);function Ek(e){let t;const n=le("loading"),o=P(!1),l=rt({...e,originalPosition:"",originalOverflow:"",visible:!1});function s(d){l.text=d}function r(){const d=l.parent;if(!d.vLoadingAddClassList){let v=d.getAttribute("loading-number");v=Number.parseInt(v)-1,v?d.setAttribute("loading-number",v.toString()):(Bt(d,n.bm("parent","relative")),d.removeAttribute("loading-number")),Bt(d,n.bm("parent","hidden"))}u(),h.unmount()}function u(){var d,v;(v=(d=p.$el)==null?void 0:d.parentNode)==null||v.removeChild(p.$el)}function i(){var d;if(e.beforeClose&&!e.beforeClose())return;const v=l.parent;v.vLoadingAddClassList=void 0,o.value=!0,clearTimeout(t),t=window.setTimeout(()=>{o.value&&(o.value=!1,r())},400),l.visible=!1,(d=e.closed)==null||d.call(e)}function c(){!o.value||(o.value=!1,r())}const h=yu({name:"ElLoading",setup(){return()=>{const d=l.spinner||l.svg,v=Se("svg",{class:"circular",viewBox:l.svgViewBox?l.svgViewBox:"25 25 50 50",...d?{innerHTML:d}:{}},[Se("circle",{class:"path",cx:"50",cy:"50",r:"20",fill:"none"})]),m=l.text?Se("p",{class:n.b("text")},[l.text]):void 0;return Se(St,{name:n.b("fade"),onAfterLeave:c},{default:K(()=>[Ie(j("div",{style:{backgroundColor:l.background||""},class:[n.b("mask"),l.customClass,l.fullscreen?"is-fullscreen":""]},[Se("div",{class:n.b("spinner")},[v,m])]),[[Ye,l.visible]])])})}}}),p=h.mount(document.createElement("div"));return{..._t(l),setText:s,removeElLoadingChild:u,close:i,handleAfterLeave:c,vm:p,get $el(){return p.$el}}}let Wo;const oa=function(e={}){if(!je)return;const t=$k(e);if(t.fullscreen&&Wo)return Wo;const n=Ek({...t,closed:()=>{var l;(l=t.closed)==null||l.call(t),t.fullscreen&&(Wo=void 0)}});Tk(t,t.parent,n),Ks(t,t.parent,n),t.parent.vLoadingAddClassList=()=>Ks(t,t.parent,n);let o=t.parent.getAttribute("loading-number");return o?o=`${Number.parseInt(o)+1}`:o="1",t.parent.setAttribute("loading-number",o),t.parent.appendChild(n.$el),ke(()=>n.visible.value=t.visible),t.fullscreen&&(Wo=n),n},$k=e=>{var t,n,o,l;let s;return He(e.target)?s=(t=document.querySelector(e.target))!=null?t:document.body:s=e.target||document.body,{parent:s===document.body||e.body?document.body:s,background:e.background||"",svg:e.svg||"",svgViewBox:e.svgViewBox||"",spinner:e.spinner||!1,text:e.text||"",fullscreen:s===document.body&&((n=e.fullscreen)!=null?n:!0),lock:(o=e.lock)!=null?o:!1,customClass:e.customClass||"",visible:(l=e.visible)!=null?l:!0,target:s}},Tk=async(e,t,n)=>{const{nextZIndex:o}=An(),l={};if(e.fullscreen)n.originalPosition.value=tn(document.body,"position"),n.originalOverflow.value=tn(document.body,"overflow"),l.zIndex=o();else if(e.parent===document.body){n.originalPosition.value=tn(document.body,"position"),await ke();for(const s of["top","left"]){const r=s==="top"?"scrollTop":"scrollLeft";l[s]=`${e.target.getBoundingClientRect()[s]+document.body[r]+document.documentElement[r]-Number.parseInt(tn(document.body,`margin-${s}`),10)}px`}for(const s of["height","width"])l[s]=`${e.target.getBoundingClientRect()[s]}px`}else n.originalPosition.value=tn(t,"position");for(const[s,r]of Object.entries(l))n.$el.style[s]=r},Ks=(e,t,n)=>{const o=le("loading");n.originalPosition.value!=="absolute"&&n.originalPosition.value!=="fixed"?nn(t,o.bm("parent","relative")):Bt(t,o.bm("parent","relative")),e.fullscreen&&e.lock?nn(t,o.bm("parent","hidden")):Bt(t,o.bm("parent","hidden"))},la=Symbol("ElLoading"),Ws=(e,t)=>{var n,o,l,s;const r=t.instance,u=p=>Mt(t.value)?t.value[p]:void 0,i=p=>{const d=He(p)&&(r==null?void 0:r[p])||p;return d&&P(d)},c=p=>i(u(p)||e.getAttribute(`element-loading-${Cu(p)}`)),f=(n=u("fullscreen"))!=null?n:t.modifiers.fullscreen,h={text:c("text"),svg:c("svg"),svgViewBox:c("svgViewBox"),spinner:c("spinner"),background:c("background"),customClass:c("customClass"),fullscreen:f,target:(o=u("target"))!=null?o:f?void 0:e,body:(l=u("body"))!=null?l:t.modifiers.body,lock:(s=u("lock"))!=null?s:t.modifiers.lock};e[la]={options:h,instance:oa(h)}},Nk=(e,t)=>{for(const n of Object.keys(t))Qt(t[n])&&(t[n].value=e[n])},js={mounted(e,t){t.value&&Ws(e,t)},updated(e,t){const n=e[la];t.oldValue!==t.value&&(t.value&&!t.oldValue?Ws(e,t):t.value&&t.oldValue?Mt(t.value)&&Nk(t.value,n.options):n==null||n.instance.close())},unmounted(e){var t;(t=e[la])==null||t.instance.close()}},iE={install(e){e.directive("loading",js),e.config.globalProperties.$loading=oa},directive:js,service:oa},lu=["success","info","warning","error"],At=Ct({customClass:"",center:!1,dangerouslyUseHTMLString:!1,duration:3e3,icon:"",id:"",message:"",onClose:void 0,showClose:!1,type:"info",offset:16,zIndex:0,grouping:!1,repeatNum:1,appendTo:je?document.body:void 0}),Pk=pe({customClass:{type:String,default:At.customClass},center:{type:Boolean,default:At.center},dangerouslyUseHTMLString:{type:Boolean,default:At.dangerouslyUseHTMLString},duration:{type:Number,default:At.duration},icon:{type:Wt,default:At.icon},id:{type:String,default:At.id},message:{type:te([String,Object,Function]),default:At.message},onClose:{type:te(Function),required:!1},showClose:{type:Boolean,default:At.showClose},type:{type:String,values:lu,default:At.type},offset:{type:Number,default:At.offset},zIndex:{type:Number,default:At.zIndex},grouping:{type:Boolean,default:At.grouping},repeatNum:{type:Number,default:At.repeatNum}}),Ik={destroy:()=>!0},on=wu([]),Mk=e=>{const t=on.findIndex(l=>l.id===e),n=on[t];let o;return t>0&&(o=on[t-1]),{current:n,prev:o}},Ok=e=>{const{prev:t}=Mk(e);return t?t.vm.exposeProxy.bottom:0},Ak=["id"],Bk=["innerHTML"],Dk={name:"ElMessage"},Lk=se({...Dk,props:Pk,emits:Ik,setup(e,{expose:t}){const n=e,{Close:o}=yl,l=le("message"),s=P(),r=P(!1),u=P(0);let i;const c=$(()=>n.type?n.type==="error"?"danger":n.type:"info"),f=$(()=>{const w=n.type;return{[l.bm("icon",w)]:w&&Pn[w]}}),h=$(()=>n.icon||Pn[n.type]||""),p=$(()=>Ok(n.id)),d=$(()=>n.offset+p.value),v=$(()=>u.value+d.value),m=$(()=>({top:`${d.value}px`,zIndex:n.zIndex}));function y(){n.duration!==0&&({stop:i}=Qn(()=>{C()},n.duration))}function b(){i==null||i()}function C(){r.value=!1}function g({code:w}){w===be.esc&&C()}return Re(()=>{y(),r.value=!0}),oe(()=>n.repeatNum,()=>{b(),y()}),zt(document,"keydown",g),yn(s,()=>{u.value=s.value.getBoundingClientRect().height}),t({visible:r,bottom:v,close:C}),(w,M)=>(k(),Z(St,{name:a(l).b("fade"),onBeforeLeave:w.onClose,onAfterLeave:M[0]||(M[0]=I=>w.$emit("destroy")),persisted:""},{default:K(()=>[Ie(x("div",{id:w.id,ref_key:"messageRef",ref:s,class:S([a(l).b(),{[a(l).m(w.type)]:w.type&&!w.icon},a(l).is("center",w.center),a(l).is("closable",w.showClose),w.customClass]),style:$e(a(m)),role:"alert",onMouseenter:b,onMouseleave:y},[w.repeatNum>1?(k(),Z(a(Hp),{key:0,value:w.repeatNum,type:a(c),class:S(a(l).e("badge"))},null,8,["value","type","class"])):Y("v-if",!0),a(h)?(k(),Z(a(he),{key:1,class:S([a(l).e("icon"),a(f)])},{default:K(()=>[(k(),Z(Ve(a(h))))]),_:1},8,["class"])):Y("v-if",!0),Q(w.$slots,"default",{},()=>[w.dangerouslyUseHTMLString?(k(),L(Pe,{key:1},[Y(" Caution here, message could've been compromised, never use user's input as message "),x("p",{class:S(a(l).e("content")),innerHTML:w.message},null,10,Bk)],2112)):(k(),L("p",{key:0,class:S(a(l).e("content"))},de(w.message),3))]),w.showClose?(k(),Z(a(he),{key:2,class:S(a(l).e("closeBtn")),onClick:Oe(C,["stop"])},{default:K(()=>[j(a(o))]),_:1},8,["class","onClick"])):Y("v-if",!0)],46,Ak),[[Ye,r.value]])]),_:3},8,["name","onBeforeLeave"]))}});var Rk=ie(Lk,[["__file","/home/runner/work/element-plus/element-plus/packages/components/message/src/message.vue"]]);let _k=1;const au=e=>{const t=!e||He(e)||pn(e)||Pt(e)?{message:e}:e,n={...At,...t};if(He(n.appendTo)){let o=document.querySelector(n.appendTo);hn(o)||(o=document.body),n.appendTo=o}return n},Fk=e=>{const t=on.indexOf(e);if(t===-1)return;on.splice(t,1);const{handler:n}=e;n.close()},zk=({appendTo:e,...t},n)=>{const{nextZIndex:o}=An(),l=`message_${_k++}`,s=t.onClose,r=document.createElement("div"),u={...t,zIndex:o()+t.zIndex,id:l,onClose:()=>{s==null||s(),Fk(h)},onDestroy:()=>{Zn(null,r)}},i=j(Rk,u,Pt(u.message)||pn(u.message)?{default:u.message}:null);i.appContext=n||fo._context,Zn(i,r),e.appendChild(r.firstElementChild);const c=i.component,h={id:l,vnode:i,vm:c,handler:{close:()=>{c.exposeProxy.visible=!1}},props:i.component.props};return h},fo=(e={},t)=>{if(!je)return{close:()=>{}};if(We(Yl.max)&&on.length>=Yl.max)return{close:()=>{}};const n=au(e);if(n.grouping&&on.length){const l=on.find(({vnode:s})=>{var r;return((r=s.props)==null?void 0:r.message)===n.message});if(l)return l.props.repeatNum+=1,l.props.type=n.type,l.handler}const o=zk(n,t);return on.push(o),o.handler};lu.forEach(e=>{fo[e]=(t={},n)=>{const o=au(t);return fo({...o,type:e},n)}});function Vk(e){for(const t of on)(!e||e===t.props.type)&&t.handler.close()}fo.closeAll=Vk;fo._context=null;const uE=ir(fo,"$message"),Hk=se({name:"ElMessageBox",directives:{TrapFocus:gv},components:{ElButton:In,ElFocusTrap:Sl,ElInput:Vt,ElOverlay:Na,ElIcon:he,...yl},inheritAttrs:!1,props:{buttonSize:{type:String,validator:Cl},modal:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},closeOnHashChange:{type:Boolean,default:!0},center:Boolean,draggable:Boolean,roundButton:{default:!1,type:Boolean},container:{type:String,default:"body"},boxType:{type:String,default:""}},emits:["vanish","action"],setup(e,{emit:t}){const{t:n}=Je(),o=le("message-box"),l=P(!1),{nextZIndex:s}=An(),r=rt({autofocus:!0,beforeClose:null,callback:null,cancelButtonText:"",cancelButtonClass:"",confirmButtonText:"",confirmButtonClass:"",customClass:"",customStyle:{},dangerouslyUseHTMLString:!1,distinguishCancelAndClose:!1,icon:"",inputPattern:null,inputPlaceholder:"",inputType:"text",inputValue:null,inputValidator:null,inputErrorMessage:"",message:null,modalFade:!0,modalClass:"",showCancelButton:!1,showConfirmButton:!0,type:"",title:void 0,showInput:!1,action:"",confirmButtonLoading:!1,cancelButtonLoading:!1,confirmButtonDisabled:!1,editorErrorMessage:"",validateError:!1,zIndex:s()}),u=$(()=>{const F=r.type;return{[o.bm("icon",F)]:F&&Pn[F]}}),i=un(),c=un(),f=kt($(()=>e.buttonSize),{prop:!0,form:!0,formItem:!0}),h=$(()=>r.icon||Pn[r.type]||""),p=$(()=>!!r.message),d=P(),v=P(),m=P(),y=P(),b=P(),C=$(()=>r.confirmButtonClass);oe(()=>r.inputValue,async F=>{await ke(),e.boxType==="prompt"&&F!==null&&O()},{immediate:!0}),oe(()=>l.value,F=>{var H,U;F&&(e.boxType!=="prompt"&&(r.autofocus?m.value=(U=(H=b.value)==null?void 0:H.$el)!=null?U:d.value:m.value=d.value),r.zIndex=s()),e.boxType==="prompt"&&(F?ke().then(()=>{var _;y.value&&y.value.$el&&(r.autofocus?m.value=(_=V())!=null?_:d.value:m.value=d.value)}):(r.editorErrorMessage="",r.validateError=!1))});const g=$(()=>e.draggable);kr(d,v,g),Re(async()=>{await ke(),e.closeOnHashChange&&Nt(window,"hashchange",w)}),yt(()=>{e.closeOnHashChange&&xt(window,"hashchange",w)});function w(){!l.value||(l.value=!1,ke(()=>{r.action&&t("action",r.action)}))}const M=()=>{e.closeOnClickModal&&B(r.distinguishCancelAndClose?"close":"cancel")},I=ma(M),T=F=>{if(r.inputType!=="textarea")return F.preventDefault(),B("confirm")},B=F=>{var H;e.boxType==="prompt"&&F==="confirm"&&!O()||(r.action=F,r.beforeClose?(H=r.beforeClose)==null||H.call(r,F,r,w):w())},O=()=>{if(e.boxType==="prompt"){const F=r.inputPattern;if(F&&!F.test(r.inputValue||""))return r.editorErrorMessage=r.inputErrorMessage||n("el.messagebox.error"),r.validateError=!0,!1;const H=r.inputValidator;if(typeof H=="function"){const U=H(r.inputValue);if(U===!1)return r.editorErrorMessage=r.inputErrorMessage||n("el.messagebox.error"),r.validateError=!0,!1;if(typeof U=="string")return r.editorErrorMessage=U,r.validateError=!0,!1}}return r.editorErrorMessage="",r.validateError=!1,!0},V=()=>{const F=y.value.$refs;return F.input||F.textarea},W=()=>{B("close")},J=()=>{e.closeOnPressEscape&&W()};return e.lockScroll&&Sr(l),Fc(l),{..._t(r),ns:o,overlayEvent:I,visible:l,hasMessage:p,typeClass:u,contentId:i,inputId:c,btnSize:f,iconComponent:h,confirmButtonClasses:C,rootRef:d,focusStartRef:m,headerRef:v,inputRef:y,confirmRef:b,doClose:w,handleClose:W,onCloseRequested:J,handleWrapperClick:M,handleInputEnter:T,handleAction:B,t:n}}}),Kk=["aria-label","aria-describedby"],Wk=["aria-label"],jk=["id"];function xk(e,t,n,o,l,s){const r=Ee("el-icon"),u=Ee("close"),i=Ee("el-input"),c=Ee("el-button"),f=Ee("el-focus-trap"),h=Ee("el-overlay");return k(),Z(St,{name:"fade-in-linear",onAfterLeave:t[11]||(t[11]=p=>e.$emit("vanish")),persisted:""},{default:K(()=>[Ie(j(h,{"z-index":e.zIndex,"overlay-class":[e.ns.is("message-box"),e.modalClass],mask:e.modal},{default:K(()=>[x("div",{role:"dialog","aria-label":e.title,"aria-modal":"true","aria-describedby":e.showInput?void 0:e.contentId,class:S(`${e.ns.namespace.value}-overlay-message-box`),onClick:t[8]||(t[8]=(...p)=>e.overlayEvent.onClick&&e.overlayEvent.onClick(...p)),onMousedown:t[9]||(t[9]=(...p)=>e.overlayEvent.onMousedown&&e.overlayEvent.onMousedown(...p)),onMouseup:t[10]||(t[10]=(...p)=>e.overlayEvent.onMouseup&&e.overlayEvent.onMouseup(...p))},[j(f,{loop:"",trapped:e.visible,"focus-trap-el":e.rootRef,"focus-start-el":e.focusStartRef,onReleaseRequested:e.onCloseRequested},{default:K(()=>[x("div",{ref:"rootRef",class:S([e.ns.b(),e.customClass,e.ns.is("draggable",e.draggable),{[e.ns.m("center")]:e.center}]),style:$e(e.customStyle),tabindex:"-1",onClick:t[7]||(t[7]=Oe(()=>{},["stop"]))},[e.title!==null&&e.title!==void 0?(k(),L("div",{key:0,ref:"headerRef",class:S(e.ns.e("header"))},[x("div",{class:S(e.ns.e("title"))},[e.iconComponent&&e.center?(k(),Z(r,{key:0,class:S([e.ns.e("status"),e.typeClass])},{default:K(()=>[(k(),Z(Ve(e.iconComponent)))]),_:1},8,["class"])):Y("v-if",!0),x("span",null,de(e.title),1)],2),e.showClose?(k(),L("button",{key:0,type:"button",class:S(e.ns.e("headerbtn")),"aria-label":e.t("el.messagebox.close"),onClick:t[0]||(t[0]=p=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel")),onKeydown:t[1]||(t[1]=xe(Oe(p=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel"),["prevent"]),["enter"]))},[j(r,{class:S(e.ns.e("close"))},{default:K(()=>[j(u)]),_:1},8,["class"])],42,Wk)):Y("v-if",!0)],2)):Y("v-if",!0),x("div",{id:e.contentId,class:S(e.ns.e("content"))},[x("div",{class:S(e.ns.e("container"))},[e.iconComponent&&!e.center&&e.hasMessage?(k(),Z(r,{key:0,class:S([e.ns.e("status"),e.typeClass])},{default:K(()=>[(k(),Z(Ve(e.iconComponent)))]),_:1},8,["class"])):Y("v-if",!0),e.hasMessage?(k(),L("div",{key:1,class:S(e.ns.e("message"))},[Q(e.$slots,"default",{},()=>[e.dangerouslyUseHTMLString?(k(),Z(Ve(e.showInput?"label":"p"),{key:1,for:e.showInput?e.inputId:void 0,innerHTML:e.message},null,8,["for","innerHTML"])):(k(),Z(Ve(e.showInput?"label":"p"),{key:0,for:e.showInput?e.inputId:void 0},{default:K(()=>[Xe(de(e.dangerouslyUseHTMLString?"":e.message),1)]),_:1},8,["for"]))])],2)):Y("v-if",!0)],2),Ie(x("div",{class:S(e.ns.e("input"))},[j(i,{id:e.inputId,ref:"inputRef",modelValue:e.inputValue,"onUpdate:modelValue":t[2]||(t[2]=p=>e.inputValue=p),type:e.inputType,placeholder:e.inputPlaceholder,"aria-invalid":e.validateError,class:S({invalid:e.validateError}),onKeydown:xe(e.handleInputEnter,["enter"])},null,8,["id","modelValue","type","placeholder","aria-invalid","class","onKeydown"]),x("div",{class:S(e.ns.e("errormsg")),style:$e({visibility:e.editorErrorMessage?"visible":"hidden"})},de(e.editorErrorMessage),7)],2),[[Ye,e.showInput]])],10,jk),x("div",{class:S(e.ns.e("btns"))},[e.showCancelButton?(k(),Z(c,{key:0,loading:e.cancelButtonLoading,class:S([e.cancelButtonClass]),round:e.roundButton,size:e.btnSize,onClick:t[3]||(t[3]=p=>e.handleAction("cancel")),onKeydown:t[4]||(t[4]=xe(Oe(p=>e.handleAction("cancel"),["prevent"]),["enter"]))},{default:K(()=>[Xe(de(e.cancelButtonText||e.t("el.messagebox.cancel")),1)]),_:1},8,["loading","class","round","size"])):Y("v-if",!0),Ie(j(c,{ref:"confirmRef",type:"primary",loading:e.confirmButtonLoading,class:S([e.confirmButtonClasses]),round:e.roundButton,disabled:e.confirmButtonDisabled,size:e.btnSize,onClick:t[5]||(t[5]=p=>e.handleAction("confirm")),onKeydown:t[6]||(t[6]=xe(Oe(p=>e.handleAction("confirm"),["prevent"]),["enter"]))},{default:K(()=>[Xe(de(e.confirmButtonText||e.t("el.messagebox.confirm")),1)]),_:1},8,["loading","class","round","disabled","size"]),[[Ye,e.showConfirmButton]])],2)],6)]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])],42,Kk)]),_:3},8,["z-index","overlay-class","mask"]),[[Ye,e.visible]])]),_:3})}var qk=ie(Hk,[["render",xk],["__file","/home/runner/work/element-plus/element-plus/packages/components/message-box/src/index.vue"]]);const Ao=new Map,Uk=(e,t,n=null)=>{const o=Se(qk,e);return o.appContext=n,Zn(o,t),document.body.appendChild(t.firstElementChild),o.component},Yk=()=>document.createElement("div"),Gk=(e,t)=>{const n=Yk();e.onVanish=()=>{Zn(null,n),Ao.delete(l)},e.onAction=s=>{const r=Ao.get(l);let u;e.showInput?u={value:l.inputValue,action:s}:u=s,e.callback?e.callback(u,o.proxy):s==="cancel"||s==="close"?e.distinguishCancelAndClose&&s!=="cancel"?r.reject("close"):r.reject("cancel"):r.resolve(u)};const o=Uk(e,n,t),l=o.proxy;for(const s in e)Rt(e,s)&&!Rt(l.$props,s)&&(l[s]=e[s]);return oe(()=>l.message,(s,r)=>{pn(s)?o.slots.default=()=>[s]:pn(r)&&!pn(s)&&delete o.slots.default},{immediate:!0}),l.visible=!0,l};function Co(e,t=null){if(!je)return Promise.reject();let n;return He(e)||pn(e)?e={message:e}:n=e.callback,new Promise((o,l)=>{const s=Gk(e,t!=null?t:Co._context);Ao.set(s,{options:e,callback:n,resolve:o,reject:l})})}const Xk=["alert","confirm","prompt"],Jk={alert:{closeOnPressEscape:!1,closeOnClickModal:!1},confirm:{showCancelButton:!0},prompt:{showCancelButton:!0,showInput:!0}};Xk.forEach(e=>{Co[e]=Zk(e)});function Zk(e){return(t,n,o,l)=>{let s;return Mt(n)?(o=n,s=""):Zt(n)?s="":s=n,Co(Object.assign({title:s,message:t,type:"",...Jk[e]},o,{boxType:e}),l)}}Co.close=()=>{Ao.forEach((e,t)=>{t.doClose()}),Ao.clear()};Co._context=null;const $n=Co;$n.install=e=>{$n._context=e._context,e.config.globalProperties.$msgbox=$n,e.config.globalProperties.$messageBox=$n,e.config.globalProperties.$alert=$n.alert,e.config.globalProperties.$confirm=$n.confirm,e.config.globalProperties.$prompt=$n.prompt};const cE=$n,su=["success","info","warning","error"],Qk=pe({customClass:{type:String,default:""},dangerouslyUseHTMLString:{type:Boolean,default:!1},duration:{type:Number,default:4500},icon:{type:te([String,Object]),default:""},id:{type:String,default:""},message:{type:te([String,Object]),default:""},offset:{type:Number,default:0},onClick:{type:te(Function),default:()=>{}},onClose:{type:te(Function),required:!0},position:{type:String,values:["top-right","top-left","bottom-right","bottom-left"],default:"top-right"},showClose:{type:Boolean,default:!0},title:{type:String,default:""},type:{type:String,values:[...su,""],default:""},zIndex:{type:Number,default:0}}),eS={destroy:()=>!0},tS=se({name:"ElNotification",components:{ElIcon:he,...yl},props:Qk,emits:eS,setup(e){const t=le("notification"),n=P(!1);let o;const l=$(()=>{const d=e.type;return d&&Pn[e.type]?t.m(d):""}),s=$(()=>Pn[e.type]||e.icon||""),r=$(()=>e.position.endsWith("right")?"right":"left"),u=$(()=>e.position.startsWith("top")?"top":"bottom"),i=$(()=>({[u.value]:`${e.offset}px`,zIndex:e.zIndex}));function c(){e.duration>0&&({stop:o}=Qn(()=>{n.value&&h()},e.duration))}function f(){o==null||o()}function h(){n.value=!1}function p({code:d}){d===be.delete||d===be.backspace?f():d===be.esc?n.value&&h():c()}return Re(()=>{c(),n.value=!0}),zt(document,"keydown",p),{ns:t,horizontalClass:r,typeClass:l,iconComponent:s,positionStyle:i,visible:n,close:h,clearTimer:f,startTimer:c}}}),nS=["id"],oS=["textContent"],lS={key:0},aS=["innerHTML"];function sS(e,t,n,o,l,s){const r=Ee("el-icon"),u=Ee("close");return k(),Z(St,{name:e.ns.b("fade"),onBeforeLeave:e.onClose,onAfterLeave:t[3]||(t[3]=i=>e.$emit("destroy")),persisted:""},{default:K(()=>[Ie(x("div",{id:e.id,class:S([e.ns.b(),e.customClass,e.horizontalClass]),style:$e(e.positionStyle),role:"alert",onMouseenter:t[0]||(t[0]=(...i)=>e.clearTimer&&e.clearTimer(...i)),onMouseleave:t[1]||(t[1]=(...i)=>e.startTimer&&e.startTimer(...i)),onClick:t[2]||(t[2]=(...i)=>e.onClick&&e.onClick(...i))},[e.iconComponent?(k(),Z(r,{key:0,class:S([e.ns.e("icon"),e.typeClass])},{default:K(()=>[(k(),Z(Ve(e.iconComponent)))]),_:1},8,["class"])):Y("v-if",!0),x("div",{class:S(e.ns.e("group"))},[x("h2",{class:S(e.ns.e("title")),textContent:de(e.title)},null,10,oS),Ie(x("div",{class:S(e.ns.e("content")),style:$e(e.title?void 0:{margin:0})},[Q(e.$slots,"default",{},()=>[e.dangerouslyUseHTMLString?(k(),L(Pe,{key:1},[Y(" Caution here, message could've been compromized, nerver use user's input as message "),Y(" eslint-disable-next-line "),x("p",{innerHTML:e.message},null,8,aS)],2112)):(k(),L("p",lS,de(e.message),1))])],6),[[Ye,e.message]]),e.showClose?(k(),Z(r,{key:0,class:S(e.ns.e("closeBtn")),onClick:Oe(e.close,["stop"])},{default:K(()=>[j(u)]),_:1},8,["class","onClick"])):Y("v-if",!0)],2)],46,nS),[[Ye,e.visible]])]),_:3},8,["name","onBeforeLeave"])}var rS=ie(tS,[["render",sS],["__file","/home/runner/work/element-plus/element-plus/packages/components/notification/src/notification.vue"]]);const pl={"top-left":[],"top-right":[],"bottom-left":[],"bottom-right":[]},aa=16;let iS=1;const po=function(e={},t=null){if(!je)return{close:()=>{}};(typeof e=="string"||pn(e))&&(e={message:e});const n=e.position||"top-right";let o=e.offset||0;pl[n].forEach(({vm:h})=>{var p;o+=(((p=h.el)==null?void 0:p.offsetHeight)||0)+aa}),o+=aa;const{nextZIndex:l}=An(),s=`notification_${iS++}`,r=e.onClose,u={zIndex:l(),offset:o,...e,id:s,onClose:()=>{uS(s,n,r)}};let i=document.body;hn(e.appendTo)?i=e.appendTo:He(e.appendTo)&&(i=document.querySelector(e.appendTo)),hn(i)||(i=document.body);const c=document.createElement("div"),f=j(rS,u,pn(u.message)?{default:()=>u.message}:null);return f.appContext=t!=null?t:po._context,f.props.onDestroy=()=>{Zn(null,c)},Zn(f,c),pl[n].push({vm:f}),i.appendChild(c.firstElementChild),{close:()=>{f.component.proxy.visible=!1}}};su.forEach(e=>{po[e]=(t={})=>((typeof t=="string"||pn(t))&&(t={message:t}),po({...t,type:e}))});function uS(e,t,n){const o=pl[t],l=o.findIndex(({vm:c})=>{var f;return((f=c.component)==null?void 0:f.props.id)===e});if(l===-1)return;const{vm:s}=o[l];if(!s)return;n==null||n(s);const r=s.el.offsetHeight,u=t.split("-")[0];o.splice(l,1);const i=o.length;if(!(i<1))for(let c=l;c{t.component.proxy.visible=!1})}po.closeAll=cS;po._context=null;const dE=ir(po,"$notify");var fE={name:"zh-cn",el:{colorpicker:{confirm:"\u786E\u5B9A",clear:"\u6E05\u7A7A"},datepicker:{now:"\u6B64\u523B",today:"\u4ECA\u5929",cancel:"\u53D6\u6D88",clear:"\u6E05\u7A7A",confirm:"\u786E\u5B9A",selectDate:"\u9009\u62E9\u65E5\u671F",selectTime:"\u9009\u62E9\u65F6\u95F4",startDate:"\u5F00\u59CB\u65E5\u671F",startTime:"\u5F00\u59CB\u65F6\u95F4",endDate:"\u7ED3\u675F\u65E5\u671F",endTime:"\u7ED3\u675F\u65F6\u95F4",prevYear:"\u524D\u4E00\u5E74",nextYear:"\u540E\u4E00\u5E74",prevMonth:"\u4E0A\u4E2A\u6708",nextMonth:"\u4E0B\u4E2A\u6708",year:"\u5E74",month1:"1 \u6708",month2:"2 \u6708",month3:"3 \u6708",month4:"4 \u6708",month5:"5 \u6708",month6:"6 \u6708",month7:"7 \u6708",month8:"8 \u6708",month9:"9 \u6708",month10:"10 \u6708",month11:"11 \u6708",month12:"12 \u6708",weeks:{sun:"\u65E5",mon:"\u4E00",tue:"\u4E8C",wed:"\u4E09",thu:"\u56DB",fri:"\u4E94",sat:"\u516D"},months:{jan:"\u4E00\u6708",feb:"\u4E8C\u6708",mar:"\u4E09\u6708",apr:"\u56DB\u6708",may:"\u4E94\u6708",jun:"\u516D\u6708",jul:"\u4E03\u6708",aug:"\u516B\u6708",sep:"\u4E5D\u6708",oct:"\u5341\u6708",nov:"\u5341\u4E00\u6708",dec:"\u5341\u4E8C\u6708"}},select:{loading:"\u52A0\u8F7D\u4E2D",noMatch:"\u65E0\u5339\u914D\u6570\u636E",noData:"\u65E0\u6570\u636E",placeholder:"\u8BF7\u9009\u62E9"},cascader:{noMatch:"\u65E0\u5339\u914D\u6570\u636E",loading:"\u52A0\u8F7D\u4E2D",placeholder:"\u8BF7\u9009\u62E9",noData:"\u6682\u65E0\u6570\u636E"},pagination:{goto:"\u524D\u5F80",pagesize:"\u6761/\u9875",total:"\u5171 {total} \u6761",pageClassifier:"\u9875",deprecationWarning:"\u4F60\u4F7F\u7528\u4E86\u4E00\u4E9B\u5DF2\u88AB\u5E9F\u5F03\u7684\u7528\u6CD5\uFF0C\u8BF7\u53C2\u8003 el-pagination \u7684\u5B98\u65B9\u6587\u6863"},messagebox:{title:"\u63D0\u793A",confirm:"\u786E\u5B9A",cancel:"\u53D6\u6D88",error:"\u8F93\u5165\u7684\u6570\u636E\u4E0D\u5408\u6CD5!"},upload:{deleteTip:"\u6309 delete \u952E\u53EF\u5220\u9664",delete:"\u5220\u9664",preview:"\u67E5\u770B\u56FE\u7247",continue:"\u7EE7\u7EED\u4E0A\u4F20"},table:{emptyText:"\u6682\u65E0\u6570\u636E",confirmFilter:"\u7B5B\u9009",resetFilter:"\u91CD\u7F6E",clearFilter:"\u5168\u90E8",sumText:"\u5408\u8BA1"},tree:{emptyText:"\u6682\u65E0\u6570\u636E"},transfer:{noMatch:"\u65E0\u5339\u914D\u6570\u636E",noData:"\u65E0\u6570\u636E",titles:["\u5217\u8868 1","\u5217\u8868 2"],filterPlaceholder:"\u8BF7\u8F93\u5165\u641C\u7D22\u5185\u5BB9",noCheckedFormat:"\u5171 {total} \u9879",hasCheckedFormat:"\u5DF2\u9009 {checked}/{total} \u9879"},image:{error:"\u52A0\u8F7D\u5931\u8D25"},pageHeader:{title:"\u8FD4\u56DE"},popconfirm:{confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88"}}};export{AS as $,fE as A,Vt as B,WS as C,KS as D,bo as E,Wn as F,NS as G,PS as H,$S as I,rE as J,nu as K,RS as L,Zl as M,dl as N,nE as O,tE as P,js as Q,JS as R,CS as S,XS as T,Kb as U,aE as V,qS as W,J0 as X,ZS as Y,BS as Z,DS as _,wn as a,TS as a0,IS as a1,QS as a2,sE as a3,_S as a4,LS as a5,mm as a6,wS as a7,jS as b,he as c,YS as d,GS as e,US as f,FS as g,ES as h,Wb as i,SS as j,uE as k,cE as l,dE as m,iE as n,kS as o,VS as p,HS as q,zS as r,MS as s,eE as t,Ft as u,xS as v,In as w,lE as x,oE as y,OS as z};