import{Y as to,Z as no,$ as $t,n as vn,a0 as gn,a1 as oo,a2 as ft,t as mn,a3 as ro,a4 as hn,i as Ht,v as ao,b as G,_ as re,z as x,a5 as bn,F as pt,G as _e,O as jt,w as dt,a6 as yn,a7 as te,a8 as so}from"./ZcFaVnNf.js";import{l as $,d as B,m as R,p as be,a6 as X,i as de,o as se,L as Ge,M as V,a7 as io,a4 as wn,u as d,aq as at,a2 as En,at as uo,au as Ut,J as lo,F as co,E as fo,D as Be,B as ve,q as N,N as pe,a1 as Ze,R as ne,an as vt,v as st,H as po,k as vo,a as go,ak as Ue,I as Tn,t as Fe,av as mo,aw as ho,T as bo,a5 as yo,G as wo,f as Eo,Y as To}from"./BX5Qd5jQ.js";import{u as Ce,d as Kt,r as xe,m as ce,s as Oo,i as it,v as Co,w as On,x as Po,y as Ao,z as Ro,l as So}from"./DzNUFzst.js";import{f as Wt}from"./JAUZZBS7.js";function Fo(e){return e}function _o(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var xo=800,Io=16,Lo=Date.now;function Bo(e){var t=0,n=0;return function(){var o=Lo(),r=Io-(o-n);if(n=o,r>0){if(++t>=xo)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function Mo(e){return function(){return e}}var Je=(function(){try{var e=to(Object,"defineProperty");return e({},"",{}),e}catch{}})(),ko=Je?function(e,t){return Je(e,"toString",{configurable:!0,enumerable:!1,value:Mo(t),writable:!0})}:Fo,No=Bo(ko);function Do(e,t,n){t=="__proto__"&&Je?Je(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var $o=Object.prototype,Ho=$o.hasOwnProperty;function jo(e,t,n){var o=e[t];(!(Ho.call(e,t)&&no(o,n))||n===void 0&&!(t in e))&&Do(e,t,n)}var qt=Math.max;function Uo(e,t,n){return t=qt(t===void 0?e.length-1:t,0),function(){for(var o=arguments,r=-1,a=qt(o.length-t,0),s=Array(a);++r<a;)s[r]=o[t+r];r=-1;for(var i=Array(t+1);++r<t;)i[r]=o[r];return i[t]=n(s),_o(e,this,i)}}var zt=$t?$t.isConcatSpreadable:void 0;function Ko(e){return vn(e)||gn(e)||!!(zt&&e&&e[zt])}function Wo(e,t,n,o,r){var a=-1,s=e.length;for(n||(n=Ko),r||(r=[]);++a<s;){var i=e[a];n(i)?oo(r,i):r[r.length]=i}return r}function qo(e){var t=e==null?0:e.length;return t?Wo(e):[]}function zo(e){return No(Uo(e,void 0,qo),e+"")}function Vo(e,t){return e!=null&&t in Object(e)}function Go(e,t,n){t=ft(t,e);for(var o=-1,r=t.length,a=!1;++o<r;){var s=mn(t[o]);if(!(a=e!=null&&n(e,s)))break;e=e[s]}return a||++o!=r?a:(r=e==null?0:e.length,!!r&&ro(r)&&hn(s,r)&&(vn(e)||gn(e)))}function Zo(e,t){return e!=null&&Go(e,t,Vo)}function gt(e){return e==null}function Jo(e){return e===void 0}function Yo(e,t,n,o){if(!Ht(e))return e;t=ft(t,e);for(var r=-1,a=t.length,s=a-1,i=e;i!=null&&++r<a;){var l=mn(t[r]),u=n;if(l==="__proto__"||l==="constructor"||l==="prototype")return e;if(r!=s){var v=i[l];u=void 0,u===void 0&&(u=Ht(v)?v:hn(t[r+1])?[]:{})}jo(i,l,u),i=i[l]}return e}function Xo(e,t,n){for(var o=-1,r=t.length,a={};++o<r;){var s=t[o],i=ao(e,s);n(i,s)&&Yo(a,ft(s,e),i)}return a}function Qo(e,t){return Xo(e,t,function(n,o){return Zo(e,o)})}var er=zo(function(e,t){return e==null?{}:Qo(e,t)});const mt=Symbol("popper"),Cn=Symbol("popperContent"),tr=["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],Pn=G({role:{type:String,values:tr,default:"tooltip"}}),nr=$({name:"ElPopper",inheritAttrs:!1}),or=$({...nr,props:Pn,setup(e,{expose:t}){const n=e,o=B(),r=B(),a=B(),s=B(),i=R(()=>n.role),l={triggerRef:o,popperInstanceRef:r,contentRef:a,referenceRef:s,role:i};return t(l),be(mt,l),(u,v)=>X(u.$slots,"default")}});var rr=re(or,[["__file","popper.vue"]]);const ar=$({name:"ElPopperArrow",inheritAttrs:!1}),sr=$({...ar,setup(e,{expose:t}){const n=Ce("popper"),{arrowRef:o,arrowStyle:r}=de(Cn,void 0);return se(()=>{o.value=void 0}),t({arrowRef:o}),(a,s)=>(V(),Ge("span",{ref_key:"arrowRef",ref:o,class:wn(d(n).e("arrow")),style:io(d(r)),"data-popper-arrow":""},null,6))}});var ir=re(sr,[["__file","arrow.vue"]]);const An=G({virtualRef:{type:x(Object)},virtualTriggering:Boolean,onMouseenter:{type:x(Function)},onMouseleave:{type:x(Function)},onClick:{type:x(Function)},onKeydown:{type:x(Function)},onFocus:{type:x(Function)},onBlur:{type:x(Function)},onContextmenu:{type:x(Function)},id:String,open:Boolean}),Rn=Symbol("elForwardRef"),ur=e=>{be(Rn,{setForwardRef:n=>{e.value=n}})},lr=e=>({mounted(t){e(t)},updated(t){e(t)},unmounted(){e(null)}}),nt="ElOnlyChild",cr=$({name:nt,setup(e,{slots:t,attrs:n}){var o;const r=de(Rn),a=lr((o=r==null?void 0:r.setForwardRef)!=null?o:at);return()=>{var s;const i=(s=t.default)==null?void 0:s.call(t,n);if(!i)return null;const[l,u]=Sn(i);return l?(u>1&&Kt(nt,"requires exact only one valid child."),En(uo(l,n),[[a]])):(Kt(nt,"no valid child node found"),null)}}});function Sn(e){if(!e)return[null,0];const t=e,n=t.filter(o=>o.type!==Ut).length;for(const o of t){if(lo(o))switch(o.type){case Ut:continue;case fo:case"svg":return[Vt(o),n];case co:return Sn(o.children);default:return[o,n]}return[Vt(o),n]}return[null,0]}function Vt(e){const t=Ce("only-child");return Be("span",{class:t.e("content")},[e])}const Gt=e=>typeof Element>"u"?!1:e instanceof Element,ut=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}},ht=(e,t)=>{if(!e||!e.focus)return;let n=!1;Gt(e)&&!ut(e)&&!e.getAttribute("tabindex")&&(e.setAttribute("tabindex","-1"),n=!0),e.focus(t),Gt(e)&&n&&e.removeAttribute("tabindex")},fr=$({name:"ElPopperTrigger",inheritAttrs:!1}),pr=$({...fr,props:An,setup(e,{expose:t}){const n=e,{role:o,triggerRef:r}=de(mt,void 0);ur(r);const a=R(()=>i.value?n.id:void 0),s=R(()=>{if(o&&o.value==="tooltip")return n.open&&n.id?n.id:void 0}),i=R(()=>{if(o&&o.value!=="tooltip")return o.value}),l=R(()=>i.value?`${n.open}`:void 0);let u;const v=["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"];return ve(()=>{N(()=>n.virtualRef,g=>{g&&(r.value=bn(g))},{immediate:!0}),N(r,(g,m)=>{u==null||u(),u=void 0,xe(g)&&(v.forEach(h=>{var c;const f=n[h];f&&(g.addEventListener(h.slice(2).toLowerCase(),f,["onFocus","onBlur"].includes(h)),(c=m==null?void 0:m.removeEventListener)==null||c.call(m,h.slice(2).toLowerCase(),f,["onFocus","onBlur"].includes(h)))}),ut(g)&&(u=N([a,s,i,l],h=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((c,f)=>{gt(h[f])?g.removeAttribute(c):g.setAttribute(c,h[f])})},{immediate:!0}))),xe(m)&&ut(m)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(h=>m.removeAttribute(h))},{immediate:!0})}),se(()=>{if(u==null||u(),u=void 0,r.value&&xe(r.value)){const g=r.value;v.forEach(m=>{const h=n[m];h&&g.removeEventListener(m.slice(2).toLowerCase(),h,["onFocus","onBlur"].includes(m))}),r.value=void 0}}),t({triggerRef:r}),(g,m)=>g.virtualTriggering?Ze("v-if",!0):(V(),pe(d(cr),vt({key:0},g.$attrs,{"aria-controls":d(a),"aria-describedby":d(s),"aria-expanded":d(l),"aria-haspopup":d(i)}),{default:ne(()=>[X(g.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}});var dr=re(pr,[["__file","trigger.vue"]]);const ot="focus-trap.focus-after-trapped",rt="focus-trap.focus-after-released",vr="focus-trap.focusout-prevented",Zt={cancelable:!0,bubbles:!1},gr={cancelable:!0,bubbles:!1},Jt="focusAfterTrapped",Yt="focusAfterReleased",mr=Symbol("elFocusTrap"),bt=B(),Xe=B(0),yt=B(0);let Ke=0;const Fn=e=>{const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const r=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||r?NodeFilter.FILTER_SKIP:o.tabIndex>=0||o===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t},Xt=(e,t)=>{for(const n of e)if(!hr(n,t))return n},hr=(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},br=e=>{const t=Fn(e),n=Xt(t,e),o=Xt(t.reverse(),e);return[n,o]},yr=e=>e instanceof HTMLInputElement&&"select"in e,ae=(e,t)=>{if(e){const n=document.activeElement;ht(e,{preventScroll:!0}),yt.value=window.performance.now(),e!==n&&yr(e)&&t&&e.select()}};function Qt(e,t){const n=[...e],o=e.indexOf(t);return o!==-1&&n.splice(o,1),n}const wr=()=>{let e=[];return{push:o=>{const r=e[0];r&&o!==r&&r.pause(),e=Qt(e,o),e.unshift(o)},remove:o=>{var r,a;e=Qt(e,o),(a=(r=e[0])==null?void 0:r.resume)==null||a.call(r)}}},Er=(e,t=!1)=>{const n=document.activeElement;for(const o of e)if(ae(o,t),document.activeElement!==n)return},en=wr(),Tr=()=>Xe.value>yt.value,We=()=>{bt.value="pointer",Xe.value=window.performance.now()},tn=()=>{bt.value="keyboard",Xe.value=window.performance.now()},Or=()=>(ve(()=>{Ke===0&&(document.addEventListener("mousedown",We),document.addEventListener("touchstart",We),document.addEventListener("keydown",tn)),Ke++}),se(()=>{Ke--,Ke<=0&&(document.removeEventListener("mousedown",We),document.removeEventListener("touchstart",We),document.removeEventListener("keydown",tn))}),{focusReason:bt,lastUserFocusTimestamp:Xe,lastAutomatedFocusTimestamp:yt}),qe=e=>new CustomEvent(vr,{...gr,detail:e});let he=[];const nn=e=>{pt(e)===_e.esc&&he.forEach(n=>n(e))},Cr=e=>{ve(()=>{he.length===0&&document.addEventListener("keydown",nn),ce&&he.push(e)}),se(()=>{he=he.filter(t=>t!==e),he.length===0&&ce&&document.removeEventListener("keydown",nn)})},Pr=$({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[Jt,Yt,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const n=B();let o,r;const{focusReason:a}=Or();Cr(c=>{e.trapped&&!s.paused&&t("release-requested",c)});const s={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},i=c=>{if(!e.loop&&!e.trapped||s.paused)return;const{altKey:f,ctrlKey:w,metaKey:y,currentTarget:E,shiftKey:p}=c,{loop:b}=e,A=pt(c)===_e.tab&&!f&&!w&&!y,O=document.activeElement;if(A&&O){const C=E,[F,_]=br(C);if(F&&_){if(!p&&O===_){const S=qe({focusReason:a.value});t("focusout-prevented",S),S.defaultPrevented||(c.preventDefault(),b&&ae(F,!0))}else if(p&&[F,C].includes(O)){const S=qe({focusReason:a.value});t("focusout-prevented",S),S.defaultPrevented||(c.preventDefault(),b&&ae(_,!0))}}else if(O===C){const S=qe({focusReason:a.value});t("focusout-prevented",S),S.defaultPrevented||c.preventDefault()}}};be(mr,{focusTrapRef:n,onKeydown:i}),N(()=>e.focusTrapEl,c=>{c&&(n.value=c)},{immediate:!0}),N([n],([c],[f])=>{c&&(c.addEventListener("keydown",i),c.addEventListener("focusin",v),c.addEventListener("focusout",g)),f&&(f.removeEventListener("keydown",i),f.removeEventListener("focusin",v),f.removeEventListener("focusout",g))});const l=c=>{t(Jt,c)},u=c=>t(Yt,c),v=c=>{const f=d(n);if(!f)return;const w=c.target,y=c.relatedTarget,E=w&&f.contains(w);e.trapped||y&&f.contains(y)||(o=y),E&&t("focusin",c),!s.paused&&e.trapped&&(E?r=w:ae(r,!0))},g=c=>{const f=d(n);if(!(s.paused||!f))if(e.trapped){const w=c.relatedTarget;!gt(w)&&!f.contains(w)&&setTimeout(()=>{if(!s.paused&&e.trapped){const y=qe({focusReason:a.value});t("focusout-prevented",y),y.defaultPrevented||ae(r,!0)}},0)}else{const w=c.target;w&&f.contains(w)||t("focusout",c)}};async function m(){await st();const c=d(n);if(c){en.push(s);const f=c.contains(document.activeElement)?o:document.activeElement;if(o=f,!c.contains(f)){const y=new Event(ot,Zt);c.addEventListener(ot,l),c.dispatchEvent(y),y.defaultPrevented||st(()=>{let E=e.focusStartEl;po(E)||(ae(E),document.activeElement!==E&&(E="first")),E==="first"&&Er(Fn(c),!0),(document.activeElement===f||E==="container")&&ae(c)})}}}function h(){const c=d(n);if(c){c.removeEventListener(ot,l);const f=new CustomEvent(rt,{...Zt,detail:{focusReason:a.value}});c.addEventListener(rt,u),c.dispatchEvent(f),!f.defaultPrevented&&(a.value=="keyboard"||!Tr()||c.contains(document.activeElement))&&ae(o??document.body),c.removeEventListener(rt,u),en.remove(s),o=null,r=null}}return ve(()=>{e.trapped&&m(),N(()=>e.trapped,c=>{c?m():h()})}),se(()=>{e.trapped&&h(),n.value&&(n.value.removeEventListener("keydown",i),n.value.removeEventListener("focusin",v),n.value.removeEventListener("focusout",g),n.value=void 0)}),{onKeydown:i}}});function Ar(e,t,n,o,r,a){return X(e.$slots,"default",{handleKeydown:e.onKeydown})}var Rr=re(Pr,[["render",Ar],["__file","focus-trap.vue"]]),j="top",W="bottom",q="right",U="left",wt="auto",Ne=[j,W,q,U],ye="start",Me="end",Sr="clippingParents",_n="viewport",Se="popper",Fr="reference",on=Ne.reduce(function(e,t){return e.concat([t+"-"+ye,t+"-"+Me])},[]),Et=[].concat(Ne,[wt]).reduce(function(e,t){return e.concat([t,t+"-"+ye,t+"-"+Me])},[]),_r="beforeRead",xr="read",Ir="afterRead",Lr="beforeMain",Br="main",Mr="afterMain",kr="beforeWrite",Nr="write",Dr="afterWrite",$r=[_r,xr,Ir,Lr,Br,Mr,kr,Nr,Dr];function Q(e){return e?(e.nodeName||"").toLowerCase():null}function Z(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function we(e){var t=Z(e).Element;return e instanceof t||e instanceof Element}function K(e){var t=Z(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Tt(e){if(typeof ShadowRoot>"u")return!1;var t=Z(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Hr(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var o=t.styles[n]||{},r=t.attributes[n]||{},a=t.elements[n];!K(a)||!Q(a)||(Object.assign(a.style,o),Object.keys(r).forEach(function(s){var i=r[s];i===!1?a.removeAttribute(s):a.setAttribute(s,i===!0?"":i)}))})}function jr(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 r=t.elements[o],a=t.attributes[o]||{},s=Object.keys(t.styles.hasOwnProperty(o)?t.styles[o]:n[o]),i=s.reduce(function(l,u){return l[u]="",l},{});!K(r)||!Q(r)||(Object.assign(r.style,i),Object.keys(a).forEach(function(l){r.removeAttribute(l)}))})}}var xn={name:"applyStyles",enabled:!0,phase:"write",fn:Hr,effect:jr,requires:["computeStyles"]};function Y(e){return e.split("-")[0]}var fe=Math.max,Ye=Math.min,Ee=Math.round;function Te(e,t){t===void 0&&(t=!1);var n=e.getBoundingClientRect(),o=1,r=1;if(K(e)&&t){var a=e.offsetHeight,s=e.offsetWidth;s>0&&(o=Ee(n.width)/s||1),a>0&&(r=Ee(n.height)/a||1)}return{width:n.width/o,height:n.height/r,top:n.top/r,right:n.right/o,bottom:n.bottom/r,left:n.left/o,x:n.left/o,y:n.top/r}}function Ot(e){var t=Te(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 In(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Tt(n)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function oe(e){return Z(e).getComputedStyle(e)}function Ur(e){return["table","td","th"].indexOf(Q(e))>=0}function ie(e){return((we(e)?e.ownerDocument:e.document)||window.document).documentElement}function Qe(e){return Q(e)==="html"?e:e.assignedSlot||e.parentNode||(Tt(e)?e.host:null)||ie(e)}function rn(e){return!K(e)||oe(e).position==="fixed"?null:e.offsetParent}function Kr(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&K(e)){var o=oe(e);if(o.position==="fixed")return null}var r=Qe(e);for(Tt(r)&&(r=r.host);K(r)&&["html","body"].indexOf(Q(r))<0;){var a=oe(r);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return r;r=r.parentNode}return null}function De(e){for(var t=Z(e),n=rn(e);n&&Ur(n)&&oe(n).position==="static";)n=rn(n);return n&&(Q(n)==="html"||Q(n)==="body"&&oe(n).position==="static")?t:n||Kr(e)||t}function Ct(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Ie(e,t,n){return fe(e,Ye(t,n))}function Wr(e,t,n){var o=Ie(e,t,n);return o>n?n:o}function Ln(){return{top:0,right:0,bottom:0,left:0}}function Bn(e){return Object.assign({},Ln(),e)}function Mn(e,t){return t.reduce(function(n,o){return n[o]=e,n},{})}var qr=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,Bn(typeof e!="number"?e:Mn(e,Ne))};function zr(e){var t,n=e.state,o=e.name,r=e.options,a=n.elements.arrow,s=n.modifiersData.popperOffsets,i=Y(n.placement),l=Ct(i),u=[U,q].indexOf(i)>=0,v=u?"height":"width";if(!(!a||!s)){var g=qr(r.padding,n),m=Ot(a),h=l==="y"?j:U,c=l==="y"?W:q,f=n.rects.reference[v]+n.rects.reference[l]-s[l]-n.rects.popper[v],w=s[l]-n.rects.reference[l],y=De(a),E=y?l==="y"?y.clientHeight||0:y.clientWidth||0:0,p=f/2-w/2,b=g[h],P=E-m[v]-g[c],A=E/2-m[v]/2+p,O=Ie(b,A,P),C=l;n.modifiersData[o]=(t={},t[C]=O,t.centerOffset=O-A,t)}}function Vr(e){var t=e.state,n=e.options,o=n.element,r=o===void 0?"[data-popper-arrow]":o;r!=null&&(typeof r=="string"&&(r=t.elements.popper.querySelector(r),!r)||!In(t.elements.popper,r)||(t.elements.arrow=r))}var Gr={name:"arrow",enabled:!0,phase:"main",fn:zr,effect:Vr,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Oe(e){return e.split("-")[1]}var Zr={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Jr(e){var t=e.x,n=e.y,o=window,r=o.devicePixelRatio||1;return{x:Ee(t*r)/r||0,y:Ee(n*r)/r||0}}function an(e){var t,n=e.popper,o=e.popperRect,r=e.placement,a=e.variation,s=e.offsets,i=e.position,l=e.gpuAcceleration,u=e.adaptive,v=e.roundOffsets,g=e.isFixed,m=s.x,h=m===void 0?0:m,c=s.y,f=c===void 0?0:c,w=typeof v=="function"?v({x:h,y:f}):{x:h,y:f};h=w.x,f=w.y;var y=s.hasOwnProperty("x"),E=s.hasOwnProperty("y"),p=U,b=j,P=window;if(u){var A=De(n),O="clientHeight",C="clientWidth";if(A===Z(n)&&(A=ie(n),oe(A).position!=="static"&&i==="absolute"&&(O="scrollHeight",C="scrollWidth")),A=A,r===j||(r===U||r===q)&&a===Me){b=W;var F=g&&A===P&&P.visualViewport?P.visualViewport.height:A[O];f-=F-o.height,f*=l?1:-1}if(r===U||(r===j||r===W)&&a===Me){p=q;var _=g&&A===P&&P.visualViewport?P.visualViewport.width:A[C];h-=_-o.width,h*=l?1:-1}}var I=Object.assign({position:i},u&&Zr),S=v===!0?Jr({x:h,y:f}):{x:h,y:f};if(h=S.x,f=S.y,l){var M;return Object.assign({},I,(M={},M[b]=E?"0":"",M[p]=y?"0":"",M.transform=(P.devicePixelRatio||1)<=1?"translate("+h+"px, "+f+"px)":"translate3d("+h+"px, "+f+"px, 0)",M))}return Object.assign({},I,(t={},t[b]=E?f+"px":"",t[p]=y?h+"px":"",t.transform="",t))}function Yr(e){var t=e.state,n=e.options,o=n.gpuAcceleration,r=o===void 0?!0:o,a=n.adaptive,s=a===void 0?!0:a,i=n.roundOffsets,l=i===void 0?!0:i,u={placement:Y(t.placement),variation:Oe(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,an(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,an(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var kn={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Yr,data:{}},ze={passive:!0};function Xr(e){var t=e.state,n=e.instance,o=e.options,r=o.scroll,a=r===void 0?!0:r,s=o.resize,i=s===void 0?!0:s,l=Z(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&u.forEach(function(v){v.addEventListener("scroll",n.update,ze)}),i&&l.addEventListener("resize",n.update,ze),function(){a&&u.forEach(function(v){v.removeEventListener("scroll",n.update,ze)}),i&&l.removeEventListener("resize",n.update,ze)}}var Nn={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Xr,data:{}},Qr={left:"right",right:"left",bottom:"top",top:"bottom"};function Ve(e){return e.replace(/left|right|bottom|top/g,function(t){return Qr[t]})}var ea={start:"end",end:"start"};function sn(e){return e.replace(/start|end/g,function(t){return ea[t]})}function Pt(e){var t=Z(e),n=t.pageXOffset,o=t.pageYOffset;return{scrollLeft:n,scrollTop:o}}function At(e){return Te(ie(e)).left+Pt(e).scrollLeft}function ta(e){var t=Z(e),n=ie(e),o=t.visualViewport,r=n.clientWidth,a=n.clientHeight,s=0,i=0;return o&&(r=o.width,a=o.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(s=o.offsetLeft,i=o.offsetTop)),{width:r,height:a,x:s+At(e),y:i}}function na(e){var t,n=ie(e),o=Pt(e),r=(t=e.ownerDocument)==null?void 0:t.body,a=fe(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),s=fe(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),i=-o.scrollLeft+At(e),l=-o.scrollTop;return oe(r||n).direction==="rtl"&&(i+=fe(n.clientWidth,r?r.clientWidth:0)-a),{width:a,height:s,x:i,y:l}}function Rt(e){var t=oe(e),n=t.overflow,o=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+o)}function Dn(e){return["html","body","#document"].indexOf(Q(e))>=0?e.ownerDocument.body:K(e)&&Rt(e)?e:Dn(Qe(e))}function Le(e,t){var n;t===void 0&&(t=[]);var o=Dn(e),r=o===((n=e.ownerDocument)==null?void 0:n.body),a=Z(o),s=r?[a].concat(a.visualViewport||[],Rt(o)?o:[]):o,i=t.concat(s);return r?i:i.concat(Le(Qe(s)))}function lt(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function oa(e){var t=Te(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 un(e,t){return t===_n?lt(ta(e)):we(t)?oa(t):lt(na(ie(e)))}function ra(e){var t=Le(Qe(e)),n=["absolute","fixed"].indexOf(oe(e).position)>=0,o=n&&K(e)?De(e):e;return we(o)?t.filter(function(r){return we(r)&&In(r,o)&&Q(r)!=="body"}):[]}function aa(e,t,n){var o=t==="clippingParents"?ra(e):[].concat(t),r=[].concat(o,[n]),a=r[0],s=r.reduce(function(i,l){var u=un(e,l);return i.top=fe(u.top,i.top),i.right=Ye(u.right,i.right),i.bottom=Ye(u.bottom,i.bottom),i.left=fe(u.left,i.left),i},un(e,a));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function $n(e){var t=e.reference,n=e.element,o=e.placement,r=o?Y(o):null,a=o?Oe(o):null,s=t.x+t.width/2-n.width/2,i=t.y+t.height/2-n.height/2,l;switch(r){case j:l={x:s,y:t.y-n.height};break;case W:l={x:s,y:t.y+t.height};break;case q:l={x:t.x+t.width,y:i};break;case U:l={x:t.x-n.width,y:i};break;default:l={x:t.x,y:t.y}}var u=r?Ct(r):null;if(u!=null){var v=u==="y"?"height":"width";switch(a){case ye:l[u]=l[u]-(t[v]/2-n[v]/2);break;case Me:l[u]=l[u]+(t[v]/2-n[v]/2);break}}return l}function ke(e,t){t===void 0&&(t={});var n=t,o=n.placement,r=o===void 0?e.placement:o,a=n.boundary,s=a===void 0?Sr:a,i=n.rootBoundary,l=i===void 0?_n:i,u=n.elementContext,v=u===void 0?Se:u,g=n.altBoundary,m=g===void 0?!1:g,h=n.padding,c=h===void 0?0:h,f=Bn(typeof c!="number"?c:Mn(c,Ne)),w=v===Se?Fr:Se,y=e.rects.popper,E=e.elements[m?w:v],p=aa(we(E)?E:E.contextElement||ie(e.elements.popper),s,l),b=Te(e.elements.reference),P=$n({reference:b,element:y,placement:r}),A=lt(Object.assign({},y,P)),O=v===Se?A:b,C={top:p.top-O.top+f.top,bottom:O.bottom-p.bottom+f.bottom,left:p.left-O.left+f.left,right:O.right-p.right+f.right},F=e.modifiersData.offset;if(v===Se&&F){var _=F[r];Object.keys(C).forEach(function(I){var S=[q,W].indexOf(I)>=0?1:-1,M=[j,W].indexOf(I)>=0?"y":"x";C[I]+=_[M]*S})}return C}function sa(e,t){t===void 0&&(t={});var n=t,o=n.placement,r=n.boundary,a=n.rootBoundary,s=n.padding,i=n.flipVariations,l=n.allowedAutoPlacements,u=l===void 0?Et:l,v=Oe(o),g=v?i?on:on.filter(function(c){return Oe(c)===v}):Ne,m=g.filter(function(c){return u.indexOf(c)>=0});m.length===0&&(m=g);var h=m.reduce(function(c,f){return c[f]=ke(e,{placement:f,boundary:r,rootBoundary:a,padding:s})[Y(f)],c},{});return Object.keys(h).sort(function(c,f){return h[c]-h[f]})}function ia(e){if(Y(e)===wt)return[];var t=Ve(e);return[sn(e),t,sn(t)]}function ua(e){var t=e.state,n=e.options,o=e.name;if(!t.modifiersData[o]._skip){for(var r=n.mainAxis,a=r===void 0?!0:r,s=n.altAxis,i=s===void 0?!0:s,l=n.fallbackPlacements,u=n.padding,v=n.boundary,g=n.rootBoundary,m=n.altBoundary,h=n.flipVariations,c=h===void 0?!0:h,f=n.allowedAutoPlacements,w=t.options.placement,y=Y(w),E=y===w,p=l||(E||!c?[Ve(w)]:ia(w)),b=[w].concat(p).reduce(function(ue,ee){return ue.concat(Y(ee)===wt?sa(t,{placement:ee,boundary:v,rootBoundary:g,padding:u,flipVariations:c,allowedAutoPlacements:f}):ee)},[]),P=t.rects.reference,A=t.rects.popper,O=new Map,C=!0,F=b[0],_=0;_<b.length;_++){var I=b[_],S=Y(I),M=Oe(I)===ye,H=[j,W].indexOf(S)>=0,z=H?"width":"height",L=ke(t,{placement:I,boundary:v,rootBoundary:g,altBoundary:m,padding:u}),D=H?M?q:U:M?W:j;P[z]>A[z]&&(D=Ve(D));var T=Ve(D),k=[];if(a&&k.push(L[S]<=0),i&&k.push(L[D]<=0,L[T]<=0),k.every(function(ue){return ue})){F=I,C=!1;break}O.set(I,k)}if(C)for(var J=c?3:1,Pe=function(ue){var ee=b.find(function(He){var Re=O.get(He);if(Re)return Re.slice(0,ue).every(function(ge){return ge})});if(ee)return F=ee,"break"},Ae=J;Ae>0;Ae--){var $e=Pe(Ae);if($e==="break")break}t.placement!==F&&(t.modifiersData[o]._skip=!0,t.placement=F,t.reset=!0)}}var la={name:"flip",enabled:!0,phase:"main",fn:ua,requiresIfExists:["offset"],data:{_skip:!1}};function ln(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 cn(e){return[j,q,W,U].some(function(t){return e[t]>=0})}function ca(e){var t=e.state,n=e.name,o=t.rects.reference,r=t.rects.popper,a=t.modifiersData.preventOverflow,s=ke(t,{elementContext:"reference"}),i=ke(t,{altBoundary:!0}),l=ln(s,o),u=ln(i,r,a),v=cn(l),g=cn(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:v,hasPopperEscaped:g},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":v,"data-popper-escaped":g})}var fa={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:ca};function pa(e,t,n){var o=Y(e),r=[U,j].indexOf(o)>=0?-1:1,a=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=a[0],i=a[1];return s=s||0,i=(i||0)*r,[U,q].indexOf(o)>=0?{x:i,y:s}:{x:s,y:i}}function da(e){var t=e.state,n=e.options,o=e.name,r=n.offset,a=r===void 0?[0,0]:r,s=Et.reduce(function(v,g){return v[g]=pa(g,t.rects,a),v},{}),i=s[t.placement],l=i.x,u=i.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[o]=s}var va={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:da};function ga(e){var t=e.state,n=e.name;t.modifiersData[n]=$n({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}var Hn={name:"popperOffsets",enabled:!0,phase:"read",fn:ga,data:{}};function ma(e){return e==="x"?"y":"x"}function ha(e){var t=e.state,n=e.options,o=e.name,r=n.mainAxis,a=r===void 0?!0:r,s=n.altAxis,i=s===void 0?!1:s,l=n.boundary,u=n.rootBoundary,v=n.altBoundary,g=n.padding,m=n.tether,h=m===void 0?!0:m,c=n.tetherOffset,f=c===void 0?0:c,w=ke(t,{boundary:l,rootBoundary:u,padding:g,altBoundary:v}),y=Y(t.placement),E=Oe(t.placement),p=!E,b=Ct(y),P=ma(b),A=t.modifiersData.popperOffsets,O=t.rects.reference,C=t.rects.popper,F=typeof f=="function"?f(Object.assign({},t.rects,{placement:t.placement})):f,_=typeof F=="number"?{mainAxis:F,altAxis:F}:Object.assign({mainAxis:0,altAxis:0},F),I=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,S={x:0,y:0};if(A){if(a){var M,H=b==="y"?j:U,z=b==="y"?W:q,L=b==="y"?"height":"width",D=A[b],T=D+w[H],k=D-w[z],J=h?-C[L]/2:0,Pe=E===ye?O[L]:C[L],Ae=E===ye?-C[L]:-O[L],$e=t.elements.arrow,ue=h&&$e?Ot($e):{width:0,height:0},ee=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Ln(),He=ee[H],Re=ee[z],ge=Ie(0,O[L],ue[L]),Gn=p?O[L]/2-J-ge-He-_.mainAxis:Pe-ge-He-_.mainAxis,Zn=p?-O[L]/2+J+ge+Re+_.mainAxis:Ae+ge+Re+_.mainAxis,et=t.elements.arrow&&De(t.elements.arrow),Jn=et?b==="y"?et.clientTop||0:et.clientLeft||0:0,_t=(M=I==null?void 0:I[b])!=null?M:0,Yn=D+Gn-_t-Jn,Xn=D+Zn-_t,xt=Ie(h?Ye(T,Yn):T,D,h?fe(k,Xn):k);A[b]=xt,S[b]=xt-D}if(i){var It,Qn=b==="x"?j:U,eo=b==="x"?W:q,le=A[P],je=P==="y"?"height":"width",Lt=le+w[Qn],Bt=le-w[eo],tt=[j,U].indexOf(y)!==-1,Mt=(It=I==null?void 0:I[P])!=null?It:0,kt=tt?Lt:le-O[je]-C[je]-Mt+_.altAxis,Nt=tt?le+O[je]+C[je]-Mt-_.altAxis:Bt,Dt=h&&tt?Wr(kt,le,Nt):Ie(h?kt:Lt,le,h?Nt:Bt);A[P]=Dt,S[P]=Dt-le}t.modifiersData[o]=S}}var ba={name:"preventOverflow",enabled:!0,phase:"main",fn:ha,requiresIfExists:["offset"]};function ya(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function wa(e){return e===Z(e)||!K(e)?Pt(e):ya(e)}function Ea(e){var t=e.getBoundingClientRect(),n=Ee(t.width)/e.offsetWidth||1,o=Ee(t.height)/e.offsetHeight||1;return n!==1||o!==1}function Ta(e,t,n){n===void 0&&(n=!1);var o=K(t),r=K(t)&&Ea(t),a=ie(t),s=Te(e,r),i={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(o||!o&&!n)&&((Q(t)!=="body"||Rt(a))&&(i=wa(t)),K(t)?(l=Te(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):a&&(l.x=At(a))),{x:s.left+i.scrollLeft-l.x,y:s.top+i.scrollTop-l.y,width:s.width,height:s.height}}function Oa(e){var t=new Map,n=new Set,o=[];e.forEach(function(a){t.set(a.name,a)});function r(a){n.add(a.name);var s=[].concat(a.requires||[],a.requiresIfExists||[]);s.forEach(function(i){if(!n.has(i)){var l=t.get(i);l&&r(l)}}),o.push(a)}return e.forEach(function(a){n.has(a.name)||r(a)}),o}function Ca(e){var t=Oa(e);return $r.reduce(function(n,o){return n.concat(t.filter(function(r){return r.phase===o}))},[])}function Pa(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Aa(e){var t=e.reduce(function(n,o){var r=n[o.name];return n[o.name]=r?Object.assign({},r,o,{options:Object.assign({},r.options,o.options),data:Object.assign({},r.data,o.data)}):o,n},{});return Object.keys(t).map(function(n){return t[n]})}var fn={placement:"bottom",modifiers:[],strategy:"absolute"};function pn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(o){return!(o&&typeof o.getBoundingClientRect=="function")})}function St(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,o=n===void 0?[]:n,r=t.defaultOptions,a=r===void 0?fn:r;return function(s,i,l){l===void 0&&(l=a);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},fn,a),modifiersData:{},elements:{reference:s,popper:i},attributes:{},styles:{}},v=[],g=!1,m={state:u,setOptions:function(f){var w=typeof f=="function"?f(u.options):f;c(),u.options=Object.assign({},a,u.options,w),u.scrollParents={reference:we(s)?Le(s):s.contextElement?Le(s.contextElement):[],popper:Le(i)};var y=Ca(Aa([].concat(o,u.options.modifiers)));return u.orderedModifiers=y.filter(function(E){return E.enabled}),h(),m.update()},forceUpdate:function(){if(!g){var f=u.elements,w=f.reference,y=f.popper;if(pn(w,y)){u.rects={reference:Ta(w,De(y),u.options.strategy==="fixed"),popper:Ot(y)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(C){return u.modifiersData[C.name]=Object.assign({},C.data)});for(var E=0;E<u.orderedModifiers.length;E++){if(u.reset===!0){u.reset=!1,E=-1;continue}var p=u.orderedModifiers[E],b=p.fn,P=p.options,A=P===void 0?{}:P,O=p.name;typeof b=="function"&&(u=b({state:u,options:A,name:O,instance:m})||u)}}}},update:Pa(function(){return new Promise(function(f){m.forceUpdate(),f(u)})}),destroy:function(){c(),g=!0}};if(!pn(s,i))return m;m.setOptions(l).then(function(f){!g&&l.onFirstUpdate&&l.onFirstUpdate(f)});function h(){u.orderedModifiers.forEach(function(f){var w=f.name,y=f.options,E=y===void 0?{}:y,p=f.effect;if(typeof p=="function"){var b=p({state:u,name:w,instance:m,options:E}),P=function(){};v.push(b||P)}})}function c(){v.forEach(function(f){return f()}),v=[]}return m}}St();var Ra=[Nn,Hn,kn,xn];St({defaultModifiers:Ra});var Sa=[Nn,Hn,kn,xn,va,la,ba,Gr,fa],Fa=St({defaultModifiers:Sa});const jn=G({arrowOffset:{type:Number,default:5}}),_a=G({ariaLabel:String,ariaOrientation:{type:String,values:["horizontal","vertical","undefined"]},ariaControls:String}),Un=e=>er(_a,e),xa=["fixed","absolute"],Ia=G({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:x(Array),default:void 0},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:Et,default:"bottom"},popperOptions:{type:x(Object),default:()=>({})},strategy:{type:String,values:xa,default:"absolute"}}),Kn=G({...Ia,...jn,id:String,style:{type:x([String,Array,Object])},className:{type:x([String,Array,Object])},effect:{type:x(String),default:"dark"},visible:Boolean,enterable:{type:Boolean,default:!0},pure:Boolean,focusOnShow:Boolean,trapping:Boolean,popperClass:{type:x([String,Array,Object])},popperStyle:{type:x([String,Array,Object])},referenceEl:{type:x(Object)},triggerTargetEl:{type:x(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},virtualTriggering:Boolean,zIndex:Number,...Un(["ariaLabel"]),loop:Boolean}),La={mouseenter:e=>e instanceof MouseEvent,mouseleave:e=>e instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0},Ba=(e,t)=>{const n=B(!1),o=B();return{focusStartRef:o,trapped:n,onFocusAfterReleased:u=>{var v;((v=u.detail)==null?void 0:v.focusReason)!=="pointer"&&(o.value="first",t("blur"))},onFocusAfterTrapped:()=>{t("focus")},onFocusInTrap:u=>{e.visible&&!n.value&&(u.target&&(o.value=u.target),n.value=!0)},onFocusoutPrevented:u=>{e.trapping||(u.detail.focusReason==="pointer"&&u.preventDefault(),n.value=!1)},onReleaseRequested:()=>{n.value=!1,t("close")}}},Ma=(e,t=[])=>{const{placement:n,strategy:o,popperOptions:r}=e,a={placement:n,strategy:o,...r,modifiers:[...Na(e),...t]};return Da(a,r==null?void 0:r.modifiers),a},ka=e=>{if(ce)return bn(e)};function Na(e){const{offset:t,gpuAcceleration:n,fallbackPlacements:o}=e;return[{name:"offset",options:{offset:[0,t??12]}},{name:"preventOverflow",options:{padding:{top:0,bottom:0,left:0,right:0}}},{name:"flip",options:{padding:5,fallbackPlacements:o}},{name:"computeStyles",options:{gpuAcceleration:n}}]}function Da(e,t){t&&(e.modifiers=[...e.modifiers,...t??[]])}const $a=(e,t,n={})=>{const o={name:"updateState",enabled:!0,phase:"write",fn:({state:l})=>{const u=Ha(l);Object.assign(s.value,u)},requires:["computeStyles"]},r=R(()=>{const{onFirstUpdate:l,placement:u,strategy:v,modifiers:g}=d(n);return{onFirstUpdate:l,placement:u||"bottom",strategy:v||"absolute",modifiers:[...g||[],o,{name:"applyStyles",enabled:!1}]}}),a=vo(),s=B({styles:{popper:{position:d(r).strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),i=()=>{a.value&&(a.value.destroy(),a.value=void 0)};return N(r,l=>{const u=d(a);u&&u.setOptions(l)},{deep:!0}),N([e,t],([l,u])=>{i(),!(!l||!u)&&(a.value=Fa(l,u,d(r)))}),se(()=>{i()}),{state:R(()=>{var l;return{...((l=d(a))==null?void 0:l.state)||{}}}),styles:R(()=>d(s).styles),attributes:R(()=>d(s).attributes),update:()=>{var l;return(l=d(a))==null?void 0:l.update()},forceUpdate:()=>{var l;return(l=d(a))==null?void 0:l.forceUpdate()},instanceRef:R(()=>d(a))}};function Ha(e){const t=Object.keys(e.elements),n=jt(t.map(r=>[r,e.styles[r]||{}])),o=jt(t.map(r=>[r,e.attributes[r]]));return{styles:n,attributes:o}}const ja=0,Ua=e=>{const{popperInstanceRef:t,contentRef:n,triggerRef:o,role:r}=de(mt,void 0),a=B(),s=R(()=>e.arrowOffset),i=R(()=>({name:"eventListeners",enabled:!!e.visible})),l=R(()=>{var y;const E=d(a),p=(y=d(s))!=null?y:ja;return{name:"arrow",enabled:!Jo(E),options:{element:E,padding:p}}}),u=R(()=>({onFirstUpdate:()=>{c()},...Ma(e,[d(l),d(i)])})),v=R(()=>ka(e.referenceEl)||d(o)),{attributes:g,state:m,styles:h,update:c,forceUpdate:f,instanceRef:w}=$a(v,n,u);return N(w,y=>t.value=y,{flush:"sync"}),ve(()=>{N(()=>{var y,E;return(E=(y=d(v))==null?void 0:y.getBoundingClientRect)==null?void 0:E.call(y)},()=>{c()})}),{attributes:g,arrowRef:a,contentRef:n,instanceRef:w,state:m,styles:h,role:r,forceUpdate:f,update:c}},Ka=(e,{attributes:t,styles:n,role:o})=>{const{nextZIndex:r}=Oo(),a=Ce("popper"),s=R(()=>d(t).popper),i=B(it(e.zIndex)?e.zIndex:r()),l=R(()=>[a.b(),a.is("pure",e.pure),a.is(e.effect),e.popperClass]),u=R(()=>[{zIndex:d(i)},d(n).popper,e.popperStyle||{}]),v=R(()=>o.value==="dialog"?"false":void 0),g=R(()=>d(n).arrow||{});return{ariaModal:v,arrowStyle:g,contentAttrs:s,contentClass:l,contentStyle:u,contentZIndex:i,updateZIndex:()=>{i.value=it(e.zIndex)?e.zIndex:r()}}},Wa=$({name:"ElPopperContent"}),qa=$({...Wa,props:Kn,emits:La,setup(e,{expose:t,emit:n}){const o=e,{focusStartRef:r,trapped:a,onFocusAfterReleased:s,onFocusAfterTrapped:i,onFocusInTrap:l,onFocusoutPrevented:u,onReleaseRequested:v}=Ba(o,n),{attributes:g,arrowRef:m,contentRef:h,styles:c,instanceRef:f,role:w,update:y}=Ua(o),{ariaModal:E,arrowStyle:p,contentAttrs:b,contentClass:P,contentStyle:A,updateZIndex:O}=Ka(o,{styles:c,attributes:g,role:w}),C=de(Wt,void 0);be(Cn,{arrowStyle:p,arrowRef:m}),C&&be(Wt,{...C,addInputId:at,removeInputId:at});let F;const _=(S=!0)=>{y(),S&&O()},I=()=>{_(!1),o.visible&&o.focusOnShow?a.value=!0:o.visible===!1&&(a.value=!1)};return ve(()=>{N(()=>o.triggerTargetEl,(S,M)=>{F==null||F(),F=void 0;const H=d(S||h.value),z=d(M||h.value);xe(H)&&(F=N([w,()=>o.ariaLabel,E,()=>o.id],L=>{["role","aria-label","aria-modal","id"].forEach((D,T)=>{gt(L[T])?H.removeAttribute(D):H.setAttribute(D,L[T])})},{immediate:!0})),z!==H&&xe(z)&&["role","aria-label","aria-modal","id"].forEach(L=>{z.removeAttribute(L)})},{immediate:!0}),N(()=>o.visible,I,{immediate:!0})}),se(()=>{F==null||F(),F=void 0}),t({popperContentRef:h,popperInstanceRef:f,updatePopper:_,contentStyle:A}),(S,M)=>(V(),Ge("div",vt({ref_key:"contentRef",ref:h},d(b),{style:d(A),class:d(P),tabindex:"-1",onMouseenter:H=>S.$emit("mouseenter",H),onMouseleave:H=>S.$emit("mouseleave",H)}),[Be(d(Rr),{loop:S.loop,trapped:d(a),"trap-on-focus-in":!0,"focus-trap-el":d(h),"focus-start-el":d(r),onFocusAfterTrapped:d(i),onFocusAfterReleased:d(s),onFocusin:d(l),onFocusoutPrevented:d(u),onReleaseRequested:d(v)},{default:ne(()=>[X(S.$slots,"default")]),_:3},8,["loop","trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusin","onFocusoutPrevented","onReleaseRequested"])],16,["onMouseenter","onMouseleave"]))}});var za=re(qa,[["__file","content.vue"]]);const Va=dt(rr),Ft=Symbol("elTooltip"),Wn=G({to:{type:x([String,Object]),required:!0},disabled:Boolean});function dn(){let e;const t=(o,r)=>{n(),e=window.setTimeout(o,r)},n=()=>window.clearTimeout(e);return Co(()=>n()),{registerTimeout:t,cancelTimeout:n}}const Ga=G({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),Za=({showAfter:e,hideAfter:t,autoClose:n,open:o,close:r})=>{const{registerTimeout:a}=dn(),{registerTimeout:s,cancelTimeout:i}=dn();return{onOpen:(v,g=d(e))=>{a(()=>{o(v);const m=d(n);it(m)&&m>0&&s(()=>{r(v)},m)},g)},onClose:(v,g=d(t))=>{i(),a(()=>{r(v)},g)}}},qn=G({...Ga,...Kn,appendTo:{type:Wn.to.type},content:{type:String,default:""},rawContent:Boolean,persistent:Boolean,visible:{type:x(Boolean),default:null},transition:String,teleported:{type:Boolean,default:!0},disabled:Boolean,...Un(["ariaLabel"])}),zn=G({...An,disabled:Boolean,trigger:{type:x([String,Array]),default:"hover"},triggerKeys:{type:x(Array),default:()=>[_e.enter,_e.numpadEnter,_e.space]},focusOnTarget:Boolean}),Ja=yn({type:x(Boolean),default:null}),Ya=yn({type:x(Function)}),Xa=e=>{const t=`update:${e}`,n=`onUpdate:${e}`,o=[t],r={[e]:Ja,[n]:Ya};return{useModelToggle:({indicator:s,toggleReason:i,shouldHideWhenRouteChanges:l,shouldProceed:u,onShow:v,onHide:g})=>{const m=go(),{emit:h}=m,c=m.props,f=R(()=>Ue(c[n])),w=R(()=>c[e]===null),y=O=>{s.value!==!0&&(s.value=!0,i&&(i.value=O),Ue(v)&&v(O))},E=O=>{s.value!==!1&&(s.value=!1,i&&(i.value=O),Ue(g)&&g(O))},p=O=>{if(c.disabled===!0||Ue(u)&&!u())return;const C=f.value&&ce;C&&h(t,!0),(w.value||!C)&&y(O)},b=O=>{if(c.disabled===!0||!ce)return;const C=f.value&&ce;C&&h(t,!1),(w.value||!C)&&E(O)},P=O=>{On(O)&&(c.disabled&&O?f.value&&h(t,!1):s.value!==O&&(O?y():E()))},A=()=>{s.value?b():p()};return N(()=>c[e],P),l&&m.appContext.config.globalProperties.$route!==void 0&&N(()=>({...m.proxy.$route}),()=>{l.value&&s.value&&b()}),ve(()=>{P(c[e])}),{hide:b,show:p,toggle:A,hasUpdateHandler:f}},useModelToggleProps:r,useModelToggleEmits:o}},{useModelToggleProps:Qa,useModelToggleEmits:es,useModelToggle:ts}=Xa("visible"),ns=G({...Pn,...Qa,...qn,...zn,...jn,showArrow:{type:Boolean,default:!0}}),os=[...es,"before-show","before-hide","show","hide","open","close"],ct=(e,t)=>Tn(e)?e.includes(t):e===t,me=(e,t,n)=>o=>{ct(d(e),t)&&n(o)},rs=$({name:"ElTooltipTrigger"}),as=$({...rs,props:zn,setup(e,{expose:t}){const n=e,o=Ce("tooltip"),{controlled:r,id:a,open:s,onOpen:i,onClose:l,onToggle:u}=de(Ft,void 0),v=B(null),g=()=>{if(d(r)||n.disabled)return!0},m=Fe(n,"trigger"),h=te(g,me(m,"hover",b=>{i(b),n.focusOnTarget&&b.target&&st(()=>{ht(b.target,{preventScroll:!0})})})),c=te(g,me(m,"hover",l)),f=te(g,me(m,"click",b=>{b.button===0&&u(b)})),w=te(g,me(m,"focus",i)),y=te(g,me(m,"focus",l)),E=te(g,me(m,"contextmenu",b=>{b.preventDefault(),u(b)})),p=te(g,b=>{const P=pt(b);n.triggerKeys.includes(P)&&(b.preventDefault(),u(b))});return t({triggerRef:v}),(b,P)=>(V(),pe(d(dr),{id:d(a),"virtual-ref":b.virtualRef,open:d(s),"virtual-triggering":b.virtualTriggering,class:wn(d(o).e("trigger")),onBlur:d(y),onClick:d(f),onContextmenu:d(E),onFocus:d(w),onMouseenter:d(h),onMouseleave:d(c),onKeydown:d(p)},{default:ne(()=>[X(b.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}});var ss=re(as,[["__file","trigger.vue"]]);const is=$({__name:"teleport",props:Wn,setup(e){return(t,n)=>t.disabled?X(t.$slots,"default",{key:0}):(V(),pe(mo,{key:1,to:t.to},[X(t.$slots,"default")],8,["to"]))}});var us=re(is,[["__file","teleport.vue"]]);const ls=dt(us),Vn=()=>{const e=Po(),t=Ao(),n=R(()=>`${e.value}-popper-container-${t.prefix}`),o=R(()=>`#${n.value}`);return{id:n,selector:o}},cs=e=>{const t=document.createElement("div");return t.id=e,document.body.appendChild(t),t},fs=()=>{const{id:e,selector:t}=Vn();return ho(()=>{ce&&(document.body.querySelector(t.value)||cs(e.value))}),{id:e,selector:t}},ps=e=>!e&&e!==0?[]:Tn(e)?e:[e],ds=$({name:"ElTooltipContent",inheritAttrs:!1}),vs=$({...ds,props:qn,setup(e,{expose:t}){const n=e,{selector:o}=Vn(),r=Ce("tooltip"),a=B(),s=Ro(()=>{var T;return(T=a.value)==null?void 0:T.popperContentRef});let i;const{controlled:l,id:u,open:v,trigger:g,onClose:m,onOpen:h,onShow:c,onHide:f,onBeforeShow:w,onBeforeHide:y}=de(Ft,void 0),E=R(()=>n.transition||`${r.namespace.value}-fade-in-linear`),p=R(()=>n.persistent);se(()=>{i==null||i()});const b=R(()=>d(p)?!0:d(v)),P=R(()=>n.disabled?!1:d(v)),A=R(()=>n.appendTo||o.value),O=R(()=>{var T;return(T=n.style)!=null?T:{}}),C=B(!0),F=()=>{f(),D()&&ht(document.body,{preventScroll:!0}),C.value=!0},_=()=>{if(d(l))return!0},I=te(_,()=>{n.enterable&&ct(d(g),"hover")&&h()}),S=te(_,()=>{ct(d(g),"hover")&&m()}),M=()=>{var T,k;(k=(T=a.value)==null?void 0:T.updatePopper)==null||k.call(T),w==null||w()},H=()=>{y==null||y()},z=()=>{c()},L=()=>{n.virtualTriggering||m()},D=T=>{var k;const J=(k=a.value)==null?void 0:k.popperContentRef,Pe=(T==null?void 0:T.relatedTarget)||document.activeElement;return J==null?void 0:J.contains(Pe)};return N(()=>d(v),T=>{T?(C.value=!1,i=so(s,()=>{if(d(l))return;ps(d(g)).every(J=>J!=="hover"&&J!=="focus")&&m()},{detectIframe:!0})):i==null||i()},{flush:"post"}),N(()=>n.content,()=>{var T,k;(k=(T=a.value)==null?void 0:T.updatePopper)==null||k.call(T)}),t({contentRef:a,isFocusInsideContent:D}),(T,k)=>(V(),pe(d(ls),{disabled:!T.teleported,to:d(A)},{default:ne(()=>[d(b)||!C.value?(V(),pe(bo,{key:0,name:d(E),appear:!d(p),onAfterLeave:F,onBeforeEnter:M,onAfterEnter:z,onBeforeLeave:H,persisted:""},{default:ne(()=>[En(Be(d(za),vt({id:d(u),ref_key:"contentRef",ref:a},T.$attrs,{"aria-label":T.ariaLabel,"aria-hidden":C.value,"boundaries-padding":T.boundariesPadding,"fallback-placements":T.fallbackPlacements,"gpu-acceleration":T.gpuAcceleration,offset:T.offset,placement:T.placement,"popper-options":T.popperOptions,"arrow-offset":T.arrowOffset,strategy:T.strategy,effect:T.effect,enterable:T.enterable,pure:T.pure,"popper-class":T.popperClass,"popper-style":[T.popperStyle,d(O)],"reference-el":T.referenceEl,"trigger-target-el":T.triggerTargetEl,visible:d(P),"z-index":T.zIndex,loop:T.loop,onMouseenter:d(I),onMouseleave:d(S),onBlur:L,onClose:d(m)}),{default:ne(()=>[X(T.$slots,"default")]),_:3},16,["id","aria-label","aria-hidden","boundaries-padding","fallback-placements","gpu-acceleration","offset","placement","popper-options","arrow-offset","strategy","effect","enterable","pure","popper-class","popper-style","reference-el","trigger-target-el","visible","z-index","loop","onMouseenter","onMouseleave","onClose"]),[[yo,d(P)]])]),_:3},8,["name","appear"])):Ze("v-if",!0)]),_:3},8,["disabled","to"]))}});var gs=re(vs,[["__file","content.vue"]]);const ms=$({name:"ElTooltip"}),hs=$({...ms,props:ns,emits:os,setup(e,{expose:t,emit:n}){const o=e;fs();const r=Ce("tooltip"),a=So(),s=B(),i=B(),l=()=>{var p;const b=d(s);b&&((p=b.popperInstanceRef)==null||p.update())},u=B(!1),v=B(),{show:g,hide:m,hasUpdateHandler:h}=ts({indicator:u,toggleReason:v}),{onOpen:c,onClose:f}=Za({showAfter:Fe(o,"showAfter"),hideAfter:Fe(o,"hideAfter"),autoClose:Fe(o,"autoClose"),open:g,close:m}),w=R(()=>On(o.visible)&&!h.value),y=R(()=>[r.b(),o.popperClass]);be(Ft,{controlled:w,id:a,open:wo(u),trigger:Fe(o,"trigger"),onOpen:c,onClose:f,onToggle:p=>{d(u)?f(p):c(p)},onShow:()=>{n("show",v.value)},onHide:()=>{n("hide",v.value)},onBeforeShow:()=>{n("before-show",v.value)},onBeforeHide:()=>{n("before-hide",v.value)},updatePopper:l}),N(()=>o.disabled,p=>{p&&u.value&&(u.value=!1)});const E=p=>{var b;return(b=i.value)==null?void 0:b.isFocusInsideContent(p)};return Eo(()=>u.value&&m()),t({popperRef:s,contentRef:i,isFocusInsideContent:E,updatePopper:l,onOpen:c,onClose:f,hide:m}),(p,b)=>(V(),pe(d(Va),{ref_key:"popperRef",ref:s,role:p.role},{default:ne(()=>[Be(ss,{disabled:p.disabled,trigger:p.trigger,"trigger-keys":p.triggerKeys,"virtual-ref":p.virtualRef,"virtual-triggering":p.virtualTriggering,"focus-on-target":p.focusOnTarget},{default:ne(()=>[p.$slots.default?X(p.$slots,"default",{key:0}):Ze("v-if",!0)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering","focus-on-target"]),Be(gs,{ref_key:"contentRef",ref:i,"aria-label":p.ariaLabel,"boundaries-padding":p.boundariesPadding,content:p.content,disabled:p.disabled,effect:p.effect,enterable:p.enterable,"fallback-placements":p.fallbackPlacements,"hide-after":p.hideAfter,"gpu-acceleration":p.gpuAcceleration,offset:p.offset,persistent:p.persistent,"popper-class":d(y),"popper-style":p.popperStyle,placement:p.placement,"popper-options":p.popperOptions,"arrow-offset":p.arrowOffset,pure:p.pure,"raw-content":p.rawContent,"reference-el":p.referenceEl,"trigger-target-el":p.triggerTargetEl,"show-after":p.showAfter,strategy:p.strategy,teleported:p.teleported,transition:p.transition,"virtual-triggering":p.virtualTriggering,"z-index":p.zIndex,"append-to":p.appendTo,loop:p.loop},{default:ne(()=>[X(p.$slots,"content",{},()=>[p.rawContent?(V(),Ge("span",{key:0,innerHTML:p.content},null,8,["innerHTML"])):(V(),Ge("span",{key:1},To(p.content),1))]),p.showArrow?(V(),pe(d(ir),{key:0})):Ze("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","arrow-offset","pure","raw-content","reference-el","trigger-target-el","show-after","strategy","teleported","transition","virtual-triggering","z-index","append-to","loop"])]),_:3},8,["role"]))}});var bs=re(hs,[["__file","tooltip.vue"]]);const Os=dt(bs);export{Et as E,ut as a,gt as b,qn as c,Os as d,Zo as h,Fo as i,Un as u};
