import{rasx,aVasnr,oasK,agasRe,KasL,afasX,bhasrr,aUasge,b2assr,hasct,a1asJt,aaasMe,dasQt,lasH,bcasIe,a0asz,a3asne,Jasft,biasor,bjasir,bkasar,Haslr,easur,zasae,Aasle,Dascr,Easfr,Bas$,Ras$e,Casdr,TasBe,a8aspr}from"./CE4SaZgW.js";/* empty css */import{_ashr}from"./DlAUqK2U.js";functionmr(){try{return"constructor"inGestureEvent}catch{return!1}}functionen(){returntypeofwindow<"u"&&"ontouchstart"inwindow}functiontn(e){return"pointerId"ine?null:e.type==="touchend"?e.changedTouches:e.targetTouches}functionnn(e){returnArray.from(tn(e)).map(t=>t.identifier)}function_t(e){constt="buttons"ine?e.buttons:0,{shiftKey:n,altKey:r,metaKey:s,ctrlKey:o}=e;return{buttons:t,shiftKey:n,altKey:r,metaKey:s,ctrlKey:o}}constgr=e=>e;functionCt(e,t=gr){constn=tn(e),{clientX:r,clientY:s}=n?n[0]:e;returnt([r,s])}functionrn(){}functionsn(...e){returne.length===0?rn:e.length===1?e[0]:function(){vart;for(letnofe)t=n.apply(this,arguments)||t;returnt}}functionV(e,t){if(e===void0){if(t===void0)thrownewError("Must define fallback value if undefined is expected");e=t}returnArray.isArray(e)?e:[e,e]}functionAt(e,...t){returntypeofe=="function"?e(...t):e}functionue(e){return{_active:!1,_blocked:!1,_intentional:[!1,!1],_movement:[0,0],_initial:[0,0],_bounds:[[-1/0,1/0],[-1/0,1/0]],_lastEventType:void0,_dragStarted:!1,_dragPreventScroll:!1,_dragIsTap:!0,_dragDelayed:!1,event:void0,intentional:!1,values:[0,0],velocities:[0,0],delta:[0,0],movement:[0,0],offset:[0,0],lastOffset:[0,0],direction:[0,0],initial:[0,0],previous:[0,0],first:!1,last:!1,active:!1,timeStamp:0,startTime:0,elapsedTime:0,cancel:rn,canceled:!1,memo:void0,args:void0,...e}}functionZe(){conste={hovering:!1,scrolling:!1,wheeling:!1,dragging:!1,moving:!1,pinching:!1,touches:0,buttons:0,down:!1,shiftKey:!1,altKey:!1,metaKey:!1,ctrlKey:!1,locked:!1},t=ue({_pointerId:void0,axis:void0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0,tap:!1,swipe:[0,0]}),n=ue({_pointerIds:[],da:[0,0],vdva:[0,0],origin:void0,turns:0}),r=ue({axis:void0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0}),s=ue({axis:void0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0}),o=ue({axis:void0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0});return{shared:e,drag:t,pinch:n,wheel:r,move:s,scroll:o}}varyr=Object.defineProperty,vr=(e,t,n)=>tine?yr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,A=(e,t,n)=>(vr(e,typeoft!="symbol"?t+"":t,n),n);classbr{constructor(t){this.classes=t,A(this,"nativeRefs"),A(this,"config"),A(this,"handlers"),A(this,"state"),A(this,"timeouts"),A(this,"domListeners"),A(this,"windowListeners"),A(this,"pointerIds",newSet),A(this,"touchIds",newSet),A(this,"supportsTouchEvents",en()),A(this,"supportsGestureEvents",mr()),A(this,"bind",(...n)=>{constr={};for(letsofthis.classes)news(this,n).addBindings(r);for(letsinthis.nativeRefs)R(r,s,o=>this.nativeRefs[s]({...this.state.shared,event:o,args:n}));returnthis.config.domTarget?Er(this,r):_r(this,r)}),A(this,"clean",()=>{const{eventOptions:n,domTarget:r}=this.config,s=L(r);s&&ye(s,on(this.domListeners),n),Object.values(this.timeouts).forEach(clearTimeout),Tr(this)}),A(this,"reset",()=>{this.state=Ze()}),this.classes=t,this.state=Ze(),this.timeouts={},this.domListeners=[],this.windowListeners={}}}functionSr(e,t){"pointerId"int?e.pointerIds.add(t.pointerId):e.touchIds=newSet(nn(t))}functionwr(e,t){"pointerId"int?e.pointerIds.delete(t.pointerId):nn(t).forEach(n=>e.touchIds.delete(n))}functionTr(e){const{config:{window:t,eventOptions:n},windowListeners:r}=e,s=L(t);if(s){for(letoinr){consti=r[o];ye(s,i,n)}e.windowListeners={}}}functionOr({config:e,windowListeners:t},n,r=e.eventOptions){consts=L(e.window);s&&(ye(s,t[n],r),deletet[n])}functionxr({config:e,windowListeners:t},n,r=[],s=e.eventOptions){consto=L(e.window);o&&(ye(o,t[n],s),an(o,t[n]=r,s))}functionEr({config:e,domListeners:t},n){const{eventOptions:r,domTarget:s}=e,o=L(s);if(!o)thrownewError("domTarget must be defined");ye(o,on(t),r);for(let[i,a]ofObject.entries(n)){constl=i.s
`),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "template".',"Render a single element as the child so that we can forward the props onto that element."].map(d=>`-${d}`).join(`
`));let b=pn((i=f.props)!=null?i:{},l,c),g=sr(f,b,!0);for(let d in b)d.startsWith("on")&&(g.props||(g.props={}),g.props[d]=b[d]);return g}return Array.isArray(u)&&u.length===1?u[0]:u}return ct(a,Object.assign({},l,c),{default:()=>u})}function dn(e){return e.flatMap(t=>t.type===Jt?dn(t.children):[t])}function pn(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let r of e)for(let s in r)s.startsWith("on")&&typeof r[s]=="function"?(n[s]!=null||(n[s]=[]),n[s].push(r[s])):t[s]=r[s];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(n).map(r=>[r,void 0])));for(let r in n)Object.assign(t,{[r](s,...o){let i=n[r];for(let a of i){if(s instanceof Event&&s.defaultPrevented)return;a(s,...o)}}});return t}function hn(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}function fs(e){return e==null?!1:typeof e.type=="string"||typeof e.type=="object"||typeof e.type=="function"}let mn=Symbol("Context");var B=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(B||{});function ds(){return gn()!==null}function gn(){return ge(mn,null)}function ps(e){Me(mn,e)}function hs(e){let t={called:!1};return(...n)=>{if(!t.called)return t.called=!0,e(...n)}}function He(e,...t){e&&t.length>0&&e.classList.add(...t)}function xe(e,...t){e&&t.length>0&&e.classList.remove(...t)}var et=(e=>(e.Finished="finished",e.Cancelled="cancelled",e))(et||{});function ms(e,t){let n=pt();if(!e)return n.dispose;let{transitionDuration:r,transitionDelay:s}=getComputedStyle(e),[o,i]=[r,s].map(a=>{let[l=0]=a.split(",").filter(Boolean).map(u=>u.includes("ms")?parseFloat(u):parseFloat(u)*1e3).sort((u,c)=>c-u);return l});return o!==0?n.setTimeout(()=>t("finished"),o+i):t("finished"),n.add(()=>t("cancelled")),n.dispose}function Ft(e,t,n,r,s,o){let i=pt(),a=o!==void 0?hs(o):()=>{};return xe(e,...s),He(e,...t,...n),i.nextFrame(()=>{xe(e,...n),He(e,...r),i.add(ms(e,l=>(xe(e,...r,...t),He(e,...s),a(l))))}),i.add(()=>xe(e,...t,...n,...r,...s)),i.add(()=>a("cancelled")),i.dispose}function G(e=""){return e.split(/\s+/).filter(t=>t.length>1)}let ht=Symbol("TransitionContext");var gs=(e=>(e.Visible="visible",e.Hidden="hidden",e))(gs||{});function ys(){return ge(ht,null)!==null}function vs(){let e=ge(ht,null);if(e===null)throw new Error("A <TransitionChild /> is used but it is missing a parent <TransitionRoot />.");return e}function bs(){let e=ge(mt,null);if(e===null)throw new Error("A <TransitionChild /> is used but it is missing a parent <TransitionRoot />.");return e}let mt=Symbol("NestingContext");function Le(e){return"children"in e?Le(e.children):e.value.filter(({state:t})=>t==="visible").length>0}function yn(e){let t=x([]),n=x(!1);K(()=>n.value=!0),Re(()=>n.value=!1);function r(o,i=U.Hidden){let a=t.value.findIndex(({id:l})=>l===o);a!==-1&&(pe(i,{[U.Unmount](){t.value.splice(a,1)},[U.Hidden](){t.value[a].state="hidden"}}),!Le(t)&&n.value&&e?.())}function s(o){let i=t.value.find(({id:a})=>a===o);return i?i.state!=="visible"&&(i.state="visible"):t.value.push({id:o,state:"visible"}),()=>r(o,U.Unmount)}return{children:t,register:s,unregister:r}}let vn=cn.RenderStrategy,Ss=Qt({props:{as:{type:[Object,String],default:"div"},show:{type:[Boolean],default:null},unmount:{type:[Boolean],default:!0},appear:{type:[Boolean],default:!1},enter:{type:[String],default:""},enterFrom:{type:[String],default:""},enterTo:{type:[String],default:""},entered:{type:[String],default:""},leave:{type:[String],default:""},leaveFrom:{type:[String],default:""},leaveTo:{type:[String],default:""}},emits:{beforeEnter:()=>!0,afterEnter:()=>!0,beforeLeave:()=>!0,afterLeave:()=>!0},setup(e,{emit:t,attrs:n,slots:r,expose:s}){let o=x(0);function i(){o.value|=B.Opening,t("beforeEnter")}function a(){o.value&=~B.Opening,t("afterEnter")}function l(){o.value|=B.Closing,t("beforeLeave")}function u(){o.value&=~B.Closing,t("afterLeave")}if(!ys()&&ds())return()=>ct(bn,{...e,onBeforeEnter:i,onAfterEnter:a,onBeforeLeave:l,onAfterLeave:u},r);let c=x(null),f=H(()=>e.unmount?U.Unmount:U.Hidden);s({el:c