import{aQ as X,as as Ze,r as W,T as _e,G as j,z as K,au as et,p as C,g as V,aR as tt,f as we,ap as xe,b as u,aS as z,aT as me,aU as nt,aV as at,aW as st,y as T,C as se,c as f,F as lt,m as F,L as G,t as x,B as J,a as it,e as Be,k as ot,at as rt,u as Ie,H as ut,aX as ct,d as Le,l as dt,aL as vt,i as ft,O as S,I as le,aY as mt,aZ as gt,a_ as bt,s as ht,aP as yt,W as Ct,M as Ee,Y as ge,ai as kt,a$ as pt,b0 as be,q as Pe,o as St,b1 as _t,b2 as he,w as wt}from"../../assets/main-CbsX0Voe.js";import{m as M,u as O,a as xt,b as Bt}from"./B4raF4nqxz_3h9gAYxiJ.js";const Ve=["top","bottom"],It=["start","end","left","right"];function Lt(e,t){let[a,n]=e.split(" ");return n||(n=X(Ve,a)?"start":X(It,a)?"top":"center"),{side:ye(a,t),align:ye(n,t)}}function ye(e,t){return e==="start"?t?"right":"left":e==="end"?t?"left":"right":e}function fn(e){return{side:{center:"center",top:"bottom",bottom:"top",left:"right",right:"left"}[e.side],align:e.align}}function mn(e){return{side:e.side,align:{center:"center",top:"bottom",bottom:"top",left:"right",right:"left"}[e.align]}}function gn(e){return{side:e.align,align:e.side}}function bn(e){return X(Ve,e.side)?"y":"x"}function Et(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"content";const a=Ze(),n=W();if(_e){const s=new ResizeObserver(l=>{e==null||e(l,s),l.length&&(t==="content"?n.value=l[0].contentRect:n.value=l[0].target.getBoundingClientRect())});j(()=>{s.disconnect()}),K(()=>a.el,(l,i)=>{i&&(s.unobserve(i),n.value=void 0),l&&s.observe(l)},{flush:"post"})}return{resizeRef:a,contentRect:et(n)}}const H=C({tag:{type:String,default:"div"}},"tag"),Pt=C({defaults:Object,disabled:Boolean,reset:[Number,String],root:[Boolean,String],scoped:Boolean},"VDefaultsProvider"),ee=V(!1)({name:"VDefaultsProvider",props:Pt(),setup(e,t){let{slots:a}=t;const{defaults:n,disabled:s,reset:l,root:i,scoped:d}=tt(e);return we(n,{reset:l,root:i,scoped:d,disabled:s}),()=>{var c;return(c=a.default)==null?void 0:c.call(a)}}});function re(e){return xe(()=>{const t=[],a={};if(e.value.background)if(me(e.value.background)){if(a.backgroundColor=e.value.background,!e.value.text&&nt(e.value.background)){const n=at(e.value.background);if(n.a==null||n.a===1){const s=st(n);a.color=s,a.caretColor=s}}}else t.push(`bg-${e.value.background}`);return e.value.text&&(me(e.value.text)?(a.color=e.value.text,a.caretColor=e.value.text):t.push(`text-${e.value.text}`)),{colorClasses:t,colorStyles:a}})}function Y(e,t){const a=u(()=>({text:z(e)?e.value:t?e[t]:null})),{colorClasses:n,colorStyles:s}=re(a);return{textColorClasses:n,textColorStyles:s}}function te(e,t){const a=u(()=>({background:z(e)?e.value:t?e[t]:null})),{colorClasses:n,colorStyles:s}=re(a);return{backgroundColorClasses:n,backgroundColorStyles:s}}const ue=C({rounded:{type:[Boolean,Number,String],default:void 0},tile:Boolean},"rounded");function ce(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:T();return{roundedClasses:u(()=>{const n=z(e)?e.value:e.rounded,s=z(e)?e.value:e.tile,l=[];if(n===!0||n==="")l.push(`${t}--rounded`);else if(typeof n=="string"||n===0)for(const i of String(n).split(" "))l.push(`rounded-${i}`);else(s||n===!1)&&l.push("rounded-0");return l})}}const Te=C({border:[Boolean,Number,String]},"border");function Re(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:T();return{borderClasses:u(()=>{const n=z(e)?e.value:e.border,s=[];if(n===!0||n==="")s.push(`${t}--border`);else if(typeof n=="string"||n===0)for(const l of String(n).split(" "))s.push(`border-${l}`);return s})}}const $e=C({elevation:{type:[Number,String],validator(e){const t=parseInt(e);return!isNaN(t)&&t>=0&&t<=24}}},"elevation");function Ne(e){return{elevationClasses:u(()=>{const a=z(e)?e.value:e.elevation,n=[];return a==null||n.push(`elevation-${a}`),n})}}const Vt=[null,"default","comfortable","compact"],ze=C({density:{type:String,default:"default",validator:e=>Vt.includes(e)}},"density");function Oe(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:T();return{densityClasses:u(()=>`${t}--density-${e.density}`)}}const Tt=["elevated","flat","tonal","outlined","text","plain"];function Rt(e,t){return f(lt,null,[e&&f("span",{key:"overlay",class:`${t}__overlay`},null),f("span",{key:"underlay",class:`${t}__underlay`},null)])}const Ae=C({color:String,variant:{type:String,default:"elevated",validator:e=>Tt.includes(e)}},"variant");function $t(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:T();const a=u(()=>{const{variant:l}=se(e);return`${t}--variant-${l}`}),{colorClasses:n,colorStyles:s}=re(u(()=>{const{variant:l,color:i}=se(e);return{[["elevated","flat"].includes(l)?"background":"text"]:i}}));return{colorClasses:n,colorStyles:s,variantClasses:a}}const De=C({baseColor:String,divided:Boolean,...Te(),...M(),...ze(),...$e(),...ue(),...H(),...F(),...Ae()},"VBtnGroup"),Ce=V()({name:"VBtnGroup",props:De(),setup(e,t){let{slots:a}=t;const{themeClasses:n}=G(e),{densityClasses:s}=Oe(e),{borderClasses:l}=Re(e),{elevationClasses:i}=Ne(e),{roundedClasses:d}=ce(e);we({VBtn:{height:"auto",baseColor:x(e,"baseColor"),color:x(e,"color"),density:x(e,"density"),flat:!0,variant:x(e,"variant")}}),O(()=>f(e.tag,{class:["v-btn-group",{"v-btn-group--divided":e.divided},n.value,l.value,s.value,i.value,d.value,e.class],style:e.style},a))}}),Nt=C({modelValue:{type:null,default:void 0},multiple:Boolean,mandatory:[Boolean,String],max:Number,selectedClass:String,disabled:Boolean},"group"),zt=C({value:null,disabled:Boolean,selectedClass:String},"group-item");function Ot(e,t){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const n=J("useGroupItem");if(!n)throw new Error("[Vuetify] useGroupItem composable must be used inside a component setup function");const s=it();Be(Symbol.for(`${t.description}:id`),s);const l=ot(t,null);if(!l){if(!a)return l;throw new Error(`[Vuetify] Could not find useGroup injection with symbol ${t.description}`)}const i=x(e,"value"),d=u(()=>!!(l.disabled.value||e.disabled));l.register({id:s,value:i,disabled:d},n),j(()=>{l.unregister(s)});const c=u(()=>l.isSelected(s)),h=u(()=>l.items.value[0].id===s),y=u(()=>l.items.value[l.items.value.length-1].id===s),m=u(()=>c.value&&[l.selectedClass.value,e.selectedClass]);return K(c,o=>{n.emit("group:selected",{value:o})},{flush:"sync"}),{id:s,isSelected:c,isFirst:h,isLast:y,toggle:()=>l.select(s,!c.value),select:o=>l.select(s,o),selectedClass:m,value:i,disabled:d,group:l}}function At(e,t){let a=!1;const n=rt([]),s=Ie(e,"modelValue",[],o=>o==null?[]:Fe(n,dt(o)),o=>{const v=Ft(n,o);return e.multiple?v:v[0]}),l=J("useGroup");function i(o,v){const g=o,r=Symbol.for(`${t.description}:id`),k=vt(r,l==null?void 0:l.vnode).indexOf(v);se(g.value)==null&&(g.value=k,g.useIndexAsValue=!0),k>-1?n.splice(k,0,g):n.push(g)}function d(o){if(a)return;c();const v=n.findIndex(g=>g.id===o);n.splice(v,1)}function c(){const o=n.find(v=>!v.disabled);o&&e.mandatory==="force"&&!s.value.length&&(s.value=[o.id])}ut(()=>{c()}),j(()=>{a=!0}),ct(()=>{for(let o=0;or.id===o);if(!(v&&(g!=null&&g.disabled)))if(e.multiple){const r=s.value.slice(),b=r.findIndex(I=>I===o),k=~b;if(v=v??!k,k&&e.mandatory&&r.length<=1||!k&&e.max!=null&&r.length+1>e.max)return;b<0&&v?r.push(o):b>=0&&!v&&r.splice(b,1),s.value=r}else{const r=s.value.includes(o);if(e.mandatory&&r)return;s.value=v??!r?[o]:[]}}function y(o){if(e.multiple,s.value.length){const v=s.value[0],g=n.findIndex(k=>k.id===v);let r=(g+o)%n.length,b=n[r];for(;b.disabled&&r!==g;)r=(r+o)%n.length,b=n[r];if(b.disabled)return;s.value=[n[r].id]}else{const v=n.find(g=>!g.disabled);v&&(s.value=[v.id])}}const m={register:i,unregister:d,selected:s,select:h,disabled:x(e,"disabled"),prev:()=>y(n.length-1),next:()=>y(1),isSelected:o=>s.value.includes(o),selectedClass:u(()=>e.selectedClass),items:u(()=>n),getItemIndex:o=>Dt(n,o)};return Be(t,m),m}function Dt(e,t){const a=Fe(e,[t]);return a.length?e.findIndex(n=>n.id===a[0]):-1}function Fe(e,t){const a=[];return t.forEach(n=>{const s=e.find(i=>Le(n,i.value)),l=e[n];(s==null?void 0:s.value)!=null?a.push(s.id):l!=null&&a.push(l.id)}),a}function Ft(e,t){const a=[];return t.forEach(n=>{const s=e.findIndex(l=>l.id===n);if(~s){const l=e[s];a.push(l.value!=null?l.value:s)}}),a}const Ge=Symbol.for("vuetify:v-btn-toggle"),Gt=C({...De(),...Nt()},"VBtnToggle");V()({name:"VBtnToggle",props:Gt(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:a}=t;const{isSelected:n,next:s,prev:l,select:i,selected:d}=At(e,Ge);return O(()=>{const c=Ce.filterProps(e);return f(Ce,ft({class:["v-btn-toggle",e.class]},c,{style:e.style}),{default:()=>{var h;return[(h=a.default)==null?void 0:h.call(a,{isSelected:n,next:s,prev:l,select:i,selected:d})]}})}),{next:s,prev:l,select:i}}});const Mt=["x-small","small","default","large","x-large"],de=C({size:{type:[String,Number],default:"default"}},"size");function ve(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:T();return xe(()=>{let a,n;return X(Mt,e.size)?a=`${t}--size-${e.size}`:e.size&&(n={width:S(e.size),height:S(e.size)}),{sizeClasses:a,sizeStyles:n}})}const Ht=C({color:String,disabled:Boolean,start:Boolean,end:Boolean,icon:le,...M(),...de(),...H({tag:"i"}),...F()},"VIcon"),ne=V()({name:"VIcon",props:Ht(),setup(e,t){let{attrs:a,slots:n}=t;const s=W(),{themeClasses:l}=G(e),{iconData:i}=mt(u(()=>s.value||e.icon)),{sizeClasses:d}=ve(e),{textColorClasses:c,textColorStyles:h}=Y(x(e,"color"));return O(()=>{var o,v;const y=(o=n.default)==null?void 0:o.call(n);y&&(s.value=(v=gt(y).filter(g=>g.type===bt&&g.children&&typeof g.children=="string")[0])==null?void 0:v.children);const m=!!(a.onClick||a.onClickOnce);return f(i.value.component,{tag:e.tag,icon:i.value.icon,class:["v-icon","notranslate",l.value,d.value,c.value,{"v-icon--clickable":m,"v-icon--disabled":e.disabled,"v-icon--start":e.start,"v-icon--end":e.end},e.class],style:[d.value?void 0:{fontSize:S(e.size),height:S(e.size),width:S(e.size)},h.value,e.style],role:m?"button":void 0,"aria-hidden":!m,tabindex:m?e.disabled?-1:0:void 0},{default:()=>[y]})}),{}}});function Me(e,t){const a=W(),n=ht(!1);if(yt){const s=new IntersectionObserver(l=>{n.value=!!l.find(i=>i.isIntersecting)},t);j(()=>{s.disconnect()}),K(a,(l,i)=>{i&&(s.unobserve(i),n.value=!1),l&&s.observe(l)},{flush:"post"})}return{intersectionRef:a,isIntersecting:n}}const Ut=C({bgColor:String,color:String,indeterminate:[Boolean,String],modelValue:{type:[Number,String],default:0},rotate:{type:[Number,String],default:0},width:{type:[Number,String],default:4},...M(),...de(),...H({tag:"div"}),...F()},"VProgressCircular"),Xt=V()({name:"VProgressCircular",props:Ut(),setup(e,t){let{slots:a}=t;const n=20,s=2*Math.PI*n,l=W(),{themeClasses:i}=G(e),{sizeClasses:d,sizeStyles:c}=ve(e),{textColorClasses:h,textColorStyles:y}=Y(x(e,"color")),{textColorClasses:m,textColorStyles:o}=Y(x(e,"bgColor")),{intersectionRef:v,isIntersecting:g}=Me(),{resizeRef:r,contentRect:b}=Et(),k=u(()=>Math.max(0,Math.min(100,parseFloat(e.modelValue)))),I=u(()=>Number(e.width)),E=u(()=>c.value?Number(e.size):b.value?b.value.width:Math.max(I.value,32)),w=u(()=>n/(1-I.value/E.value)*2),P=u(()=>I.value/E.value*w.value),B=u(()=>S((100-k.value)/100*s));return Ct(()=>{v.value=l.value,r.value=l.value}),O(()=>f(e.tag,{ref:l,class:["v-progress-circular",{"v-progress-circular--indeterminate":!!e.indeterminate,"v-progress-circular--visible":g.value,"v-progress-circular--disable-shrink":e.indeterminate==="disable-shrink"},i.value,d.value,h.value,e.class],style:[c.value,y.value,e.style],role:"progressbar","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":e.indeterminate?void 0:k.value},{default:()=>[f("svg",{style:{transform:`rotate(calc(-90deg + ${Number(e.rotate)}deg))`},xmlns:"http://www.w3.org/2000/svg",viewBox:`0 0 ${w.value} ${w.value}`},[f("circle",{class:["v-progress-circular__underlay",m.value],style:o.value,fill:"transparent",cx:"50%",cy:"50%",r:n,"stroke-width":P.value,"stroke-dasharray":s,"stroke-dashoffset":0},null),f("circle",{class:"v-progress-circular__overlay",fill:"transparent",cx:"50%",cy:"50%",r:n,"stroke-width":P.value,"stroke-dasharray":s,"stroke-dashoffset":B.value},null)]),a.default&&f("div",{class:"v-progress-circular__content"},[a.default({value:k.value})])]})),{}}}),ke={center:"center",top:"bottom",bottom:"top",left:"right",right:"left"},He=C({location:String},"location");function Ue(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,a=arguments.length>2?arguments[2]:void 0;const{isRtl:n}=Ee();return{locationStyles:u(()=>{if(!e.location)return{};const{side:l,align:i}=Lt(e.location.split(" ").length>1?e.location:`${e.location} center`,n.value);function d(h){return a?a(h):0}const c={};return l!=="center"&&(t?c[ke[l]]=`calc(100% - ${d(l)}px)`:c[l]=0),i!=="center"?t?c[ke[i]]=`calc(100% - ${d(i)}px)`:c[i]=0:(l==="center"?c.top=c.left="50%":c[{top:"left",bottom:"left",left:"top",right:"top"}[l]]="50%",c.transform={top:"translateX(-50%)",bottom:"translateX(-50%)",left:"translateY(-50%)",right:"translateY(-50%)",center:"translate(-50%, -50%)"}[l]),c})}}const Yt=C({absolute:Boolean,active:{type:Boolean,default:!0},bgColor:String,bgOpacity:[Number,String],bufferValue:{type:[Number,String],default:0},bufferColor:String,bufferOpacity:[Number,String],clickable:Boolean,color:String,height:{type:[Number,String],default:4},indeterminate:Boolean,max:{type:[Number,String],default:100},modelValue:{type:[Number,String],default:0},opacity:[Number,String],reverse:Boolean,stream:Boolean,striped:Boolean,roundedBar:Boolean,...M(),...He({location:"top"}),...ue(),...H(),...F()},"VProgressLinear"),qt=V()({name:"VProgressLinear",props:Yt(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:a}=t;const n=Ie(e,"modelValue"),{isRtl:s,rtlClasses:l}=Ee(),{themeClasses:i}=G(e),{locationStyles:d}=Ue(e),{textColorClasses:c,textColorStyles:h}=Y(e,"color"),{backgroundColorClasses:y,backgroundColorStyles:m}=te(u(()=>e.bgColor||e.color)),{backgroundColorClasses:o,backgroundColorStyles:v}=te(u(()=>e.bufferColor||e.bgColor||e.color)),{backgroundColorClasses:g,backgroundColorStyles:r}=te(e,"color"),{roundedClasses:b}=ce(e),{intersectionRef:k,isIntersecting:I}=Me(),E=u(()=>parseFloat(e.max)),w=u(()=>parseFloat(e.height)),P=u(()=>ge(parseFloat(e.bufferValue)/E.value*100,0,100)),B=u(()=>ge(parseFloat(n.value)/E.value*100,0,100)),R=u(()=>s.value!==e.reverse),Q=u(()=>e.indeterminate?"fade-transition":"slide-x-transition");function Z(p){if(!k.value)return;const{left:L,right:$,width:N}=k.value.getBoundingClientRect(),U=R.value?N-p.clientX+($-N):p.clientX-L;n.value=Math.round(U/N*E.value)}return O(()=>f(e.tag,{ref:k,class:["v-progress-linear",{"v-progress-linear--absolute":e.absolute,"v-progress-linear--active":e.active&&I.value,"v-progress-linear--reverse":R.value,"v-progress-linear--rounded":e.rounded,"v-progress-linear--rounded-bar":e.roundedBar,"v-progress-linear--striped":e.striped},b.value,i.value,l.value,e.class],style:[{bottom:e.location==="bottom"?0:void 0,top:e.location==="top"?0:void 0,height:e.active?S(w.value):0,"--v-progress-linear-height":S(w.value),...e.absolute?d.value:{}},e.style],role:"progressbar","aria-hidden":e.active?"false":"true","aria-valuemin":"0","aria-valuemax":e.max,"aria-valuenow":e.indeterminate?void 0:B.value,onClick:e.clickable&&Z},{default:()=>[e.stream&&f("div",{key:"stream",class:["v-progress-linear__stream",c.value],style:{...h.value,[R.value?"left":"right"]:S(-w.value),borderTop:`${S(w.value/2)} dotted`,opacity:parseFloat(e.bufferOpacity),top:`calc(50% - ${S(w.value/4)})`,width:S(100-P.value,"%"),"--v-progress-linear-stream-to":S(w.value*(R.value?1:-1))}},null),f("div",{class:["v-progress-linear__background",y.value],style:[m.value,{opacity:parseFloat(e.bgOpacity),width:e.stream?0:void 0}]},null),f("div",{class:["v-progress-linear__buffer",o.value],style:[v.value,{opacity:parseFloat(e.bufferOpacity),width:S(P.value,"%")}]},null),f(kt,{name:Q.value},{default:()=>[e.indeterminate?f("div",{class:"v-progress-linear__indeterminate"},[["long","short"].map(p=>f("div",{key:p,class:["v-progress-linear__indeterminate",p,g.value],style:r.value},null))]):f("div",{class:["v-progress-linear__determinate",g.value],style:[r.value,{width:S(B.value,"%")}]},null)]}),a.default&&f("div",{class:"v-progress-linear__content"},[a.default({value:B.value,buffer:P.value})])]})),{}}}),Wt=C({loading:[Boolean,String]},"loader");function jt(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:T();return{loaderClasses:u(()=>({[`${t}--loading`]:e.loading}))}}function hn(e,t){var n;let{slots:a}=t;return f("div",{class:`${e.name}__loader`},[((n=a.default)==null?void 0:n.call(a,{color:e.color,isActive:e.active}))||f(qt,{absolute:e.absolute,active:e.active,color:e.color,height:"2",indeterminate:!0},null)])}const Kt=["static","relative","fixed","absolute","sticky"],Jt=C({position:{type:String,validator:e=>Kt.includes(e)}},"position");function Qt(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:T();return{positionClasses:u(()=>e.position?`${t}--${e.position}`:void 0)}}function Zt(){const e=J("useRoute");return u(()=>{var t;return(t=e==null?void 0:e.proxy)==null?void 0:t.$route})}function yn(){var e,t;return(t=(e=J("useRouter"))==null?void 0:e.proxy)==null?void 0:t.$router}function en(e,t){var h,y;const a=pt("RouterLink"),n=u(()=>!!(e.href||e.to)),s=u(()=>(n==null?void 0:n.value)||be(t,"click")||be(e,"click"));if(typeof a=="string"||!("useLink"in a))return{isLink:n,isClickable:s,href:x(e,"href")};const l=u(()=>({...e,to:x(()=>e.to||"")})),i=a.useLink(l.value),d=u(()=>e.to?i:void 0),c=Zt();return{isLink:n,isClickable:s,route:(h=d.value)==null?void 0:h.route,navigate:(y=d.value)==null?void 0:y.navigate,isActive:u(()=>{var m,o,v;return d.value?e.exact?c.value?((v=d.value.isExactActive)==null?void 0:v.value)&&Le(d.value.route.value.query,c.value.query):((o=d.value.isExactActive)==null?void 0:o.value)??!1:((m=d.value.isActive)==null?void 0:m.value)??!1:!1}),href:u(()=>{var m;return e.to?(m=d.value)==null?void 0:m.route.value.href:e.href})}}const tn=C({href:String,replace:Boolean,to:[String,Object],exact:Boolean},"router");let ae=!1;function Cn(e,t){let a=!1,n,s;_e&&(Pe(()=>{window.addEventListener("popstate",l),n=e==null?void 0:e.beforeEach((i,d,c)=>{ae?a?t(c):c():setTimeout(()=>a?t(c):c()),ae=!0}),s=e==null?void 0:e.afterEach(()=>{ae=!1})}),St(()=>{window.removeEventListener("popstate",l),n==null||n(),s==null||s()}));function l(i){var d;(d=i.state)!=null&&d.replaced||(a=!0,setTimeout(()=>a=!1))}}function nn(e,t){K(()=>{var a;return(a=e.isActive)==null?void 0:a.value},a=>{e.isLink.value&&a&&t&&Pe(()=>{t(!0)})},{immediate:!0})}const ie=Symbol("rippleStop"),an=80;function pe(e,t){e.style.transform=t,e.style.webkitTransform=t}function oe(e){return e.constructor.name==="TouchEvent"}function Xe(e){return e.constructor.name==="KeyboardEvent"}const sn=function(e,t){var m;let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=0,s=0;if(!Xe(e)){const o=t.getBoundingClientRect(),v=oe(e)?e.touches[e.touches.length-1]:e;n=v.clientX-o.left,s=v.clientY-o.top}let l=0,i=.3;(m=t._ripple)!=null&&m.circle?(i=.15,l=t.clientWidth/2,l=a.center?l:l+Math.sqrt((n-l)**2+(s-l)**2)/4):l=Math.sqrt(t.clientWidth**2+t.clientHeight**2)/2;const d=`${(t.clientWidth-l*2)/2}px`,c=`${(t.clientHeight-l*2)/2}px`,h=a.center?d:`${n-l}px`,y=a.center?c:`${s-l}px`;return{radius:l,scale:i,x:h,y,centerX:d,centerY:c}},q={show(e,t){var v;let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!((v=t==null?void 0:t._ripple)!=null&&v.enabled))return;const n=document.createElement("span"),s=document.createElement("span");n.appendChild(s),n.className="v-ripple__container",a.class&&(n.className+=` ${a.class}`);const{radius:l,scale:i,x:d,y:c,centerX:h,centerY:y}=sn(e,t,a),m=`${l*2}px`;s.className="v-ripple__animation",s.style.width=m,s.style.height=m,t.appendChild(n);const o=window.getComputedStyle(t);o&&o.position==="static"&&(t.style.position="relative",t.dataset.previousPosition="static"),s.classList.add("v-ripple__animation--enter"),s.classList.add("v-ripple__animation--visible"),pe(s,`translate(${d}, ${c}) scale3d(${i},${i},${i})`),s.dataset.activated=String(performance.now()),setTimeout(()=>{s.classList.remove("v-ripple__animation--enter"),s.classList.add("v-ripple__animation--in"),pe(s,`translate(${h}, ${y}) scale3d(1,1,1)`)},0)},hide(e){var l;if(!((l=e==null?void 0:e._ripple)!=null&&l.enabled))return;const t=e.getElementsByClassName("v-ripple__animation");if(t.length===0)return;const a=t[t.length-1];if(a.dataset.isHiding)return;a.dataset.isHiding="true";const n=performance.now()-Number(a.dataset.activated),s=Math.max(250-n,0);setTimeout(()=>{a.classList.remove("v-ripple__animation--in"),a.classList.add("v-ripple__animation--out"),setTimeout(()=>{var d;e.getElementsByClassName("v-ripple__animation").length===1&&e.dataset.previousPosition&&(e.style.position=e.dataset.previousPosition,delete e.dataset.previousPosition),((d=a.parentNode)==null?void 0:d.parentNode)===e&&e.removeChild(a.parentNode)},300)},s)}};function Ye(e){return typeof e>"u"||!!e}function A(e){const t={},a=e.currentTarget;if(!(!(a!=null&&a._ripple)||a._ripple.touched||e[ie])){if(e[ie]=!0,oe(e))a._ripple.touched=!0,a._ripple.isTouch=!0;else if(a._ripple.isTouch)return;if(t.center=a._ripple.centered||Xe(e),a._ripple.class&&(t.class=a._ripple.class),oe(e)){if(a._ripple.showTimerCommit)return;a._ripple.showTimerCommit=()=>{q.show(e,a,t)},a._ripple.showTimer=window.setTimeout(()=>{var n;(n=a==null?void 0:a._ripple)!=null&&n.showTimerCommit&&(a._ripple.showTimerCommit(),a._ripple.showTimerCommit=null)},an)}else q.show(e,a,t)}}function Se(e){e[ie]=!0}function _(e){const t=e.currentTarget;if(t!=null&&t._ripple){if(window.clearTimeout(t._ripple.showTimer),e.type==="touchend"&&t._ripple.showTimerCommit){t._ripple.showTimerCommit(),t._ripple.showTimerCommit=null,t._ripple.showTimer=window.setTimeout(()=>{_(e)});return}window.setTimeout(()=>{t._ripple&&(t._ripple.touched=!1)}),q.hide(t)}}function qe(e){const t=e.currentTarget;t!=null&&t._ripple&&(t._ripple.showTimerCommit&&(t._ripple.showTimerCommit=null),window.clearTimeout(t._ripple.showTimer))}let D=!1;function We(e){!D&&(e.keyCode===he.enter||e.keyCode===he.space)&&(D=!0,A(e))}function je(e){D=!1,_(e)}function Ke(e){D&&(D=!1,_(e))}function Je(e,t,a){const{value:n,modifiers:s}=t,l=Ye(n);if(l||q.hide(e),e._ripple=e._ripple??{},e._ripple.enabled=l,e._ripple.centered=s.center,e._ripple.circle=s.circle,_t(n)&&n.class&&(e._ripple.class=n.class),l&&!a){if(s.stop){e.addEventListener("touchstart",Se,{passive:!0}),e.addEventListener("mousedown",Se);return}e.addEventListener("touchstart",A,{passive:!0}),e.addEventListener("touchend",_,{passive:!0}),e.addEventListener("touchmove",qe,{passive:!0}),e.addEventListener("touchcancel",_),e.addEventListener("mousedown",A),e.addEventListener("mouseup",_),e.addEventListener("mouseleave",_),e.addEventListener("keydown",We),e.addEventListener("keyup",je),e.addEventListener("blur",Ke),e.addEventListener("dragstart",_,{passive:!0})}else!l&&a&&Qe(e)}function Qe(e){e.removeEventListener("mousedown",A),e.removeEventListener("touchstart",A),e.removeEventListener("touchend",_),e.removeEventListener("touchmove",qe),e.removeEventListener("touchcancel",_),e.removeEventListener("mouseup",_),e.removeEventListener("mouseleave",_),e.removeEventListener("keydown",We),e.removeEventListener("keyup",je),e.removeEventListener("dragstart",_),e.removeEventListener("blur",Ke)}function ln(e,t){Je(e,t,!1)}function on(e){delete e._ripple,Qe(e)}function rn(e,t){if(t.value===t.oldValue)return;const a=Ye(t.oldValue);Je(e,t,a)}const un={mounted:ln,unmounted:on,updated:rn},cn=C({active:{type:Boolean,default:void 0},baseColor:String,symbol:{type:null,default:Ge},flat:Boolean,icon:[Boolean,String,Function,Object],prependIcon:le,appendIcon:le,block:Boolean,readonly:Boolean,slim:Boolean,stacked:Boolean,ripple:{type:[Boolean,Object],default:!0},text:String,...Te(),...M(),...ze(),...xt(),...$e(),...zt(),...Wt(),...He(),...Jt(),...ue(),...tn(),...de(),...H({tag:"button"}),...F(),...Ae({variant:"elevated"})},"VBtn"),kn=V()({name:"VBtn",props:cn(),emits:{"group:selected":e=>!0},setup(e,t){let{attrs:a,slots:n}=t;const{themeClasses:s}=G(e),{borderClasses:l}=Re(e),{densityClasses:i}=Oe(e),{dimensionStyles:d}=Bt(e),{elevationClasses:c}=Ne(e),{loaderClasses:h}=jt(e),{locationStyles:y}=Ue(e),{positionClasses:m}=Qt(e),{roundedClasses:o}=ce(e),{sizeClasses:v,sizeStyles:g}=ve(e),r=Ot(e,e.symbol,!1),b=en(e,a),k=u(()=>{var p;return e.active!==void 0?e.active:b.isLink.value?(p=b.isActive)==null?void 0:p.value:r==null?void 0:r.isSelected.value}),I=u(()=>{var L,$;return{color:(r==null?void 0:r.isSelected.value)&&(!b.isLink.value||((L=b.isActive)==null?void 0:L.value))||!r||(($=b.isActive)==null?void 0:$.value)?e.color??e.baseColor:e.baseColor,variant:e.variant}}),{colorClasses:E,colorStyles:w,variantClasses:P}=$t(I),B=u(()=>(r==null?void 0:r.disabled.value)||e.disabled),R=u(()=>e.variant==="elevated"&&!(e.disabled||e.flat||e.border)),Q=u(()=>{if(!(e.value===void 0||typeof e.value=="symbol"))return Object(e.value)===e.value?JSON.stringify(e.value,null,0):e.value});function Z(p){var L;B.value||b.isLink.value&&(p.metaKey||p.ctrlKey||p.shiftKey||p.button!==0||a.target==="_blank")||((L=b.navigate)==null||L.call(b,p),r==null||r.toggle())}return nn(b,r==null?void 0:r.select),O(()=>{const p=b.isLink.value?"a":e.tag,L=!!(e.prependIcon||n.prepend),$=!!(e.appendIcon||n.append),N=!!(e.icon&&e.icon!==!0);return wt(f(p,{type:p==="a"?void 0:"button",class:["v-btn",r==null?void 0:r.selectedClass.value,{"v-btn--active":k.value,"v-btn--block":e.block,"v-btn--disabled":B.value,"v-btn--elevated":R.value,"v-btn--flat":e.flat,"v-btn--icon":!!e.icon,"v-btn--loading":e.loading,"v-btn--readonly":e.readonly,"v-btn--slim":e.slim,"v-btn--stacked":e.stacked},s.value,l.value,E.value,i.value,c.value,h.value,m.value,o.value,v.value,P.value,e.class],style:[w.value,d.value,y.value,g.value,e.style],"aria-busy":e.loading?!0:void 0,disabled:B.value||void 0,href:b.href.value,tabindex:e.loading||e.readonly?-1:void 0,onClick:Z,value:Q.value},{default:()=>{var U;return[Rt(!0,"v-btn"),!e.icon&&L&&f("span",{key:"prepend",class:"v-btn__prepend"},[n.prepend?f(ee,{key:"prepend-defaults",disabled:!e.prependIcon,defaults:{VIcon:{icon:e.prependIcon}}},n.prepend):f(ne,{key:"prepend-icon",icon:e.prependIcon},null)]),f("span",{class:"v-btn__content","data-no-activator":""},[!n.default&&N?f(ne,{key:"content-icon",icon:e.icon},null):f(ee,{key:"content-defaults",disabled:!N,defaults:{VIcon:{icon:e.icon}}},{default:()=>{var fe;return[((fe=n.default)==null?void 0:fe.call(n))??e.text]}})]),!e.icon&&$&&f("span",{key:"append",class:"v-btn__append"},[n.append?f(ee,{key:"append-defaults",disabled:!e.appendIcon,defaults:{VIcon:{icon:e.appendIcon}}},n.append):f(ne,{key:"append-icon",icon:e.appendIcon},null)]),!!e.loading&&f("span",{key:"loader",class:"v-btn__loader"},[((U=n.loader)==null?void 0:U.call(n))??f(Xt,{color:typeof e.loading=="boolean"?void 0:e.loading,indeterminate:!0,width:"2"},null)])]}}),[[un,!B.value&&!!e.ripple,"",{center:!!e.icon}]])}),{group:r}}});export{en as A,Rt as B,Lt as C,fn as D,mn as E,gn as F,bn as G,yn as H,Cn as I,He as J,Jt as K,hn as L,Ue as M,Qt as N,un as R,ne as V,Y as a,te as b,Wt as c,ue as d,jt as e,ce as f,ee as g,kn as h,de as i,$e as j,Ne as k,H as l,ze as m,At as n,zt as o,Ot as p,Xt as q,Nt as r,Et as s,Ae as t,Oe as u,Te as v,tn as w,Re as x,$t as y,ve as z};