@vueuse/components
Advanced tools
Comparing version 12.5.0 to 12.6.0
@@ -15,3 +15,3 @@ import * as vue from 'vue'; | ||
interface OnClickOutsideOptions extends ConfigurableWindow { | ||
interface OnClickOutsideOptions<Controls extends boolean = false> extends ConfigurableWindow { | ||
/** | ||
@@ -31,8 +31,15 @@ * List of elements that should not trigger the event. | ||
detectIframe?: boolean; | ||
/** | ||
* Use controls to cancel/trigger listener. | ||
* @default false | ||
*/ | ||
controls?: Controls; | ||
} | ||
type OnClickOutsideHandler<T extends { | ||
detectIframe: OnClickOutsideOptions['detectIframe']; | ||
controls: boolean; | ||
} = { | ||
detectIframe: false; | ||
}> = (evt: T['detectIframe'] extends true ? PointerEvent | FocusEvent : PointerEvent) => void; | ||
controls: false; | ||
}> = (event: T['controls'] extends true ? Event | (T['detectIframe'] extends true ? PointerEvent | FocusEvent : PointerEvent) : T['detectIframe'] extends true ? PointerEvent | FocusEvent : PointerEvent) => void; | ||
@@ -53,7 +60,7 @@ interface Position { | ||
interface OnClickOutsideProps extends RenderableComponent { | ||
options?: OnClickOutsideOptions; | ||
options?: Omit<OnClickOutsideOptions, 'controls'>; | ||
} | ||
declare const OnClickOutside: vue.DefineComponent<OnClickOutsideProps, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<OnClickOutsideProps> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>; | ||
declare const vOnClickOutside: ObjectDirective<HTMLElement, OnClickOutsideHandler | [(evt: any) => void, OnClickOutsideOptions]>; | ||
declare const vOnClickOutside: ObjectDirective<HTMLElement, OnClickOutsideHandler | [(evt: any) => void, Omit<OnClickOutsideOptions, 'controls'>]>; | ||
@@ -459,2 +466,8 @@ type KeyStrokeEventName = 'keydown' | 'keypress' | 'keyup'; | ||
scrollTarget?: MaybeRefOrGetter<HTMLElement | undefined | null>; | ||
/** | ||
* Stop tracking when element visibility changes for the first time | ||
* | ||
* @default false | ||
*/ | ||
once?: boolean; | ||
} | ||
@@ -461,0 +474,0 @@ |
@@ -1,1 +0,1 @@ | ||
(function(w,C,o,S){"use strict";const ye=o.defineComponent({name:"OnClickOutside",props:["as","options"],emits:["trigger"],setup(e,{slots:t,emit:n}){const r=o.ref();return C.onClickOutside(r,a=>{n("trigger",a)},e.options),()=>{if(t.default)return o.h(e.as||"div",{ref:r},t.default())}}}),A=S.isClient?window:void 0;function k(e){var t;const n=o.toValue(e);return(t=n?.$el)!=null?t:n}function M(...e){const t=[],n=()=>{t.forEach(s=>s()),t.length=0},r=(s,f,c,u)=>(s.addEventListener(f,c,u),()=>s.removeEventListener(f,c,u)),a=o.computed(()=>{const s=S.toArray(o.toValue(e[0])).filter(f=>f!=null);return s.every(f=>typeof f!="string")?s:void 0}),l=S.watchImmediate(()=>{var s,f;return[(f=(s=a.value)==null?void 0:s.map(c=>k(c)))!=null?f:[A].filter(c=>c!=null),S.toArray(o.toValue(a.value?e[1]:e[0])),S.toArray(o.unref(a.value?e[2]:e[1])),o.toValue(a.value?e[3]:e[2])]},([s,f,c,u])=>{if(n(),!s?.length||!f?.length||!c?.length)return;const d=S.isObject(u)?{...u}:u;t.push(...s.flatMap(p=>f.flatMap(U=>c.map(v=>r(p,U,v,d)))))},{flush:"post"}),i=()=>{l(),n()};return S.tryOnScopeDispose(n),i}let Q=!1;function Z(e,t,n={}){const{window:r=A,ignore:a=[],capture:l=!0,detectIframe:i=!1}=n;if(!r)return S.noop;if(S.isIOS&&!Q){Q=!0;const h={passive:!0};Array.from(r.document.body.children).forEach(y=>M(y,"click",S.noop,h)),M(r.document.documentElement,"click",S.noop,h)}let s=!0;const f=h=>o.toValue(a).some(y=>{if(typeof y=="string")return Array.from(r.document.querySelectorAll(y)).some(m=>m===h.target||h.composedPath().includes(m));{const m=k(y);return m&&(h.target===m||h.composedPath().includes(m))}});function c(h){const y=o.toValue(h);return y&&y.$.subTree.shapeFlag===16}function u(h,y){const m=o.toValue(h),b=m.$.subTree&&m.$.subTree.children;return b==null||!Array.isArray(b)?!1:b.some(P=>P.el===y.target||y.composedPath().includes(P.el))}const d=h=>{const y=k(e);if(h.target!=null&&!(!(y instanceof Element)&&c(e)&&u(e,h))&&!(!y||y===h.target||h.composedPath().includes(y))){if(h.detail===0&&(s=!f(h)),!s){s=!0;return}t(h)}};let p=!1;const U=[M(r,"click",h=>{p||(p=!0,setTimeout(()=>{p=!1},0),d(h))},{passive:!0,capture:l}),M(r,"pointerdown",h=>{const y=k(e);s=!f(h)&&!!(y&&!h.composedPath().includes(y))},{passive:!0}),i&&M(r,"blur",h=>{setTimeout(()=>{var y;const m=k(e);((y=r.document.activeElement)==null?void 0:y.tagName)==="IFRAME"&&!m?.contains(r.document.activeElement)&&t(h)},0)},{passive:!0})].filter(Boolean);return()=>U.forEach(h=>h())}const ee={mounted(e,t){const n=!t.modifiers.bubble;if(typeof t.value=="function")e.__onClickOutside_stop=Z(e,t.value,{capture:n});else{const[r,a]=t.value;e.__onClickOutside_stop=Z(e,r,Object.assign({capture:n},a))}},unmounted(e){e.__onClickOutside_stop()}};function ve(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function te(...e){let t,n,r={};e.length===3?(t=e[0],n=e[1],r=e[2]):e.length===2?typeof e[1]=="object"?(t=!0,n=e[0],r=e[1]):(t=e[0],n=e[1]):(t=!0,n=e[0]);const{target:a=A,eventName:l="keydown",passive:i=!1,dedupe:s=!1}=r,f=ve(t);return M(a,l,u=>{u.repeat&&o.toValue(s)||f(u)&&n(u)},i)}const we={mounted(e,t){var n,r;const a=(r=(n=t.arg)==null?void 0:n.split(","))!=null?r:!0;if(typeof t.value=="function")te(a,t.value,{target:e});else{const[l,i]=t.value;te(a,l,{target:e,...i})}}},Ue=500,Se=10;function X(e,t,n){var r,a;const l=o.computed(()=>k(e));let i,s,f,c=!1;function u(){i&&(clearTimeout(i),i=void 0),s=void 0,f=void 0,c=!1}function d(m){var b,P,O;const[D,R,g]=[f,s,c];if(u(),!n?.onMouseUp||!R||!D||(b=n?.modifiers)!=null&&b.self&&m.target!==l.value)return;(P=n?.modifiers)!=null&&P.prevent&&m.preventDefault(),(O=n?.modifiers)!=null&&O.stop&&m.stopPropagation();const L=m.x-R.x,T=m.y-R.y,I=Math.sqrt(L*L+T*T);n.onMouseUp(m.timeStamp-D,I,g)}function p(m){var b,P,O,D;(b=n?.modifiers)!=null&&b.self&&m.target!==l.value||(u(),(P=n?.modifiers)!=null&&P.prevent&&m.preventDefault(),(O=n?.modifiers)!=null&&O.stop&&m.stopPropagation(),s={x:m.x,y:m.y},f=m.timeStamp,i=setTimeout(()=>{c=!0,t(m)},(D=n?.delay)!=null?D:Ue))}function U(m){var b,P,O,D;if((b=n?.modifiers)!=null&&b.self&&m.target!==l.value||!s||n?.distanceThreshold===!1)return;(P=n?.modifiers)!=null&&P.prevent&&m.preventDefault(),(O=n?.modifiers)!=null&&O.stop&&m.stopPropagation();const R=m.x-s.x,g=m.y-s.y;Math.sqrt(R*R+g*g)>=((D=n?.distanceThreshold)!=null?D:Se)&&u()}const v={capture:(r=n?.modifiers)==null?void 0:r.capture,once:(a=n?.modifiers)==null?void 0:a.once},h=[M(l,"pointerdown",p,v),M(l,"pointermove",U,v),M(l,["pointerup","pointerleave"],d,v)];return()=>h.forEach(m=>m())}const be=o.defineComponent({name:"OnLongPress",props:["as","options"],emits:["trigger"],setup(e,{slots:t,emit:n}){const r=o.ref();return X(r,a=>{n("trigger",a)},e.options),()=>{if(t.default)return o.h(e.as||"div",{ref:r},t.default())}}}),ne={mounted(e,t){typeof t.value=="function"?X(e,t.value,{modifiers:t.modifiers}):X(e,...t.value)}},Ce=o.defineComponent({name:"UseActiveElement",setup(e,{slots:t}){const n=o.reactive({element:C.useActiveElement()});return()=>{if(t.default)return t.default(n)}}}),Ee=o.defineComponent({name:"UseBattery",setup(e,{slots:t}){const n=o.reactive(C.useBattery(e));return()=>{if(t.default)return t.default(n)}}}),Oe=o.defineComponent({name:"UseBrowserLocation",setup(e,{slots:t}){const n=o.reactive(C.useBrowserLocation());return()=>{if(t.default)return t.default(n)}}}),Pe=o.defineComponent({name:"UseClipboard",props:["source","read","navigator","copiedDuring","legacy"],setup(e,{slots:t}){const n=o.reactive(C.useClipboard(e));return()=>{var r;return(r=t.default)==null?void 0:r.call(t,n)}}}),B=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},H="__vueuse_ssr_handlers__",Ve=De();function De(){return H in B||(B[H]=B[H]||{}),B[H]}function oe(e,t){return Ve[e]||t}const _e=Symbol("vueuse-ssr-width");function Me(){const e=o.hasInjectionContext()?S.injectLocal(_e,null):null;return typeof e=="number"?e:void 0}function Te(){const e=o.ref(!1),t=o.getCurrentInstance();return t&&o.onMounted(()=>{e.value=!0},t),e}function N(e){const t=Te();return o.computed(()=>(t.value,!!e()))}function ke(e,t={}){const{window:n=A,ssrWidth:r=Me()}=t,a=N(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function"),l=o.ref(typeof r=="number"),i=o.shallowRef(),s=o.ref(!1),f=c=>{s.value=c.matches};return o.watchEffect(()=>{if(l.value){l.value=!a.value;const c=o.toValue(e).split(",");s.value=c.some(u=>{const d=u.includes("not all"),p=u.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),U=u.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);let v=!!(p||U);return p&&v&&(v=r>=S.pxValue(p[1])),U&&v&&(v=r<=S.pxValue(U[1])),d?!v:v});return}a.value&&(i.value=n.matchMedia(o.toValue(e)),s.value=i.value.matches)}),M(i,"change",f,{passive:!0}),o.computed(()=>s.value)}function Le(e){return ke("(prefers-color-scheme: dark)",e)}function Re(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const Ae={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},re="vueuse-storage";function Ie(e,t,n,r={}){var a;const{flush:l="pre",deep:i=!0,listenToStorageChanges:s=!0,writeDefaults:f=!0,mergeDefaults:c=!1,shallow:u,window:d=A,eventFilter:p,onError:U=E=>{console.error(E)},initOnMounted:v}=r,h=(u?o.shallowRef:o.ref)(typeof t=="function"?t():t),y=o.computed(()=>o.toValue(e));if(!n)try{n=oe("getDefaultStorage",()=>{var E;return(E=A)==null?void 0:E.localStorage})()}catch(E){U(E)}if(!n)return h;const m=o.toValue(t),b=Re(m),P=(a=r.serializer)!=null?a:Ae[b],{pause:O,resume:D}=S.pausableWatch(h,()=>g(h.value),{flush:l,deep:i,eventFilter:p});o.watch(y,()=>T(),{flush:l}),d&&s&&S.tryOnMounted(()=>{n instanceof Storage?M(d,"storage",T,{passive:!0}):M(d,re,I),v&&T()}),v||T();function R(E,_){if(d){const V={key:y.value,oldValue:E,newValue:_,storageArea:n};d.dispatchEvent(n instanceof Storage?new StorageEvent("storage",V):new CustomEvent(re,{detail:V}))}}function g(E){try{const _=n.getItem(y.value);if(E==null)R(_,null),n.removeItem(y.value);else{const V=P.write(E);_!==V&&(n.setItem(y.value,V),R(_,V))}}catch(_){U(_)}}function L(E){const _=E?E.newValue:n.getItem(y.value);if(_==null)return f&&m!=null&&n.setItem(y.value,P.write(m)),m;if(!E&&c){const V=P.read(_);return typeof c=="function"?c(V,m):b==="object"&&!Array.isArray(V)?{...m,...V}:V}else return typeof _!="string"?_:P.read(_)}function T(E){if(!(E&&E.storageArea!==n)){if(E&&E.key==null){h.value=m;return}if(!(E&&E.key!==y.value)){O();try{E?.newValue!==P.write(h.value)&&(h.value=L(E))}catch(_){U(_)}finally{E?o.nextTick(D):D()}}}}function I(E){T(E.detail)}return h}const ze="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function We(e={}){const{selector:t="html",attribute:n="class",initialValue:r="auto",window:a=A,storage:l,storageKey:i="vueuse-color-scheme",listenToStorageChanges:s=!0,storageRef:f,emitAuto:c,disableTransition:u=!0}=e,d={auto:"",light:"light",dark:"dark",...e.modes||{}},p=Le({window:a}),U=o.computed(()=>p.value?"dark":"light"),v=f||(i==null?S.toRef(r):Ie(i,r,l,{window:a,listenToStorageChanges:s})),h=o.computed(()=>v.value==="auto"?U.value:v.value),y=oe("updateHTMLAttrs",(O,D,R)=>{const g=typeof O=="string"?a?.document.querySelector(O):k(O);if(!g)return;const L=new Set,T=new Set;let I=null;if(D==="class"){const _=R.split(/\s/g);Object.values(d).flatMap(V=>(V||"").split(/\s/g)).filter(Boolean).forEach(V=>{_.includes(V)?L.add(V):T.add(V)})}else I={key:D,value:R};if(L.size===0&&T.size===0&&I===null)return;let E;u&&(E=a.document.createElement("style"),E.appendChild(document.createTextNode(ze)),a.document.head.appendChild(E));for(const _ of L)g.classList.add(_);for(const _ of T)g.classList.remove(_);I&&g.setAttribute(I.key,I.value),u&&(a.getComputedStyle(E).opacity,document.head.removeChild(E))});function m(O){var D;y(t,n,(D=d[O])!=null?D:O)}function b(O){e.onChanged?e.onChanged(O,m):m(O)}o.watch(h,b,{flush:"post",immediate:!0}),S.tryOnMounted(()=>b(h.value));const P=o.computed({get(){return c?v.value:h.value},set(O){v.value=O}});return Object.assign(P,{store:v,system:U,state:h})}const Be=o.defineComponent({name:"UseColorMode",props:["selector","attribute","modes","onChanged","storageKey","storage","emitAuto"],setup(e,{slots:t}){const n=We(e),r=o.reactive({mode:n,system:n.system,store:n.store});return()=>{if(t.default)return t.default(r)}}}),He=o.defineComponent({name:"UseDark",props:["selector","attribute","valueDark","valueLight","onChanged","storageKey","storage"],setup(e,{slots:t}){const n=C.useDark(e),r=o.reactive({isDark:n,toggleDark:S.useToggle(n)});return()=>{if(t.default)return t.default(r)}}}),Ne=o.defineComponent({name:"UseDeviceMotion",setup(e,{slots:t}){const n=C.useDeviceMotion();return()=>{if(t.default)return t.default(n)}}}),Fe=o.defineComponent({name:"UseDeviceOrientation",setup(e,{slots:t}){const n=o.reactive(C.useDeviceOrientation());return()=>{if(t.default)return t.default(n)}}}),je=o.defineComponent({name:"UseDevicePixelRatio",setup(e,{slots:t}){const n=o.reactive({pixelRatio:C.useDevicePixelRatio()});return()=>{if(t.default)return t.default(n)}}}),Ye=o.defineComponent({name:"UseDevicesList",props:["onUpdated","requestPermissions","constraints"],setup(e,{slots:t}){const n=o.reactive(C.useDevicesList(e));return()=>{if(t.default)return t.default(n)}}}),xe=o.defineComponent({name:"UseDocumentVisibility",setup(e,{slots:t}){const n=o.reactive({visibility:C.useDocumentVisibility()});return()=>{if(t.default)return t.default(n)}}}),Xe=o.defineComponent({name:"UseDraggable",props:["storageKey","storageType","initialValue","exact","preventDefault","stopPropagation","pointerTypes","as","handle","axis","onStart","onMove","onEnd","disabled","buttons","containerElement"],setup(e,{slots:t}){const n=o.ref(),r=o.computed(()=>{var u;return(u=e.handle)!=null?u:n.value}),a=o.computed(()=>{var u;return(u=e.containerElement)!=null?u:void 0}),l=o.computed(()=>!!e.disabled),i=e.storageKey&&C.useStorage(e.storageKey,o.toValue(e.initialValue)||{x:0,y:0},C.isClient?e.storageType==="session"?sessionStorage:localStorage:void 0),s=i||e.initialValue||{x:0,y:0},f=(u,d)=>{var p;(p=e.onEnd)==null||p.call(e,u,d),i&&(i.value.x=u.x,i.value.y=u.y)},c=o.reactive(C.useDraggable(n,{...e,handle:r,initialValue:s,onEnd:f,disabled:l,containerElement:a}));return()=>{if(t.default)return o.h(e.as||"div",{ref:n,style:`touch-action:none;${c.style}`},t.default(c))}}}),Ke=o.defineComponent({name:"UseElementBounding",props:["box","as"],setup(e,{slots:t}){const n=o.ref(),r=o.reactive(C.useElementBounding(n));return()=>{if(t.default)return o.h(e.as||"div",{ref:n},t.default(r))}}});function K(e,t,n={}){const{window:r=A,...a}=n;let l;const i=N(()=>r&&"MutationObserver"in r),s=()=>{l&&(l.disconnect(),l=void 0)},f=o.computed(()=>{const p=o.toValue(e),U=S.toArray(p).map(k).filter(S.notNullish);return new Set(U)}),c=o.watch(()=>f.value,p=>{s(),i.value&&p.size&&(l=new MutationObserver(t),p.forEach(U=>l.observe(U,a)))},{immediate:!0,flush:"post"}),u=()=>l?.takeRecords(),d=()=>{c(),s()};return S.tryOnScopeDispose(d),{isSupported:i,stop:d,takeRecords:u}}function F(e,t,n={}){const{window:r=A,...a}=n;let l;const i=N(()=>r&&"ResizeObserver"in r),s=()=>{l&&(l.disconnect(),l=void 0)},f=o.computed(()=>{const d=o.toValue(e);return Array.isArray(d)?d.map(p=>k(p)):[k(d)]}),c=o.watch(f,d=>{if(s(),i.value&&r){l=new ResizeObserver(t);for(const p of d)p&&l.observe(p,a)}},{immediate:!0,flush:"post"}),u=()=>{s(),c()};return S.tryOnScopeDispose(u),{isSupported:i,stop:u}}function Ge(e,t={}){const{reset:n=!0,windowResize:r=!0,windowScroll:a=!0,immediate:l=!0,updateTiming:i="sync"}=t,s=o.ref(0),f=o.ref(0),c=o.ref(0),u=o.ref(0),d=o.ref(0),p=o.ref(0),U=o.ref(0),v=o.ref(0);function h(){const m=k(e);if(!m){n&&(s.value=0,f.value=0,c.value=0,u.value=0,d.value=0,p.value=0,U.value=0,v.value=0);return}const b=m.getBoundingClientRect();s.value=b.height,f.value=b.bottom,c.value=b.left,u.value=b.right,d.value=b.top,p.value=b.width,U.value=b.x,v.value=b.y}function y(){i==="sync"?h():i==="next-frame"&&requestAnimationFrame(()=>h())}return F(e,y),o.watch(()=>k(e),m=>!m&&y()),K(e,y,{attributeFilter:["style","class"]}),a&&M("scroll",y,{capture:!0,passive:!0}),r&&M("resize",y,{passive:!0}),S.tryOnMounted(()=>{l&&y()}),{height:s,bottom:f,left:c,right:u,top:d,width:p,x:U,y:v,update:y}}const Je={mounted(e,t){const[n,r]=typeof t.value=="function"?[t.value,{}]:t.value,{height:a,bottom:l,left:i,right:s,top:f,width:c,x:u,y:d}=Ge(e,r);o.watch([a,l,i,s,f,c,u,d],()=>n({height:a,bottom:l,left:i,right:s,top:f,width:c,x:u,y:d}))}};function $e(e,t,n={}){const{window:r=A,document:a=r?.document,flush:l="sync"}=n;if(!r||!a)return S.noop;let i;const s=u=>{i?.(),i=u},f=o.watchEffect(()=>{const u=k(e);if(u){const{stop:d}=K(a,p=>{p.map(v=>[...v.removedNodes]).flat().some(v=>v===u||v.contains(u))&&t(p)},{window:r,childList:!0,subtree:!0});s(d)}},{flush:l}),c=()=>{f(),s()};return S.tryOnScopeDispose(c),c}function ae(e,t={}){const{delayEnter:n=0,delayLeave:r=0,triggerOnRemoval:a=!1,window:l=A}=t,i=o.ref(!1);let s;const f=c=>{const u=c?n:r;s&&(clearTimeout(s),s=void 0),u?s=setTimeout(()=>i.value=c,u):i.value=c};return l&&(M(e,"mouseenter",()=>f(!0),{passive:!0}),M(e,"mouseleave",()=>f(!1),{passive:!0}),a&&$e(o.computed(()=>k(e)),()=>f(!1))),i}const qe={mounted(e,t){const n=t.value;if(typeof n=="function"){const r=ae(e);o.watch(r,a=>n(a))}else{const[r,a]=n,l=ae(e,a);o.watch(l,i=>r(i))}}},Qe=o.defineComponent({name:"UseElementSize",props:["width","height","box","as"],setup(e,{slots:t}){const n=o.ref(),r=o.reactive(C.useElementSize(n,{width:e.width,height:e.height},{box:e.box}));return()=>{if(t.default)return o.h(e.as||"div",{ref:n},t.default(r))}}});function Ze(e,t={width:0,height:0},n={}){const{window:r=A,box:a="content-box"}=n,l=o.computed(()=>{var d,p;return(p=(d=k(e))==null?void 0:d.namespaceURI)==null?void 0:p.includes("svg")}),i=o.ref(t.width),s=o.ref(t.height),{stop:f}=F(e,([d])=>{const p=a==="border-box"?d.borderBoxSize:a==="content-box"?d.contentBoxSize:d.devicePixelContentBoxSize;if(r&&l.value){const U=k(e);if(U){const v=U.getBoundingClientRect();i.value=v.width,s.value=v.height}}else if(p){const U=S.toArray(p);i.value=U.reduce((v,{inlineSize:h})=>v+h,0),s.value=U.reduce((v,{blockSize:h})=>v+h,0)}else i.value=d.contentRect.width,s.value=d.contentRect.height},n);S.tryOnMounted(()=>{const d=k(e);d&&(i.value="offsetWidth"in d?d.offsetWidth:t.width,s.value="offsetHeight"in d?d.offsetHeight:t.height)});const c=o.watch(()=>k(e),d=>{i.value=d?t.width:0,s.value=d?t.height:0});function u(){f(),c()}return{width:i,height:s,stop:u}}const et={mounted(e,t){var n;const r=typeof t.value=="function"?t.value:(n=t.value)==null?void 0:n[0],a=typeof t.value=="function"?[]:t.value.slice(1),{width:l,height:i}=Ze(e,...a);o.watch([l,i],([s,f])=>r({width:s,height:f}))}},tt=o.defineComponent({name:"UseElementVisibility",props:["as"],setup(e,{slots:t}){const n=o.ref(),r=o.reactive({isVisible:C.useElementVisibility(n)});return()=>{if(t.default)return o.h(e.as||"div",{ref:n},t.default(r))}}});function G(e,t,n={}){const{root:r,rootMargin:a="0px",threshold:l=0,window:i=A,immediate:s=!0}=n,f=N(()=>i&&"IntersectionObserver"in i),c=o.computed(()=>{const v=o.toValue(e);return S.toArray(v).map(k).filter(S.notNullish)});let u=S.noop;const d=o.ref(s),p=f.value?o.watch(()=>[c.value,k(r),d.value],([v,h])=>{if(u(),!d.value||!v.length)return;const y=new IntersectionObserver(t,{root:k(h),rootMargin:a,threshold:l});v.forEach(m=>m&&y.observe(m)),u=()=>{y.disconnect(),u=S.noop}},{immediate:s,flush:"post"}):S.noop,U=()=>{u(),p(),d.value=!1};return S.tryOnScopeDispose(U),{isSupported:f,isActive:d,pause(){u(),d.value=!1},resume(){d.value=!0},stop:U}}function J(e,t={}){const{window:n=A,scrollTarget:r,threshold:a=0,rootMargin:l}=t,i=o.ref(!1);return G(e,s=>{let f=i.value,c=0;for(const u of s)u.time>=c&&(c=u.time,f=u.isIntersecting);i.value=f},{root:r,window:n,threshold:a,rootMargin:o.toValue(l)}),i}const nt={mounted(e,t){if(typeof t.value=="function"){const n=t.value,r=J(e);o.watch(r,a=>n(a),{immediate:!0})}else{const[n,r]=t.value,a=J(e,r);o.watch(a,l=>n(l),{immediate:!0})}}},ot=o.defineComponent({name:"UseEyeDropper",props:{sRGBHex:String},setup(e,{slots:t}){const n=o.reactive(C.useEyeDropper());return()=>{if(t.default)return t.default(n)}}}),rt=o.defineComponent({name:"UseFullscreen",props:["as"],setup(e,{slots:t}){const n=o.ref(),r=o.reactive(C.useFullscreen(n));return()=>{if(t.default)return o.h(e.as||"div",{ref:n},t.default(r))}}}),at=o.defineComponent({name:"UseGeolocation",props:["enableHighAccuracy","maximumAge","timeout","navigator"],setup(e,{slots:t}){const n=o.reactive(C.useGeolocation(e));return()=>{if(t.default)return t.default(n)}}}),st=o.defineComponent({name:"UseIdle",props:["timeout","events","listenForVisibilityChange","initialState"],setup(e,{slots:t}){const n=o.reactive(C.useIdle(e.timeout,e));return()=>{if(t.default)return t.default(n)}}});function lt(e,t,n){const{immediate:r=!0,delay:a=0,onError:l=S.noop,onSuccess:i=S.noop,resetOnExecute:s=!0,shallow:f=!0,throwError:c}=n??{},u=f?o.shallowRef(t):o.ref(t),d=o.ref(!1),p=o.ref(!1),U=o.shallowRef(void 0);async function v(m=0,...b){s&&(u.value=t),U.value=void 0,d.value=!1,p.value=!0,m>0&&await S.promiseTimeout(m);const P=typeof e=="function"?e(...b):e;try{const O=await P;u.value=O,d.value=!0,i(O)}catch(O){if(U.value=O,l(O),c)throw O}finally{p.value=!1}return u.value}r&&v(a);const h={state:u,isReady:d,isLoading:p,error:U,execute:v};function y(){return new Promise((m,b)=>{S.until(p).toBe(!1).then(()=>m(h)).catch(b)})}return{...h,then(m,b){return y().then(m,b)}}}async function it(e){return new Promise((t,n)=>{const r=new Image,{src:a,srcset:l,sizes:i,class:s,loading:f,crossorigin:c,referrerPolicy:u,width:d,height:p,decoding:U,fetchPriority:v,ismap:h,usemap:y}=e;r.src=a,l!=null&&(r.srcset=l),i!=null&&(r.sizes=i),s!=null&&(r.className=s),f!=null&&(r.loading=f),c!=null&&(r.crossOrigin=c),u!=null&&(r.referrerPolicy=u),d!=null&&(r.width=d),p!=null&&(r.height=p),U!=null&&(r.decoding=U),v!=null&&(r.fetchPriority=v),h!=null&&(r.isMap=h),y!=null&&(r.useMap=y),r.onload=()=>t(r),r.onerror=n})}function ut(e,t={}){const n=lt(()=>it(o.toValue(e)),void 0,{resetOnExecute:!0,...t});return o.watch(()=>o.toValue(e),()=>n.execute(t.delay),{deep:!0}),n}const ct=o.defineComponent({name:"UseImage",props:["src","srcset","sizes","as","alt","class","loading","crossorigin","referrerPolicy","width","height","decoding","fetchPriority","ismap","usemap"],setup(e,{slots:t}){const n=o.reactive(ut(e));return()=>n.isLoading&&t.loading?t.loading(n):n.error&&t.error?t.error(n.error):t.default?t.default(n):o.h(e.as||"img",e)}});function j(e){return typeof Window<"u"&&e instanceof Window?e.document.documentElement:typeof Document<"u"&&e instanceof Document?e.documentElement:e}const se=1;function $(e,t={}){const{throttle:n=0,idle:r=200,onStop:a=S.noop,onScroll:l=S.noop,offset:i={left:0,right:0,top:0,bottom:0},eventListenerOptions:s={capture:!1,passive:!0},behavior:f="auto",window:c=A,onError:u=g=>{console.error(g)}}=t,d=o.ref(0),p=o.ref(0),U=o.computed({get(){return d.value},set(g){h(g,void 0)}}),v=o.computed({get(){return p.value},set(g){h(void 0,g)}});function h(g,L){var T,I,E,_;if(!c)return;const V=o.toValue(e);if(!V)return;(E=V instanceof Document?c.document.body:V)==null||E.scrollTo({top:(T=o.toValue(L))!=null?T:v.value,left:(I=o.toValue(g))!=null?I:U.value,behavior:o.toValue(f)});const z=((_=V?.document)==null?void 0:_.documentElement)||V?.documentElement||V;U!=null&&(d.value=z.scrollLeft),v!=null&&(p.value=z.scrollTop)}const y=o.ref(!1),m=o.reactive({left:!0,right:!1,top:!0,bottom:!1}),b=o.reactive({left:!1,right:!1,top:!1,bottom:!1}),P=g=>{y.value&&(y.value=!1,b.left=!1,b.right=!1,b.top=!1,b.bottom=!1,a(g))},O=S.useDebounceFn(P,n+r),D=g=>{var L;if(!c)return;const T=((L=g?.document)==null?void 0:L.documentElement)||g?.documentElement||k(g),{display:I,flexDirection:E,direction:_}=getComputedStyle(T),V=_==="rtl"?-1:1,z=T.scrollLeft;b.left=z<d.value,b.right=z>d.value;const me=z*V<=(i.left||0),pe=z*V+T.clientWidth>=T.scrollWidth-(i.right||0)-se;I==="flex"&&E==="row-reverse"?(m.left=pe,m.right=me):(m.left=me,m.right=pe),d.value=z;let W=T.scrollTop;g===c.document&&!W&&(W=c.document.body.scrollTop),b.top=W<p.value,b.bottom=W>p.value;const he=W<=(i.top||0),ge=W+T.clientHeight>=T.scrollHeight-(i.bottom||0)-se;I==="flex"&&E==="column-reverse"?(m.top=ge,m.bottom=he):(m.top=he,m.bottom=ge),p.value=W},R=g=>{var L;if(!c)return;const T=(L=g.target.documentElement)!=null?L:g.target;D(T),y.value=!0,O(g),l(g)};return M(e,"scroll",n?S.useThrottleFn(R,n,!0,!1):R,s),S.tryOnMounted(()=>{try{const g=o.toValue(e);if(!g)return;D(g)}catch(g){u(g)}}),M(e,"scrollend",P,s),{x:U,y:v,isScrolling:y,arrivedState:m,directions:b,measure(){const g=o.toValue(e);c&&g&&D(g)}}}function le(e,t,n={}){var r;const{direction:a="bottom",interval:l=100,canLoadMore:i=()=>!0}=n,s=o.reactive($(e,{...n,offset:{[a]:(r=n.distance)!=null?r:0,...n.offset}})),f=o.ref(),c=o.computed(()=>!!f.value),u=o.computed(()=>j(o.toValue(e))),d=J(u);function p(){if(s.measure(),!u.value||!d.value||!i(u.value))return;const{scrollHeight:v,clientHeight:h,scrollWidth:y,clientWidth:m}=u.value,b=a==="bottom"||a==="top"?v<=h:y<=m;(s.arrivedState[a]||b)&&(f.value||(f.value=Promise.all([t(s),new Promise(P=>setTimeout(P,l))]).finally(()=>{f.value=null,o.nextTick(()=>p())})))}const U=o.watch(()=>[s.arrivedState[a],d.value],p,{immediate:!0});return S.tryOnUnmounted(U),{isLoading:c,reset(){o.nextTick(()=>p())}}}const ft={mounted(e,t){typeof t.value=="function"?le(e,t.value):le(e,...t.value)}},dt={mounted(e,t){typeof t.value=="function"?G(e,t.value):G(e,...t.value)}},mt=o.defineComponent({name:"UseMouse",props:["touch","resetOnTouchEnds","initialValue"],setup(e,{slots:t}){const n=o.reactive(C.useMouse(e));return()=>{if(t.default)return t.default(n)}}}),pt=o.defineComponent({name:"UseMouseElement",props:["handleOutside","as"],setup(e,{slots:t}){const n=o.ref(),r=o.reactive(C.useMouseInElement(n,e));return()=>{if(t.default)return o.h(e.as||"div",{ref:n},t.default(r))}}}),ht={page:e=>[e.pageX,e.pageY],client:e=>[e.clientX,e.clientY],screen:e=>[e.screenX,e.screenY],movement:e=>e instanceof Touch?null:[e.movementX,e.movementY]};function gt(e={}){const{type:t="page",touch:n=!0,resetOnTouchEnds:r=!1,initialValue:a={x:0,y:0},window:l=A,target:i=l,scroll:s=!0,eventFilter:f}=e;let c=null,u=0,d=0;const p=o.ref(a.x),U=o.ref(a.y),v=o.ref(null),h=typeof t=="function"?t:ht[t],y=g=>{const L=h(g);c=g,L&&([p.value,U.value]=L,v.value="mouse"),l&&(u=l.scrollX,d=l.scrollY)},m=g=>{if(g.touches.length>0){const L=h(g.touches[0]);L&&([p.value,U.value]=L,v.value="touch")}},b=()=>{if(!c||!l)return;const g=h(c);c instanceof MouseEvent&&g&&(p.value=g[0]+l.scrollX-u,U.value=g[1]+l.scrollY-d)},P=()=>{p.value=a.x,U.value=a.y},O=f?g=>f(()=>y(g),{}):g=>y(g),D=f?g=>f(()=>m(g),{}):g=>m(g),R=f?()=>f(()=>b(),{}):()=>b();if(i){const g={passive:!0};M(i,["mousemove","dragover"],O,g),n&&t!=="movement"&&(M(i,["touchstart","touchmove"],D,g),r&&M(i,"touchend",P,g)),s&&t==="page"&&M(l,"scroll",R,g)}return{x:p,y:U,sourceType:v}}function yt(e,t={}){const{handleOutside:n=!0,window:r=A}=t,a=t.type||"page",{x:l,y:i,sourceType:s}=gt(t),f=o.ref(e??r?.document.body),c=o.ref(0),u=o.ref(0),d=o.ref(0),p=o.ref(0),U=o.ref(0),v=o.ref(0),h=o.ref(!0);let y=()=>{};return r&&(y=o.watch([f,l,i],()=>{const m=k(f);if(!m||!(m instanceof Element))return;const{left:b,top:P,width:O,height:D}=m.getBoundingClientRect();d.value=b+(a==="page"?r.pageXOffset:0),p.value=P+(a==="page"?r.pageYOffset:0),U.value=D,v.value=O;const R=l.value-d.value,g=i.value-p.value;h.value=O===0||D===0||R<0||g<0||R>O||g>D,(n||!h.value)&&(c.value=R,u.value=g)},{immediate:!0}),M(document,"mouseleave",()=>h.value=!0,{passive:!0})),{x:l,y:i,sourceType:s,elementX:c,elementY:u,elementPositionX:d,elementPositionY:p,elementHeight:U,elementWidth:v,isOutside:h,stop:y}}const vt={mounted(e,t){const[n,r]=typeof t.value=="function"?[t.value,{}]:t.value,a=S.reactiveOmit(o.reactive(yt(e,r)),"stop");o.watch(a,l=>n(l))}},wt=o.defineComponent({name:"UseMousePressed",props:["touch","initialValue","as"],setup(e,{slots:t}){const n=o.ref(),r=o.reactive(C.useMousePressed({...e,target:n}));return()=>{if(t.default)return o.h(e.as||"div",{ref:n},t.default(r))}}}),Ut=o.defineComponent({name:"UseNetwork",setup(e,{slots:t}){const n=o.reactive(C.useNetwork());return()=>{if(t.default)return t.default(n)}}}),St=o.defineComponent({name:"UseNow",props:["interval"],setup(e,{slots:t}){const n=o.reactive(C.useNow({...e,controls:!0}));return()=>{if(t.default)return t.default(n)}}}),bt=o.defineComponent({name:"UseObjectUrl",props:["object"],setup(e,{slots:t}){const n=S.toRef(e,"object"),r=C.useObjectUrl(n);return()=>{if(t.default&&r.value)return t.default(r)}}}),Ct=o.defineComponent({name:"UseOffsetPagination",props:["total","page","pageSize","onPageChange","onPageSizeChange","onPageCountChange"],emits:["page-change","page-size-change","page-count-change"],setup(e,{slots:t,emit:n}){const r=o.reactive(C.useOffsetPagination({...e,onPageChange(...a){var l;(l=e.onPageChange)==null||l.call(e,...a),n("page-change",...a)},onPageSizeChange(...a){var l;(l=e.onPageSizeChange)==null||l.call(e,...a),n("page-size-change",...a)},onPageCountChange(...a){var l;(l=e.onPageCountChange)==null||l.call(e,...a),n("page-count-change",...a)}}));return()=>{if(t.default)return t.default(r)}}}),Et=o.defineComponent({name:"UseOnline",setup(e,{slots:t}){const n=o.reactive({isOnline:C.useOnline()});return()=>{if(t.default)return t.default(n)}}}),Ot=o.defineComponent({name:"UsePageLeave",setup(e,{slots:t}){const n=o.reactive({isLeft:C.usePageLeave()});return()=>{if(t.default)return t.default(n)}}}),Pt=o.defineComponent({name:"UsePointer",props:["pointerTypes","initialValue","target"],setup(e,{slots:t}){const n=o.ref(null),r=o.reactive(C.usePointer({...e,target:e.target==="self"?n:A}));return()=>{if(t.default)return t.default(r,{ref:n})}}}),Vt=o.defineComponent({name:"UsePointerLock",props:["as"],setup(e,{slots:t}){const n=o.ref(),r=o.reactive(C.usePointerLock(n));return()=>{if(t.default)return o.h(e.as||"div",{ref:n},t.default(r))}}}),Dt=o.defineComponent({name:"UsePreferredColorScheme",setup(e,{slots:t}){const n=o.reactive({colorScheme:C.usePreferredColorScheme()});return()=>{if(t.default)return t.default(n)}}}),_t=o.defineComponent({name:"UsePreferredContrast",setup(e,{slots:t}){const n=o.reactive({contrast:C.usePreferredContrast()});return()=>{if(t.default)return t.default(n)}}}),Mt=o.defineComponent({name:"UsePreferredDark",setup(e,{slots:t}){const n=o.reactive({prefersDark:C.usePreferredDark()});return()=>{if(t.default)return t.default(n)}}}),Tt=o.defineComponent({name:"UsePreferredLanguages",setup(e,{slots:t}){const n=o.reactive({languages:C.usePreferredLanguages()});return()=>{if(t.default)return t.default(n)}}}),kt=o.defineComponent({name:"UsePreferredReducedMotion",setup(e,{slots:t}){const n=o.reactive({motion:C.usePreferredReducedMotion()});return()=>{if(t.default)return t.default(n)}}}),Lt=o.defineComponent({name:"UsePreferredReducedTransparency",setup(e,{slots:t}){const n=o.reactive({transparency:C.usePreferredReducedTransparency()});return()=>{if(t.default)return t.default(n)}}}),Rt={mounted(e,t){typeof t.value=="function"?F(e,t.value):F(e,...t.value)}};function Y(e,t,n={}){const{window:r=A,initialValue:a,observe:l=!1}=n,i=o.ref(a),s=o.computed(()=>{var c;return k(t)||((c=r?.document)==null?void 0:c.documentElement)});function f(){var c;const u=o.toValue(e),d=o.toValue(s);if(d&&r&&u){const p=(c=r.getComputedStyle(d).getPropertyValue(u))==null?void 0:c.trim();i.value=p||a}}return l&&K(s,f,{attributeFilter:["style","class"],window:r}),o.watch([s,()=>o.toValue(e)],(c,u)=>{u[0]&&u[1]&&u[0].style.removeProperty(u[1]),f()},{immediate:!0}),o.watch(i,c=>{var u;const d=o.toValue(e);(u=s.value)!=null&&u.style&&d&&(c==null?s.value.style.removeProperty(d):s.value.style.setProperty(d,c))}),i}const ie="--vueuse-safe-area-top",ue="--vueuse-safe-area-right",ce="--vueuse-safe-area-bottom",fe="--vueuse-safe-area-left";function At(){const e=o.ref(""),t=o.ref(""),n=o.ref(""),r=o.ref("");if(S.isClient){const l=Y(ie),i=Y(ue),s=Y(ce),f=Y(fe);l.value="env(safe-area-inset-top, 0px)",i.value="env(safe-area-inset-right, 0px)",s.value="env(safe-area-inset-bottom, 0px)",f.value="env(safe-area-inset-left, 0px)",a(),M("resize",S.useDebounceFn(a),{passive:!0})}function a(){e.value=x(ie),t.value=x(ue),n.value=x(ce),r.value=x(fe)}return{top:e,right:t,bottom:n,left:r,update:a}}function x(e){return getComputedStyle(document.documentElement).getPropertyValue(e)}const It=o.defineComponent({name:"UseScreenSafeArea",props:{top:Boolean,right:Boolean,bottom:Boolean,left:Boolean},setup(e,{slots:t}){const{top:n,right:r,bottom:a,left:l}=At();return()=>{if(t.default)return o.h("div",{style:{paddingTop:e.top?n.value:"",paddingRight:e.right?r.value:"",paddingBottom:e.bottom?a.value:"",paddingLeft:e.left?l.value:"",boxSizing:"border-box",maxHeight:"100vh",maxWidth:"100vw",overflow:"auto"}},t.default())}}}),zt={mounted(e,t){if(typeof t.value=="function"){const n=t.value,r=$(e,{onScroll(){n(r)},onStop(){n(r)}})}else{const[n,r]=t.value,a=$(e,{...r,onScroll(l){var i;(i=r.onScroll)==null||i.call(r,l),n(a)},onStop(l){var i;(i=r.onStop)==null||i.call(r,l),n(a)}})}}};function de(e){const t=window.getComputedStyle(e);if(t.overflowX==="scroll"||t.overflowY==="scroll"||t.overflowX==="auto"&&e.clientWidth<e.scrollWidth||t.overflowY==="auto"&&e.clientHeight<e.scrollHeight)return!0;{const n=e.parentNode;return!n||n.tagName==="BODY"?!1:de(n)}}function Wt(e){const t=e||window.event,n=t.target;return de(n)?!1:t.touches.length>1?!0:(t.preventDefault&&t.preventDefault(),!1)}const q=new WeakMap;function Bt(e,t=!1){const n=o.ref(t);let r=null,a="";o.watch(S.toRef(e),s=>{const f=j(o.toValue(s));if(f){const c=f;if(q.get(c)||q.set(c,c.style.overflow),c.style.overflow!=="hidden"&&(a=c.style.overflow),c.style.overflow==="hidden")return n.value=!0;if(n.value)return c.style.overflow="hidden"}},{immediate:!0});const l=()=>{const s=j(o.toValue(e));!s||n.value||(S.isIOS&&(r=M(s,"touchmove",f=>{Wt(f)},{passive:!1})),s.style.overflow="hidden",n.value=!0)},i=()=>{const s=j(o.toValue(e));!s||!n.value||(S.isIOS&&r?.(),s.style.overflow=a,q.delete(s),n.value=!1)};return S.tryOnScopeDispose(i),o.computed({get(){return n.value},set(s){s?l():i()}})}function Ht(){let e=!1;const t=o.ref(!1);return(n,r)=>{if(t.value=r.value,e)return;e=!0;const a=Bt(n,r.value);o.watch(t,l=>a.value=l)}}const Nt=Ht(),Ft=o.defineComponent({name:"UseTimeAgo",props:["time","updateInterval","max","fullDateFormatter","messages","showSecond"],setup(e,{slots:t}){const n=o.reactive(C.useTimeAgo(()=>e.time,{...e,controls:!0}));return()=>{if(t.default)return t.default(n)}}}),jt=o.defineComponent({name:"UseTimestamp",props:["immediate","interval","offset"],setup(e,{slots:t}){const n=o.reactive(C.useTimestamp({...e,controls:!0}));return()=>{if(t.default)return t.default(n)}}}),Yt=o.defineComponent({name:"UseVirtualList",props:["list","options","height"],setup(e,{slots:t,expose:n}){const{list:r}=o.toRefs(e),{list:a,containerProps:l,wrapperProps:i,scrollTo:s}=C.useVirtualList(r,e.options);return n({scrollTo:s}),l.style&&typeof l.style=="object"&&!Array.isArray(l.style)&&(l.style.height=e.height||"300px"),()=>o.h("div",{...l},[o.h("div",{...i.value},a.value.map(f=>o.h("div",{style:{overflow:"hidden",height:f.height}},t.default?t.default(f):"Please set content!")))])}}),xt=o.defineComponent({name:"UseWindowFocus",setup(e,{slots:t}){const n=o.reactive({focused:C.useWindowFocus()});return()=>{if(t.default)return t.default(n)}}}),Xt=o.defineComponent({name:"UseWindowSize",props:["initialWidth","initialHeight"],setup(e,{slots:t}){const n=o.reactive(C.useWindowSize(e));return()=>{if(t.default)return t.default(n)}}});w.OnClickOutside=ye,w.OnLongPress=be,w.UseActiveElement=Ce,w.UseBattery=Ee,w.UseBrowserLocation=Oe,w.UseClipboard=Pe,w.UseColorMode=Be,w.UseDark=He,w.UseDeviceMotion=Ne,w.UseDeviceOrientation=Fe,w.UseDevicePixelRatio=je,w.UseDevicesList=Ye,w.UseDocumentVisibility=xe,w.UseDraggable=Xe,w.UseElementBounding=Ke,w.UseElementSize=Qe,w.UseElementVisibility=tt,w.UseEyeDropper=ot,w.UseFullscreen=rt,w.UseGeolocation=at,w.UseIdle=st,w.UseImage=ct,w.UseMouse=mt,w.UseMouseInElement=pt,w.UseMousePressed=wt,w.UseNetwork=Ut,w.UseNow=St,w.UseObjectUrl=bt,w.UseOffsetPagination=Ct,w.UseOnline=Et,w.UsePageLeave=Ot,w.UsePointer=Pt,w.UsePointerLock=Vt,w.UsePreferredColorScheme=Dt,w.UsePreferredContrast=_t,w.UsePreferredDark=Mt,w.UsePreferredLanguages=Tt,w.UsePreferredReducedMotion=kt,w.UsePreferredReducedTransparency=Lt,w.UseScreenSafeArea=It,w.UseTimeAgo=Ft,w.UseTimestamp=jt,w.UseVirtualList=Yt,w.UseWindowFocus=xt,w.UseWindowSize=Xt,w.VOnClickOutside=ee,w.VOnLongPress=ne,w.vElementBounding=Je,w.vElementHover=qe,w.vElementSize=et,w.vElementVisibility=nt,w.vInfiniteScroll=ft,w.vIntersectionObserver=dt,w.vMouseInElement=vt,w.vOnClickOutside=ee,w.vOnKeyStroke=we,w.vOnLongPress=ne,w.vResizeObserver=Rt,w.vScroll=zt,w.vScrollLock=Nt})(this.VueUse=this.VueUse||{},VueUse,Vue,VueUse); | ||
(function(y,C,o,S){"use strict";const ge=o.defineComponent({name:"OnClickOutside",props:["as","options"],emits:["trigger"],setup(e,{slots:t,emit:n}){const r=o.ref();return C.onClickOutside(r,a=>{n("trigger",a)},e.options),()=>{if(t.default)return o.h(e.as||"div",{ref:r},t.default())}}}),A=S.isClient?window:void 0;function k(e){var t;const n=o.toValue(e);return(t=n?.$el)!=null?t:n}function _(...e){const t=[],n=()=>{t.forEach(s=>s()),t.length=0},r=(s,c,f,u)=>(s.addEventListener(c,f,u),()=>s.removeEventListener(c,f,u)),a=o.computed(()=>{const s=S.toArray(o.toValue(e[0])).filter(c=>c!=null);return s.every(c=>typeof c!="string")?s:void 0}),i=S.watchImmediate(()=>{var s,c;return[(c=(s=a.value)==null?void 0:s.map(f=>k(f)))!=null?c:[A].filter(f=>f!=null),S.toArray(o.toValue(a.value?e[1]:e[0])),S.toArray(o.unref(a.value?e[2]:e[1])),o.toValue(a.value?e[3]:e[2])]},([s,c,f,u])=>{if(n(),!s?.length||!c?.length||!f?.length)return;const d=S.isObject(u)?{...u}:u;t.push(...s.flatMap(p=>c.flatMap(U=>f.map(g=>r(p,U,g,d)))))},{flush:"post"}),l=()=>{i(),n()};return S.tryOnScopeDispose(n),l}let Q=!1;function Z(e,t,n={}){const{window:r=A,ignore:a=[],capture:i=!0,detectIframe:l=!1,controls:s=!1}=n;if(!r)return s?{stop:S.noop,cancel:S.noop,trigger:S.noop}:S.noop;if(S.isIOS&&!Q){Q=!0;const h={passive:!0};Array.from(r.document.body.children).forEach(m=>_(m,"click",S.noop,h)),_(r.document.documentElement,"click",S.noop,h)}let c=!0;const f=h=>o.toValue(a).some(m=>{if(typeof m=="string")return Array.from(r.document.querySelectorAll(m)).some(w=>w===h.target||h.composedPath().includes(w));{const w=k(m);return w&&(h.target===w||h.composedPath().includes(w))}});function u(h){const m=o.toValue(h);return m&&m.$.subTree.shapeFlag===16}function d(h,m){const w=o.toValue(h),P=w.$.subTree&&w.$.subTree.children;return P==null||!Array.isArray(P)?!1:P.some(E=>E.el===m.target||m.composedPath().includes(E.el))}const p=h=>{const m=k(e);if(h.target!=null&&!(!(m instanceof Element)&&u(e)&&d(e,h))&&!(!m||m===h.target||h.composedPath().includes(m))){if("detail"in h&&h.detail===0&&(c=!f(h)),!c){c=!0;return}t(h)}};let U=!1;const g=[_(r,"click",h=>{U||(U=!0,setTimeout(()=>{U=!1},0),p(h))},{passive:!0,capture:i}),_(r,"pointerdown",h=>{const m=k(e);c=!f(h)&&!!(m&&!h.composedPath().includes(m))},{passive:!0}),l&&_(r,"blur",h=>{setTimeout(()=>{var m;const w=k(e);((m=r.document.activeElement)==null?void 0:m.tagName)==="IFRAME"&&!w?.contains(r.document.activeElement)&&t(h)},0)},{passive:!0})].filter(Boolean),b=()=>g.forEach(h=>h());return s?{stop:b,cancel:()=>{c=!1},trigger:h=>{c=!0,p(h),c=!1}}:b}const ee={mounted(e,t){const n=!t.modifiers.bubble;if(typeof t.value=="function")e.__onClickOutside_stop=Z(e,t.value,{capture:n});else{const[r,a]=t.value;e.__onClickOutside_stop=Z(e,r,Object.assign({capture:n},a))}},unmounted(e){e.__onClickOutside_stop()}};function ye(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function te(...e){let t,n,r={};e.length===3?(t=e[0],n=e[1],r=e[2]):e.length===2?typeof e[1]=="object"?(t=!0,n=e[0],r=e[1]):(t=e[0],n=e[1]):(t=!0,n=e[0]);const{target:a=A,eventName:i="keydown",passive:l=!1,dedupe:s=!1}=r,c=ye(t);return _(a,i,u=>{u.repeat&&o.toValue(s)||c(u)&&n(u)},l)}const we={mounted(e,t){var n,r;const a=(r=(n=t.arg)==null?void 0:n.split(","))!=null?r:!0;if(typeof t.value=="function")te(a,t.value,{target:e});else{const[i,l]=t.value;te(a,i,{target:e,...l})}}},Ue=500,Se=10;function X(e,t,n){var r,a;const i=o.computed(()=>k(e));let l,s,c,f=!1;function u(){l&&(clearTimeout(l),l=void 0),s=void 0,c=void 0,f=!1}function d(m){var w,P,E;const[D,R,v]=[c,s,f];if(u(),!n?.onMouseUp||!R||!D||(w=n?.modifiers)!=null&&w.self&&m.target!==i.value)return;(P=n?.modifiers)!=null&&P.prevent&&m.preventDefault(),(E=n?.modifiers)!=null&&E.stop&&m.stopPropagation();const L=m.x-R.x,T=m.y-R.y,I=Math.sqrt(L*L+T*T);n.onMouseUp(m.timeStamp-D,I,v)}function p(m){var w,P,E,D;(w=n?.modifiers)!=null&&w.self&&m.target!==i.value||(u(),(P=n?.modifiers)!=null&&P.prevent&&m.preventDefault(),(E=n?.modifiers)!=null&&E.stop&&m.stopPropagation(),s={x:m.x,y:m.y},c=m.timeStamp,l=setTimeout(()=>{f=!0,t(m)},(D=n?.delay)!=null?D:Ue))}function U(m){var w,P,E,D;if((w=n?.modifiers)!=null&&w.self&&m.target!==i.value||!s||n?.distanceThreshold===!1)return;(P=n?.modifiers)!=null&&P.prevent&&m.preventDefault(),(E=n?.modifiers)!=null&&E.stop&&m.stopPropagation();const R=m.x-s.x,v=m.y-s.y;Math.sqrt(R*R+v*v)>=((D=n?.distanceThreshold)!=null?D:Se)&&u()}const g={capture:(r=n?.modifiers)==null?void 0:r.capture,once:(a=n?.modifiers)==null?void 0:a.once},b=[_(i,"pointerdown",p,g),_(i,"pointermove",U,g),_(i,["pointerup","pointerleave"],d,g)];return()=>b.forEach(m=>m())}const be=o.defineComponent({name:"OnLongPress",props:["as","options"],emits:["trigger"],setup(e,{slots:t,emit:n}){const r=o.ref();return X(r,a=>{n("trigger",a)},e.options),()=>{if(t.default)return o.h(e.as||"div",{ref:r},t.default())}}}),ne={mounted(e,t){typeof t.value=="function"?X(e,t.value,{modifiers:t.modifiers}):X(e,...t.value)}},Ce=o.defineComponent({name:"UseActiveElement",setup(e,{slots:t}){const n=o.reactive({element:C.useActiveElement()});return()=>{if(t.default)return t.default(n)}}}),Ee=o.defineComponent({name:"UseBattery",setup(e,{slots:t}){const n=o.reactive(C.useBattery(e));return()=>{if(t.default)return t.default(n)}}}),Oe=o.defineComponent({name:"UseBrowserLocation",setup(e,{slots:t}){const n=o.reactive(C.useBrowserLocation());return()=>{if(t.default)return t.default(n)}}}),Pe=o.defineComponent({name:"UseClipboard",props:["source","read","navigator","copiedDuring","legacy"],setup(e,{slots:t}){const n=o.reactive(C.useClipboard(e));return()=>{var r;return(r=t.default)==null?void 0:r.call(t,n)}}}),B=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},H="__vueuse_ssr_handlers__",Ve=De();function De(){return H in B||(B[H]=B[H]||{}),B[H]}function oe(e,t){return Ve[e]||t}const Me=Symbol("vueuse-ssr-width");function _e(){const e=o.hasInjectionContext()?S.injectLocal(Me,null):null;return typeof e=="number"?e:void 0}function Te(){const e=o.ref(!1),t=o.getCurrentInstance();return t&&o.onMounted(()=>{e.value=!0},t),e}function N(e){const t=Te();return o.computed(()=>(t.value,!!e()))}function ke(e,t={}){const{window:n=A,ssrWidth:r=_e()}=t,a=N(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function"),i=o.ref(typeof r=="number"),l=o.shallowRef(),s=o.ref(!1),c=f=>{s.value=f.matches};return o.watchEffect(()=>{if(i.value){i.value=!a.value;const f=o.toValue(e).split(",");s.value=f.some(u=>{const d=u.includes("not all"),p=u.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),U=u.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);let g=!!(p||U);return p&&g&&(g=r>=S.pxValue(p[1])),U&&g&&(g=r<=S.pxValue(U[1])),d?!g:g});return}a.value&&(l.value=n.matchMedia(o.toValue(e)),s.value=l.value.matches)}),_(l,"change",c,{passive:!0}),o.computed(()=>s.value)}function Le(e){return ke("(prefers-color-scheme: dark)",e)}function Re(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const Ae={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},re="vueuse-storage";function Ie(e,t,n,r={}){var a;const{flush:i="pre",deep:l=!0,listenToStorageChanges:s=!0,writeDefaults:c=!0,mergeDefaults:f=!1,shallow:u,window:d=A,eventFilter:p,onError:U=O=>{console.error(O)},initOnMounted:g}=r,b=(u?o.shallowRef:o.ref)(typeof t=="function"?t():t),h=o.computed(()=>o.toValue(e));if(!n)try{n=oe("getDefaultStorage",()=>{var O;return(O=A)==null?void 0:O.localStorage})()}catch(O){U(O)}if(!n)return b;const m=o.toValue(t),w=Re(m),P=(a=r.serializer)!=null?a:Ae[w],{pause:E,resume:D}=S.pausableWatch(b,()=>v(b.value),{flush:i,deep:l,eventFilter:p});o.watch(h,()=>T(),{flush:i}),d&&s&&S.tryOnMounted(()=>{n instanceof Storage?_(d,"storage",T,{passive:!0}):_(d,re,I),g&&T()}),g||T();function R(O,M){if(d){const V={key:h.value,oldValue:O,newValue:M,storageArea:n};d.dispatchEvent(n instanceof Storage?new StorageEvent("storage",V):new CustomEvent(re,{detail:V}))}}function v(O){try{const M=n.getItem(h.value);if(O==null)R(M,null),n.removeItem(h.value);else{const V=P.write(O);M!==V&&(n.setItem(h.value,V),R(M,V))}}catch(M){U(M)}}function L(O){const M=O?O.newValue:n.getItem(h.value);if(M==null)return c&&m!=null&&n.setItem(h.value,P.write(m)),m;if(!O&&f){const V=P.read(M);return typeof f=="function"?f(V,m):w==="object"&&!Array.isArray(V)?{...m,...V}:V}else return typeof M!="string"?M:P.read(M)}function T(O){if(!(O&&O.storageArea!==n)){if(O&&O.key==null){b.value=m;return}if(!(O&&O.key!==h.value)){E();try{O?.newValue!==P.write(b.value)&&(b.value=L(O))}catch(M){U(M)}finally{O?o.nextTick(D):D()}}}}function I(O){T(O.detail)}return b}const ze="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function We(e={}){const{selector:t="html",attribute:n="class",initialValue:r="auto",window:a=A,storage:i,storageKey:l="vueuse-color-scheme",listenToStorageChanges:s=!0,storageRef:c,emitAuto:f,disableTransition:u=!0}=e,d={auto:"",light:"light",dark:"dark",...e.modes||{}},p=Le({window:a}),U=o.computed(()=>p.value?"dark":"light"),g=c||(l==null?S.toRef(r):Ie(l,r,i,{window:a,listenToStorageChanges:s})),b=o.computed(()=>g.value==="auto"?U.value:g.value),h=oe("updateHTMLAttrs",(E,D,R)=>{const v=typeof E=="string"?a?.document.querySelector(E):k(E);if(!v)return;const L=new Set,T=new Set;let I=null;if(D==="class"){const M=R.split(/\s/g);Object.values(d).flatMap(V=>(V||"").split(/\s/g)).filter(Boolean).forEach(V=>{M.includes(V)?L.add(V):T.add(V)})}else I={key:D,value:R};if(L.size===0&&T.size===0&&I===null)return;let O;u&&(O=a.document.createElement("style"),O.appendChild(document.createTextNode(ze)),a.document.head.appendChild(O));for(const M of L)v.classList.add(M);for(const M of T)v.classList.remove(M);I&&v.setAttribute(I.key,I.value),u&&(a.getComputedStyle(O).opacity,document.head.removeChild(O))});function m(E){var D;h(t,n,(D=d[E])!=null?D:E)}function w(E){e.onChanged?e.onChanged(E,m):m(E)}o.watch(b,w,{flush:"post",immediate:!0}),S.tryOnMounted(()=>w(b.value));const P=o.computed({get(){return f?g.value:b.value},set(E){g.value=E}});return Object.assign(P,{store:g,system:U,state:b})}const Be=o.defineComponent({name:"UseColorMode",props:["selector","attribute","modes","onChanged","storageKey","storage","emitAuto"],setup(e,{slots:t}){const n=We(e),r=o.reactive({mode:n,system:n.system,store:n.store});return()=>{if(t.default)return t.default(r)}}}),He=o.defineComponent({name:"UseDark",props:["selector","attribute","valueDark","valueLight","onChanged","storageKey","storage"],setup(e,{slots:t}){const n=C.useDark(e),r=o.reactive({isDark:n,toggleDark:S.useToggle(n)});return()=>{if(t.default)return t.default(r)}}}),Ne=o.defineComponent({name:"UseDeviceMotion",setup(e,{slots:t}){const n=C.useDeviceMotion();return()=>{if(t.default)return t.default(n)}}}),Fe=o.defineComponent({name:"UseDeviceOrientation",setup(e,{slots:t}){const n=o.reactive(C.useDeviceOrientation());return()=>{if(t.default)return t.default(n)}}}),je=o.defineComponent({name:"UseDevicePixelRatio",setup(e,{slots:t}){const n=o.reactive({pixelRatio:C.useDevicePixelRatio()});return()=>{if(t.default)return t.default(n)}}}),Ye=o.defineComponent({name:"UseDevicesList",props:["onUpdated","requestPermissions","constraints"],setup(e,{slots:t}){const n=o.reactive(C.useDevicesList(e));return()=>{if(t.default)return t.default(n)}}}),xe=o.defineComponent({name:"UseDocumentVisibility",setup(e,{slots:t}){const n=o.reactive({visibility:C.useDocumentVisibility()});return()=>{if(t.default)return t.default(n)}}}),Xe=o.defineComponent({name:"UseDraggable",props:["storageKey","storageType","initialValue","exact","preventDefault","stopPropagation","pointerTypes","as","handle","axis","onStart","onMove","onEnd","disabled","buttons","containerElement"],setup(e,{slots:t}){const n=o.ref(),r=o.computed(()=>{var u;return(u=e.handle)!=null?u:n.value}),a=o.computed(()=>{var u;return(u=e.containerElement)!=null?u:void 0}),i=o.computed(()=>!!e.disabled),l=e.storageKey&&C.useStorage(e.storageKey,o.toValue(e.initialValue)||{x:0,y:0},C.isClient?e.storageType==="session"?sessionStorage:localStorage:void 0),s=l||e.initialValue||{x:0,y:0},c=(u,d)=>{var p;(p=e.onEnd)==null||p.call(e,u,d),l&&(l.value.x=u.x,l.value.y=u.y)},f=o.reactive(C.useDraggable(n,{...e,handle:r,initialValue:s,onEnd:c,disabled:i,containerElement:a}));return()=>{if(t.default)return o.h(e.as||"div",{ref:n,style:`touch-action:none;${f.style}`},t.default(f))}}}),Ke=o.defineComponent({name:"UseElementBounding",props:["box","as"],setup(e,{slots:t}){const n=o.ref(),r=o.reactive(C.useElementBounding(n));return()=>{if(t.default)return o.h(e.as||"div",{ref:n},t.default(r))}}});function K(e,t,n={}){const{window:r=A,...a}=n;let i;const l=N(()=>r&&"MutationObserver"in r),s=()=>{i&&(i.disconnect(),i=void 0)},c=o.computed(()=>{const p=o.toValue(e),U=S.toArray(p).map(k).filter(S.notNullish);return new Set(U)}),f=o.watch(()=>c.value,p=>{s(),l.value&&p.size&&(i=new MutationObserver(t),p.forEach(U=>i.observe(U,a)))},{immediate:!0,flush:"post"}),u=()=>i?.takeRecords(),d=()=>{f(),s()};return S.tryOnScopeDispose(d),{isSupported:l,stop:d,takeRecords:u}}function F(e,t,n={}){const{window:r=A,...a}=n;let i;const l=N(()=>r&&"ResizeObserver"in r),s=()=>{i&&(i.disconnect(),i=void 0)},c=o.computed(()=>{const d=o.toValue(e);return Array.isArray(d)?d.map(p=>k(p)):[k(d)]}),f=o.watch(c,d=>{if(s(),l.value&&r){i=new ResizeObserver(t);for(const p of d)p&&i.observe(p,a)}},{immediate:!0,flush:"post"}),u=()=>{s(),f()};return S.tryOnScopeDispose(u),{isSupported:l,stop:u}}function Ge(e,t={}){const{reset:n=!0,windowResize:r=!0,windowScroll:a=!0,immediate:i=!0,updateTiming:l="sync"}=t,s=o.ref(0),c=o.ref(0),f=o.ref(0),u=o.ref(0),d=o.ref(0),p=o.ref(0),U=o.ref(0),g=o.ref(0);function b(){const m=k(e);if(!m){n&&(s.value=0,c.value=0,f.value=0,u.value=0,d.value=0,p.value=0,U.value=0,g.value=0);return}const w=m.getBoundingClientRect();s.value=w.height,c.value=w.bottom,f.value=w.left,u.value=w.right,d.value=w.top,p.value=w.width,U.value=w.x,g.value=w.y}function h(){l==="sync"?b():l==="next-frame"&&requestAnimationFrame(()=>b())}return F(e,h),o.watch(()=>k(e),m=>!m&&h()),K(e,h,{attributeFilter:["style","class"]}),a&&_("scroll",h,{capture:!0,passive:!0}),r&&_("resize",h,{passive:!0}),S.tryOnMounted(()=>{i&&h()}),{height:s,bottom:c,left:f,right:u,top:d,width:p,x:U,y:g,update:h}}const Je={mounted(e,t){const[n,r]=typeof t.value=="function"?[t.value,{}]:t.value,{height:a,bottom:i,left:l,right:s,top:c,width:f,x:u,y:d}=Ge(e,r);o.watch([a,i,l,s,c,f,u,d],()=>n({height:a,bottom:i,left:l,right:s,top:c,width:f,x:u,y:d}))}};function $e(e,t,n={}){const{window:r=A,document:a=r?.document,flush:i="sync"}=n;if(!r||!a)return S.noop;let l;const s=u=>{l?.(),l=u},c=o.watchEffect(()=>{const u=k(e);if(u){const{stop:d}=K(a,p=>{p.map(g=>[...g.removedNodes]).flat().some(g=>g===u||g.contains(u))&&t(p)},{window:r,childList:!0,subtree:!0});s(d)}},{flush:i}),f=()=>{c(),s()};return S.tryOnScopeDispose(f),f}function ae(e,t={}){const{delayEnter:n=0,delayLeave:r=0,triggerOnRemoval:a=!1,window:i=A}=t,l=o.ref(!1);let s;const c=f=>{const u=f?n:r;s&&(clearTimeout(s),s=void 0),u?s=setTimeout(()=>l.value=f,u):l.value=f};return i&&(_(e,"mouseenter",()=>c(!0),{passive:!0}),_(e,"mouseleave",()=>c(!1),{passive:!0}),a&&$e(o.computed(()=>k(e)),()=>c(!1))),l}const qe={mounted(e,t){const n=t.value;if(typeof n=="function"){const r=ae(e);o.watch(r,a=>n(a))}else{const[r,a]=n,i=ae(e,a);o.watch(i,l=>r(l))}}},Qe=o.defineComponent({name:"UseElementSize",props:["width","height","box","as"],setup(e,{slots:t}){const n=o.ref(),r=o.reactive(C.useElementSize(n,{width:e.width,height:e.height},{box:e.box}));return()=>{if(t.default)return o.h(e.as||"div",{ref:n},t.default(r))}}});function Ze(e,t={width:0,height:0},n={}){const{window:r=A,box:a="content-box"}=n,i=o.computed(()=>{var d,p;return(p=(d=k(e))==null?void 0:d.namespaceURI)==null?void 0:p.includes("svg")}),l=o.ref(t.width),s=o.ref(t.height),{stop:c}=F(e,([d])=>{const p=a==="border-box"?d.borderBoxSize:a==="content-box"?d.contentBoxSize:d.devicePixelContentBoxSize;if(r&&i.value){const U=k(e);if(U){const g=U.getBoundingClientRect();l.value=g.width,s.value=g.height}}else if(p){const U=S.toArray(p);l.value=U.reduce((g,{inlineSize:b})=>g+b,0),s.value=U.reduce((g,{blockSize:b})=>g+b,0)}else l.value=d.contentRect.width,s.value=d.contentRect.height},n);S.tryOnMounted(()=>{const d=k(e);d&&(l.value="offsetWidth"in d?d.offsetWidth:t.width,s.value="offsetHeight"in d?d.offsetHeight:t.height)});const f=o.watch(()=>k(e),d=>{l.value=d?t.width:0,s.value=d?t.height:0});function u(){c(),f()}return{width:l,height:s,stop:u}}const et={mounted(e,t){var n;const r=typeof t.value=="function"?t.value:(n=t.value)==null?void 0:n[0],a=typeof t.value=="function"?[]:t.value.slice(1),{width:i,height:l}=Ze(e,...a);o.watch([i,l],([s,c])=>r({width:s,height:c}))}},tt=o.defineComponent({name:"UseElementVisibility",props:["as"],setup(e,{slots:t}){const n=o.ref(),r=o.reactive({isVisible:C.useElementVisibility(n)});return()=>{if(t.default)return o.h(e.as||"div",{ref:n},t.default(r))}}});function G(e,t,n={}){const{root:r,rootMargin:a="0px",threshold:i=0,window:l=A,immediate:s=!0}=n,c=N(()=>l&&"IntersectionObserver"in l),f=o.computed(()=>{const g=o.toValue(e);return S.toArray(g).map(k).filter(S.notNullish)});let u=S.noop;const d=o.ref(s),p=c.value?o.watch(()=>[f.value,k(r),d.value],([g,b])=>{if(u(),!d.value||!g.length)return;const h=new IntersectionObserver(t,{root:k(b),rootMargin:a,threshold:i});g.forEach(m=>m&&h.observe(m)),u=()=>{h.disconnect(),u=S.noop}},{immediate:s,flush:"post"}):S.noop,U=()=>{u(),p(),d.value=!1};return S.tryOnScopeDispose(U),{isSupported:c,isActive:d,pause(){u(),d.value=!1},resume(){d.value=!0},stop:U}}function J(e,t={}){const{window:n=A,scrollTarget:r,threshold:a=0,rootMargin:i,once:l=!1}=t,s=o.ref(!1),{stop:c}=G(e,f=>{let u=s.value,d=0;for(const p of f)p.time>=d&&(d=p.time,u=p.isIntersecting);s.value=u,l&&S.watchOnce(s,()=>{c()})},{root:r,window:n,threshold:a,rootMargin:o.toValue(i)});return s}const nt={mounted(e,t){if(typeof t.value=="function"){const n=t.value,r=J(e);o.watch(r,a=>n(a),{immediate:!0})}else{const[n,r]=t.value,a=J(e,r);o.watch(a,i=>n(i),{immediate:!0})}}},ot=o.defineComponent({name:"UseEyeDropper",props:{sRGBHex:String},setup(e,{slots:t}){const n=o.reactive(C.useEyeDropper());return()=>{if(t.default)return t.default(n)}}}),rt=o.defineComponent({name:"UseFullscreen",props:["as"],setup(e,{slots:t}){const n=o.ref(),r=o.reactive(C.useFullscreen(n));return()=>{if(t.default)return o.h(e.as||"div",{ref:n},t.default(r))}}}),at=o.defineComponent({name:"UseGeolocation",props:["enableHighAccuracy","maximumAge","timeout","navigator"],setup(e,{slots:t}){const n=o.reactive(C.useGeolocation(e));return()=>{if(t.default)return t.default(n)}}}),st=o.defineComponent({name:"UseIdle",props:["timeout","events","listenForVisibilityChange","initialState"],setup(e,{slots:t}){const n=o.reactive(C.useIdle(e.timeout,e));return()=>{if(t.default)return t.default(n)}}});function it(e,t,n){const{immediate:r=!0,delay:a=0,onError:i=S.noop,onSuccess:l=S.noop,resetOnExecute:s=!0,shallow:c=!0,throwError:f}=n??{},u=c?o.shallowRef(t):o.ref(t),d=o.ref(!1),p=o.ref(!1),U=o.shallowRef(void 0);async function g(m=0,...w){s&&(u.value=t),U.value=void 0,d.value=!1,p.value=!0,m>0&&await S.promiseTimeout(m);const P=typeof e=="function"?e(...w):e;try{const E=await P;u.value=E,d.value=!0,l(E)}catch(E){if(U.value=E,i(E),f)throw E}finally{p.value=!1}return u.value}r&&g(a);const b={state:u,isReady:d,isLoading:p,error:U,execute:g};function h(){return new Promise((m,w)=>{S.until(p).toBe(!1).then(()=>m(b)).catch(w)})}return{...b,then(m,w){return h().then(m,w)}}}async function lt(e){return new Promise((t,n)=>{const r=new Image,{src:a,srcset:i,sizes:l,class:s,loading:c,crossorigin:f,referrerPolicy:u,width:d,height:p,decoding:U,fetchPriority:g,ismap:b,usemap:h}=e;r.src=a,i!=null&&(r.srcset=i),l!=null&&(r.sizes=l),s!=null&&(r.className=s),c!=null&&(r.loading=c),f!=null&&(r.crossOrigin=f),u!=null&&(r.referrerPolicy=u),d!=null&&(r.width=d),p!=null&&(r.height=p),U!=null&&(r.decoding=U),g!=null&&(r.fetchPriority=g),b!=null&&(r.isMap=b),h!=null&&(r.useMap=h),r.onload=()=>t(r),r.onerror=n})}function ut(e,t={}){const n=it(()=>lt(o.toValue(e)),void 0,{resetOnExecute:!0,...t});return o.watch(()=>o.toValue(e),()=>n.execute(t.delay),{deep:!0}),n}const ct=o.defineComponent({name:"UseImage",props:["src","srcset","sizes","as","alt","class","loading","crossorigin","referrerPolicy","width","height","decoding","fetchPriority","ismap","usemap"],setup(e,{slots:t}){const n=o.reactive(ut(e));return()=>n.isLoading&&t.loading?t.loading(n):n.error&&t.error?t.error(n.error):t.default?t.default(n):o.h(e.as||"img",e)}});function j(e){return typeof Window<"u"&&e instanceof Window?e.document.documentElement:typeof Document<"u"&&e instanceof Document?e.documentElement:e}const se=1;function $(e,t={}){const{throttle:n=0,idle:r=200,onStop:a=S.noop,onScroll:i=S.noop,offset:l={left:0,right:0,top:0,bottom:0},eventListenerOptions:s={capture:!1,passive:!0},behavior:c="auto",window:f=A,onError:u=v=>{console.error(v)}}=t,d=o.ref(0),p=o.ref(0),U=o.computed({get(){return d.value},set(v){b(v,void 0)}}),g=o.computed({get(){return p.value},set(v){b(void 0,v)}});function b(v,L){var T,I,O,M;if(!f)return;const V=o.toValue(e);if(!V)return;(O=V instanceof Document?f.document.body:V)==null||O.scrollTo({top:(T=o.toValue(L))!=null?T:g.value,left:(I=o.toValue(v))!=null?I:U.value,behavior:o.toValue(c)});const z=((M=V?.document)==null?void 0:M.documentElement)||V?.documentElement||V;U!=null&&(d.value=z.scrollLeft),g!=null&&(p.value=z.scrollTop)}const h=o.ref(!1),m=o.reactive({left:!0,right:!1,top:!0,bottom:!1}),w=o.reactive({left:!1,right:!1,top:!1,bottom:!1}),P=v=>{h.value&&(h.value=!1,w.left=!1,w.right=!1,w.top=!1,w.bottom=!1,a(v))},E=S.useDebounceFn(P,n+r),D=v=>{var L;if(!f)return;const T=((L=v?.document)==null?void 0:L.documentElement)||v?.documentElement||k(v),{display:I,flexDirection:O,direction:M}=getComputedStyle(T),V=M==="rtl"?-1:1,z=T.scrollLeft;w.left=z<d.value,w.right=z>d.value;const me=z*V<=(l.left||0),pe=z*V+T.clientWidth>=T.scrollWidth-(l.right||0)-se;I==="flex"&&O==="row-reverse"?(m.left=pe,m.right=me):(m.left=me,m.right=pe),d.value=z;let W=T.scrollTop;v===f.document&&!W&&(W=f.document.body.scrollTop),w.top=W<p.value,w.bottom=W>p.value;const he=W<=(l.top||0),ve=W+T.clientHeight>=T.scrollHeight-(l.bottom||0)-se;I==="flex"&&O==="column-reverse"?(m.top=ve,m.bottom=he):(m.top=he,m.bottom=ve),p.value=W},R=v=>{var L;if(!f)return;const T=(L=v.target.documentElement)!=null?L:v.target;D(T),h.value=!0,E(v),i(v)};return _(e,"scroll",n?S.useThrottleFn(R,n,!0,!1):R,s),S.tryOnMounted(()=>{try{const v=o.toValue(e);if(!v)return;D(v)}catch(v){u(v)}}),_(e,"scrollend",P,s),{x:U,y:g,isScrolling:h,arrivedState:m,directions:w,measure(){const v=o.toValue(e);f&&v&&D(v)}}}function ie(e,t,n={}){var r;const{direction:a="bottom",interval:i=100,canLoadMore:l=()=>!0}=n,s=o.reactive($(e,{...n,offset:{[a]:(r=n.distance)!=null?r:0,...n.offset}})),c=o.ref(),f=o.computed(()=>!!c.value),u=o.computed(()=>j(o.toValue(e))),d=J(u);function p(){if(s.measure(),!u.value||!d.value||!l(u.value))return;const{scrollHeight:g,clientHeight:b,scrollWidth:h,clientWidth:m}=u.value,w=a==="bottom"||a==="top"?g<=b:h<=m;(s.arrivedState[a]||w)&&(c.value||(c.value=Promise.all([t(s),new Promise(P=>setTimeout(P,i))]).finally(()=>{c.value=null,o.nextTick(()=>p())})))}const U=o.watch(()=>[s.arrivedState[a],d.value],p,{immediate:!0});return S.tryOnUnmounted(U),{isLoading:f,reset(){o.nextTick(()=>p())}}}const ft={mounted(e,t){typeof t.value=="function"?ie(e,t.value):ie(e,...t.value)}},dt={mounted(e,t){typeof t.value=="function"?G(e,t.value):G(e,...t.value)}},mt=o.defineComponent({name:"UseMouse",props:["touch","resetOnTouchEnds","initialValue"],setup(e,{slots:t}){const n=o.reactive(C.useMouse(e));return()=>{if(t.default)return t.default(n)}}}),pt=o.defineComponent({name:"UseMouseElement",props:["handleOutside","as"],setup(e,{slots:t}){const n=o.ref(),r=o.reactive(C.useMouseInElement(n,e));return()=>{if(t.default)return o.h(e.as||"div",{ref:n},t.default(r))}}}),ht={page:e=>[e.pageX,e.pageY],client:e=>[e.clientX,e.clientY],screen:e=>[e.screenX,e.screenY],movement:e=>e instanceof MouseEvent?[e.movementX,e.movementY]:null};function vt(e={}){const{type:t="page",touch:n=!0,resetOnTouchEnds:r=!1,initialValue:a={x:0,y:0},window:i=A,target:l=i,scroll:s=!0,eventFilter:c}=e;let f=null,u=0,d=0;const p=o.ref(a.x),U=o.ref(a.y),g=o.ref(null),b=typeof t=="function"?t:ht[t],h=v=>{const L=b(v);f=v,L&&([p.value,U.value]=L,g.value="mouse"),i&&(u=i.scrollX,d=i.scrollY)},m=v=>{if(v.touches.length>0){const L=b(v.touches[0]);L&&([p.value,U.value]=L,g.value="touch")}},w=()=>{if(!f||!i)return;const v=b(f);f instanceof MouseEvent&&v&&(p.value=v[0]+i.scrollX-u,U.value=v[1]+i.scrollY-d)},P=()=>{p.value=a.x,U.value=a.y},E=c?v=>c(()=>h(v),{}):v=>h(v),D=c?v=>c(()=>m(v),{}):v=>m(v),R=c?()=>c(()=>w(),{}):()=>w();if(l){const v={passive:!0};_(l,["mousemove","dragover"],E,v),n&&t!=="movement"&&(_(l,["touchstart","touchmove"],D,v),r&&_(l,"touchend",P,v)),s&&t==="page"&&_(i,"scroll",R,v)}return{x:p,y:U,sourceType:g}}function gt(e,t={}){const{handleOutside:n=!0,window:r=A}=t,a=t.type||"page",{x:i,y:l,sourceType:s}=vt(t),c=o.ref(e??r?.document.body),f=o.ref(0),u=o.ref(0),d=o.ref(0),p=o.ref(0),U=o.ref(0),g=o.ref(0),b=o.ref(!0);let h=()=>{};return r&&(h=o.watch([c,i,l],()=>{const m=k(c);if(!m||!(m instanceof Element))return;const{left:w,top:P,width:E,height:D}=m.getBoundingClientRect();d.value=w+(a==="page"?r.pageXOffset:0),p.value=P+(a==="page"?r.pageYOffset:0),U.value=D,g.value=E;const R=i.value-d.value,v=l.value-p.value;b.value=E===0||D===0||R<0||v<0||R>E||v>D,(n||!b.value)&&(f.value=R,u.value=v)},{immediate:!0}),_(document,"mouseleave",()=>b.value=!0,{passive:!0})),{x:i,y:l,sourceType:s,elementX:f,elementY:u,elementPositionX:d,elementPositionY:p,elementHeight:U,elementWidth:g,isOutside:b,stop:h}}const yt={mounted(e,t){const[n,r]=typeof t.value=="function"?[t.value,{}]:t.value,a=S.reactiveOmit(o.reactive(gt(e,r)),"stop");o.watch(a,i=>n(i))}},wt=o.defineComponent({name:"UseMousePressed",props:["touch","initialValue","as"],setup(e,{slots:t}){const n=o.ref(),r=o.reactive(C.useMousePressed({...e,target:n}));return()=>{if(t.default)return o.h(e.as||"div",{ref:n},t.default(r))}}}),Ut=o.defineComponent({name:"UseNetwork",setup(e,{slots:t}){const n=o.reactive(C.useNetwork());return()=>{if(t.default)return t.default(n)}}}),St=o.defineComponent({name:"UseNow",props:["interval"],setup(e,{slots:t}){const n=o.reactive(C.useNow({...e,controls:!0}));return()=>{if(t.default)return t.default(n)}}}),bt=o.defineComponent({name:"UseObjectUrl",props:["object"],setup(e,{slots:t}){const n=S.toRef(e,"object"),r=C.useObjectUrl(n);return()=>{if(t.default&&r.value)return t.default(r)}}}),Ct=o.defineComponent({name:"UseOffsetPagination",props:["total","page","pageSize","onPageChange","onPageSizeChange","onPageCountChange"],emits:["page-change","page-size-change","page-count-change"],setup(e,{slots:t,emit:n}){const r=o.reactive(C.useOffsetPagination({...e,onPageChange(...a){var i;(i=e.onPageChange)==null||i.call(e,...a),n("page-change",...a)},onPageSizeChange(...a){var i;(i=e.onPageSizeChange)==null||i.call(e,...a),n("page-size-change",...a)},onPageCountChange(...a){var i;(i=e.onPageCountChange)==null||i.call(e,...a),n("page-count-change",...a)}}));return()=>{if(t.default)return t.default(r)}}}),Et=o.defineComponent({name:"UseOnline",setup(e,{slots:t}){const n=o.reactive({isOnline:C.useOnline()});return()=>{if(t.default)return t.default(n)}}}),Ot=o.defineComponent({name:"UsePageLeave",setup(e,{slots:t}){const n=o.reactive({isLeft:C.usePageLeave()});return()=>{if(t.default)return t.default(n)}}}),Pt=o.defineComponent({name:"UsePointer",props:["pointerTypes","initialValue","target"],setup(e,{slots:t}){const n=o.ref(null),r=o.reactive(C.usePointer({...e,target:e.target==="self"?n:A}));return()=>{if(t.default)return t.default(r,{ref:n})}}}),Vt=o.defineComponent({name:"UsePointerLock",props:["as"],setup(e,{slots:t}){const n=o.ref(),r=o.reactive(C.usePointerLock(n));return()=>{if(t.default)return o.h(e.as||"div",{ref:n},t.default(r))}}}),Dt=o.defineComponent({name:"UsePreferredColorScheme",setup(e,{slots:t}){const n=o.reactive({colorScheme:C.usePreferredColorScheme()});return()=>{if(t.default)return t.default(n)}}}),Mt=o.defineComponent({name:"UsePreferredContrast",setup(e,{slots:t}){const n=o.reactive({contrast:C.usePreferredContrast()});return()=>{if(t.default)return t.default(n)}}}),_t=o.defineComponent({name:"UsePreferredDark",setup(e,{slots:t}){const n=o.reactive({prefersDark:C.usePreferredDark()});return()=>{if(t.default)return t.default(n)}}}),Tt=o.defineComponent({name:"UsePreferredLanguages",setup(e,{slots:t}){const n=o.reactive({languages:C.usePreferredLanguages()});return()=>{if(t.default)return t.default(n)}}}),kt=o.defineComponent({name:"UsePreferredReducedMotion",setup(e,{slots:t}){const n=o.reactive({motion:C.usePreferredReducedMotion()});return()=>{if(t.default)return t.default(n)}}}),Lt=o.defineComponent({name:"UsePreferredReducedTransparency",setup(e,{slots:t}){const n=o.reactive({transparency:C.usePreferredReducedTransparency()});return()=>{if(t.default)return t.default(n)}}}),Rt={mounted(e,t){typeof t.value=="function"?F(e,t.value):F(e,...t.value)}};function Y(e,t,n={}){const{window:r=A,initialValue:a,observe:i=!1}=n,l=o.ref(a),s=o.computed(()=>{var f;return k(t)||((f=r?.document)==null?void 0:f.documentElement)});function c(){var f;const u=o.toValue(e),d=o.toValue(s);if(d&&r&&u){const p=(f=r.getComputedStyle(d).getPropertyValue(u))==null?void 0:f.trim();l.value=p||l.value||a}}return i&&K(s,c,{attributeFilter:["style","class"],window:r}),o.watch([s,()=>o.toValue(e)],(f,u)=>{u[0]&&u[1]&&u[0].style.removeProperty(u[1]),c()}),o.watch([l,s],([f,u])=>{const d=o.toValue(e);u?.style&&d&&(f==null?u.style.removeProperty(d):u.style.setProperty(d,f))},{immediate:!0}),l}const le="--vueuse-safe-area-top",ue="--vueuse-safe-area-right",ce="--vueuse-safe-area-bottom",fe="--vueuse-safe-area-left";function At(){const e=o.ref(""),t=o.ref(""),n=o.ref(""),r=o.ref("");if(S.isClient){const i=Y(le),l=Y(ue),s=Y(ce),c=Y(fe);i.value="env(safe-area-inset-top, 0px)",l.value="env(safe-area-inset-right, 0px)",s.value="env(safe-area-inset-bottom, 0px)",c.value="env(safe-area-inset-left, 0px)",a(),_("resize",S.useDebounceFn(a),{passive:!0})}function a(){e.value=x(le),t.value=x(ue),n.value=x(ce),r.value=x(fe)}return{top:e,right:t,bottom:n,left:r,update:a}}function x(e){return getComputedStyle(document.documentElement).getPropertyValue(e)}const It=o.defineComponent({name:"UseScreenSafeArea",props:{top:Boolean,right:Boolean,bottom:Boolean,left:Boolean},setup(e,{slots:t}){const{top:n,right:r,bottom:a,left:i}=At();return()=>{if(t.default)return o.h("div",{style:{paddingTop:e.top?n.value:"",paddingRight:e.right?r.value:"",paddingBottom:e.bottom?a.value:"",paddingLeft:e.left?i.value:"",boxSizing:"border-box",maxHeight:"100vh",maxWidth:"100vw",overflow:"auto"}},t.default())}}}),zt={mounted(e,t){if(typeof t.value=="function"){const n=t.value,r=$(e,{onScroll(){n(r)},onStop(){n(r)}})}else{const[n,r]=t.value,a=$(e,{...r,onScroll(i){var l;(l=r.onScroll)==null||l.call(r,i),n(a)},onStop(i){var l;(l=r.onStop)==null||l.call(r,i),n(a)}})}}};function de(e){const t=window.getComputedStyle(e);if(t.overflowX==="scroll"||t.overflowY==="scroll"||t.overflowX==="auto"&&e.clientWidth<e.scrollWidth||t.overflowY==="auto"&&e.clientHeight<e.scrollHeight)return!0;{const n=e.parentNode;return!n||n.tagName==="BODY"?!1:de(n)}}function Wt(e){const t=e||window.event,n=t.target;return de(n)?!1:t.touches.length>1?!0:(t.preventDefault&&t.preventDefault(),!1)}const q=new WeakMap;function Bt(e,t=!1){const n=o.ref(t);let r=null,a="";o.watch(S.toRef(e),s=>{const c=j(o.toValue(s));if(c){const f=c;if(q.get(f)||q.set(f,f.style.overflow),f.style.overflow!=="hidden"&&(a=f.style.overflow),f.style.overflow==="hidden")return n.value=!0;if(n.value)return f.style.overflow="hidden"}},{immediate:!0});const i=()=>{const s=j(o.toValue(e));!s||n.value||(S.isIOS&&(r=_(s,"touchmove",c=>{Wt(c)},{passive:!1})),s.style.overflow="hidden",n.value=!0)},l=()=>{const s=j(o.toValue(e));!s||!n.value||(S.isIOS&&r?.(),s.style.overflow=a,q.delete(s),n.value=!1)};return S.tryOnScopeDispose(l),o.computed({get(){return n.value},set(s){s?i():l()}})}function Ht(){let e=!1;const t=o.ref(!1);return(n,r)=>{if(t.value=r.value,e)return;e=!0;const a=Bt(n,r.value);o.watch(t,i=>a.value=i)}}const Nt=Ht(),Ft=o.defineComponent({name:"UseTimeAgo",props:["time","updateInterval","max","fullDateFormatter","messages","showSecond"],setup(e,{slots:t}){const n=o.reactive(C.useTimeAgo(()=>e.time,{...e,controls:!0}));return()=>{if(t.default)return t.default(n)}}}),jt=o.defineComponent({name:"UseTimestamp",props:["immediate","interval","offset"],setup(e,{slots:t}){const n=o.reactive(C.useTimestamp({...e,controls:!0}));return()=>{if(t.default)return t.default(n)}}}),Yt=o.defineComponent({name:"UseVirtualList",props:["list","options","height"],setup(e,{slots:t,expose:n}){const{list:r}=o.toRefs(e),{list:a,containerProps:i,wrapperProps:l,scrollTo:s}=C.useVirtualList(r,e.options);return n({scrollTo:s}),i.style&&typeof i.style=="object"&&!Array.isArray(i.style)&&(i.style.height=e.height||"300px"),()=>o.h("div",{...i},[o.h("div",{...l.value},a.value.map(c=>o.h("div",{style:{overflow:"hidden",height:c.height}},t.default?t.default(c):"Please set content!")))])}}),xt=o.defineComponent({name:"UseWindowFocus",setup(e,{slots:t}){const n=o.reactive({focused:C.useWindowFocus()});return()=>{if(t.default)return t.default(n)}}}),Xt=o.defineComponent({name:"UseWindowSize",props:["initialWidth","initialHeight"],setup(e,{slots:t}){const n=o.reactive(C.useWindowSize(e));return()=>{if(t.default)return t.default(n)}}});y.OnClickOutside=ge,y.OnLongPress=be,y.UseActiveElement=Ce,y.UseBattery=Ee,y.UseBrowserLocation=Oe,y.UseClipboard=Pe,y.UseColorMode=Be,y.UseDark=He,y.UseDeviceMotion=Ne,y.UseDeviceOrientation=Fe,y.UseDevicePixelRatio=je,y.UseDevicesList=Ye,y.UseDocumentVisibility=xe,y.UseDraggable=Xe,y.UseElementBounding=Ke,y.UseElementSize=Qe,y.UseElementVisibility=tt,y.UseEyeDropper=ot,y.UseFullscreen=rt,y.UseGeolocation=at,y.UseIdle=st,y.UseImage=ct,y.UseMouse=mt,y.UseMouseInElement=pt,y.UseMousePressed=wt,y.UseNetwork=Ut,y.UseNow=St,y.UseObjectUrl=bt,y.UseOffsetPagination=Ct,y.UseOnline=Et,y.UsePageLeave=Ot,y.UsePointer=Pt,y.UsePointerLock=Vt,y.UsePreferredColorScheme=Dt,y.UsePreferredContrast=Mt,y.UsePreferredDark=_t,y.UsePreferredLanguages=Tt,y.UsePreferredReducedMotion=kt,y.UsePreferredReducedTransparency=Lt,y.UseScreenSafeArea=It,y.UseTimeAgo=Ft,y.UseTimestamp=jt,y.UseVirtualList=Yt,y.UseWindowFocus=xt,y.UseWindowSize=Xt,y.VOnClickOutside=ee,y.VOnLongPress=ne,y.vElementBounding=Je,y.vElementHover=qe,y.vElementSize=et,y.vElementVisibility=nt,y.vInfiniteScroll=ft,y.vIntersectionObserver=dt,y.vMouseInElement=yt,y.vOnClickOutside=ee,y.vOnKeyStroke=we,y.vOnLongPress=ne,y.vResizeObserver=Rt,y.vScroll=zt,y.vScrollLock=Nt})(this.VueUse=this.VueUse||{},VueUse,Vue,VueUse); |
{ | ||
"name": "@vueuse/components", | ||
"type": "module", | ||
"version": "12.5.0", | ||
"version": "12.6.0", | ||
"description": "Renderless components for VueUse", | ||
@@ -45,4 +45,4 @@ "author": "Jacob Clevenger<https://github.com/wheatjs>", | ||
"vue": "^3.5.13", | ||
"@vueuse/core": "12.5.0", | ||
"@vueuse/shared": "12.5.0" | ||
"@vueuse/core": "12.6.0", | ||
"@vueuse/shared": "12.6.0" | ||
}, | ||
@@ -49,0 +49,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
390373
8472
+ Added@vueuse/core@12.6.0(transitive)
+ Added@vueuse/metadata@12.6.0(transitive)
+ Added@vueuse/shared@12.6.0(transitive)
- Removed@vueuse/core@12.5.0(transitive)
- Removed@vueuse/metadata@12.5.0(transitive)
- Removed@vueuse/shared@12.5.0(transitive)
Updated@vueuse/core@12.6.0
Updated@vueuse/shared@12.6.0