1import{a5 as X,f as E,w as D,n as k,E as Z,d as O,j as I,c as j,C as V,R as ee,y as U,a6 as C,r as B,l as z,p as q,q as G,s as W,x as h,A as te,K as ne,a7 as re,h as ae,i as se,g as ie,o as oe,a as M,a8 as ue,I as le}from"./index-DpK32h4I.js";import{a as ce,g as de,i as $,r as fe,h as ve,u as me,o as pe,P as H,j as ye,k as ge,d as he}from"./utils-D7Qi8t57.js";function Y(e,n,t){const r=t.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:t});n&&r.addEventListener(e,n,{once:!0}),r.dispatchEvent(s)}const[J]=ce("ConfigProvider"),T=new WeakMap;function be(e,n){let t=T.get(e);t||(t={owners:new Set,original:e.body.style.pointerEvents},T.set(e,t)),t.owners.add(n),e.body.style.pointerEvents="none"}function we(e,n){const t=T.get(e);t!=null&&t.owners.delete(n)&&t.owners.size===0&&(T.delete(e),e.body.style.pointerEvents=t.original)}function N(e){if(e===null||typeof e!="object")return!1;const n=Object.getPrototypeOf(e);return n!==null&&n!==Object.prototype&&Object.getPrototypeOf(n)!==null||Symbol.iterator in e?!1:Symbol.toStringTag in e?Object.prototype.toString.call(e)==="[object Module]":!0}function F(e,n,t=".",r){if(!N(n))return F(e,{},t,r);const s={...n};for(const a of Object.keys(e)){if(a==="__proto__"||a==="constructor")continue;const o=e[a];o!=null&&(r&&r(s,a,o,t)||(Array.isArray(o)&&Array.isArray(s[a])?s[a]=[...o,...s[a]]:N(o)&&N(s[a])?s[a]=F(o,s[a],(t?`${t}.`:"")+a.toString(),r):s[a]=o))}return s}function Oe(e){return(...n)=>n.reduce((t,r)=>F(t,r,"",e),{})}const We=Oe();function $e(e,n="reka"){var s;let t;const r=J({useId:void 0});return r.useId?t=r.useId():t=(s=X)==null?void 0:s(),n?`${n}-${t}`:t}function Ee(e,n){const t=E(e);function r(a){return n[t.value][a]??t.value}return{state:t,dispatch:a=>{t.value=r(a)}}}function Pe(e,n){var b;const t=E({}),r=E("none"),s=E(e),a=e.value?"mounted":"unmounted";let o;const u=((b=n.value)==null?void 0:b.ownerDocument.defaultView)??de,{state:v,dispatch:c}=Ee(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}}),d=m=>{var f;if($){const x=new CustomEvent(m,{bubbles:!1,cancelable:!1});(f=n.value)==null||f.dispatchEvent(x)}};D(e,async(m,f)=>{var _;const x=f!==m;if(await k(),x){const L=r.value,P=A(n.value);m?(c("MOUNT"),d("enter"),P==="none"&&d("after-enter")):P==="none"||P==="undefined"||((_=t.value)==null?void 0:_.display)==="none"?(c("UNMOUNT"),d("leave"),d("after-leave")):f&&L!==P?(c("ANIMATION_OUT"),d("leave")):(c("UNMOUNT"),d("after-leave"))}},{immediate:!0});const l=m=>{if(m.target!==n.value)return;const f=A(n.value),x=f.includes(CSS.escape(m.animationName)),_=v.value==="mounted"?"enter":"leave";if(x&&(d(`after-${_}`),c("ANIMATION_END"),!s.value)){const L=n.value.style.animationFillMode;n.value.style.animationFillMode="forwards",o=u==null?void 0:u.setTimeout(()=>{var P;((P=n.value)==null?void 0:P.style.animationFillMode)==="forwards"&&(n.value.style.animationFillMode=L)})}f==="none"&&c("ANIMATION_END")},y=m=>{m.target===n.value&&(r.value=A(n.value))},i=D(n,(m,f)=>{m?(t.value=getComputedStyle(m),m.addEventListener("animationstart",y),m.addEventListener("animationcancel",l),m.addEventListener("animationend",l)):(c("ANIMATION_END"),o!==void 0&&(u==null||u.clearTimeout(o)),f==null||f.removeEventListener("animationstart",y),f==null||f.removeEventListener("animationcancel",l),f==null||f.removeEventListener("animationend",l))},{immediate:!0}),g=D(v,()=>{const m=A(n.value);r.value=v.value==="mounted"?m:"none"});return Z(()=>{i(),g(),n.value&&(n.value.removeEventListener("animationstart",y),n.value.removeEventListener("animationcancel",l),n.value.removeEventListener("animationend",l)),o!==void 0&&(u==null||u.clearTimeout(o))}),{isPresent:O(()=>["mounted","unmountSuspended"].includes(v.value))}}function A(e){return e&&getComputedStyle(e).animationName||"none"}var Ke=I({name:"Presence",props:{present:{type:Boolean,required:!0},forceMount:{type:Boolean}},slots:{},setup(e,{slots:n,expose:t}){var c;const{present:r,forceMount:s}=j(e),a=E(),{isPresent:o}=Pe(r,a);t({present:o});let u=n.default({present:o.value});u=fe(u||[]);const v=V();if(u&&(u==null?void 0:u.length)>1){const d=(c=v==null?void 0:v.parent)!=null&&c.type.name?`<${v.parent.type.name} />`:"component";
1throw new Error([`Detected an invalid children for \`${d}\` for \`Presence\` component.`,"","Note: Presence works similarly to `v-if` directly, but it waits for animation/transition to finished before unmounting. So it expect only one direct child of valid VNode type.","You can apply a few solutions:",["Provide a single child element so that `presence` directive attach correctly.","Ensure the first child is an actual element instead of a raw text node or comment node."].map(l=>` - ${l}`).join(` 2`)].join(` 3`))}return()=>s.value||r.value||o.value?ee(n.default({present:o.value})[0],{ref:d=>{const l=ve(d);return typeof(l==null?void 0:l.hasAttribute)>"u"||(l!=null&&l.hasAttribute("data-reka-popper-content-wrapper")?a.value=l.firstElementChild:a.value=l),l}}):null}});const De="dismissableLayer.pointerDownOutside",Ce="dismissableLayer.focusOutside";function Se(e){var t;if(typeof e!="object"||e===null)return!1;const n=(t=e.ownerDocument)==null?void 0:t.defaultView;return typeof Element<"u"&&e instanceof Element||!!n&&e instanceof n.Element}function Q(e,n){if(!Se(n))return!1;if(e.contains(n))return!0;const t=n.closest("[data-dismissable-layer]"),r=e.dataset.dismissableLayer===""?e:e.querySelector("[data-dismissable-layer]"),s=Array.from(e.ownerDocument.querySelectorAll("[data-dismissable-layer]"));return!!(t&&(r===t||s.indexOf(r)<s.indexOf(t)))}function xe(e,n,t=!0){const r=E(!1),s=E(()=>{});return U(a=>{var c;if(!$||!C(t))return;const o=((c=n==null?void 0:n.value)==null?void 0:c.ownerDocument)??globalThis.document,u=async d=>{const l=d.target;if(!(!(n!=null&&n.value)||!l)){if(Q(n.value,l)){o.removeEventListener("click",s.value),r.value=!1;return}if(d.target&&!r.value){let i=function(){Y(De,e,y)};const y={originalEvent:d};d.pointerType==="touch"?(o.removeEventListener("click",s.value),s.value=i,o.addEventListener("click",s.value,{once:!0})):i()}else o.removeEventListener("click",s.value);r.value=!1}},v=window.setTimeout(()=>{o.addEventListener("pointerdown",u)},0);a(()=>{window.clearTimeout(v),o.removeEventListener("pointerdown",u),o.removeEventListener("click",s.value)})}),{onPointerDownCapture:()=>{C(t)&&(r.value=!0)}}}function _e(e,n,t=!0){const r=E(!1);return U(s=>{var u;if(!$||!C(t))return;const a=((u=n==null?void 0:n.value)==null?void 0:u.ownerDocument)??globalThis.document,o=async v=>{if(!(n!=null&&n.value))return;await k(),await k();const c=v.target;!n.value||!c||Q(n.value,c)||v.target&&!r.value&&Y(Ce,e,{originalEvent:v})};a.addEventListener("focusin",o),s(()=>a.removeEventListener("focusin",o))}),{onFocusCapture:()=>{C(t)&&(r.value=!0)},onBlurCapture:()=>{C(t)&&(r.value=!1)}}}const w=B({layersRoot:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set});var Ae=I({__name:"DismissableLayer",props:{disableOutsidePointerEvents:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},present:{type:Boolean,required:!1,default:!0}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","dismiss"],setup(e,{emit:n}){const t=e,r=n,{forwardRef:s,currentElement:a}=me(),o=O(()=>{var i;return((i=a.value)==null?void 0:i.ownerDocument)??globalThis.document}),u=O(()=>w.layersRoot),v=O(()=>a.value?Array.from(u.value).indexOf(a.value):-1),c=O(()=>w.layersWithOutsidePointerEventsDisabled.size>0),d=O(()=>{const i=Array.from(u.value),[g]=[...w.layersWithOutsidePointerEventsDisabled].slice(-1),p=i.indexOf(g);return v.value>=p}),l=xe(async i=>{const g=[...w.branches].some(p=>p==null?void 0:p.contains(i.target));!t.present||!d.value||g||(r("pointerDownOutside",i),r("interactOutside",i),await k(),i.defaultPrevented||r("dismiss"))},a,()=>t.present),y=_e(i=>{const g=[...w.branches].some(p=>p==null?void 0:p.contains(i.target));!t.present||g||(r("focusOutside",i),r("interactOutside",i),i.defaultPrevented||r("dismiss"))},a);return pe("Escape",i=>{!t.present||!(v.value===u.value.size-1)||(r("escapeKeyDown",i),i.defaultPrevented||r("dismiss"))},{target:()=>{var i;return((i=o.value)==null?void 0:i.defaultView)??globalThis.window}}),D([a,()=>t.disableOutsidePointerEvents,()=>t.present],([i,g,p],b,m)=>{if(!(!i||!p)&&g){const f=i.ownerDocument;be(f,i),w.layersWithOutsidePointerEventsDisabled.add(i),m(()=>{w.layersWithOutsidePointerEventsDisabled.delete(i),we(f,i)})}},{immediate:!0}),D([a,()=>t.present],([i,g],p,b)=>{!i||!g||(u.value.add(i),b(()=>{u.value.delete(i)}))},{immediate:!0}),U(i=>{i(()=>{a.value&&(u.value.delete(a.value),w.layersWithOutsidePointerEventsDisabled.delete(a.value))})}),(i,g)=>(q(),z(h(H),{ref:h(s),"as-child":e.asChild,as:e.as,"data-dismissable-layer":"",style:te({pointerEvents:c.value?d.value?"auto":"none":void 0}),onFocusCapture:h(y).onFocusCapture,onBlurCapture:h(y).onBlurCapture,onPointerdownCapture:h(l).onPointerDownCapture},{default:G(()=>[W(i.$slots,"default")]),_:3}
3,8,["as-child","as","style","onFocusCapture","onBlurCapture","onPointerdownCapture"]))}}),Re=Ae,ke=I({__name:"Teleport",props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){const n=e,t=J({}),r=O(()=>{var a;return n.to??((a=t.teleportTo)==null?void 0:a.value)??"body"}),s=ye();return(a,o)=>h(s)||e.forceMount?(q(),z(re,{key:0,to:r.value,disabled:e.disabled,defer:e.defer},[W(a.$slots,"default")],8,["to","disabled","defer"])):ne("v-if",!0)}}),Ge=ke;function He(e){return ie()?(oe(e),!0):!1}const S=new WeakMap,Te=(...e)=>{var n;const t=e[0],r=(n=V())==null?void 0:n.proxy;if(r==null&&!ae())throw new Error("injectLocal must be called in setup");return r&&S.has(r)&&t in S.get(r)?S.get(r)[t]:se(...e)},Ie=(e,n)=>{var t;const r=(t=V())==null?void 0:t.proxy;if(r==null)throw new Error("provideLocal must be called in setup");S.has(r)||S.set(r,Object.create(null));const s=S.get(r);s[e]=n,ue(e,n)};function Ye(e,n){const t=Symbol(e.name||"InjectionState"),r=void 0;return[(...o)=>{const u=e(...o);return Ie(t,u),u},()=>Te(t,r)]}function Le(e){if(!M(e))return B(e);const n=new Proxy({},{get(t,r,s){return h(Reflect.get(e.value,r,s))},set(t,r,s){return M(e.value[r])&&!M(s)?e.value[r].value=s:e.value[r]=s,!0},deleteProperty(t,r){return Reflect.deleteProperty(e.value,r)},has(t,r){return Reflect.has(e.value,r)},ownKeys(){return Object.keys(e.value)},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}});return B(n)}function Me(e){return Le(O(e))}function Je(e,...n){const t=n.flat(),r=t[0];return Me(()=>Object.fromEntries(typeof r=="function"?Object.entries(j(e)).filter(([s,a])=>!r(C(a),s)):Object.entries(j(e)).filter(s=>!t.includes(s[0]))))}const Ne=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Qe=e=>typeof e<"u",je=Object.prototype.toString,Xe=e=>je.call(e)==="[object Object]",Ze=()=>{},et=Be();function Be(){var e,n;return Ne&&((e=window==null?void 0:window.navigator)==null?void 0:e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((n=window==null?void 0:window.navigator)==null?void 0:n.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function tt(e){return e.endsWith("rem")?Number.parseFloat(e)*16:Number.parseFloat(e)}function nt(e){return Array.isArray(e)?e:[e]}function rt(e,n,t){return D(e,n,{...t,immediate:!0})}const K=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,R=ge,Fe=(e,n)=>t=>{var r;if((n==null?void 0:n.variants)==null)return R(e,t==null?void 0:t.class,t==null?void 0:t.className);const{variants:s,defaultVariants:a}=n,o=Object.keys(s).map(c=>{const d=t==null?void 0:t[c],l=a==null?void 0:a[c];if(d===null)return null;const y=K(d)||K(l);return s[c][y]}),u=t&&Object.entries(t).reduce((c,d)=>{let[l,y]=d;return y===void 0||(c[l]=y),c},{}),v=n==null||(r=n.compoundVariants)===null||r===void 0?void 0:r.reduce((c,d)=>{let{class:l,className:y,...i}=d;return Object.entries(i).every(g=>{let[p,b]=g;return Array.isArray(b)?b.includes({...a,...u}[p]):{...a,...u}[p]===b})?[...c,l,y]:c},[]);return R(e,o,v,t==null?void 0:t.class,t==null?void 0:t.className)},at=I({__name:"Button",props:{variant:{},size:{},class:{},asChild:{type:Boolean},as:{default:"button"}},setup(e){const n=e;return(t,r)=>(q(),z(h(H),{"data-slot":"button",as:t.as,"as-child":t.asChild,class:le(h(he)(h(Ve)({variant:t.variant,size:t.size}),n.class))},{default:G(()=>[W(t.$slots,"default")]),_:3},8,["as","as-child","class"]))}}),Ve=Fe("cursor-pointer inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",brand:"bg-brand text-brand-foreground shadow-xs hover:bg-brand-hover hover:text-brand-foreground",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",glass:"transition active:scale-[0.95] border border-white/40 focus:outline-none bg-white/70 text-black hover:bg-white/100 backdrop-blur-sm w-10 rounded-full",link:"text-primary underline-offset-4 hover:underline",pill:"bg-white text-primary-foreground shadow-xl rounded-full! border text-black"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9",circleicon:"size-9 rounded-full"}},defaultVariants:{variant:"default",size:"default"}});export{Re as D,Ke as P,Ge as T,at as _,be as a,we as b,Fe as c,We as d,He as e,et as f,Qe as g,Te as h,J as i,Ne as j,Xe as k,Y as l,Ye as m,Ze as n,tt as p,Je as r,nt as t,$e as u,rt as w};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.