diff --git a/mail-vue/src/components/email-scroll/index.vue b/mail-vue/src/components/email-scroll/index.vue index afaa04f..164ed05 100644 --- a/mail-vue/src/components/email-scroll/index.vue +++ b/mail-vue/src/components/email-scroll/index.vue @@ -25,7 +25,7 @@
(k(),F(De,null,[L(eb,{move:s.value,ratio:c.value,size:l.value,always:h.always},null,8,["move","ratio","size","always"]),L(eb,{move:r.value,ratio:u.value,size:a.value,vertical:"",always:h.always},null,8,["move","ratio","size","always"])],64))}});var CL=xe(wL,[["__file","bar.vue"]]);const SL=Te({height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:{type:Boolean,default:!1},wrapStyle:{type:oe([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},tabindex:{type:[String,Number],default:void 0},id:String,role:String,...Mn(["ariaLabel","ariaOrientation"])}),_L={scroll:({scrollTop:e,scrollLeft:t})=>[e,t].every(Ge)},kL="ElScrollbar",EL=J({name:kL}),$L=J({...EL,props:SL,emits:_L,setup(e,{expose:t,emit:n}){const o=e,s=Se("scrollbar");let r,l,a=0,u=0;const c=R(),d=R(),f=R(),h=R(),p=E(()=>{const C={};return o.height&&(C.height=Qt(o.height)),o.maxHeight&&(C.maxHeight=Qt(o.maxHeight)),[o.wrapStyle,C]}),m=E(()=>[o.wrapClass,s.e("wrap"),{[s.em("wrap","hidden-default")]:!o.native}]),v=E(()=>[s.e("view"),o.viewClass]),g=()=>{var C;d.value&&((C=h.value)==null||C.handleScroll(d.value),a=d.value.scrollTop,u=d.value.scrollLeft,n("scroll",{scrollTop:d.value.scrollTop,scrollLeft:d.value.scrollLeft}))};function y(C,_){ct(C)?d.value.scrollTo(C):Ge(C)&&Ge(_)&&d.value.scrollTo(C,_)}const S=C=>{Ge(C)&&(d.value.scrollTop=C)},w=C=>{Ge(C)&&(d.value.scrollLeft=C)},b=()=>{var C;(C=h.value)==null||C.update()};return ge(()=>o.noresize,C=>{C?(r?.(),l?.()):({stop:r}=qt(f,b),l=At("resize",b))},{immediate:!0}),ge(()=>[o.maxHeight,o.height],()=>{o.native||ze(()=>{var C;b(),d.value&&((C=h.value)==null||C.handleScroll(d.value))})}),gt(Mm,ft({scrollbarElement:c,wrapElement:d})),cu(()=>{d.value&&(d.value.scrollTop=a,d.value.scrollLeft=u)}),et(()=>{o.native||ze(()=>{b()})}),Lo(()=>b()),t({wrapRef:d,update:b,scrollTo:y,setScrollTop:S,setScrollLeft:w,handleScroll:g}),(C,_)=>(k(),F("div",{ref_key:"scrollbarRef",ref:c,class:M(i(s).b())},[O("div",{ref_key:"wrapRef",ref:d,class:M(i(m)),style:Ve(i(p)),tabindex:C.tabindex,onScroll:g},[(k(),ne(pt(C.tag),{id:C.id,ref_key:"resizeRef",ref:f,class:M(i(v)),style:Ve(C.viewStyle),role:C.role,"aria-label":C.ariaLabel,"aria-orientation":C.ariaOrientation},{default:W(()=>[ae(C.$slots,"default")]),_:3},8,["id","class","style","role","aria-label","aria-orientation"]))],46,["tabindex"]),C.native?te("v-if",!0):(k(),ne(CL,{key:0,ref_key:"barRef",ref:h,always:C.always,"min-size":C.minSize},null,8,["always","min-size"]))],2))}});var TL=xe($L,[["__file","scrollbar.vue"]]);const Ts=lt(TL),Rm=Symbol("popper"),H_=Symbol("popperContent"),z_=["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],K_=Te({role:{type:String,values:z_,default:"tooltip"}}),xL=J({name:"ElPopper",inheritAttrs:!1}),OL=J({...xL,props:K_,setup(e,{expose:t}){const n=e,o=R(),s=R(),r=R(),l=R(),a=E(()=>n.role),u={triggerRef:o,popperInstanceRef:s,contentRef:r,referenceRef:l,role:a};return t(u),gt(Rm,u),(c,d)=>ae(c.$slots,"default")}});var IL=xe(OL,[["__file","popper.vue"]]);const W_=Te({arrowOffset:{type:Number,default:5}}),ML=J({name:"ElPopperArrow",inheritAttrs:!1}),RL=J({...ML,props:W_,setup(e,{expose:t}){const n=e,o=Se("popper"),{arrowOffset:s,arrowRef:r,arrowStyle:l}=Pe(H_,void 0);return ge(()=>n.arrowOffset,a=>{s.value=a}),Rt(()=>{r.value=void 0}),t({arrowRef:r}),(a,u)=>(k(),F("span",{ref_key:"arrowRef",ref:r,class:M(i(o).e("arrow")),style:Ve(i(l)),"data-popper-arrow":""},null,6))}});var NL=xe(RL,[["__file","arrow.vue"]]);const j_=Te({virtualRef:{type:oe(Object)},virtualTriggering:Boolean,onMouseenter:{type:oe(Function)},onMouseleave:{type:oe(Function)},onClick:{type:oe(Function)},onKeydown:{type:oe(Function)},onFocus:{type:oe(Function)},onBlur:{type:oe(Function)},onContextmenu:{type:oe(Function)},id:String,open:Boolean}),U_=Symbol("elForwardRef"),PL=e=>{gt(U_,{setForwardRef:n=>{e.value=n}})},AL=e=>({mounted(t){e(t)},updated(t){e(t)},unmounted(){e(null)}}),LL='a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])',DL=e=>getComputedStyle(e).position==="fixed"?!1:e.offsetParent!==null,tb=e=>Array.from(e.querySelectorAll(LL)).filter(t=>id(t)&&DL(t)),id=e=>{if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute("tabIndex")!==null)return!0;if(e.tabIndex<0||e.hasAttribute("disabled")||e.getAttribute("aria-disabled")==="true")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}},cc=function(e,t,...n){let o;t.includes("mouse")||t.includes("click")?o="MouseEvents":t.includes("key")?o="KeyboardEvent":o="HTMLEvents";const s=document.createEvent(o);return s.initEvent(t,...n),e.dispatchEvent(s),e},Y_=e=>!e.getAttribute("aria-owns"),q_=(e,t,n)=>{const{parentNode:o}=e;if(!o)return null;const s=o.querySelectorAll(n),r=Array.prototype.indexOf.call(s,e);return s[r+t]||null},dc=e=>{e&&(e.focus(),!Y_(e)&&e.click())},BL="ElOnlyChild",G_=J({name:BL,setup(e,{slots:t,attrs:n}){var o;const s=Pe(U_),r=AL((o=s?.setForwardRef)!=null?o:Mt);return()=>{var l;const a=(l=t.default)==null?void 0:l.call(t,n);if(!a||a.length>1)return null;const u=X_(a);return u?Xe(ws(u,n),[[r]]):null}}});function X_(e){if(!e)return null;const t=e;for(const n of t){if(ct(n))switch(n.type){case mn:continue;case $a:case"svg":return nb(n);case De:return X_(n.children);default:return n}return nb(n)}return null}function nb(e){const t=Se("only-child");return L("span",{class:t.e("content")},[e])}const FL=J({name:"ElPopperTrigger",inheritAttrs:!1}),VL=J({...FL,props:j_,setup(e,{expose:t}){const n=e,{role:o,triggerRef:s}=Pe(Rm,void 0);PL(s);const r=E(()=>a.value?n.id:void 0),l=E(()=>{if(o&&o.value==="tooltip")return n.open&&n.id?n.id:void 0}),a=E(()=>{if(o&&o.value!=="tooltip")return o.value}),u=E(()=>a.value?`${n.open}`:void 0);let c;const d=["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"];return et(()=>{ge(()=>n.virtualRef,f=>{f&&(s.value=Zn(f))},{immediate:!0}),ge(s,(f,h)=>{c?.(),c=void 0,Qn(f)&&(d.forEach(p=>{var m;const v=n[p];v&&(f.addEventListener(p.slice(2).toLowerCase(),v),(m=h?.removeEventListener)==null||m.call(h,p.slice(2).toLowerCase(),v))}),id(f)&&(c=ge([r,l,a,u],p=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((m,v)=>{gn(p[v])?f.removeAttribute(m):f.setAttribute(m,p[v])})},{immediate:!0}))),Qn(h)&&id(h)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(p=>h.removeAttribute(p))},{immediate:!0})}),Rt(()=>{if(c?.(),c=void 0,s.value&&Qn(s.value)){const f=s.value;d.forEach(h=>{const p=n[h];p&&f.removeEventListener(h.slice(2).toLowerCase(),p)}),s.value=void 0}}),t({triggerRef:s}),(f,h)=>f.virtualTriggering?te("v-if",!0):(k(),ne(i(G_),ht({key:0},f.$attrs,{"aria-controls":i(r),"aria-describedby":i(l),"aria-expanded":i(u),"aria-haspopup":i(a)}),{default:W(()=>[ae(f.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}});var HL=xe(VL,[["__file","trigger.vue"]]);const ip="focus-trap.focus-after-trapped",up="focus-trap.focus-after-released",zL="focus-trap.focusout-prevented",ob={cancelable:!0,bubbles:!1},KL={cancelable:!0,bubbles:!1},sb="focusAfterTrapped",rb="focusAfterReleased",Nm=Symbol("elFocusTrap"),Pm=R(),df=R(0),Am=R(0);let ju=0;const J_=e=>{const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const s=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||s?NodeFilter.FILTER_SKIP:o.tabIndex>=0||o===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t},lb=(e,t)=>{for(const n of e)if(!WL(n,t))return n},WL=(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},jL=e=>{const t=J_(e),n=lb(t,e),o=lb(t.reverse(),e);return[n,o]},UL=e=>e instanceof HTMLInputElement&&"select"in e,Ps=(e,t)=>{if(e&&e.focus){const n=document.activeElement;let o=!1;Qn(e)&&!id(e)&&!e.getAttribute("tabindex")&&(e.setAttribute("tabindex","-1"),o=!0),e.focus({preventScroll:!0}),Am.value=window.performance.now(),e!==n&&UL(e)&&t&&e.select(),Qn(e)&&o&&e.removeAttribute("tabindex")}};function ab(e,t){const n=[...e],o=e.indexOf(t);return o!==-1&&n.splice(o,1),n}const YL=()=>{let e=[];return{push:o=>{const s=e[0];s&&o!==s&&s.pause(),e=ab(e,o),e.unshift(o)},remove:o=>{var s,r;e=ab(e,o),(r=(s=e[0])==null?void 0:s.resume)==null||r.call(s)}}},qL=(e,t=!1)=>{const n=document.activeElement;for(const o of e)if(Ps(o,t),document.activeElement!==n)return},ib=YL(),GL=()=>df.value>Am.value,Uu=()=>{Pm.value="pointer",df.value=window.performance.now()},ub=()=>{Pm.value="keyboard",df.value=window.performance.now()},XL=()=>(et(()=>{ju===0&&(document.addEventListener("mousedown",Uu),document.addEventListener("touchstart",Uu),document.addEventListener("keydown",ub)),ju++}),Rt(()=>{ju--,ju<=0&&(document.removeEventListener("mousedown",Uu),document.removeEventListener("touchstart",Uu),document.removeEventListener("keydown",ub))}),{focusReason:Pm,lastUserFocusTimestamp:df,lastAutomatedFocusTimestamp:Am}),Yu=e=>new CustomEvent(zL,{...KL,detail:e}),Le={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"};let Ll=[];const cb=e=>{e.code===Le.esc&&Ll.forEach(t=>t(e))},JL=e=>{et(()=>{Ll.length===0&&document.addEventListener("keydown",cb),Ct&&Ll.push(e)}),Rt(()=>{Ll=Ll.filter(t=>t!==e),Ll.length===0&&Ct&&document.removeEventListener("keydown",cb)})},ZL=J({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[sb,rb,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const n=R();let o,s;const{focusReason:r}=XL();JL(m=>{e.trapped&&!l.paused&&t("release-requested",m)});const l={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},a=m=>{if(!e.loop&&!e.trapped||l.paused)return;const{code:v,altKey:g,ctrlKey:y,metaKey:S,currentTarget:w,shiftKey:b}=m,{loop:C}=e,_=v===Le.tab&&!g&&!y&&!S,x=document.activeElement;if(_&&x){const T=w,[$,I]=jL(T);if($&&I){if(!b&&x===I){const P=Yu({focusReason:r.value});t("focusout-prevented",P),P.defaultPrevented||(m.preventDefault(),C&&Ps($,!0))}else if(b&&[$,T].includes(x)){const P=Yu({focusReason:r.value});t("focusout-prevented",P),P.defaultPrevented||(m.preventDefault(),C&&Ps(I,!0))}}else if(x===T){const P=Yu({focusReason:r.value});t("focusout-prevented",P),P.defaultPrevented||m.preventDefault()}}};gt(Nm,{focusTrapRef:n,onKeydown:a}),ge(()=>e.focusTrapEl,m=>{m&&(n.value=m)},{immediate:!0}),ge([n],([m],[v])=>{m&&(m.addEventListener("keydown",a),m.addEventListener("focusin",d),m.addEventListener("focusout",f)),v&&(v.removeEventListener("keydown",a),v.removeEventListener("focusin",d),v.removeEventListener("focusout",f))});const u=m=>{t(sb,m)},c=m=>t(rb,m),d=m=>{const v=i(n);if(!v)return;const g=m.target,y=m.relatedTarget,S=g&&v.contains(g);e.trapped||y&&v.contains(y)||(o=y),S&&t("focusin",m),!l.paused&&e.trapped&&(S?s=g:Ps(s,!0))},f=m=>{const v=i(n);if(!(l.paused||!v))if(e.trapped){const g=m.relatedTarget;!gn(g)&&!v.contains(g)&&setTimeout(()=>{if(!l.paused&&e.trapped){const y=Yu({focusReason:r.value});t("focusout-prevented",y),y.defaultPrevented||Ps(s,!0)}},0)}else{const g=m.target;g&&v.contains(g)||t("focusout",m)}};async function h(){await ze();const m=i(n);if(m){ib.push(l);const v=m.contains(document.activeElement)?o:document.activeElement;if(o=v,!m.contains(v)){const y=new Event(ip,ob);m.addEventListener(ip,u),m.dispatchEvent(y),y.defaultPrevented||ze(()=>{let S=e.focusStartEl;Ke(S)||(Ps(S),document.activeElement!==S&&(S="first")),S==="first"&&qL(J_(m),!0),(document.activeElement===v||S==="container")&&Ps(m)})}}}function p(){const m=i(n);if(m){m.removeEventListener(ip,u);const v=new CustomEvent(up,{...ob,detail:{focusReason:r.value}});m.addEventListener(up,c),m.dispatchEvent(v),!v.defaultPrevented&&(r.value=="keyboard"||!GL()||m.contains(document.activeElement))&&Ps(o??document.body),m.removeEventListener(up,c),ib.remove(l)}}return et(()=>{e.trapped&&h(),ge(()=>e.trapped,m=>{m?h():p()})}),Rt(()=>{e.trapped&&p(),n.value&&(n.value.removeEventListener("keydown",a),n.value.removeEventListener("focusin",d),n.value.removeEventListener("focusout",f),n.value=void 0)}),{onKeydown:a}}});function QL(e,t,n,o,s,r){return ae(e.$slots,"default",{handleKeydown:e.onKeydown})}var Pa=xe(ZL,[["render",QL],["__file","focus-trap.vue"]]),uo="top",No="bottom",Po="right",co="left",Lm="auto",Su=[uo,No,Po,co],aa="start",Ki="end",e6="clippingParents",Z_="viewport",qa="popper",t6="reference",db=Su.reduce(function(e,t){return e.concat([t+"-"+aa,t+"-"+Ki])},[]),Qs=[].concat(Su,[Lm]).reduce(function(e,t){return e.concat([t,t+"-"+aa,t+"-"+Ki])},[]),n6="beforeRead",o6="read",s6="afterRead",r6="beforeMain",l6="main",a6="afterMain",i6="beforeWrite",u6="write",c6="afterWrite",d6=[n6,o6,s6,r6,l6,a6,i6,u6,c6];function ks(e){return e?(e.nodeName||"").toLowerCase():null}function ss(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ia(e){var t=ss(e).Element;return e instanceof t||e instanceof Element}function Mo(e){var t=ss(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Dm(e){if(typeof ShadowRoot>"u")return!1;var t=ss(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function f6(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var o=t.styles[n]||{},s=t.attributes[n]||{},r=t.elements[n];!Mo(r)||!ks(r)||(Object.assign(r.style,o),Object.keys(s).forEach(function(l){var a=s[l];a===!1?r.removeAttribute(l):r.setAttribute(l,a===!0?"":a)}))})}function p6(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 s=t.elements[o],r=t.attributes[o]||{},l=Object.keys(t.styles.hasOwnProperty(o)?t.styles[o]:n[o]),a=l.reduce(function(u,c){return u[c]="",u},{});!Mo(s)||!ks(s)||(Object.assign(s.style,a),Object.keys(r).forEach(function(u){s.removeAttribute(u)}))})}}var Q_={name:"applyStyles",enabled:!0,phase:"write",fn:f6,effect:p6,requires:["computeStyles"]};function gs(e){return e.split("-")[0]}var rl=Math.max,ud=Math.min,ua=Math.round;function ca(e,t){t===void 0&&(t=!1);var n=e.getBoundingClientRect(),o=1,s=1;if(Mo(e)&&t){var r=e.offsetHeight,l=e.offsetWidth;l>0&&(o=ua(n.width)/l||1),r>0&&(s=ua(n.height)/r||1)}return{width:n.width/o,height:n.height/s,top:n.top/s,right:n.right/o,bottom:n.bottom/s,left:n.left/o,x:n.left/o,y:n.top/s}}function Bm(e){var t=ca(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 e2(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Dm(n)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function Ks(e){return ss(e).getComputedStyle(e)}function h6(e){return["table","td","th"].indexOf(ks(e))>=0}function Lr(e){return((ia(e)?e.ownerDocument:e.document)||window.document).documentElement}function ff(e){return ks(e)==="html"?e:e.assignedSlot||e.parentNode||(Dm(e)?e.host:null)||Lr(e)}function fb(e){return!Mo(e)||Ks(e).position==="fixed"?null:e.offsetParent}function v6(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&Mo(e)){var o=Ks(e);if(o.position==="fixed")return null}var s=ff(e);for(Dm(s)&&(s=s.host);Mo(s)&&["html","body"].indexOf(ks(s))<0;){var r=Ks(s);if(r.transform!=="none"||r.perspective!=="none"||r.contain==="paint"||["transform","perspective"].indexOf(r.willChange)!==-1||t&&r.willChange==="filter"||t&&r.filter&&r.filter!=="none")return s;s=s.parentNode}return null}function _u(e){for(var t=ss(e),n=fb(e);n&&h6(n)&&Ks(n).position==="static";)n=fb(n);return n&&(ks(n)==="html"||ks(n)==="body"&&Ks(n).position==="static")?t:n||v6(e)||t}function Fm(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Ci(e,t,n){return rl(e,ud(t,n))}function m6(e,t,n){var o=Ci(e,t,n);return o>n?n:o}function t2(){return{top:0,right:0,bottom:0,left:0}}function n2(e){return Object.assign({},t2(),e)}function o2(e,t){return t.reduce(function(n,o){return n[o]=e,n},{})}var g6=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,n2(typeof e!="number"?e:o2(e,Su))};function y6(e){var t,n=e.state,o=e.name,s=e.options,r=n.elements.arrow,l=n.modifiersData.popperOffsets,a=gs(n.placement),u=Fm(a),c=[co,Po].indexOf(a)>=0,d=c?"height":"width";if(!(!r||!l)){var f=g6(s.padding,n),h=Bm(r),p=u==="y"?uo:co,m=u==="y"?No:Po,v=n.rects.reference[d]+n.rects.reference[u]-l[u]-n.rects.popper[d],g=l[u]-n.rects.reference[u],y=_u(r),S=y?u==="y"?y.clientHeight||0:y.clientWidth||0:0,w=v/2-g/2,b=f[p],C=S-h[d]-f[m],_=S/2-h[d]/2+w,x=Ci(b,_,C),T=u;n.modifiersData[o]=(t={},t[T]=x,t.centerOffset=x-_,t)}}function b6(e){var t=e.state,n=e.options,o=n.element,s=o===void 0?"[data-popper-arrow]":o;s!=null&&(typeof s=="string"&&(s=t.elements.popper.querySelector(s),!s)||!e2(t.elements.popper,s)||(t.elements.arrow=s))}var w6={name:"arrow",enabled:!0,phase:"main",fn:y6,effect:b6,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function da(e){return e.split("-")[1]}var C6={top:"auto",right:"auto",bottom:"auto",left:"auto"};function S6(e){var t=e.x,n=e.y,o=window,s=o.devicePixelRatio||1;return{x:ua(t*s)/s||0,y:ua(n*s)/s||0}}function pb(e){var t,n=e.popper,o=e.popperRect,s=e.placement,r=e.variation,l=e.offsets,a=e.position,u=e.gpuAcceleration,c=e.adaptive,d=e.roundOffsets,f=e.isFixed,h=l.x,p=h===void 0?0:h,m=l.y,v=m===void 0?0:m,g=typeof d=="function"?d({x:p,y:v}):{x:p,y:v};p=g.x,v=g.y;var y=l.hasOwnProperty("x"),S=l.hasOwnProperty("y"),w=co,b=uo,C=window;if(c){var _=_u(n),x="clientHeight",T="clientWidth";if(_===ss(n)&&(_=Lr(n),Ks(_).position!=="static"&&a==="absolute"&&(x="scrollHeight",T="scrollWidth")),_=_,s===uo||(s===co||s===Po)&&r===Ki){b=No;var $=f&&_===C&&C.visualViewport?C.visualViewport.height:_[x];v-=$-o.height,v*=u?1:-1}if(s===co||(s===uo||s===No)&&r===Ki){w=Po;var I=f&&_===C&&C.visualViewport?C.visualViewport.width:_[T];p-=I-o.width,p*=u?1:-1}}var A=Object.assign({position:a},c&&C6),P=d===!0?S6({x:p,y:v}):{x:p,y:v};if(p=P.x,v=P.y,u){var j;return Object.assign({},A,(j={},j[b]=S?"0":"",j[w]=y?"0":"",j.transform=(C.devicePixelRatio||1)<=1?"translate("+p+"px, "+v+"px)":"translate3d("+p+"px, "+v+"px, 0)",j))}return Object.assign({},A,(t={},t[b]=S?v+"px":"",t[w]=y?p+"px":"",t.transform="",t))}function _6(e){var t=e.state,n=e.options,o=n.gpuAcceleration,s=o===void 0?!0:o,r=n.adaptive,l=r===void 0?!0:r,a=n.roundOffsets,u=a===void 0?!0:a,c={placement:gs(t.placement),variation:da(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:s,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,pb(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:l,roundOffsets:u})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,pb(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var s2={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:_6,data:{}},qu={passive:!0};function k6(e){var t=e.state,n=e.instance,o=e.options,s=o.scroll,r=s===void 0?!0:s,l=o.resize,a=l===void 0?!0:l,u=ss(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return r&&c.forEach(function(d){d.addEventListener("scroll",n.update,qu)}),a&&u.addEventListener("resize",n.update,qu),function(){r&&c.forEach(function(d){d.removeEventListener("scroll",n.update,qu)}),a&&u.removeEventListener("resize",n.update,qu)}}var r2={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:k6,data:{}},E6={left:"right",right:"left",bottom:"top",top:"bottom"};function fc(e){return e.replace(/left|right|bottom|top/g,function(t){return E6[t]})}var $6={start:"end",end:"start"};function hb(e){return e.replace(/start|end/g,function(t){return $6[t]})}function Vm(e){var t=ss(e),n=t.pageXOffset,o=t.pageYOffset;return{scrollLeft:n,scrollTop:o}}function Hm(e){return ca(Lr(e)).left+Vm(e).scrollLeft}function T6(e){var t=ss(e),n=Lr(e),o=t.visualViewport,s=n.clientWidth,r=n.clientHeight,l=0,a=0;return o&&(s=o.width,r=o.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(l=o.offsetLeft,a=o.offsetTop)),{width:s,height:r,x:l+Hm(e),y:a}}function x6(e){var t,n=Lr(e),o=Vm(e),s=(t=e.ownerDocument)==null?void 0:t.body,r=rl(n.scrollWidth,n.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),l=rl(n.scrollHeight,n.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),a=-o.scrollLeft+Hm(e),u=-o.scrollTop;return Ks(s||n).direction==="rtl"&&(a+=rl(n.clientWidth,s?s.clientWidth:0)-r),{width:r,height:l,x:a,y:u}}function zm(e){var t=Ks(e),n=t.overflow,o=t.overflowX,s=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+s+o)}function l2(e){return["html","body","#document"].indexOf(ks(e))>=0?e.ownerDocument.body:Mo(e)&&zm(e)?e:l2(ff(e))}function Si(e,t){var n;t===void 0&&(t=[]);var o=l2(e),s=o===((n=e.ownerDocument)==null?void 0:n.body),r=ss(o),l=s?[r].concat(r.visualViewport||[],zm(o)?o:[]):o,a=t.concat(l);return s?a:a.concat(Si(ff(l)))}function hh(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function O6(e){var t=ca(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 vb(e,t){return t===Z_?hh(T6(e)):ia(t)?O6(t):hh(x6(Lr(e)))}function I6(e){var t=Si(ff(e)),n=["absolute","fixed"].indexOf(Ks(e).position)>=0,o=n&&Mo(e)?_u(e):e;return ia(o)?t.filter(function(s){return ia(s)&&e2(s,o)&&ks(s)!=="body"}):[]}function M6(e,t,n){var o=t==="clippingParents"?I6(e):[].concat(t),s=[].concat(o,[n]),r=s[0],l=s.reduce(function(a,u){var c=vb(e,u);return a.top=rl(c.top,a.top),a.right=ud(c.right,a.right),a.bottom=ud(c.bottom,a.bottom),a.left=rl(c.left,a.left),a},vb(e,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function a2(e){var t=e.reference,n=e.element,o=e.placement,s=o?gs(o):null,r=o?da(o):null,l=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,u;switch(s){case uo:u={x:l,y:t.y-n.height};break;case No:u={x:l,y:t.y+t.height};break;case Po:u={x:t.x+t.width,y:a};break;case co:u={x:t.x-n.width,y:a};break;default:u={x:t.x,y:t.y}}var c=s?Fm(s):null;if(c!=null){var d=c==="y"?"height":"width";switch(r){case aa:u[c]=u[c]-(t[d]/2-n[d]/2);break;case Ki:u[c]=u[c]+(t[d]/2-n[d]/2);break}}return u}function Wi(e,t){t===void 0&&(t={});var n=t,o=n.placement,s=o===void 0?e.placement:o,r=n.boundary,l=r===void 0?e6:r,a=n.rootBoundary,u=a===void 0?Z_:a,c=n.elementContext,d=c===void 0?qa:c,f=n.altBoundary,h=f===void 0?!1:f,p=n.padding,m=p===void 0?0:p,v=n2(typeof m!="number"?m:o2(m,Su)),g=d===qa?t6:qa,y=e.rects.popper,S=e.elements[h?g:d],w=M6(ia(S)?S:S.contextElement||Lr(e.elements.popper),l,u),b=ca(e.elements.reference),C=a2({reference:b,element:y,placement:s}),_=hh(Object.assign({},y,C)),x=d===qa?_:b,T={top:w.top-x.top+v.top,bottom:x.bottom-w.bottom+v.bottom,left:w.left-x.left+v.left,right:x.right-w.right+v.right},$=e.modifiersData.offset;if(d===qa&&$){var I=$[s];Object.keys(T).forEach(function(A){var P=[Po,No].indexOf(A)>=0?1:-1,j=[uo,No].indexOf(A)>=0?"y":"x";T[A]+=I[j]*P})}return T}function R6(e,t){t===void 0&&(t={});var n=t,o=n.placement,s=n.boundary,r=n.rootBoundary,l=n.padding,a=n.flipVariations,u=n.allowedAutoPlacements,c=u===void 0?Qs:u,d=da(o),f=d?a?db:db.filter(function(m){return da(m)===d}):Su,h=f.filter(function(m){return c.indexOf(m)>=0});h.length===0&&(h=f);var p=h.reduce(function(m,v){return m[v]=Wi(e,{placement:v,boundary:s,rootBoundary:r,padding:l})[gs(v)],m},{});return Object.keys(p).sort(function(m,v){return p[m]-p[v]})}function N6(e){if(gs(e)===Lm)return[];var t=fc(e);return[hb(e),t,hb(t)]}function P6(e){var t=e.state,n=e.options,o=e.name;if(!t.modifiersData[o]._skip){for(var s=n.mainAxis,r=s===void 0?!0:s,l=n.altAxis,a=l===void 0?!0:l,u=n.fallbackPlacements,c=n.padding,d=n.boundary,f=n.rootBoundary,h=n.altBoundary,p=n.flipVariations,m=p===void 0?!0:p,v=n.allowedAutoPlacements,g=t.options.placement,y=gs(g),S=y===g,w=u||(S||!m?[fc(g)]:N6(g)),b=[g].concat(w).reduce(function(ue,de){return ue.concat(gs(de)===Lm?R6(t,{placement:de,boundary:d,rootBoundary:f,padding:c,flipVariations:m,allowedAutoPlacements:v}):de)},[]),C=t.rects.reference,_=t.rects.popper,x=new Map,T=!0,$=b[0],I=0;I (k(),F(De,null,[L(eb,{move:s.value,ratio:c.value,size:l.value,always:h.always},null,8,["move","ratio","size","always"]),L(eb,{move:r.value,ratio:u.value,size:a.value,vertical:"",always:h.always},null,8,["move","ratio","size","always"])],64))}});var CL=xe(wL,[["__file","bar.vue"]]);const SL=Te({height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:{type:Boolean,default:!1},wrapStyle:{type:re([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},tabindex:{type:[String,Number],default:void 0},id:String,role:String,...Mn(["ariaLabel","ariaOrientation"])}),_L={scroll:({scrollTop:e,scrollLeft:t})=>[e,t].every(Ge)},kL="ElScrollbar",EL=J({name:kL}),$L=J({...EL,props:SL,emits:_L,setup(e,{expose:t,emit:n}){const o=e,s=Se("scrollbar");let r,l,a=0,u=0;const c=R(),d=R(),f=R(),h=R(),p=E(()=>{const C={};return o.height&&(C.height=Qt(o.height)),o.maxHeight&&(C.maxHeight=Qt(o.maxHeight)),[o.wrapStyle,C]}),m=E(()=>[o.wrapClass,s.e("wrap"),{[s.em("wrap","hidden-default")]:!o.native}]),v=E(()=>[s.e("view"),o.viewClass]),g=()=>{var C;d.value&&((C=h.value)==null||C.handleScroll(d.value),a=d.value.scrollTop,u=d.value.scrollLeft,n("scroll",{scrollTop:d.value.scrollTop,scrollLeft:d.value.scrollLeft}))};function y(C,_){ct(C)?d.value.scrollTo(C):Ge(C)&&Ge(_)&&d.value.scrollTo(C,_)}const S=C=>{Ge(C)&&(d.value.scrollTop=C)},w=C=>{Ge(C)&&(d.value.scrollLeft=C)},b=()=>{var C;(C=h.value)==null||C.update()};return ge(()=>o.noresize,C=>{C?(r?.(),l?.()):({stop:r}=qt(f,b),l=At("resize",b))},{immediate:!0}),ge(()=>[o.maxHeight,o.height],()=>{o.native||ze(()=>{var C;b(),d.value&&((C=h.value)==null||C.handleScroll(d.value))})}),gt(Mm,ft({scrollbarElement:c,wrapElement:d})),cu(()=>{d.value&&(d.value.scrollTop=a,d.value.scrollLeft=u)}),et(()=>{o.native||ze(()=>{b()})}),Lo(()=>b()),t({wrapRef:d,update:b,scrollTo:y,setScrollTop:S,setScrollLeft:w,handleScroll:g}),(C,_)=>(k(),F("div",{ref_key:"scrollbarRef",ref:c,class:M(i(s).b())},[O("div",{ref_key:"wrapRef",ref:d,class:M(i(m)),style:Ve(i(p)),tabindex:C.tabindex,onScroll:g},[(k(),ne(pt(C.tag),{id:C.id,ref_key:"resizeRef",ref:f,class:M(i(v)),style:Ve(C.viewStyle),role:C.role,"aria-label":C.ariaLabel,"aria-orientation":C.ariaOrientation},{default:W(()=>[ie(C.$slots,"default")]),_:3},8,["id","class","style","role","aria-label","aria-orientation"]))],46,["tabindex"]),C.native?te("v-if",!0):(k(),ne(CL,{key:0,ref_key:"barRef",ref:h,always:C.always,"min-size":C.minSize},null,8,["always","min-size"]))],2))}});var TL=xe($L,[["__file","scrollbar.vue"]]);const Ts=lt(TL),Rm=Symbol("popper"),H_=Symbol("popperContent"),z_=["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],K_=Te({role:{type:String,values:z_,default:"tooltip"}}),xL=J({name:"ElPopper",inheritAttrs:!1}),OL=J({...xL,props:K_,setup(e,{expose:t}){const n=e,o=R(),s=R(),r=R(),l=R(),a=E(()=>n.role),u={triggerRef:o,popperInstanceRef:s,contentRef:r,referenceRef:l,role:a};return t(u),gt(Rm,u),(c,d)=>ie(c.$slots,"default")}});var IL=xe(OL,[["__file","popper.vue"]]);const W_=Te({arrowOffset:{type:Number,default:5}}),ML=J({name:"ElPopperArrow",inheritAttrs:!1}),RL=J({...ML,props:W_,setup(e,{expose:t}){const n=e,o=Se("popper"),{arrowOffset:s,arrowRef:r,arrowStyle:l}=Pe(H_,void 0);return ge(()=>n.arrowOffset,a=>{s.value=a}),Rt(()=>{r.value=void 0}),t({arrowRef:r}),(a,u)=>(k(),F("span",{ref_key:"arrowRef",ref:r,class:M(i(o).e("arrow")),style:Ve(i(l)),"data-popper-arrow":""},null,6))}});var NL=xe(RL,[["__file","arrow.vue"]]);const j_=Te({virtualRef:{type:re(Object)},virtualTriggering:Boolean,onMouseenter:{type:re(Function)},onMouseleave:{type:re(Function)},onClick:{type:re(Function)},onKeydown:{type:re(Function)},onFocus:{type:re(Function)},onBlur:{type:re(Function)},onContextmenu:{type:re(Function)},id:String,open:Boolean}),U_=Symbol("elForwardRef"),PL=e=>{gt(U_,{setForwardRef:n=>{e.value=n}})},AL=e=>({mounted(t){e(t)},updated(t){e(t)},unmounted(){e(null)}}),LL='a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])',DL=e=>getComputedStyle(e).position==="fixed"?!1:e.offsetParent!==null,tb=e=>Array.from(e.querySelectorAll(LL)).filter(t=>id(t)&&DL(t)),id=e=>{if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute("tabIndex")!==null)return!0;if(e.tabIndex<0||e.hasAttribute("disabled")||e.getAttribute("aria-disabled")==="true")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}},cc=function(e,t,...n){let o;t.includes("mouse")||t.includes("click")?o="MouseEvents":t.includes("key")?o="KeyboardEvent":o="HTMLEvents";const s=document.createEvent(o);return s.initEvent(t,...n),e.dispatchEvent(s),e},Y_=e=>!e.getAttribute("aria-owns"),q_=(e,t,n)=>{const{parentNode:o}=e;if(!o)return null;const s=o.querySelectorAll(n),r=Array.prototype.indexOf.call(s,e);return s[r+t]||null},dc=e=>{e&&(e.focus(),!Y_(e)&&e.click())},BL="ElOnlyChild",G_=J({name:BL,setup(e,{slots:t,attrs:n}){var o;const s=Pe(U_),r=AL((o=s?.setForwardRef)!=null?o:Mt);return()=>{var l;const a=(l=t.default)==null?void 0:l.call(t,n);if(!a||a.length>1)return null;const u=X_(a);return u?Xe(ws(u,n),[[r]]):null}}});function X_(e){if(!e)return null;const t=e;for(const n of t){if(ct(n))switch(n.type){case mn:continue;case $a:case"svg":return nb(n);case De:return X_(n.children);default:return n}return nb(n)}return null}function nb(e){const t=Se("only-child");return L("span",{class:t.e("content")},[e])}const FL=J({name:"ElPopperTrigger",inheritAttrs:!1}),VL=J({...FL,props:j_,setup(e,{expose:t}){const n=e,{role:o,triggerRef:s}=Pe(Rm,void 0);PL(s);const r=E(()=>a.value?n.id:void 0),l=E(()=>{if(o&&o.value==="tooltip")return n.open&&n.id?n.id:void 0}),a=E(()=>{if(o&&o.value!=="tooltip")return o.value}),u=E(()=>a.value?`${n.open}`:void 0);let c;const d=["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"];return et(()=>{ge(()=>n.virtualRef,f=>{f&&(s.value=Zn(f))},{immediate:!0}),ge(s,(f,h)=>{c?.(),c=void 0,Qn(f)&&(d.forEach(p=>{var m;const v=n[p];v&&(f.addEventListener(p.slice(2).toLowerCase(),v),(m=h?.removeEventListener)==null||m.call(h,p.slice(2).toLowerCase(),v))}),id(f)&&(c=ge([r,l,a,u],p=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((m,v)=>{gn(p[v])?f.removeAttribute(m):f.setAttribute(m,p[v])})},{immediate:!0}))),Qn(h)&&id(h)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(p=>h.removeAttribute(p))},{immediate:!0})}),Rt(()=>{if(c?.(),c=void 0,s.value&&Qn(s.value)){const f=s.value;d.forEach(h=>{const p=n[h];p&&f.removeEventListener(h.slice(2).toLowerCase(),p)}),s.value=void 0}}),t({triggerRef:s}),(f,h)=>f.virtualTriggering?te("v-if",!0):(k(),ne(i(G_),ht({key:0},f.$attrs,{"aria-controls":i(r),"aria-describedby":i(l),"aria-expanded":i(u),"aria-haspopup":i(a)}),{default:W(()=>[ie(f.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}});var HL=xe(VL,[["__file","trigger.vue"]]);const ip="focus-trap.focus-after-trapped",up="focus-trap.focus-after-released",zL="focus-trap.focusout-prevented",ob={cancelable:!0,bubbles:!1},KL={cancelable:!0,bubbles:!1},sb="focusAfterTrapped",rb="focusAfterReleased",Nm=Symbol("elFocusTrap"),Pm=R(),df=R(0),Am=R(0);let ju=0;const J_=e=>{const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const s=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||s?NodeFilter.FILTER_SKIP:o.tabIndex>=0||o===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t},lb=(e,t)=>{for(const n of e)if(!WL(n,t))return n},WL=(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},jL=e=>{const t=J_(e),n=lb(t,e),o=lb(t.reverse(),e);return[n,o]},UL=e=>e instanceof HTMLInputElement&&"select"in e,Ps=(e,t)=>{if(e&&e.focus){const n=document.activeElement;let o=!1;Qn(e)&&!id(e)&&!e.getAttribute("tabindex")&&(e.setAttribute("tabindex","-1"),o=!0),e.focus({preventScroll:!0}),Am.value=window.performance.now(),e!==n&&UL(e)&&t&&e.select(),Qn(e)&&o&&e.removeAttribute("tabindex")}};function ab(e,t){const n=[...e],o=e.indexOf(t);return o!==-1&&n.splice(o,1),n}const YL=()=>{let e=[];return{push:o=>{const s=e[0];s&&o!==s&&s.pause(),e=ab(e,o),e.unshift(o)},remove:o=>{var s,r;e=ab(e,o),(r=(s=e[0])==null?void 0:s.resume)==null||r.call(s)}}},qL=(e,t=!1)=>{const n=document.activeElement;for(const o of e)if(Ps(o,t),document.activeElement!==n)return},ib=YL(),GL=()=>df.value>Am.value,Uu=()=>{Pm.value="pointer",df.value=window.performance.now()},ub=()=>{Pm.value="keyboard",df.value=window.performance.now()},XL=()=>(et(()=>{ju===0&&(document.addEventListener("mousedown",Uu),document.addEventListener("touchstart",Uu),document.addEventListener("keydown",ub)),ju++}),Rt(()=>{ju--,ju<=0&&(document.removeEventListener("mousedown",Uu),document.removeEventListener("touchstart",Uu),document.removeEventListener("keydown",ub))}),{focusReason:Pm,lastUserFocusTimestamp:df,lastAutomatedFocusTimestamp:Am}),Yu=e=>new CustomEvent(zL,{...KL,detail:e}),Le={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"};let Ll=[];const cb=e=>{e.code===Le.esc&&Ll.forEach(t=>t(e))},JL=e=>{et(()=>{Ll.length===0&&document.addEventListener("keydown",cb),Ct&&Ll.push(e)}),Rt(()=>{Ll=Ll.filter(t=>t!==e),Ll.length===0&&Ct&&document.removeEventListener("keydown",cb)})},ZL=J({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[sb,rb,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const n=R();let o,s;const{focusReason:r}=XL();JL(m=>{e.trapped&&!l.paused&&t("release-requested",m)});const l={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},a=m=>{if(!e.loop&&!e.trapped||l.paused)return;const{code:v,altKey:g,ctrlKey:y,metaKey:S,currentTarget:w,shiftKey:b}=m,{loop:C}=e,_=v===Le.tab&&!g&&!y&&!S,x=document.activeElement;if(_&&x){const T=w,[$,I]=jL(T);if($&&I){if(!b&&x===I){const P=Yu({focusReason:r.value});t("focusout-prevented",P),P.defaultPrevented||(m.preventDefault(),C&&Ps($,!0))}else if(b&&[$,T].includes(x)){const P=Yu({focusReason:r.value});t("focusout-prevented",P),P.defaultPrevented||(m.preventDefault(),C&&Ps(I,!0))}}else if(x===T){const P=Yu({focusReason:r.value});t("focusout-prevented",P),P.defaultPrevented||m.preventDefault()}}};gt(Nm,{focusTrapRef:n,onKeydown:a}),ge(()=>e.focusTrapEl,m=>{m&&(n.value=m)},{immediate:!0}),ge([n],([m],[v])=>{m&&(m.addEventListener("keydown",a),m.addEventListener("focusin",d),m.addEventListener("focusout",f)),v&&(v.removeEventListener("keydown",a),v.removeEventListener("focusin",d),v.removeEventListener("focusout",f))});const u=m=>{t(sb,m)},c=m=>t(rb,m),d=m=>{const v=i(n);if(!v)return;const g=m.target,y=m.relatedTarget,S=g&&v.contains(g);e.trapped||y&&v.contains(y)||(o=y),S&&t("focusin",m),!l.paused&&e.trapped&&(S?s=g:Ps(s,!0))},f=m=>{const v=i(n);if(!(l.paused||!v))if(e.trapped){const g=m.relatedTarget;!gn(g)&&!v.contains(g)&&setTimeout(()=>{if(!l.paused&&e.trapped){const y=Yu({focusReason:r.value});t("focusout-prevented",y),y.defaultPrevented||Ps(s,!0)}},0)}else{const g=m.target;g&&v.contains(g)||t("focusout",m)}};async function h(){await ze();const m=i(n);if(m){ib.push(l);const v=m.contains(document.activeElement)?o:document.activeElement;if(o=v,!m.contains(v)){const y=new Event(ip,ob);m.addEventListener(ip,u),m.dispatchEvent(y),y.defaultPrevented||ze(()=>{let S=e.focusStartEl;Ke(S)||(Ps(S),document.activeElement!==S&&(S="first")),S==="first"&&qL(J_(m),!0),(document.activeElement===v||S==="container")&&Ps(m)})}}}function p(){const m=i(n);if(m){m.removeEventListener(ip,u);const v=new CustomEvent(up,{...ob,detail:{focusReason:r.value}});m.addEventListener(up,c),m.dispatchEvent(v),!v.defaultPrevented&&(r.value=="keyboard"||!GL()||m.contains(document.activeElement))&&Ps(o??document.body),m.removeEventListener(up,c),ib.remove(l)}}return et(()=>{e.trapped&&h(),ge(()=>e.trapped,m=>{m?h():p()})}),Rt(()=>{e.trapped&&p(),n.value&&(n.value.removeEventListener("keydown",a),n.value.removeEventListener("focusin",d),n.value.removeEventListener("focusout",f),n.value=void 0)}),{onKeydown:a}}});function QL(e,t,n,o,s,r){return ie(e.$slots,"default",{handleKeydown:e.onKeydown})}var Pa=xe(ZL,[["render",QL],["__file","focus-trap.vue"]]),uo="top",No="bottom",Po="right",co="left",Lm="auto",Su=[uo,No,Po,co],aa="start",Ki="end",e6="clippingParents",Z_="viewport",qa="popper",t6="reference",db=Su.reduce(function(e,t){return e.concat([t+"-"+aa,t+"-"+Ki])},[]),Qs=[].concat(Su,[Lm]).reduce(function(e,t){return e.concat([t,t+"-"+aa,t+"-"+Ki])},[]),n6="beforeRead",o6="read",s6="afterRead",r6="beforeMain",l6="main",a6="afterMain",i6="beforeWrite",u6="write",c6="afterWrite",d6=[n6,o6,s6,r6,l6,a6,i6,u6,c6];function ks(e){return e?(e.nodeName||"").toLowerCase():null}function ss(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ia(e){var t=ss(e).Element;return e instanceof t||e instanceof Element}function Mo(e){var t=ss(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Dm(e){if(typeof ShadowRoot>"u")return!1;var t=ss(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function f6(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var o=t.styles[n]||{},s=t.attributes[n]||{},r=t.elements[n];!Mo(r)||!ks(r)||(Object.assign(r.style,o),Object.keys(s).forEach(function(l){var a=s[l];a===!1?r.removeAttribute(l):r.setAttribute(l,a===!0?"":a)}))})}function p6(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 s=t.elements[o],r=t.attributes[o]||{},l=Object.keys(t.styles.hasOwnProperty(o)?t.styles[o]:n[o]),a=l.reduce(function(u,c){return u[c]="",u},{});!Mo(s)||!ks(s)||(Object.assign(s.style,a),Object.keys(r).forEach(function(u){s.removeAttribute(u)}))})}}var Q_={name:"applyStyles",enabled:!0,phase:"write",fn:f6,effect:p6,requires:["computeStyles"]};function gs(e){return e.split("-")[0]}var rl=Math.max,ud=Math.min,ua=Math.round;function ca(e,t){t===void 0&&(t=!1);var n=e.getBoundingClientRect(),o=1,s=1;if(Mo(e)&&t){var r=e.offsetHeight,l=e.offsetWidth;l>0&&(o=ua(n.width)/l||1),r>0&&(s=ua(n.height)/r||1)}return{width:n.width/o,height:n.height/s,top:n.top/s,right:n.right/o,bottom:n.bottom/s,left:n.left/o,x:n.left/o,y:n.top/s}}function Bm(e){var t=ca(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 e2(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Dm(n)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function Ks(e){return ss(e).getComputedStyle(e)}function h6(e){return["table","td","th"].indexOf(ks(e))>=0}function Lr(e){return((ia(e)?e.ownerDocument:e.document)||window.document).documentElement}function ff(e){return ks(e)==="html"?e:e.assignedSlot||e.parentNode||(Dm(e)?e.host:null)||Lr(e)}function fb(e){return!Mo(e)||Ks(e).position==="fixed"?null:e.offsetParent}function v6(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&Mo(e)){var o=Ks(e);if(o.position==="fixed")return null}var s=ff(e);for(Dm(s)&&(s=s.host);Mo(s)&&["html","body"].indexOf(ks(s))<0;){var r=Ks(s);if(r.transform!=="none"||r.perspective!=="none"||r.contain==="paint"||["transform","perspective"].indexOf(r.willChange)!==-1||t&&r.willChange==="filter"||t&&r.filter&&r.filter!=="none")return s;s=s.parentNode}return null}function _u(e){for(var t=ss(e),n=fb(e);n&&h6(n)&&Ks(n).position==="static";)n=fb(n);return n&&(ks(n)==="html"||ks(n)==="body"&&Ks(n).position==="static")?t:n||v6(e)||t}function Fm(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Ci(e,t,n){return rl(e,ud(t,n))}function m6(e,t,n){var o=Ci(e,t,n);return o>n?n:o}function t2(){return{top:0,right:0,bottom:0,left:0}}function n2(e){return Object.assign({},t2(),e)}function o2(e,t){return t.reduce(function(n,o){return n[o]=e,n},{})}var g6=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,n2(typeof e!="number"?e:o2(e,Su))};function y6(e){var t,n=e.state,o=e.name,s=e.options,r=n.elements.arrow,l=n.modifiersData.popperOffsets,a=gs(n.placement),u=Fm(a),c=[co,Po].indexOf(a)>=0,d=c?"height":"width";if(!(!r||!l)){var f=g6(s.padding,n),h=Bm(r),p=u==="y"?uo:co,m=u==="y"?No:Po,v=n.rects.reference[d]+n.rects.reference[u]-l[u]-n.rects.popper[d],g=l[u]-n.rects.reference[u],y=_u(r),S=y?u==="y"?y.clientHeight||0:y.clientWidth||0:0,w=v/2-g/2,b=f[p],C=S-h[d]-f[m],_=S/2-h[d]/2+w,x=Ci(b,_,C),T=u;n.modifiersData[o]=(t={},t[T]=x,t.centerOffset=x-_,t)}}function b6(e){var t=e.state,n=e.options,o=n.element,s=o===void 0?"[data-popper-arrow]":o;s!=null&&(typeof s=="string"&&(s=t.elements.popper.querySelector(s),!s)||!e2(t.elements.popper,s)||(t.elements.arrow=s))}var w6={name:"arrow",enabled:!0,phase:"main",fn:y6,effect:b6,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function da(e){return e.split("-")[1]}var C6={top:"auto",right:"auto",bottom:"auto",left:"auto"};function S6(e){var t=e.x,n=e.y,o=window,s=o.devicePixelRatio||1;return{x:ua(t*s)/s||0,y:ua(n*s)/s||0}}function pb(e){var t,n=e.popper,o=e.popperRect,s=e.placement,r=e.variation,l=e.offsets,a=e.position,u=e.gpuAcceleration,c=e.adaptive,d=e.roundOffsets,f=e.isFixed,h=l.x,p=h===void 0?0:h,m=l.y,v=m===void 0?0:m,g=typeof d=="function"?d({x:p,y:v}):{x:p,y:v};p=g.x,v=g.y;var y=l.hasOwnProperty("x"),S=l.hasOwnProperty("y"),w=co,b=uo,C=window;if(c){var _=_u(n),x="clientHeight",T="clientWidth";if(_===ss(n)&&(_=Lr(n),Ks(_).position!=="static"&&a==="absolute"&&(x="scrollHeight",T="scrollWidth")),_=_,s===uo||(s===co||s===Po)&&r===Ki){b=No;var $=f&&_===C&&C.visualViewport?C.visualViewport.height:_[x];v-=$-o.height,v*=u?1:-1}if(s===co||(s===uo||s===No)&&r===Ki){w=Po;var I=f&&_===C&&C.visualViewport?C.visualViewport.width:_[T];p-=I-o.width,p*=u?1:-1}}var A=Object.assign({position:a},c&&C6),P=d===!0?S6({x:p,y:v}):{x:p,y:v};if(p=P.x,v=P.y,u){var j;return Object.assign({},A,(j={},j[b]=S?"0":"",j[w]=y?"0":"",j.transform=(C.devicePixelRatio||1)<=1?"translate("+p+"px, "+v+"px)":"translate3d("+p+"px, "+v+"px, 0)",j))}return Object.assign({},A,(t={},t[b]=S?v+"px":"",t[w]=y?p+"px":"",t.transform="",t))}function _6(e){var t=e.state,n=e.options,o=n.gpuAcceleration,s=o===void 0?!0:o,r=n.adaptive,l=r===void 0?!0:r,a=n.roundOffsets,u=a===void 0?!0:a,c={placement:gs(t.placement),variation:da(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:s,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,pb(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:l,roundOffsets:u})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,pb(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var s2={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:_6,data:{}},qu={passive:!0};function k6(e){var t=e.state,n=e.instance,o=e.options,s=o.scroll,r=s===void 0?!0:s,l=o.resize,a=l===void 0?!0:l,u=ss(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return r&&c.forEach(function(d){d.addEventListener("scroll",n.update,qu)}),a&&u.addEventListener("resize",n.update,qu),function(){r&&c.forEach(function(d){d.removeEventListener("scroll",n.update,qu)}),a&&u.removeEventListener("resize",n.update,qu)}}var r2={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:k6,data:{}},E6={left:"right",right:"left",bottom:"top",top:"bottom"};function fc(e){return e.replace(/left|right|bottom|top/g,function(t){return E6[t]})}var $6={start:"end",end:"start"};function hb(e){return e.replace(/start|end/g,function(t){return $6[t]})}function Vm(e){var t=ss(e),n=t.pageXOffset,o=t.pageYOffset;return{scrollLeft:n,scrollTop:o}}function Hm(e){return ca(Lr(e)).left+Vm(e).scrollLeft}function T6(e){var t=ss(e),n=Lr(e),o=t.visualViewport,s=n.clientWidth,r=n.clientHeight,l=0,a=0;return o&&(s=o.width,r=o.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(l=o.offsetLeft,a=o.offsetTop)),{width:s,height:r,x:l+Hm(e),y:a}}function x6(e){var t,n=Lr(e),o=Vm(e),s=(t=e.ownerDocument)==null?void 0:t.body,r=rl(n.scrollWidth,n.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),l=rl(n.scrollHeight,n.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),a=-o.scrollLeft+Hm(e),u=-o.scrollTop;return Ks(s||n).direction==="rtl"&&(a+=rl(n.clientWidth,s?s.clientWidth:0)-r),{width:r,height:l,x:a,y:u}}function zm(e){var t=Ks(e),n=t.overflow,o=t.overflowX,s=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+s+o)}function l2(e){return["html","body","#document"].indexOf(ks(e))>=0?e.ownerDocument.body:Mo(e)&&zm(e)?e:l2(ff(e))}function Si(e,t){var n;t===void 0&&(t=[]);var o=l2(e),s=o===((n=e.ownerDocument)==null?void 0:n.body),r=ss(o),l=s?[r].concat(r.visualViewport||[],zm(o)?o:[]):o,a=t.concat(l);return s?a:a.concat(Si(ff(l)))}function hh(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function O6(e){var t=ca(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 vb(e,t){return t===Z_?hh(T6(e)):ia(t)?O6(t):hh(x6(Lr(e)))}function I6(e){var t=Si(ff(e)),n=["absolute","fixed"].indexOf(Ks(e).position)>=0,o=n&&Mo(e)?_u(e):e;return ia(o)?t.filter(function(s){return ia(s)&&e2(s,o)&&ks(s)!=="body"}):[]}function M6(e,t,n){var o=t==="clippingParents"?I6(e):[].concat(t),s=[].concat(o,[n]),r=s[0],l=s.reduce(function(a,u){var c=vb(e,u);return a.top=rl(c.top,a.top),a.right=ud(c.right,a.right),a.bottom=ud(c.bottom,a.bottom),a.left=rl(c.left,a.left),a},vb(e,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function a2(e){var t=e.reference,n=e.element,o=e.placement,s=o?gs(o):null,r=o?da(o):null,l=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,u;switch(s){case uo:u={x:l,y:t.y-n.height};break;case No:u={x:l,y:t.y+t.height};break;case Po:u={x:t.x+t.width,y:a};break;case co:u={x:t.x-n.width,y:a};break;default:u={x:t.x,y:t.y}}var c=s?Fm(s):null;if(c!=null){var d=c==="y"?"height":"width";switch(r){case aa:u[c]=u[c]-(t[d]/2-n[d]/2);break;case Ki:u[c]=u[c]+(t[d]/2-n[d]/2);break}}return u}function Wi(e,t){t===void 0&&(t={});var n=t,o=n.placement,s=o===void 0?e.placement:o,r=n.boundary,l=r===void 0?e6:r,a=n.rootBoundary,u=a===void 0?Z_:a,c=n.elementContext,d=c===void 0?qa:c,f=n.altBoundary,h=f===void 0?!1:f,p=n.padding,m=p===void 0?0:p,v=n2(typeof m!="number"?m:o2(m,Su)),g=d===qa?t6:qa,y=e.rects.popper,S=e.elements[h?g:d],w=M6(ia(S)?S:S.contextElement||Lr(e.elements.popper),l,u),b=ca(e.elements.reference),C=a2({reference:b,element:y,placement:s}),_=hh(Object.assign({},y,C)),x=d===qa?_:b,T={top:w.top-x.top+v.top,bottom:x.bottom-w.bottom+v.bottom,left:w.left-x.left+v.left,right:x.right-w.right+v.right},$=e.modifiersData.offset;if(d===qa&&$){var I=$[s];Object.keys(T).forEach(function(A){var P=[Po,No].indexOf(A)>=0?1:-1,j=[uo,No].indexOf(A)>=0?"y":"x";T[A]+=I[j]*P})}return T}function R6(e,t){t===void 0&&(t={});var n=t,o=n.placement,s=n.boundary,r=n.rootBoundary,l=n.padding,a=n.flipVariations,u=n.allowedAutoPlacements,c=u===void 0?Qs:u,d=da(o),f=d?a?db:db.filter(function(m){return da(m)===d}):Su,h=f.filter(function(m){return c.indexOf(m)>=0});h.length===0&&(h=f);var p=h.reduce(function(m,v){return m[v]=Wi(e,{placement:v,boundary:s,rootBoundary:r,padding:l})[gs(v)],m},{});return Object.keys(p).sort(function(m,v){return p[m]-p[v]})}function N6(e){if(gs(e)===Lm)return[];var t=fc(e);return[hb(e),t,hb(t)]}function P6(e){var t=e.state,n=e.options,o=e.name;if(!t.modifiersData[o]._skip){for(var s=n.mainAxis,r=s===void 0?!0:s,l=n.altAxis,a=l===void 0?!0:l,u=n.fallbackPlacements,c=n.padding,d=n.boundary,f=n.rootBoundary,h=n.altBoundary,p=n.flipVariations,m=p===void 0?!0:p,v=n.allowedAutoPlacements,g=t.options.placement,y=gs(g),S=y===g,w=u||(S||!m?[fc(g)]:N6(g)),b=[g].concat(w).reduce(function(se,de){return se.concat(gs(de)===Lm?R6(t,{placement:de,boundary:d,rootBoundary:f,padding:c,flipVariations:m,allowedAutoPlacements:v}):de)},[]),C=t.rects.reference,_=t.rects.popper,x=new Map,T=!0,$=b[0],I=0;I-1}function SN(e,t){var n=this.__data__,o=Zd(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}function Gs(e){var t=-1,n=e==null?0:e.length;for(this.clear();++ta))return!1;var c=r.get(e),d=r.get(t);if(c&&d)return c==t&&d==e;var f=-1,h=!0,p=n&_4?new Hi:void 0;for(r.set(e,t),r.set(t,e);++f=t||x<0||f&&T>=r}function y(){var _=lp();if(g(_))return S(_);a=setTimeout(y,v(_))}function S(_){return a=void 0,h&&o?p(_):(o=s=void 0,l)}function w(){a!==void 0&&clearTimeout(a),c=0,o=u=s=a=void 0}function b(){return a===void 0?l:S(lp())}function C(){var _=lp(),x=g(_);if(o=arguments,s=this,u=_,x){if(a===void 0)return m(u);if(f)return clearTimeout(a),a=setTimeout(y,t),p(u)}return a===void 0&&(a=setTimeout(y,t)),l}return C.cancel=w,C.flush=b,C}function ch(e,t,n){(n!==void 0&&!pu(e[t],n)||n===void 0&&!(t in e))&&lm(e,t,n)}function c_(e){return Cs(e)&&Oa(e)}function dh(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function fA(e){return xa(e,vu(e))}function pA(e,t,n,o,s,r,l){var a=dh(e,n),u=dh(t,n),c=l.get(u);if(c){ch(e,n,c);return}var d=r?r(a,u,n+"",e,t,l):void 0,f=d===void 0;if(f){var h=no(u),p=!h&&Bi(u),m=!h&&!p&&dm(u);d=u,h||p||m?no(a)?d=a:c_(a)?d=RS(a):p?(f=!1,d=YS(u,!0)):m?(f=!1,d=ZS(u,!0)):d=[]:jS(u)||Di(u)?(d=a,Di(a)?d=fA(a):(!oo(a)||rm(a))&&(d=QS(u))):f=!1}f&&(l.set(u,d),s(d,u,o,r,l),l.delete(u)),ch(e,n,d)}function d_(e,t,n,o,s){e!==t&&u_(t,function(r,l){if(s||(s=new Uo),oo(r))pA(e,t,l,n,d_,o,s);else{var a=o?o(dh(e,l),r,l+"",e,t,s):void 0;a===void 0&&(a=r),ch(e,l,a)}},vu)}function hA(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}function f_(e,t,n){var o=e==null?0:e.length;if(!o)return-1;var s=o-1;return PS(e,i_(t),s,!0)}function vA(e,t){var n=-1,o=Oa(e)?Array(e.length):[];return iA(e,function(s,r,l){o[++n]=t(s,r,l)}),o}function mA(e,t){var n=no(e)?om:vA;return n(e,i_(t))}function gA(e,t){return mu(mA(e,t),1)}var yA=1/0;function bA(e){var t=e==null?0:e.length;return t?mu(e,yA):[]}function zi(e){for(var t=-1,n=e==null?0:e.length,o={};++t{l&&(clearTimeout(l),l=null)},v=()=>{u.value&&(u.value.innerHTML="",m())};return{ns:n,panel:a,hoverZone:u,isEmpty:c,isLoading:d,menuId:f,t:o,handleExpand:h,handleMouseMove:p,clearHoverZone:v}}});function hV(e,t,n,o,s,r){const l=Oe("el-cascader-node"),a=Oe("loading"),u=Oe("el-icon"),c=Oe("el-scrollbar");return k(),ne(c,{key:e.menuId,tag:"ul",role:"menu",class:M(e.ns.b()),"wrap-class":e.ns.e("wrap"),"view-class":[e.ns.e("list"),e.ns.is("empty",e.isEmpty)],onMousemove:e.handleMouseMove,onMouseleave:e.clearHoverZone},{default:W(()=>{var d;return[(k(!0),F(De,null,it(e.nodes,f=>(k(),ne(l,{key:f.uid,node:f,"menu-id":e.menuId,onExpand:e.handleExpand},null,8,["node","menu-id","onExpand"]))),128)),e.isLoading?(k(),F("div",{key:0,class:M(e.ns.e("empty-text"))},[L(u,{size:"14",class:M(e.ns.is("loading"))},{default:W(()=>[L(a)]),_:1},8,["class"]),Fe(" "+he(e.t("el.cascader.loading")),1)],2)):e.isEmpty?(k(),F("div",{key:1,class:M(e.ns.e("empty-text"))},[ie(e.$slots,"empty",{},()=>[Fe(he(e.t("el.cascader.noData")),1)])],2)):(d=e.panel)!=null&&d.isHoverMenu?(k(),F(De,{key:2},[te(" eslint-disable-next-line vue/html-self-closing "),(k(),F("svg",{ref:"hoverZone",class:M(e.ns.e("hover-zone"))},null,2))],2112)):te("v-if",!0)]}),_:3},8,["class","wrap-class","view-class","onMousemove","onMouseleave"])}var vV=xe(pV,[["render",hV],["__file","menu.vue"]]);const Um=(e="")=>e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d"),vs=e=>iu(e);let mV=0;const gV=e=>{const t=[e];let{parent:n}=e;for(;n;)t.unshift(n),n=n.parent;return t};let wh=class Ch{constructor(t,n,o,s=!1){this.data=t,this.config=n,this.parent=o,this.root=s,this.uid=mV++,this.checked=!1,this.indeterminate=!1,this.loading=!1;const{value:r,label:l,children:a}=n,u=t[a],c=gV(this);this.level=s?0:o?o.level+1:1,this.value=t[r],this.label=t[l],this.pathNodes=c,this.pathValues=c.map(d=>d.value),this.pathLabels=c.map(d=>d.label),this.childrenData=u,this.children=(u||[]).map(d=>new Ch(d,n,this)),this.loaded=!n.lazy||this.isLeaf||!mo(u)}get isDisabled(){const{data:t,parent:n,config:o}=this,{disabled:s,checkStrictly:r}=o;return(Ue(s)?s(t,this):!!t[s])||!r&&n?.isDisabled}get isLeaf(){const{data:t,config:n,childrenData:o,loaded:s}=this,{lazy:r,leaf:l}=n,a=Ue(l)?l(t,this):t[l];return $t(a)?r&&!s?!1:!(ke(o)&&o.length):!!a}get valueByOption(){return this.config.emitPath?this.pathValues:this.value}appendChild(t){const{childrenData:n,children:o}=this,s=new Ch(t,this.config,this);return ke(n)?n.push(t):this.childrenData=[t],o.push(s),s}calcText(t,n){const o=t?this.pathLabels.join(n):this.label;return this.text=o,o}broadcast(t,...n){const o=`onParent${vs(t)}`;this.children.forEach(s=>{s&&(s.broadcast(t,...n),s[o]&&s[o](...n))})}emit(t,...n){const{parent:o}=this,s=`onChild${vs(t)}`;o&&(o[s]&&o[s](...n),o.emit(t,...n))}onParentCheck(t){this.isDisabled||this.setCheckState(t)}onChildCheck(){const{children:t}=this,n=t.filter(s=>!s.isDisabled),o=n.length?n.every(s=>s.checked):!1;this.setCheckState(o)}setCheckState(t){const n=this.children.length,o=this.children.reduce((s,r)=>{const l=r.checked?1:r.indeterminate?.5:0;return s+l},0);this.checked=this.loaded&&this.children.filter(s=>!s.isDisabled).every(s=>s.loaded&&s.checked)&&t,this.indeterminate=this.loaded&&o!==n&&o>0}doCheck(t){if(this.checked===t)return;const{checkStrictly:n,multiple:o}=this.config;n||!o?this.checked=t:(this.broadcast("check",t),this.setCheckState(t),this.emit("check"))}};const Sh=(e,t)=>e.reduce((n,o)=>(o.isLeaf?n.push(o):(!t&&n.push(o),n=n.concat(Sh(o.children,t))),n),[]);class Pb{constructor(t,n){this.config=n;const o=(t||[]).map(s=>new wh(s,this.config));this.nodes=o,this.allNodes=Sh(o,!1),this.leafNodes=Sh(o,!0)}getNodes(){return this.nodes}getFlattedNodes(t){return t?this.leafNodes:this.allNodes}appendNode(t,n){const o=n?n.appendChild(t):new wh(t,this.config);n||this.nodes.push(o),this.appendAllNodesAndLeafNodes(o)}appendNodes(t,n){t.forEach(o=>this.appendNode(o,n))}appendAllNodesAndLeafNodes(t){this.allNodes.push(t),t.isLeaf&&this.leafNodes.push(t),t.children&&t.children.forEach(n=>{this.appendAllNodesAndLeafNodes(n)})}getNodeByValue(t,n=!1){return!t&&t!==0?null:this.getFlattedNodes(n).find(s=>Sn(s.value,t)||Sn(s.pathValues,t))||null}getSameNode(t){return t&&this.getFlattedNodes(!1).find(({value:o,level:s})=>Sn(t.value,o)&&t.level===s)||null}}const H2=Te({modelValue:{type:re([Number,String,Array])},options:{type:re(Array),default:()=>[]},props:{type:re(Object),default:()=>({})}}),yV={expandTrigger:"click",multiple:!1,checkStrictly:!1,emitPath:!0,lazy:!1,lazyLoad:Mt,value:"value",label:"label",children:"children",leaf:"leaf",disabled:"disabled",hoverThreshold:500},bV=e=>E(()=>({...yV,...e.props})),Ab=e=>{if(!e)return 0;const t=e.id.split("-");return Number(t[t.length-2])},wV=e=>{if(!e)return;const t=e.querySelector("input");t?t.click():Y_(e)&&e.click()},CV=(e,t)=>{const n=t.slice(0),o=n.map(r=>r.uid),s=e.reduce((r,l)=>{const a=o.indexOf(l.uid);return a>-1&&(r.push(l),n.splice(a,1),o.splice(a,1)),r},[]);return s.push(...n),s},Lb=e=>[...new Set(e)],Jn=e=>!e&&e!==0?[]:ke(e)?e:[e],SV=J({name:"ElCascaderPanel",components:{ElCascaderMenu:vV},props:{...H2,border:{type:Boolean,default:!0},renderLabel:Function},emits:[Qe,vt,"close","expand-change"],setup(e,{emit:t,slots:n}){let o=!1;const s=Se("cascader"),r=bV(e);let l=null;const a=R(!0),u=R([]),c=R(null),d=R([]),f=R(null),h=R([]),p=E(()=>r.value.expandTrigger==="hover"),m=E(()=>e.renderLabel||n.default),v=()=>{const{options:P}=e,j=r.value;o=!1,l=new Pb(P,j),d.value=[l.getNodes()],j.lazy&&mo(e.options)?(a.value=!1,g(void 0,q=>{q&&(l=new Pb(q,j),d.value=[l.getNodes()]),a.value=!0,T(!1,!0)})):T(!1,!0)},g=(P,j)=>{const q=r.value;P=P||new wh({},q,void 0,!0),P.loading=!0;const K=N=>{const V=P,z=V.root?null:V;N&&l?.appendNodes(N,z),V.loading=!1,V.loaded=!0,V.childrenData=V.childrenData||[],j&&j(N)};q.lazyLoad(P,K)},y=(P,j)=>{var q;const{level:K}=P,N=d.value.slice(0,K);let V;P.isLeaf?V=P.pathNodes[K-2]:(V=P,N.push(P.children)),((q=f.value)==null?void 0:q.uid)!==V?.uid&&(f.value=P,d.value=N,!j&&t("expand-change",P?.pathValues||[]))},S=(P,j,q=!0)=>{const{checkStrictly:K,multiple:N}=r.value,V=h.value[0];o=!0,!N&&V?.doCheck(!1),P.doCheck(j),x(),q&&!N&&!K&&t("close"),!q&&!N&&!K&&w(P)},w=P=>{P&&(P=P.parent,w(P),P&&y(P))},b=P=>l?.getFlattedNodes(P),C=P=>{var j;return(j=b(P))==null?void 0:j.filter(q=>q.checked!==!1)},_=()=>{h.value.forEach(P=>P.doCheck(!1)),x(),d.value=d.value.slice(0,1),f.value=null,t("expand-change",[])},x=()=>{var P;const{checkStrictly:j,multiple:q}=r.value,K=h.value,N=C(!j),V=CV(K,N),z=V.map(B=>B.valueByOption);h.value=V,c.value=q?z:(P=z[0])!=null?P:null},T=(P=!1,j=!1)=>{const{modelValue:q}=e,{lazy:K,multiple:N,checkStrictly:V}=r.value,z=!V;if(!(!a.value||o||!j&&Sn(q,c.value)))if(K&&!P){const G=Lb(bA(Jn(q))).map(Z=>l?.getNodeByValue(Z)).filter(Z=>!!Z&&!Z.loaded&&!Z.loading);G.length?G.forEach(Z=>{g(Z,()=>T(!1,j))}):T(!0,j)}else{const B=N?Jn(q):[q],G=Lb(B.map(Z=>l?.getNodeByValue(Z,z)));$(G,j),c.value=rd(q)}},$=(P,j=!0)=>{const{checkStrictly:q}=r.value,K=h.value,N=P.filter(B=>!!B&&(q||B.isLeaf)),V=l?.getSameNode(f.value),z=j&&V||N[0];z?z.pathNodes.forEach(B=>y(B,!0)):f.value=null,K.forEach(B=>B.doCheck(!1)),ft(N).forEach(B=>B.doCheck(!0)),h.value=N,ze(I)},I=()=>{Ct&&u.value.forEach(P=>{const j=P?.$el;if(j){const q=j.querySelector(`.${s.namespace.value}-scrollbar__wrap`),K=j.querySelector(`.${s.b("node")}.${s.is("active")}`)||j.querySelector(`.${s.b("node")}.in-active-path`);Sm(q,K)}})},A=P=>{const j=P.target,{code:q}=P;switch(q){case Le.up:case Le.down:{P.preventDefault();const K=q===Le.up?-1:1;dc(q_(j,K,`.${s.b("node")}[tabindex="-1"]`));break}case Le.left:{P.preventDefault();const K=u.value[Ab(j)-1],N=K?.$el.querySelector(`.${s.b("node")}[aria-expanded="true"]`);dc(N);break}case Le.right:{P.preventDefault();const K=u.value[Ab(j)+1],N=K?.$el.querySelector(`.${s.b("node")}[tabindex="-1"]`);dc(N);break}case Le.enter:case Le.numpadEnter:wV(j);break}};return gt(jm,ft({config:r,expandingNode:f,checkedNodes:h,isHoverMenu:p,initialLoaded:a,renderLabelFn:m,lazyLoad:g,expandNode:y,handleCheckChange:S})),ge([r,()=>e.options],v,{deep:!0,immediate:!0}),ge(()=>e.modelValue,()=>{o=!1,T()},{deep:!0}),ge(()=>c.value,P=>{Sn(P,e.modelValue)||(t(Qe,P),t(vt,P))}),Uv(()=>u.value=[]),et(()=>!mo(e.modelValue)&&T()),{ns:s,menuList:u,menus:d,checkedNodes:h,handleKeyDown:A,handleCheckChange:S,getFlattedNodes:b,getCheckedNodes:C,clearCheckedNodes:_,calculateCheckedValue:x,scrollToExpandingNode:I}}});function _V(e,t,n,o,s,r){const l=Oe("el-cascader-menu");return k(),F("div",{class:M([e.ns.b("panel"),e.ns.is("bordered",e.border)]),onKeydown:e.handleKeyDown},[(k(!0),F(De,null,it(e.menus,(a,u)=>(k(),ne(l,{key:u,ref_for:!0,ref:c=>e.menuList[u]=c,index:u,nodes:[...a]},{empty:W(()=>[ie(e.$slots,"empty")]),_:2},1032,["index","nodes"]))),128))],42,["onKeydown"])}var kV=xe(SV,[["render",_V],["__file","index.vue"]]);const z2=lt(kV),Ws=Te({type:{type:String,values:["primary","success","info","warning","danger"],default:"primary"},closable:Boolean,disableTransitions:Boolean,hit:Boolean,color:String,size:{type:String,values:$s},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),EV={close:e=>e instanceof MouseEvent,click:e=>e instanceof MouseEvent},$V=J({name:"ElTag"}),TV=J({...$V,props:Ws,emits:EV,setup(e,{emit:t}){const n=e,o=rn(),s=Se("tag"),r=E(()=>{const{type:c,hit:d,effect:f,closable:h,round:p}=n;return[s.b(),s.is("closable",h),s.m(c||"primary"),s.m(o.value),s.m(f),s.is("hit",d),s.is("round",p)]}),l=c=>{t("close",c)},a=c=>{t("click",c)},u=c=>{var d,f,h;(h=(f=(d=c?.component)==null?void 0:d.subTree)==null?void 0:f.component)!=null&&h.bum&&(c.component.subTree.component.bum=null)};return(c,d)=>c.disableTransitions?(k(),F("span",{key:0,class:M(i(r)),style:Ve({backgroundColor:c.color}),onClick:a},[O("span",{class:M(i(s).e("content"))},[ie(c.$slots,"default")],2),c.closable?(k(),ne(i(He),{key:0,class:M(i(s).e("close")),onClick:qe(l,["stop"])},{default:W(()=>[L(i(Zo))]),_:1},8,["class","onClick"])):te("v-if",!0)],6)):(k(),ne($n,{key:1,name:`${i(s).namespace.value}-zoom-in-center`,appear:"",onVnodeMounted:u},{default:W(()=>[O("span",{class:M(i(r)),style:Ve({backgroundColor:c.color}),onClick:a},[O("span",{class:M(i(s).e("content"))},[ie(c.$slots,"default")],2),c.closable?(k(),ne(i(He),{key:0,class:M(i(s).e("close")),onClick:qe(l,["stop"])},{default:W(()=>[L(i(Zo))]),_:1},8,["class","onClick"])):te("v-if",!0)],6)]),_:3},8,["name"]))}});var xV=xe(TV,[["__file","tag.vue"]]);const fa=lt(xV),OV=Te({...H2,size:cn,placeholder:String,disabled:Boolean,clearable:Boolean,filterable:Boolean,filterMethod:{type:re(Function),default:(e,t)=>e.text.includes(t)},separator:{type:String,default:" / "},showAllLevels:{type:Boolean,default:!0},collapseTags:Boolean,maxCollapseTags:{type:Number,default:1},collapseTagsTooltip:{type:Boolean,default:!1},debounce:{type:Number,default:300},beforeFilter:{type:re(Function),default:()=>!0},placement:{type:re(String),values:Qs,default:"bottom-start"},fallbackPlacements:{type:re(Array),default:["bottom-start","bottom","top-start","top","right","left"]},popperClass:{type:String,default:""},teleported:wn.teleported,tagType:{...Ws.type,default:"info"},tagEffect:{...Ws.effect,default:"light"},validateEvent:{type:Boolean,default:!0},persistent:{type:Boolean,default:!0},...Na}),IV={[Qe]:e=>!0,[vt]:e=>!0,focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,visibleChange:e=>Vt(e),expandChange:e=>!!e,removeTag:e=>!!e},ir=new Map;if(Ct){let e;document.addEventListener("mousedown",t=>e=t),document.addEventListener("mouseup",t=>{if(e){for(const n of ir.values())for(const{documentHandler:o}of n)o(t,e);e=void 0}})}function Db(e,t){let n=[];return ke(t.arg)?n=t.arg:Qn(t.arg)&&n.push(t.arg),function(o,s){const r=t.instance.popperRef,l=o.target,a=s?.target,u=!t||!t.instance,c=!l||!a,d=e.contains(l)||e.contains(a),f=e===l,h=n.length&&n.some(m=>m?.contains(l))||n.length&&n.includes(a),p=r&&(r.contains(l)||r.contains(a));u||c||d||f||h||p||t.value(o,s)}}const js={beforeMount(e,t){ir.has(e)||ir.set(e,[]),ir.get(e).push({documentHandler:Db(e,t),bindingFn:t.value})},updated(e,t){ir.has(e)||ir.set(e,[]);const n=ir.get(e),o=n.findIndex(r=>r.bindingFn===t.oldValue),s={documentHandler:Db(e,t),bindingFn:t.value};o>=0?n.splice(o,1,s):n.push(s)},unmounted(e){ir.delete(e)}},MV="ElCascader",RV=J({name:MV}),NV=J({...RV,props:OV,emits:IV,setup(e,{expose:t,emit:n}){const o=e,s={modifiers:[{name:"arrowPosition",enabled:!0,phase:"main",fn:({state:Y})=>{const{modifiersData:ae,placement:ee}=Y;["right","left","bottom","top"].includes(ee)||(ae.arrow.x=35)},requires:["arrow"]}]},r=qs();let l=0,a=0;const u=Se("cascader"),c=Se("input"),{t:d}=St(),{form:f,formItem:h}=Ln(),{valueOnClear:p}=sf(o),{isComposing:m,handleComposition:v}=Cu({afterComposition(Y){var ae;const ee=(ae=Y.target)==null?void 0:ae.value;Ye(ee)}}),g=R(null),y=R(null),S=R(null),w=R(null),b=R(null),C=R(!1),_=R(!1),x=R(!1),T=R(!1),$=R(""),I=R(""),A=R([]),P=R([]),j=R([]),q=E(()=>r.style),K=E(()=>o.disabled||f?.disabled),N=E(()=>o.placeholder||d("el.cascader.placeholder")),V=E(()=>I.value||A.value.length>0||m.value?"":N.value),z=rn(),B=E(()=>z.value==="small"?"small":"default"),G=E(()=>!!o.props.multiple),Z=E(()=>!o.filterable||G.value),Q=E(()=>G.value?I.value:$.value),D=E(()=>{var Y;return((Y=w.value)==null?void 0:Y.checkedNodes)||[]}),se=E(()=>!o.clearable||K.value||x.value||!_.value?!1:!!D.value.length),de=E(()=>{const{showAllLevels:Y,separator:ae}=o,ee=D.value;return ee.length?G.value?"":ee[0].calcText(Y,ae):""}),oe=E(()=>h?.validateState||""),U=E({get(){return rd(o.modelValue)},set(Y){const ae=Y??p.value;n(Qe,ae),n(vt,ae),o.validateEvent&&h?.validate("change").catch(ee=>void 0)}}),le=E(()=>[u.b(),u.m(z.value),u.is("disabled",K.value),r.class]),ue=E(()=>[c.e("icon"),"icon-arrow-down",u.is("reverse",C.value)]),ve=E(()=>u.is("focus",C.value||T.value)),me=E(()=>{var Y,ae;return(ae=(Y=g.value)==null?void 0:Y.popperRef)==null?void 0:ae.contentRef}),H=Y=>{var ae,ee,Ie;K.value||(Y=Y??!C.value,Y!==C.value&&(C.value=Y,(ee=(ae=y.value)==null?void 0:ae.input)==null||ee.setAttribute("aria-expanded",`${Y}`),Y?(X(),ze((Ie=w.value)==null?void 0:Ie.scrollToExpandingNode)):o.filterable&&Be(),n("visibleChange",Y)))},X=()=>{ze(()=>{var Y;(Y=g.value)==null||Y.updatePopper()})},ce=()=>{x.value=!1},fe=Y=>{const{showAllLevels:ae,separator:ee}=o;return{node:Y,key:Y.uid,text:Y.calcText(ae,ee),hitState:!1,closable:!K.value&&!Y.isDisabled,isCollapseTag:!1}},be=Y=>{var ae;const ee=Y.node;ee.doCheck(!1),(ae=w.value)==null||ae.calculateCheckedValue(),n("removeTag",ee.valueByOption)},pe=()=>{if(!G.value)return;const Y=D.value,ae=[],ee=[];if(Y.forEach(Ie=>ee.push(fe(Ie))),P.value=ee,Y.length){Y.slice(0,o.maxCollapseTags).forEach(nt=>ae.push(fe(nt)));const Ie=Y.slice(o.maxCollapseTags),rt=Ie.length;rt&&(o.collapseTags?ae.push({key:-1,text:`+ ${rt}`,closable:!1,isCollapseTag:!0}):Ie.forEach(nt=>ae.push(fe(nt))))}A.value=ae},_e=()=>{var Y,ae;const{filterMethod:ee,showAllLevels:Ie,separator:rt}=o,nt=(ae=(Y=w.value)==null?void 0:Y.getFlattedNodes(!o.props.checkStrictly))==null?void 0:ae.filter(Nt=>Nt.isDisabled?!1:(Nt.calcText(Ie,rt),ee(Nt,Q.value)));G.value&&(A.value.forEach(Nt=>{Nt.hitState=!1}),P.value.forEach(Nt=>{Nt.hitState=!1})),x.value=!0,j.value=nt,X()},ye=()=>{var Y;let ae;x.value&&b.value?ae=b.value.$el.querySelector(`.${u.e("suggestion-item")}`):ae=(Y=w.value)==null?void 0:Y.$el.querySelector(`.${u.b("node")}[tabindex="-1"]`),ae&&(ae.focus(),!x.value&&ae.click())},Ee=()=>{var Y,ae;const ee=(Y=y.value)==null?void 0:Y.input,Ie=S.value,rt=(ae=b.value)==null?void 0:ae.$el;if(!(!Ct||!ee)){if(rt){const nt=rt.querySelector(`.${u.e("suggestion-list")}`);nt.style.minWidth=`${ee.offsetWidth}px`}if(Ie){const{offsetHeight:nt}=Ie,Nt=A.value.length>0?`${Math.max(nt,l)-2}px`:`${l}px`;ee.style.height=Nt,X()}}},$e=Y=>{var ae;return(ae=w.value)==null?void 0:ae.getCheckedNodes(Y)},je=Y=>{X(),n("expandChange",Y)},Ne=Y=>{if(!m.value)switch(Y.code){case Le.enter:case Le.numpadEnter:H();break;case Le.down:H(!0),ze(ye),Y.preventDefault();break;case Le.esc:C.value===!0&&(Y.preventDefault(),Y.stopPropagation(),H(!1));break;case Le.tab:H(!1);break}},Ce=()=>{var Y;(Y=w.value)==null||Y.clearCheckedNodes(),!C.value&&o.filterable&&Be(),H(!1),n("clear")},Be=()=>{const{value:Y}=de;$.value=Y,I.value=Y},Je=Y=>{var ae,ee;const{checked:Ie}=Y;G.value?(ae=w.value)==null||ae.handleCheckChange(Y,!Ie,!1):(!Ie&&((ee=w.value)==null||ee.handleCheckChange(Y,!0,!1)),H(!1))},mt=Y=>{const ae=Y.target,{code:ee}=Y;switch(ee){case Le.up:case Le.down:{Y.preventDefault();const Ie=ee===Le.up?-1:1;dc(q_(ae,Ie,`.${u.e("suggestion-item")}[tabindex="-1"]`));break}case Le.enter:case Le.numpadEnter:ae.click();break}},ut=()=>{const Y=A.value,ae=Y[Y.length-1];a=I.value?0:a+1,!(!ae||!a||o.collapseTags&&Y.length>1)&&(ae.hitState?be(ae):ae.hitState=!0)},kt=Y=>{const ae=Y.target,ee=u.e("search-input");ae.className===ee&&(T.value=!0),n("focus",Y)},bt=Y=>{T.value=!1,n("blur",Y)},Ut=so(()=>{const{value:Y}=Q;if(!Y)return;const ae=o.beforeFilter(Y);Ti(ae)?ae.then(_e).catch(()=>{}):ae!==!1?_e():ce()},o.debounce),Ye=(Y,ae)=>{!C.value&&H(!0),!ae?.isComposing&&(Y?Ut():ce())},we=Y=>Number.parseFloat(e3(c.cssVarName("input-height"),Y).value)-2;return ge(x,X),ge([D,K,()=>o.collapseTags],pe),ge(A,()=>{ze(()=>Ee())}),ge(z,async()=>{await ze();const Y=y.value.input;l=we(Y)||l,Ee()}),ge(de,Be,{immediate:!0}),et(()=>{const Y=y.value.input,ae=we(Y);l=Y.offsetHeight||ae,qt(Y,Ee)}),t({getCheckedNodes:$e,cascaderPanelRef:w,togglePopperVisible:H,contentRef:me,presentText:de}),(Y,ae)=>(k(),ne(i(An),{ref_key:"tooltipRef",ref:g,visible:C.value,teleported:Y.teleported,"popper-class":[i(u).e("dropdown"),Y.popperClass],"popper-options":s,"fallback-placements":Y.fallbackPlacements,"stop-popper-mouse-event":!1,"gpu-acceleration":!1,placement:Y.placement,transition:`${i(u).namespace.value}-zoom-in-top`,effect:"light",pure:"",persistent:Y.persistent,onHide:ce},{default:W(()=>[Xe((k(),F("div",{class:M(i(le)),style:Ve(i(q)),onClick:()=>H(i(Z)?void 0:!0),onKeydown:Ne,onMouseenter:ee=>_.value=!0,onMouseleave:ee=>_.value=!1},[L(i(jn),{ref_key:"input",ref:y,modelValue:$.value,"onUpdate:modelValue":ee=>$.value=ee,placeholder:i(V),readonly:i(Z),disabled:i(K),"validate-event":!1,size:i(z),class:M(i(ve)),tabindex:i(G)&&Y.filterable&&!i(K)?-1:void 0,onCompositionstart:i(v),onCompositionupdate:i(v),onCompositionend:i(v),onFocus:kt,onBlur:bt,onInput:Ye},_o({suffix:W(()=>[i(se)?(k(),ne(i(He),{key:"clear",class:M([i(c).e("icon"),"icon-circle-close"]),onClick:qe(Ce,["stop"])},{default:W(()=>[L(i(Zs))]),_:1},8,["class","onClick"])):(k(),ne(i(He),{key:"arrow-down",class:M(i(ue)),onClick:qe(ee=>H(),["stop"])},{default:W(()=>[L(i(Js))]),_:1},8,["class","onClick"]))]),_:2},[Y.$slots.prefix?{name:"prefix",fn:W(()=>[ie(Y.$slots,"prefix")])}:void 0]),1032,["modelValue","onUpdate:modelValue","placeholder","readonly","disabled","size","class","tabindex","onCompositionstart","onCompositionupdate","onCompositionend"]),i(G)?(k(),F("div",{key:0,ref_key:"tagWrapper",ref:S,class:M([i(u).e("tags"),i(u).is("validate",!!i(oe))])},[(k(!0),F(De,null,it(A.value,ee=>(k(),ne(i(fa),{key:ee.key,type:Y.tagType,size:i(B),effect:Y.tagEffect,hit:ee.hitState,closable:ee.closable,"disable-transitions":"",onClose:Ie=>be(ee)},{default:W(()=>[ee.isCollapseTag===!1?(k(),F("span",{key:0},he(ee.text),1)):(k(),ne(i(An),{key:1,disabled:C.value||!Y.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],placement:"bottom",effect:"light"},{default:W(()=>[O("span",null,he(ee.text),1)]),content:W(()=>[O("div",{class:M(i(u).e("collapse-tags"))},[(k(!0),F(De,null,it(P.value.slice(Y.maxCollapseTags),(Ie,rt)=>(k(),F("div",{key:rt,class:M(i(u).e("collapse-tag"))},[(k(),ne(i(fa),{key:Ie.key,class:"in-tooltip",type:Y.tagType,size:i(B),effect:Y.tagEffect,hit:Ie.hitState,closable:Ie.closable,"disable-transitions":"",onClose:nt=>be(Ie)},{default:W(()=>[O("span",null,he(Ie.text),1)]),_:2},1032,["type","size","effect","hit","closable","onClose"]))],2))),128))],2)]),_:2},1032,["disabled"]))]),_:2},1032,["type","size","effect","hit","closable","onClose"]))),128)),Y.filterable&&!i(K)?Xe((k(),F("input",{key:0,"onUpdate:modelValue":ee=>I.value=ee,type:"text",class:M(i(u).e("search-input")),placeholder:i(de)?"":i(N),onInput:ee=>Ye(I.value,ee),onClick:qe(ee=>H(!0),["stop"]),onKeydown:Ft(ut,["delete"]),onCompositionstart:i(v),onCompositionupdate:i(v),onCompositionend:i(v),onFocus:kt,onBlur:bt},null,42,["onUpdate:modelValue","placeholder","onInput","onClick","onKeydown","onCompositionstart","onCompositionupdate","onCompositionend"])),[[Ud,I.value]]):te("v-if",!0)],2)):te("v-if",!0)],46,["onClick","onMouseenter","onMouseleave"])),[[i(js),()=>H(!1),i(me)]])]),content:W(()=>[Xe(L(i(z2),{ref_key:"cascaderPanelRef",ref:w,modelValue:i(U),"onUpdate:modelValue":ee=>Lt(U)?U.value=ee:null,options:Y.options,props:o.props,border:!1,"render-label":Y.$slots.default,onExpandChange:je,onClose:ee=>Y.$nextTick(()=>H(!1))},{empty:W(()=>[ie(Y.$slots,"empty")]),_:3},8,["modelValue","onUpdate:modelValue","options","props","render-label","onClose"]),[[_t,!x.value]]),Y.filterable?Xe((k(),ne(i(Ts),{key:0,ref_key:"suggestionPanel",ref:b,tag:"ul",class:M(i(u).e("suggestion-panel")),"view-class":i(u).e("suggestion-list"),onKeydown:mt},{default:W(()=>[j.value.length?(k(!0),F(De,{key:0},it(j.value,ee=>(k(),F("li",{key:ee.uid,class:M([i(u).e("suggestion-item"),i(u).is("checked",ee.checked)]),tabindex:-1,onClick:Ie=>Je(ee)},[ie(Y.$slots,"suggestion-item",{item:ee},()=>[O("span",null,he(ee.text),1),ee.checked?(k(),ne(i(He),{key:0},{default:W(()=>[L(i(bu))]),_:1})):te("v-if",!0)])],10,["onClick"]))),128)):ie(Y.$slots,"empty",{key:1},()=>[O("li",{class:M(i(u).e("empty-text"))},he(i(d)("el.cascader.noMatch")),3)])]),_:3},8,["class","view-class"])),[[_t,x.value]]):te("v-if",!0)]),_:3},8,["visible","teleported","popper-class","fallback-placements","placement","transition","persistent"]))}});var PV=xe(NV,[["__file","cascader.vue"]]);const AV=lt(PV),LV=Te({checked:Boolean,disabled:Boolean,type:{type:String,values:["primary","success","info","warning","danger"],default:"primary"}}),DV={"update:checked":e=>Vt(e),[vt]:e=>Vt(e)},BV=J({name:"ElCheckTag"}),FV=J({...BV,props:LV,emits:DV,setup(e,{emit:t}){const n=e,o=Se("check-tag"),s=E(()=>n.disabled),r=E(()=>[o.b(),o.is("checked",n.checked),o.is("disabled",s.value),o.m(n.type||"primary")]),l=()=>{if(s.value)return;const a=!n.checked;t(vt,a),t("update:checked",a)};return(a,u)=>(k(),F("span",{class:M(i(r)),onClick:l},[ie(a.$slots,"default")],2))}});var VV=xe(FV,[["__file","check-tag.vue"]]);const HV=lt(VV),zV=Te({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:re([Number,Object]),default:()=>Gt({})},sm:{type:re([Number,Object]),default:()=>Gt({})},md:{type:re([Number,Object]),default:()=>Gt({})},lg:{type:re([Number,Object]),default:()=>Gt({})},xl:{type:re([Number,Object]),default:()=>Gt({})}}),K2=Symbol("rowContextKey"),KV=J({name:"ElCol"}),WV=J({...KV,props:zV,setup(e){const t=e,{gutter:n}=Pe(K2,{gutter:E(()=>0)}),o=Se("col"),s=E(()=>{const l={};return n.value&&(l.paddingLeft=l.paddingRight=`${n.value/2}px`),l}),r=E(()=>{const l=[];return["span","offset","pull","push"].forEach(c=>{const d=t[c];Ge(d)&&(c==="span"?l.push(o.b(`${t[c]}`)):d>0&&l.push(o.b(`${c}-${t[c]}`)))}),["xs","sm","md","lg","xl"].forEach(c=>{Ge(t[c])?l.push(o.b(`${c}-${t[c]}`)):ct(t[c])&&Object.entries(t[c]).forEach(([d,f])=>{l.push(d!=="span"?o.b(`${c}-${d}-${f}`):o.b(`${c}-${f}`))})}),n.value&&l.push(o.is("guttered")),[o.b(),l]});return(l,a)=>(k(),ne(pt(l.tag),{class:M(i(r)),style:Ve(i(s))},{default:W(()=>[ie(l.$slots,"default")]),_:3},8,["class","style"]))}});var jV=xe(WV,[["__file","col.vue"]]);const UV=lt(jV),Bb=e=>Ge(e)||Ke(e)||ke(e),YV=Te({accordion:Boolean,modelValue:{type:re([Array,String,Number]),default:()=>Gt([])}}),qV={[Qe]:Bb,[vt]:Bb},W2=Symbol("collapseContextKey"),GV=(e,t)=>{const n=R(zn(e.modelValue)),o=r=>{n.value=r;const l=e.accordion?n.value[0]:n.value;t(Qe,l),t(vt,l)},s=r=>{if(e.accordion)o([n.value[0]===r?"":r]);else{const l=[...n.value],a=l.indexOf(r);a>-1?l.splice(a,1):l.push(r),o(l)}};return ge(()=>e.modelValue,()=>n.value=zn(e.modelValue),{deep:!0}),gt(W2,{activeNames:n,handleItemClick:s}),{activeNames:n,setActiveNames:o}},XV=()=>{const e=Se("collapse");return{rootKls:E(()=>e.b())}},JV=J({name:"ElCollapse"}),ZV=J({...JV,props:YV,emits:qV,setup(e,{expose:t,emit:n}){const o=e,{activeNames:s,setActiveNames:r}=GV(o,n),{rootKls:l}=XV();return t({activeNames:s,setActiveNames:r}),(a,u)=>(k(),F("div",{class:M(i(l))},[ie(a.$slots,"default")],2))}});var QV=xe(ZV,[["__file","collapse.vue"]]);const e5=J({name:"ElCollapseTransition"}),t5=J({...e5,setup(e){const t=Se("collapse-transition"),n=s=>{s.style.maxHeight="",s.style.overflow=s.dataset.oldOverflow,s.style.paddingTop=s.dataset.oldPaddingTop,s.style.paddingBottom=s.dataset.oldPaddingBottom},o={beforeEnter(s){s.dataset||(s.dataset={}),s.dataset.oldPaddingTop=s.style.paddingTop,s.dataset.oldPaddingBottom=s.style.paddingBottom,s.style.height&&(s.dataset.elExistsHeight=s.style.height),s.style.maxHeight=0,s.style.paddingTop=0,s.style.paddingBottom=0},enter(s){requestAnimationFrame(()=>{s.dataset.oldOverflow=s.style.overflow,s.dataset.elExistsHeight?s.style.maxHeight=s.dataset.elExistsHeight:s.scrollHeight!==0?s.style.maxHeight=`${s.scrollHeight}px`:s.style.maxHeight=0,s.style.paddingTop=s.dataset.oldPaddingTop,s.style.paddingBottom=s.dataset.oldPaddingBottom,s.style.overflow="hidden"})},afterEnter(s){s.style.maxHeight="",s.style.overflow=s.dataset.oldOverflow},enterCancelled(s){n(s)},beforeLeave(s){s.dataset||(s.dataset={}),s.dataset.oldPaddingTop=s.style.paddingTop,s.dataset.oldPaddingBottom=s.style.paddingBottom,s.dataset.oldOverflow=s.style.overflow,s.style.maxHeight=`${s.scrollHeight}px`,s.style.overflow="hidden"},leave(s){s.scrollHeight!==0&&(s.style.maxHeight=0,s.style.paddingTop=0,s.style.paddingBottom=0)},afterLeave(s){n(s)},leaveCancelled(s){n(s)}};return(s,r)=>(k(),ne($n,ht({name:i(t).b()},$x(o)),{default:W(()=>[ie(s.$slots,"default")]),_:3},16,["name"]))}});var n5=xe(t5,[["__file","collapse-transition.vue"]]);const hf=lt(n5),o5=Te({title:{type:String,default:""},name:{type:re([String,Number]),default:void 0},icon:{type:Bt,default:eo},disabled:Boolean}),s5=e=>{const t=Pe(W2),{namespace:n}=Se("collapse"),o=R(!1),s=R(!1),r=Im(),l=E(()=>r.current++),a=E(()=>{var h;return(h=e.name)!=null?h:`${n.value}-id-${r.prefix}-${i(l)}`}),u=E(()=>t?.activeNames.value.includes(i(a)));return{focusing:o,id:l,isActive:u,handleFocus:()=>{setTimeout(()=>{s.value?s.value=!1:o.value=!0},50)},handleHeaderClick:()=>{e.disabled||(t?.handleItemClick(i(a)),o.value=!1,s.value=!0)},handleEnterClick:()=>{t?.handleItemClick(i(a))}}},r5=(e,{focusing:t,isActive:n,id:o})=>{const s=Se("collapse"),r=E(()=>[s.b("item"),s.is("active",i(n)),s.is("disabled",e.disabled)]),l=E(()=>[s.be("item","header"),s.is("active",i(n)),{focusing:i(t)&&!e.disabled}]),a=E(()=>[s.be("item","arrow"),s.is("active",i(n))]),u=E(()=>s.be("item","wrap")),c=E(()=>s.be("item","content")),d=E(()=>s.b(`content-${i(o)}`)),f=E(()=>s.b(`head-${i(o)}`));return{arrowKls:a,headKls:l,rootKls:r,itemWrapperKls:u,itemContentKls:c,scopedContentId:d,scopedHeadId:f}},l5=J({name:"ElCollapseItem"}),a5=J({...l5,props:o5,setup(e,{expose:t}){const n=e,{focusing:o,id:s,isActive:r,handleFocus:l,handleHeaderClick:a,handleEnterClick:u}=s5(n),{arrowKls:c,headKls:d,rootKls:f,itemWrapperKls:h,itemContentKls:p,scopedContentId:m,scopedHeadId:v}=r5(n,{focusing:o,isActive:r,id:s});return t({isActive:r}),(g,y)=>(k(),F("div",{class:M(i(f))},[O("button",{id:i(v),class:M(i(d)),"aria-expanded":i(r),"aria-controls":i(m),"aria-describedby":i(m),tabindex:g.disabled?-1:0,type:"button",onClick:i(a),onKeydown:Ft(qe(i(u),["stop","prevent"]),["space","enter"]),onFocus:i(l),onBlur:S=>o.value=!1},[ie(g.$slots,"title",{},()=>[Fe(he(g.title),1)]),ie(g.$slots,"icon",{isActive:i(r)},()=>[L(i(He),{class:M(i(c))},{default:W(()=>[(k(),ne(pt(g.icon)))]),_:1},8,["class"])])],42,["id","aria-expanded","aria-controls","aria-describedby","tabindex","onClick","onKeydown","onFocus","onBlur"]),L(i(hf),null,{default:W(()=>[Xe(O("div",{id:i(m),role:"region",class:M(i(h)),"aria-hidden":!i(r),"aria-labelledby":i(v)},[O("div",{class:M(i(p))},[ie(g.$slots,"default")],2)],10,["id","aria-hidden","aria-labelledby"]),[[_t,i(r)]])]),_:3})],2))}});var j2=xe(a5,[["__file","collapse-item.vue"]]);const i5=lt(QV,{CollapseItem:j2}),u5=Xt(j2),c5=Te({color:{type:re(Object),required:!0},vertical:{type:Boolean,default:!1}});let mp=!1;function Ui(e,t){if(!Ct)return;const n=function(r){var l;(l=t.drag)==null||l.call(t,r)},o=function(r){var l;document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",o),document.removeEventListener("touchmove",n),document.removeEventListener("touchend",o),document.onselectstart=null,document.ondragstart=null,mp=!1,(l=t.end)==null||l.call(t,r)},s=function(r){var l;mp||(r.preventDefault(),document.onselectstart=()=>!1,document.ondragstart=()=>!1,document.addEventListener("mousemove",n),document.addEventListener("mouseup",o),document.addEventListener("touchmove",n),document.addEventListener("touchend",o),mp=!0,(l=t.start)==null||l.call(t,r))};e.addEventListener("mousedown",s),e.addEventListener("touchstart",s,{passive:!1})}const d5=(e,t)=>{if(!Ct||!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.top()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},si={integer:function(t){return si.number(t)&&parseInt(t,10)===t},float:function(t){return si.number(t)&&!si.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return typeof t=="object"&&!si.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(r1.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(_K())},hex:function(t){return typeof t=="string"&&!!t.match(r1.hex)}},kK=function(t,n,o,s,r){if(t.required&&n===void 0){Ek(t,n,o,s,r);return}var l=["integer","float","array","regexp","object","method","email","number","date","url","hex"],a=t.type;l.indexOf(a)>-1?si[a](n)||s.push(bo(r.messages.types[a],t.fullField,t.type)):a&&typeof n!==t.type&&s.push(bo(r.messages.types[a],t.fullField,t.type))},EK=function(t,n,o,s,r){var l=typeof t.len=="number",a=typeof t.min=="number",u=typeof t.max=="number",c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,d=n,f=null,h=typeof n=="number",p=typeof n=="string",m=Array.isArray(n);if(h?f="number":p?f="string":m&&(f="array"),!f)return!1;m&&(d=n.length),p&&(d=n.replace(c,"_").length),l?d!==t.len&&s.push(bo(r.messages[f].len,t.fullField,t.len)):a&&!u&&ds&&(o=r-1)}return Math.max(0,n-1)},Jj=(e,t,n,o)=>{const{total:s}=e;let r=1;for(;n{let s=0;if(o>=e&&(o=e-1),o>=0){const a=t[o];s=a.offset+a.size}const l=(e-o-1)*n;return s+l},Zj=Uk({name:"ElDynamicSizeList",getItemOffset:(e,t,n)=>zl(e,t,n).offset,getItemSize:(e,t,{items:n})=>n[t].size,getEstimatedTotalSize:p1,getOffset:(e,t,n,o,s)=>{const{height:r,layout:l,width:a}=e,u=Zi(l)?a:r,c=zl(e,t,s),d=p1(e,s),f=Math.max(0,Math.min(d-u,c.offset)),h=Math.max(0,c.offset-u+c.size);switch(n===bf&&(o>=h-u&&o<=f+u?n=Oo:n=ms),n){case Gi:return f;case Xi:return h;case ms:return Math.round(h+(f-h)/2);case Oo:default:return o>=h&&o<=f?o:os&&(o=r-1)}return Math.max(0,n-1)},J7=(e,t,n,o)=>{const{total:s}=e;let r=1;for(;n{let s=0;if(o>=e&&(o=e-1),o>=0){const a=t[o];s=a.offset+a.size}const l=(e-o-1)*n;return s+l},Z7=Uk({name:"ElDynamicSizeList",getItemOffset:(e,t,n)=>zl(e,t,n).offset,getItemSize:(e,t,{items:n})=>n[t].size,getEstimatedTotalSize:p1,getOffset:(e,t,n,o,s)=>{const{height:r,layout:l,width:a}=e,u=Zi(l)?a:r,c=zl(e,t,s),d=p1(e,s),f=Math.max(0,Math.min(d-u,c.offset)),h=Math.max(0,c.offset-u+c.size);switch(n===bf&&(o>=h-u&&o<=f+u?n=Oo:n=ms),n){case Gi:return f;case Xi:return h;case ms:return Math.round(h+(f-h)/2);case Oo:default:return o>=h&&o<=f?o:o