import{u as b,be as w,m as y,am as v,bf as _,y as d,bg as f,bh as o,af as p}from"./et3mnfcx.js";function n(t){for(var s=-1,e=t==null?0:t.length,r={};++st.split(" ").filter(s=>!!s.trim()),c=(t,s)=>{if(!t||!s)return!1;if(s.includes(" "))throw new error("classname should not contain space.");return t.classlist.contains(s)},i=(t,s)=>{!t||!s.trim()||t.classlist.add(...p(s))},v=(t,s)=>{!t||!s.trim()||t.classlist.remove(...p(s))},e=(t,s)=>{var e;if(!v||!t||!s)return"";let r=_(s);r==="float"&&(r="cssfloat");try{const n=t.style[r];if(n)return n;const i=(e=document.defaultview)==null?void 0:e.getcomputedstyle(t,"");return i?i[r]:""}catch{return t.style[r]}};function f(t,s="px"){if(!t)return"";if(b(t)||w(t))return`${t}${s}`;if(y(t))return t}const m="__eppropkey",l=t=>t,s=t=>d(t)&&!!t[m],j=(t,s)=>{if(!d(t)||s(t))return t;const{values:e,required:r,default:n,type:i,validator:l}=t,u={type:i,required:!!r,validator:e||l?c=>{let a=!1,o=[];if(e&&(o=array.from(e),f(t,"default")&&o.push(n),a||(a=o.includes(c))),l&&(a||(a=l(c))),!a&&o.length>0){const h=[...new set(o)].map(g=>json.stringify(g)).join(", ");o(`invalid prop: validation failed${s?` for prop "${s}"`:""}. expected one of [${h}], got value ${json.stringify(c)}.`)}return a}:void 0,[m]:!0};return f(t,"default")&&(u.default=n),u},t=t=>n(object.entries(t).map(([s,e])=>[s,j(e,s)])),k=(t,s)=>{if(t.install=e=>{for(const r of[t,...object.values(s??{})])e.component(r.name,r)},s)for(const[e,r]of object.entries(s))t[e]=r;return t},q=(t,s)=>(t.install=e=>{t._context=e._context,e.config.globalproperties[s]=t},t),a=(t,s)=>(t.install=e=>{e.directive(s,t)},t),j=t=>(t.install=p,t);var k=(t,s)=>{const e=t.__vccopts||t;for(const[r,n]of s)e[r]=n;return e};export{k as _,f as a,t as b,j as c,l as d,a as e,n as f,j as g,c as h,e as i,i as j,q as k,v as r,k as w};