import{i as V,a as B,n as y,b as j,c as F,r as W,d as q,e as G,t as R,f as U,g as M}from"./index.6b4d4439.js";import{h as g,x as P,g as J,ae as H,y as A}from"./framework.3f630664.js";function O(n){var t;const e=W(n);return(t=e==null?void 0:e.$el)!=null?t:e}const E=V?window:void 0;function _(...n){let t,e,s,a;if(B(n[0])?([e,s,a]=n,t=E):[t,e,s,a]=n,!t)return y;let l=y;const d=P(()=>O(t),i=>{l(),i&&(i.addEventListener(e,s,a),l=()=>{i.removeEventListener(e,s,a),l=y})},{immediate:!0,flush:"post"}),r=()=>{d(),l()};return M(r),r}function ue(n,t,e={}){const{window:s=E,ignore:a,capture:l=!0,detectIframe:d=!1}=e;if(!s)return;const r=g(!0);let i;const c=u=>{s.clearTimeout(i);const o=O(n);!o||o===u.target||u.composedPath().includes(o)||!r.value||t(u)},h=u=>a&&a.some(o=>{const m=O(o);return m&&(u.target===m||u.composedPath().includes(m))}),b=[_(s,"click",c,{passive:!0,capture:l}),_(s,"pointerdown",u=>{const o=O(n);r.value=!!o&&!u.composedPath().includes(o)&&!h(u)},{passive:!0}),_(s,"pointerup",u=>{if(u.button===0){const o=u.composedPath();u.composedPath=()=>o,i=s.setTimeout(()=>c(u),50)}},{passive:!0}),d&&_(s,"blur",u=>{var o;const m=O(n);((o=document.activeElement)==null?void 0:o.tagName)==="IFRAME"&&!(m!=null&&m.contains(document.activeElement))&&t(u)})].filter(Boolean);return()=>b.forEach(u=>u())}function D(n,t=!1){const e=g(),s=()=>e.value=!!n();return s(),R(s,t),e}function v(n,t={}){const{window:e=E}=t,s=D(()=>e&&"matchMedia"in e&&typeof e.matchMedia=="function");let a;const l=g(!1),d=()=>{a&&("removeEventListener"in a?a.removeEventListener("change",r):a.removeListener(r))},r=()=>{s.value&&(d(),a=e.matchMedia(U(n).value),l.value=a.matches,"addEventListener"in a?a.addEventListener("change",r):a.addListener(r))};return A(r),M(()=>d()),l}const ie={sm:640,md:768,lg:1024,xl:1280,"2xl":1536};var K=Object.defineProperty,x=Object.getOwnPropertySymbols,z=Object.prototype.hasOwnProperty,X=Object.prototype.propertyIsEnumerable,S=(n,t,e)=>t in n?K(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e,Y=(n,t)=>{for(var e in t||(t={}))z.call(t,e)&&S(n,e,t[e]);if(x)for(var e of x(t))X.call(t,e)&&S(n,e,t[e]);return n};function oe(n,t={}){function e(r,i){let c=n[r];return i!=null&&(c=G(c,i)),typeof c=="number"&&(c=`${c}px`),c}const{window:s=E}=t;function a(r){return s?s.matchMedia(r).matches:!1}const l=r=>v(`(min-width: ${e(r)})`,t),d=Object.keys(n).reduce((r,i)=>(Object.defineProperty(r,i,{get:()=>l(i),enumerable:!0,configurable:!0}),r),{});return Y({greater(r){return v(`(min-width: ${e(r,.1)})`,t)},greaterOrEqual:l,smaller(r){return v(`(max-width: ${e(r,-.1)})`,t)},smallerOrEqual(r){return v(`(max-width: ${e(r)})`,t)},between(r,i){return v(`(min-width: ${e(r)}) and (max-width: ${e(i,-.1)})`,t)},isGreater(r){return a(`(min-width: ${e(r,.1)})`)},isGreaterOrEqual(r){return a(`(min-width: ${e(r)})`)},isSmaller(r){return a(`(max-width: ${e(r,-.1)})`)},isSmallerOrEqual(r){return a(`(max-width: ${e(r)})`)},isInBetween(r,i){return a(`(min-width: ${e(r)}) and (max-width: ${e(i,-.1)})`)}},d)}function Z(n){return JSON.parse(JSON.stringify(n))}const N=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},L="__vueuse_ssr_handlers__";N[L]=N[L]||{};var Q;(function(n){n.UP="UP",n.RIGHT="RIGHT",n.DOWN="DOWN",n.LEFT="LEFT",n.NONE="NONE"})(Q||(Q={}));var k=Object.defineProperty,T=Object.getOwnPropertySymbols,ee=Object.prototype.hasOwnProperty,te=Object.prototype.propertyIsEnumerable,C=(n,t,e)=>t in n?k(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e,ne=(n,t)=>{for(var e in t||(t={}))ee.call(t,e)&&C(n,e,t[e]);if(T)for(var e of T(t))te.call(t,e)&&C(n,e,t[e]);return n};const re={easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]};ne({linear:j},re);function le(n,t,e,s={}){var a,l,d;const{clone:r=!1,passive:i=!1,eventName:c,deep:h=!1,defaultValue:b}=s,f=H(),u=e||(f==null?void 0:f.emit)||((a=f==null?void 0:f.$emit)==null?void 0:a.bind(f))||((d=(l=f==null?void 0:f.proxy)==null?void 0:l.$emit)==null?void 0:d.bind(f==null?void 0:f.proxy));let o=c;t||(t="modelValue"),o=c||o||`update:${t.toString()}`;const m=p=>r?q(r)?r(p):Z(p):p,$=()=>F(n[t])?m(n[t]):b;if(i){const p=$(),I=g(p);return P(()=>n[t],w=>I.value=m(w)),P(I,w=>{(w!==n[t]||h)&&u(o,w)},{deep:h}),I}else return J({get(){return $()},set(p){u(o,p)}})}export{le as a,ie as b,ue as o,oe as u};
