@vtj/materials 0.9.30 → 0.10.1-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/antdv/index.umd.js +2 -2
- package/dist/assets/charts/index.umd.js +2 -2
- package/dist/assets/element/index.umd.js +2 -2
- package/dist/assets/ui/index.umd.js +2 -2
- package/dist/assets/uni-h5/index.umd.js +7 -0
- package/dist/assets/vant/index.umd.js +5 -5
- package/dist/deps/@vtj/charts/index.umd.js +2 -2
- package/dist/deps/@vtj/icons/index.umd.js +2 -2
- package/dist/deps/@vtj/icons/style.css +1 -1
- package/dist/deps/@vtj/ui/index.umd.js +2 -2
- package/dist/deps/@vtj/uni/index.umd.js +7 -0
- package/dist/deps/@vtj/uni/style.css +1 -0
- package/dist/deps/@vtj/utils/index.umd.js +2 -2
- package/dist/deps/@vueuse/core/index.iife.min.js +1 -1
- package/dist/deps/uni-app/index.umd.js +1 -0
- package/dist/deps/uni-h5/index.umd.js +19 -0
- package/dist/deps/uni-h5/style.css +1 -0
- package/dist/deps/uni-h5-vue/index.umd.js +8 -0
- package/package.json +15 -8
- package/src/uni-app/index.ts +1 -0
- package/src/uni-h5/components/Switch.ts +36 -0
- package/src/uni-h5/components/audio.ts +69 -0
- package/src/uni-h5/components/button.ts +206 -0
- package/src/uni-h5/components/canvas.ts +50 -0
- package/src/uni-h5/components/checkbox.ts +81 -0
- package/src/uni-h5/components/coverImage.ts +18 -0
- package/src/uni-h5/components/coverView.ts +19 -0
- package/src/uni-h5/components/editor.ts +49 -0
- package/src/uni-h5/components/form.ts +53 -0
- package/src/uni-h5/components/icon.ts +44 -0
- package/src/uni-h5/components/image.ts +80 -0
- package/src/uni-h5/components/index.ts +119 -0
- package/src/uni-h5/components/input.ts +220 -0
- package/src/uni-h5/components/label.ts +17 -0
- package/src/uni-h5/components/map.ts +207 -0
- package/src/uni-h5/components/matchMedia.ts +59 -0
- package/src/uni-h5/components/movableArea.ts +31 -0
- package/src/uni-h5/components/movableView.ts +97 -0
- package/src/uni-h5/components/navigator.ts +90 -0
- package/src/uni-h5/components/picker.ts +81 -0
- package/src/uni-h5/components/pickerView.ts +163 -0
- package/src/uni-h5/components/progress.ts +71 -0
- package/src/uni-h5/components/radio.ts +127 -0
- package/src/uni-h5/components/richText.ts +67 -0
- package/src/uni-h5/components/scrollView.ts +157 -0
- package/src/uni-h5/components/slider.ts +75 -0
- package/src/uni-h5/components/swiper.ts +220 -0
- package/src/uni-h5/components/text.ts +38 -0
- package/src/uni-h5/components/textarea.ts +169 -0
- package/src/uni-h5/components/video.ts +276 -0
- package/src/uni-h5/components/view.ts +39 -0
- package/src/uni-h5/components/webView.ts +54 -0
- package/src/uni-h5/index.ts +11 -0
- package/src/uni-h5/style.scss +59 -0
- package/src/uni-h5-vue/index.ts +2 -0
- package/src/version.ts +2 -2
@@ -1 +1 @@
|
|
1
|
-
(function(E,v,a){"use strict";function Ve(e,t,n){let o;a.isRef(n)?o={evaluating:n}:o=n||{};const{lazy:u=!1,evaluating:l=void 0,shallow:i=!0,onError:r=v.noop}=o,s=a.ref(!u),c=i?a.shallowRef(t):a.ref(t);let f=0;return a.watchEffect(async d=>{if(!s.value)return;f++;const g=f;let m=!1;l&&Promise.resolve().then(()=>{l.value=!0});try{const p=await e(y=>{d(()=>{l&&(l.value=!1),m||y()})});g===f&&(c.value=p)}catch(p){r(p)}finally{l&&g===f&&(l.value=!1),m=!0}}),u?a.computed(()=>(s.value=!0,c.value)):c}function kt(e,t,n,o){let u=a.inject(e);return n&&(u=a.inject(e,n)),o&&(u=a.inject(e,n,o)),typeof t=="function"?a.computed(l=>t(u,l)):a.computed({get:l=>t.get(u,l),set:t.set})}function Ot(e={}){const{inheritAttrs:t=!0}=e,n=a.shallowRef(),o=a.defineComponent({setup(l,{slots:i}){return()=>{n.value=i.default}}}),u=a.defineComponent({inheritAttrs:t,setup(l,{attrs:i,slots:r}){return()=>{var s;if(!n.value&&process.env.NODE_ENV!=="production")throw new Error("[VueUse] Failed to find the definition of reusable template");const c=(s=n.value)==null?void 0:s.call(n,{..._t(i),$slots:r});return t&&c?.length===1?c[0]:c}}});return v.makeDestructurable({define:o,reuse:u},[o,u])}function _t(e){const t={};for(const n in e)t[v.camelize(n)]=e[n];return t}function Rt(e={}){let t=0;const n=a.ref([]);function o(...i){const r=a.shallowReactive({key:t++,args:i,promise:void 0,resolve:()=>{},reject:()=>{},isResolving:!1,options:e});return n.value.push(r),r.promise=new Promise((s,c)=>{r.resolve=f=>(r.isResolving=!0,s(f)),r.reject=c}).finally(()=>{r.promise=void 0;const s=n.value.indexOf(r);s!==-1&&n.value.splice(s,1)}),r.promise}function u(...i){return e.singleton&&n.value.length>0?n.value[0].promise:o(...i)}const l=a.defineComponent((i,{slots:r})=>{const s=()=>n.value.map(c=>{var f;return a.h(a.Fragment,{key:c.key},(f=r.default)==null?void 0:f.call(r,c))});return e.transition?()=>a.h(a.TransitionGroup,e.transition,s):s});return l.start=u,l}function Vt(e){return function(...t){return e.apply(this,t.map(n=>v.toValue(n)))}}const I=v.isClient?window:void 0,B=v.isClient?window.document:void 0,z=v.isClient?window.navigator:void 0,Ft=v.isClient?window.location:void 0;function x(e){var t;const n=v.toValue(e);return(t=n?.$el)!=null?t:n}function O(...e){let t,n,o,u;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,o,u]=e,t=I):[t,n,o,u]=e,!t)return v.noop;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const l=[],i=()=>{l.forEach(f=>f()),l.length=0},r=(f,d,g,m)=>(f.addEventListener(d,g,m),()=>f.removeEventListener(d,g,m)),s=a.watch(()=>[x(t),v.toValue(u)],([f,d])=>{if(i(),!f)return;const g=v.isObject(d)?{...d}:d;l.push(...n.flatMap(m=>o.map(p=>r(f,m,p,g))))},{immediate:!0,flush:"post"}),c=()=>{s(),i()};return v.tryOnScopeDispose(c),c}let Fe=!1;function Pt(e,t,n={}){const{window:o=I,ignore:u=[],capture:l=!0,detectIframe:i=!1}=n;if(!o)return v.noop;v.isIOS&&!Fe&&(Fe=!0,Array.from(o.document.body.children).forEach(y=>y.addEventListener("click",v.noop)),o.document.documentElement.addEventListener("click",v.noop));let r=!0;const s=y=>v.toValue(u).some(h=>{if(typeof h=="string")return Array.from(o.document.querySelectorAll(h)).some(b=>b===y.target||y.composedPath().includes(b));{const b=x(h);return b&&(y.target===b||y.composedPath().includes(b))}});function c(y){const h=v.toValue(y);return h&&h.$.subTree.shapeFlag===16}function f(y,h){const b=v.toValue(y),w=b.$.subTree&&b.$.subTree.children;return w==null||!Array.isArray(w)?!1:w.some(S=>S.el===h.target||h.composedPath().includes(S.el))}const d=y=>{const h=x(e);if(y.target!=null&&!(!(h instanceof Element)&&c(e)&&f(e,y))&&!(!h||h===y.target||y.composedPath().includes(h))){if(y.detail===0&&(r=!s(y)),!r){r=!0;return}t(y)}};let g=!1;const m=[O(o,"click",y=>{g||(g=!0,setTimeout(()=>{g=!1},0),d(y))},{passive:!0,capture:l}),O(o,"pointerdown",y=>{const h=x(e);r=!s(y)&&!!(h&&!y.composedPath().includes(h))},{passive:!0}),i&&O(o,"blur",y=>{setTimeout(()=>{var h;const b=x(e);((h=o.document.activeElement)==null?void 0:h.tagName)==="IFRAME"&&!b?.contains(o.document.activeElement)&&t(y)},0)})].filter(Boolean);return()=>m.forEach(y=>y())}function Dt(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function ae(...e){let t,n,o={};e.length===3?(t=e[0],n=e[1],o=e[2]):e.length===2?typeof e[1]=="object"?(t=!0,n=e[0],o=e[1]):(t=e[0],n=e[1]):(t=!0,n=e[0]);const{target:u=I,eventName:l="keydown",passive:i=!1,dedupe:r=!1}=o,s=Dt(t);return O(u,l,f=>{f.repeat&&v.toValue(r)||s(f)&&n(f)},i)}function Ct(e,t,n={}){return ae(e,t,{...n,eventName:"keydown"})}function At(e,t,n={}){return ae(e,t,{...n,eventName:"keypress"})}function Mt(e,t,n={}){return ae(e,t,{...n,eventName:"keyup"})}const It=500,Lt=10;function Nt(e,t,n){var o,u;const l=a.computed(()=>x(e));let i,r,s,c=!1;function f(){i&&(clearTimeout(i),i=void 0),r=void 0,s=void 0,c=!1}function d(b){var w,S,T;const[_,C,k]=[s,r,c];if(f(),!n?.onMouseUp||!C||!_||(w=n?.modifiers)!=null&&w.self&&b.target!==l.value)return;(S=n?.modifiers)!=null&&S.prevent&&b.preventDefault(),(T=n?.modifiers)!=null&&T.stop&&b.stopPropagation();const V=b.x-C.x,D=b.y-C.y,P=Math.sqrt(V*V+D*D);n.onMouseUp(b.timeStamp-_,P,k)}function g(b){var w,S,T,_;(w=n?.modifiers)!=null&&w.self&&b.target!==l.value||(f(),(S=n?.modifiers)!=null&&S.prevent&&b.preventDefault(),(T=n?.modifiers)!=null&&T.stop&&b.stopPropagation(),r={x:b.x,y:b.y},s=b.timeStamp,i=setTimeout(()=>{c=!0,t(b)},(_=n?.delay)!=null?_:It))}function m(b){var w,S,T,_;if((w=n?.modifiers)!=null&&w.self&&b.target!==l.value||!r||n?.distanceThreshold===!1)return;(S=n?.modifiers)!=null&&S.prevent&&b.preventDefault(),(T=n?.modifiers)!=null&&T.stop&&b.stopPropagation();const C=b.x-r.x,k=b.y-r.y;Math.sqrt(C*C+k*k)>=((_=n?.distanceThreshold)!=null?_:Lt)&&f()}const p={capture:(o=n?.modifiers)==null?void 0:o.capture,once:(u=n?.modifiers)==null?void 0:u.once},y=[O(l,"pointerdown",g,p),O(l,"pointermove",m,p),O(l,["pointerup","pointerleave"],d,p)];return()=>y.forEach(b=>b())}function xt(){const{activeElement:e,body:t}=document;if(!e||e===t)return!1;switch(e.tagName){case"INPUT":case"TEXTAREA":return!0}return e.hasAttribute("contenteditable")}function Wt({keyCode:e,metaKey:t,ctrlKey:n,altKey:o}){return t||n||o?!1:e>=48&&e<=57||e>=65&&e<=90||e>=97&&e<=122}function Ht(e,t={}){const{document:n=B}=t;n&&O(n,"keydown",u=>{!xt()&&Wt(u)&&e(u)},{passive:!0})}function Ut(e,t=null){const n=a.getCurrentInstance();let o=()=>{};const u=a.customRef((l,i)=>(o=i,{get(){var r,s;return l(),(s=(r=n?.proxy)==null?void 0:r.$refs[e])!=null?s:t},set(){}}));return v.tryOnMounted(o),a.onUpdated(o),u}function Pe(){const e=a.ref(!1),t=a.getCurrentInstance();return t&&a.onMounted(()=>{e.value=!0},t),e}function W(e){const t=Pe();return a.computed(()=>(t.value,!!e()))}function K(e,t,n={}){const{window:o=I,...u}=n;let l;const i=W(()=>o&&"MutationObserver"in o),r=()=>{l&&(l.disconnect(),l=void 0)},s=a.computed(()=>{const g=v.toValue(e),m=(Array.isArray(g)?g:[g]).map(x).filter(v.notNullish);return new Set(m)}),c=a.watch(()=>s.value,g=>{r(),i.value&&g.size&&(l=new MutationObserver(t),g.forEach(m=>l.observe(m,u)))},{immediate:!0,flush:"post"}),f=()=>l?.takeRecords(),d=()=>{c(),r()};return v.tryOnScopeDispose(d),{isSupported:i,stop:d,takeRecords:f}}function De(e={}){var t;const{window:n=I,deep:o=!0,triggerOnRemoval:u=!1}=e,l=(t=e.document)!=null?t:n?.document,i=()=>{var c;let f=l?.activeElement;if(o)for(;f?.shadowRoot;)f=(c=f?.shadowRoot)==null?void 0:c.activeElement;return f},r=a.ref(),s=()=>{r.value=i()};return n&&(O(n,"blur",c=>{c.relatedTarget===null&&s()},!0),O(n,"focus",s,!0)),u&&K(l,c=>{c.filter(f=>f.removedNodes.length).map(f=>Array.from(f.removedNodes)).flat().forEach(f=>{f===r.value&&s()})},{childList:!0,subtree:!0}),s(),r}function G(e,t={}){const{immediate:n=!0,fpsLimit:o=void 0,window:u=I}=t,l=a.ref(!1),i=a.computed(()=>o?1e3/a.toValue(o):null);let r=0,s=null;function c(g){if(!l.value||!u)return;r||(r=g);const m=g-r;if(i.value&&m<i.value){s=u.requestAnimationFrame(c);return}r=g,e({delta:m,timestamp:g}),s=u.requestAnimationFrame(c)}function f(){!l.value&&u&&(l.value=!0,r=0,s=u.requestAnimationFrame(c))}function d(){l.value=!1,s!=null&&u&&(u.cancelAnimationFrame(s),s=null)}return n&&f(),v.tryOnScopeDispose(d),{isActive:a.readonly(l),pause:d,resume:f}}function $t(e,t,n){let o,u;v.isObject(n)?(o=n,u=v.objectOmit(n,["window","immediate","commitStyles","persist","onReady","onError"])):(o={duration:n},u=n);const{window:l=I,immediate:i=!0,commitStyles:r,persist:s,playbackRate:c=1,onReady:f,onError:d=M=>{console.error(M)}}=o,g=W(()=>l&&HTMLElement&&"animate"in HTMLElement.prototype),m=a.shallowRef(void 0),p=a.shallowReactive({startTime:null,currentTime:null,timeline:null,playbackRate:c,pending:!1,playState:i?"idle":"paused",replaceState:"active"}),y=a.computed(()=>p.pending),h=a.computed(()=>p.playState),b=a.computed(()=>p.replaceState),w=a.computed({get(){return p.startTime},set(M){p.startTime=M,m.value&&(m.value.startTime=M)}}),S=a.computed({get(){return p.currentTime},set(M){p.currentTime=M,m.value&&(m.value.currentTime=M,L())}}),T=a.computed({get(){return p.timeline},set(M){p.timeline=M,m.value&&(m.value.timeline=M)}}),_=a.computed({get(){return p.playbackRate},set(M){p.playbackRate=M,m.value&&(m.value.playbackRate=M)}}),C=()=>{if(m.value)try{m.value.play(),L()}catch(M){H(),d(M)}else R()},k=()=>{var M;try{(M=m.value)==null||M.pause(),H()}catch(N){d(N)}},V=()=>{var M;m.value||R();try{(M=m.value)==null||M.reverse(),L()}catch(N){H(),d(N)}},D=()=>{var M;try{(M=m.value)==null||M.finish(),H()}catch(N){d(N)}},P=()=>{var M;try{(M=m.value)==null||M.cancel(),H()}catch(N){d(N)}};a.watch(()=>x(e),M=>{M&&R()}),a.watch(()=>t,M=>{m.value&&R(),!x(e)&&m.value&&(m.value.effect=new KeyframeEffect(x(e),v.toValue(M),u))},{deep:!0}),v.tryOnMounted(()=>R(!0),!1),v.tryOnScopeDispose(P);function R(M){const N=x(e);!g.value||!N||(m.value||(m.value=N.animate(v.toValue(t),u)),s&&m.value.persist(),c!==1&&(m.value.playbackRate=c),M&&!i?m.value.pause():L(),f?.(m.value))}O(m,["cancel","finish","remove"],H),O(m,"finish",()=>{var M;r&&((M=m.value)==null||M.commitStyles())});const{resume:F,pause:A}=G(()=>{m.value&&(p.pending=m.value.pending,p.playState=m.value.playState,p.replaceState=m.value.replaceState,p.startTime=m.value.startTime,p.currentTime=m.value.currentTime,p.timeline=m.value.timeline,p.playbackRate=m.value.playbackRate)},{immediate:!1});function L(){g.value&&F()}function H(){g.value&&l&&l.requestAnimationFrame(A)}return{isSupported:g,animate:m,play:C,pause:k,reverse:V,finish:D,cancel:P,pending:y,playState:h,replaceState:b,startTime:w,currentTime:S,timeline:T,playbackRate:_}}function Bt(e,t){const{interrupt:n=!0,onError:o=v.noop,onFinished:u=v.noop,signal:l}=t||{},i={aborted:"aborted",fulfilled:"fulfilled",pending:"pending",rejected:"rejected"},r=Array.from(Array.from({length:e.length}),()=>({state:i.pending,data:null})),s=a.reactive(r),c=a.ref(-1);if(!e||e.length===0)return u(),{activeIndex:c,result:s};function f(d,g){c.value++,s[c.value].data=g,s[c.value].state=d}return e.reduce((d,g)=>d.then(m=>{var p;if(l?.aborted){f(i.aborted,new Error("aborted"));return}if(((p=s[c.value])==null?void 0:p.state)===i.rejected&&n){u();return}const y=g(m).then(h=>(f(i.fulfilled,h),c.value===e.length-1&&u(),h));return l?Promise.race([y,jt(l)]):y}).catch(m=>l?.aborted?(f(i.aborted,m),m):(f(i.rejected,m),o(),m)),Promise.resolve()),{activeIndex:c,result:s}}function jt(e){return new Promise((t,n)=>{const o=new Error("aborted");e.aborted?n(o):e.addEventListener("abort",()=>n(o),{once:!0})})}function Ce(e,t,n){const{immediate:o=!0,delay:u=0,onError:l=v.noop,onSuccess:i=v.noop,resetOnExecute:r=!0,shallow:s=!0,throwError:c}=n??{},f=s?a.shallowRef(t):a.ref(t),d=a.ref(!1),g=a.ref(!1),m=a.shallowRef(void 0);async function p(b=0,...w){r&&(f.value=t),m.value=void 0,d.value=!1,g.value=!0,b>0&&await v.promiseTimeout(b);const S=typeof e=="function"?e(...w):e;try{const T=await S;f.value=T,d.value=!0,i(T)}catch(T){if(m.value=T,l(T),c)throw T}finally{g.value=!1}return f.value}o&&p(u);const y={state:f,isReady:d,isLoading:g,error:m,execute:p};function h(){return new Promise((b,w)=>{v.until(g).toBe(!1).then(()=>b(y)).catch(w)})}return{...y,then(b,w){return h().then(b,w)}}}const Z={array:e=>JSON.stringify(e),object:e=>JSON.stringify(e),set:e=>JSON.stringify(Array.from(e)),map:e=>JSON.stringify(Object.fromEntries(e)),null:()=>""};function zt(e){return e?e instanceof Map?Z.map:e instanceof Set?Z.set:Array.isArray(e)?Z.array:Z.object:Z.null}function qt(e,t){const n=a.ref(""),o=a.ref();function u(){if(v.isClient)return o.value=new Promise((l,i)=>{try{const r=v.toValue(e);if(r==null)l("");else if(typeof r=="string")l(ge(new Blob([r],{type:"text/plain"})));else if(r instanceof Blob)l(ge(r));else if(r instanceof ArrayBuffer)l(window.btoa(String.fromCharCode(...new Uint8Array(r))));else if(r instanceof HTMLCanvasElement)l(r.toDataURL(t?.type,t?.quality));else if(r instanceof HTMLImageElement){const s=r.cloneNode(!1);s.crossOrigin="Anonymous",Gt(s).then(()=>{const c=document.createElement("canvas"),f=c.getContext("2d");c.width=s.width,c.height=s.height,f.drawImage(s,0,0,c.width,c.height),l(c.toDataURL(t?.type,t?.quality))}).catch(i)}else if(typeof r=="object"){const c=(t?.serializer||zt(r))(r);return l(ge(new Blob([c],{type:"application/json"})))}else i(new Error("target is unsupported types"))}catch(r){i(r)}}),o.value.then(l=>{n.value=t?.dataUrl===!1?l.replace(/^data:.*?;base64,/,""):l}),o.value}return a.isRef(e)||typeof e=="function"?a.watch(e,u,{immediate:!0}):u(),{base64:n,promise:o,execute:u}}function Gt(e){return new Promise((t,n)=>{e.complete?t():(e.onload=()=>{t()},e.onerror=n)})}function ge(e){return new Promise((t,n)=>{const o=new FileReader;o.onload=u=>{t(u.target.result)},o.onerror=n,o.readAsDataURL(e)})}function Yt(e={}){const{navigator:t=z}=e,n=["chargingchange","chargingtimechange","dischargingtimechange","levelchange"],o=W(()=>t&&"getBattery"in t&&typeof t.getBattery=="function"),u=a.ref(!1),l=a.ref(0),i=a.ref(0),r=a.ref(1);let s;function c(){u.value=this.charging,l.value=this.chargingTime||0,i.value=this.dischargingTime||0,r.value=this.level}return o.value&&t.getBattery().then(f=>{s=f,c.call(s),O(s,n,c,{passive:!0})}),{isSupported:o,charging:u,chargingTime:l,dischargingTime:i,level:r}}function Xt(e){let{acceptAllDevices:t=!1}=e||{};const{filters:n=void 0,optionalServices:o=void 0,navigator:u=z}=e||{},l=W(()=>u&&"bluetooth"in u),i=a.shallowRef(void 0),r=a.shallowRef(null);a.watch(i,()=>{d()});async function s(){if(l.value){r.value=null,n&&n.length>0&&(t=!1);try{i.value=await u?.bluetooth.requestDevice({acceptAllDevices:t,filters:n,optionalServices:o})}catch(g){r.value=g}}}const c=a.ref(),f=a.computed(()=>{var g;return((g=c.value)==null?void 0:g.connected)||!1});async function d(){if(r.value=null,i.value&&i.value.gatt){i.value.addEventListener("gattserverdisconnected",()=>{});try{c.value=await i.value.gatt.connect()}catch(g){r.value=g}}}return v.tryOnMounted(()=>{var g;i.value&&((g=i.value.gatt)==null||g.connect())}),v.tryOnScopeDispose(()=>{var g;i.value&&((g=i.value.gatt)==null||g.disconnect())}),{isSupported:l,isConnected:f,device:i,requestDevice:s,server:c,error:r}}const he=Symbol("vueuse-ssr-width");function we(){const e=a.hasInjectionContext()?v.injectLocal(he,null):null;return typeof e=="number"?e:void 0}function Kt(e,t){t!==void 0?t.provide(he,e):v.provideLocal(he,e)}function j(e,t={}){const{window:n=I,ssrWidth:o=we()}=t,u=W(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function"),l=a.ref(typeof o=="number");let i;const r=a.ref(!1),s=d=>{r.value=d.matches},c=()=>{i&&("removeEventListener"in i?i.removeEventListener("change",s):i.removeListener(s))},f=a.watchEffect(()=>{if(l.value){l.value=!u.value;const d=v.toValue(e).split(",");r.value=d.some(g=>{const m=g.includes("not all"),p=g.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),y=g.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);let h=!!(p||y);return p&&h&&(h=o>=v.pxValue(p[1])),y&&h&&(h=o<=v.pxValue(y[1])),m?!h:h});return}u.value&&(c(),i=n.matchMedia(v.toValue(e)),"addEventListener"in i?i.addEventListener("change",s):i.addListener(s),r.value=i.matches)});return v.tryOnScopeDispose(()=>{f(),c(),i=void 0}),a.computed(()=>r.value)}const Jt={sm:640,md:768,lg:1024,xl:1280,"2xl":1536},Qt={xs:0,sm:576,md:768,lg:992,xl:1200,xxl:1400},Ae={xs:0,sm:600,md:960,lg:1264,xl:1904},Zt={xs:0,sm:600,md:960,lg:1280,xl:1920,xxl:2560},en=Ae,tn={xs:480,sm:576,md:768,lg:992,xl:1200,xxl:1600},nn={xs:0,sm:600,md:1024,lg:1440,xl:1920},on={mobileS:320,mobileM:375,mobileL:425,tablet:768,laptop:1024,laptopL:1440,desktop4K:2560},ln={"3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560},rn={sm:576,md:768,lg:992,xl:1200},an={xs:0,sm:768,md:992,lg:1200,xl:1920};function un(e,t={}){function n(m,p){let y=v.toValue(e[v.toValue(m)]);return p!=null&&(y=v.increaseWithUnit(y,p)),typeof y=="number"&&(y=`${y}px`),y}const{window:o=I,strategy:u="min-width",ssrWidth:l=we()}=t,i=typeof l=="number",r=i?a.ref(!1):{value:!0};i&&v.tryOnMounted(()=>r.value=!!o);function s(m,p){return!r.value&&i?m==="min"?l>=v.pxValue(p):l<=v.pxValue(p):o?o.matchMedia(`(${m}-width: ${p})`).matches:!1}const c=m=>j(()=>`(min-width: ${n(m)})`,t),f=m=>j(()=>`(max-width: ${n(m)})`,t),d=Object.keys(e).reduce((m,p)=>(Object.defineProperty(m,p,{get:()=>u==="min-width"?c(p):f(p),enumerable:!0,configurable:!0}),m),{});function g(){const m=Object.keys(e).map(p=>[p,d[p],v.pxValue(n(p))]).sort((p,y)=>p[2]-y[2]);return a.computed(()=>m.filter(([,p])=>p.value).map(([p])=>p))}return Object.assign(d,{greaterOrEqual:c,smallerOrEqual:f,greater(m){return j(()=>`(min-width: ${n(m,.1)})`,t)},smaller(m){return j(()=>`(max-width: ${n(m,-.1)})`,t)},between(m,p){return j(()=>`(min-width: ${n(m)}) and (max-width: ${n(p,-.1)})`,t)},isGreater(m){return s("min",n(m,.1))},isGreaterOrEqual(m){return s("min",n(m))},isSmaller(m){return s("max",n(m,-.1))},isSmallerOrEqual(m){return s("max",n(m))},isInBetween(m,p){return s("min",n(m))&&s("max",n(p,-.1))},current:g,active(){const m=g();return a.computed(()=>m.value.length===0?"":m.value.at(u==="min-width"?-1:0))}})}function sn(e){const{name:t,window:n=I}=e,o=W(()=>n&&"BroadcastChannel"in n),u=a.ref(!1),l=a.ref(),i=a.ref(),r=a.shallowRef(null),s=f=>{l.value&&l.value.postMessage(f)},c=()=>{l.value&&l.value.close(),u.value=!0};return o.value&&v.tryOnMounted(()=>{r.value=null,l.value=new BroadcastChannel(t),l.value.addEventListener("message",f=>{i.value=f.data},{passive:!0}),l.value.addEventListener("messageerror",f=>{r.value=f},{passive:!0}),l.value.addEventListener("close",()=>{u.value=!0})}),v.tryOnScopeDispose(()=>{c()}),{isSupported:o,channel:l,data:i,post:s,close:c,error:r,isClosed:u}}const Me=["hash","host","hostname","href","pathname","port","protocol","search"];function cn(e={}){const{window:t=I}=e,n=Object.fromEntries(Me.map(l=>[l,a.ref()]));for(const[l,i]of v.objectEntries(n))a.watch(i,r=>{!t?.location||t.location[l]===r||(t.location[l]=r)});const o=l=>{var i;const{state:r,length:s}=t?.history||{},{origin:c}=t?.location||{};for(const f of Me)n[f].value=(i=t?.location)==null?void 0:i[f];return a.reactive({trigger:l,state:r,length:s,origin:c,...n})},u=a.ref(o("load"));return t&&(O(t,"popstate",()=>u.value=o("popstate"),{passive:!0}),O(t,"hashchange",()=>u.value=o("hashchange"),{passive:!0})),u}function fn(e,t=(o,u)=>o===u,n){const o=a.ref(e.value);return a.watch(()=>e.value,u=>{t(u,o.value)||(o.value=u)},n),o}function ie(e,t={}){const{controls:n=!1,navigator:o=z}=t,u=W(()=>o&&"permissions"in o),l=a.shallowRef(),i=typeof e=="string"?{name:e}:e,r=a.shallowRef(),s=()=>{var f,d;r.value=(d=(f=l.value)==null?void 0:f.state)!=null?d:"prompt"};O(l,"change",s);const c=v.createSingletonPromise(async()=>{if(u.value){if(!l.value)try{l.value=await o.permissions.query(i)}catch{l.value=void 0}finally{s()}if(n)return a.toRaw(l.value)}});return c(),n?{state:r,isSupported:u,query:c}:r}function dn(e={}){const{navigator:t=z,read:n=!1,source:o,copiedDuring:u=1500,legacy:l=!1}=e,i=W(()=>t&&"clipboard"in t),r=ie("clipboard-read"),s=ie("clipboard-write"),c=a.computed(()=>i.value||l),f=a.ref(""),d=a.ref(!1),g=v.useTimeoutFn(()=>d.value=!1,u);function m(){i.value&&b(r.value)?t.clipboard.readText().then(w=>{f.value=w}):f.value=h()}c.value&&n&&O(["copy","cut"],m);async function p(w=v.toValue(o)){c.value&&w!=null&&(i.value&&b(s.value)?await t.clipboard.writeText(w):y(w),f.value=w,d.value=!0,g.start())}function y(w){const S=document.createElement("textarea");S.value=w??"",S.style.position="absolute",S.style.opacity="0",document.body.appendChild(S),S.select(),document.execCommand("copy"),S.remove()}function h(){var w,S,T;return(T=(S=(w=document?.getSelection)==null?void 0:w.call(document))==null?void 0:S.toString())!=null?T:""}function b(w){return w==="granted"||w==="prompt"}return{isSupported:c,text:f,copied:d,copy:p}}function vn(e={}){const{navigator:t=z,read:n=!1,source:o,copiedDuring:u=1500}=e,l=W(()=>t&&"clipboard"in t),i=a.ref([]),r=a.ref(!1),s=v.useTimeoutFn(()=>r.value=!1,u);function c(){l.value&&t.clipboard.read().then(d=>{i.value=d})}l.value&&n&&O(["copy","cut"],c);async function f(d=v.toValue(o)){l.value&&d!=null&&(await t.clipboard.write(d),i.value=d,r.value=!0,s.start())}return{isSupported:l,content:i,copied:r,copy:f}}function ee(e){return JSON.parse(JSON.stringify(e))}function mn(e,t={}){const n=a.ref({}),{manual:o,clone:u=ee,deep:l=!0,immediate:i=!0}=t;function r(){n.value=u(v.toValue(e))}return!o&&(a.isRef(e)||typeof e=="function")?a.watch(e,r,{...t,deep:l,immediate:i}):r(),{cloned:n,sync:r}}const ue=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},se="__vueuse_ssr_handlers__",Ie=pn();function pn(){return se in ue||(ue[se]=ue[se]||{}),ue[se]}function ce(e,t){return Ie[e]||t}function yn(e,t){Ie[e]=t}function Le(e){return j("(prefers-color-scheme: dark)",e)}function Ne(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 be={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()}},Se="vueuse-storage";function fe(e,t,n,o={}){var u;const{flush:l="pre",deep:i=!0,listenToStorageChanges:r=!0,writeDefaults:s=!0,mergeDefaults:c=!1,shallow:f,window:d=I,eventFilter:g,onError:m=P=>{console.error(P)},initOnMounted:p}=o,y=(f?a.shallowRef:a.ref)(typeof t=="function"?t():t);if(!n)try{n=ce("getDefaultStorage",()=>{var P;return(P=I)==null?void 0:P.localStorage})()}catch(P){m(P)}if(!n)return y;const h=v.toValue(t),b=Ne(h),w=(u=o.serializer)!=null?u:be[b],{pause:S,resume:T}=v.pausableWatch(y,()=>C(y.value),{flush:l,deep:i,eventFilter:g});d&&r&&v.tryOnMounted(()=>{n instanceof Storage?O(d,"storage",V):O(d,Se,D),p&&V()}),p||V();function _(P,R){if(d){const F={key:e,oldValue:P,newValue:R,storageArea:n};d.dispatchEvent(n instanceof Storage?new StorageEvent("storage",F):new CustomEvent(Se,{detail:F}))}}function C(P){try{const R=n.getItem(e);if(P==null)_(R,null),n.removeItem(e);else{const F=w.write(P);R!==F&&(n.setItem(e,F),_(R,F))}}catch(R){m(R)}}function k(P){const R=P?P.newValue:n.getItem(e);if(R==null)return s&&h!=null&&n.setItem(e,w.write(h)),h;if(!P&&c){const F=w.read(R);return typeof c=="function"?c(F,h):b==="object"&&!Array.isArray(F)?{...h,...F}:F}else return typeof R!="string"?R:w.read(R)}function V(P){if(!(P&&P.storageArea!==n)){if(P&&P.key==null){y.value=h;return}if(!(P&&P.key!==e)){S();try{P?.newValue!==w.write(y.value)&&(y.value=k(P))}catch(R){m(R)}finally{P?a.nextTick(T):T()}}}}function D(P){V(P.detail)}return y}const gn="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function xe(e={}){const{selector:t="html",attribute:n="class",initialValue:o="auto",window:u=I,storage:l,storageKey:i="vueuse-color-scheme",listenToStorageChanges:r=!0,storageRef:s,emitAuto:c,disableTransition:f=!0}=e,d={auto:"",light:"light",dark:"dark",...e.modes||{}},g=Le({window:u}),m=a.computed(()=>g.value?"dark":"light"),p=s||(i==null?v.toRef(o):fe(i,o,l,{window:u,listenToStorageChanges:r})),y=a.computed(()=>p.value==="auto"?m.value:p.value),h=ce("updateHTMLAttrs",(T,_,C)=>{const k=typeof T=="string"?u?.document.querySelector(T):x(T);if(!k)return;const V=new Set,D=new Set;let P=null;if(_==="class"){const F=C.split(/\s/g);Object.values(d).flatMap(A=>(A||"").split(/\s/g)).filter(Boolean).forEach(A=>{F.includes(A)?V.add(A):D.add(A)})}else P={key:_,value:C};if(V.size===0&&D.size===0&&P===null)return;let R;f&&(R=u.document.createElement("style"),R.appendChild(document.createTextNode(gn)),u.document.head.appendChild(R));for(const F of V)k.classList.add(F);for(const F of D)k.classList.remove(F);P&&k.setAttribute(P.key,P.value),f&&(u.getComputedStyle(R).opacity,document.head.removeChild(R))});function b(T){var _;h(t,n,(_=d[T])!=null?_:T)}function w(T){e.onChanged?e.onChanged(T,b):b(T)}a.watch(y,w,{flush:"post",immediate:!0}),v.tryOnMounted(()=>w(y.value));const S=a.computed({get(){return c?p.value:y.value},set(T){p.value=T}});return Object.assign(S,{store:p,system:m,state:y})}function hn(e=a.ref(!1)){const t=v.createEventHook(),n=v.createEventHook(),o=v.createEventHook();let u=v.noop;const l=s=>(o.trigger(s),e.value=!0,new Promise(c=>{u=c})),i=s=>{e.value=!1,t.trigger(s),u({data:s,isCanceled:!1})},r=s=>{e.value=!1,n.trigger(s),u({data:s,isCanceled:!0})};return{isRevealed:a.computed(()=>e.value),reveal:l,confirm:i,cancel:r,onReveal:o.on,onConfirm:t.on,onCancel:n.on}}function te(e,t,n={}){const{window:o=I,initialValue:u,observe:l=!1}=n,i=a.ref(u),r=a.computed(()=>{var c;return x(t)||((c=o?.document)==null?void 0:c.documentElement)});function s(){var c;const f=v.toValue(e),d=v.toValue(r);if(d&&o&&f){const g=(c=o.getComputedStyle(d).getPropertyValue(f))==null?void 0:c.trim();i.value=g||u}}return l&&K(r,s,{attributeFilter:["style","class"],window:o}),a.watch([r,()=>v.toValue(e)],(c,f)=>{f[0]&&f[1]&&f[0].style.removeProperty(f[1]),s()},{immediate:!0}),a.watch(i,c=>{var f;const d=v.toValue(e);(f=r.value)!=null&&f.style&&d&&(c==null?r.value.style.removeProperty(d):r.value.style.setProperty(d,c))}),i}function We(e){const t=a.getCurrentInstance(),n=v.computedWithControl(()=>null,()=>e?x(e):t.proxy.$el);return a.onUpdated(n.trigger),a.onMounted(n.trigger),n}function wn(e,t){const n=a.shallowRef(c()),o=v.toRef(e),u=a.computed({get(){var f;const d=o.value;let g=t?.getIndexOf?t.getIndexOf(n.value,d):d.indexOf(n.value);return g<0&&(g=(f=t?.fallbackIndex)!=null?f:0),g},set(f){l(f)}});function l(f){const d=o.value,g=d.length,m=(f%g+g)%g,p=d[m];return n.value=p,p}function i(f=1){return l(u.value+f)}function r(f=1){return i(f)}function s(f=1){return i(-f)}function c(){var f,d;return(d=v.toValue((f=t?.initialValue)!=null?f:v.toValue(e)[0]))!=null?d:void 0}return a.watch(o,()=>l(u.value)),{state:n,index:u,next:r,prev:s,go:l}}function bn(e={}){const{valueDark:t="dark",valueLight:n=""}=e,o=xe({...e,onChanged:(i,r)=>{var s;e.onChanged?(s=e.onChanged)==null||s.call(e,i==="dark",r,i):r(i)},modes:{dark:t,light:n}}),u=a.computed(()=>o.system.value);return a.computed({get(){return o.value==="dark"},set(i){const r=i?"dark":"light";u.value===r?o.value="auto":o.value=r}})}function He(e){return e}function Sn(e,t){return e.value=t}function En(e){return e?typeof e=="function"?e:ee:He}function Tn(e){return e?typeof e=="function"?e:ee:He}function Ue(e,t={}){const{clone:n=!1,dump:o=En(n),parse:u=Tn(n),setSource:l=Sn}=t;function i(){return a.markRaw({snapshot:o(e.value),timestamp:v.timestamp()})}const r=a.ref(i()),s=a.ref([]),c=a.ref([]),f=S=>{l(e,u(S.snapshot)),r.value=S},d=()=>{s.value.unshift(r.value),r.value=i(),t.capacity&&s.value.length>t.capacity&&s.value.splice(t.capacity,Number.POSITIVE_INFINITY),c.value.length&&c.value.splice(0,c.value.length)},g=()=>{s.value.splice(0,s.value.length),c.value.splice(0,c.value.length)},m=()=>{const S=s.value.shift();S&&(c.value.unshift(r.value),f(S))},p=()=>{const S=c.value.shift();S&&(s.value.unshift(r.value),f(S))},y=()=>{f(r.value)},h=a.computed(()=>[r.value,...s.value]),b=a.computed(()=>s.value.length>0),w=a.computed(()=>c.value.length>0);return{source:e,undoStack:s,redoStack:c,last:r,history:h,canUndo:b,canRedo:w,clear:g,commit:d,reset:y,undo:m,redo:p}}function Ee(e,t={}){const{deep:n=!1,flush:o="pre",eventFilter:u}=t,{eventFilter:l,pause:i,resume:r,isActive:s}=v.pausableFilter(u),{ignoreUpdates:c,ignorePrevAsyncUpdates:f,stop:d}=v.watchIgnorable(e,h,{deep:n,flush:o,eventFilter:l});function g(T,_){f(),c(()=>{T.value=_})}const m=Ue(e,{...t,clone:t.clone||n,setSource:g}),{clear:p,commit:y}=m;function h(){f(),y()}function b(T){r(),T&&h()}function w(T){let _=!1;const C=()=>_=!0;c(()=>{T(C)}),_||h()}function S(){d(),p()}return{...m,isTracking:s,pause:i,resume:b,commit:h,batch:w,dispose:S}}function kn(e,t={}){const n=t.debounce?v.debounceFilter(t.debounce):void 0;return{...Ee(e,{...t,eventFilter:n})}}function On(e={}){const{window:t=I,requestPermissions:n=!1,eventFilter:o=v.bypassFilter}=e,u=W(()=>typeof DeviceMotionEvent<"u"),l=W(()=>u.value&&"requestPermission"in DeviceMotionEvent&&typeof DeviceMotionEvent.requestPermission=="function"),i=a.ref(!1),r=a.ref({x:null,y:null,z:null}),s=a.ref({alpha:null,beta:null,gamma:null}),c=a.ref(0),f=a.ref({x:null,y:null,z:null});function d(){if(t){const m=v.createFilterWrapper(o,p=>{var y,h,b,w,S,T,_,C,k;r.value={x:((y=p.acceleration)==null?void 0:y.x)||null,y:((h=p.acceleration)==null?void 0:h.y)||null,z:((b=p.acceleration)==null?void 0:b.z)||null},f.value={x:((w=p.accelerationIncludingGravity)==null?void 0:w.x)||null,y:((S=p.accelerationIncludingGravity)==null?void 0:S.y)||null,z:((T=p.accelerationIncludingGravity)==null?void 0:T.z)||null},s.value={alpha:((_=p.rotationRate)==null?void 0:_.alpha)||null,beta:((C=p.rotationRate)==null?void 0:C.beta)||null,gamma:((k=p.rotationRate)==null?void 0:k.gamma)||null},c.value=p.interval});O(t,"devicemotion",m)}}const g=async()=>{if(l.value||(i.value=!0),!i.value&&l.value){const m=DeviceMotionEvent.requestPermission;try{await m()==="granted"&&(i.value=!0,d())}catch(p){console.error(p)}}};return u.value&&(n&&l.value?g().then(()=>d()):d()),{acceleration:r,accelerationIncludingGravity:f,rotationRate:s,interval:c,isSupported:u,requirePermissions:l,ensurePermissions:g,permissionGranted:i}}function $e(e={}){const{window:t=I}=e,n=W(()=>t&&"DeviceOrientationEvent"in t),o=a.ref(!1),u=a.ref(null),l=a.ref(null),i=a.ref(null);return t&&n.value&&O(t,"deviceorientation",r=>{o.value=r.absolute,u.value=r.alpha,l.value=r.beta,i.value=r.gamma}),{isSupported:n,isAbsolute:o,alpha:u,beta:l,gamma:i}}function _n(e={}){const{window:t=I}=e,n=a.ref(1);if(t){let o=function(){n.value=t.devicePixelRatio,u(),l=t.matchMedia(`(resolution: ${n.value}dppx)`),l.addEventListener("change",o,{once:!0})},u=function(){l?.removeEventListener("change",o)},l;o(),v.tryOnScopeDispose(u)}return{pixelRatio:n}}function Rn(e={}){const{navigator:t=z,requestPermissions:n=!1,constraints:o={audio:!0,video:!0},onUpdated:u}=e,l=a.ref([]),i=a.computed(()=>l.value.filter(p=>p.kind==="videoinput")),r=a.computed(()=>l.value.filter(p=>p.kind==="audioinput")),s=a.computed(()=>l.value.filter(p=>p.kind==="audiooutput")),c=W(()=>t&&t.mediaDevices&&t.mediaDevices.enumerateDevices),f=a.ref(!1);let d;async function g(){c.value&&(l.value=await t.mediaDevices.enumerateDevices(),u?.(l.value),d&&(d.getTracks().forEach(p=>p.stop()),d=null))}async function m(){if(!c.value)return!1;if(f.value)return!0;const{state:p,query:y}=ie("camera",{controls:!0});if(await y(),p.value!=="granted"){let h=!0;try{d=await t.mediaDevices.getUserMedia(o)}catch{d=null,h=!1}g(),f.value=h}else f.value=!0;return f.value}return c.value&&(n&&m(),O(t.mediaDevices,"devicechange",g),g()),{devices:l,ensurePermissions:m,permissionGranted:f,videoInputs:i,audioInputs:r,audioOutputs:s,isSupported:c}}function Vn(e={}){var t;const n=a.ref((t=e.enabled)!=null?t:!1),o=e.video,u=e.audio,{navigator:l=z}=e,i=W(()=>{var m;return(m=l?.mediaDevices)==null?void 0:m.getDisplayMedia}),r={audio:u,video:o},s=a.shallowRef();async function c(){var m;if(!(!i.value||s.value))return s.value=await l.mediaDevices.getDisplayMedia(r),(m=s.value)==null||m.getTracks().forEach(p=>p.addEventListener("ended",d)),s.value}async function f(){var m;(m=s.value)==null||m.getTracks().forEach(p=>p.stop()),s.value=void 0}function d(){f(),n.value=!1}async function g(){return await c(),s.value&&(n.value=!0),s.value}return a.watch(n,m=>{m?c():f()},{immediate:!0}),{isSupported:i,stream:s,start:g,stop:d,enabled:n}}function Be(e={}){const{document:t=B}=e;if(!t)return a.ref("visible");const n=a.ref(t.visibilityState);return O(t,"visibilitychange",()=>{n.value=t.visibilityState}),n}function Fn(e,t={}){var n,o;const{pointerTypes:u,preventDefault:l,stopPropagation:i,exact:r,onMove:s,onEnd:c,onStart:f,initialValue:d,axis:g="both",draggingElement:m=I,containerElement:p,handle:y=e,buttons:h=[0]}=t,b=a.ref((n=v.toValue(d))!=null?n:{x:0,y:0}),w=a.ref(),S=V=>u?u.includes(V.pointerType):!0,T=V=>{v.toValue(l)&&V.preventDefault(),v.toValue(i)&&V.stopPropagation()},_=V=>{var D;if(!v.toValue(h).includes(V.button)||v.toValue(t.disabled)||!S(V)||v.toValue(r)&&V.target!==v.toValue(e))return;const P=v.toValue(p),R=(D=P?.getBoundingClientRect)==null?void 0:D.call(P),F=v.toValue(e).getBoundingClientRect(),A={x:V.clientX-(P?F.left-R.left+P.scrollLeft:F.left),y:V.clientY-(P?F.top-R.top+P.scrollTop:F.top)};f?.(A,V)!==!1&&(w.value=A,T(V))},C=V=>{if(v.toValue(t.disabled)||!S(V)||!w.value)return;const D=v.toValue(p),P=v.toValue(e).getBoundingClientRect();let{x:R,y:F}=b.value;(g==="x"||g==="both")&&(R=V.clientX-w.value.x,D&&(R=Math.min(Math.max(0,R),D.scrollWidth-P.width))),(g==="y"||g==="both")&&(F=V.clientY-w.value.y,D&&(F=Math.min(Math.max(0,F),D.scrollHeight-P.height))),b.value={x:R,y:F},s?.(b.value,V),T(V)},k=V=>{v.toValue(t.disabled)||!S(V)||w.value&&(w.value=void 0,c?.(b.value,V),T(V))};if(v.isClient){const V={capture:(o=t.capture)!=null?o:!0};O(y,"pointerdown",_,V),O(m,"pointermove",C,V),O(m,"pointerup",k,V)}return{...v.toRefs(b),position:b,isDragging:a.computed(()=>!!w.value),style:a.computed(()=>`left:${b.value.x}px;top:${b.value.y}px;`)}}function Pn(e,t={}){var n,o;const u=a.ref(!1),l=a.shallowRef(null);let i=0,r=!0;if(v.isClient){const s=typeof t=="function"?{onDrop:t}:t,c=(n=s.multiple)!=null?n:!0,f=(o=s.preventDefaultForUnhandled)!=null?o:!1,d=y=>{var h,b;const w=Array.from((b=(h=y.dataTransfer)==null?void 0:h.files)!=null?b:[]);return w.length===0?null:c?w:[w[0]]},g=y=>{if(s.dataTypes){const h=a.unref(s.dataTypes);return typeof h=="function"?h(y):h?h.some(b=>y.includes(b)):!0}return!0},m=y=>{var h,b;const w=Array.from((b=(h=y.dataTransfer)==null?void 0:h.items)!=null?b:[]),S=w.map(C=>C.type),T=g(S),_=c||w.length<=1;return T&&_},p=(y,h)=>{var b,w,S,T;if(r=m(y),!r){f&&y.preventDefault(),y.dataTransfer&&(y.dataTransfer.dropEffect="none");return}y.preventDefault(),y.dataTransfer&&(y.dataTransfer.dropEffect="copy");const _=d(y);switch(h){case"enter":i+=1,u.value=!0,(b=s.onEnter)==null||b.call(s,null,y);break;case"over":(w=s.onOver)==null||w.call(s,null,y);break;case"leave":i-=1,i===0&&(u.value=!1),(S=s.onLeave)==null||S.call(s,null,y);break;case"drop":i=0,u.value=!1,r&&(l.value=_,(T=s.onDrop)==null||T.call(s,_,y));break}};O(e,"dragenter",y=>p(y,"enter")),O(e,"dragover",y=>p(y,"over")),O(e,"dragleave",y=>p(y,"leave")),O(e,"drop",y=>p(y,"drop"))}return{files:l,isOverDropZone:u}}function de(e,t,n={}){const{window:o=I,...u}=n;let l;const i=W(()=>o&&"ResizeObserver"in o),r=()=>{l&&(l.disconnect(),l=void 0)},s=a.computed(()=>{const d=v.toValue(e);return Array.isArray(d)?d.map(g=>x(g)):[x(d)]}),c=a.watch(s,d=>{if(r(),i.value&&o){l=new ResizeObserver(t);for(const g of d)g&&l.observe(g,u)}},{immediate:!0,flush:"post"}),f=()=>{r(),c()};return v.tryOnScopeDispose(f),{isSupported:i,stop:f}}function Dn(e,t={}){const{reset:n=!0,windowResize:o=!0,windowScroll:u=!0,immediate:l=!0,updateTiming:i="sync"}=t,r=a.ref(0),s=a.ref(0),c=a.ref(0),f=a.ref(0),d=a.ref(0),g=a.ref(0),m=a.ref(0),p=a.ref(0);function y(){const b=x(e);if(!b){n&&(r.value=0,s.value=0,c.value=0,f.value=0,d.value=0,g.value=0,m.value=0,p.value=0);return}const w=b.getBoundingClientRect();r.value=w.height,s.value=w.bottom,c.value=w.left,f.value=w.right,d.value=w.top,g.value=w.width,m.value=w.x,p.value=w.y}function h(){i==="sync"?y():i==="next-frame"&&requestAnimationFrame(()=>y())}return de(e,h),a.watch(()=>x(e),b=>!b&&h()),K(e,h,{attributeFilter:["style","class"]}),u&&O("scroll",h,{capture:!0,passive:!0}),o&&O("resize",h,{passive:!0}),v.tryOnMounted(()=>{l&&h()}),{height:r,bottom:s,left:c,right:f,top:d,width:g,x:m,y:p,update:h}}function Cn(e){const{x:t,y:n,document:o=B,multiple:u,interval:l="requestAnimationFrame",immediate:i=!0}=e,r=W(()=>v.toValue(u)?o&&"elementsFromPoint"in o:o&&"elementFromPoint"in o),s=a.ref(null),c=()=>{var d,g;s.value=v.toValue(u)?(d=o?.elementsFromPoint(v.toValue(t),v.toValue(n)))!=null?d:[]:(g=o?.elementFromPoint(v.toValue(t),v.toValue(n)))!=null?g:null},f=l==="requestAnimationFrame"?G(c,{immediate:i}):v.useIntervalFn(c,l,{immediate:i});return{isSupported:r,element:s,...f}}function An(e,t={}){const{delayEnter:n=0,delayLeave:o=0,window:u=I}=t,l=a.ref(!1);let i;const r=s=>{const c=s?n:o;i&&(clearTimeout(i),i=void 0),c?i=setTimeout(()=>l.value=s,c):l.value=s};return u&&(O(e,"mouseenter",()=>r(!0),{passive:!0}),O(e,"mouseleave",()=>r(!1),{passive:!0})),l}function je(e,t={width:0,height:0},n={}){const{window:o=I,box:u="content-box"}=n,l=a.computed(()=>{var d,g;return(g=(d=x(e))==null?void 0:d.namespaceURI)==null?void 0:g.includes("svg")}),i=a.ref(t.width),r=a.ref(t.height),{stop:s}=de(e,([d])=>{const g=u==="border-box"?d.borderBoxSize:u==="content-box"?d.contentBoxSize:d.devicePixelContentBoxSize;if(o&&l.value){const m=x(e);if(m){const p=m.getBoundingClientRect();i.value=p.width,r.value=p.height}}else if(g){const m=Array.isArray(g)?g:[g];i.value=m.reduce((p,{inlineSize:y})=>p+y,0),r.value=m.reduce((p,{blockSize:y})=>p+y,0)}else i.value=d.contentRect.width,r.value=d.contentRect.height},n);v.tryOnMounted(()=>{const d=x(e);d&&(i.value="offsetWidth"in d?d.offsetWidth:t.width,r.value="offsetHeight"in d?d.offsetHeight:t.height)});const c=a.watch(()=>x(e),d=>{i.value=d?t.width:0,r.value=d?t.height:0});function f(){s(),c()}return{width:i,height:r,stop:f}}function ze(e,t,n={}){const{root:o,rootMargin:u="0px",threshold:l=0,window:i=I,immediate:r=!0}=n,s=W(()=>i&&"IntersectionObserver"in i),c=a.computed(()=>{const p=v.toValue(e);return(Array.isArray(p)?p:[p]).map(x).filter(v.notNullish)});let f=v.noop;const d=a.ref(r),g=s.value?a.watch(()=>[c.value,x(o),d.value],([p,y])=>{if(f(),!d.value||!p.length)return;const h=new IntersectionObserver(t,{root:x(y),rootMargin:u,threshold:l});p.forEach(b=>b&&h.observe(b)),f=()=>{h.disconnect(),f=v.noop}},{immediate:r,flush:"post"}):v.noop,m=()=>{f(),g(),d.value=!1};return v.tryOnScopeDispose(m),{isSupported:s,isActive:d,pause(){f(),d.value=!1},resume(){d.value=!0},stop:m}}function qe(e,t={}){const{window:n=I,scrollTarget:o,threshold:u=0,rootMargin:l}=t,i=a.ref(!1);return ze(e,r=>{let s=i.value,c=0;for(const f of r)f.time>=c&&(c=f.time,s=f.isIntersecting);i.value=s},{root:o,window:n,threshold:u,rootMargin:v.toValue(l)}),i}const ne=new Map;function Mn(e){const t=a.getCurrentScope();function n(r){var s;const c=ne.get(e)||new Set;c.add(r),ne.set(e,c);const f=()=>u(r);return(s=t?.cleanups)==null||s.push(f),f}function o(r){function s(...c){u(s),r(...c)}return n(s)}function u(r){const s=ne.get(e);s&&(s.delete(r),s.size||l())}function l(){ne.delete(e)}function i(r,s){var c;(c=ne.get(e))==null||c.forEach(f=>f(r,s))}return{on:n,once:o,off:u,emit:i,reset:l}}function In(e){return e===!0?{}:e}function Ln(e,t=[],n={}){const o=a.ref(null),u=a.ref(null),l=a.ref("CONNECTING"),i=a.ref(null),r=a.shallowRef(null),s=v.toRef(e),c=a.shallowRef(null);let f=!1,d=0;const{withCredentials:g=!1,immediate:m=!0,autoConnect:p=!0,autoReconnect:y}=n,h=()=>{v.isClient&&i.value&&(i.value.close(),i.value=null,l.value="CLOSED",f=!0)},b=()=>{if(f||typeof s.value>"u")return;const S=new EventSource(s.value,{withCredentials:g});l.value="CONNECTING",i.value=S,S.onopen=()=>{l.value="OPEN",r.value=null},S.onerror=T=>{if(l.value="CLOSED",r.value=T,S.readyState===2&&!f&&y){S.close();const{retries:_=-1,delay:C=1e3,onFailed:k}=In(y);d+=1,typeof _=="number"&&(_<0||d<_)||typeof _=="function"&&_()?setTimeout(b,C):k?.()}},S.onmessage=T=>{o.value=null,u.value=T.data,c.value=T.lastEventId};for(const T of t)O(S,T,_=>{o.value=T,u.value=_.data||null})},w=()=>{v.isClient&&(h(),f=!1,d=0,b())};return m&&w(),p&&a.watch(s,w),v.tryOnScopeDispose(h),{eventSource:i,event:o,data:u,status:l,error:r,open:w,close:h,lastEventId:c}}function Nn(e={}){const{initialValue:t=""}=e,n=W(()=>typeof window<"u"&&"EyeDropper"in window),o=a.ref(t);async function u(l){if(!n.value)return;const r=await new window.EyeDropper().open(l);return o.value=r.sRGBHex,r}return{isSupported:n,sRGBHex:o,open:u}}function xn(e=null,t={}){const{baseUrl:n="",rel:o="icon",document:u=B}=t,l=v.toRef(e),i=r=>{const s=u?.head.querySelectorAll(`link[rel*="${o}"]`);if(!s||s.length===0){const c=u?.createElement("link");c&&(c.rel=o,c.href=`${n}${r}`,c.type=`image/${r.split(".").pop()}`,u?.head.append(c));return}s?.forEach(c=>c.href=`${n}${r}`)};return a.watch(l,(r,s)=>{typeof r=="string"&&r!==s&&i(r)},{immediate:!0}),l}const Wn={json:"application/json",text:"text/plain"};function ve(e){return e&&v.containsProp(e,"immediate","refetch","initialData","timeout","beforeFetch","afterFetch","onFetchError","fetch","updateDataOnError")}const Hn=/^(?:[a-z][a-z\d+\-.]*:)?\/\//i;function Un(e){return Hn.test(e)}function oe(e){return typeof Headers<"u"&&e instanceof Headers?Object.fromEntries(e.entries()):e}function J(e,...t){return e==="overwrite"?async n=>{const o=t[t.length-1];return o?{...n,...await o(n)}:n}:async n=>{for(const o of t)o&&(n={...n,...await o(n)});return n}}function $n(e={}){const t=e.combination||"chain",n=e.options||{},o=e.fetchOptions||{};function u(l,...i){const r=a.computed(()=>{const f=v.toValue(e.baseUrl),d=v.toValue(l);return f&&!Un(d)?Bn(f,d):d});let s=n,c=o;return i.length>0&&(ve(i[0])?s={...s,...i[0],beforeFetch:J(t,n.beforeFetch,i[0].beforeFetch),afterFetch:J(t,n.afterFetch,i[0].afterFetch),onFetchError:J(t,n.onFetchError,i[0].onFetchError)}:c={...c,...i[0],headers:{...oe(c.headers)||{},...oe(i[0].headers)||{}}}),i.length>1&&ve(i[1])&&(s={...s,...i[1],beforeFetch:J(t,n.beforeFetch,i[1].beforeFetch),afterFetch:J(t,n.afterFetch,i[1].afterFetch),onFetchError:J(t,n.onFetchError,i[1].onFetchError)}),Ge(r,c,s)}return u}function Ge(e,...t){var n;const o=typeof AbortController=="function";let u={},l={immediate:!0,refetch:!1,timeout:0,updateDataOnError:!1};const i={method:"GET",type:"text",payload:void 0};t.length>0&&(ve(t[0])?l={...l,...t[0]}:u=t[0]),t.length>1&&ve(t[1])&&(l={...l,...t[1]});const{fetch:r=(n=I)==null?void 0:n.fetch,initialData:s,timeout:c}=l,f=v.createEventHook(),d=v.createEventHook(),g=v.createEventHook(),m=a.ref(!1),p=a.ref(!1),y=a.ref(!1),h=a.ref(null),b=a.shallowRef(null),w=a.shallowRef(null),S=a.shallowRef(s||null),T=a.computed(()=>o&&p.value);let _,C;const k=()=>{o&&(_?.abort(),_=new AbortController,_.signal.onabort=()=>y.value=!0,u={...u,signal:_.signal})},V=M=>{p.value=M,m.value=!M};c&&(C=v.useTimeoutFn(k,c,{immediate:!1}));let D=0;const P=async(M=!1)=>{var N,q;k(),V(!0),w.value=null,h.value=null,y.value=!1,D+=1;const U=D,Y={method:i.method,headers:{}},Q=v.toValue(i.payload);if(Q){const $=oe(Y.headers),re=Object.getPrototypeOf(Q);!i.payloadType&&Q&&(re===Object.prototype||Array.isArray(re))&&!(Q instanceof FormData)&&(i.payloadType="json"),i.payloadType&&($["Content-Type"]=(N=Wn[i.payloadType])!=null?N:i.payloadType),Y.body=i.payloadType==="json"?JSON.stringify(Q):Q}let Tt=!1;const le={url:v.toValue(e),options:{...Y,...u},cancel:()=>{Tt=!0}};if(l.beforeFetch&&Object.assign(le,await l.beforeFetch(le)),Tt||!r)return V(!1),Promise.resolve(null);let X=null;return C&&C.start(),r(le.url,{...Y,...le.options,headers:{...oe(Y.headers),...oe((q=le.options)==null?void 0:q.headers)}}).then(async $=>{if(b.value=$,h.value=$.status,X=await $.clone()[i.type](),!$.ok)throw S.value=s||null,new Error($.statusText);return l.afterFetch&&({data:X}=await l.afterFetch({data:X,response:$})),S.value=X,f.trigger($),$}).catch(async $=>{let re=$.message||$.name;if(l.onFetchError&&({error:re,data:X}=await l.onFetchError({data:X,error:$,response:b.value})),w.value=re,l.updateDataOnError&&(S.value=X),d.trigger($),M)throw $;return null}).finally(()=>{U===D&&V(!1),C&&C.stop(),g.trigger(null)})},R=v.toRef(l.refetch);a.watch([R,v.toRef(e)],([M])=>M&&P(),{deep:!0});const F={isFinished:a.readonly(m),isFetching:a.readonly(p),statusCode:h,response:b,error:w,data:S,canAbort:T,aborted:y,abort:k,execute:P,onFetchResponse:f.on,onFetchError:d.on,onFetchFinally:g.on,get:A("GET"),put:A("PUT"),post:A("POST"),delete:A("DELETE"),patch:A("PATCH"),head:A("HEAD"),options:A("OPTIONS"),json:H("json"),text:H("text"),blob:H("blob"),arrayBuffer:H("arrayBuffer"),formData:H("formData")};function A(M){return(N,q)=>{if(!p.value)return i.method=M,i.payload=N,i.payloadType=q,a.isRef(i.payload)&&a.watch([R,v.toRef(i.payload)],([U])=>U&&P(),{deep:!0}),{...F,then(U,Y){return L().then(U,Y)}}}}function L(){return new Promise((M,N)=>{v.until(m).toBe(!0).then(()=>M(F)).catch(N)})}function H(M){return()=>{if(!p.value)return i.type=M,{...F,then(N,q){return L().then(N,q)}}}}return l.immediate&&Promise.resolve().then(()=>P()),{...F,then(M,N){return L().then(M,N)}}}function Bn(e,t){return!e.endsWith("/")&&!t.startsWith("/")?`${e}/${t}`:e.endsWith("/")&&t.startsWith("/")?`${e.slice(0,-1)}${t}`:`${e}${t}`}const jn={multiple:!0,accept:"*",reset:!1,directory:!1};function zn(e={}){const{document:t=B}=e,n=a.ref(null),{on:o,trigger:u}=v.createEventHook(),{on:l,trigger:i}=v.createEventHook();let r;t&&(r=t.createElement("input"),r.type="file",r.onchange=f=>{const d=f.target;n.value=d.files,u(n.value)},r.oncancel=()=>{i()});const s=()=>{n.value=null,r&&r.value&&(r.value="",u(null))},c=f=>{if(!r)return;const d={...jn,...e,...f};r.multiple=d.multiple,r.accept=d.accept,r.webkitdirectory=d.directory,v.hasOwn(d,"capture")&&(r.capture=d.capture),d.reset&&s(),r.click()};return{files:a.readonly(n),open:c,reset:s,onCancel:l,onChange:o}}function qn(e={}){const{window:t=I,dataType:n="Text"}=e,o=t,u=W(()=>o&&"showSaveFilePicker"in o&&"showOpenFilePicker"in o),l=a.ref(),i=a.ref(),r=a.ref(),s=a.computed(()=>{var w,S;return(S=(w=r.value)==null?void 0:w.name)!=null?S:""}),c=a.computed(()=>{var w,S;return(S=(w=r.value)==null?void 0:w.type)!=null?S:""}),f=a.computed(()=>{var w,S;return(S=(w=r.value)==null?void 0:w.size)!=null?S:0}),d=a.computed(()=>{var w,S;return(S=(w=r.value)==null?void 0:w.lastModified)!=null?S:0});async function g(w={}){if(!u.value)return;const[S]=await o.showOpenFilePicker({...v.toValue(e),...w});l.value=S,await b()}async function m(w={}){u.value&&(l.value=await o.showSaveFilePicker({...e,...w}),i.value=void 0,await b())}async function p(w={}){if(u.value){if(!l.value)return y(w);if(i.value){const S=await l.value.createWritable();await S.write(i.value),await S.close()}await h()}}async function y(w={}){if(u.value){if(l.value=await o.showSaveFilePicker({...e,...w}),i.value){const S=await l.value.createWritable();await S.write(i.value),await S.close()}await h()}}async function h(){var w;r.value=await((w=l.value)==null?void 0:w.getFile())}async function b(){var w,S;await h();const T=v.toValue(n);T==="Text"?i.value=await((w=r.value)==null?void 0:w.text()):T==="ArrayBuffer"?i.value=await((S=r.value)==null?void 0:S.arrayBuffer()):T==="Blob"&&(i.value=r.value)}return a.watch(()=>v.toValue(n),b),{isSupported:u,data:i,file:r,fileName:s,fileMIME:c,fileSize:f,fileLastModified:d,open:g,create:m,save:p,saveAs:y,updateData:b}}function Gn(e,t={}){const{initialValue:n=!1,focusVisible:o=!1,preventScroll:u=!1}=t,l=a.ref(!1),i=a.computed(()=>x(e));O(i,"focus",s=>{var c,f;(!o||(f=(c=s.target).matches)!=null&&f.call(c,":focus-visible"))&&(l.value=!0)}),O(i,"blur",()=>l.value=!1);const r=a.computed({get:()=>l.value,set(s){var c,f;!s&&l.value?(c=i.value)==null||c.blur():s&&!l.value&&((f=i.value)==null||f.focus({preventScroll:u}))}});return a.watch(i,()=>{r.value=n},{immediate:!0,flush:"post"}),{focused:r}}const Yn="focusin",Xn="focusout";function Kn(e,t={}){const{window:n=I}=t,o=a.computed(()=>x(e)),u=a.ref(!1),l=a.computed(()=>u.value),i=De(t);return!n||!i.value?{focused:l}:(O(o,Yn,()=>u.value=!0),O(o,Xn,()=>u.value=!1),{focused:l})}function Jn(e){var t;const n=a.ref(0);if(typeof performance>"u")return n;const o=(t=e?.every)!=null?t:10;let u=performance.now(),l=0;return G(()=>{if(l+=1,l>=o){const i=performance.now(),r=i-u;n.value=Math.round(1e3/(r/l)),u=i,l=0}}),n}const Ye=["fullscreenchange","webkitfullscreenchange","webkitendfullscreen","mozfullscreenchange","MSFullscreenChange"];function Qn(e,t={}){const{document:n=B,autoExit:o=!1}=t,u=a.computed(()=>{var b;return(b=x(e))!=null?b:n?.querySelector("html")}),l=a.ref(!1),i=a.computed(()=>["requestFullscreen","webkitRequestFullscreen","webkitEnterFullscreen","webkitEnterFullScreen","webkitRequestFullScreen","mozRequestFullScreen","msRequestFullscreen"].find(b=>n&&b in n||u.value&&b in u.value)),r=a.computed(()=>["exitFullscreen","webkitExitFullscreen","webkitExitFullScreen","webkitCancelFullScreen","mozCancelFullScreen","msExitFullscreen"].find(b=>n&&b in n||u.value&&b in u.value)),s=a.computed(()=>["fullScreen","webkitIsFullScreen","webkitDisplayingFullscreen","mozFullScreen","msFullscreenElement"].find(b=>n&&b in n||u.value&&b in u.value)),c=["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"].find(b=>n&&b in n),f=W(()=>u.value&&n&&i.value!==void 0&&r.value!==void 0&&s.value!==void 0),d=()=>c?n?.[c]===u.value:!1,g=()=>{if(s.value){if(n&&n[s.value]!=null)return n[s.value];{const b=u.value;if(b?.[s.value]!=null)return!!b[s.value]}}return!1};async function m(){if(!(!f.value||!l.value)){if(r.value)if(n?.[r.value]!=null)await n[r.value]();else{const b=u.value;b?.[r.value]!=null&&await b[r.value]()}l.value=!1}}async function p(){if(!f.value||l.value)return;g()&&await m();const b=u.value;i.value&&b?.[i.value]!=null&&(await b[i.value](),l.value=!0)}async function y(){await(l.value?m():p())}const h=()=>{const b=g();(!b||b&&d())&&(l.value=b)};return O(n,Ye,h,!1),O(()=>x(u),Ye,h,!1),o&&v.tryOnScopeDispose(m),{isSupported:f,isFullscreen:l,enter:p,exit:m,toggle:y}}function Zn(e){return a.computed(()=>e.value?{buttons:{a:e.value.buttons[0],b:e.value.buttons[1],x:e.value.buttons[2],y:e.value.buttons[3]},bumper:{left:e.value.buttons[4],right:e.value.buttons[5]},triggers:{left:e.value.buttons[6],right:e.value.buttons[7]},stick:{left:{horizontal:e.value.axes[0],vertical:e.value.axes[1],button:e.value.buttons[10]},right:{horizontal:e.value.axes[2],vertical:e.value.axes[3],button:e.value.buttons[11]}},dpad:{up:e.value.buttons[12],down:e.value.buttons[13],left:e.value.buttons[14],right:e.value.buttons[15]},back:e.value.buttons[8],start:e.value.buttons[9]}:null)}function eo(e={}){const{navigator:t=z}=e,n=W(()=>t&&"getGamepads"in t),o=a.ref([]),u=v.createEventHook(),l=v.createEventHook(),i=m=>{const p=[],y="vibrationActuator"in m?m.vibrationActuator:null;return y&&p.push(y),m.hapticActuators&&p.push(...m.hapticActuators),{id:m.id,index:m.index,connected:m.connected,mapping:m.mapping,timestamp:m.timestamp,vibrationActuator:m.vibrationActuator,hapticActuators:p,axes:m.axes.map(h=>h),buttons:m.buttons.map(h=>({pressed:h.pressed,touched:h.touched,value:h.value}))}},r=()=>{const m=t?.getGamepads()||[];for(const p of m)p&&o.value[p.index]&&(o.value[p.index]=i(p))},{isActive:s,pause:c,resume:f}=G(r),d=m=>{o.value.some(({index:p})=>p===m.index)||(o.value.push(i(m)),u.trigger(m.index)),f()},g=m=>{o.value=o.value.filter(p=>p.index!==m.index),l.trigger(m.index)};return O("gamepadconnected",m=>d(m.gamepad)),O("gamepaddisconnected",m=>g(m.gamepad)),v.tryOnMounted(()=>{const m=t?.getGamepads()||[];for(const p of m)p&&o.value[p.index]&&d(p)}),c(),{isSupported:n,onConnected:u.on,onDisconnected:l.on,gamepads:o,pause:c,resume:f,isActive:s}}function to(e={}){const{enableHighAccuracy:t=!0,maximumAge:n=3e4,timeout:o=27e3,navigator:u=z,immediate:l=!0}=e,i=W(()=>u&&"geolocation"in u),r=a.ref(null),s=a.shallowRef(null),c=a.ref({accuracy:0,latitude:Number.POSITIVE_INFINITY,longitude:Number.POSITIVE_INFINITY,altitude:null,altitudeAccuracy:null,heading:null,speed:null});function f(p){r.value=p.timestamp,c.value=p.coords,s.value=null}let d;function g(){i.value&&(d=u.geolocation.watchPosition(f,p=>s.value=p,{enableHighAccuracy:t,maximumAge:n,timeout:o}))}l&&g();function m(){d&&u&&u.geolocation.clearWatch(d)}return v.tryOnScopeDispose(()=>{m()}),{isSupported:i,coords:c,locatedAt:r,error:s,resume:g,pause:m}}const no=["mousemove","mousedown","resize","keydown","touchstart","wheel"],oo=6e4;function lo(e=oo,t={}){const{initialState:n=!1,listenForVisibilityChange:o=!0,events:u=no,window:l=I,eventFilter:i=v.throttleFilter(50)}=t,r=a.ref(n),s=a.ref(v.timestamp());let c;const f=()=>{r.value=!1,clearTimeout(c),c=setTimeout(()=>r.value=!0,e)},d=v.createFilterWrapper(i,()=>{s.value=v.timestamp(),f()});if(l){const g=l.document;for(const m of u)O(l,m,d,{passive:!0});o&&O(g,"visibilitychange",()=>{g.hidden||d()}),f()}return{idle:r,lastActive:s,reset:f}}async function ro(e){return new Promise((t,n)=>{const o=new Image,{src:u,srcset:l,sizes:i,class:r,loading:s,crossorigin:c,referrerPolicy:f,width:d,height:g,decoding:m,fetchPriority:p,ismap:y,usemap:h}=e;o.src=u,l!=null&&(o.srcset=l),i!=null&&(o.sizes=i),r!=null&&(o.className=r),s!=null&&(o.loading=s),c!=null&&(o.crossOrigin=c),f!=null&&(o.referrerPolicy=f),d!=null&&(o.width=d),g!=null&&(o.height=g),m!=null&&(o.decoding=m),p!=null&&(o.fetchPriority=p),y!=null&&(o.isMap=y),h!=null&&(o.useMap=h),o.onload=()=>t(o),o.onerror=n})}function ao(e,t={}){const n=Ce(()=>ro(v.toValue(e)),void 0,{resetOnExecute:!0,...t});return a.watch(()=>v.toValue(e),()=>n.execute(t.delay),{deep:!0}),n}function me(e){return typeof Window<"u"&&e instanceof Window?e.document.documentElement:typeof Document<"u"&&e instanceof Document?e.documentElement:e}const Xe=1;function Ke(e,t={}){const{throttle:n=0,idle:o=200,onStop:u=v.noop,onScroll:l=v.noop,offset:i={left:0,right:0,top:0,bottom:0},eventListenerOptions:r={capture:!1,passive:!0},behavior:s="auto",window:c=I,onError:f=k=>{console.error(k)}}=t,d=a.ref(0),g=a.ref(0),m=a.computed({get(){return d.value},set(k){y(k,void 0)}}),p=a.computed({get(){return g.value},set(k){y(void 0,k)}});function y(k,V){var D,P,R,F;if(!c)return;const A=v.toValue(e);if(!A)return;(R=A instanceof Document?c.document.body:A)==null||R.scrollTo({top:(D=v.toValue(V))!=null?D:p.value,left:(P=v.toValue(k))!=null?P:m.value,behavior:v.toValue(s)});const L=((F=A?.document)==null?void 0:F.documentElement)||A?.documentElement||A;m!=null&&(d.value=L.scrollLeft),p!=null&&(g.value=L.scrollTop)}const h=a.ref(!1),b=a.reactive({left:!0,right:!1,top:!0,bottom:!1}),w=a.reactive({left:!1,right:!1,top:!1,bottom:!1}),S=k=>{h.value&&(h.value=!1,w.left=!1,w.right=!1,w.top=!1,w.bottom=!1,u(k))},T=v.useDebounceFn(S,n+o),_=k=>{var V;if(!c)return;const D=((V=k?.document)==null?void 0:V.documentElement)||k?.documentElement||x(k),{display:P,flexDirection:R,direction:F}=getComputedStyle(D),A=F==="rtl"?-1:1,L=D.scrollLeft;w.left=L<d.value,w.right=L>d.value;const H=L*A<=(i.left||0),M=L*A+D.clientWidth>=D.scrollWidth-(i.right||0)-Xe;P==="flex"&&R==="row-reverse"?(b.left=M,b.right=H):(b.left=H,b.right=M),d.value=L;let N=D.scrollTop;k===c.document&&!N&&(N=c.document.body.scrollTop),w.top=N<g.value,w.bottom=N>g.value;const q=N<=(i.top||0),U=N+D.clientHeight>=D.scrollHeight-(i.bottom||0)-Xe;P==="flex"&&R==="column-reverse"?(b.top=U,b.bottom=q):(b.top=q,b.bottom=U),g.value=N},C=k=>{var V;if(!c)return;const D=(V=k.target.documentElement)!=null?V:k.target;_(D),h.value=!0,T(k),l(k)};return O(e,"scroll",n?v.useThrottleFn(C,n,!0,!1):C,r),v.tryOnMounted(()=>{try{const k=v.toValue(e);if(!k)return;_(k)}catch(k){f(k)}}),O(e,"scrollend",S,r),{x:m,y:p,isScrolling:h,arrivedState:b,directions:w,measure(){const k=v.toValue(e);c&&k&&_(k)}}}function io(e,t,n={}){var o;const{direction:u="bottom",interval:l=100,canLoadMore:i=()=>!0}=n,r=a.reactive(Ke(e,{...n,offset:{[u]:(o=n.distance)!=null?o:0,...n.offset}})),s=a.ref(),c=a.computed(()=>!!s.value),f=a.computed(()=>me(v.toValue(e))),d=qe(f);function g(){if(r.measure(),!f.value||!d.value||!i(f.value))return;const{scrollHeight:p,clientHeight:y,scrollWidth:h,clientWidth:b}=f.value,w=u==="bottom"||u==="top"?p<=y:h<=b;(r.arrivedState[u]||w)&&(s.value||(s.value=Promise.all([t(r),new Promise(S=>setTimeout(S,l))]).finally(()=>{s.value=null,a.nextTick(()=>g())})))}const m=a.watch(()=>[r.arrivedState[u],d.value],g,{immediate:!0});return v.tryOnUnmounted(m),{isLoading:c,reset(){a.nextTick(()=>g())}}}const uo=["mousedown","mouseup","keydown","keyup"];function so(e,t={}){const{events:n=uo,document:o=B,initial:u=null}=t,l=a.ref(u);return o&&n.forEach(i=>{O(o,i,r=>{typeof r.getModifierState=="function"&&(l.value=r.getModifierState(e))})}),l}function co(e,t,n={}){const{window:o=I}=n;return fe(e,t,o?.localStorage,n)}const Je={ctrl:"control",command:"meta",cmd:"meta",option:"alt",up:"arrowup",down:"arrowdown",left:"arrowleft",right:"arrowright"};function fo(e={}){const{reactive:t=!1,target:n=I,aliasMap:o=Je,passive:u=!0,onEventFired:l=v.noop}=e,i=a.reactive(new Set),r={toJSON(){return{}},current:i},s=t?a.reactive(r):r,c=new Set,f=new Set;function d(y,h){y in s&&(t?s[y]=h:s[y].value=h)}function g(){i.clear();for(const y of f)d(y,!1)}function m(y,h){var b,w;const S=(b=y.key)==null?void 0:b.toLowerCase(),_=[(w=y.code)==null?void 0:w.toLowerCase(),S].filter(Boolean);S&&(h?i.add(S):i.delete(S));for(const C of _)f.add(C),d(C,h);S==="meta"&&!h?(c.forEach(C=>{i.delete(C),d(C,!1)}),c.clear()):typeof y.getModifierState=="function"&&y.getModifierState("Meta")&&h&&[...i,..._].forEach(C=>c.add(C))}O(n,"keydown",y=>(m(y,!0),l(y)),{passive:u}),O(n,"keyup",y=>(m(y,!1),l(y)),{passive:u}),O("blur",g,{passive:!0}),O("focus",g,{passive:!0});const p=new Proxy(s,{get(y,h,b){if(typeof h!="string")return Reflect.get(y,h,b);if(h=h.toLowerCase(),h in o&&(h=o[h]),!(h in s))if(/[+_-]/.test(h)){const S=h.split(/[+_-]/g).map(T=>T.trim());s[h]=a.computed(()=>S.every(T=>v.toValue(p[T])))}else s[h]=a.ref(!1);const w=Reflect.get(y,h,b);return t?v.toValue(w):w}});return p}function Te(e,t){v.toValue(e)&&t(v.toValue(e))}function vo(e){let t=[];for(let n=0;n<e.length;++n)t=[...t,[e.start(n),e.end(n)]];return t}function ke(e){return Array.from(e).map(({label:t,kind:n,language:o,mode:u,activeCues:l,cues:i,inBandMetadataTrackDispatchType:r},s)=>({id:s,label:t,kind:n,language:o,mode:u,activeCues:l,cues:i,inBandMetadataTrackDispatchType:r}))}const mo={src:"",tracks:[]};function po(e,t={}){e=v.toRef(e),t={...mo,...t};const{document:n=B}=t,o=a.ref(0),u=a.ref(0),l=a.ref(!1),i=a.ref(1),r=a.ref(!1),s=a.ref(!1),c=a.ref(!1),f=a.ref(1),d=a.ref(!1),g=a.ref([]),m=a.ref([]),p=a.ref(-1),y=a.ref(!1),h=a.ref(!1),b=n&&"pictureInPictureEnabled"in n,w=v.createEventHook(),S=v.createEventHook(),T=R=>{Te(e,F=>{if(R){const A=typeof R=="number"?R:R.id;F.textTracks[A].mode="disabled"}else for(let A=0;A<F.textTracks.length;++A)F.textTracks[A].mode="disabled";p.value=-1})},_=(R,F=!0)=>{Te(e,A=>{const L=typeof R=="number"?R:R.id;F&&T(),A.textTracks[L].mode="showing",p.value=L})},C=()=>new Promise((R,F)=>{Te(e,async A=>{b&&(y.value?n.exitPictureInPicture().then(R).catch(F):A.requestPictureInPicture().then(R).catch(F))})});a.watchEffect(()=>{if(!n)return;const R=v.toValue(e);if(!R)return;const F=v.toValue(t.src);let A=[];F&&(typeof F=="string"?A=[{src:F}]:Array.isArray(F)?A=F:v.isObject(F)&&(A=[F]),R.querySelectorAll("source").forEach(L=>{L.removeEventListener("error",w.trigger),L.remove()}),A.forEach(({src:L,type:H,media:M})=>{const N=n.createElement("source");N.setAttribute("src",L),N.setAttribute("type",H||""),N.setAttribute("media",M||""),N.addEventListener("error",w.trigger),R.appendChild(N)}),R.load())}),v.tryOnScopeDispose(()=>{const R=v.toValue(e);R&&R.querySelectorAll("source").forEach(F=>F.removeEventListener("error",w.trigger))}),a.watch([e,i],()=>{const R=v.toValue(e);R&&(R.volume=i.value)}),a.watch([e,h],()=>{const R=v.toValue(e);R&&(R.muted=h.value)}),a.watch([e,f],()=>{const R=v.toValue(e);R&&(R.playbackRate=f.value)}),a.watchEffect(()=>{if(!n)return;const R=v.toValue(t.tracks),F=v.toValue(e);!R||!R.length||!F||(F.querySelectorAll("track").forEach(A=>A.remove()),R.forEach(({default:A,kind:L,label:H,src:M,srcLang:N},q)=>{const U=n.createElement("track");U.default=A||!1,U.kind=L,U.label=H,U.src=M,U.srclang=N,U.default&&(p.value=q),F.appendChild(U)}))});const{ignoreUpdates:k}=v.watchIgnorable(o,R=>{const F=v.toValue(e);F&&(F.currentTime=R)}),{ignoreUpdates:V}=v.watchIgnorable(c,R=>{const F=v.toValue(e);F&&(R?F.play().catch(A=>{throw S.trigger(A),A}):F.pause())});O(e,"timeupdate",()=>k(()=>o.value=v.toValue(e).currentTime)),O(e,"durationchange",()=>u.value=v.toValue(e).duration),O(e,"progress",()=>g.value=vo(v.toValue(e).buffered)),O(e,"seeking",()=>l.value=!0),O(e,"seeked",()=>l.value=!1),O(e,["waiting","loadstart"],()=>{r.value=!0,V(()=>c.value=!1)}),O(e,"loadeddata",()=>r.value=!1),O(e,"playing",()=>{r.value=!1,s.value=!1,V(()=>c.value=!0)}),O(e,"ratechange",()=>f.value=v.toValue(e).playbackRate),O(e,"stalled",()=>d.value=!0),O(e,"ended",()=>s.value=!0),O(e,"pause",()=>V(()=>c.value=!1)),O(e,"play",()=>V(()=>c.value=!0)),O(e,"enterpictureinpicture",()=>y.value=!0),O(e,"leavepictureinpicture",()=>y.value=!1),O(e,"volumechange",()=>{const R=v.toValue(e);R&&(i.value=R.volume,h.value=R.muted)});const D=[],P=a.watch([e],()=>{const R=v.toValue(e);R&&(P(),D[0]=O(R.textTracks,"addtrack",()=>m.value=ke(R.textTracks)),D[1]=O(R.textTracks,"removetrack",()=>m.value=ke(R.textTracks)),D[2]=O(R.textTracks,"change",()=>m.value=ke(R.textTracks)))});return v.tryOnScopeDispose(()=>D.forEach(R=>R())),{currentTime:o,duration:u,waiting:r,seeking:l,ended:s,stalled:d,buffered:g,playing:c,rate:f,volume:i,muted:h,tracks:m,selectedTrack:p,enableTrack:_,disableTrack:T,supportsPictureInPicture:b,togglePictureInPicture:C,isPictureInPicture:y,onSourceError:w.on,onPlaybackError:S.on}}function yo(e,t){const o=t?.cache?a.shallowReactive(t.cache):a.shallowReactive(new Map),u=(...f)=>t?.getKey?t.getKey(...f):JSON.stringify(f),l=(f,...d)=>(o.set(f,e(...d)),o.get(f)),i=(...f)=>l(u(...f),...f),r=(...f)=>{o.delete(u(...f))},s=()=>{o.clear()},c=(...f)=>{const d=u(...f);return o.has(d)?o.get(d):l(d,...f)};return c.load=i,c.delete=r,c.clear=s,c.generateKey=u,c.cache=o,c}function go(e={}){const t=a.ref(),n=W(()=>typeof performance<"u"&&"memory"in performance);if(n.value){const{interval:o=1e3}=e;v.useIntervalFn(()=>{t.value=performance.memory},o,{immediate:e.immediate,immediateCallback:e.immediateCallback})}return{isSupported:n,memory:t}}const ho={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 Qe(e={}){const{type:t="page",touch:n=!0,resetOnTouchEnds:o=!1,initialValue:u={x:0,y:0},window:l=I,target:i=l,scroll:r=!0,eventFilter:s}=e;let c=null,f=0,d=0;const g=a.ref(u.x),m=a.ref(u.y),p=a.ref(null),y=typeof t=="function"?t:ho[t],h=k=>{const V=y(k);c=k,V&&([g.value,m.value]=V,p.value="mouse"),l&&(f=l.scrollX,d=l.scrollY)},b=k=>{if(k.touches.length>0){const V=y(k.touches[0]);V&&([g.value,m.value]=V,p.value="touch")}},w=()=>{if(!c||!l)return;const k=y(c);c instanceof MouseEvent&&k&&(g.value=k[0]+l.scrollX-f,m.value=k[1]+l.scrollY-d)},S=()=>{g.value=u.x,m.value=u.y},T=s?k=>s(()=>h(k),{}):k=>h(k),_=s?k=>s(()=>b(k),{}):k=>b(k),C=s?()=>s(()=>w(),{}):()=>w();if(i){const k={passive:!0};O(i,["mousemove","dragover"],T,k),n&&t!=="movement"&&(O(i,["touchstart","touchmove"],_,k),o&&O(i,"touchend",S,k)),r&&t==="page"&&O(l,"scroll",C,{passive:!0})}return{x:g,y:m,sourceType:p}}function Ze(e,t={}){const{handleOutside:n=!0,window:o=I}=t,u=t.type||"page",{x:l,y:i,sourceType:r}=Qe(t),s=a.ref(e??o?.document.body),c=a.ref(0),f=a.ref(0),d=a.ref(0),g=a.ref(0),m=a.ref(0),p=a.ref(0),y=a.ref(!0);let h=()=>{};return o&&(h=a.watch([s,l,i],()=>{const b=x(s);if(!b||!(b instanceof Element))return;const{left:w,top:S,width:T,height:_}=b.getBoundingClientRect();d.value=w+(u==="page"?o.pageXOffset:0),g.value=S+(u==="page"?o.pageYOffset:0),m.value=_,p.value=T;const C=l.value-d.value,k=i.value-g.value;y.value=T===0||_===0||C<0||k<0||C>T||k>_,(n||!y.value)&&(c.value=C,f.value=k)},{immediate:!0}),O(document,"mouseleave",()=>{y.value=!0})),{x:l,y:i,sourceType:r,elementX:c,elementY:f,elementPositionX:d,elementPositionY:g,elementHeight:m,elementWidth:p,isOutside:y,stop:h}}function wo(e={}){const{touch:t=!0,drag:n=!0,capture:o=!1,initialValue:u=!1,window:l=I}=e,i=a.ref(u),r=a.ref(null);if(!l)return{pressed:i,sourceType:r};const s=d=>()=>{i.value=!0,r.value=d},c=()=>{i.value=!1,r.value=null},f=a.computed(()=>x(e.target)||l);return O(f,"mousedown",s("mouse"),{passive:!0,capture:o}),O(l,"mouseleave",c,{passive:!0,capture:o}),O(l,"mouseup",c,{passive:!0,capture:o}),n&&(O(f,"dragstart",s("mouse"),{passive:!0,capture:o}),O(l,"drop",c,{passive:!0,capture:o}),O(l,"dragend",c,{passive:!0,capture:o})),t&&(O(f,"touchstart",s("touch"),{passive:!0,capture:o}),O(l,"touchend",c,{passive:!0,capture:o}),O(l,"touchcancel",c,{passive:!0,capture:o})),{pressed:i,sourceType:r}}function bo(e={}){const{window:t=I}=e,n=t?.navigator,o=W(()=>n&&"language"in n),u=a.ref(n?.language);return O(t,"languagechange",()=>{n&&(u.value=n.language)}),{isSupported:o,language:u}}function et(e={}){const{window:t=I}=e,n=t?.navigator,o=W(()=>n&&"connection"in n),u=a.ref(!0),l=a.ref(!1),i=a.ref(void 0),r=a.ref(void 0),s=a.ref(void 0),c=a.ref(void 0),f=a.ref(void 0),d=a.ref(void 0),g=a.ref("unknown"),m=o.value&&n.connection;function p(){n&&(u.value=n.onLine,i.value=u.value?void 0:Date.now(),r.value=u.value?Date.now():void 0,m&&(s.value=m.downlink,c.value=m.downlinkMax,d.value=m.effectiveType,f.value=m.rtt,l.value=m.saveData,g.value=m.type))}return t&&(O(t,"offline",()=>{u.value=!1,i.value=Date.now()}),O(t,"online",()=>{u.value=!0,r.value=Date.now()})),m&&O(m,"change",p,!1),p(),{isSupported:a.readonly(o),isOnline:a.readonly(u),saveData:a.readonly(l),offlineAt:a.readonly(i),onlineAt:a.readonly(r),downlink:a.readonly(s),downlinkMax:a.readonly(c),effectiveType:a.readonly(d),rtt:a.readonly(f),type:a.readonly(g)}}function tt(e={}){const{controls:t=!1,interval:n="requestAnimationFrame"}=e,o=a.ref(new Date),u=()=>o.value=new Date,l=n==="requestAnimationFrame"?G(u,{immediate:!0}):v.useIntervalFn(u,n,{immediate:!0});return t?{now:o,...l}:o}function So(e){const t=a.ref(),n=()=>{t.value&&URL.revokeObjectURL(t.value),t.value=void 0};return a.watch(()=>v.toValue(e),o=>{n(),o&&(t.value=URL.createObjectURL(o))},{immediate:!0}),v.tryOnScopeDispose(n),a.readonly(t)}function nt(e,t,n){if(typeof e=="function"||a.isReadonly(e))return a.computed(()=>v.clamp(v.toValue(e),v.toValue(t),v.toValue(n)));const o=a.ref(e);return a.computed({get(){return o.value=v.clamp(o.value,v.toValue(t),v.toValue(n))},set(u){o.value=v.clamp(u,v.toValue(t),v.toValue(n))}})}function Eo(e){const{total:t=Number.POSITIVE_INFINITY,pageSize:n=10,page:o=1,onPageChange:u=v.noop,onPageSizeChange:l=v.noop,onPageCountChange:i=v.noop}=e,r=nt(n,1,Number.POSITIVE_INFINITY),s=a.computed(()=>Math.max(1,Math.ceil(v.toValue(t)/v.toValue(r)))),c=nt(o,1,s),f=a.computed(()=>c.value===1),d=a.computed(()=>c.value===s.value);a.isRef(o)&&v.syncRef(o,c,{direction:a.isReadonly(o)?"ltr":"both"}),a.isRef(n)&&v.syncRef(n,r,{direction:a.isReadonly(n)?"ltr":"both"});function g(){c.value--}function m(){c.value++}const p={currentPage:c,currentPageSize:r,pageCount:s,isFirstPage:f,isLastPage:d,prev:g,next:m};return a.watch(c,()=>{u(a.reactive(p))}),a.watch(r,()=>{l(a.reactive(p))}),a.watch(s,()=>{i(a.reactive(p))}),p}function To(e={}){const{isOnline:t}=et(e);return t}function ko(e={}){const{window:t=I}=e,n=a.ref(!1),o=u=>{if(!t)return;u=u||t.event;const l=u.relatedTarget||u.toElement;n.value=!l};return t&&(O(t,"mouseout",o,{passive:!0}),O(t.document,"mouseleave",o,{passive:!0}),O(t.document,"mouseenter",o,{passive:!0})),n}function ot(e={}){const{window:t=I}=e,n=W(()=>t&&"screen"in t&&"orientation"in t.screen),o=n.value?t.screen.orientation:{},u=a.ref(o.type),l=a.ref(o.angle||0);return n.value&&O(t,"orientationchange",()=>{u.value=o.type,l.value=o.angle}),{isSupported:n,orientation:u,angle:l,lockOrientation:s=>n.value&&typeof o.lock=="function"?o.lock(s):Promise.reject(new Error("Not supported")),unlockOrientation:()=>{n.value&&typeof o.unlock=="function"&&o.unlock()}}}function Oo(e,t={}){const{deviceOrientationTiltAdjust:n=h=>h,deviceOrientationRollAdjust:o=h=>h,mouseTiltAdjust:u=h=>h,mouseRollAdjust:l=h=>h,window:i=I}=t,r=a.reactive($e({window:i})),s=a.reactive(ot({window:i})),{elementX:c,elementY:f,elementWidth:d,elementHeight:g}=Ze(e,{handleOutside:!1,window:i}),m=a.computed(()=>r.isSupported&&(r.alpha!=null&&r.alpha!==0||r.gamma!=null&&r.gamma!==0)?"deviceOrientation":"mouse"),p=a.computed(()=>{if(m.value==="deviceOrientation"){let h;switch(s.orientation){case"landscape-primary":h=r.gamma/90;break;case"landscape-secondary":h=-r.gamma/90;break;case"portrait-primary":h=-r.beta/90;break;case"portrait-secondary":h=r.beta/90;break;default:h=-r.beta/90}return o(h)}else{const h=-(f.value-g.value/2)/g.value;return l(h)}}),y=a.computed(()=>{if(m.value==="deviceOrientation"){let h;switch(s.orientation){case"landscape-primary":h=r.beta/90;break;case"landscape-secondary":h=-r.beta/90;break;case"portrait-primary":h=r.gamma/90;break;case"portrait-secondary":h=-r.gamma/90;break;default:h=r.gamma/90}return n(h)}else{const h=(c.value-d.value/2)/d.value;return u(h)}});return{roll:p,tilt:y,source:m}}function _o(e=We()){const t=a.shallowRef(),n=()=>{const o=x(e);o&&(t.value=o.parentElement)};return v.tryOnMounted(n),a.watch(()=>v.toValue(e),n),t}function Ro(e,t){const{window:n=I,immediate:o=!0,...u}=e,l=W(()=>n&&"PerformanceObserver"in n);let i;const r=()=>{i?.disconnect()},s=()=>{l.value&&(r(),i=new PerformanceObserver(t),i.observe(u))};return v.tryOnScopeDispose(r),o&&s(),{isSupported:l,start:s,stop:r}}const lt={x:0,y:0,pointerId:0,pressure:0,tiltX:0,tiltY:0,width:0,height:0,twist:0,pointerType:null},Vo=Object.keys(lt);function Fo(e={}){const{target:t=I}=e,n=a.ref(!1),o=a.ref(e.initialValue||{});Object.assign(o.value,lt,o.value);const u=l=>{n.value=!0,!(e.pointerTypes&&!e.pointerTypes.includes(l.pointerType))&&(o.value=v.objectPick(l,Vo,!1))};if(t){const l={passive:!0};O(t,["pointerdown","pointermove","pointerup"],u,l),O(t,"pointerleave",()=>n.value=!1,l)}return{...v.toRefs(o),isInside:n}}function Po(e,t={}){const{document:n=B}=t,o=W(()=>n&&"pointerLockElement"in n),u=a.ref(),l=a.ref();let i;o.value&&(O(n,"pointerlockchange",()=>{var c;const f=(c=n.pointerLockElement)!=null?c:u.value;i&&f===i&&(u.value=n.pointerLockElement,u.value||(i=l.value=null))}),O(n,"pointerlockerror",()=>{var c;const f=(c=n.pointerLockElement)!=null?c:u.value;if(i&&f===i){const d=n.pointerLockElement?"release":"acquire";throw new Error(`Failed to ${d} pointer lock.`)}}));async function r(c){var f;if(!o.value)throw new Error("Pointer Lock API is not supported by your browser.");if(l.value=c instanceof Event?c.currentTarget:null,i=c instanceof Event?(f=x(e))!=null?f:l.value:x(c),!i)throw new Error("Target element undefined.");return i.requestPointerLock(),await v.until(u).toBe(i)}async function s(){return u.value?(n.exitPointerLock(),await v.until(u).toBeNull(),!0):!1}return{isSupported:o,element:u,triggerElement:l,lock:r,unlock:s}}function Do(e,t={}){const n=v.toRef(e),{threshold:o=50,onSwipe:u,onSwipeEnd:l,onSwipeStart:i,disableTextSelect:r=!1}=t,s=a.reactive({x:0,y:0}),c=(k,V)=>{s.x=k,s.y=V},f=a.reactive({x:0,y:0}),d=(k,V)=>{f.x=k,f.y=V},g=a.computed(()=>s.x-f.x),m=a.computed(()=>s.y-f.y),{max:p,abs:y}=Math,h=a.computed(()=>p(y(g.value),y(m.value))>=o),b=a.ref(!1),w=a.ref(!1),S=a.computed(()=>h.value?y(g.value)>y(m.value)?g.value>0?"left":"right":m.value>0?"up":"down":"none"),T=k=>{var V,D,P;const R=k.buttons===0,F=k.buttons===1;return(P=(D=(V=t.pointerTypes)==null?void 0:V.includes(k.pointerType))!=null?D:R||F)!=null?P:!0},_=[O(e,"pointerdown",k=>{if(!T(k))return;w.value=!0;const V=k.target;V?.setPointerCapture(k.pointerId);const{clientX:D,clientY:P}=k;c(D,P),d(D,P),i?.(k)}),O(e,"pointermove",k=>{if(!T(k)||!w.value)return;const{clientX:V,clientY:D}=k;d(V,D),!b.value&&h.value&&(b.value=!0),b.value&&u?.(k)}),O(e,"pointerup",k=>{T(k)&&(b.value&&l?.(k,S.value),w.value=!1,b.value=!1)})];v.tryOnMounted(()=>{var k,V,D,P,R,F,A,L;(V=(k=n.value)==null?void 0:k.style)==null||V.setProperty("touch-action","none"),r&&((P=(D=n.value)==null?void 0:D.style)==null||P.setProperty("-webkit-user-select","none"),(F=(R=n.value)==null?void 0:R.style)==null||F.setProperty("-ms-user-select","none"),(L=(A=n.value)==null?void 0:A.style)==null||L.setProperty("user-select","none"))});const C=()=>_.forEach(k=>k());return{isSwiping:a.readonly(b),direction:a.readonly(S),posStart:a.readonly(s),posEnd:a.readonly(f),distanceX:g,distanceY:m,stop:C}}function Co(e){const t=j("(prefers-color-scheme: light)",e),n=j("(prefers-color-scheme: dark)",e);return a.computed(()=>n.value?"dark":t.value?"light":"no-preference")}function Ao(e){const t=j("(prefers-contrast: more)",e),n=j("(prefers-contrast: less)",e),o=j("(prefers-contrast: custom)",e);return a.computed(()=>t.value?"more":n.value?"less":o.value?"custom":"no-preference")}function Mo(e={}){const{window:t=I}=e;if(!t)return a.ref(["en"]);const n=t.navigator,o=a.ref(n.languages);return O(t,"languagechange",()=>{o.value=n.languages}),o}function Io(e){const t=j("(prefers-reduced-motion: reduce)",e);return a.computed(()=>t.value?"reduce":"no-preference")}function Lo(e){const t=j("(prefers-reduced-transparency: reduce)",e);return a.computed(()=>t.value?"reduce":"no-preference")}function No(e,t){const n=a.shallowRef(t);return a.watch(v.toRef(e),(o,u)=>{n.value=u},{flush:"sync"}),a.readonly(n)}const rt="--vueuse-safe-area-top",at="--vueuse-safe-area-right",it="--vueuse-safe-area-bottom",ut="--vueuse-safe-area-left";function xo(){const e=a.ref(""),t=a.ref(""),n=a.ref(""),o=a.ref("");if(v.isClient){const l=te(rt),i=te(at),r=te(it),s=te(ut);l.value="env(safe-area-inset-top, 0px)",i.value="env(safe-area-inset-right, 0px)",r.value="env(safe-area-inset-bottom, 0px)",s.value="env(safe-area-inset-left, 0px)",u(),O("resize",v.useDebounceFn(u))}function u(){e.value=pe(rt),t.value=pe(at),n.value=pe(it),o.value=pe(ut)}return{top:e,right:t,bottom:n,left:o,update:u}}function pe(e){return getComputedStyle(document.documentElement).getPropertyValue(e)}function Wo(e,t=v.noop,n={}){const{immediate:o=!0,manual:u=!1,type:l="text/javascript",async:i=!0,crossOrigin:r,referrerPolicy:s,noModule:c,defer:f,document:d=B,attrs:g={}}=n,m=a.ref(null);let p=null;const y=w=>new Promise((S,T)=>{const _=V=>(m.value=V,S(V),V);if(!d){S(!1);return}let C=!1,k=d.querySelector(`script[src="${v.toValue(e)}"]`);k?k.hasAttribute("data-loaded")&&_(k):(k=d.createElement("script"),k.type=l,k.async=i,k.src=v.toValue(e),f&&(k.defer=f),r&&(k.crossOrigin=r),c&&(k.noModule=c),s&&(k.referrerPolicy=s),Object.entries(g).forEach(([V,D])=>k?.setAttribute(V,D)),C=!0),k.addEventListener("error",V=>T(V)),k.addEventListener("abort",V=>T(V)),k.addEventListener("load",()=>{k.setAttribute("data-loaded","true"),t(k),_(k)}),C&&(k=d.head.appendChild(k)),w||_(k)}),h=(w=!0)=>(p||(p=y(w)),p),b=()=>{if(!d)return;p=null,m.value&&(m.value=null);const w=d.querySelector(`script[src="${v.toValue(e)}"]`);w&&d.head.removeChild(w)};return o&&!u&&v.tryOnMounted(h),u||v.tryOnUnmounted(b),{scriptTag:m,load:h,unload:b}}function st(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:st(n)}}function Ho(e){const t=e||window.event,n=t.target;return st(n)?!1:t.touches.length>1?!0:(t.preventDefault&&t.preventDefault(),!1)}const Oe=new WeakMap;function Uo(e,t=!1){const n=a.ref(t);let o=null,u="";a.watch(v.toRef(e),r=>{const s=me(v.toValue(r));if(s){const c=s;if(Oe.get(c)||Oe.set(c,c.style.overflow),c.style.overflow!=="hidden"&&(u=c.style.overflow),c.style.overflow==="hidden")return n.value=!0;if(n.value)return c.style.overflow="hidden"}},{immediate:!0});const l=()=>{const r=me(v.toValue(e));!r||n.value||(v.isIOS&&(o=O(r,"touchmove",s=>{Ho(s)},{passive:!1})),r.style.overflow="hidden",n.value=!0)},i=()=>{const r=me(v.toValue(e));!r||!n.value||(v.isIOS&&o?.(),r.style.overflow=u,Oe.delete(r),n.value=!1)};return v.tryOnScopeDispose(i),a.computed({get(){return n.value},set(r){r?l():i()}})}function $o(e,t,n={}){const{window:o=I}=n;return fe(e,t,o?.sessionStorage,n)}function Bo(e={},t={}){const{navigator:n=z}=t,o=n,u=W(()=>o&&"canShare"in o);return{isSupported:u,share:async(i={})=>{if(u.value){const r={...v.toValue(e),...v.toValue(i)};let s=!0;if(r.files&&o.canShare&&(s=o.canShare({files:r.files})),s)return o.share(r)}}}}const jo=(e,t)=>e.sort(t),ye=(e,t)=>e-t;function zo(...e){var t,n,o,u;const[l]=e;let i=ye,r={};e.length===2?typeof e[1]=="object"?(r=e[1],i=(t=r.compareFn)!=null?t:ye):i=(n=e[1])!=null?n:ye:e.length>2&&(i=(o=e[1])!=null?o:ye,r=(u=e[2])!=null?u:{});const{dirty:s=!1,sortFn:c=jo}=r;return s?(a.watchEffect(()=>{const f=c(v.toValue(l),i);a.isRef(l)?l.value=f:l.splice(0,l.length,...f)}),l):a.computed(()=>c([...v.toValue(l)],i))}function qo(e={}){const{interimResults:t=!0,continuous:n=!0,maxAlternatives:o=1,window:u=I}=e,l=v.toRef(e.lang||"en-US"),i=a.ref(!1),r=a.ref(!1),s=a.ref(""),c=a.shallowRef(void 0),f=(h=!i.value)=>{i.value=h},d=()=>{i.value=!0},g=()=>{i.value=!1},m=u&&(u.SpeechRecognition||u.webkitSpeechRecognition),p=W(()=>m);let y;return p.value&&(y=new m,y.continuous=n,y.interimResults=t,y.lang=v.toValue(l),y.maxAlternatives=o,y.onstart=()=>{r.value=!1},a.watch(l,h=>{y&&!i.value&&(y.lang=h)}),y.onresult=h=>{const b=h.results[h.resultIndex],{transcript:w}=b[0];r.value=b.isFinal,s.value=w,c.value=void 0},y.onerror=h=>{c.value=h},y.onend=()=>{i.value=!1,y.lang=v.toValue(l)},a.watch(i,()=>{i.value?y.start():y.stop()})),v.tryOnScopeDispose(()=>{i.value=!1}),{isSupported:p,isListening:i,isFinal:r,recognition:y,result:s,error:c,toggle:f,start:d,stop:g}}function Go(e,t={}){const{pitch:n=1,rate:o=1,volume:u=1,window:l=I}=t,i=l&&l.speechSynthesis,r=W(()=>i),s=a.ref(!1),c=a.ref("init"),f=v.toRef(e||""),d=v.toRef(t.lang||"en-US"),g=a.shallowRef(void 0),m=(w=!s.value)=>{s.value=w},p=w=>{w.lang=v.toValue(d),w.voice=v.toValue(t.voice)||null,w.pitch=v.toValue(n),w.rate=v.toValue(o),w.volume=u,w.onstart=()=>{s.value=!0,c.value="play"},w.onpause=()=>{s.value=!1,c.value="pause"},w.onresume=()=>{s.value=!0,c.value="play"},w.onend=()=>{s.value=!1,c.value="end"},w.onerror=S=>{g.value=S}},y=a.computed(()=>{s.value=!1,c.value="init";const w=new SpeechSynthesisUtterance(f.value);return p(w),w}),h=()=>{i.cancel(),y&&i.speak(y.value)},b=()=>{i.cancel(),s.value=!1};return r.value&&(p(y.value),a.watch(d,w=>{y.value&&!s.value&&(y.value.lang=w)}),t.voice&&a.watch(t.voice,()=>{i.cancel()}),a.watch(s,()=>{s.value?i.resume():i.pause()})),v.tryOnScopeDispose(()=>{s.value=!1}),{isSupported:r,isPlaying:s,status:c,utterance:y,error:g,stop:b,toggle:m,speak:h}}function Yo(e,t){const n=a.ref(e),o=a.computed(()=>Array.isArray(n.value)?n.value:Object.keys(n.value)),u=a.ref(o.value.indexOf(t??o.value[0])),l=a.computed(()=>f(u.value)),i=a.computed(()=>u.value===0),r=a.computed(()=>u.value===o.value.length-1),s=a.computed(()=>o.value[u.value+1]),c=a.computed(()=>o.value[u.value-1]);function f(_){return Array.isArray(n.value)?n.value[_]:n.value[o.value[_]]}function d(_){if(o.value.includes(_))return f(o.value.indexOf(_))}function g(_){o.value.includes(_)&&(u.value=o.value.indexOf(_))}function m(){r.value||u.value++}function p(){i.value||u.value--}function y(_){T(_)&&g(_)}function h(_){return o.value.indexOf(_)===u.value+1}function b(_){return o.value.indexOf(_)===u.value-1}function w(_){return o.value.indexOf(_)===u.value}function S(_){return u.value<o.value.indexOf(_)}function T(_){return u.value>o.value.indexOf(_)}return{steps:n,stepNames:o,index:u,current:l,next:s,previous:c,isFirst:i,isLast:r,at:f,get:d,goTo:g,goToNext:m,goToPrevious:p,goBackTo:y,isNext:h,isPrevious:b,isCurrent:w,isBefore:S,isAfter:T}}function Xo(e,t,n,o={}){var u;const{flush:l="pre",deep:i=!0,listenToStorageChanges:r=!0,writeDefaults:s=!0,mergeDefaults:c=!1,shallow:f,window:d=I,eventFilter:g,onError:m=S=>{console.error(S)}}=o,p=v.toValue(t),y=Ne(p),h=(f?a.shallowRef:a.ref)(t),b=(u=o.serializer)!=null?u:be[y];if(!n)try{n=ce("getDefaultStorageAsync",()=>{var S;return(S=I)==null?void 0:S.localStorage})()}catch(S){m(S)}async function w(S){if(!(!n||S&&S.key!==e))try{const T=S?S.newValue:await n.getItem(e);if(T==null)h.value=p,s&&p!==null&&await n.setItem(e,await b.write(p));else if(c){const _=await b.read(T);typeof c=="function"?h.value=c(_,p):y==="object"&&!Array.isArray(_)?h.value={...p,..._}:h.value=_}else h.value=await b.read(T)}catch(T){m(T)}}return w(),d&&r&&O(d,"storage",S=>Promise.resolve().then(()=>w(S))),n&&v.watchWithFilter(h,async()=>{try{h.value==null?await n.removeItem(e):await n.setItem(e,await b.write(h.value))}catch(S){m(S)}},{flush:l,deep:i,eventFilter:g}),h}let Ko=0;function Jo(e,t={}){const n=a.ref(!1),{document:o=B,immediate:u=!0,manual:l=!1,id:i=`vueuse_styletag_${++Ko}`}=t,r=a.ref(e);let s=()=>{};const c=()=>{if(!o)return;const d=o.getElementById(i)||o.createElement("style");d.isConnected||(d.id=i,t.media&&(d.media=t.media),o.head.appendChild(d)),!n.value&&(s=a.watch(r,g=>{d.textContent=g},{immediate:!0}),n.value=!0)},f=()=>{!o||!n.value||(s(),o.head.removeChild(o.getElementById(i)),n.value=!1)};return u&&!l&&v.tryOnMounted(c),l||v.tryOnScopeDispose(f),{id:i,css:r,unload:f,load:c,isLoaded:a.readonly(n)}}function Qo(e,t={}){const{threshold:n=50,onSwipe:o,onSwipeEnd:u,onSwipeStart:l,passive:i=!0,window:r=I}=t,s=a.reactive({x:0,y:0}),c=a.reactive({x:0,y:0}),f=a.computed(()=>s.x-c.x),d=a.computed(()=>s.y-c.y),{max:g,abs:m}=Math,p=a.computed(()=>g(m(f.value),m(d.value))>=n),y=a.ref(!1),h=a.computed(()=>p.value?m(f.value)>m(d.value)?f.value>0?"left":"right":d.value>0?"up":"down":"none"),b=D=>[D.touches[0].clientX,D.touches[0].clientY],w=(D,P)=>{s.x=D,s.y=P},S=(D,P)=>{c.x=D,c.y=P};let T;const _=Zo(r?.document);i?T=_?{passive:!0}:{capture:!1}:T=_?{passive:!1,capture:!0}:{capture:!0};const C=D=>{y.value&&u?.(D,h.value),y.value=!1},k=[O(e,"touchstart",D=>{if(D.touches.length!==1)return;const[P,R]=b(D);w(P,R),S(P,R),l?.(D)},T),O(e,"touchmove",D=>{if(D.touches.length!==1)return;const[P,R]=b(D);S(P,R),T.capture&&!T.passive&&Math.abs(f.value)>Math.abs(d.value)&&D.preventDefault(),!y.value&&p.value&&(y.value=!0),y.value&&o?.(D)},T),O(e,["touchend","touchcancel"],C,T)];return{isPassiveEventSupported:_,isSwiping:y,direction:h,coordsStart:s,coordsEnd:c,lengthX:f,lengthY:d,stop:()=>k.forEach(D=>D())}}function Zo(e){if(!e)return!1;let t=!1;const n={get passive(){return t=!0,!1}};return e.addEventListener("x",v.noop,n),e.removeEventListener("x",v.noop),t}function el(){const e=a.ref([]);return e.value.set=t=>{t&&e.value.push(t)},a.onBeforeUpdate(()=>{e.value.length=0}),e}function tl(e={}){const{document:t=B,selector:n="html",observe:o=!1,initialValue:u="ltr"}=e;function l(){var r,s;return(s=(r=t?.querySelector(n))==null?void 0:r.getAttribute("dir"))!=null?s:u}const i=a.ref(l());return v.tryOnMounted(()=>i.value=l()),o&&t&&K(t.querySelector(n),()=>i.value=l(),{attributes:!0}),a.computed({get(){return i.value},set(r){var s,c;i.value=r,t&&(i.value?(s=t.querySelector(n))==null||s.setAttribute("dir",i.value):(c=t.querySelector(n))==null||c.removeAttribute("dir"))}})}function nl(e){var t;const n=(t=e.rangeCount)!=null?t:0;return Array.from({length:n},(o,u)=>e.getRangeAt(u))}function ol(e={}){const{window:t=I}=e,n=a.ref(null),o=a.computed(()=>{var r,s;return(s=(r=n.value)==null?void 0:r.toString())!=null?s:""}),u=a.computed(()=>n.value?nl(n.value):[]),l=a.computed(()=>u.value.map(r=>r.getBoundingClientRect()));function i(){n.value=null,t&&(n.value=t.getSelection())}return t&&O(t.document,"selectionchange",i),{text:o,rects:l,ranges:u,selection:n}}function ll(e){var t,n;const o=v.toRef(e?.element),u=v.toRef((t=e?.input)!=null?t:""),l=(n=e?.styleProp)!=null?n:"height",i=a.ref(1),r=a.ref(0);function s(){var c;if(!o.value)return;let f="";o.value.style[l]="1px",i.value=(c=o.value)==null?void 0:c.scrollHeight;const d=v.toValue(e?.styleTarget);d?d.style[l]=`${i.value}px`:f=`${i.value}px`,o.value.style[l]=f}return a.watch([u,o],()=>a.nextTick(s),{immediate:!0}),a.watch(i,()=>{var c;return(c=e?.onResize)==null?void 0:c.call(e)}),de(o,([{contentRect:c}])=>{r.value!==c.width&&(r.value=c.width,s())}),e?.watch&&a.watch(e.watch,s,{immediate:!0,deep:!0}),{textarea:o,input:u,triggerResize:s}}function rl(e,t={}){const{throttle:n=200,trailing:o=!0}=t,u=v.throttleFilter(n,o);return{...Ee(e,{...t,eventFilter:u})}}const al=[{max:6e4,value:1e3,name:"second"},{max:276e4,value:6e4,name:"minute"},{max:72e6,value:36e5,name:"hour"},{max:5184e5,value:864e5,name:"day"},{max:24192e5,value:6048e5,name:"week"},{max:28512e6,value:2592e6,name:"month"},{max:Number.POSITIVE_INFINITY,value:31536e6,name:"year"}],il={justNow:"just now",past:e=>e.match(/\d/)?`${e} ago`:e,future:e=>e.match(/\d/)?`in ${e}`:e,month:(e,t)=>e===1?t?"last month":"next month":`${e} month${e>1?"s":""}`,year:(e,t)=>e===1?t?"last year":"next year":`${e} year${e>1?"s":""}`,day:(e,t)=>e===1?t?"yesterday":"tomorrow":`${e} day${e>1?"s":""}`,week:(e,t)=>e===1?t?"last week":"next week":`${e} week${e>1?"s":""}`,hour:e=>`${e} hour${e>1?"s":""}`,minute:e=>`${e} minute${e>1?"s":""}`,second:e=>`${e} second${e>1?"s":""}`,invalid:""};function ul(e){return e.toISOString().slice(0,10)}function sl(e,t={}){const{controls:n=!1,updateInterval:o=3e4}=t,{now:u,...l}=tt({interval:o,controls:!0}),i=a.computed(()=>ct(new Date(v.toValue(e)),t,v.toValue(u)));return n?{timeAgo:i,...l}:i}function ct(e,t={},n=Date.now()){var o;const{max:u,messages:l=il,fullDateFormatter:i=ul,units:r=al,showSecond:s=!1,rounding:c="round"}=t,f=typeof c=="number"?h=>+h.toFixed(c):Math[c],d=+n-+e,g=Math.abs(d);function m(h,b){return f(Math.abs(h)/b.value)}function p(h,b){const w=m(h,b),S=h>0,T=y(b.name,w,S);return y(S?"past":"future",T,S)}function y(h,b,w){const S=l[h];return typeof S=="function"?S(b,w):S.replace("{0}",b.toString())}if(g<6e4&&!s)return l.justNow;if(typeof u=="number"&&g>u)return i(new Date(e));if(typeof u=="string"){const h=(o=r.find(b=>b.name===u))==null?void 0:o.max;if(h&&g>h)return i(new Date(e))}for(const[h,b]of r.entries()){if(m(d,b)<=0&&r[h-1])return p(d,r[h-1]);if(g<b.max)return p(d,b)}return l.invalid}function cl(e,t,n){const{start:o}=v.useTimeoutFn(l,t,{immediate:!1}),u=a.ref(!1);async function l(){u.value&&(await e(),o())}function i(){u.value||(u.value=!0,l())}function r(){u.value=!1}return n?.immediate&&i(),v.tryOnScopeDispose(r),{isActive:u,pause:r,resume:i}}function fl(e={}){const{controls:t=!1,offset:n=0,immediate:o=!0,interval:u="requestAnimationFrame",callback:l}=e,i=a.ref(v.timestamp()+n),r=()=>i.value=v.timestamp()+n,s=l?()=>{r(),l(i.value)}:r,c=u==="requestAnimationFrame"?G(s,{immediate:o}):v.useIntervalFn(s,u,{immediate:o});return t?{timestamp:i,...c}:i}function dl(e=null,t={}){var n,o,u;const{document:l=B,restoreOnUnmount:i=d=>d}=t,r=(n=l?.title)!=null?n:"",s=v.toRef((o=e??l?.title)!=null?o:null),c=e&&typeof e=="function";function f(d){if(!("titleTemplate"in t))return d;const g=t.titleTemplate||"%s";return typeof g=="function"?g(d):v.toValue(g).replace(/%s/g,d)}return a.watch(s,(d,g)=>{d!==g&&l&&(l.title=f(typeof d=="string"?d:""))},{immediate:!0}),t.observe&&!t.titleTemplate&&l&&!c&&K((u=l.head)==null?void 0:u.querySelector("title"),()=>{l&&l.title!==s.value&&(s.value=f(l.title))},{childList:!0}),v.tryOnBeforeUnmount(()=>{if(i){const d=i(r,s.value||"");d!=null&&l&&(l.title=d)}}),s}const vl={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]},ml=Object.assign({},{linear:v.identity},vl);function pl([e,t,n,o]){const u=(f,d)=>1-3*d+3*f,l=(f,d)=>3*d-6*f,i=f=>3*f,r=(f,d,g)=>((u(d,g)*f+l(d,g))*f+i(d))*f,s=(f,d,g)=>3*u(d,g)*f*f+2*l(d,g)*f+i(d),c=f=>{let d=f;for(let g=0;g<4;++g){const m=s(d,e,n);if(m===0)return d;const p=r(d,e,n)-f;d-=p/m}return d};return f=>e===t&&n===o?f:r(c(f),t,o)}function ft(e,t,n){return e+n*(t-e)}function _e(e){return(typeof e=="number"?[e]:e)||[]}function dt(e,t,n,o={}){var u,l;const i=v.toValue(t),r=v.toValue(n),s=_e(i),c=_e(r),f=(u=v.toValue(o.duration))!=null?u:1e3,d=Date.now(),g=Date.now()+f,m=typeof o.transition=="function"?o.transition:(l=v.toValue(o.transition))!=null?l:v.identity,p=typeof m=="function"?m:pl(m);return new Promise(y=>{e.value=i;const h=()=>{var b;if((b=o.abort)!=null&&b.call(o)){y();return}const w=Date.now(),S=p((w-d)/f),T=_e(e.value).map((_,C)=>ft(s[C],c[C],S));Array.isArray(e.value)?e.value=T.map((_,C)=>{var k,V;return ft((k=s[C])!=null?k:0,(V=c[C])!=null?V:0,S)}):typeof e.value=="number"&&(e.value=T[0]),w<g?requestAnimationFrame(h):(e.value=r,y())};h()})}function yl(e,t={}){let n=0;const o=()=>{const l=v.toValue(e);return typeof l=="number"?l:l.map(v.toValue)},u=a.ref(o());return a.watch(o,async l=>{var i,r;if(v.toValue(t.disabled))return;const s=++n;if(t.delay&&await v.promiseTimeout(v.toValue(t.delay)),s!==n)return;const c=Array.isArray(l)?l.map(v.toValue):v.toValue(l);(i=t.onStarted)==null||i.call(t),await dt(u,u.value,c,{...t,abort:()=>{var f;return s!==n||((f=t.abort)==null?void 0:f.call(t))}}),(r=t.onFinished)==null||r.call(t)},{deep:!0}),a.watch(()=>v.toValue(t.disabled),l=>{l&&(n++,u.value=o())}),v.tryOnScopeDispose(()=>{n++}),a.computed(()=>v.toValue(t.disabled)?o():u.value)}function gl(e="history",t={}){const{initialValue:n={},removeNullishValues:o=!0,removeFalsyValues:u=!1,write:l=!0,writeMode:i="replace",window:r=I}=t;if(!r)return a.reactive(n);const s=a.reactive({});function c(){if(e==="history")return r.location.search||"";if(e==="hash"){const w=r.location.hash||"",S=w.indexOf("?");return S>0?w.slice(S):""}else return(r.location.hash||"").replace(/^#/,"")}function f(w){const S=w.toString();if(e==="history")return`${S?`?${S}`:""}${r.location.hash||""}`;if(e==="hash-params")return`${r.location.search||""}${S?`#${S}`:""}`;const T=r.location.hash||"#",_=T.indexOf("?");return _>0?`${r.location.search||""}${T.slice(0,_)}${S?`?${S}`:""}`:`${r.location.search||""}${T}${S?`?${S}`:""}`}function d(){return new URLSearchParams(c())}function g(w){const S=new Set(Object.keys(s));for(const T of w.keys()){const _=w.getAll(T);s[T]=_.length>1?_:w.get(T)||"",S.delete(T)}Array.from(S).forEach(T=>delete s[T])}const{pause:m,resume:p}=v.pausableWatch(s,()=>{const w=new URLSearchParams("");Object.keys(s).forEach(S=>{const T=s[S];Array.isArray(T)?T.forEach(_=>w.append(S,_)):o&&T==null||u&&!T?w.delete(S):w.set(S,T)}),y(w,!1)},{deep:!0});function y(w,S){m(),S&&g(w),i==="replace"?r.history.replaceState(r.history.state,r.document.title,r.location.pathname+f(w)):r.history.pushState(r.history.state,r.document.title,r.location.pathname+f(w)),p()}function h(){l&&y(d(),!0)}O(r,"popstate",h,!1),e!=="history"&&O(r,"hashchange",h,!1);const b=d();return b.keys().next().value?g(b):Object.assign(s,n),s}function hl(e={}){var t,n;const o=a.ref((t=e.enabled)!=null?t:!1),u=a.ref((n=e.autoSwitch)!=null?n:!0),l=a.ref(e.constraints),{navigator:i=z}=e,r=W(()=>{var y;return(y=i?.mediaDevices)==null?void 0:y.getUserMedia}),s=a.shallowRef();function c(y){switch(y){case"video":{if(l.value)return l.value.video||!1;break}case"audio":{if(l.value)return l.value.audio||!1;break}}}async function f(){if(!(!r.value||s.value))return s.value=await i.mediaDevices.getUserMedia({video:c("video"),audio:c("audio")}),s.value}function d(){var y;(y=s.value)==null||y.getTracks().forEach(h=>h.stop()),s.value=void 0}function g(){d(),o.value=!1}async function m(){return await f(),s.value&&(o.value=!0),s.value}async function p(){return d(),await m()}return a.watch(o,y=>{y?f():d()},{immediate:!0}),a.watch(l,()=>{u.value&&s.value&&p()},{immediate:!0}),v.tryOnScopeDispose(()=>{g()}),{isSupported:r,stream:s,start:m,stop:g,restart:p,constraints:l,enabled:o,autoSwitch:u}}function vt(e,t,n,o={}){var u,l,i;const{clone:r=!1,passive:s=!1,eventName:c,deep:f=!1,defaultValue:d,shouldEmit:g}=o,m=a.getCurrentInstance(),p=n||m?.emit||((u=m?.$emit)==null?void 0:u.bind(m))||((i=(l=m?.proxy)==null?void 0:l.$emit)==null?void 0:i.bind(m?.proxy));let y=c;t||(t="modelValue"),y=y||`update:${t.toString()}`;const h=S=>r?typeof r=="function"?r(S):ee(S):S,b=()=>v.isDef(e[t])?h(e[t]):d,w=S=>{g?g(S)&&p(y,S):p(y,S)};if(s){const S=b(),T=a.ref(S);let _=!1;return a.watch(()=>e[t],C=>{_||(_=!0,T.value=h(C),a.nextTick(()=>_=!1))}),a.watch(T,C=>{!_&&(C!==e[t]||f)&&w(C)},{deep:f}),T}else return a.computed({get(){return b()},set(S){w(S)}})}function wl(e,t,n={}){const o={};for(const u in e)o[u]=vt(e,u,t,n);return o}function bl(e){const{pattern:t=[],interval:n=0,navigator:o=z}=e||{},u=W(()=>typeof o<"u"&&"vibrate"in o),l=v.toRef(t);let i;const r=(c=l.value)=>{u.value&&o.vibrate(c)},s=()=>{u.value&&o.vibrate(0),i?.pause()};return n>0&&(i=v.useIntervalFn(r,n,{immediate:!1,immediateCallback:!1})),{isSupported:u,pattern:t,intervalControls:i,vibrate:r,stop:s}}function Sl(e,t){const{containerStyle:n,wrapperProps:o,scrollTo:u,calculateRange:l,currentList:i,containerRef:r}="itemHeight"in t?kl(t,e):Tl(t,e);return{list:i,scrollTo:u,containerProps:{ref:r,onScroll:()=>{l()},style:n},wrapperProps:o}}function mt(e){const t=a.ref(null),n=je(t),o=a.ref([]),u=a.shallowRef(e);return{state:a.ref({start:0,end:10}),source:u,currentList:o,size:n,containerRef:t}}function pt(e,t,n){return o=>{if(typeof n=="number")return Math.ceil(o/n);const{start:u=0}=e.value;let l=0,i=0;for(let r=u;r<t.value.length;r++){const s=n(r);if(l+=s,i=r,l>o)break}return i-u}}function yt(e,t){return n=>{if(typeof t=="number")return Math.floor(n/t)+1;let o=0,u=0;for(let l=0;l<e.value.length;l++){const i=t(l);if(o+=i,o>=n){u=l;break}}return u+1}}function gt(e,t,n,o,{containerRef:u,state:l,currentList:i,source:r}){return()=>{const s=u.value;if(s){const c=n(e==="vertical"?s.scrollTop:s.scrollLeft),f=o(e==="vertical"?s.clientHeight:s.clientWidth),d=c-t,g=c+f+t;l.value={start:d<0?0:d,end:g>r.value.length?r.value.length:g},i.value=r.value.slice(l.value.start,l.value.end).map((m,p)=>({data:m,index:p+l.value.start}))}}}function ht(e,t){return n=>typeof e=="number"?n*e:t.value.slice(0,n).reduce((u,l,i)=>u+e(i),0)}function wt(e,t,n,o){a.watch([e.width,e.height,t,n],()=>{o()})}function bt(e,t){return a.computed(()=>typeof e=="number"?t.value.length*e:t.value.reduce((n,o,u)=>n+e(u),0))}const El={horizontal:"scrollLeft",vertical:"scrollTop"};function St(e,t,n,o){return u=>{o.value&&(o.value[El[e]]=n(u),t())}}function Tl(e,t){const n=mt(t),{state:o,source:u,currentList:l,size:i,containerRef:r}=n,s={overflowX:"auto"},{itemWidth:c,overscan:f=5}=e,d=pt(o,u,c),g=yt(u,c),m=gt("horizontal",f,g,d,n),p=ht(c,u),y=a.computed(()=>p(o.value.start)),h=bt(c,u);wt(i,t,r,m);const b=St("horizontal",m,p,r),w=a.computed(()=>({style:{height:"100%",width:`${h.value-y.value}px`,marginLeft:`${y.value}px`,display:"flex"}}));return{scrollTo:b,calculateRange:m,wrapperProps:w,containerStyle:s,currentList:l,containerRef:r}}function kl(e,t){const n=mt(t),{state:o,source:u,currentList:l,size:i,containerRef:r}=n,s={overflowY:"auto"},{itemHeight:c,overscan:f=5}=e,d=pt(o,u,c),g=yt(u,c),m=gt("vertical",f,g,d,n),p=ht(c,u),y=a.computed(()=>p(o.value.start)),h=bt(c,u);wt(i,t,r,m);const b=St("vertical",m,p,r),w=a.computed(()=>({style:{width:"100%",height:`${h.value-y.value}px`,marginTop:`${y.value}px`}}));return{calculateRange:m,scrollTo:b,containerStyle:s,wrapperProps:w,currentList:l,containerRef:r}}function Ol(e={}){const{navigator:t=z,document:n=B}=e,o=a.ref(!1),u=a.shallowRef(null),l=Be({document:n}),i=W(()=>t&&"wakeLock"in t),r=a.computed(()=>!!u.value&&l.value==="visible");i.value&&(O(u,"release",()=>{var d,g;o.value=(g=(d=u.value)==null?void 0:d.type)!=null?g:!1}),v.whenever(()=>l.value==="visible"&&n?.visibilityState==="visible"&&o.value,d=>{o.value=!1,s(d)}));async function s(d){var g;await((g=u.value)==null?void 0:g.release()),u.value=i.value?await t.wakeLock.request(d):null}async function c(d){l.value==="visible"?await s(d):o.value=d}async function f(){o.value=!1;const d=u.value;u.value=null,await d?.release()}return{sentinel:u,isSupported:i,isActive:r,request:c,forceRequest:s,release:f}}function _l(e={}){const{window:t=I,requestPermissions:n=!0}=e,o=e,u=W(()=>{if(!t||!("Notification"in t))return!1;if(Notification.permission==="granted")return!0;try{const w=new Notification("");w.onshow=()=>{w.close()}}catch(w){if(w.name==="TypeError")return!1}return!0}),l=a.ref(u.value&&"permission"in Notification&&Notification.permission==="granted"),i=a.ref(null),r=async()=>{if(u.value)return!l.value&&Notification.permission!=="denied"&&await Notification.requestPermission()==="granted"&&(l.value=!0),l.value},{on:s,trigger:c}=v.createEventHook(),{on:f,trigger:d}=v.createEventHook(),{on:g,trigger:m}=v.createEventHook(),{on:p,trigger:y}=v.createEventHook(),h=async w=>{if(!u.value||!l.value)return;const S=Object.assign({},o,w);return i.value=new Notification(S.title||"",S),i.value.onclick=c,i.value.onshow=d,i.value.onerror=m,i.value.onclose=y,i.value},b=()=>{i.value&&i.value.close(),i.value=null};if(n&&v.tryOnMounted(r),v.tryOnScopeDispose(b),u.value&&t){const w=t.document;O(w,"visibilitychange",S=>{S.preventDefault(),w.visibilityState==="visible"&&b()})}return{isSupported:u,notification:i,ensurePermissions:r,permissionGranted:l,show:h,close:b,onClick:s,onShow:f,onError:g,onClose:p}}const Et="ping";function Re(e){return e===!0?{}:e}function Rl(e,t={}){const{onConnected:n,onDisconnected:o,onError:u,onMessage:l,immediate:i=!0,autoConnect:r=!0,autoClose:s=!0,protocols:c=[]}=t,f=a.ref(null),d=a.ref("CLOSED"),g=a.ref(),m=v.toRef(e);let p,y,h=!1,b=0,w=[],S,T;const _=()=>{if(w.length&&g.value&&d.value==="OPEN"){for(const F of w)g.value.send(F);w=[]}},C=()=>{S!=null&&(clearTimeout(S),S=void 0)},k=()=>{clearTimeout(T),T=void 0},V=(F=1e3,A)=>{C(),!(!v.isClient&&!v.isWorker||!g.value)&&(h=!0,k(),p?.(),g.value.close(F,A),g.value=void 0)},D=(F,A=!0)=>!g.value||d.value!=="OPEN"?(A&&w.push(F),!1):(_(),g.value.send(F),!0),P=()=>{if(h||typeof m.value>"u")return;const F=new WebSocket(m.value,c);g.value=F,d.value="CONNECTING",F.onopen=()=>{d.value="OPEN",b=0,n?.(F),y?.(),_()},F.onclose=A=>{if(d.value="CLOSED",o?.(F,A),!h&&t.autoReconnect&&(g.value==null||F===g.value)){const{retries:L=-1,delay:H=1e3,onFailed:M}=Re(t.autoReconnect);typeof L=="number"&&(L<0||b<L)?(b+=1,S=setTimeout(P,H)):typeof L=="function"&&L()?S=setTimeout(P,H):M?.()}},F.onerror=A=>{u?.(F,A)},F.onmessage=A=>{if(t.heartbeat){k();const{message:L=Et,responseMessage:H=L}=Re(t.heartbeat);if(A.data===v.toValue(H))return}f.value=A.data,l?.(F,A)}};if(t.heartbeat){const{message:F=Et,interval:A=1e3,pongTimeout:L=1e3}=Re(t.heartbeat),{pause:H,resume:M}=v.useIntervalFn(()=>{D(v.toValue(F),!1),T==null&&(T=setTimeout(()=>{V(),h=!1},L))},A,{immediate:!1});p=H,y=M}s&&(v.isClient&&O("beforeunload",()=>V()),v.tryOnScopeDispose(V));const R=()=>{!v.isClient&&!v.isWorker||(V(),h=!1,b=0,P())};return i&&R(),r&&a.watch(m,R),{data:f,status:d,close:V,send:D,open:R,ws:g}}function Vl(e,t,n){const{window:o=I}=n??{},u=a.ref(null),l=a.shallowRef(),i=(...s)=>{l.value&&l.value.postMessage(...s)},r=function(){l.value&&l.value.terminate()};return o&&(typeof e=="string"?l.value=new Worker(e,t):typeof e=="function"?l.value=e():l.value=e,l.value.onmessage=s=>{u.value=s.data},v.tryOnScopeDispose(()=>{l.value&&l.value.terminate()})),{data:u,post:i,terminate:r,worker:l}}function Fl(e,t){if(e.length===0&&t.length===0)return"";const n=e.map(l=>`'${l}'`).toString(),o=t.filter(l=>typeof l=="function").map(l=>{const i=l.toString();return i.trim().startsWith("function")?i:`const ${l.name} = ${i}`}).join(";"),u=`importScripts(${n});`;return`${n.trim()===""?"":u} ${o}`}function Pl(e){return t=>{const n=t.data[0];return Promise.resolve(e.apply(void 0,n)).then(o=>{postMessage(["SUCCESS",o])}).catch(o=>{postMessage(["ERROR",o])})}}function Dl(e,t,n){const o=`${Fl(t,n)}; onmessage=(${Pl})(${e})`,u=new Blob([o],{type:"text/javascript"});return URL.createObjectURL(u)}function Cl(e,t={}){const{dependencies:n=[],localDependencies:o=[],timeout:u,window:l=I}=t,i=a.ref(),r=a.ref("PENDING"),s=a.ref({}),c=a.ref(),f=(p="PENDING")=>{i.value&&i.value._url&&l&&(i.value.terminate(),URL.revokeObjectURL(i.value._url),s.value={},i.value=void 0,l.clearTimeout(c.value),r.value=p)};f(),v.tryOnScopeDispose(f);const d=()=>{const p=Dl(e,n,o),y=new Worker(p);return y._url=p,y.onmessage=h=>{const{resolve:b=()=>{},reject:w=()=>{}}=s.value,[S,T]=h.data;switch(S){case"SUCCESS":b(T),f(S);break;default:w(T),f("ERROR");break}},y.onerror=h=>{const{reject:b=()=>{}}=s.value;h.preventDefault(),b(h),f("ERROR")},u&&(c.value=setTimeout(()=>f("TIMEOUT_EXPIRED"),u)),y},g=(...p)=>new Promise((y,h)=>{var b;s.value={resolve:y,reject:h},(b=i.value)==null||b.postMessage([[...p]]),r.value="RUNNING"});return{workerFn:(...p)=>r.value==="RUNNING"?(console.error("[useWebWorkerFn] You can only run one instance of the worker at a time."),Promise.reject()):(i.value=d(),g(...p)),workerStatus:r,workerTerminate:f}}function Al(e={}){const{window:t=I}=e;if(!t)return a.ref(!1);const n=a.ref(t.document.hasFocus());return O(t,"blur",()=>{n.value=!1}),O(t,"focus",()=>{n.value=!0}),n}function Ml(e={}){const{window:t=I,behavior:n="auto"}=e;if(!t)return{x:a.ref(0),y:a.ref(0)};const o=a.ref(t.scrollX),u=a.ref(t.scrollY),l=a.computed({get(){return o.value},set(r){scrollTo({left:r,behavior:n})}}),i=a.computed({get(){return u.value},set(r){scrollTo({top:r,behavior:n})}});return O(t,"scroll",()=>{o.value=t.scrollX,u.value=t.scrollY},{capture:!1,passive:!0}),{x:l,y:i}}function Il(e={}){const{window:t=I,initialWidth:n=Number.POSITIVE_INFINITY,initialHeight:o=Number.POSITIVE_INFINITY,listenOrientation:u=!0,includeScrollbar:l=!0,type:i="inner"}=e,r=a.ref(n),s=a.ref(o),c=()=>{if(t)if(i==="outer")r.value=t.outerWidth,s.value=t.outerHeight;else if(i==="visual"&&t.visualViewport){const{width:f,height:d,scale:g}=t.visualViewport;r.value=Math.round(f*g),s.value=Math.round(d*g)}else l?(r.value=t.innerWidth,s.value=t.innerHeight):(r.value=t.document.documentElement.clientWidth,s.value=t.document.documentElement.clientHeight)};if(c(),v.tryOnMounted(c),O("resize",c,{passive:!0}),t&&i==="visual"&&t.visualViewport&&O(t.visualViewport,"resize",c,{passive:!0}),u){const f=j("(orientation: portrait)");a.watch(f,()=>c())}return{width:r,height:s}}E.DefaultMagicKeysAliasMap=Je,E.StorageSerializers=be,E.TransitionPresets=ml,E.asyncComputed=Ve,E.breakpointsAntDesign=tn,E.breakpointsBootstrapV5=Qt,E.breakpointsElement=an,E.breakpointsMasterCss=ln,E.breakpointsPrimeFlex=rn,E.breakpointsQuasar=nn,E.breakpointsSematic=on,E.breakpointsTailwind=Jt,E.breakpointsVuetify=en,E.breakpointsVuetifyV2=Ae,E.breakpointsVuetifyV3=Zt,E.cloneFnJSON=ee,E.computedAsync=Ve,E.computedInject=kt,E.createFetch=$n,E.createReusableTemplate=Ot,E.createTemplatePromise=Rt,E.createUnrefFn=Vt,E.customStorageEventName=Se,E.defaultDocument=B,E.defaultLocation=Ft,E.defaultNavigator=z,E.defaultWindow=I,E.executeTransition=dt,E.formatTimeAgo=ct,E.getSSRHandler=ce,E.mapGamepadToXbox360Controller=Zn,E.onClickOutside=Pt,E.onKeyDown=Ct,E.onKeyPressed=At,E.onKeyStroke=ae,E.onKeyUp=Mt,E.onLongPress=Nt,E.onStartTyping=Ht,E.provideSSRWidth=Kt,E.setSSRHandler=yn,E.templateRef=Ut,E.unrefElement=x,E.useActiveElement=De,E.useAnimate=$t,E.useAsyncQueue=Bt,E.useAsyncState=Ce,E.useBase64=qt,E.useBattery=Yt,E.useBluetooth=Xt,E.useBreakpoints=un,E.useBroadcastChannel=sn,E.useBrowserLocation=cn,E.useCached=fn,E.useClipboard=dn,E.useClipboardItems=vn,E.useCloned=mn,E.useColorMode=xe,E.useConfirmDialog=hn,E.useCssVar=te,E.useCurrentElement=We,E.useCycleList=wn,E.useDark=bn,E.useDebouncedRefHistory=kn,E.useDeviceMotion=On,E.useDeviceOrientation=$e,E.useDevicePixelRatio=_n,E.useDevicesList=Rn,E.useDisplayMedia=Vn,E.useDocumentVisibility=Be,E.useDraggable=Fn,E.useDropZone=Pn,E.useElementBounding=Dn,E.useElementByPoint=Cn,E.useElementHover=An,E.useElementSize=je,E.useElementVisibility=qe,E.useEventBus=Mn,E.useEventListener=O,E.useEventSource=Ln,E.useEyeDropper=Nn,E.useFavicon=xn,E.useFetch=Ge,E.useFileDialog=zn,E.useFileSystemAccess=qn,E.useFocus=Gn,E.useFocusWithin=Kn,E.useFps=Jn,E.useFullscreen=Qn,E.useGamepad=eo,E.useGeolocation=to,E.useIdle=lo,E.useImage=ao,E.useInfiniteScroll=io,E.useIntersectionObserver=ze,E.useKeyModifier=so,E.useLocalStorage=co,E.useMagicKeys=fo,E.useManualRefHistory=Ue,E.useMediaControls=po,E.useMediaQuery=j,E.useMemoize=yo,E.useMemory=go,E.useMounted=Pe,E.useMouse=Qe,E.useMouseInElement=Ze,E.useMousePressed=wo,E.useMutationObserver=K,E.useNavigatorLanguage=bo,E.useNetwork=et,E.useNow=tt,E.useObjectUrl=So,E.useOffsetPagination=Eo,E.useOnline=To,E.usePageLeave=ko,E.useParallax=Oo,E.useParentElement=_o,E.usePerformanceObserver=Ro,E.usePermission=ie,E.usePointer=Fo,E.usePointerLock=Po,E.usePointerSwipe=Do,E.usePreferredColorScheme=Co,E.usePreferredContrast=Ao,E.usePreferredDark=Le,E.usePreferredLanguages=Mo,E.usePreferredReducedMotion=Io,E.usePreferredReducedTransparency=Lo,E.usePrevious=No,E.useRafFn=G,E.useRefHistory=Ee,E.useResizeObserver=de,E.useSSRWidth=we,E.useScreenOrientation=ot,E.useScreenSafeArea=xo,E.useScriptTag=Wo,E.useScroll=Ke,E.useScrollLock=Uo,E.useSessionStorage=$o,E.useShare=Bo,E.useSorted=zo,E.useSpeechRecognition=qo,E.useSpeechSynthesis=Go,E.useStepper=Yo,E.useStorage=fe,E.useStorageAsync=Xo,E.useStyleTag=Jo,E.useSupported=W,E.useSwipe=Qo,E.useTemplateRefsList=el,E.useTextDirection=tl,E.useTextSelection=ol,E.useTextareaAutosize=ll,E.useThrottledRefHistory=rl,E.useTimeAgo=sl,E.useTimeoutPoll=cl,E.useTimestamp=fl,E.useTitle=dl,E.useTransition=yl,E.useUrlSearchParams=gl,E.useUserMedia=hl,E.useVModel=vt,E.useVModels=wl,E.useVibrate=bl,E.useVirtualList=Sl,E.useWakeLock=Ol,E.useWebNotification=_l,E.useWebSocket=Rl,E.useWebWorker=Vl,E.useWebWorkerFn=Cl,E.useWindowFocus=Al,E.useWindowScroll=Ml,E.useWindowSize=Il,Object.keys(v).forEach(function(e){e!=="default"&&!Object.prototype.hasOwnProperty.call(E,e)&&Object.defineProperty(E,e,{enumerable:!0,get:function(){return v[e]}})})})(this.VueUse=this.VueUse||{},VueUse,Vue);
|
1
|
+
(function(E,S,n){"use strict";function Pe(e,t,l){let a;n.isRef(l)?a={evaluating:l}:a=l||{};const{lazy:i=!1,evaluating:o=void 0,shallow:u=!0,onError:r=S.noop}=a,s=n.ref(!i),f=u?n.shallowRef(t):n.ref(t);let c=0;return n.watchEffect(async d=>{if(!s.value)return;c++;const y=c;let m=!1;o&&Promise.resolve().then(()=>{o.value=!0});try{const p=await e(g=>{d(()=>{o&&(o.value=!1),m||g()})});y===c&&(f.value=p)}catch(p){r(p)}finally{o&&y===c&&(o.value=!1),m=!0}}),i?n.computed(()=>(s.value=!0,f.value)):f}function kt(e,t,l,a){let i=n.inject(e);return l&&(i=n.inject(e,l)),a&&(i=n.inject(e,l,a)),typeof t=="function"?n.computed(o=>t(i,o)):n.computed({get:o=>t.get(i,o),set:t.set})}function _t(e={}){const{inheritAttrs:t=!0}=e,l=n.shallowRef(),a=n.defineComponent({setup(o,{slots:u}){return()=>{l.value=u.default}}}),i=n.defineComponent({inheritAttrs:t,setup(o,{attrs:u,slots:r}){return()=>{var s;if(!l.value&&process.env.NODE_ENV!=="production")throw new Error("[VueUse] Failed to find the definition of reusable template");const f=(s=l.value)==null?void 0:s.call(l,{...Rt(u),$slots:r});return t&&f?.length===1?f[0]:f}}});return S.makeDestructurable({define:a,reuse:i},[a,i])}function Rt(e){const t={};for(const l in e)t[S.camelize(l)]=e[l];return t}function Vt(e={}){let t=0;const l=n.ref([]);function a(...u){const r=n.shallowReactive({key:t++,args:u,promise:void 0,resolve:()=>{},reject:()=>{},isResolving:!1,options:e});return l.value.push(r),r.promise=new Promise((s,f)=>{r.resolve=c=>(r.isResolving=!0,s(c)),r.reject=f}).finally(()=>{r.promise=void 0;const s=l.value.indexOf(r);s!==-1&&l.value.splice(s,1)}),r.promise}function i(...u){return e.singleton&&l.value.length>0?l.value[0].promise:a(...u)}const o=n.defineComponent((u,{slots:r})=>{const s=()=>l.value.map(f=>{var c;return n.h(n.Fragment,{key:f.key},(c=r.default)==null?void 0:c.call(r,f))});return e.transition?()=>n.h(n.TransitionGroup,e.transition,s):s});return o.start=i,o}function Ft(e){return function(...t){return e.apply(this,t.map(l=>n.toValue(l)))}}const M=S.isClient?window:void 0,j=S.isClient?window.document:void 0,q=S.isClient?window.navigator:void 0,Pt=S.isClient?window.location:void 0;function N(e){var t;const l=n.toValue(e);return(t=l?.$el)!=null?t:l}function k(...e){const t=[],l=()=>{t.forEach(r=>r()),t.length=0},a=(r,s,f,c)=>(r.addEventListener(s,f,c),()=>r.removeEventListener(s,f,c)),i=n.computed(()=>{const r=S.toArray(n.toValue(e[0])).filter(s=>s!=null);return r.every(s=>typeof s!="string")?r:void 0}),o=S.watchImmediate(()=>{var r,s;return[(s=(r=i.value)==null?void 0:r.map(f=>N(f)))!=null?s:[M].filter(f=>f!=null),S.toArray(n.toValue(i.value?e[1]:e[0])),S.toArray(n.unref(i.value?e[2]:e[1])),n.toValue(i.value?e[3]:e[2])]},([r,s,f,c])=>{if(l(),!r?.length||!s?.length||!f?.length)return;const d=S.isObject(c)?{...c}:c;t.push(...r.flatMap(y=>s.flatMap(m=>f.map(p=>a(y,m,p,d)))))},{flush:"post"}),u=()=>{o(),l()};return S.tryOnScopeDispose(l),u}let Ce=!1;function Ct(e,t,l={}){const{window:a=M,ignore:i=[],capture:o=!0,detectIframe:u=!1}=l;if(!a)return S.noop;if(S.isIOS&&!Ce){Ce=!0;const g={passive:!0};Array.from(a.document.body.children).forEach(v=>k(v,"click",S.noop,g)),k(a.document.documentElement,"click",S.noop,g)}let r=!0;const s=g=>n.toValue(i).some(v=>{if(typeof v=="string")return Array.from(a.document.querySelectorAll(v)).some(w=>w===g.target||g.composedPath().includes(w));{const w=N(v);return w&&(g.target===w||g.composedPath().includes(w))}});function f(g){const v=n.toValue(g);return v&&v.$.subTree.shapeFlag===16}function c(g,v){const w=n.toValue(g),h=w.$.subTree&&w.$.subTree.children;return h==null||!Array.isArray(h)?!1:h.some(b=>b.el===v.target||v.composedPath().includes(b.el))}const d=g=>{const v=N(e);if(g.target!=null&&!(!(v instanceof Element)&&f(e)&&c(e,g))&&!(!v||v===g.target||g.composedPath().includes(v))){if(g.detail===0&&(r=!s(g)),!r){r=!0;return}t(g)}};let y=!1;const m=[k(a,"click",g=>{y||(y=!0,setTimeout(()=>{y=!1},0),d(g))},{passive:!0,capture:o}),k(a,"pointerdown",g=>{const v=N(e);r=!s(g)&&!!(v&&!g.composedPath().includes(v))},{passive:!0}),u&&k(a,"blur",g=>{setTimeout(()=>{var v;const w=N(e);((v=a.document.activeElement)==null?void 0:v.tagName)==="IFRAME"&&!w?.contains(a.document.activeElement)&&t(g)},0)},{passive:!0})].filter(Boolean);return()=>m.forEach(g=>g())}function De(){const e=n.ref(!1),t=n.getCurrentInstance();return t&&n.onMounted(()=>{e.value=!0},t),e}function x(e){const t=De();return n.computed(()=>(t.value,!!e()))}function J(e,t,l={}){const{window:a=M,...i}=l;let o;const u=x(()=>a&&"MutationObserver"in a),r=()=>{o&&(o.disconnect(),o=void 0)},s=n.computed(()=>{const y=n.toValue(e),m=S.toArray(y).map(N).filter(S.notNullish);return new Set(m)}),f=n.watch(()=>s.value,y=>{r(),u.value&&y.size&&(o=new MutationObserver(t),y.forEach(m=>o.observe(m,i)))},{immediate:!0,flush:"post"}),c=()=>o?.takeRecords(),d=()=>{f(),r()};return S.tryOnScopeDispose(d),{isSupported:u,stop:d,takeRecords:c}}function he(e,t,l={}){const{window:a=M,document:i=a?.document,flush:o="sync"}=l;if(!a||!i)return S.noop;let u;const r=c=>{u?.(),u=c},s=n.watchEffect(()=>{const c=N(e);if(c){const{stop:d}=J(i,y=>{y.map(p=>[...p.removedNodes]).flat().some(p=>p===c||p.contains(c))&&t(y)},{window:a,childList:!0,subtree:!0});r(d)}},{flush:o}),f=()=>{s(),r()};return S.tryOnScopeDispose(f),f}function Dt(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function oe(...e){let t,l,a={};e.length===3?(t=e[0],l=e[1],a=e[2]):e.length===2?typeof e[1]=="object"?(t=!0,l=e[0],a=e[1]):(t=e[0],l=e[1]):(t=!0,l=e[0]);const{target:i=M,eventName:o="keydown",passive:u=!1,dedupe:r=!1}=a,s=Dt(t);return k(i,o,c=>{c.repeat&&n.toValue(r)||s(c)&&l(c)},u)}function At(e,t,l={}){return oe(e,t,{...l,eventName:"keydown"})}function Mt(e,t,l={}){return oe(e,t,{...l,eventName:"keypress"})}function It(e,t,l={}){return oe(e,t,{...l,eventName:"keyup"})}const Lt=500,Nt=10;function xt(e,t,l){var a,i;const o=n.computed(()=>N(e));let u,r,s,f=!1;function c(){u&&(clearTimeout(u),u=void 0),r=void 0,s=void 0,f=!1}function d(w){var h,b,O;const[_,C,T]=[s,r,f];if(c(),!l?.onMouseUp||!C||!_||(h=l?.modifiers)!=null&&h.self&&w.target!==o.value)return;(b=l?.modifiers)!=null&&b.prevent&&w.preventDefault(),(O=l?.modifiers)!=null&&O.stop&&w.stopPropagation();const V=w.x-C.x,P=w.y-C.y,I=Math.sqrt(V*V+P*P);l.onMouseUp(w.timeStamp-_,I,T)}function y(w){var h,b,O,_;(h=l?.modifiers)!=null&&h.self&&w.target!==o.value||(c(),(b=l?.modifiers)!=null&&b.prevent&&w.preventDefault(),(O=l?.modifiers)!=null&&O.stop&&w.stopPropagation(),r={x:w.x,y:w.y},s=w.timeStamp,u=setTimeout(()=>{f=!0,t(w)},(_=l?.delay)!=null?_:Lt))}function m(w){var h,b,O,_;if((h=l?.modifiers)!=null&&h.self&&w.target!==o.value||!r||l?.distanceThreshold===!1)return;(b=l?.modifiers)!=null&&b.prevent&&w.preventDefault(),(O=l?.modifiers)!=null&&O.stop&&w.stopPropagation();const C=w.x-r.x,T=w.y-r.y;Math.sqrt(C*C+T*T)>=((_=l?.distanceThreshold)!=null?_:Nt)&&c()}const p={capture:(a=l?.modifiers)==null?void 0:a.capture,once:(i=l?.modifiers)==null?void 0:i.once},g=[k(o,"pointerdown",y,p),k(o,"pointermove",m,p),k(o,["pointerup","pointerleave"],d,p)];return()=>g.forEach(w=>w())}function Wt(){const{activeElement:e,body:t}=document;if(!e||e===t)return!1;switch(e.tagName){case"INPUT":case"TEXTAREA":return!0}return e.hasAttribute("contenteditable")}function Ht({keyCode:e,metaKey:t,ctrlKey:l,altKey:a}){return t||l||a?!1:e>=48&&e<=57||e>=65&&e<=90||e>=97&&e<=122}function Ut(e,t={}){const{document:l=j}=t;l&&k(l,"keydown",i=>{!Wt()&&Ht(i)&&e(i)},{passive:!0})}function $t(e,t=null){const l=n.getCurrentInstance();let a=()=>{};const i=n.customRef((o,u)=>(a=u,{get(){var r,s;return o(),(s=(r=l?.proxy)==null?void 0:r.$refs[e])!=null?s:t},set(){}}));return S.tryOnMounted(a),n.onUpdated(a),i}function Ae(e={}){var t;const{window:l=M,deep:a=!0,triggerOnRemoval:i=!1}=e,o=(t=e.document)!=null?t:l?.document,u=()=>{var f;let c=o?.activeElement;if(a)for(;c?.shadowRoot;)c=(f=c?.shadowRoot)==null?void 0:f.activeElement;return c},r=n.ref(),s=()=>{r.value=u()};if(l){const f={capture:!0,passive:!0};k(l,"blur",c=>{c.relatedTarget===null&&s()},f),k(l,"focus",s,f)}return i&&he(r,s,{document:o}),s(),r}function Y(e,t={}){const{immediate:l=!0,fpsLimit:a=void 0,window:i=M}=t,o=n.ref(!1),u=n.computed(()=>a?1e3/n.toValue(a):null);let r=0,s=null;function f(y){if(!o.value||!i)return;r||(r=y);const m=y-r;if(u.value&&m<u.value){s=i.requestAnimationFrame(f);return}r=y,e({delta:m,timestamp:y}),s=i.requestAnimationFrame(f)}function c(){!o.value&&i&&(o.value=!0,r=0,s=i.requestAnimationFrame(f))}function d(){o.value=!1,s!=null&&i&&(i.cancelAnimationFrame(s),s=null)}return l&&c(),S.tryOnScopeDispose(d),{isActive:n.readonly(o),pause:d,resume:c}}function Bt(e,t,l){let a,i;S.isObject(l)?(a=l,i=S.objectOmit(l,["window","immediate","commitStyles","persist","onReady","onError"])):(a={duration:l},i=l);const{window:o=M,immediate:u=!0,commitStyles:r,persist:s,playbackRate:f=1,onReady:c,onError:d=A=>{console.error(A)}}=a,y=x(()=>o&&HTMLElement&&"animate"in HTMLElement.prototype),m=n.shallowRef(void 0),p=n.shallowReactive({startTime:null,currentTime:null,timeline:null,playbackRate:f,pending:!1,playState:u?"idle":"paused",replaceState:"active"}),g=n.computed(()=>p.pending),v=n.computed(()=>p.playState),w=n.computed(()=>p.replaceState),h=n.computed({get(){return p.startTime},set(A){p.startTime=A,m.value&&(m.value.startTime=A)}}),b=n.computed({get(){return p.currentTime},set(A){p.currentTime=A,m.value&&(m.value.currentTime=A,H())}}),O=n.computed({get(){return p.timeline},set(A){p.timeline=A,m.value&&(m.value.timeline=A)}}),_=n.computed({get(){return p.playbackRate},set(A){p.playbackRate=A,m.value&&(m.value.playbackRate=A)}}),C=()=>{if(m.value)try{m.value.play(),H()}catch(A){W(),d(A)}else D()},T=()=>{var A;try{(A=m.value)==null||A.pause(),W()}catch(U){d(U)}},V=()=>{var A;m.value||D();try{(A=m.value)==null||A.reverse(),H()}catch(U){W(),d(U)}},P=()=>{var A;try{(A=m.value)==null||A.finish(),W()}catch(U){d(U)}},I=()=>{var A;try{(A=m.value)==null||A.cancel(),W()}catch(U){d(U)}};n.watch(()=>N(e),A=>{A&&D()}),n.watch(()=>t,A=>{m.value&&D(),!N(e)&&m.value&&(m.value.effect=new KeyframeEffect(N(e),n.toValue(A),i))},{deep:!0}),S.tryOnMounted(()=>D(!0),!1),S.tryOnScopeDispose(I);function D(A){const U=N(e);!y.value||!U||(m.value||(m.value=U.animate(n.toValue(t),i)),s&&m.value.persist(),f!==1&&(m.value.playbackRate=f),A&&!u?m.value.pause():H(),c?.(m.value))}const R={passive:!0};k(m,["cancel","finish","remove"],W,R),k(m,"finish",()=>{var A;r&&((A=m.value)==null||A.commitStyles())},R);const{resume:F,pause:L}=Y(()=>{m.value&&(p.pending=m.value.pending,p.playState=m.value.playState,p.replaceState=m.value.replaceState,p.startTime=m.value.startTime,p.currentTime=m.value.currentTime,p.timeline=m.value.timeline,p.playbackRate=m.value.playbackRate)},{immediate:!1});function H(){y.value&&F()}function W(){y.value&&o&&o.requestAnimationFrame(L)}return{isSupported:y,animate:m,play:C,pause:T,reverse:V,finish:P,cancel:I,pending:g,playState:v,replaceState:w,startTime:h,currentTime:b,timeline:O,playbackRate:_}}function jt(e,t){const{interrupt:l=!0,onError:a=S.noop,onFinished:i=S.noop,signal:o}=t||{},u={aborted:"aborted",fulfilled:"fulfilled",pending:"pending",rejected:"rejected"},r=Array.from(Array.from({length:e.length}),()=>({state:u.pending,data:null})),s=n.reactive(r),f=n.ref(-1);if(!e||e.length===0)return i(),{activeIndex:f,result:s};function c(d,y){f.value++,s[f.value].data=y,s[f.value].state=d}return e.reduce((d,y)=>d.then(m=>{var p;if(o?.aborted){c(u.aborted,new Error("aborted"));return}if(((p=s[f.value])==null?void 0:p.state)===u.rejected&&l){i();return}const g=y(m).then(v=>(c(u.fulfilled,v),f.value===e.length-1&&i(),v));return o?Promise.race([g,zt(o)]):g}).catch(m=>o?.aborted?(c(u.aborted,m),m):(c(u.rejected,m),a(),m)),Promise.resolve()),{activeIndex:f,result:s}}function zt(e){return new Promise((t,l)=>{const a=new Error("aborted");e.aborted?l(a):e.addEventListener("abort",()=>l(a),{once:!0})})}function Me(e,t,l){const{immediate:a=!0,delay:i=0,onError:o=S.noop,onSuccess:u=S.noop,resetOnExecute:r=!0,shallow:s=!0,throwError:f}=l??{},c=s?n.shallowRef(t):n.ref(t),d=n.ref(!1),y=n.ref(!1),m=n.shallowRef(void 0);async function p(w=0,...h){r&&(c.value=t),m.value=void 0,d.value=!1,y.value=!0,w>0&&await S.promiseTimeout(w);const b=typeof e=="function"?e(...h):e;try{const O=await b;c.value=O,d.value=!0,u(O)}catch(O){if(m.value=O,o(O),f)throw O}finally{y.value=!1}return c.value}a&&p(i);const g={state:c,isReady:d,isLoading:y,error:m,execute:p};function v(){return new Promise((w,h)=>{S.until(y).toBe(!1).then(()=>w(g)).catch(h)})}return{...g,then(w,h){return v().then(w,h)}}}const ee={array:e=>JSON.stringify(e),object:e=>JSON.stringify(e),set:e=>JSON.stringify(Array.from(e)),map:e=>JSON.stringify(Object.fromEntries(e)),null:()=>""};function qt(e){return e?e instanceof Map?ee.map:e instanceof Set?ee.set:Array.isArray(e)?ee.array:ee.object:ee.null}function Gt(e,t){const l=n.ref(""),a=n.ref();function i(){if(S.isClient)return a.value=new Promise((o,u)=>{try{const r=n.toValue(e);if(r==null)o("");else if(typeof r=="string")o(ge(new Blob([r],{type:"text/plain"})));else if(r instanceof Blob)o(ge(r));else if(r instanceof ArrayBuffer)o(window.btoa(String.fromCharCode(...new Uint8Array(r))));else if(r instanceof HTMLCanvasElement)o(r.toDataURL(t?.type,t?.quality));else if(r instanceof HTMLImageElement){const s=r.cloneNode(!1);s.crossOrigin="Anonymous",Yt(s).then(()=>{const f=document.createElement("canvas"),c=f.getContext("2d");f.width=s.width,f.height=s.height,c.drawImage(s,0,0,f.width,f.height),o(f.toDataURL(t?.type,t?.quality))}).catch(u)}else if(typeof r=="object"){const f=(t?.serializer||qt(r))(r);return o(ge(new Blob([f],{type:"application/json"})))}else u(new Error("target is unsupported types"))}catch(r){u(r)}}),a.value.then(o=>{l.value=t?.dataUrl===!1?o.replace(/^data:.*?;base64,/,""):o}),a.value}return n.isRef(e)||typeof e=="function"?n.watch(e,i,{immediate:!0}):i(),{base64:l,promise:a,execute:i}}function Yt(e){return new Promise((t,l)=>{e.complete?t():(e.onload=()=>{t()},e.onerror=l)})}function ge(e){return new Promise((t,l)=>{const a=new FileReader;a.onload=i=>{t(i.target.result)},a.onerror=l,a.readAsDataURL(e)})}function Xt(e={}){const{navigator:t=q}=e,l=["chargingchange","chargingtimechange","dischargingtimechange","levelchange"],a=x(()=>t&&"getBattery"in t&&typeof t.getBattery=="function"),i=n.ref(!1),o=n.ref(0),u=n.ref(0),r=n.ref(1);let s;function f(){i.value=this.charging,o.value=this.chargingTime||0,u.value=this.dischargingTime||0,r.value=this.level}return a.value&&t.getBattery().then(c=>{s=c,f.call(s),k(s,l,f,{passive:!0})}),{isSupported:a,charging:i,chargingTime:o,dischargingTime:u,level:r}}function Kt(e){let{acceptAllDevices:t=!1}=e||{};const{filters:l=void 0,optionalServices:a=void 0,navigator:i=q}=e||{},o=x(()=>i&&"bluetooth"in i),u=n.shallowRef(),r=n.shallowRef(null);n.watch(u,()=>{y()});async function s(){if(o.value){r.value=null,l&&l.length>0&&(t=!1);try{u.value=await i?.bluetooth.requestDevice({acceptAllDevices:t,filters:l,optionalServices:a})}catch(m){r.value=m}}}const f=n.shallowRef(),c=n.shallowRef(!1);function d(){c.value=!1,u.value=void 0,f.value=void 0}async function y(){if(r.value=null,u.value&&u.value.gatt){k(u,"gattserverdisconnected",d,{passive:!0});try{f.value=await u.value.gatt.connect(),c.value=f.value.connected}catch(m){r.value=m}}}return S.tryOnMounted(()=>{var m;u.value&&((m=u.value.gatt)==null||m.connect())}),S.tryOnScopeDispose(()=>{var m;u.value&&((m=u.value.gatt)==null||m.disconnect())}),{isSupported:o,isConnected:n.readonly(c),device:u,requestDevice:s,server:f,error:r}}const we=Symbol("vueuse-ssr-width");function be(){const e=n.hasInjectionContext()?S.injectLocal(we,null):null;return typeof e=="number"?e:void 0}function Jt(e,t){t!==void 0?t.provide(we,e):S.provideLocal(we,e)}function $(e,t={}){const{window:l=M,ssrWidth:a=be()}=t,i=x(()=>l&&"matchMedia"in l&&typeof l.matchMedia=="function"),o=n.ref(typeof a=="number"),u=n.shallowRef(),r=n.ref(!1),s=f=>{r.value=f.matches};return n.watchEffect(()=>{if(o.value){o.value=!i.value;const f=n.toValue(e).split(",");r.value=f.some(c=>{const d=c.includes("not all"),y=c.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),m=c.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);let p=!!(y||m);return y&&p&&(p=a>=S.pxValue(y[1])),m&&p&&(p=a<=S.pxValue(m[1])),d?!p:p});return}i.value&&(u.value=l.matchMedia(n.toValue(e)),r.value=u.value.matches)}),k(u,"change",s,{passive:!0}),n.computed(()=>r.value)}const Qt={sm:640,md:768,lg:1024,xl:1280,"2xl":1536},Zt={xs:0,sm:576,md:768,lg:992,xl:1200,xxl:1400},Ie={xs:0,sm:600,md:960,lg:1264,xl:1904},en={xs:0,sm:600,md:960,lg:1280,xl:1920,xxl:2560},tn=Ie,nn={xs:480,sm:576,md:768,lg:992,xl:1200,xxl:1600},ln={xs:0,sm:600,md:1024,lg:1440,xl:1920},an={mobileS:320,mobileM:375,mobileL:425,tablet:768,laptop:1024,laptopL:1440,desktop4K:2560},rn={"3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560},on={sm:576,md:768,lg:992,xl:1200},un={xs:0,sm:768,md:992,lg:1200,xl:1920};function sn(e,t={}){function l(m,p){let g=n.toValue(e[n.toValue(m)]);return p!=null&&(g=S.increaseWithUnit(g,p)),typeof g=="number"&&(g=`${g}px`),g}const{window:a=M,strategy:i="min-width",ssrWidth:o=be()}=t,u=typeof o=="number",r=u?n.ref(!1):{value:!0};u&&S.tryOnMounted(()=>r.value=!!a);function s(m,p){return!r.value&&u?m==="min"?o>=S.pxValue(p):o<=S.pxValue(p):a?a.matchMedia(`(${m}-width: ${p})`).matches:!1}const f=m=>$(()=>`(min-width: ${l(m)})`,t),c=m=>$(()=>`(max-width: ${l(m)})`,t),d=Object.keys(e).reduce((m,p)=>(Object.defineProperty(m,p,{get:()=>i==="min-width"?f(p):c(p),enumerable:!0,configurable:!0}),m),{});function y(){const m=Object.keys(e).map(p=>[p,d[p],S.pxValue(l(p))]).sort((p,g)=>p[2]-g[2]);return n.computed(()=>m.filter(([,p])=>p.value).map(([p])=>p))}return Object.assign(d,{greaterOrEqual:f,smallerOrEqual:c,greater(m){return $(()=>`(min-width: ${l(m,.1)})`,t)},smaller(m){return $(()=>`(max-width: ${l(m,-.1)})`,t)},between(m,p){return $(()=>`(min-width: ${l(m)}) and (max-width: ${l(p,-.1)})`,t)},isGreater(m){return s("min",l(m,.1))},isGreaterOrEqual(m){return s("min",l(m))},isSmaller(m){return s("max",l(m,-.1))},isSmallerOrEqual(m){return s("max",l(m))},isInBetween(m,p){return s("min",l(m))&&s("max",l(p,-.1))},current:y,active(){const m=y();return n.computed(()=>m.value.length===0?"":m.value.at(i==="min-width"?-1:0))}})}function cn(e){const{name:t,window:l=M}=e,a=x(()=>l&&"BroadcastChannel"in l),i=n.ref(!1),o=n.ref(),u=n.ref(),r=n.shallowRef(null),s=c=>{o.value&&o.value.postMessage(c)},f=()=>{o.value&&o.value.close(),i.value=!0};return a.value&&S.tryOnMounted(()=>{r.value=null,o.value=new BroadcastChannel(t);const c={passive:!0};k(o,"message",d=>{u.value=d.data},c),k(o,"messageerror",d=>{r.value=d},c),k(o,"close",()=>{i.value=!0},c)}),S.tryOnScopeDispose(()=>{f()}),{isSupported:a,channel:o,data:u,post:s,close:f,error:r,isClosed:i}}const Le=["hash","host","hostname","href","pathname","port","protocol","search"];function fn(e={}){const{window:t=M}=e,l=Object.fromEntries(Le.map(o=>[o,n.ref()]));for(const[o,u]of S.objectEntries(l))n.watch(u,r=>{!t?.location||t.location[o]===r||(t.location[o]=r)});const a=o=>{var u;const{state:r,length:s}=t?.history||{},{origin:f}=t?.location||{};for(const c of Le)l[c].value=(u=t?.location)==null?void 0:u[c];return n.reactive({trigger:o,state:r,length:s,origin:f,...l})},i=n.ref(a("load"));if(t){const o={passive:!0};k(t,"popstate",()=>i.value=a("popstate"),o),k(t,"hashchange",()=>i.value=a("hashchange"),o)}return i}function dn(e,t=(a,i)=>a===i,l){const a=n.ref(e.value);return n.watch(()=>e.value,i=>{t(i,a.value)||(a.value=i)},l),a}function ie(e,t={}){const{controls:l=!1,navigator:a=q}=t,i=x(()=>a&&"permissions"in a),o=n.shallowRef(),u=typeof e=="string"?{name:e}:e,r=n.shallowRef(),s=()=>{var c,d;r.value=(d=(c=o.value)==null?void 0:c.state)!=null?d:"prompt"};k(o,"change",s,{passive:!0});const f=S.createSingletonPromise(async()=>{if(i.value){if(!o.value)try{o.value=await a.permissions.query(u)}catch{o.value=void 0}finally{s()}if(l)return n.toRaw(o.value)}});return f(),l?{state:r,isSupported:i,query:f}:r}function mn(e={}){const{navigator:t=q,read:l=!1,source:a,copiedDuring:i=1500,legacy:o=!1}=e,u=x(()=>t&&"clipboard"in t),r=ie("clipboard-read"),s=ie("clipboard-write"),f=n.computed(()=>u.value||o),c=n.ref(""),d=n.ref(!1),y=S.useTimeoutFn(()=>d.value=!1,i,{immediate:!1});function m(){let h=!(u.value&&w(r.value));if(!h)try{t.clipboard.readText().then(b=>{c.value=b})}catch{h=!0}h&&(c.value=v())}f.value&&l&&k(["copy","cut"],m,{passive:!0});async function p(h=n.toValue(a)){if(f.value&&h!=null){let b=!(u.value&&w(s.value));if(!b)try{await t.clipboard.writeText(h)}catch{b=!0}b&&g(h),c.value=h,d.value=!0,y.start()}}function g(h){const b=document.createElement("textarea");b.value=h??"",b.style.position="absolute",b.style.opacity="0",document.body.appendChild(b),b.select(),document.execCommand("copy"),b.remove()}function v(){var h,b,O;return(O=(b=(h=document?.getSelection)==null?void 0:h.call(document))==null?void 0:b.toString())!=null?O:""}function w(h){return h==="granted"||h==="prompt"}return{isSupported:f,text:c,copied:d,copy:p}}function pn(e={}){const{navigator:t=q,read:l=!1,source:a,copiedDuring:i=1500}=e,o=x(()=>t&&"clipboard"in t),u=n.ref([]),r=n.ref(!1),s=S.useTimeoutFn(()=>r.value=!1,i,{immediate:!1});function f(){o.value&&t.clipboard.read().then(d=>{u.value=d})}o.value&&l&&k(["copy","cut"],f,{passive:!0});async function c(d=n.toValue(a)){o.value&&d!=null&&(await t.clipboard.write(d),u.value=d,r.value=!0,s.start())}return{isSupported:o,content:u,copied:r,copy:c}}function te(e){return JSON.parse(JSON.stringify(e))}function vn(e,t={}){const l=n.ref({}),a=n.ref(!1);let i=!1;const{manual:o,clone:u=te,deep:r=!0,immediate:s=!0}=t;n.watch(l,()=>{if(i){i=!1;return}a.value=!0},{deep:!0,flush:"sync"});function f(){i=!0,a.value=!1,l.value=u(n.toValue(e))}return!o&&(n.isRef(e)||typeof e=="function")?n.watch(e,f,{...t,deep:r,immediate:s}):f(),{cloned:l,isModified:a,sync:f}}const ue=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},se="__vueuse_ssr_handlers__",Ne=yn();function yn(){return se in ue||(ue[se]=ue[se]||{}),ue[se]}function ce(e,t){return Ne[e]||t}function hn(e,t){Ne[e]=t}function xe(e){return $("(prefers-color-scheme: dark)",e)}function We(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 Se={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()}},Ee="vueuse-storage";function fe(e,t,l,a={}){var i;const{flush:o="pre",deep:u=!0,listenToStorageChanges:r=!0,writeDefaults:s=!0,mergeDefaults:f=!1,shallow:c,window:d=M,eventFilter:y,onError:m=D=>{console.error(D)},initOnMounted:p}=a,g=(c?n.shallowRef:n.ref)(typeof t=="function"?t():t),v=n.computed(()=>n.toValue(e));if(!l)try{l=ce("getDefaultStorage",()=>{var D;return(D=M)==null?void 0:D.localStorage})()}catch(D){m(D)}if(!l)return g;const w=n.toValue(t),h=We(w),b=(i=a.serializer)!=null?i:Se[h],{pause:O,resume:_}=S.pausableWatch(g,()=>T(g.value),{flush:o,deep:u,eventFilter:y});n.watch(v,()=>P(),{flush:o}),d&&r&&S.tryOnMounted(()=>{l instanceof Storage?k(d,"storage",P,{passive:!0}):k(d,Ee,I),p&&P()}),p||P();function C(D,R){if(d){const F={key:v.value,oldValue:D,newValue:R,storageArea:l};d.dispatchEvent(l instanceof Storage?new StorageEvent("storage",F):new CustomEvent(Ee,{detail:F}))}}function T(D){try{const R=l.getItem(v.value);if(D==null)C(R,null),l.removeItem(v.value);else{const F=b.write(D);R!==F&&(l.setItem(v.value,F),C(R,F))}}catch(R){m(R)}}function V(D){const R=D?D.newValue:l.getItem(v.value);if(R==null)return s&&w!=null&&l.setItem(v.value,b.write(w)),w;if(!D&&f){const F=b.read(R);return typeof f=="function"?f(F,w):h==="object"&&!Array.isArray(F)?{...w,...F}:F}else return typeof R!="string"?R:b.read(R)}function P(D){if(!(D&&D.storageArea!==l)){if(D&&D.key==null){g.value=w;return}if(!(D&&D.key!==v.value)){O();try{D?.newValue!==b.write(g.value)&&(g.value=V(D))}catch(R){m(R)}finally{D?n.nextTick(_):_()}}}}function I(D){P(D.detail)}return g}const gn="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function He(e={}){const{selector:t="html",attribute:l="class",initialValue:a="auto",window:i=M,storage:o,storageKey:u="vueuse-color-scheme",listenToStorageChanges:r=!0,storageRef:s,emitAuto:f,disableTransition:c=!0}=e,d={auto:"",light:"light",dark:"dark",...e.modes||{}},y=xe({window:i}),m=n.computed(()=>y.value?"dark":"light"),p=s||(u==null?S.toRef(a):fe(u,a,o,{window:i,listenToStorageChanges:r})),g=n.computed(()=>p.value==="auto"?m.value:p.value),v=ce("updateHTMLAttrs",(O,_,C)=>{const T=typeof O=="string"?i?.document.querySelector(O):N(O);if(!T)return;const V=new Set,P=new Set;let I=null;if(_==="class"){const R=C.split(/\s/g);Object.values(d).flatMap(F=>(F||"").split(/\s/g)).filter(Boolean).forEach(F=>{R.includes(F)?V.add(F):P.add(F)})}else I={key:_,value:C};if(V.size===0&&P.size===0&&I===null)return;let D;c&&(D=i.document.createElement("style"),D.appendChild(document.createTextNode(gn)),i.document.head.appendChild(D));for(const R of V)T.classList.add(R);for(const R of P)T.classList.remove(R);I&&T.setAttribute(I.key,I.value),c&&(i.getComputedStyle(D).opacity,document.head.removeChild(D))});function w(O){var _;v(t,l,(_=d[O])!=null?_:O)}function h(O){e.onChanged?e.onChanged(O,w):w(O)}n.watch(g,h,{flush:"post",immediate:!0}),S.tryOnMounted(()=>h(g.value));const b=n.computed({get(){return f?p.value:g.value},set(O){p.value=O}});return Object.assign(b,{store:p,system:m,state:g})}function wn(e=n.ref(!1)){const t=S.createEventHook(),l=S.createEventHook(),a=S.createEventHook();let i=S.noop;const o=s=>(a.trigger(s),e.value=!0,new Promise(f=>{i=f})),u=s=>{e.value=!1,t.trigger(s),i({data:s,isCanceled:!1})},r=s=>{e.value=!1,l.trigger(s),i({data:s,isCanceled:!0})};return{isRevealed:n.computed(()=>e.value),reveal:o,confirm:u,cancel:r,onReveal:a.on,onConfirm:t.on,onCancel:l.on}}function bn(e,t){var l,a;const i=n.ref(n.toValue(e)),o=S.useIntervalFn(()=>{var c,d;const y=i.value-1;i.value=y<0?0:y,(c=t?.onTick)==null||c.call(t),i.value<=0&&(o.pause(),(d=t?.onComplete)==null||d.call(t))},(l=t?.interval)!=null?l:1e3,{immediate:(a=t?.immediate)!=null?a:!1}),u=()=>{i.value=n.toValue(e)},r=()=>{o.pause(),u()},s=()=>{o.isActive.value||i.value>0&&o.resume()};return{remaining:i,reset:u,stop:r,start:()=>{u(),o.resume()},pause:o.pause,resume:s,isActive:o.isActive}}function ne(e,t,l={}){const{window:a=M,initialValue:i,observe:o=!1}=l,u=n.ref(i),r=n.computed(()=>{var f;return N(t)||((f=a?.document)==null?void 0:f.documentElement)});function s(){var f;const c=n.toValue(e),d=n.toValue(r);if(d&&a&&c){const y=(f=a.getComputedStyle(d).getPropertyValue(c))==null?void 0:f.trim();u.value=y||i}}return o&&J(r,s,{attributeFilter:["style","class"],window:a}),n.watch([r,()=>n.toValue(e)],(f,c)=>{c[0]&&c[1]&&c[0].style.removeProperty(c[1]),s()},{immediate:!0}),n.watch(u,f=>{var c;const d=n.toValue(e);(c=r.value)!=null&&c.style&&d&&(f==null?r.value.style.removeProperty(d):r.value.style.setProperty(d,f))}),u}function Ue(e){const t=n.getCurrentInstance(),l=S.computedWithControl(()=>null,()=>e?N(e):t.proxy.$el);return n.onUpdated(l.trigger),n.onMounted(l.trigger),l}function Sn(e,t){const l=n.shallowRef(f()),a=S.toRef(e),i=n.computed({get(){var c;const d=a.value;let y=t?.getIndexOf?t.getIndexOf(l.value,d):d.indexOf(l.value);return y<0&&(y=(c=t?.fallbackIndex)!=null?c:0),y},set(c){o(c)}});function o(c){const d=a.value,y=d.length,m=(c%y+y)%y,p=d[m];return l.value=p,p}function u(c=1){return o(i.value+c)}function r(c=1){return u(c)}function s(c=1){return u(-c)}function f(){var c,d;return(d=n.toValue((c=t?.initialValue)!=null?c:n.toValue(e)[0]))!=null?d:void 0}return n.watch(a,()=>o(i.value)),{state:l,index:i,next:r,prev:s,go:o}}function En(e={}){const{valueDark:t="dark",valueLight:l=""}=e,a=He({...e,onChanged:(u,r)=>{var s;e.onChanged?(s=e.onChanged)==null||s.call(e,u==="dark",r,u):r(u)},modes:{dark:t,light:l}}),i=n.computed(()=>a.system.value);return n.computed({get(){return a.value==="dark"},set(u){const r=u?"dark":"light";i.value===r?a.value="auto":a.value=r}})}function $e(e){return e}function Tn(e,t){return e.value=t}function On(e){return e?typeof e=="function"?e:te:$e}function kn(e){return e?typeof e=="function"?e:te:$e}function Be(e,t={}){const{clone:l=!1,dump:a=On(l),parse:i=kn(l),setSource:o=Tn}=t;function u(){return n.markRaw({snapshot:a(e.value),timestamp:S.timestamp()})}const r=n.ref(u()),s=n.ref([]),f=n.ref([]),c=b=>{o(e,i(b.snapshot)),r.value=b},d=()=>{s.value.unshift(r.value),r.value=u(),t.capacity&&s.value.length>t.capacity&&s.value.splice(t.capacity,Number.POSITIVE_INFINITY),f.value.length&&f.value.splice(0,f.value.length)},y=()=>{s.value.splice(0,s.value.length),f.value.splice(0,f.value.length)},m=()=>{const b=s.value.shift();b&&(f.value.unshift(r.value),c(b))},p=()=>{const b=f.value.shift();b&&(s.value.unshift(r.value),c(b))},g=()=>{c(r.value)},v=n.computed(()=>[r.value,...s.value]),w=n.computed(()=>s.value.length>0),h=n.computed(()=>f.value.length>0);return{source:e,undoStack:s,redoStack:f,last:r,history:v,canUndo:w,canRedo:h,clear:y,commit:d,reset:g,undo:m,redo:p}}function Te(e,t={}){const{deep:l=!1,flush:a="pre",eventFilter:i}=t,{eventFilter:o,pause:u,resume:r,isActive:s}=S.pausableFilter(i),{ignoreUpdates:f,ignorePrevAsyncUpdates:c,stop:d}=S.watchIgnorable(e,v,{deep:l,flush:a,eventFilter:o});function y(O,_){c(),f(()=>{O.value=_})}const m=Be(e,{...t,clone:t.clone||l,setSource:y}),{clear:p,commit:g}=m;function v(){c(),g()}function w(O){r(),O&&v()}function h(O){let _=!1;const C=()=>_=!0;f(()=>{O(C)}),_||v()}function b(){d(),p()}return{...m,isTracking:s,pause:u,resume:w,commit:v,batch:h,dispose:b}}function _n(e,t={}){const l=t.debounce?S.debounceFilter(t.debounce):void 0;return{...Te(e,{...t,eventFilter:l})}}function Rn(e={}){const{window:t=M,requestPermissions:l=!1,eventFilter:a=S.bypassFilter}=e,i=x(()=>typeof DeviceMotionEvent<"u"),o=x(()=>i.value&&"requestPermission"in DeviceMotionEvent&&typeof DeviceMotionEvent.requestPermission=="function"),u=n.ref(!1),r=n.ref({x:null,y:null,z:null}),s=n.ref({alpha:null,beta:null,gamma:null}),f=n.ref(0),c=n.ref({x:null,y:null,z:null});function d(){if(t){const m=S.createFilterWrapper(a,p=>{var g,v,w,h,b,O,_,C,T;r.value={x:((g=p.acceleration)==null?void 0:g.x)||null,y:((v=p.acceleration)==null?void 0:v.y)||null,z:((w=p.acceleration)==null?void 0:w.z)||null},c.value={x:((h=p.accelerationIncludingGravity)==null?void 0:h.x)||null,y:((b=p.accelerationIncludingGravity)==null?void 0:b.y)||null,z:((O=p.accelerationIncludingGravity)==null?void 0:O.z)||null},s.value={alpha:((_=p.rotationRate)==null?void 0:_.alpha)||null,beta:((C=p.rotationRate)==null?void 0:C.beta)||null,gamma:((T=p.rotationRate)==null?void 0:T.gamma)||null},f.value=p.interval});k(t,"devicemotion",m,{passive:!0})}}const y=async()=>{if(o.value||(u.value=!0),!u.value&&o.value){const m=DeviceMotionEvent.requestPermission;try{await m()==="granted"&&(u.value=!0,d())}catch(p){console.error(p)}}};return i.value&&(l&&o.value?y().then(()=>d()):d()),{acceleration:r,accelerationIncludingGravity:c,rotationRate:s,interval:f,isSupported:i,requirePermissions:o,ensurePermissions:y,permissionGranted:u}}function je(e={}){const{window:t=M}=e,l=x(()=>t&&"DeviceOrientationEvent"in t),a=n.ref(!1),i=n.ref(null),o=n.ref(null),u=n.ref(null);return t&&l.value&&k(t,"deviceorientation",r=>{a.value=r.absolute,i.value=r.alpha,o.value=r.beta,u.value=r.gamma},{passive:!0}),{isSupported:l,isAbsolute:a,alpha:i,beta:o,gamma:u}}function Vn(e={}){const{window:t=M}=e,l=n.ref(1),a=$(()=>`(resolution: ${l.value}dppx)`,e);let i=S.noop;return t&&(i=S.watchImmediate(a,()=>l.value=t.devicePixelRatio)),{pixelRatio:n.readonly(l),stop:i}}function Fn(e={}){const{navigator:t=q,requestPermissions:l=!1,constraints:a={audio:!0,video:!0},onUpdated:i}=e,o=n.ref([]),u=n.computed(()=>o.value.filter(p=>p.kind==="videoinput")),r=n.computed(()=>o.value.filter(p=>p.kind==="audioinput")),s=n.computed(()=>o.value.filter(p=>p.kind==="audiooutput")),f=x(()=>t&&t.mediaDevices&&t.mediaDevices.enumerateDevices),c=n.ref(!1);let d;async function y(){f.value&&(o.value=await t.mediaDevices.enumerateDevices(),i?.(o.value),d&&(d.getTracks().forEach(p=>p.stop()),d=null))}async function m(){if(!f.value)return!1;if(c.value)return!0;const{state:p,query:g}=ie("camera",{controls:!0});if(await g(),p.value!=="granted"){let v=!0;try{d=await t.mediaDevices.getUserMedia(a)}catch{d=null,v=!1}y(),c.value=v}else c.value=!0;return c.value}return f.value&&(l&&m(),k(t.mediaDevices,"devicechange",y,{passive:!0}),y()),{devices:o,ensurePermissions:m,permissionGranted:c,videoInputs:u,audioInputs:r,audioOutputs:s,isSupported:f}}function Pn(e={}){var t;const l=n.ref((t=e.enabled)!=null?t:!1),a=e.video,i=e.audio,{navigator:o=q}=e,u=x(()=>{var m;return(m=o?.mediaDevices)==null?void 0:m.getDisplayMedia}),r={audio:i,video:a},s=n.shallowRef();async function f(){var m;if(!(!u.value||s.value))return s.value=await o.mediaDevices.getDisplayMedia(r),(m=s.value)==null||m.getTracks().forEach(p=>k(p,"ended",d,{passive:!0})),s.value}async function c(){var m;(m=s.value)==null||m.getTracks().forEach(p=>p.stop()),s.value=void 0}function d(){c(),l.value=!1}async function y(){return await f(),s.value&&(l.value=!0),s.value}return n.watch(l,m=>{m?f():c()},{immediate:!0}),{isSupported:u,stream:s,start:y,stop:d,enabled:l}}function ze(e={}){const{document:t=j}=e;if(!t)return n.ref("visible");const l=n.ref(t.visibilityState);return k(t,"visibilitychange",()=>{l.value=t.visibilityState},{passive:!0}),l}function Cn(e,t={}){var l;const{pointerTypes:a,preventDefault:i,stopPropagation:o,exact:u,onMove:r,onEnd:s,onStart:f,initialValue:c,axis:d="both",draggingElement:y=M,containerElement:m,handle:p=e,buttons:g=[0]}=t,v=n.ref((l=n.toValue(c))!=null?l:{x:0,y:0}),w=n.ref(),h=T=>a?a.includes(T.pointerType):!0,b=T=>{n.toValue(i)&&T.preventDefault(),n.toValue(o)&&T.stopPropagation()},O=T=>{var V;if(!n.toValue(g).includes(T.button)||n.toValue(t.disabled)||!h(T)||n.toValue(u)&&T.target!==n.toValue(e))return;const P=n.toValue(m),I=(V=P?.getBoundingClientRect)==null?void 0:V.call(P),D=n.toValue(e).getBoundingClientRect(),R={x:T.clientX-(P?D.left-I.left+P.scrollLeft:D.left),y:T.clientY-(P?D.top-I.top+P.scrollTop:D.top)};f?.(R,T)!==!1&&(w.value=R,b(T))},_=T=>{if(n.toValue(t.disabled)||!h(T)||!w.value)return;const V=n.toValue(m),P=n.toValue(e).getBoundingClientRect();let{x:I,y:D}=v.value;(d==="x"||d==="both")&&(I=T.clientX-w.value.x,V&&(I=Math.min(Math.max(0,I),V.scrollWidth-P.width))),(d==="y"||d==="both")&&(D=T.clientY-w.value.y,V&&(D=Math.min(Math.max(0,D),V.scrollHeight-P.height))),v.value={x:I,y:D},r?.(v.value,T),b(T)},C=T=>{n.toValue(t.disabled)||!h(T)||w.value&&(w.value=void 0,s?.(v.value,T),b(T))};if(S.isClient){const T=()=>{var V;return{capture:(V=t.capture)!=null?V:!0,passive:!n.toValue(i)}};k(p,"pointerdown",O,T),k(y,"pointermove",_,T),k(y,"pointerup",C,T)}return{...S.toRefs(v),position:v,isDragging:n.computed(()=>!!w.value),style:n.computed(()=>`left:${v.value.x}px;top:${v.value.y}px;`)}}function Dn(e,t={}){var l,a;const i=n.ref(!1),o=n.shallowRef(null);let u=0,r=!0;if(S.isClient){const s=typeof t=="function"?{onDrop:t}:t,f=(l=s.multiple)!=null?l:!0,c=(a=s.preventDefaultForUnhandled)!=null?a:!1,d=v=>{var w,h;const b=Array.from((h=(w=v.dataTransfer)==null?void 0:w.files)!=null?h:[]);return b.length===0?null:f?b:[b[0]]},y=v=>{const w=n.unref(s.dataTypes);return typeof w=="function"?w(v):w?.length?v.length===0?!1:v.every(h=>w.some(b=>h.includes(b))):!0},m=v=>{const w=Array.from(v??[]).map(O=>O.type),h=y(w),b=f||v.length<=1;return h&&b},p=()=>/^(?:(?!chrome|android).)*safari/i.test(navigator.userAgent)&&!("chrome"in window),g=(v,w)=>{var h,b,O,_,C,T;const V=(h=v.dataTransfer)==null?void 0:h.items;if(r=(b=V&&m(V))!=null?b:!1,c&&v.preventDefault(),!p()&&!r){v.dataTransfer&&(v.dataTransfer.dropEffect="none");return}v.preventDefault(),v.dataTransfer&&(v.dataTransfer.dropEffect="copy");const P=d(v);switch(w){case"enter":u+=1,i.value=!0,(O=s.onEnter)==null||O.call(s,null,v);break;case"over":(_=s.onOver)==null||_.call(s,null,v);break;case"leave":u-=1,u===0&&(i.value=!1),(C=s.onLeave)==null||C.call(s,null,v);break;case"drop":u=0,i.value=!1,r&&(o.value=P,(T=s.onDrop)==null||T.call(s,P,v));break}};k(e,"dragenter",v=>g(v,"enter")),k(e,"dragover",v=>g(v,"over")),k(e,"dragleave",v=>g(v,"leave")),k(e,"drop",v=>g(v,"drop"))}return{files:o,isOverDropZone:i}}function de(e,t,l={}){const{window:a=M,...i}=l;let o;const u=x(()=>a&&"ResizeObserver"in a),r=()=>{o&&(o.disconnect(),o=void 0)},s=n.computed(()=>{const d=n.toValue(e);return Array.isArray(d)?d.map(y=>N(y)):[N(d)]}),f=n.watch(s,d=>{if(r(),u.value&&a){o=new ResizeObserver(t);for(const y of d)y&&o.observe(y,i)}},{immediate:!0,flush:"post"}),c=()=>{r(),f()};return S.tryOnScopeDispose(c),{isSupported:u,stop:c}}function An(e,t={}){const{reset:l=!0,windowResize:a=!0,windowScroll:i=!0,immediate:o=!0,updateTiming:u="sync"}=t,r=n.ref(0),s=n.ref(0),f=n.ref(0),c=n.ref(0),d=n.ref(0),y=n.ref(0),m=n.ref(0),p=n.ref(0);function g(){const w=N(e);if(!w){l&&(r.value=0,s.value=0,f.value=0,c.value=0,d.value=0,y.value=0,m.value=0,p.value=0);return}const h=w.getBoundingClientRect();r.value=h.height,s.value=h.bottom,f.value=h.left,c.value=h.right,d.value=h.top,y.value=h.width,m.value=h.x,p.value=h.y}function v(){u==="sync"?g():u==="next-frame"&&requestAnimationFrame(()=>g())}return de(e,v),n.watch(()=>N(e),w=>!w&&v()),J(e,v,{attributeFilter:["style","class"]}),i&&k("scroll",v,{capture:!0,passive:!0}),a&&k("resize",v,{passive:!0}),S.tryOnMounted(()=>{o&&v()}),{height:r,bottom:s,left:f,right:c,top:d,width:y,x:m,y:p,update:v}}function Mn(e){const{x:t,y:l,document:a=j,multiple:i,interval:o="requestAnimationFrame",immediate:u=!0}=e,r=x(()=>n.toValue(i)?a&&"elementsFromPoint"in a:a&&"elementFromPoint"in a),s=n.ref(null),f=()=>{var d,y;s.value=n.toValue(i)?(d=a?.elementsFromPoint(n.toValue(t),n.toValue(l)))!=null?d:[]:(y=a?.elementFromPoint(n.toValue(t),n.toValue(l)))!=null?y:null},c=o==="requestAnimationFrame"?Y(f,{immediate:u}):S.useIntervalFn(f,o,{immediate:u});return{isSupported:r,element:s,...c}}function In(e,t={}){const{delayEnter:l=0,delayLeave:a=0,triggerOnRemoval:i=!1,window:o=M}=t,u=n.ref(!1);let r;const s=f=>{const c=f?l:a;r&&(clearTimeout(r),r=void 0),c?r=setTimeout(()=>u.value=f,c):u.value=f};return o&&(k(e,"mouseenter",()=>s(!0),{passive:!0}),k(e,"mouseleave",()=>s(!1),{passive:!0}),i&&he(n.computed(()=>N(e)),()=>s(!1))),u}function qe(e,t={width:0,height:0},l={}){const{window:a=M,box:i="content-box"}=l,o=n.computed(()=>{var d,y;return(y=(d=N(e))==null?void 0:d.namespaceURI)==null?void 0:y.includes("svg")}),u=n.ref(t.width),r=n.ref(t.height),{stop:s}=de(e,([d])=>{const y=i==="border-box"?d.borderBoxSize:i==="content-box"?d.contentBoxSize:d.devicePixelContentBoxSize;if(a&&o.value){const m=N(e);if(m){const p=m.getBoundingClientRect();u.value=p.width,r.value=p.height}}else if(y){const m=S.toArray(y);u.value=m.reduce((p,{inlineSize:g})=>p+g,0),r.value=m.reduce((p,{blockSize:g})=>p+g,0)}else u.value=d.contentRect.width,r.value=d.contentRect.height},l);S.tryOnMounted(()=>{const d=N(e);d&&(u.value="offsetWidth"in d?d.offsetWidth:t.width,r.value="offsetHeight"in d?d.offsetHeight:t.height)});const f=n.watch(()=>N(e),d=>{u.value=d?t.width:0,r.value=d?t.height:0});function c(){s(),f()}return{width:u,height:r,stop:c}}function Ge(e,t,l={}){const{root:a,rootMargin:i="0px",threshold:o=0,window:u=M,immediate:r=!0}=l,s=x(()=>u&&"IntersectionObserver"in u),f=n.computed(()=>{const p=n.toValue(e);return S.toArray(p).map(N).filter(S.notNullish)});let c=S.noop;const d=n.ref(r),y=s.value?n.watch(()=>[f.value,N(a),d.value],([p,g])=>{if(c(),!d.value||!p.length)return;const v=new IntersectionObserver(t,{root:N(g),rootMargin:i,threshold:o});p.forEach(w=>w&&v.observe(w)),c=()=>{v.disconnect(),c=S.noop}},{immediate:r,flush:"post"}):S.noop,m=()=>{c(),y(),d.value=!1};return S.tryOnScopeDispose(m),{isSupported:s,isActive:d,pause(){c(),d.value=!1},resume(){d.value=!0},stop:m}}function Ye(e,t={}){const{window:l=M,scrollTarget:a,threshold:i=0,rootMargin:o}=t,u=n.ref(!1);return Ge(e,r=>{let s=u.value,f=0;for(const c of r)c.time>=f&&(f=c.time,s=c.isIntersecting);u.value=s},{root:a,window:l,threshold:i,rootMargin:n.toValue(o)}),u}const le=new Map;function Ln(e){const t=n.getCurrentScope();function l(r){var s;const f=le.get(e)||new Set;f.add(r),le.set(e,f);const c=()=>i(r);return(s=t?.cleanups)==null||s.push(c),c}function a(r){function s(...f){i(s),r(...f)}return l(s)}function i(r){const s=le.get(e);s&&(s.delete(r),s.size||o())}function o(){le.delete(e)}function u(r,s){var f;(f=le.get(e))==null||f.forEach(c=>c(r,s))}return{on:l,once:a,off:i,emit:u,reset:o}}function Nn(e){return e===!0?{}:e}function xn(e,t=[],l={}){const a=n.ref(null),i=n.ref(null),o=n.ref("CONNECTING"),u=n.ref(null),r=n.shallowRef(null),s=S.toRef(e),f=n.shallowRef(null);let c=!1,d=0;const{withCredentials:y=!1,immediate:m=!0,autoConnect:p=!0,autoReconnect:g}=l,v=()=>{S.isClient&&u.value&&(u.value.close(),u.value=null,o.value="CLOSED",c=!0)},w=()=>{if(c||typeof s.value>"u")return;const b=new EventSource(s.value,{withCredentials:y});o.value="CONNECTING",u.value=b,b.onopen=()=>{o.value="OPEN",r.value=null},b.onerror=O=>{if(o.value="CLOSED",r.value=O,b.readyState===2&&!c&&g){b.close();const{retries:_=-1,delay:C=1e3,onFailed:T}=Nn(g);d+=1,typeof _=="number"&&(_<0||d<_)||typeof _=="function"&&_()?setTimeout(w,C):T?.()}},b.onmessage=O=>{a.value=null,i.value=O.data,f.value=O.lastEventId};for(const O of t)k(b,O,_=>{a.value=O,i.value=_.data||null},{passive:!0})},h=()=>{S.isClient&&(v(),c=!1,d=0,w())};return m&&h(),p&&n.watch(s,h),S.tryOnScopeDispose(v),{eventSource:u,event:a,data:i,status:o,error:r,open:h,close:v,lastEventId:f}}function Wn(e={}){const{initialValue:t=""}=e,l=x(()=>typeof window<"u"&&"EyeDropper"in window),a=n.ref(t);async function i(o){if(!l.value)return;const r=await new window.EyeDropper().open(o);return a.value=r.sRGBHex,r}return{isSupported:l,sRGBHex:a,open:i}}function Hn(e=null,t={}){const{baseUrl:l="",rel:a="icon",document:i=j}=t,o=S.toRef(e),u=r=>{const s=i?.head.querySelectorAll(`link[rel*="${a}"]`);if(!s||s.length===0){const f=i?.createElement("link");f&&(f.rel=a,f.href=`${l}${r}`,f.type=`image/${r.split(".").pop()}`,i?.head.append(f));return}s?.forEach(f=>f.href=`${l}${r}`)};return n.watch(o,(r,s)=>{typeof r=="string"&&r!==s&&u(r)},{immediate:!0}),o}const Un={json:"application/json",text:"text/plain"};function me(e){return e&&S.containsProp(e,"immediate","refetch","initialData","timeout","beforeFetch","afterFetch","onFetchError","fetch","updateDataOnError")}const $n=/^(?:[a-z][a-z\d+\-.]*:)?\/\//i;function Bn(e){return $n.test(e)}function ae(e){return typeof Headers<"u"&&e instanceof Headers?Object.fromEntries(e.entries()):e}function Q(e,...t){return e==="overwrite"?async l=>{const a=t[t.length-1];return a?{...l,...await a(l)}:l}:async l=>{for(const a of t)a&&(l={...l,...await a(l)});return l}}function jn(e={}){const t=e.combination||"chain",l=e.options||{},a=e.fetchOptions||{};function i(o,...u){const r=n.computed(()=>{const c=n.toValue(e.baseUrl),d=n.toValue(o);return c&&!Bn(d)?zn(c,d):d});let s=l,f=a;return u.length>0&&(me(u[0])?s={...s,...u[0],beforeFetch:Q(t,l.beforeFetch,u[0].beforeFetch),afterFetch:Q(t,l.afterFetch,u[0].afterFetch),onFetchError:Q(t,l.onFetchError,u[0].onFetchError)}:f={...f,...u[0],headers:{...ae(f.headers)||{},...ae(u[0].headers)||{}}}),u.length>1&&me(u[1])&&(s={...s,...u[1],beforeFetch:Q(t,l.beforeFetch,u[1].beforeFetch),afterFetch:Q(t,l.afterFetch,u[1].afterFetch),onFetchError:Q(t,l.onFetchError,u[1].onFetchError)}),Xe(r,f,s)}return i}function Xe(e,...t){var l;const a=typeof AbortController=="function";let i={},o={immediate:!0,refetch:!1,timeout:0,updateDataOnError:!1};const u={method:"GET",type:"text",payload:void 0};t.length>0&&(me(t[0])?o={...o,...t[0]}:i=t[0]),t.length>1&&me(t[1])&&(o={...o,...t[1]});const{fetch:r=(l=M)==null?void 0:l.fetch,initialData:s,timeout:f}=o,c=S.createEventHook(),d=S.createEventHook(),y=S.createEventHook(),m=n.ref(!1),p=n.ref(!1),g=n.ref(!1),v=n.ref(null),w=n.shallowRef(null),h=n.shallowRef(null),b=n.shallowRef(s||null),O=n.computed(()=>a&&p.value);let _,C;const T=()=>{a&&(_?.abort(),_=new AbortController,_.signal.onabort=()=>g.value=!0,i={...i,signal:_.signal})},V=W=>{p.value=W,m.value=!W};f&&(C=S.useTimeoutFn(T,f,{immediate:!1}));let P=0;const I=async(W=!1)=>{var A,U;T(),V(!0),h.value=null,v.value=null,g.value=!1,P+=1;const G=P,z={method:u.method,headers:{}},Z=n.toValue(u.payload);if(Z){const B=ae(z.headers),re=Object.getPrototypeOf(Z);!u.payloadType&&Z&&(re===Object.prototype||Array.isArray(re))&&!(Z instanceof FormData)&&(u.payloadType="json"),u.payloadType&&(B["Content-Type"]=(A=Un[u.payloadType])!=null?A:u.payloadType),z.body=u.payloadType==="json"?JSON.stringify(Z):Z}let Ot=!1;const X={url:n.toValue(e),options:{...z,...i},cancel:()=>{Ot=!0}};if(o.beforeFetch&&Object.assign(X,await o.beforeFetch(X)),Ot||!r)return V(!1),Promise.resolve(null);let K=null;return C&&C.start(),r(X.url,{...z,...X.options,headers:{...ae(z.headers),...ae((U=X.options)==null?void 0:U.headers)}}).then(async B=>{if(w.value=B,v.value=B.status,K=await B.clone()[u.type](),!B.ok)throw b.value=s||null,new Error(B.statusText);return o.afterFetch&&({data:K}=await o.afterFetch({data:K,response:B,context:X,execute:I})),b.value=K,c.trigger(B),B}).catch(async B=>{let re=B.message||B.name;if(o.onFetchError&&({error:re,data:K}=await o.onFetchError({data:K,error:B,response:w.value,context:X,execute:I})),h.value=re,o.updateDataOnError&&(b.value=K),d.trigger(B),W)throw B;return null}).finally(()=>{G===P&&V(!1),C&&C.stop(),y.trigger(null)})},D=S.toRef(o.refetch);n.watch([D,S.toRef(e)],([W])=>W&&I(),{deep:!0});const R={isFinished:n.readonly(m),isFetching:n.readonly(p),statusCode:v,response:w,error:h,data:b,canAbort:O,aborted:g,abort:T,execute:I,onFetchResponse:c.on,onFetchError:d.on,onFetchFinally:y.on,get:F("GET"),put:F("PUT"),post:F("POST"),delete:F("DELETE"),patch:F("PATCH"),head:F("HEAD"),options:F("OPTIONS"),json:H("json"),text:H("text"),blob:H("blob"),arrayBuffer:H("arrayBuffer"),formData:H("formData")};function F(W){return(A,U)=>{if(!p.value)return u.method=W,u.payload=A,u.payloadType=U,n.isRef(u.payload)&&n.watch([D,S.toRef(u.payload)],([G])=>G&&I(),{deep:!0}),{...R,then(G,z){return L().then(G,z)}}}}function L(){return new Promise((W,A)=>{S.until(m).toBe(!0).then(()=>W(R)).catch(A)})}function H(W){return()=>{if(!p.value)return u.type=W,{...R,then(A,U){return L().then(A,U)}}}}return o.immediate&&Promise.resolve().then(()=>I()),{...R,then(W,A){return L().then(W,A)}}}function zn(e,t){return!e.endsWith("/")&&!t.startsWith("/")?`${e}/${t}`:e.endsWith("/")&&t.startsWith("/")?`${e.slice(0,-1)}${t}`:`${e}${t}`}const qn={multiple:!0,accept:"*",reset:!1,directory:!1};function Gn(e){if(!e)return null;if(e instanceof FileList)return e;const t=new DataTransfer;for(const l of e)t.items.add(l);return t.files}function Yn(e={}){const{document:t=j}=e,l=n.ref(Gn(e.initialFiles)),{on:a,trigger:i}=S.createEventHook(),{on:o,trigger:u}=S.createEventHook();let r;t&&(r=t.createElement("input"),r.type="file",r.onchange=c=>{const d=c.target;l.value=d.files,i(l.value)},r.oncancel=()=>{u()});const s=()=>{l.value=null,r&&r.value&&(r.value="",i(null))},f=c=>{if(!r)return;const d={...qn,...e,...c};r.multiple=d.multiple,r.accept=d.accept,r.webkitdirectory=d.directory,S.hasOwn(d,"capture")&&(r.capture=d.capture),d.reset&&s(),r.click()};return{files:n.readonly(l),open:f,reset:s,onCancel:o,onChange:a}}function Xn(e={}){const{window:t=M,dataType:l="Text"}=e,a=t,i=x(()=>a&&"showSaveFilePicker"in a&&"showOpenFilePicker"in a),o=n.ref(),u=n.ref(),r=n.ref(),s=n.computed(()=>{var h,b;return(b=(h=r.value)==null?void 0:h.name)!=null?b:""}),f=n.computed(()=>{var h,b;return(b=(h=r.value)==null?void 0:h.type)!=null?b:""}),c=n.computed(()=>{var h,b;return(b=(h=r.value)==null?void 0:h.size)!=null?b:0}),d=n.computed(()=>{var h,b;return(b=(h=r.value)==null?void 0:h.lastModified)!=null?b:0});async function y(h={}){if(!i.value)return;const[b]=await a.showOpenFilePicker({...n.toValue(e),...h});o.value=b,await w()}async function m(h={}){i.value&&(o.value=await a.showSaveFilePicker({...e,...h}),u.value=void 0,await w())}async function p(h={}){if(i.value){if(!o.value)return g(h);if(u.value){const b=await o.value.createWritable();await b.write(u.value),await b.close()}await v()}}async function g(h={}){if(i.value){if(o.value=await a.showSaveFilePicker({...e,...h}),u.value){const b=await o.value.createWritable();await b.write(u.value),await b.close()}await v()}}async function v(){var h;r.value=await((h=o.value)==null?void 0:h.getFile())}async function w(){var h,b;await v();const O=n.toValue(l);O==="Text"?u.value=await((h=r.value)==null?void 0:h.text()):O==="ArrayBuffer"?u.value=await((b=r.value)==null?void 0:b.arrayBuffer()):O==="Blob"&&(u.value=r.value)}return n.watch(()=>n.toValue(l),w),{isSupported:i,data:u,file:r,fileName:s,fileMIME:f,fileSize:c,fileLastModified:d,open:y,create:m,save:p,saveAs:g,updateData:w}}function Kn(e,t={}){const{initialValue:l=!1,focusVisible:a=!1,preventScroll:i=!1}=t,o=n.ref(!1),u=n.computed(()=>N(e)),r={passive:!0};k(u,"focus",f=>{var c,d;(!a||(d=(c=f.target).matches)!=null&&d.call(c,":focus-visible"))&&(o.value=!0)},r),k(u,"blur",()=>o.value=!1,r);const s=n.computed({get:()=>o.value,set(f){var c,d;!f&&o.value?(c=u.value)==null||c.blur():f&&!o.value&&((d=u.value)==null||d.focus({preventScroll:i}))}});return n.watch(u,()=>{s.value=l},{immediate:!0,flush:"post"}),{focused:s}}const Jn="focusin",Qn="focusout",Zn=":focus-within";function el(e,t={}){const{window:l=M}=t,a=n.computed(()=>N(e)),i=n.ref(!1),o=n.computed(()=>i.value),u=Ae(t);if(!l||!u.value)return{focused:o};const r={passive:!0};return k(a,Jn,()=>i.value=!0,r),k(a,Qn,()=>{var s,f,c;return i.value=(c=(f=(s=a.value)==null?void 0:s.matches)==null?void 0:f.call(s,Zn))!=null?c:!1},r),{focused:o}}function tl(e){var t;const l=n.ref(0);if(typeof performance>"u")return l;const a=(t=e?.every)!=null?t:10;let i=performance.now(),o=0;return Y(()=>{if(o+=1,o>=a){const u=performance.now(),r=u-i;l.value=Math.round(1e3/(r/o)),i=u,o=0}}),l}const Ke=["fullscreenchange","webkitfullscreenchange","webkitendfullscreen","mozfullscreenchange","MSFullscreenChange"];function nl(e,t={}){const{document:l=j,autoExit:a=!1}=t,i=n.computed(()=>{var h;return(h=N(e))!=null?h:l?.querySelector("html")}),o=n.ref(!1),u=n.computed(()=>["requestFullscreen","webkitRequestFullscreen","webkitEnterFullscreen","webkitEnterFullScreen","webkitRequestFullScreen","mozRequestFullScreen","msRequestFullscreen"].find(h=>l&&h in l||i.value&&h in i.value)),r=n.computed(()=>["exitFullscreen","webkitExitFullscreen","webkitExitFullScreen","webkitCancelFullScreen","mozCancelFullScreen","msExitFullscreen"].find(h=>l&&h in l||i.value&&h in i.value)),s=n.computed(()=>["fullScreen","webkitIsFullScreen","webkitDisplayingFullscreen","mozFullScreen","msFullscreenElement"].find(h=>l&&h in l||i.value&&h in i.value)),f=["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"].find(h=>l&&h in l),c=x(()=>i.value&&l&&u.value!==void 0&&r.value!==void 0&&s.value!==void 0),d=()=>f?l?.[f]===i.value:!1,y=()=>{if(s.value){if(l&&l[s.value]!=null)return l[s.value];{const h=i.value;if(h?.[s.value]!=null)return!!h[s.value]}}return!1};async function m(){if(!(!c.value||!o.value)){if(r.value)if(l?.[r.value]!=null)await l[r.value]();else{const h=i.value;h?.[r.value]!=null&&await h[r.value]()}o.value=!1}}async function p(){if(!c.value||o.value)return;y()&&await m();const h=i.value;u.value&&h?.[u.value]!=null&&(await h[u.value](),o.value=!0)}async function g(){await(o.value?m():p())}const v=()=>{const h=y();(!h||h&&d())&&(o.value=h)},w={capture:!1,passive:!0};return k(l,Ke,v,w),k(()=>N(i),Ke,v,w),a&&S.tryOnScopeDispose(m),{isSupported:c,isFullscreen:o,enter:p,exit:m,toggle:g}}function ll(e){return n.computed(()=>e.value?{buttons:{a:e.value.buttons[0],b:e.value.buttons[1],x:e.value.buttons[2],y:e.value.buttons[3]},bumper:{left:e.value.buttons[4],right:e.value.buttons[5]},triggers:{left:e.value.buttons[6],right:e.value.buttons[7]},stick:{left:{horizontal:e.value.axes[0],vertical:e.value.axes[1],button:e.value.buttons[10]},right:{horizontal:e.value.axes[2],vertical:e.value.axes[3],button:e.value.buttons[11]}},dpad:{up:e.value.buttons[12],down:e.value.buttons[13],left:e.value.buttons[14],right:e.value.buttons[15]},back:e.value.buttons[8],start:e.value.buttons[9]}:null)}function al(e={}){const{navigator:t=q}=e,l=x(()=>t&&"getGamepads"in t),a=n.ref([]),i=S.createEventHook(),o=S.createEventHook(),u=p=>{const g=[],v="vibrationActuator"in p?p.vibrationActuator:null;return v&&g.push(v),p.hapticActuators&&g.push(...p.hapticActuators),{id:p.id,index:p.index,connected:p.connected,mapping:p.mapping,timestamp:p.timestamp,vibrationActuator:p.vibrationActuator,hapticActuators:g,axes:p.axes.map(w=>w),buttons:p.buttons.map(w=>({pressed:w.pressed,touched:w.touched,value:w.value}))}},r=()=>{const p=t?.getGamepads()||[];for(const g of p)g&&a.value[g.index]&&(a.value[g.index]=u(g))},{isActive:s,pause:f,resume:c}=Y(r),d=p=>{a.value.some(({index:g})=>g===p.index)||(a.value.push(u(p)),i.trigger(p.index)),c()},y=p=>{a.value=a.value.filter(g=>g.index!==p.index),o.trigger(p.index)},m={passive:!0};return k("gamepadconnected",p=>d(p.gamepad),m),k("gamepaddisconnected",p=>y(p.gamepad),m),S.tryOnMounted(()=>{const p=t?.getGamepads()||[];for(const g of p)g&&a.value[g.index]&&d(g)}),f(),{isSupported:l,onConnected:i.on,onDisconnected:o.on,gamepads:a,pause:f,resume:c,isActive:s}}function rl(e={}){const{enableHighAccuracy:t=!0,maximumAge:l=3e4,timeout:a=27e3,navigator:i=q,immediate:o=!0}=e,u=x(()=>i&&"geolocation"in i),r=n.ref(null),s=n.shallowRef(null),f=n.ref({accuracy:0,latitude:Number.POSITIVE_INFINITY,longitude:Number.POSITIVE_INFINITY,altitude:null,altitudeAccuracy:null,heading:null,speed:null});function c(p){r.value=p.timestamp,f.value=p.coords,s.value=null}let d;function y(){u.value&&(d=i.geolocation.watchPosition(c,p=>s.value=p,{enableHighAccuracy:t,maximumAge:l,timeout:a}))}o&&y();function m(){d&&i&&i.geolocation.clearWatch(d)}return S.tryOnScopeDispose(()=>{m()}),{isSupported:u,coords:f,locatedAt:r,error:s,resume:y,pause:m}}const ol=["mousemove","mousedown","resize","keydown","touchstart","wheel"],il=6e4;function ul(e=il,t={}){const{initialState:l=!1,listenForVisibilityChange:a=!0,events:i=ol,window:o=M,eventFilter:u=S.throttleFilter(50)}=t,r=n.ref(l),s=n.ref(S.timestamp());let f;const c=()=>{r.value=!1,clearTimeout(f),f=setTimeout(()=>r.value=!0,e)},d=S.createFilterWrapper(u,()=>{s.value=S.timestamp(),c()});if(o){const y=o.document,m={passive:!0};for(const p of i)k(o,p,d,m);a&&k(y,"visibilitychange",()=>{y.hidden||d()},m),c()}return{idle:r,lastActive:s,reset:c}}async function sl(e){return new Promise((t,l)=>{const a=new Image,{src:i,srcset:o,sizes:u,class:r,loading:s,crossorigin:f,referrerPolicy:c,width:d,height:y,decoding:m,fetchPriority:p,ismap:g,usemap:v}=e;a.src=i,o!=null&&(a.srcset=o),u!=null&&(a.sizes=u),r!=null&&(a.className=r),s!=null&&(a.loading=s),f!=null&&(a.crossOrigin=f),c!=null&&(a.referrerPolicy=c),d!=null&&(a.width=d),y!=null&&(a.height=y),m!=null&&(a.decoding=m),p!=null&&(a.fetchPriority=p),g!=null&&(a.isMap=g),v!=null&&(a.useMap=v),a.onload=()=>t(a),a.onerror=l})}function cl(e,t={}){const l=Me(()=>sl(n.toValue(e)),void 0,{resetOnExecute:!0,...t});return n.watch(()=>n.toValue(e),()=>l.execute(t.delay),{deep:!0}),l}function pe(e){return typeof Window<"u"&&e instanceof Window?e.document.documentElement:typeof Document<"u"&&e instanceof Document?e.documentElement:e}const Je=1;function Oe(e,t={}){const{throttle:l=0,idle:a=200,onStop:i=S.noop,onScroll:o=S.noop,offset:u={left:0,right:0,top:0,bottom:0},eventListenerOptions:r={capture:!1,passive:!0},behavior:s="auto",window:f=M,onError:c=T=>{console.error(T)}}=t,d=n.ref(0),y=n.ref(0),m=n.computed({get(){return d.value},set(T){g(T,void 0)}}),p=n.computed({get(){return y.value},set(T){g(void 0,T)}});function g(T,V){var P,I,D,R;if(!f)return;const F=n.toValue(e);if(!F)return;(D=F instanceof Document?f.document.body:F)==null||D.scrollTo({top:(P=n.toValue(V))!=null?P:p.value,left:(I=n.toValue(T))!=null?I:m.value,behavior:n.toValue(s)});const L=((R=F?.document)==null?void 0:R.documentElement)||F?.documentElement||F;m!=null&&(d.value=L.scrollLeft),p!=null&&(y.value=L.scrollTop)}const v=n.ref(!1),w=n.reactive({left:!0,right:!1,top:!0,bottom:!1}),h=n.reactive({left:!1,right:!1,top:!1,bottom:!1}),b=T=>{v.value&&(v.value=!1,h.left=!1,h.right=!1,h.top=!1,h.bottom=!1,i(T))},O=S.useDebounceFn(b,l+a),_=T=>{var V;if(!f)return;const P=((V=T?.document)==null?void 0:V.documentElement)||T?.documentElement||N(T),{display:I,flexDirection:D,direction:R}=getComputedStyle(P),F=R==="rtl"?-1:1,L=P.scrollLeft;h.left=L<d.value,h.right=L>d.value;const H=L*F<=(u.left||0),W=L*F+P.clientWidth>=P.scrollWidth-(u.right||0)-Je;I==="flex"&&D==="row-reverse"?(w.left=W,w.right=H):(w.left=H,w.right=W),d.value=L;let A=P.scrollTop;T===f.document&&!A&&(A=f.document.body.scrollTop),h.top=A<y.value,h.bottom=A>y.value;const U=A<=(u.top||0),G=A+P.clientHeight>=P.scrollHeight-(u.bottom||0)-Je;I==="flex"&&D==="column-reverse"?(w.top=G,w.bottom=U):(w.top=U,w.bottom=G),y.value=A},C=T=>{var V;if(!f)return;const P=(V=T.target.documentElement)!=null?V:T.target;_(P),v.value=!0,O(T),o(T)};return k(e,"scroll",l?S.useThrottleFn(C,l,!0,!1):C,r),S.tryOnMounted(()=>{try{const T=n.toValue(e);if(!T)return;_(T)}catch(T){c(T)}}),k(e,"scrollend",b,r),{x:m,y:p,isScrolling:v,arrivedState:w,directions:h,measure(){const T=n.toValue(e);f&&T&&_(T)}}}function fl(e,t,l={}){var a;const{direction:i="bottom",interval:o=100,canLoadMore:u=()=>!0}=l,r=n.reactive(Oe(e,{...l,offset:{[i]:(a=l.distance)!=null?a:0,...l.offset}})),s=n.ref(),f=n.computed(()=>!!s.value),c=n.computed(()=>pe(n.toValue(e))),d=Ye(c);function y(){if(r.measure(),!c.value||!d.value||!u(c.value))return;const{scrollHeight:p,clientHeight:g,scrollWidth:v,clientWidth:w}=c.value,h=i==="bottom"||i==="top"?p<=g:v<=w;(r.arrivedState[i]||h)&&(s.value||(s.value=Promise.all([t(r),new Promise(b=>setTimeout(b,o))]).finally(()=>{s.value=null,n.nextTick(()=>y())})))}const m=n.watch(()=>[r.arrivedState[i],d.value],y,{immediate:!0});return S.tryOnUnmounted(m),{isLoading:f,reset(){n.nextTick(()=>y())}}}const dl=["mousedown","mouseup","keydown","keyup"];function ml(e,t={}){const{events:l=dl,document:a=j,initial:i=null}=t,o=n.ref(i);return a&&l.forEach(u=>{k(a,u,r=>{typeof r.getModifierState=="function"&&(o.value=r.getModifierState(e))},{passive:!0})}),o}function pl(e,t,l={}){const{window:a=M}=l;return fe(e,t,a?.localStorage,l)}const Qe={ctrl:"control",command:"meta",cmd:"meta",option:"alt",up:"arrowup",down:"arrowdown",left:"arrowleft",right:"arrowright"};function vl(e={}){const{reactive:t=!1,target:l=M,aliasMap:a=Qe,passive:i=!0,onEventFired:o=S.noop}=e,u=n.reactive(new Set),r={toJSON(){return{}},current:u},s=t?n.reactive(r):r,f=new Set,c=new Set;function d(g,v){g in s&&(t?s[g]=v:s[g].value=v)}function y(){u.clear();for(const g of c)d(g,!1)}function m(g,v){var w,h;const b=(w=g.key)==null?void 0:w.toLowerCase(),_=[(h=g.code)==null?void 0:h.toLowerCase(),b].filter(Boolean);b&&(v?u.add(b):u.delete(b));for(const C of _)c.add(C),d(C,v);b==="meta"&&!v?(f.forEach(C=>{u.delete(C),d(C,!1)}),f.clear()):typeof g.getModifierState=="function"&&g.getModifierState("Meta")&&v&&[...u,..._].forEach(C=>f.add(C))}k(l,"keydown",g=>(m(g,!0),o(g)),{passive:i}),k(l,"keyup",g=>(m(g,!1),o(g)),{passive:i}),k("blur",y,{passive:i}),k("focus",y,{passive:i});const p=new Proxy(s,{get(g,v,w){if(typeof v!="string")return Reflect.get(g,v,w);if(v=v.toLowerCase(),v in a&&(v=a[v]),!(v in s))if(/[+_-]/.test(v)){const b=v.split(/[+_-]/g).map(O=>O.trim());s[v]=n.computed(()=>b.map(O=>n.toValue(p[O])).every(Boolean))}else s[v]=n.ref(!1);const h=Reflect.get(g,v,w);return t?n.toValue(h):h}});return p}function ke(e,t){n.toValue(e)&&t(n.toValue(e))}function yl(e){let t=[];for(let l=0;l<e.length;++l)t=[...t,[e.start(l),e.end(l)]];return t}function _e(e){return Array.from(e).map(({label:t,kind:l,language:a,mode:i,activeCues:o,cues:u,inBandMetadataTrackDispatchType:r},s)=>({id:s,label:t,kind:l,language:a,mode:i,activeCues:o,cues:u,inBandMetadataTrackDispatchType:r}))}const hl={src:"",tracks:[]};function gl(e,t={}){e=S.toRef(e),t={...hl,...t};const{document:l=j}=t,a={passive:!0},i=n.ref(0),o=n.ref(0),u=n.ref(!1),r=n.ref(1),s=n.ref(!1),f=n.ref(!1),c=n.ref(!1),d=n.ref(1),y=n.ref(!1),m=n.ref([]),p=n.ref([]),g=n.ref(-1),v=n.ref(!1),w=n.ref(!1),h=l&&"pictureInPictureEnabled"in l,b=S.createEventHook(),O=S.createEventHook(),_=R=>{ke(e,F=>{if(R){const L=typeof R=="number"?R:R.id;F.textTracks[L].mode="disabled"}else for(let L=0;L<F.textTracks.length;++L)F.textTracks[L].mode="disabled";g.value=-1})},C=(R,F=!0)=>{ke(e,L=>{const H=typeof R=="number"?R:R.id;F&&_(),L.textTracks[H].mode="showing",g.value=H})},T=()=>new Promise((R,F)=>{ke(e,async L=>{h&&(v.value?l.exitPictureInPicture().then(R).catch(F):L.requestPictureInPicture().then(R).catch(F))})});n.watchEffect(()=>{if(!l)return;const R=n.toValue(e);if(!R)return;const F=n.toValue(t.src);let L=[];F&&(typeof F=="string"?L=[{src:F}]:Array.isArray(F)?L=F:S.isObject(F)&&(L=[F]),R.querySelectorAll("source").forEach(H=>{H.remove()}),L.forEach(({src:H,type:W,media:A})=>{const U=l.createElement("source");U.setAttribute("src",H),U.setAttribute("type",W||""),U.setAttribute("media",A||""),k(U,"error",b.trigger,a),R.appendChild(U)}),R.load())}),n.watch([e,r],()=>{const R=n.toValue(e);R&&(R.volume=r.value)}),n.watch([e,w],()=>{const R=n.toValue(e);R&&(R.muted=w.value)}),n.watch([e,d],()=>{const R=n.toValue(e);R&&(R.playbackRate=d.value)}),n.watchEffect(()=>{if(!l)return;const R=n.toValue(t.tracks),F=n.toValue(e);!R||!R.length||!F||(F.querySelectorAll("track").forEach(L=>L.remove()),R.forEach(({default:L,kind:H,label:W,src:A,srcLang:U},G)=>{const z=l.createElement("track");z.default=L||!1,z.kind=H,z.label=W,z.src=A,z.srclang=U,z.default&&(g.value=G),F.appendChild(z)}))});const{ignoreUpdates:V}=S.watchIgnorable(i,R=>{const F=n.toValue(e);F&&(F.currentTime=R)}),{ignoreUpdates:P}=S.watchIgnorable(c,R=>{const F=n.toValue(e);F&&(R?F.play().catch(L=>{throw O.trigger(L),L}):F.pause())});k(e,"timeupdate",()=>V(()=>i.value=n.toValue(e).currentTime),a),k(e,"durationchange",()=>o.value=n.toValue(e).duration,a),k(e,"progress",()=>m.value=yl(n.toValue(e).buffered),a),k(e,"seeking",()=>u.value=!0,a),k(e,"seeked",()=>u.value=!1,a),k(e,["waiting","loadstart"],()=>{s.value=!0,P(()=>c.value=!1)},a),k(e,"loadeddata",()=>s.value=!1,a),k(e,"playing",()=>{s.value=!1,f.value=!1,P(()=>c.value=!0)},a),k(e,"ratechange",()=>d.value=n.toValue(e).playbackRate,a),k(e,"stalled",()=>y.value=!0,a),k(e,"ended",()=>f.value=!0,a),k(e,"pause",()=>P(()=>c.value=!1),a),k(e,"play",()=>P(()=>c.value=!0),a),k(e,"enterpictureinpicture",()=>v.value=!0,a),k(e,"leavepictureinpicture",()=>v.value=!1,a),k(e,"volumechange",()=>{const R=n.toValue(e);R&&(r.value=R.volume,w.value=R.muted)},a);const I=[],D=n.watch([e],()=>{const R=n.toValue(e);R&&(D(),I[0]=k(R.textTracks,"addtrack",()=>p.value=_e(R.textTracks),a),I[1]=k(R.textTracks,"removetrack",()=>p.value=_e(R.textTracks),a),I[2]=k(R.textTracks,"change",()=>p.value=_e(R.textTracks),a))});return S.tryOnScopeDispose(()=>I.forEach(R=>R())),{currentTime:i,duration:o,waiting:s,seeking:u,ended:f,stalled:y,buffered:m,playing:c,rate:d,volume:r,muted:w,tracks:p,selectedTrack:g,enableTrack:C,disableTrack:_,supportsPictureInPicture:h,togglePictureInPicture:T,isPictureInPicture:v,onSourceError:b.on,onPlaybackError:O.on}}function wl(e,t){const a=t?.cache?n.shallowReactive(t.cache):n.shallowReactive(new Map),i=(...c)=>t?.getKey?t.getKey(...c):JSON.stringify(c),o=(c,...d)=>(a.set(c,e(...d)),a.get(c)),u=(...c)=>o(i(...c),...c),r=(...c)=>{a.delete(i(...c))},s=()=>{a.clear()},f=(...c)=>{const d=i(...c);return a.has(d)?a.get(d):o(d,...c)};return f.load=u,f.delete=r,f.clear=s,f.generateKey=i,f.cache=a,f}function bl(e={}){const t=n.ref(),l=x(()=>typeof performance<"u"&&"memory"in performance);if(l.value){const{interval:a=1e3}=e;S.useIntervalFn(()=>{t.value=performance.memory},a,{immediate:e.immediate,immediateCallback:e.immediateCallback})}return{isSupported:l,memory:t}}const Sl={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 Ze(e={}){const{type:t="page",touch:l=!0,resetOnTouchEnds:a=!1,initialValue:i={x:0,y:0},window:o=M,target:u=o,scroll:r=!0,eventFilter:s}=e;let f=null,c=0,d=0;const y=n.ref(i.x),m=n.ref(i.y),p=n.ref(null),g=typeof t=="function"?t:Sl[t],v=T=>{const V=g(T);f=T,V&&([y.value,m.value]=V,p.value="mouse"),o&&(c=o.scrollX,d=o.scrollY)},w=T=>{if(T.touches.length>0){const V=g(T.touches[0]);V&&([y.value,m.value]=V,p.value="touch")}},h=()=>{if(!f||!o)return;const T=g(f);f instanceof MouseEvent&&T&&(y.value=T[0]+o.scrollX-c,m.value=T[1]+o.scrollY-d)},b=()=>{y.value=i.x,m.value=i.y},O=s?T=>s(()=>v(T),{}):T=>v(T),_=s?T=>s(()=>w(T),{}):T=>w(T),C=s?()=>s(()=>h(),{}):()=>h();if(u){const T={passive:!0};k(u,["mousemove","dragover"],O,T),l&&t!=="movement"&&(k(u,["touchstart","touchmove"],_,T),a&&k(u,"touchend",b,T)),r&&t==="page"&&k(o,"scroll",C,T)}return{x:y,y:m,sourceType:p}}function et(e,t={}){const{handleOutside:l=!0,window:a=M}=t,i=t.type||"page",{x:o,y:u,sourceType:r}=Ze(t),s=n.ref(e??a?.document.body),f=n.ref(0),c=n.ref(0),d=n.ref(0),y=n.ref(0),m=n.ref(0),p=n.ref(0),g=n.ref(!0);let v=()=>{};return a&&(v=n.watch([s,o,u],()=>{const w=N(s);if(!w||!(w instanceof Element))return;const{left:h,top:b,width:O,height:_}=w.getBoundingClientRect();d.value=h+(i==="page"?a.pageXOffset:0),y.value=b+(i==="page"?a.pageYOffset:0),m.value=_,p.value=O;const C=o.value-d.value,T=u.value-y.value;g.value=O===0||_===0||C<0||T<0||C>O||T>_,(l||!g.value)&&(f.value=C,c.value=T)},{immediate:!0}),k(document,"mouseleave",()=>g.value=!0,{passive:!0})),{x:o,y:u,sourceType:r,elementX:f,elementY:c,elementPositionX:d,elementPositionY:y,elementHeight:m,elementWidth:p,isOutside:g,stop:v}}function El(e={}){const{touch:t=!0,drag:l=!0,capture:a=!1,initialValue:i=!1,window:o=M}=e,u=n.ref(i),r=n.ref(null);if(!o)return{pressed:u,sourceType:r};const s=y=>m=>{var p;u.value=!0,r.value=y,(p=e.onPressed)==null||p.call(e,m)},f=y=>{var m;u.value=!1,r.value=null,(m=e.onReleased)==null||m.call(e,y)},c=n.computed(()=>N(e.target)||o),d={passive:!0,capture:a};return k(c,"mousedown",s("mouse"),d),k(o,"mouseleave",f,d),k(o,"mouseup",f,d),l&&(k(c,"dragstart",s("mouse"),d),k(o,"drop",f,d),k(o,"dragend",f,d)),t&&(k(c,"touchstart",s("touch"),d),k(o,"touchend",f,d),k(o,"touchcancel",f,d)),{pressed:u,sourceType:r}}function Tl(e={}){const{window:t=M}=e,l=t?.navigator,a=x(()=>l&&"language"in l),i=n.ref(l?.language);return k(t,"languagechange",()=>{l&&(i.value=l.language)},{passive:!0}),{isSupported:a,language:i}}function tt(e={}){const{window:t=M}=e,l=t?.navigator,a=x(()=>l&&"connection"in l),i=n.ref(!0),o=n.ref(!1),u=n.ref(void 0),r=n.ref(void 0),s=n.ref(void 0),f=n.ref(void 0),c=n.ref(void 0),d=n.ref(void 0),y=n.ref("unknown"),m=a.value&&l.connection;function p(){l&&(i.value=l.onLine,u.value=i.value?void 0:Date.now(),r.value=i.value?Date.now():void 0,m&&(s.value=m.downlink,f.value=m.downlinkMax,d.value=m.effectiveType,c.value=m.rtt,o.value=m.saveData,y.value=m.type))}const g={passive:!0};return t&&(k(t,"offline",()=>{i.value=!1,u.value=Date.now()},g),k(t,"online",()=>{i.value=!0,r.value=Date.now()},g)),m&&k(m,"change",p,g),p(),{isSupported:a,isOnline:n.readonly(i),saveData:n.readonly(o),offlineAt:n.readonly(u),onlineAt:n.readonly(r),downlink:n.readonly(s),downlinkMax:n.readonly(f),effectiveType:n.readonly(d),rtt:n.readonly(c),type:n.readonly(y)}}function nt(e={}){const{controls:t=!1,interval:l="requestAnimationFrame"}=e,a=n.ref(new Date),i=()=>a.value=new Date,o=l==="requestAnimationFrame"?Y(i,{immediate:!0}):S.useIntervalFn(i,l,{immediate:!0});return t?{now:a,...o}:a}function Ol(e){const t=n.ref(),l=()=>{t.value&&URL.revokeObjectURL(t.value),t.value=void 0};return n.watch(()=>n.toValue(e),a=>{l(),a&&(t.value=URL.createObjectURL(a))},{immediate:!0}),S.tryOnScopeDispose(l),n.readonly(t)}function lt(e,t,l){if(typeof e=="function"||n.isReadonly(e))return n.computed(()=>S.clamp(n.toValue(e),n.toValue(t),n.toValue(l)));const a=n.ref(e);return n.computed({get(){return a.value=S.clamp(a.value,n.toValue(t),n.toValue(l))},set(i){a.value=S.clamp(i,n.toValue(t),n.toValue(l))}})}function kl(e){const{total:t=Number.POSITIVE_INFINITY,pageSize:l=10,page:a=1,onPageChange:i=S.noop,onPageSizeChange:o=S.noop,onPageCountChange:u=S.noop}=e,r=lt(l,1,Number.POSITIVE_INFINITY),s=n.computed(()=>Math.max(1,Math.ceil(n.toValue(t)/n.toValue(r)))),f=lt(a,1,s),c=n.computed(()=>f.value===1),d=n.computed(()=>f.value===s.value);n.isRef(a)&&S.syncRef(a,f,{direction:n.isReadonly(a)?"ltr":"both"}),n.isRef(l)&&S.syncRef(l,r,{direction:n.isReadonly(l)?"ltr":"both"});function y(){f.value--}function m(){f.value++}const p={currentPage:f,currentPageSize:r,pageCount:s,isFirstPage:c,isLastPage:d,prev:y,next:m};return n.watch(f,()=>{i(n.reactive(p))}),n.watch(r,()=>{o(n.reactive(p))}),n.watch(s,()=>{u(n.reactive(p))}),p}function _l(e={}){const{isOnline:t}=tt(e);return t}function Rl(e={}){const{window:t=M}=e,l=n.ref(!1),a=i=>{if(!t)return;i=i||t.event;const o=i.relatedTarget||i.toElement;l.value=!o};if(t){const i={passive:!0};k(t,"mouseout",a,i),k(t.document,"mouseleave",a,i),k(t.document,"mouseenter",a,i)}return l}function at(e={}){const{window:t=M}=e,l=x(()=>t&&"screen"in t&&"orientation"in t.screen),a=l.value?t.screen.orientation:{},i=n.ref(a.type),o=n.ref(a.angle||0);return l.value&&k(t,"orientationchange",()=>{i.value=a.type,o.value=a.angle},{passive:!0}),{isSupported:l,orientation:i,angle:o,lockOrientation:s=>l.value&&typeof a.lock=="function"?a.lock(s):Promise.reject(new Error("Not supported")),unlockOrientation:()=>{l.value&&typeof a.unlock=="function"&&a.unlock()}}}function Vl(e,t={}){const{deviceOrientationTiltAdjust:l=v=>v,deviceOrientationRollAdjust:a=v=>v,mouseTiltAdjust:i=v=>v,mouseRollAdjust:o=v=>v,window:u=M}=t,r=n.reactive(je({window:u})),s=n.reactive(at({window:u})),{elementX:f,elementY:c,elementWidth:d,elementHeight:y}=et(e,{handleOutside:!1,window:u}),m=n.computed(()=>r.isSupported&&(r.alpha!=null&&r.alpha!==0||r.gamma!=null&&r.gamma!==0)?"deviceOrientation":"mouse"),p=n.computed(()=>{if(m.value==="deviceOrientation"){let v;switch(s.orientation){case"landscape-primary":v=r.gamma/90;break;case"landscape-secondary":v=-r.gamma/90;break;case"portrait-primary":v=-r.beta/90;break;case"portrait-secondary":v=r.beta/90;break;default:v=-r.beta/90}return a(v)}else{const v=-(c.value-y.value/2)/y.value;return o(v)}}),g=n.computed(()=>{if(m.value==="deviceOrientation"){let v;switch(s.orientation){case"landscape-primary":v=r.beta/90;break;case"landscape-secondary":v=-r.beta/90;break;case"portrait-primary":v=r.gamma/90;break;case"portrait-secondary":v=-r.gamma/90;break;default:v=r.gamma/90}return l(v)}else{const v=(f.value-d.value/2)/d.value;return i(v)}});return{roll:p,tilt:g,source:m}}function Fl(e=Ue()){const t=n.shallowRef(),l=()=>{const a=N(e);a&&(t.value=a.parentElement)};return S.tryOnMounted(l),n.watch(()=>n.toValue(e),l),t}function Pl(e,t){const{window:l=M,immediate:a=!0,...i}=e,o=x(()=>l&&"PerformanceObserver"in l);let u;const r=()=>{u?.disconnect()},s=()=>{o.value&&(r(),u=new PerformanceObserver(t),u.observe(i))};return S.tryOnScopeDispose(r),a&&s(),{isSupported:o,start:s,stop:r}}const rt={x:0,y:0,pointerId:0,pressure:0,tiltX:0,tiltY:0,width:0,height:0,twist:0,pointerType:null},Cl=Object.keys(rt);function Dl(e={}){const{target:t=M}=e,l=n.ref(!1),a=n.ref(e.initialValue||{});Object.assign(a.value,rt,a.value);const i=o=>{l.value=!0,!(e.pointerTypes&&!e.pointerTypes.includes(o.pointerType))&&(a.value=S.objectPick(o,Cl,!1))};if(t){const o={passive:!0};k(t,["pointerdown","pointermove","pointerup"],i,o),k(t,"pointerleave",()=>l.value=!1,o)}return{...S.toRefs(a),isInside:l}}function Al(e,t={}){const{document:l=j}=t,a=x(()=>l&&"pointerLockElement"in l),i=n.ref(),o=n.ref();let u;if(a.value){const f={passive:!0};k(l,"pointerlockchange",()=>{var c;const d=(c=l.pointerLockElement)!=null?c:i.value;u&&d===u&&(i.value=l.pointerLockElement,i.value||(u=o.value=null))},f),k(l,"pointerlockerror",()=>{var c;const d=(c=l.pointerLockElement)!=null?c:i.value;if(u&&d===u){const y=l.pointerLockElement?"release":"acquire";throw new Error(`Failed to ${y} pointer lock.`)}},f)}async function r(f){var c;if(!a.value)throw new Error("Pointer Lock API is not supported by your browser.");if(o.value=f instanceof Event?f.currentTarget:null,u=f instanceof Event?(c=N(e))!=null?c:o.value:N(f),!u)throw new Error("Target element undefined.");return u.requestPointerLock(),await S.until(i).toBe(u)}async function s(){return i.value?(l.exitPointerLock(),await S.until(i).toBeNull(),!0):!1}return{isSupported:a,element:i,triggerElement:o,lock:r,unlock:s}}function Ml(e,t={}){const l=S.toRef(e),{threshold:a=50,onSwipe:i,onSwipeEnd:o,onSwipeStart:u,disableTextSelect:r=!1}=t,s=n.reactive({x:0,y:0}),f=(V,P)=>{s.x=V,s.y=P},c=n.reactive({x:0,y:0}),d=(V,P)=>{c.x=V,c.y=P},y=n.computed(()=>s.x-c.x),m=n.computed(()=>s.y-c.y),{max:p,abs:g}=Math,v=n.computed(()=>p(g(y.value),g(m.value))>=a),w=n.ref(!1),h=n.ref(!1),b=n.computed(()=>v.value?g(y.value)>g(m.value)?y.value>0?"left":"right":m.value>0?"up":"down":"none"),O=V=>{var P,I,D;const R=V.buttons===0,F=V.buttons===1;return(D=(I=(P=t.pointerTypes)==null?void 0:P.includes(V.pointerType))!=null?I:R||F)!=null?D:!0},_={passive:!0},C=[k(e,"pointerdown",V=>{if(!O(V))return;h.value=!0;const P=V.target;P?.setPointerCapture(V.pointerId);const{clientX:I,clientY:D}=V;f(I,D),d(I,D),u?.(V)},_),k(e,"pointermove",V=>{if(!O(V)||!h.value)return;const{clientX:P,clientY:I}=V;d(P,I),!w.value&&v.value&&(w.value=!0),w.value&&i?.(V)},_),k(e,"pointerup",V=>{O(V)&&(w.value&&o?.(V,b.value),h.value=!1,w.value=!1)},_)];S.tryOnMounted(()=>{var V,P,I,D,R,F,L,H;(P=(V=l.value)==null?void 0:V.style)==null||P.setProperty("touch-action","none"),r&&((D=(I=l.value)==null?void 0:I.style)==null||D.setProperty("-webkit-user-select","none"),(F=(R=l.value)==null?void 0:R.style)==null||F.setProperty("-ms-user-select","none"),(H=(L=l.value)==null?void 0:L.style)==null||H.setProperty("user-select","none"))});const T=()=>C.forEach(V=>V());return{isSwiping:n.readonly(w),direction:n.readonly(b),posStart:n.readonly(s),posEnd:n.readonly(c),distanceX:y,distanceY:m,stop:T}}function Il(e){const t=$("(prefers-color-scheme: light)",e),l=$("(prefers-color-scheme: dark)",e);return n.computed(()=>l.value?"dark":t.value?"light":"no-preference")}function Ll(e){const t=$("(prefers-contrast: more)",e),l=$("(prefers-contrast: less)",e),a=$("(prefers-contrast: custom)",e);return n.computed(()=>t.value?"more":l.value?"less":a.value?"custom":"no-preference")}function Nl(e={}){const{window:t=M}=e;if(!t)return n.ref(["en"]);const l=t.navigator,a=n.ref(l.languages);return k(t,"languagechange",()=>{a.value=l.languages},{passive:!0}),a}function xl(e){const t=$("(prefers-reduced-motion: reduce)",e);return n.computed(()=>t.value?"reduce":"no-preference")}function Wl(e){const t=$("(prefers-reduced-transparency: reduce)",e);return n.computed(()=>t.value?"reduce":"no-preference")}function Hl(e,t){const l=n.shallowRef(t);return n.watch(S.toRef(e),(a,i)=>{l.value=i},{flush:"sync"}),n.readonly(l)}const ot="--vueuse-safe-area-top",it="--vueuse-safe-area-right",ut="--vueuse-safe-area-bottom",st="--vueuse-safe-area-left";function Ul(){const e=n.ref(""),t=n.ref(""),l=n.ref(""),a=n.ref("");if(S.isClient){const o=ne(ot),u=ne(it),r=ne(ut),s=ne(st);o.value="env(safe-area-inset-top, 0px)",u.value="env(safe-area-inset-right, 0px)",r.value="env(safe-area-inset-bottom, 0px)",s.value="env(safe-area-inset-left, 0px)",i(),k("resize",S.useDebounceFn(i),{passive:!0})}function i(){e.value=ve(ot),t.value=ve(it),l.value=ve(ut),a.value=ve(st)}return{top:e,right:t,bottom:l,left:a,update:i}}function ve(e){return getComputedStyle(document.documentElement).getPropertyValue(e)}function $l(e,t=S.noop,l={}){const{immediate:a=!0,manual:i=!1,type:o="text/javascript",async:u=!0,crossOrigin:r,referrerPolicy:s,noModule:f,defer:c,document:d=j,attrs:y={}}=l,m=n.ref(null);let p=null;const g=h=>new Promise((b,O)=>{const _=P=>(m.value=P,b(P),P);if(!d){b(!1);return}let C=!1,T=d.querySelector(`script[src="${n.toValue(e)}"]`);T?T.hasAttribute("data-loaded")&&_(T):(T=d.createElement("script"),T.type=o,T.async=u,T.src=n.toValue(e),c&&(T.defer=c),r&&(T.crossOrigin=r),f&&(T.noModule=f),s&&(T.referrerPolicy=s),Object.entries(y).forEach(([P,I])=>T?.setAttribute(P,I)),C=!0);const V={passive:!0};k(T,"error",P=>O(P),V),k(T,"abort",P=>O(P),V),k(T,"load",()=>{T.setAttribute("data-loaded","true"),t(T),_(T)},V),C&&(T=d.head.appendChild(T)),h||_(T)}),v=(h=!0)=>(p||(p=g(h)),p),w=()=>{if(!d)return;p=null,m.value&&(m.value=null);const h=d.querySelector(`script[src="${n.toValue(e)}"]`);h&&d.head.removeChild(h)};return a&&!i&&S.tryOnMounted(v),i||S.tryOnUnmounted(w),{scriptTag:m,load:v,unload:w}}function ct(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 l=e.parentNode;return!l||l.tagName==="BODY"?!1:ct(l)}}function Bl(e){const t=e||window.event,l=t.target;return ct(l)?!1:t.touches.length>1?!0:(t.preventDefault&&t.preventDefault(),!1)}const Re=new WeakMap;function jl(e,t=!1){const l=n.ref(t);let a=null,i="";n.watch(S.toRef(e),r=>{const s=pe(n.toValue(r));if(s){const f=s;if(Re.get(f)||Re.set(f,f.style.overflow),f.style.overflow!=="hidden"&&(i=f.style.overflow),f.style.overflow==="hidden")return l.value=!0;if(l.value)return f.style.overflow="hidden"}},{immediate:!0});const o=()=>{const r=pe(n.toValue(e));!r||l.value||(S.isIOS&&(a=k(r,"touchmove",s=>{Bl(s)},{passive:!1})),r.style.overflow="hidden",l.value=!0)},u=()=>{const r=pe(n.toValue(e));!r||!l.value||(S.isIOS&&a?.(),r.style.overflow=i,Re.delete(r),l.value=!1)};return S.tryOnScopeDispose(u),n.computed({get(){return l.value},set(r){r?o():u()}})}function zl(e,t,l={}){const{window:a=M}=l;return fe(e,t,a?.sessionStorage,l)}function ql(e={},t={}){const{navigator:l=q}=t,a=l,i=x(()=>a&&"canShare"in a);return{isSupported:i,share:async(u={})=>{if(i.value){const r={...n.toValue(e),...n.toValue(u)};let s=!0;if(r.files&&a.canShare&&(s=a.canShare({files:r.files})),s)return a.share(r)}}}}const Gl=(e,t)=>e.sort(t),ye=(e,t)=>e-t;function Yl(...e){var t,l,a,i;const[o]=e;let u=ye,r={};e.length===2?typeof e[1]=="object"?(r=e[1],u=(t=r.compareFn)!=null?t:ye):u=(l=e[1])!=null?l:ye:e.length>2&&(u=(a=e[1])!=null?a:ye,r=(i=e[2])!=null?i:{});const{dirty:s=!1,sortFn:f=Gl}=r;return s?(n.watchEffect(()=>{const c=f(n.toValue(o),u);n.isRef(o)?o.value=c:o.splice(0,o.length,...c)}),o):n.computed(()=>f([...n.toValue(o)],u))}function Xl(e={}){const{interimResults:t=!0,continuous:l=!0,maxAlternatives:a=1,window:i=M}=e,o=S.toRef(e.lang||"en-US"),u=n.ref(!1),r=n.ref(!1),s=n.ref(""),f=n.shallowRef(void 0);let c;const d=()=>{u.value||c?.start()},y=()=>{u.value&&c?.stop()},m=(v=!u.value)=>{v?d():y()},p=i&&(i.SpeechRecognition||i.webkitSpeechRecognition),g=x(()=>p);return g.value&&(c=new p,c.continuous=l,c.interimResults=t,c.lang=n.toValue(o),c.maxAlternatives=a,c.onstart=()=>{u.value=!0,r.value=!1},n.watch(o,v=>{c&&!u.value&&(c.lang=v)}),c.onresult=v=>{const w=v.results[v.resultIndex],{transcript:h}=w[0];r.value=w.isFinal,s.value=h,f.value=void 0},c.onerror=v=>{f.value=v},c.onend=()=>{u.value=!1,c.lang=n.toValue(o)},n.watch(u,()=>{u.value?c.start():c.stop()})),S.tryOnScopeDispose(()=>{y()}),{isSupported:g,isListening:u,isFinal:r,recognition:c,result:s,error:f,toggle:m,start:d,stop:y}}function Kl(e,t={}){const{pitch:l=1,rate:a=1,volume:i=1,window:o=M}=t,u=o&&o.speechSynthesis,r=x(()=>u),s=n.ref(!1),f=n.ref("init"),c=S.toRef(e||""),d=S.toRef(t.lang||"en-US"),y=n.shallowRef(void 0),m=(h=!s.value)=>{s.value=h},p=h=>{h.lang=n.toValue(d),h.voice=n.toValue(t.voice)||null,h.pitch=n.toValue(l),h.rate=n.toValue(a),h.volume=i,h.onstart=()=>{s.value=!0,f.value="play"},h.onpause=()=>{s.value=!1,f.value="pause"},h.onresume=()=>{s.value=!0,f.value="play"},h.onend=()=>{s.value=!1,f.value="end"},h.onerror=b=>{y.value=b}},g=n.computed(()=>{s.value=!1,f.value="init";const h=new SpeechSynthesisUtterance(c.value);return p(h),h}),v=()=>{u.cancel(),g&&u.speak(g.value)},w=()=>{u.cancel(),s.value=!1};return r.value&&(p(g.value),n.watch(d,h=>{g.value&&!s.value&&(g.value.lang=h)}),t.voice&&n.watch(t.voice,()=>{u.cancel()}),n.watch(s,()=>{s.value?u.resume():u.pause()})),S.tryOnScopeDispose(()=>{s.value=!1}),{isSupported:r,isPlaying:s,status:f,utterance:g,error:y,stop:w,toggle:m,speak:v}}function Jl(e,t){const l=n.ref(e),a=n.computed(()=>Array.isArray(l.value)?l.value:Object.keys(l.value)),i=n.ref(a.value.indexOf(t??a.value[0])),o=n.computed(()=>c(i.value)),u=n.computed(()=>i.value===0),r=n.computed(()=>i.value===a.value.length-1),s=n.computed(()=>a.value[i.value+1]),f=n.computed(()=>a.value[i.value-1]);function c(_){return Array.isArray(l.value)?l.value[_]:l.value[a.value[_]]}function d(_){if(a.value.includes(_))return c(a.value.indexOf(_))}function y(_){a.value.includes(_)&&(i.value=a.value.indexOf(_))}function m(){r.value||i.value++}function p(){u.value||i.value--}function g(_){O(_)&&y(_)}function v(_){return a.value.indexOf(_)===i.value+1}function w(_){return a.value.indexOf(_)===i.value-1}function h(_){return a.value.indexOf(_)===i.value}function b(_){return i.value<a.value.indexOf(_)}function O(_){return i.value>a.value.indexOf(_)}return{steps:l,stepNames:a,index:i,current:o,next:s,previous:f,isFirst:u,isLast:r,at:c,get:d,goTo:y,goToNext:m,goToPrevious:p,goBackTo:g,isNext:v,isPrevious:w,isCurrent:h,isBefore:b,isAfter:O}}function Ql(e,t,l,a={}){var i;const{flush:o="pre",deep:u=!0,listenToStorageChanges:r=!0,writeDefaults:s=!0,mergeDefaults:f=!1,shallow:c,window:d=M,eventFilter:y,onError:m=b=>{console.error(b)}}=a,p=n.toValue(t),g=We(p),v=(c?n.shallowRef:n.ref)(n.toValue(t)),w=(i=a.serializer)!=null?i:Se[g];if(!l)try{l=ce("getDefaultStorageAsync",()=>{var b;return(b=M)==null?void 0:b.localStorage})()}catch(b){m(b)}async function h(b){if(!(!l||b&&b.key!==e))try{const O=b?b.newValue:await l.getItem(e);if(O==null)v.value=p,s&&p!==null&&await l.setItem(e,await w.write(p));else if(f){const _=await w.read(O);typeof f=="function"?v.value=f(_,p):g==="object"&&!Array.isArray(_)?v.value={...p,..._}:v.value=_}else v.value=await w.read(O)}catch(O){m(O)}}return h(),d&&r&&k(d,"storage",b=>Promise.resolve().then(()=>h(b)),{passive:!0}),l&&S.watchWithFilter(v,async()=>{try{v.value==null?await l.removeItem(e):await l.setItem(e,await w.write(v.value))}catch(b){m(b)}},{flush:o,deep:u,eventFilter:y}),v}let Zl=0;function ea(e,t={}){const l=n.ref(!1),{document:a=j,immediate:i=!0,manual:o=!1,id:u=`vueuse_styletag_${++Zl}`}=t,r=n.ref(e);let s=()=>{};const f=()=>{if(!a)return;const d=a.getElementById(u)||a.createElement("style");d.isConnected||(d.id=u,t.media&&(d.media=t.media),a.head.appendChild(d)),!l.value&&(s=n.watch(r,y=>{d.textContent=y},{immediate:!0}),l.value=!0)},c=()=>{!a||!l.value||(s(),a.head.removeChild(a.getElementById(u)),l.value=!1)};return i&&!o&&S.tryOnMounted(f),o||S.tryOnScopeDispose(c),{id:u,css:r,unload:c,load:f,isLoaded:n.readonly(l)}}function ta(e,t={}){const{threshold:l=50,onSwipe:a,onSwipeEnd:i,onSwipeStart:o,passive:u=!0}=t,r=n.reactive({x:0,y:0}),s=n.reactive({x:0,y:0}),f=n.computed(()=>r.x-s.x),c=n.computed(()=>r.y-s.y),{max:d,abs:y}=Math,m=n.computed(()=>d(y(f.value),y(c.value))>=l),p=n.ref(!1),g=n.computed(()=>m.value?y(f.value)>y(c.value)?f.value>0?"left":"right":c.value>0?"up":"down":"none"),v=T=>[T.touches[0].clientX,T.touches[0].clientY],w=(T,V)=>{r.x=T,r.y=V},h=(T,V)=>{s.x=T,s.y=V},b={passive:u,capture:!u},O=T=>{p.value&&i?.(T,g.value),p.value=!1},_=[k(e,"touchstart",T=>{if(T.touches.length!==1)return;const[V,P]=v(T);w(V,P),h(V,P),o?.(T)},b),k(e,"touchmove",T=>{if(T.touches.length!==1)return;const[V,P]=v(T);h(V,P),b.capture&&!b.passive&&Math.abs(f.value)>Math.abs(c.value)&&T.preventDefault(),!p.value&&m.value&&(p.value=!0),p.value&&a?.(T)},b),k(e,["touchend","touchcancel"],O,b)];return{isSwiping:p,direction:g,coordsStart:r,coordsEnd:s,lengthX:f,lengthY:c,stop:()=>_.forEach(T=>T()),isPassiveEventSupported:!0}}function na(){const e=n.ref([]);return e.value.set=t=>{t&&e.value.push(t)},n.onBeforeUpdate(()=>{e.value.length=0}),e}function la(e={}){const{document:t=j,selector:l="html",observe:a=!1,initialValue:i="ltr"}=e;function o(){var r,s;return(s=(r=t?.querySelector(l))==null?void 0:r.getAttribute("dir"))!=null?s:i}const u=n.ref(o());return S.tryOnMounted(()=>u.value=o()),a&&t&&J(t.querySelector(l),()=>u.value=o(),{attributes:!0}),n.computed({get(){return u.value},set(r){var s,f;u.value=r,t&&(u.value?(s=t.querySelector(l))==null||s.setAttribute("dir",u.value):(f=t.querySelector(l))==null||f.removeAttribute("dir"))}})}function aa(e){var t;const l=(t=e.rangeCount)!=null?t:0;return Array.from({length:l},(a,i)=>e.getRangeAt(i))}function ra(e={}){const{window:t=M}=e,l=n.ref(null),a=n.computed(()=>{var r,s;return(s=(r=l.value)==null?void 0:r.toString())!=null?s:""}),i=n.computed(()=>l.value?aa(l.value):[]),o=n.computed(()=>i.value.map(r=>r.getBoundingClientRect()));function u(){l.value=null,t&&(l.value=t.getSelection())}return t&&k(t.document,"selectionchange",u,{passive:!0}),{text:a,rects:o,ranges:i,selection:l}}function oa(e){var t,l;const a=S.toRef(e?.element),i=S.toRef((t=e?.input)!=null?t:""),o=(l=e?.styleProp)!=null?l:"height",u=n.ref(1),r=n.ref(0);function s(){var f;if(!a.value)return;let c="";a.value.style[o]="1px",u.value=(f=a.value)==null?void 0:f.scrollHeight;const d=n.toValue(e?.styleTarget);d?d.style[o]=`${u.value}px`:c=`${u.value}px`,a.value.style[o]=c}return n.watch([i,a],()=>n.nextTick(s),{immediate:!0}),n.watch(u,()=>{var f;return(f=e?.onResize)==null?void 0:f.call(e)}),de(a,([{contentRect:f}])=>{r.value!==f.width&&(r.value=f.width,s())}),e?.watch&&n.watch(e.watch,s,{immediate:!0,deep:!0}),{textarea:a,input:i,triggerResize:s}}function ia(e,t={}){const{throttle:l=200,trailing:a=!0}=t,i=S.throttleFilter(l,a);return{...Te(e,{...t,eventFilter:i})}}const ua=[{max:6e4,value:1e3,name:"second"},{max:276e4,value:6e4,name:"minute"},{max:72e6,value:36e5,name:"hour"},{max:5184e5,value:864e5,name:"day"},{max:24192e5,value:6048e5,name:"week"},{max:28512e6,value:2592e6,name:"month"},{max:Number.POSITIVE_INFINITY,value:31536e6,name:"year"}],sa={justNow:"just now",past:e=>e.match(/\d/)?`${e} ago`:e,future:e=>e.match(/\d/)?`in ${e}`:e,month:(e,t)=>e===1?t?"last month":"next month":`${e} month${e>1?"s":""}`,year:(e,t)=>e===1?t?"last year":"next year":`${e} year${e>1?"s":""}`,day:(e,t)=>e===1?t?"yesterday":"tomorrow":`${e} day${e>1?"s":""}`,week:(e,t)=>e===1?t?"last week":"next week":`${e} week${e>1?"s":""}`,hour:e=>`${e} hour${e>1?"s":""}`,minute:e=>`${e} minute${e>1?"s":""}`,second:e=>`${e} second${e>1?"s":""}`,invalid:""};function ca(e){return e.toISOString().slice(0,10)}function fa(e,t={}){const{controls:l=!1,updateInterval:a=3e4}=t,{now:i,...o}=nt({interval:a,controls:!0}),u=n.computed(()=>ft(new Date(n.toValue(e)),t,n.toValue(i)));return l?{timeAgo:u,...o}:u}function ft(e,t={},l=Date.now()){var a;const{max:i,messages:o=sa,fullDateFormatter:u=ca,units:r=ua,showSecond:s=!1,rounding:f="round"}=t,c=typeof f=="number"?v=>+v.toFixed(f):Math[f],d=+l-+e,y=Math.abs(d);function m(v,w){return c(Math.abs(v)/w.value)}function p(v,w){const h=m(v,w),b=v>0,O=g(w.name,h,b);return g(b?"past":"future",O,b)}function g(v,w,h){const b=o[v];return typeof b=="function"?b(w,h):b.replace("{0}",w.toString())}if(y<6e4&&!s)return o.justNow;if(typeof i=="number"&&y>i)return u(new Date(e));if(typeof i=="string"){const v=(a=r.find(w=>w.name===i))==null?void 0:a.max;if(v&&y>v)return u(new Date(e))}for(const[v,w]of r.entries()){if(m(d,w)<=0&&r[v-1])return p(d,r[v-1]);if(y<w.max)return p(d,w)}return o.invalid}function da(e,t,l={}){const{immediate:a=!0}=l,{start:i}=S.useTimeoutFn(u,t,{immediate:!1}),o=n.ref(!1);async function u(){o.value&&(await e(),i())}function r(){o.value||(o.value=!0,u())}function s(){o.value=!1}return a&&S.isClient&&r(),S.tryOnScopeDispose(s),{isActive:o,pause:s,resume:r}}function ma(e={}){const{controls:t=!1,offset:l=0,immediate:a=!0,interval:i="requestAnimationFrame",callback:o}=e,u=n.ref(S.timestamp()+l),r=()=>u.value=S.timestamp()+l,s=o?()=>{r(),o(u.value)}:r,f=i==="requestAnimationFrame"?Y(s,{immediate:a}):S.useIntervalFn(s,i,{immediate:a});return t?{timestamp:u,...f}:u}function pa(e=null,t={}){var l,a,i;const{document:o=j,restoreOnUnmount:u=d=>d}=t,r=(l=o?.title)!=null?l:"",s=S.toRef((a=e??o?.title)!=null?a:null),f=!!(e&&typeof e=="function");function c(d){if(!("titleTemplate"in t))return d;const y=t.titleTemplate||"%s";return typeof y=="function"?y(d):n.toValue(y).replace(/%s/g,d)}return n.watch(s,(d,y)=>{d!==y&&o&&(o.title=c(d??""))},{immediate:!0}),t.observe&&!t.titleTemplate&&o&&!f&&J((i=o.head)==null?void 0:i.querySelector("title"),()=>{o&&o.title!==s.value&&(s.value=c(o.title))},{childList:!0}),S.tryOnBeforeUnmount(()=>{if(u){const d=u(r,s.value||"");d!=null&&o&&(o.title=d)}}),s}const va={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]},ya=Object.assign({},{linear:S.identity},va);function ha([e,t,l,a]){const i=(c,d)=>1-3*d+3*c,o=(c,d)=>3*d-6*c,u=c=>3*c,r=(c,d,y)=>((i(d,y)*c+o(d,y))*c+u(d))*c,s=(c,d,y)=>3*i(d,y)*c*c+2*o(d,y)*c+u(d),f=c=>{let d=c;for(let y=0;y<4;++y){const m=s(d,e,l);if(m===0)return d;const p=r(d,e,l)-c;d-=p/m}return d};return c=>e===t&&l===a?c:r(f(c),t,a)}function dt(e,t,l){return e+l*(t-e)}function Ve(e){return(typeof e=="number"?[e]:e)||[]}function mt(e,t,l,a={}){var i,o;const u=n.toValue(t),r=n.toValue(l),s=Ve(u),f=Ve(r),c=(i=n.toValue(a.duration))!=null?i:1e3,d=Date.now(),y=Date.now()+c,m=typeof a.transition=="function"?a.transition:(o=n.toValue(a.transition))!=null?o:S.identity,p=typeof m=="function"?m:ha(m);return new Promise(g=>{e.value=u;const v=()=>{var w;if((w=a.abort)!=null&&w.call(a)){g();return}const h=Date.now(),b=p((h-d)/c),O=Ve(e.value).map((_,C)=>dt(s[C],f[C],b));Array.isArray(e.value)?e.value=O.map((_,C)=>{var T,V;return dt((T=s[C])!=null?T:0,(V=f[C])!=null?V:0,b)}):typeof e.value=="number"&&(e.value=O[0]),h<y?requestAnimationFrame(v):(e.value=r,g())};v()})}function ga(e,t={}){let l=0;const a=()=>{const o=n.toValue(e);return typeof o=="number"?o:o.map(n.toValue)},i=n.ref(a());return n.watch(a,async o=>{var u,r;if(n.toValue(t.disabled))return;const s=++l;if(t.delay&&await S.promiseTimeout(n.toValue(t.delay)),s!==l)return;const f=Array.isArray(o)?o.map(n.toValue):n.toValue(o);(u=t.onStarted)==null||u.call(t),await mt(i,i.value,f,{...t,abort:()=>{var c;return s!==l||((c=t.abort)==null?void 0:c.call(t))}}),(r=t.onFinished)==null||r.call(t)},{deep:!0}),n.watch(()=>n.toValue(t.disabled),o=>{o&&(l++,i.value=a())}),S.tryOnScopeDispose(()=>{l++}),n.computed(()=>n.toValue(t.disabled)?a():i.value)}function wa(e="history",t={}){const{initialValue:l={},removeNullishValues:a=!0,removeFalsyValues:i=!1,write:o=!0,writeMode:u="replace",window:r=M}=t;if(!r)return n.reactive(l);const s=n.reactive({});function f(){if(e==="history")return r.location.search||"";if(e==="hash"){const b=r.location.hash||"",O=b.indexOf("?");return O>0?b.slice(O):""}else return(r.location.hash||"").replace(/^#/,"")}function c(b){const O=b.toString();if(e==="history")return`${O?`?${O}`:""}${r.location.hash||""}`;if(e==="hash-params")return`${r.location.search||""}${O?`#${O}`:""}`;const _=r.location.hash||"#",C=_.indexOf("?");return C>0?`${r.location.search||""}${_.slice(0,C)}${O?`?${O}`:""}`:`${r.location.search||""}${_}${O?`?${O}`:""}`}function d(){return new URLSearchParams(f())}function y(b){const O=new Set(Object.keys(s));for(const _ of b.keys()){const C=b.getAll(_);s[_]=C.length>1?C:b.get(_)||"",O.delete(_)}Array.from(O).forEach(_=>delete s[_])}const{pause:m,resume:p}=S.pausableWatch(s,()=>{const b=new URLSearchParams("");Object.keys(s).forEach(O=>{const _=s[O];Array.isArray(_)?_.forEach(C=>b.append(O,C)):a&&_==null||i&&!_?b.delete(O):b.set(O,_)}),g(b,!1)},{deep:!0});function g(b,O){m(),O&&y(b),u==="replace"?r.history.replaceState(r.history.state,r.document.title,r.location.pathname+c(b)):r.history.pushState(r.history.state,r.document.title,r.location.pathname+c(b)),p()}function v(){o&&g(d(),!0)}const w={passive:!0};k(r,"popstate",v,w),e!=="history"&&k(r,"hashchange",v,w);const h=d();return h.keys().next().value?y(h):Object.assign(s,l),s}function ba(e={}){var t,l;const a=n.ref((t=e.enabled)!=null?t:!1),i=n.ref((l=e.autoSwitch)!=null?l:!0),o=n.ref(e.constraints),{navigator:u=q}=e,r=x(()=>{var g;return(g=u?.mediaDevices)==null?void 0:g.getUserMedia}),s=n.shallowRef();function f(g){switch(g){case"video":{if(o.value)return o.value.video||!1;break}case"audio":{if(o.value)return o.value.audio||!1;break}}}async function c(){if(!(!r.value||s.value))return s.value=await u.mediaDevices.getUserMedia({video:f("video"),audio:f("audio")}),s.value}function d(){var g;(g=s.value)==null||g.getTracks().forEach(v=>v.stop()),s.value=void 0}function y(){d(),a.value=!1}async function m(){return await c(),s.value&&(a.value=!0),s.value}async function p(){return d(),await m()}return n.watch(a,g=>{g?c():d()},{immediate:!0}),n.watch(o,()=>{i.value&&s.value&&p()},{immediate:!0}),S.tryOnScopeDispose(()=>{y()}),{isSupported:r,stream:s,start:m,stop:y,restart:p,constraints:o,enabled:a,autoSwitch:i}}function pt(e,t,l,a={}){var i,o,u;const{clone:r=!1,passive:s=!1,eventName:f,deep:c=!1,defaultValue:d,shouldEmit:y}=a,m=n.getCurrentInstance(),p=l||m?.emit||((i=m?.$emit)==null?void 0:i.bind(m))||((u=(o=m?.proxy)==null?void 0:o.$emit)==null?void 0:u.bind(m?.proxy));let g=f;t||(t="modelValue"),g=g||`update:${t.toString()}`;const v=b=>r?typeof r=="function"?r(b):te(b):b,w=()=>S.isDef(e[t])?v(e[t]):d,h=b=>{y?y(b)&&p(g,b):p(g,b)};if(s){const b=w(),O=n.ref(b);let _=!1;return n.watch(()=>e[t],C=>{_||(_=!0,O.value=v(C),n.nextTick(()=>_=!1))}),n.watch(O,C=>{!_&&(C!==e[t]||c)&&h(C)},{deep:c}),O}else return n.computed({get(){return w()},set(b){h(b)}})}function Sa(e,t,l={}){const a={};for(const i in e)a[i]=pt(e,i,t,l);return a}function Ea(e){const{pattern:t=[],interval:l=0,navigator:a=q}=e||{},i=x(()=>typeof a<"u"&&"vibrate"in a),o=S.toRef(t);let u;const r=(f=o.value)=>{i.value&&a.vibrate(f)},s=()=>{i.value&&a.vibrate(0),u?.pause()};return l>0&&(u=S.useIntervalFn(r,l,{immediate:!1,immediateCallback:!1})),{isSupported:i,pattern:t,intervalControls:u,vibrate:r,stop:s}}function Ta(e,t){const{containerStyle:l,wrapperProps:a,scrollTo:i,calculateRange:o,currentList:u,containerRef:r}="itemHeight"in t?_a(t,e):ka(t,e);return{list:u,scrollTo:i,containerProps:{ref:r,onScroll:()=>{o()},style:l},wrapperProps:a}}function vt(e){const t=n.ref(null),l=qe(t),a=n.ref([]),i=n.shallowRef(e);return{state:n.ref({start:0,end:10}),source:i,currentList:a,size:l,containerRef:t}}function yt(e,t,l){return a=>{if(typeof l=="number")return Math.ceil(a/l);const{start:i=0}=e.value;let o=0,u=0;for(let r=i;r<t.value.length;r++){const s=l(r);if(o+=s,u=r,o>a)break}return u-i}}function ht(e,t){return l=>{if(typeof t=="number")return Math.floor(l/t)+1;let a=0,i=0;for(let o=0;o<e.value.length;o++){const u=t(o);if(a+=u,a>=l){i=o;break}}return i+1}}function gt(e,t,l,a,{containerRef:i,state:o,currentList:u,source:r}){return()=>{const s=i.value;if(s){const f=l(e==="vertical"?s.scrollTop:s.scrollLeft),c=a(e==="vertical"?s.clientHeight:s.clientWidth),d=f-t,y=f+c+t;o.value={start:d<0?0:d,end:y>r.value.length?r.value.length:y},u.value=r.value.slice(o.value.start,o.value.end).map((m,p)=>({data:m,index:p+o.value.start}))}}}function wt(e,t){return l=>typeof e=="number"?l*e:t.value.slice(0,l).reduce((i,o,u)=>i+e(u),0)}function bt(e,t,l,a){n.watch([e.width,e.height,t,l],()=>{a()})}function St(e,t){return n.computed(()=>typeof e=="number"?t.value.length*e:t.value.reduce((l,a,i)=>l+e(i),0))}const Oa={horizontal:"scrollLeft",vertical:"scrollTop"};function Et(e,t,l,a){return i=>{a.value&&(a.value[Oa[e]]=l(i),t())}}function ka(e,t){const l=vt(t),{state:a,source:i,currentList:o,size:u,containerRef:r}=l,s={overflowX:"auto"},{itemWidth:f,overscan:c=5}=e,d=yt(a,i,f),y=ht(i,f),m=gt("horizontal",c,y,d,l),p=wt(f,i),g=n.computed(()=>p(a.value.start)),v=St(f,i);bt(u,t,r,m);const w=Et("horizontal",m,p,r),h=n.computed(()=>({style:{height:"100%",width:`${v.value-g.value}px`,marginLeft:`${g.value}px`,display:"flex"}}));return{scrollTo:w,calculateRange:m,wrapperProps:h,containerStyle:s,currentList:o,containerRef:r}}function _a(e,t){const l=vt(t),{state:a,source:i,currentList:o,size:u,containerRef:r}=l,s={overflowY:"auto"},{itemHeight:f,overscan:c=5}=e,d=yt(a,i,f),y=ht(i,f),m=gt("vertical",c,y,d,l),p=wt(f,i),g=n.computed(()=>p(a.value.start)),v=St(f,i);bt(u,t,r,m);const w=Et("vertical",m,p,r),h=n.computed(()=>({style:{width:"100%",height:`${v.value-g.value}px`,marginTop:`${g.value}px`}}));return{calculateRange:m,scrollTo:w,containerStyle:s,wrapperProps:h,currentList:o,containerRef:r}}function Ra(e={}){const{navigator:t=q,document:l=j}=e,a=n.ref(!1),i=n.shallowRef(null),o=ze({document:l}),u=x(()=>t&&"wakeLock"in t),r=n.computed(()=>!!i.value&&o.value==="visible");u.value&&(k(i,"release",()=>{var d,y;a.value=(y=(d=i.value)==null?void 0:d.type)!=null?y:!1},{passive:!0}),S.whenever(()=>o.value==="visible"&&l?.visibilityState==="visible"&&a.value,d=>{a.value=!1,s(d)}));async function s(d){var y;await((y=i.value)==null?void 0:y.release()),i.value=u.value?await t.wakeLock.request(d):null}async function f(d){o.value==="visible"?await s(d):a.value=d}async function c(){a.value=!1;const d=i.value;i.value=null,await d?.release()}return{sentinel:i,isSupported:u,isActive:r,request:f,forceRequest:s,release:c}}function Va(e={}){const{window:t=M,requestPermissions:l=!0}=e,a=e,i=x(()=>{if(!t||!("Notification"in t))return!1;if(Notification.permission==="granted")return!0;try{const h=new Notification("");h.onshow=()=>{h.close()}}catch(h){if(h.name==="TypeError")return!1}return!0}),o=n.ref(i.value&&"permission"in Notification&&Notification.permission==="granted"),u=n.ref(null),r=async()=>{if(i.value)return!o.value&&Notification.permission!=="denied"&&await Notification.requestPermission()==="granted"&&(o.value=!0),o.value},{on:s,trigger:f}=S.createEventHook(),{on:c,trigger:d}=S.createEventHook(),{on:y,trigger:m}=S.createEventHook(),{on:p,trigger:g}=S.createEventHook(),v=async h=>{if(!i.value||!o.value)return;const b=Object.assign({},a,h);return u.value=new Notification(b.title||"",b),u.value.onclick=f,u.value.onshow=d,u.value.onerror=m,u.value.onclose=g,u.value},w=()=>{u.value&&u.value.close(),u.value=null};if(l&&S.tryOnMounted(r),S.tryOnScopeDispose(w),i.value&&t){const h=t.document;k(h,"visibilitychange",b=>{b.preventDefault(),h.visibilityState==="visible"&&w()})}return{isSupported:i,notification:u,ensurePermissions:r,permissionGranted:o,show:v,close:w,onClick:s,onShow:c,onError:y,onClose:p}}const Tt="ping";function Fe(e){return e===!0?{}:e}function Fa(e,t={}){const{onConnected:l,onDisconnected:a,onError:i,onMessage:o,immediate:u=!0,autoConnect:r=!0,autoClose:s=!0,protocols:f=[]}=t,c=n.ref(null),d=n.ref("CLOSED"),y=n.ref(),m=S.toRef(e);let p,g,v=!1,w=0,h=[],b,O;const _=()=>{if(h.length&&y.value&&d.value==="OPEN"){for(const R of h)y.value.send(R);h=[]}},C=()=>{b!=null&&(clearTimeout(b),b=void 0)},T=()=>{clearTimeout(O),O=void 0},V=(R=1e3,F)=>{C(),!(!S.isClient&&!S.isWorker||!y.value)&&(v=!0,T(),p?.(),y.value.close(R,F),y.value=void 0)},P=(R,F=!0)=>!y.value||d.value!=="OPEN"?(F&&h.push(R),!1):(_(),y.value.send(R),!0),I=()=>{if(v||typeof m.value>"u")return;const R=new WebSocket(m.value,f);y.value=R,d.value="CONNECTING",R.onopen=()=>{d.value="OPEN",w=0,l?.(R),g?.(),_()},R.onclose=F=>{if(d.value="CLOSED",a?.(R,F),!v&&t.autoReconnect&&(y.value==null||R===y.value)){const{retries:L=-1,delay:H=1e3,onFailed:W}=Fe(t.autoReconnect);typeof L=="number"&&(L<0||w<L)?(w+=1,b=setTimeout(I,H)):typeof L=="function"&&L()?b=setTimeout(I,H):W?.()}},R.onerror=F=>{i?.(R,F)},R.onmessage=F=>{if(t.heartbeat){T();const{message:L=Tt,responseMessage:H=L}=Fe(t.heartbeat);if(F.data===n.toValue(H))return}c.value=F.data,o?.(R,F)}};if(t.heartbeat){const{message:R=Tt,interval:F=1e3,pongTimeout:L=1e3}=Fe(t.heartbeat),{pause:H,resume:W}=S.useIntervalFn(()=>{P(n.toValue(R),!1),O==null&&(O=setTimeout(()=>{V(),v=!1},L))},F,{immediate:!1});p=H,g=W}s&&(S.isClient&&k("beforeunload",()=>V(),{passive:!0}),S.tryOnScopeDispose(V));const D=()=>{!S.isClient&&!S.isWorker||(V(),v=!1,w=0,I())};return u&&D(),r&&n.watch(m,D),{data:c,status:d,close:V,send:P,open:D,ws:y}}function Pa(e,t,l){const{window:a=M}=l??{},i=n.ref(null),o=n.shallowRef(),u=(...s)=>{o.value&&o.value.postMessage(...s)},r=function(){o.value&&o.value.terminate()};return a&&(typeof e=="string"?o.value=new Worker(e,t):typeof e=="function"?o.value=e():o.value=e,o.value.onmessage=s=>{i.value=s.data},S.tryOnScopeDispose(()=>{o.value&&o.value.terminate()})),{data:i,post:u,terminate:r,worker:o}}function Ca(e,t){if(e.length===0&&t.length===0)return"";const l=e.map(o=>`'${o}'`).toString(),a=t.filter(o=>typeof o=="function").map(o=>{const u=o.toString();return u.trim().startsWith("function")?u:`const ${o.name} = ${u}`}).join(";"),i=`importScripts(${l});`;return`${l.trim()===""?"":i} ${a}`}function Da(e){return t=>{const l=t.data[0];return Promise.resolve(e.apply(void 0,l)).then(a=>{postMessage(["SUCCESS",a])}).catch(a=>{postMessage(["ERROR",a])})}}function Aa(e,t,l){const a=`${Ca(t,l)}; onmessage=(${Da})(${e})`,i=new Blob([a],{type:"text/javascript"});return URL.createObjectURL(i)}function Ma(e,t={}){const{dependencies:l=[],localDependencies:a=[],timeout:i,window:o=M}=t,u=n.ref(),r=n.ref("PENDING"),s=n.ref({}),f=n.ref(),c=(p="PENDING")=>{u.value&&u.value._url&&o&&(u.value.terminate(),URL.revokeObjectURL(u.value._url),s.value={},u.value=void 0,o.clearTimeout(f.value),r.value=p)};c(),S.tryOnScopeDispose(c);const d=()=>{const p=Aa(e,l,a),g=new Worker(p);return g._url=p,g.onmessage=v=>{const{resolve:w=()=>{},reject:h=()=>{}}=s.value,[b,O]=v.data;switch(b){case"SUCCESS":w(O),c(b);break;default:h(O),c("ERROR");break}},g.onerror=v=>{const{reject:w=()=>{}}=s.value;v.preventDefault(),w(v),c("ERROR")},i&&(f.value=setTimeout(()=>c("TIMEOUT_EXPIRED"),i)),g},y=(...p)=>new Promise((g,v)=>{var w;s.value={resolve:g,reject:v},(w=u.value)==null||w.postMessage([[...p]]),r.value="RUNNING"});return{workerFn:(...p)=>r.value==="RUNNING"?(console.error("[useWebWorkerFn] You can only run one instance of the worker at a time."),Promise.reject()):(u.value=d(),y(...p)),workerStatus:r,workerTerminate:c}}function Ia(e={}){const{window:t=M}=e;if(!t)return n.ref(!1);const l=n.ref(t.document.hasFocus()),a={passive:!0};return k(t,"blur",()=>{l.value=!1},a),k(t,"focus",()=>{l.value=!0},a),l}function La(e={}){const{window:t=M,...l}=e;return Oe(t,l)}function Na(e={}){const{window:t=M,initialWidth:l=Number.POSITIVE_INFINITY,initialHeight:a=Number.POSITIVE_INFINITY,listenOrientation:i=!0,includeScrollbar:o=!0,type:u="inner"}=e,r=n.ref(l),s=n.ref(a),f=()=>{if(t)if(u==="outer")r.value=t.outerWidth,s.value=t.outerHeight;else if(u==="visual"&&t.visualViewport){const{width:d,height:y,scale:m}=t.visualViewport;r.value=Math.round(d*m),s.value=Math.round(y*m)}else o?(r.value=t.innerWidth,s.value=t.innerHeight):(r.value=t.document.documentElement.clientWidth,s.value=t.document.documentElement.clientHeight)};f(),S.tryOnMounted(f);const c={passive:!0};if(k("resize",f,c),t&&u==="visual"&&t.visualViewport&&k(t.visualViewport,"resize",f,c),i){const d=$("(orientation: portrait)");n.watch(d,()=>f())}return{width:r,height:s}}E.DefaultMagicKeysAliasMap=Qe,E.StorageSerializers=Se,E.TransitionPresets=ya,E.asyncComputed=Pe,E.breakpointsAntDesign=nn,E.breakpointsBootstrapV5=Zt,E.breakpointsElement=un,E.breakpointsMasterCss=rn,E.breakpointsPrimeFlex=on,E.breakpointsQuasar=ln,E.breakpointsSematic=an,E.breakpointsTailwind=Qt,E.breakpointsVuetify=tn,E.breakpointsVuetifyV2=Ie,E.breakpointsVuetifyV3=en,E.cloneFnJSON=te,E.computedAsync=Pe,E.computedInject=kt,E.createFetch=jn,E.createReusableTemplate=_t,E.createTemplatePromise=Vt,E.createUnrefFn=Ft,E.customStorageEventName=Ee,E.defaultDocument=j,E.defaultLocation=Pt,E.defaultNavigator=q,E.defaultWindow=M,E.executeTransition=mt,E.formatTimeAgo=ft,E.getSSRHandler=ce,E.mapGamepadToXbox360Controller=ll,E.onClickOutside=Ct,E.onElementRemoval=he,E.onKeyDown=At,E.onKeyPressed=Mt,E.onKeyStroke=oe,E.onKeyUp=It,E.onLongPress=xt,E.onStartTyping=Ut,E.provideSSRWidth=Jt,E.setSSRHandler=hn,E.templateRef=$t,E.unrefElement=N,E.useActiveElement=Ae,E.useAnimate=Bt,E.useAsyncQueue=jt,E.useAsyncState=Me,E.useBase64=Gt,E.useBattery=Xt,E.useBluetooth=Kt,E.useBreakpoints=sn,E.useBroadcastChannel=cn,E.useBrowserLocation=fn,E.useCached=dn,E.useClipboard=mn,E.useClipboardItems=pn,E.useCloned=vn,E.useColorMode=He,E.useConfirmDialog=wn,E.useCountdown=bn,E.useCssVar=ne,E.useCurrentElement=Ue,E.useCycleList=Sn,E.useDark=En,E.useDebouncedRefHistory=_n,E.useDeviceMotion=Rn,E.useDeviceOrientation=je,E.useDevicePixelRatio=Vn,E.useDevicesList=Fn,E.useDisplayMedia=Pn,E.useDocumentVisibility=ze,E.useDraggable=Cn,E.useDropZone=Dn,E.useElementBounding=An,E.useElementByPoint=Mn,E.useElementHover=In,E.useElementSize=qe,E.useElementVisibility=Ye,E.useEventBus=Ln,E.useEventListener=k,E.useEventSource=xn,E.useEyeDropper=Wn,E.useFavicon=Hn,E.useFetch=Xe,E.useFileDialog=Yn,E.useFileSystemAccess=Xn,E.useFocus=Kn,E.useFocusWithin=el,E.useFps=tl,E.useFullscreen=nl,E.useGamepad=al,E.useGeolocation=rl,E.useIdle=ul,E.useImage=cl,E.useInfiniteScroll=fl,E.useIntersectionObserver=Ge,E.useKeyModifier=ml,E.useLocalStorage=pl,E.useMagicKeys=vl,E.useManualRefHistory=Be,E.useMediaControls=gl,E.useMediaQuery=$,E.useMemoize=wl,E.useMemory=bl,E.useMounted=De,E.useMouse=Ze,E.useMouseInElement=et,E.useMousePressed=El,E.useMutationObserver=J,E.useNavigatorLanguage=Tl,E.useNetwork=tt,E.useNow=nt,E.useObjectUrl=Ol,E.useOffsetPagination=kl,E.useOnline=_l,E.usePageLeave=Rl,E.useParallax=Vl,E.useParentElement=Fl,E.usePerformanceObserver=Pl,E.usePermission=ie,E.usePointer=Dl,E.usePointerLock=Al,E.usePointerSwipe=Ml,E.usePreferredColorScheme=Il,E.usePreferredContrast=Ll,E.usePreferredDark=xe,E.usePreferredLanguages=Nl,E.usePreferredReducedMotion=xl,E.usePreferredReducedTransparency=Wl,E.usePrevious=Hl,E.useRafFn=Y,E.useRefHistory=Te,E.useResizeObserver=de,E.useSSRWidth=be,E.useScreenOrientation=at,E.useScreenSafeArea=Ul,E.useScriptTag=$l,E.useScroll=Oe,E.useScrollLock=jl,E.useSessionStorage=zl,E.useShare=ql,E.useSorted=Yl,E.useSpeechRecognition=Xl,E.useSpeechSynthesis=Kl,E.useStepper=Jl,E.useStorage=fe,E.useStorageAsync=Ql,E.useStyleTag=ea,E.useSupported=x,E.useSwipe=ta,E.useTemplateRefsList=na,E.useTextDirection=la,E.useTextSelection=ra,E.useTextareaAutosize=oa,E.useThrottledRefHistory=ia,E.useTimeAgo=fa,E.useTimeoutPoll=da,E.useTimestamp=ma,E.useTitle=pa,E.useTransition=ga,E.useUrlSearchParams=wa,E.useUserMedia=ba,E.useVModel=pt,E.useVModels=Sa,E.useVibrate=Ea,E.useVirtualList=Ta,E.useWakeLock=Ra,E.useWebNotification=Va,E.useWebSocket=Fa,E.useWebWorker=Pa,E.useWebWorkerFn=Ma,E.useWindowFocus=Ia,E.useWindowScroll=La,E.useWindowSize=Na,Object.keys(S).forEach(function(e){e!=="default"&&!Object.prototype.hasOwnProperty.call(E,e)&&Object.defineProperty(E,e,{enumerable:!0,get:function(){return S[e]}})})})(this.VueUse=this.VueUse||{},VueUse,Vue);
|
@@ -0,0 +1 @@
|
|
1
|
+
(function(n,c){typeof exports=="object"&&typeof module!="undefined"?c(exports):typeof define=="function"&&define.amd?define(["exports"],c):(n=typeof globalThis!="undefined"?globalThis:n||self,c(n.UniApp={}))})(this,function(n){"use strict";const c=Object.assign,d=Object.prototype.hasOwnProperty,u=(o,e)=>d.call(o,e),h=Object.prototype.toString,g=o=>h.call(o),O=o=>g(o)==="[object Object]",A=(o=>{const e=Object.create(null);return a=>e[a]||(e[a]=o(a))})(o=>o.charAt(0).toUpperCase()+o.slice(1)),R="__uniSSR",N="data",T="globalData",f="onShow",I="onHide",E="onLaunch",C="onError",B="onThemeChange",P="onPageNotFound",v="onUnhandledRejection",w="onExit",b="onLoad",m="onReady",D="onUnload",H="onInit",L="onSaveExitState",U="onResize",p="onBackPress",y="onPageScroll",F="onTabItemTap",V="onReachBottom",j="onPullDownRefresh",G="onShareTimeline",M="onAddToFavorites",k="onShareAppMessage",z="onNavigationBarButtonTap",q="onNavigationBarSearchInputClicked",J="onNavigationBarSearchInputChanged",K="onNavigationBarSearchInputConfirmed",W="onNavigationBarSearchInputFocusChanged",X=o=>o&&JSON.parse(JSON.stringify(o))||o;function Y(){return Vue.getCurrentInstance()?N:T}function Z(o,e=!1){if(!o)throw new Error(`${e?"shallowSsrRef":"ssrRef"}: You must provide a key.`)}const S=(o,e,a=!1)=>{const i=a?Vue.shallowRef(o):Vue.ref(o);if(typeof window=="undefined")return i;const s=window[R];if(!s)return i;const r=Y();return Z(e,a),u(s[r],e)&&(i.value=s[r][e],r===N&&delete s[r][e]),i},$={},Q=(o,e)=>S(o,e),x=(o,e)=>S(o,e,!0);function nn(){return X($)}function on(){return uni.getSubNVueById(plus.webview.currentWebview().id)}function en(o){return weex.requireModule(o)}function tn(o,e,...a){uni.__log__?uni.__log__(o,e,...a):console[o].apply(console,[...a,e])}function an(o,e,...a){e&&a.push(e),console[o].apply(console,a)}function cn(o,e){return typeof o=="string"?e:o}const t=o=>(e,a=Vue.getCurrentInstance())=>{!Vue.isInSSRComponentSetup&&Vue.injectHook(o,e,a)},_=t(f),l=t(I),sn=t(E),rn=t(C),un=t(B),Nn=t(P),Sn=t(v),_n=t(w),ln=t(H),dn=t(b),hn=t(m),gn=t(D),On=t(U),An=t(p),Rn=t(y),Tn=t(F),fn=t(V),In=t(j),En=t(L),Cn=t(G),Bn=t(M),Pn=t(k),vn=t(z),wn=t(J),bn=t(q),mn=t(K),Dn=t(W),Hn=l,Ln=_;function Un(o,e,a=null){return o[e]?o[e](a):null}n.capitalize=A,n.extend=c,n.formatAppLog=tn,n.formatLog=an,n.getCurrentSubNVue=on,n.getSsrGlobalData=nn,n.hasOwn=u,n.isPlainObject=O,n.onAddToFavorites=Bn,n.onBackPress=An,n.onError=rn,n.onExit=_n,n.onHide=l,n.onInit=ln,n.onLaunch=sn,n.onLoad=dn,n.onNavigationBarButtonTap=vn,n.onNavigationBarSearchInputChanged=wn,n.onNavigationBarSearchInputClicked=bn,n.onNavigationBarSearchInputConfirmed=mn,n.onNavigationBarSearchInputFocusChanged=Dn,n.onPageHide=Hn,n.onPageNotFound=Nn,n.onPageScroll=Rn,n.onPageShow=Ln,n.onPullDownRefresh=In,n.onReachBottom=fn,n.onReady=hn,n.onResize=On,n.onSaveExitState=En,n.onShareAppMessage=Pn,n.onShareTimeline=Cn,n.onShow=_,n.onTabItemTap=Tn,n.onThemeChange=un,n.onUnhandledRejection=Sn,n.onUnload=gn,n.renderComponentSlot=Un,n.requireNativePlugin=en,n.resolveEasycom=cn,n.shallowSsrRef=x,n.ssrRef=Q,Object.defineProperty(n,Symbol.toStringTag,{value:"Module"})});
|