import{Q as g,ax as L,aJ as T,ak as D,aK as R,aL as F,m as _,aM as V,aN as $,c as W,at as j,Z as B,aO as U,aP as M}from"./normalize-8daa80b1.js";function m(e){var t;const n=T(e);return(t=n==null?void 0:n.$el)!=null?t:n}const E=D?window:void 0,J=D?window.document:void 0;function b(...e){let t,n,r,c;if(R(e[0])||Array.isArray(e[0])?([n,r,c]=e,t=E):[t,n,r,c]=e,!t)return F;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const f=[],u=()=>{f.forEach(o=>o()),f.length=0},l=(o,d,s,a)=>(o.addEventListener(d,s,a),()=>o.removeEventListener(d,s,a)),p=g(()=>[m(t),T(c)],([o,d])=>{u(),o&&f.push(...n.flatMap(s=>r.map(a=>l(o,s,a,d))))},{immediate:!0,flush:"post"}),v=()=>{p(),u()};return L(v),v}let P=!1;function ne(e,t,n={}){const{window:r=E,ignore:c=[],capture:f=!0,detectIframe:u=!1}=n;if(!r)return;j&&!P&&(P=!0,Array.from(r.document.body.children).forEach(s=>s.addEventListener("click",F)));let l=!0;const p=s=>c.some(a=>{if(typeof a=="string")return Array.from(r.document.querySelectorAll(a)).some(i=>i===s.target||s.composedPath().includes(i));{const i=m(a);return i&&(s.target===i||s.composedPath().includes(i))}}),o=[b(r,"click",s=>{const a=m(e);if(!(!a||a===s.target||s.composedPath().includes(a))){if(s.detail===0&&(l=!p(s)),!l){l=!0;return}t(s)}},{passive:!0,capture:f}),b(r,"pointerdown",s=>{const a=m(e);a&&(l=!s.composedPath().includes(a)&&!p(s))},{passive:!0}),u&&b(r,"blur",s=>{var a;const i=m(e);((a=r.document.activeElement)==null?void 0:a.tagName)==="IFRAME"&&!(i!=null&&i.contains(r.document.activeElement))&&t(s)})].filter(Boolean);return()=>o.forEach(s=>s())}function z(e,t=!1){const n=_(),r=()=>n.value=!!e();return r(),V(r,t),n}function H(e){return JSON.parse(JSON.stringify(e))}const S=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},N="__vueuse_ssr_handlers__";S[N]=S[N]||{};function se({document:e=J}={}){if(!e)return _("visible");const t=_(e.visibilityState);return b(e,"visibilitychange",()=>{t.value=e.visibilityState}),t}var A=Object.getOwnPropertySymbols,k=Object.prototype.hasOwnProperty,G=Object.prototype.propertyIsEnumerable,K=(e,t)=>{var n={};for(var r in e)k.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&A)for(var r of A(e))t.indexOf(r)<0&&G.call(e,r)&&(n[r]=e[r]);return n};function re(e,t,n={}){const r=n,{window:c=E}=r,f=K(r,["window"]);let u;const l=z(()=>c&&"ResizeObserver"in c),p=()=>{u&&(u.disconnect(),u=void 0)},v=g(()=>m(e),d=>{p(),l.value&&c&&d&&(u=new ResizeObserver(t),u.observe(d,f))},{immediate:!0,flush:"post"}),o=()=>{p(),v()};return L(o),{isSupported:l,stop:o}}var C;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(C||(C={}));var q=Object.defineProperty,Q=Object.getOwnPropertySymbols,Z=Object.prototype.hasOwnProperty,X=Object.prototype.propertyIsEnumerable,x=(e,t,n)=>t in e?q(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Y=(e,t)=>{for(var n in t||(t={}))Z.call(t,n)&&x(e,n,t[n]);if(Q)for(var n of Q(t))X.call(t,n)&&x(e,n,t[n]);return e};const ee={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]};Y({linear:$},ee);function ae(e,t,n,r={}){var c,f,u;const{clone:l=!1,passive:p=!1,eventName:v,deep:o=!1,defaultValue:d}=r,s=B(),a=n||(s==null?void 0:s.emit)||((c=s==null?void 0:s.$emit)==null?void 0:c.bind(s))||((u=(f=s==null?void 0:s.proxy)==null?void 0:f.$emit)==null?void 0:u.bind(s==null?void 0:s.proxy));let i=v;t||(t="modelValue"),i=v||i||`update:${t.toString()}`;const w=O=>l?U(l)?l(O):H(O):O,I=()=>M(e[t])?w(e[t]):d;if(p){const O=I(),h=_(O);return g(()=>e[t],y=>h.value=w(y)),g(h,y=>{(y!==e[t]||o)&&a(i,y)},{deep:o}),h}else return W({get(){return I()},set(O){a(i,O)}})}function oe({window:e=E}={}){if(!e)return _(!1);const t=_(e.document.hasFocus());return b(e,"blur",()=>{t.value=!1}),b(e,"focus",()=>{t.value=!0}),t}const ie={tab:"Tab",enter:"Enter",space:"Space",left:"ArrowLeft",up:"ArrowUp",right:"ArrowRight",down:"ArrowDown",esc:"Escape",delete:"Delete",backspace:"Backspace",numpadEnter:"NumpadEnter",pageUp:"PageUp",pageDown:"PageDown",home:"Home",end:"End"};export{ie as E,re as a,se as b,oe as c,b as d,m as e,ne as o,ae as u};
