var VueDemi=function(g,d,a){if(g.install)return g;if(!d)return console.error("[vue-demi] no Vue instance found, please be sure to import `vue` before `vue-demi`."),g;if(d.version.slice(0,4)==="2.7."){let x=function(j,C){var L,W={},se={config:d.config,use:d.use.bind(d),mixin:d.mixin.bind(d),component:d.component.bind(d),provide:function(S,J){return W[S]=J,this},directive:function(S,J){return J?(d.directive(S,J),se):d.directive(S)},mount:function(S,J){return L||(L=new d(Object.assign({propsData:C},j,{provide:Object.assign(W,j.provide)})),L.$mount(S,J),L)},unmount:function(){L&&(L.$destroy(),L=void 0)}};return se};var mn=x;for(var X in d)g[X]=d[X];g.isVue2=!0,g.isVue3=!1,g.install=function(){},g.Vue=d,g.Vue2=d,g.version=d.version,g.warn=d.util.warn,g.createApp=x}else if(d.version.slice(0,2)==="2.")if(a){for(var X in a)g[X]=a[X];g.isVue2=!0,g.isVue3=!1,g.install=function(){},g.Vue=d,g.Vue2=d,g.version=d.version}else console.error("[vue-demi] no VueCompositionAPI instance found, please be sure to import `@vue/composition-api` before `vue-demi`.");else if(d.version.slice(0,2)==="3."){for(var X in d)g[X]=d[X];g.isVue2=!1,g.isVue3=!0,g.install=function(){},g.Vue=d,g.Vue2=void 0,g.version=d.version,g.set=function(x,j,C){return Array.isArray(x)?(x.length=Math.max(x.length,j),x.splice(j,1,C),C):(x[j]=C,C)},g.del=function(x,j){if(Array.isArray(x)){x.splice(j,1);return}delete x[j]}}else console.error("[vue-demi] Vue version "+d.version+" is unsupported.");return g}(this.VueDemi=this.VueDemi||(typeof VueDemi!="undefined"?VueDemi:{}),this.Vue||(typeof Vue!="undefined"?Vue:void 0),this.VueCompositionAPI||(typeof VueCompositionAPI!="undefined"?VueCompositionAPI:void 0));(function(g,d,a){"use strict";function X(e,t,n){let r;a.isRef(n)?r={evaluating:n}:r=n||{};const{lazy:o=!1,evaluating:s=void 0,onError:u=d.noop}=r,l=a.ref(!o),i=a.ref(t);let c=0;return a.watchEffect(async f=>{if(!l.value)return;c++;const v=c;let m=!1;s&&Promise.resolve().then(()=>{s.value=!0});try{const p=await e(y=>{f(()=>{s&&(s.value=!1),m||y()})});v===c&&(i.value=p)}catch(p){u(p)}finally{s&&v===c&&(s.value=!1),m=!0}}),o?a.computed(()=>(l.value=!0,i.value)):i}function mn(e,t,n,r){let o=a.inject(e);return n&&(o=a.inject(e,n)),r&&(o=a.inject(e,n,r)),typeof t=="function"?a.computed(s=>t(o,s)):a.computed({get:s=>t.get(o,s),set:t.set})}const x=e=>function(...t){return e.apply(this,t.map(n=>a.unref(n)))};function j(e){var t;const n=d.resolveUnref(e);return(t=n==null?void 0:n.$el)!=null?t:n}const C=d.isClient?window:void 0,L=d.isClient?window.document:void 0,W=d.isClient?window.navigator:void 0,se=d.isClient?window.location:void 0;function S(...e){let t,n,r,o;if(d.isString(e[0])||Array.isArray(e[0])?([n,r,o]=e,t=C):[t,n,r,o]=e,!t)return d.noop;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const s=[],u=()=>{s.forEach(f=>f()),s.length=0},l=(f,v,m)=>(f.addEventListener(v,m,o),()=>f.removeEventListener(v,m,o)),i=a.watch(()=>j(t),f=>{u(),!!f&&s.push(...n.flatMap(v=>r.map(m=>l(f,v,m))))},{immediate:!0,flush:"post"}),c=()=>{i(),u()};return d.tryOnScopeDispose(c),c}function J(e,t,n={}){const{window:r=C,ignore:o=[],capture:s=!0,detectIframe:u=!1}=n;if(!r)return;let l=!0,i;const c=p=>o.some(y=>{if(typeof y=="string")return Array.from(r.document.querySelectorAll(y)).some(w=>w===p.target||p.composedPath().includes(w));{const w=j(y);return w&&(p.target===w||p.composedPath().includes(w))}}),f=p=>{r.clearTimeout(i);const y=j(e);if(!(!y||y===p.target||p.composedPath().includes(y))){if(p.detail===0&&(l=!c(p)),!l){l=!0;return}t(p)}},v=[S(r,"click",f,{passive:!0,capture:s}),S(r,"pointerdown",p=>{const y=j(e);y&&(l=!p.composedPath().includes(y)&&!c(p))},{passive:!0}),S(r,"pointerup",p=>{if(p.button===0){const y=p.composedPath();p.composedPath=()=>y,i=r.setTimeout(()=>f(p),50)}},{passive:!0}),u&&S(r,"blur",p=>{var y;const w=j(e);((y=r.document.activeElement)==null?void 0:y.tagName)==="IFRAME"&&!(w==null?void 0:w.contains(r.document.activeElement))&&t(p)})].filter(Boolean);return()=>v.forEach(p=>p())}var _n=Object.defineProperty,bn=Object.defineProperties,On=Object.getOwnPropertyDescriptors,Ae=Object.getOwnPropertySymbols,Sn=Object.prototype.hasOwnProperty,Pn=Object.prototype.propertyIsEnumerable,je=(e,t,n)=>t in e?_n(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,he=(e,t)=>{for(var n in t||(t={}))Sn.call(t,n)&&je(e,n,t[n]);if(Ae)for(var n of Ae(t))Pn.call(t,n)&&je(e,n,t[n]);return e},me=(e,t)=>bn(e,On(t));const En=e=>typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0;function ue(...e){let t,n,r={};e.length===3?(t=e[0],n=e[1],r=e[2]):e.length===2?typeof e[1]=="object"?(t=!0,n=e[0],r=e[1]):(t=e[0],n=e[1]):(t=!0,n=e[0]);const{target:o=C,eventName:s="keydown",passive:u=!1}=r,l=En(t);return S(o,s,c=>{l(c)&&n(c)},u)}function $n(e,t,n={}){return ue(e,t,me(he({},n),{eventName:"keydown"}))}function Tn(e,t,n={}){return ue(e,t,me(he({},n),{eventName:"keypress"}))}function Fn(e,t,n={}){return ue(e,t,me(he({},n),{eventName:"keyup"}))}const Rn=500;function In(e,t,n){var r,o;const s=a.computed(()=>j(e));let u;function l(){u&&(clearTimeout(u),u=void 0)}function i(f){var v,m,p,y;((v=n==null?void 0:n.modifiers)==null?void 0:v.self)&&f.target!==s.value||(l(),((m=n==null?void 0:n.modifiers)==null?void 0:m.prevent)&&f.preventDefault(),((p=n==null?void 0:n.modifiers)==null?void 0:p.stop)&&f.stopPropagation(),u=setTimeout(()=>t(f),(y=n==null?void 0:n.delay)!=null?y:Rn))}const c={capture:(r=n==null?void 0:n.modifiers)==null?void 0:r.capture,once:(o=n==null?void 0:n.modifiers)==null?void 0:o.once};S(s,"pointerdown",i,c),S(s,"pointerup",l,c),S(s,"pointerleave",l,c)}const Cn=()=>{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")},An=({keyCode:e,metaKey:t,ctrlKey:n,altKey:r})=>t||n||r?!1:e>=48&&e<=57||e>=96&&e<=105||e>=65&&e<=90;function jn(e,t={}){const{document:n=L}=t;n&&S(n,"keydown",o=>{!Cn()&&An(o)&&e(o)},{passive:!0})}function kn(e,t=null){const n=a.getCurrentInstance();let r=()=>{};const o=a.customRef((s,u)=>(r=u,{get(){var l,i;return s(),(i=(l=n==null?void 0:n.proxy)==null?void 0:l.$refs[e])!=null?i:t},set(){}}));return d.tryOnMounted(r),a.onUpdated(r),o}function _e(e={}){const{window:t=C}=e,n=d.computedWithControl(()=>null,()=>t==null?void 0:t.document.activeElement);return t&&(S(t,"blur",r=>{r.relatedTarget!==null&&n.trigger()},!0),S(t,"focus",n.trigger,!0)),n}function Mn(e,t={}){const{interrupt:n=!0,onError:r=d.noop,onFinished:o=d.noop}=t,s={pending:"pending",rejected:"rejected",fulfilled:"fulfilled"},u=Array.from(new Array(e.length),()=>({state:s.pending,data:null})),l=a.reactive(u),i=a.ref(-1);if(!e||e.length===0)return o(),{activeIndex:i,result:l};function c(f,v){i.value++,l[i.value].data=v,l[i.value].state=f}return e.reduce((f,v)=>f.then(m=>{var p;if(((p=l[i.value])==null?void 0:p.state)===s.rejected&&n){o();return}return v(m).then(y=>(c(s.fulfilled,y),i.value===e.length-1&&o(),y))}).catch(m=>(c(s.rejected,m),r(),m)),Promise.resolve()),{activeIndex:i,result:l}}function ke(e,t,n){const{immediate:r=!0,delay:o=0,onError:s=d.noop,onSuccess:u=d.noop,resetOnExecute:l=!0,shallow:i=!0,throwError:c}=n??{},f=i?a.shallowRef(t):a.ref(t),v=a.ref(!1),m=a.ref(!1),p=a.ref(void 0);async function y(w=0,...h){l&&(f.value=t),p.value=void 0,v.value=!1,m.value=!0,w>0&&await d.promiseTimeout(w);const O=typeof e=="function"?e(...h):e;try{const _=await O;f.value=_,v.value=!0,u(_)}catch(_){if(p.value=_,s(_),c)throw p}finally{m.value=!1}return f.value}return r&&y(o),{state:f,isReady:v,isLoading:m,error:p,execute:y}}const re={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 Un(e){return e?e instanceof Map?re.map:e instanceof Set?re.set:Array.isArray(e)?re.array:re.object:re.null}function Ln(e,t){const n=a.ref(""),r=a.ref();function o(){if(!!d.isClient)return r.value=new Promise((s,u)=>{try{const l=d.resolveUnref(e);if(l==null)s("");else if(typeof l=="string")s(be(new Blob([l],{type:"text/plain"})));else if(l instanceof Blob)s(be(l));else if(l instanceof ArrayBuffer)s(window.btoa(String.fromCharCode(...new Uint8Array(l))));else if(l instanceof HTMLCanvasElement)s(l.toDataURL(t==null?void 0:t.type,t==null?void 0:t.quality));else if(l instanceof HTMLImageElement){const i=l.cloneNode(!1);i.crossOrigin="Anonymous",Nn(i).then(()=>{const c=document.createElement("canvas"),f=c.getContext("2d");c.width=i.width,c.height=i.height,f.drawImage(i,0,0,c.width,c.height),s(c.toDataURL(t==null?void 0:t.type,t==null?void 0:t.quality))}).catch(u)}else if(typeof l=="object"){const c=((t==null?void 0:t.serializer)||Un(l))(l);return s(be(new Blob([c],{type:"application/json"})))}else u(new Error("target is unsupported types"))}catch(l){u(l)}}),r.value.then(s=>n.value=s),r.value}return a.isRef(e)||d.isFunction(e)?a.watch(e,o,{immediate:!0}):o(),{base64:n,promise:r,execute:o}}function Nn(e){return new Promise((t,n)=>{e.complete?t():(e.onload=()=>{t()},e.onerror=n)})}function be(e){return new Promise((t,n)=>{const r=new FileReader;r.onload=o=>{t(o.target.result)},r.onerror=n,r.readAsDataURL(e)})}function M(e,t=!1){const n=a.ref(),r=()=>n.value=Boolean(e());return r(),d.tryOnMounted(r,t),n}function Hn({navigator:e=W}={}){const t=["chargingchange","chargingtimechange","dischargingtimechange","levelchange"],n=M(()=>e&&"getBattery"in e),r=a.ref(!1),o=a.ref(0),s=a.ref(0),u=a.ref(1);let l;function i(){r.value=this.charging,o.value=this.chargingTime||0,s.value=this.dischargingTime||0,u.value=this.level}return n.value&&e.getBattery().then(c=>{l=c,i.call(l);for(const f of t)S(l,f,i,{passive:!0})}),{isSupported:n,charging:r,chargingTime:o,dischargingTime:s,level:u}}function Wn(e){let{acceptAllDevices:t=!1}=e||{};const{filters:n=void 0,optionalServices:r=void 0,navigator:o=W}=e||{},s=M(()=>o&&"bluetooth"in o),u=a.shallowRef(void 0),l=a.shallowRef(null);a.watch(u,()=>{v()});async function i(){if(!!s.value){l.value=null,n&&n.length>0&&(t=!1);try{u.value=await(o==null?void 0:o.bluetooth.requestDevice({acceptAllDevices:t,filters:n,optionalServices:r}))}catch(m){l.value=m}}}const c=a.ref(),f=a.computed(()=>{var m;return((m=c.value)==null?void 0:m.connected)||!1});async function v(){if(l.value=null,u.value&&u.value.gatt){u.value.addEventListener("gattserverdisconnected",()=>{});try{c.value=await u.value.gatt.connect()}catch(m){l.value=m}}}return d.tryOnMounted(()=>{var m;u.value&&((m=u.value.gatt)==null||m.connect())}),d.tryOnScopeDispose(()=>{var m;u.value&&((m=u.value.gatt)==null||m.disconnect())}),{isSupported:s,isConnected:f,device:u,requestDevice:i,server:c,error:l}}function q(e,t={}){const{window:n=C}=t,r=M(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function");let o;const s=a.ref(!1),u=()=>{!o||("removeEventListener"in o?o.removeEventListener("change",l):o.removeListener(l))},l=()=>{!r.value||(u(),o=n.matchMedia(d.resolveRef(e).value),s.value=o.matches,"addEventListener"in o?o.addEventListener("change",l):o.addListener(l))};return a.watchEffect(l),d.tryOnScopeDispose(()=>u()),s}const xn={sm:640,md:768,lg:1024,xl:1280,"2xl":1536},Bn={sm:576,md:768,lg:992,xl:1200,xxl:1400},Vn={xs:600,sm:960,md:1264,lg:1904},zn={xs:480,sm:576,md:768,lg:992,xl:1200,xxl:1600},qn={xs:600,sm:1024,md:1440,lg:1920},Gn={mobileS:320,mobileM:375,mobileL:425,tablet:768,laptop:1024,laptopL:1440,desktop4K:2560},Xn={"3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560};var Kn=Object.defineProperty,Me=Object.getOwnPropertySymbols,Yn=Object.prototype.hasOwnProperty,Qn=Object.prototype.propertyIsEnumerable,Ue=(e,t,n)=>t in e?Kn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Jn=(e,t)=>{for(var n in t||(t={}))Yn.call(t,n)&&Ue(e,n,t[n]);if(Me)for(var n of Me(t))Qn.call(t,n)&&Ue(e,n,t[n]);return e};function Zn(e,t={}){function n(l,i){let c=e[l];return i!=null&&(c=d.increaseWithUnit(c,i)),typeof c=="number"&&(c=`${c}px`),c}const{window:r=C}=t;function o(l){return r?r.matchMedia(l).matches:!1}const s=l=>q(`(min-width: ${n(l)})`,t),u=Object.keys(e).reduce((l,i)=>(Object.defineProperty(l,i,{get:()=>s(i),enumerable:!0,configurable:!0}),l),{});return Jn({greater(l){return q(`(min-width: ${n(l,.1)})`,t)},greaterOrEqual:s,smaller(l){return q(`(max-width: ${n(l,-.1)})`,t)},smallerOrEqual(l){return q(`(max-width: ${n(l)})`,t)},between(l,i){return q(`(min-width: ${n(l)}) and (max-width: ${n(i,-.1)})`,t)},isGreater(l){return o(`(min-width: ${n(l,.1)})`)},isGreaterOrEqual(l){return o(`(min-width: ${n(l)})`)},isSmaller(l){return o(`(max-width: ${n(l,-.1)})`)},isSmallerOrEqual(l){return o(`(max-width: ${n(l)})`)},isInBetween(l,i){return o(`(min-width: ${n(l)}) and (max-width: ${n(i,-.1)})`)}},u)}const Dn=e=>{const{name:t,window:n=C}=e,r=M(()=>n&&"BroadcastChannel"in n),o=a.ref(!1),s=a.ref(),u=a.ref(),l=a.ref(null),i=f=>{s.value&&s.value.postMessage(f)},c=()=>{s.value&&s.value.close(),o.value=!0};return r.value&&d.tryOnMounted(()=>{l.value=null,s.value=new BroadcastChannel(t),s.value.addEventListener("message",f=>{u.value=f.data},{passive:!0}),s.value.addEventListener("messageerror",f=>{l.value=f},{passive:!0}),s.value.addEventListener("close",()=>{o.value=!0})}),d.tryOnScopeDispose(()=>{c()}),{isSupported:r,channel:s,data:u,post:i,close:c,error:l,isClosed:o}};function er({window:e=C}={}){const t=r=>{const{state:o,length:s}=(e==null?void 0:e.history)||{},{hash:u,host:l,hostname:i,href:c,origin:f,pathname:v,port:m,protocol:p,search:y}=(e==null?void 0:e.location)||{};return{trigger:r,state:o,length:s,hash:u,host:l,hostname:i,href:c,origin:f,pathname:v,port:m,protocol:p,search:y}},n=a.ref(t("load"));return e&&(S(e,"popstate",()=>n.value=t("popstate"),{passive:!0}),S(e,"hashchange",()=>n.value=t("hashchange"),{passive:!0})),n}function tr(e,t=(r,o)=>r===o,n){const r=a.ref(e.value);return a.watch(()=>e.value,o=>{t(o,r.value)||(r.value=o)},n),r}function nr(e={}){const{navigator:t=W,read:n=!1,source:r,copiedDuring:o=1500,legacy:s=!1}=e,u=["copy","cut"],l=M(()=>t&&"clipboard"in t),i=a.computed(()=>l.value||s),c=a.ref(""),f=a.ref(!1),v=d.useTimeoutFn(()=>f.value=!1,o);function m(){l.value?t.clipboard.readText().then(h=>{c.value=h}):c.value=w()}if(i.value&&n)for(const h of u)S(h,m);async function p(h=d.resolveUnref(r)){i.value&&h!=null&&(l.value?await t.clipboard.writeText(h):y(h),c.value=h,f.value=!0,v.start())}function y(h){const O=document.createElement("textarea");O.value=h??"",O.style.position="absolute",O.style.opacity="0",document.body.appendChild(O),O.select(),document.execCommand("copy"),O.remove()}function w(){var h,O,_;return(_=(O=(h=document==null?void 0:document.getSelection)==null?void 0:h.call(document))==null?void 0:O.toString())!=null?_:""}return{isSupported:i,text:c,copied:f,copy:p}}var rr=Object.defineProperty,or=Object.defineProperties,ar=Object.getOwnPropertyDescriptors,Le=Object.getOwnPropertySymbols,lr=Object.prototype.hasOwnProperty,sr=Object.prototype.propertyIsEnumerable,Ne=(e,t,n)=>t in e?rr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ur=(e,t)=>{for(var n in t||(t={}))lr.call(t,n)&&Ne(e,n,t[n]);if(Le)for(var n of Le(t))sr.call(t,n)&&Ne(e,n,t[n]);return e},ir=(e,t)=>or(e,ar(t));function oe(e){return JSON.parse(JSON.stringify(e))}function cr(e,t={}){const n=a.ref({}),{manual:r,clone:o=oe,deep:s=!0,immediate:u=!0}=t;function l(){n.value=o(a.unref(e))}return!r&&a.isRef(e)?a.watch(e,l,ir(ur({},t),{deep:s,immediate:u})):l(),{cloned:n,sync:l}}const Oe=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},Se="__vueuse_ssr_handlers__";Oe[Se]=Oe[Se]||{};const He=Oe[Se];function ie(e,t){return He[e]||t}function fr(e,t){He[e]=t}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"}var dr=Object.defineProperty,xe=Object.getOwnPropertySymbols,vr=Object.prototype.hasOwnProperty,pr=Object.prototype.propertyIsEnumerable,Be=(e,t,n)=>t in e?dr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ve=(e,t)=>{for(var n in t||(t={}))vr.call(t,n)&&Be(e,n,t[n]);if(xe)for(var n of xe(t))pr.call(t,n)&&Be(e,n,t[n]);return e};const Pe={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()}};function ce(e,t,n,r={}){var o;const{flush:s="pre",deep:u=!0,listenToStorageChanges:l=!0,writeDefaults:i=!0,mergeDefaults:c=!1,shallow:f,window:v=C,eventFilter:m,onError:p=E=>{console.error(E)}}=r,y=(f?a.shallowRef:a.ref)(t);if(!n)try{n=ie("getDefaultStorage",()=>{var E;return(E=C)==null?void 0:E.localStorage})()}catch(E){p(E)}if(!n)return y;const w=d.resolveUnref(t),h=We(w),O=(o=r.serializer)!=null?o:Pe[h],{pause:_,resume:b}=d.pausableWatch(y,()=>F(y.value),{flush:s,deep:u,eventFilter:m});return v&&l&&S(v,"storage",T),T(),y;function F(E){try{if(E==null)n.removeItem(e);else{const A=O.write(E),I=n.getItem(e);I!==A&&(n.setItem(e,A),v&&(v==null||v.dispatchEvent(new StorageEvent("storage",{key:e,oldValue:I,newValue:A,storageArea:n}))))}}catch(A){p(A)}}function P(E){const A=E?E.newValue:n.getItem(e);if(A==null)return i&&w!==null&&n.setItem(e,O.write(w)),w;if(!E&&c){const I=O.read(A);return d.isFunction(c)?c(I,w):h==="object"&&!Array.isArray(I)?Ve(Ve({},w),I):I}else return typeof A!="string"?A:O.read(A)}function T(E){if(!(E&&E.storageArea!==n)){if(E&&E.key==null){y.value=w;return}if(!(E&&E.key!==e)){_();try{y.value=P(E)}catch(A){p(A)}finally{E?a.nextTick(b):b()}}}}}function Ee(e){return q("(prefers-color-scheme: dark)",e)}var yr=Object.defineProperty,ze=Object.getOwnPropertySymbols,gr=Object.prototype.hasOwnProperty,wr=Object.prototype.propertyIsEnumerable,qe=(e,t,n)=>t in e?yr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,hr=(e,t)=>{for(var n in t||(t={}))gr.call(t,n)&&qe(e,n,t[n]);if(ze)for(var n of ze(t))wr.call(t,n)&&qe(e,n,t[n]);return e};function Ge(e={}){const{selector:t="html",attribute:n="class",initialValue:r="auto",window:o=C,storage:s,storageKey:u="vueuse-color-scheme",listenToStorageChanges:l=!0,storageRef:i,emitAuto:c}=e,f=hr({auto:"",light:"light",dark:"dark"},e.modes||{}),v=Ee({window:o}),m=a.computed(()=>v.value?"dark":"light"),p=i||(u==null?a.ref(r):ce(u,r,s,{window:o,listenToStorageChanges:l})),y=a.computed({get(){return p.value==="auto"&&!c?m.value:p.value},set(_){p.value=_}}),w=ie("updateHTMLAttrs",(_,b,F)=>{const P=o==null?void 0:o.document.querySelector(_);if(!!P)if(b==="class"){const T=F.split(/\s/g);Object.values(f).flatMap(E=>(E||"").split(/\s/g)).filter(Boolean).forEach(E=>{T.includes(E)?P.classList.add(E):P.classList.remove(E)})}else P.setAttribute(b,F)});function h(_){var b;const F=_==="auto"?m.value:_;w(t,n,(b=f[F])!=null?b:F)}function O(_){e.onChanged?e.onChanged(_,h):h(_)}return a.watch(y,O,{flush:"post",immediate:!0}),c&&a.watch(m,()=>O(y.value),{flush:"post"}),d.tryOnMounted(()=>O(y.value)),y}function mr(e=a.ref(!1)){const t=d.createEventHook(),n=d.createEventHook(),r=d.createEventHook();let o=d.noop;const s=i=>(r.trigger(i),e.value=!0,new Promise(c=>{o=c})),u=i=>{e.value=!1,t.trigger(i),o({data:i,isCanceled:!1})},l=i=>{e.value=!1,n.trigger(i),o({data:i,isCanceled:!0})};return{isRevealed:a.computed(()=>e.value),reveal:s,confirm:u,cancel:l,onReveal:r.on,onConfirm:t.on,onCancel:n.on}}function ae(e,t,{window:n=C,initialValue:r=""}={}){const o=a.ref(r),s=a.computed(()=>{var u;return j(t)||((u=n==null?void 0:n.document)==null?void 0:u.documentElement)});return a.watch([s,()=>d.resolveUnref(e)],([u,l])=>{var i;if(u&&n){const c=(i=n.getComputedStyle(u).getPropertyValue(l))==null?void 0:i.trim();o.value=c||r}},{immediate:!0}),a.watch(o,u=>{var l;((l=s.value)==null?void 0:l.style)&&s.value.style.setProperty(d.resolveUnref(e),u)}),o}function _r(){const e=a.getCurrentInstance(),t=d.computedWithControl(()=>null,()=>e.proxy.$el);return a.onUpdated(t.trigger),a.onMounted(t.trigger),t}function br(e,t){var n;const r=a.shallowRef((n=t==null?void 0:t.initialValue)!=null?n:e[0]),o=a.computed({get(){var c;let f=(t==null?void 0:t.getIndexOf)?t.getIndexOf(r.value,e):e.indexOf(r.value);return f<0&&(f=(c=t==null?void 0:t.fallbackIndex)!=null?c:0),f},set(c){s(c)}});function s(c){const f=e.length,v=(c%f+f)%f,m=e[v];return r.value=m,m}function u(c=1){return s(o.value+c)}function l(c=1){return u(c)}function i(c=1){return u(-c)}return{state:r,index:o,next:l,prev:i}}var Or=Object.defineProperty,Sr=Object.defineProperties,Pr=Object.getOwnPropertyDescriptors,Xe=Object.getOwnPropertySymbols,Er=Object.prototype.hasOwnProperty,$r=Object.prototype.propertyIsEnumerable,Ke=(e,t,n)=>t in e?Or(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Tr=(e,t)=>{for(var n in t||(t={}))Er.call(t,n)&&Ke(e,n,t[n]);if(Xe)for(var n of Xe(t))$r.call(t,n)&&Ke(e,n,t[n]);return e},Fr=(e,t)=>Sr(e,Pr(t));function Rr(e={}){const{valueDark:t="dark",valueLight:n="",window:r=C}=e,o=Ge(Fr(Tr({},e),{onChanged:(l,i)=>{var c;e.onChanged?(c=e.onChanged)==null||c.call(e,l==="dark"):i(l)},modes:{dark:t,light:n}})),s=Ee({window:r});return a.computed({get(){return o.value==="dark"},set(l){l===s.value?o.value="auto":o.value=l?"dark":"light"}})}const Ye=e=>e,Ir=(e,t)=>e.value=t;function Cr(e){return e?d.isFunction(e)?e:oe:Ye}function Ar(e){return e?d.isFunction(e)?e:oe:Ye}function Qe(e,t={}){const{clone:n=!1,dump:r=Cr(n),parse:o=Ar(n),setSource:s=Ir}=t;function u(){return a.markRaw({snapshot:r(e.value),timestamp:d.timestamp()})}const l=a.ref(u()),i=a.ref([]),c=a.ref([]),f=b=>{s(e,o(b.snapshot)),l.value=b},v=()=>{i.value.unshift(l.value),l.value=u(),t.capacity&&i.value.length>t.capacity&&i.value.splice(t.capacity,1/0),c.value.length&&c.value.splice(0,c.value.length)},m=()=>{i.value.splice(0,i.value.length),c.value.splice(0,c.value.length)},p=()=>{const b=i.value.shift();b&&(c.value.unshift(l.value),f(b))},y=()=>{const b=c.value.shift();b&&(i.value.unshift(l.value),f(b))},w=()=>{f(l.value)},h=a.computed(()=>[l.value,...i.value]),O=a.computed(()=>i.value.length>0),_=a.computed(()=>c.value.length>0);return{source:e,undoStack:i,redoStack:c,last:l,history:h,canUndo:O,canRedo:_,clear:m,commit:v,reset:w,undo:p,redo:y}}var jr=Object.defineProperty,kr=Object.defineProperties,Mr=Object.getOwnPropertyDescriptors,Je=Object.getOwnPropertySymbols,Ur=Object.prototype.hasOwnProperty,Lr=Object.prototype.propertyIsEnumerable,Ze=(e,t,n)=>t in e?jr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,De=(e,t)=>{for(var n in t||(t={}))Ur.call(t,n)&&Ze(e,n,t[n]);if(Je)for(var n of Je(t))Lr.call(t,n)&&Ze(e,n,t[n]);return e},et=(e,t)=>kr(e,Mr(t));function $e(e,t={}){const{deep:n=!1,flush:r="pre",eventFilter:o}=t,{eventFilter:s,pause:u,resume:l,isActive:i}=d.pausableFilter(o),{ignoreUpdates:c,ignorePrevAsyncUpdates:f,stop:v}=d.watchIgnorable(e,h,{deep:n,flush:r,eventFilter:s});function m(F,P){f(),c(()=>{F.value=P})}const p=Qe(e,et(De({},t),{clone:t.clone||n,setSource:m})),{clear:y,commit:w}=p;function h(){f(),w()}function O(F){l(),F&&h()}function _(F){let P=!1;const T=()=>P=!0;c(()=>{F(T)}),P||h()}function b(){v(),y()}return et(De({},p),{isTracking:i,pause:u,resume:O,commit:h,batch:_,dispose:b})}var Nr=Object.defineProperty,Hr=Object.defineProperties,Wr=Object.getOwnPropertyDescriptors,tt=Object.getOwnPropertySymbols,xr=Object.prototype.hasOwnProperty,Br=Object.prototype.propertyIsEnumerable,nt=(e,t,n)=>t in e?Nr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,rt=(e,t)=>{for(var n in t||(t={}))xr.call(t,n)&&nt(e,n,t[n]);if(tt)for(var n of tt(t))Br.call(t,n)&&nt(e,n,t[n]);return e},Vr=(e,t)=>Hr(e,Wr(t));function zr(e,t={}){const n=t.debounce?d.debounceFilter(t.debounce):void 0,r=$e(e,Vr(rt({},t),{eventFilter:n}));return rt({},r)}function qr(e={}){const{window:t=C,eventFilter:n=d.bypassFilter}=e,r=a.ref({x:null,y:null,z:null}),o=a.ref({alpha:null,beta:null,gamma:null}),s=a.ref(0),u=a.ref({x:null,y:null,z:null});if(t){const l=d.createFilterWrapper(n,i=>{r.value=i.acceleration,u.value=i.accelerationIncludingGravity,o.value=i.rotationRate,s.value=i.interval});S(t,"devicemotion",l)}return{acceleration:r,accelerationIncludingGravity:u,rotationRate:o,interval:s}}function ot(e={}){const{window:t=C}=e,n=M(()=>t&&"DeviceOrientationEvent"in t),r=a.ref(!1),o=a.ref(null),s=a.ref(null),u=a.ref(null);return t&&n.value&&S(t,"deviceorientation",l=>{r.value=l.absolute,o.value=l.alpha,s.value=l.beta,u.value=l.gamma}),{isSupported:n,isAbsolute:r,alpha:o,beta:s,gamma:u}}function Gr({window:e=C}={}){if(!e)return{pixelRatio:a.ref(1)};const t=a.ref(1),n=[],r=()=>{n.map(s=>s()),n.length=0},o=()=>{t.value=e.devicePixelRatio,r();const s=e.matchMedia(`(resolution: ${t.value}dppx)`);s.addEventListener("change",o,{once:!0}),n.push(()=>{s.removeEventListener("change",o)})};return o(),d.tryOnScopeDispose(r),{pixelRatio:t}}function at(e,t={}){const{controls:n=!1,navigator:r=W}=t,o=M(()=>r&&"permissions"in r);let s;const u=typeof e=="string"?{name:e}:e,l=a.ref(),i=()=>{s&&(l.value=s.state)},c=d.createSingletonPromise(async()=>{if(!!o.value){if(!s)try{s=await r.permissions.query(u),S(s,"change",i),i()}catch{l.value="prompt"}return s}});return c(),n?{state:l,isSupported:o,query:c}:l}function Xr(e={}){const{navigator:t=W,requestPermissions:n=!1,constraints:r={audio:!0,video:!0},onUpdated:o}=e,s=a.ref([]),u=a.computed(()=>s.value.filter(p=>p.kind==="videoinput")),l=a.computed(()=>s.value.filter(p=>p.kind==="audioinput")),i=a.computed(()=>s.value.filter(p=>p.kind==="audiooutput")),c=M(()=>t&&t.mediaDevices&&t.mediaDevices.enumerateDevices),f=a.ref(!1);async function v(){!c.value||(s.value=await t.mediaDevices.enumerateDevices(),o==null||o(s.value))}async function m(){if(!c.value)return!1;if(f.value)return!0;const{state:p,query:y}=at("camera",{controls:!0});return await y(),p.value!=="granted"&&((await t.mediaDevices.getUserMedia(r)).getTracks().forEach(h=>h.stop()),v()),f.value=!0,f.value}return c.value&&(n&&m(),S(t.mediaDevices,"devicechange",v),v()),{devices:s,ensurePermissions:m,permissionGranted:f,videoInputs:u,audioInputs:l,audioOutputs:i,isSupported:c}}function Kr(e={}){var t;const n=a.ref((t=e.enabled)!=null?t:!1),r=e.video,o=e.audio,{navigator:s=W}=e,u=M(()=>{var p;return(p=s==null?void 0:s.mediaDevices)==null?void 0:p.getDisplayMedia}),l={audio:o,video:r},i=a.shallowRef();async function c(){if(!(!u.value||i.value))return i.value=await s.mediaDevices.getDisplayMedia(l),i.value}async function f(){var p;(p=i.value)==null||p.getTracks().forEach(y=>y.stop()),i.value=void 0}function v(){f(),n.value=!1}async function m(){return await c(),i.value&&(n.value=!0),i.value}return a.watch(n,p=>{p?c():f()},{immediate:!0}),{isSupported:u,stream:i,start:m,stop:v,enabled:n}}function Yr({document:e=L}={}){if(!e)return a.ref("visible");const t=a.ref(e.visibilityState);return S(e,"visibilitychange",()=>{t.value=e.visibilityState}),t}var Qr=Object.defineProperty,Jr=Object.defineProperties,Zr=Object.getOwnPropertyDescriptors,lt=Object.getOwnPropertySymbols,Dr=Object.prototype.hasOwnProperty,eo=Object.prototype.propertyIsEnumerable,st=(e,t,n)=>t in e?Qr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,to=(e,t)=>{for(var n in t||(t={}))Dr.call(t,n)&&st(e,n,t[n]);if(lt)for(var n of lt(t))eo.call(t,n)&&st(e,n,t[n]);return e},no=(e,t)=>Jr(e,Zr(t));function ro(e,t={}){var n,r,o;const s=(n=t.draggingElement)!=null?n:C,u=(r=t.handle)!=null?r:e,l=a.ref((o=d.resolveUnref(t.initialValue))!=null?o:{x:0,y:0}),i=a.ref(),c=y=>t.pointerTypes?t.pointerTypes.includes(y.pointerType):!0,f=y=>{d.resolveUnref(t.preventDefault)&&y.preventDefault(),d.resolveUnref(t.stopPropagation)&&y.stopPropagation()},v=y=>{var w;if(!c(y)||d.resolveUnref(t.exact)&&y.target!==d.resolveUnref(e))return;const h=d.resolveUnref(e).getBoundingClientRect(),O={x:y.clientX-h.left,y:y.clientY-h.top};((w=t.onStart)==null?void 0:w.call(t,O,y))!==!1&&(i.value=O,f(y))},m=y=>{var w;!c(y)||!i.value||(l.value={x:y.clientX-i.value.x,y:y.clientY-i.value.y},(w=t.onMove)==null||w.call(t,l.value,y),f(y))},p=y=>{var w;!c(y)||!i.value||(i.value=void 0,(w=t.onEnd)==null||w.call(t,l.value,y),f(y))};return d.isClient&&(S(u,"pointerdown",v,!0),S(s,"pointermove",m,!0),S(s,"pointerup",p,!0)),no(to({},d.toRefs(l)),{position:l,isDragging:a.computed(()=>!!i.value),style:a.computed(()=>`left:${l.value.x}px;top:${l.value.y}px;`)})}function oo(e,t){const n=a.ref(!1);let r=0;return d.isClient&&(S(e,"dragenter",o=>{o.preventDefault(),r+=1,n.value=!0}),S(e,"dragover",o=>{o.preventDefault()}),S(e,"dragleave",o=>{o.preventDefault(),r-=1,r===0&&(n.value=!1)}),S(e,"drop",o=>{var s,u;o.preventDefault(),r=0,n.value=!1;const l=Array.from((u=(s=o.dataTransfer)==null?void 0:s.files)!=null?u:[]);t==null||t(l.length===0?null:l)})),{isOverDropZone:n}}var ut=Object.getOwnPropertySymbols,ao=Object.prototype.hasOwnProperty,lo=Object.prototype.propertyIsEnumerable,so=(e,t)=>{var n={};for(var r in e)ao.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&ut)for(var r of ut(e))t.indexOf(r)<0&&lo.call(e,r)&&(n[r]=e[r]);return n};function fe(e,t,n={}){const r=n,{window:o=C}=r,s=so(r,["window"]);let u;const l=M(()=>o&&"ResizeObserver"in o),i=()=>{u&&(u.disconnect(),u=void 0)},c=a.watch(()=>j(e),v=>{i(),l.value&&o&&v&&(u=new ResizeObserver(t),u.observe(v,s))},{immediate:!0,flush:"post"}),f=()=>{i(),c()};return d.tryOnScopeDispose(f),{isSupported:l,stop:f}}function uo(e,t={}){const{reset:n=!0,windowResize:r=!0,windowScroll:o=!0,immediate:s=!0}=t,u=a.ref(0),l=a.ref(0),i=a.ref(0),c=a.ref(0),f=a.ref(0),v=a.ref(0),m=a.ref(0),p=a.ref(0);function y(){const w=j(e);if(!w){n&&(u.value=0,l.value=0,i.value=0,c.value=0,f.value=0,v.value=0,m.value=0,p.value=0);return}const h=w.getBoundingClientRect();u.value=h.height,l.value=h.bottom,i.value=h.left,c.value=h.right,f.value=h.top,v.value=h.width,m.value=h.x,p.value=h.y}return fe(e,y),a.watch(()=>j(e),w=>!w&&y()),o&&S("scroll",y,{passive:!0}),r&&S("resize",y,{passive:!0}),d.tryOnMounted(()=>{s&&y()}),{height:u,bottom:l,left:i,right:c,top:f,width:v,x:m,y:p,update:y}}function D(e,t={}){const{immediate:n=!0,window:r=C}=t,o=a.ref(!1);let s=0,u=null;function l(f){if(!o.value||!r)return;const v=f-s;e({delta:v,timestamp:f}),s=f,u=r.requestAnimationFrame(l)}function i(){!o.value&&r&&(o.value=!0,u=r.requestAnimationFrame(l))}function c(){o.value=!1,u!=null&&r&&(r.cancelAnimationFrame(u),u=null)}return n&&i(),d.tryOnScopeDispose(c),{isActive:o,pause:c,resume:i}}var io=Object.defineProperty,it=Object.getOwnPropertySymbols,co=Object.prototype.hasOwnProperty,fo=Object.prototype.propertyIsEnumerable,ct=(e,t,n)=>t in e?io(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,vo=(e,t)=>{for(var n in t||(t={}))co.call(t,n)&&ct(e,n,t[n]);if(it)for(var n of it(t))fo.call(t,n)&&ct(e,n,t[n]);return e};function po(e){const t=a.ref(null),{x:n,y:r}=e,o=D(()=>{t.value=document.elementFromPoint(d.resolveUnref(n),d.resolveUnref(r))});return vo({element:t},o)}function yo(e){const t=a.ref(!1);return S(e,"mouseenter",()=>t.value=!0),S(e,"mouseleave",()=>t.value=!1),t}function ft(e,t={width:0,height:0},n={}){const{box:r="content-box"}=n,o=a.ref(t.width),s=a.ref(t.height);return fe(e,([u])=>{const l=r==="border-box"?u.borderBoxSize:r==="content-box"?u.contentBoxSize:u.devicePixelContentBoxSize;l?(o.value=l.reduce((i,{inlineSize:c})=>i+c,0),s.value=l.reduce((i,{blockSize:c})=>i+c,0)):(o.value=u.contentRect.width,s.value=u.contentRect.height)},n),a.watch(()=>j(e),u=>{o.value=u?t.width:0,s.value=u?t.height:0}),{width:o,height:s}}function go(e,{window:t=C,scrollTarget:n}={}){const r=a.ref(!1),o=()=>{if(!t)return;const s=t.document,u=j(e);if(!u)r.value=!1;else{const l=u.getBoundingClientRect();r.value=l.top<=(t.innerHeight||s.documentElement.clientHeight)&&l.left<=(t.innerWidth||s.documentElement.clientWidth)&&l.bottom>=0&&l.right>=0}};return a.watch(()=>j(e),()=>o(),{immediate:!0,flush:"post"}),t&&S(n||t,"scroll",o,{capture:!1,passive:!0}),r}const ee=new Map;function wo(e){const t=a.getCurrentScope();function n(l){var i;const c=ee.get(e)||[];c.push(l),ee.set(e,c);const f=()=>o(l);return(i=t==null?void 0:t.cleanups)==null||i.push(f),f}function r(l){function i(...c){o(i),l(...c)}return n(i)}function o(l){const i=ee.get(e);if(!i)return;const c=i.indexOf(l);c>-1&&i.splice(c,1),i.length||ee.delete(e)}function s(){ee.delete(e)}function u(l,i){var c;(c=ee.get(e))==null||c.forEach(f=>f(l,i))}return{on:n,once:r,off:o,emit:u,reset:s}}function ho(e,t=[],n={}){const r=a.ref(null),o=a.ref(null),s=a.ref("CONNECTING"),u=a.ref(null),l=a.ref(null),{withCredentials:i=!1}=n,c=()=>{u.value&&(u.value.close(),u.value=null,s.value="CLOSED")},f=new EventSource(e,{withCredentials:i});u.value=f,f.onopen=()=>{s.value="OPEN",l.value=null},f.onerror=v=>{s.value="CLOSED",l.value=v},f.onmessage=v=>{r.value=null,o.value=v.data};for(const v of t)S(f,v,m=>{r.value=v,o.value=m.data||null});return d.tryOnScopeDispose(()=>{c()}),{eventSource:u,event:r,data:o,status:s,error:l,close:c}}function mo(e={}){const{initialValue:t=""}=e,n=M(()=>typeof window!="undefined"&&"EyeDropper"in window),r=a.ref(t);async function o(s){if(!n.value)return;const l=await new window.EyeDropper().open(s);return r.value=l.sRGBHex,l}return{isSupported:n,sRGBHex:r,open:o}}function _o(e=null,t={}){const{baseUrl:n="",rel:r="icon",document:o=L}=t,s=d.resolveRef(e),u=l=>{o==null||o.head.querySelectorAll(`link[rel*="${r}"]`).forEach(i=>i.href=`${n}${l}`)};return a.watch(s,(l,i)=>{d.isString(l)&&l!==i&&u(l)},{immediate:!0}),s}var bo=Object.defineProperty,Oo=Object.defineProperties,So=Object.getOwnPropertyDescriptors,dt=Object.getOwnPropertySymbols,Po=Object.prototype.hasOwnProperty,Eo=Object.prototype.propertyIsEnumerable,vt=(e,t,n)=>t in e?bo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,U=(e,t)=>{for(var n in t||(t={}))Po.call(t,n)&&vt(e,n,t[n]);if(dt)for(var n of dt(t))Eo.call(t,n)&&vt(e,n,t[n]);return e},Z=(e,t)=>Oo(e,So(t));const $o={json:"application/json",text:"text/plain"};function de(e){return d.containsProp(e,"immediate","refetch","initialData","timeout","beforeFetch","afterFetch","onFetchError","fetch")}function To(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function le(e){return typeof Headers!="undefined"&&e instanceof Headers?Object.fromEntries([...e.entries()]):e}function te(e,...t){return e==="overwrite"?async n=>{const r=t[t.length-1];return r!==void 0&&await r(n),n}:async n=>(await t.reduce((r,o)=>r.then(async()=>{o&&(n=U(U({},n),await o(n)))}),Promise.resolve()),n)}function Fo(e={}){const t=e.combination||"chain",n=e.options||{},r=e.fetchOptions||{};function o(s,...u){const l=a.computed(()=>{const f=d.resolveUnref(e.baseUrl),v=d.resolveUnref(s);return f&&!To(v)?Ro(f,v):v});let i=n,c=r;return u.length>0&&(de(u[0])?i=Z(U(U({},i),u[0]),{beforeFetch:te(t,n.beforeFetch,u[0].beforeFetch),afterFetch:te(t,n.afterFetch,u[0].afterFetch),onFetchError:te(t,n.onFetchError,u[0].onFetchError)}):c=Z(U(U({},c),u[0]),{headers:U(U({},le(c.headers)||{}),le(u[0].headers)||{})})),u.length>1&&de(u[1])&&(i=Z(U(U({},i),u[1]),{beforeFetch:te(t,n.beforeFetch,u[1].beforeFetch),afterFetch:te(t,n.afterFetch,u[1].afterFetch),onFetchError:te(t,n.onFetchError,u[1].onFetchError)})),pt(l,c,i)}return o}function pt(e,...t){var n;const r=typeof AbortController=="function";let o={},s={immediate:!0,refetch:!1,timeout:0};const u={method:"GET",type:"text",payload:void 0};t.length>0&&(de(t[0])?s=U(U({},s),t[0]):o=t[0]),t.length>1&&de(t[1])&&(s=U(U({},s),t[1]));const{fetch:l=(n=C)==null?void 0:n.fetch,initialData:i,timeout:c}=s,f=d.createEventHook(),v=d.createEventHook(),m=d.createEventHook(),p=a.ref(!1),y=a.ref(!1),w=a.ref(!1),h=a.ref(null),O=a.shallowRef(null),_=a.shallowRef(null),b=a.shallowRef(i),F=a.computed(()=>r&&y.value);let P,T;const E=()=>{r&&P&&P.abort()},A=N=>{y.value=N,p.value=!N};c&&(T=d.useTimeoutFn(E,c,{immediate:!1}));const I=async(N=!1)=>{var G;A(!0),_.value=null,h.value=null,w.value=!1,P=void 0,r&&(P=new AbortController,P.signal.onabort=()=>w.value=!0,o=Z(U({},o),{signal:P.signal}));const B={method:u.method,headers:{}};if(u.payload){const ge=le(B.headers);u.payloadType&&(ge["Content-Type"]=(G=$o[u.payloadType])!=null?G:u.payloadType);const we=d.resolveUnref(u.payload);B.body=u.payloadType==="json"?JSON.stringify(we):we}let V=!1;const Y={url:d.resolveUnref(e),options:U(U({},B),o),cancel:()=>{V=!0}};if(s.beforeFetch&&Object.assign(Y,await s.beforeFetch(Y)),V||!l)return A(!1),Promise.resolve(null);let Q=null;return T&&T.start(),new Promise((ge,we)=>{var wn;l(Y.url,Z(U(U({},B),Y.options),{headers:U(U({},le(B.headers)),le((wn=Y.options)==null?void 0:wn.headers))})).then(async z=>{if(O.value=z,h.value=z.status,Q=await z[u.type](),s.afterFetch&&h.value>=200&&h.value<300&&({data:Q}=await s.afterFetch({data:Q,response:z})),b.value=Q,!z.ok)throw new Error(z.statusText);return f.trigger(z),ge(z)}).catch(async z=>{let hn=z.message||z.name;return s.onFetchError&&({data:Q,error:hn}=await s.onFetchError({data:Q,error:z,response:O.value})),b.value=Q,_.value=hn,v.trigger(z),N?we(z):ge(null)}).finally(()=>{A(!1),T&&T.stop(),m.trigger(null)})})},$=d.resolveRef(s.refetch);a.watch([$,d.resolveRef(e)],([N])=>N&&I(),{deep:!0});const R={isFinished:p,statusCode:h,response:O,error:_,data:b,isFetching:y,canAbort:F,aborted:w,abort:E,execute:I,onFetchResponse:f.on,onFetchError:v.on,onFetchFinally:m.on,get:k("GET"),put:k("PUT"),post:k("POST"),delete:k("DELETE"),patch:k("PATCH"),head:k("HEAD"),options:k("OPTIONS"),json:K("json"),text:K("text"),blob:K("blob"),arrayBuffer:K("arrayBuffer"),formData:K("formData")};function k(N){return(G,B)=>{if(!y.value){u.method=N,u.payload=G,u.payloadType=B,a.isRef(u.payload)&&a.watch([$,d.resolveRef(u.payload)],([Y])=>Y&&I(),{deep:!0});const V=d.resolveUnref(u.payload);return!B&&V&&Object.getPrototypeOf(V)===Object.prototype&&!(V instanceof FormData)&&(u.payloadType="json"),Z(U({},R),{then(Y,Q){return H().then(Y,Q)}})}}}function H(){return new Promise((N,G)=>{d.until(p).toBe(!0).then(()=>N(R)).catch(B=>G(B))})}function K(N){return()=>{if(!y.value)return u.type=N,Z(U({},R),{then(G,B){return H().then(G,B)}})}}return s.immediate&&setTimeout(I,0),Z(U({},R),{then(N,G){return H().then(N,G)}})}function Ro(e,t){return!e.endsWith("/")&&!t.startsWith("/")?`${e}/${t}`:`${e}${t}`}var Io=Object.defineProperty,yt=Object.getOwnPropertySymbols,Co=Object.prototype.hasOwnProperty,Ao=Object.prototype.propertyIsEnumerable,gt=(e,t,n)=>t in e?Io(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Te=(e,t)=>{for(var n in t||(t={}))Co.call(t,n)&>(e,n,t[n]);if(yt)for(var n of yt(t))Ao.call(t,n)&>(e,n,t[n]);return e};const jo={multiple:!0,accept:"*"};function ko(e={}){const{document:t=L}=e,n=a.ref(null);let r;t&&(r=t.createElement("input"),r.type="file",r.onchange=u=>{const l=u.target;n.value=l.files});const o=u=>{if(!r)return;const l=Te(Te(Te({},jo),e),u);r.multiple=l.multiple,r.accept=l.accept,d.hasOwn(l,"capture")&&(r.capture=l.capture),r.click()},s=()=>{n.value=null,r&&(r.value="")};return{files:a.readonly(n),open:o,reset:s}}var Mo=Object.defineProperty,wt=Object.getOwnPropertySymbols,Uo=Object.prototype.hasOwnProperty,Lo=Object.prototype.propertyIsEnumerable,ht=(e,t,n)=>t in e?Mo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ne=(e,t)=>{for(var n in t||(t={}))Uo.call(t,n)&&ht(e,n,t[n]);if(wt)for(var n of wt(t))Lo.call(t,n)&&ht(e,n,t[n]);return e};function No(e={}){const{window:t=C,dataType:n="Text"}=a.unref(e),r=t,o=M(()=>r&&"showSaveFilePicker"in r&&"showOpenFilePicker"in r),s=a.ref(),u=a.ref(),l=a.ref(),i=a.computed(()=>{var _,b;return(b=(_=l.value)==null?void 0:_.name)!=null?b:""}),c=a.computed(()=>{var _,b;return(b=(_=l.value)==null?void 0:_.type)!=null?b:""}),f=a.computed(()=>{var _,b;return(b=(_=l.value)==null?void 0:_.size)!=null?b:0}),v=a.computed(()=>{var _,b;return(b=(_=l.value)==null?void 0:_.lastModified)!=null?b:0});async function m(_={}){if(!o.value)return;const[b]=await r.showOpenFilePicker(ne(ne({},a.unref(e)),_));s.value=b,await h(),await O()}async function p(_={}){!o.value||(s.value=await r.showSaveFilePicker(ne(ne({},a.unref(e)),_)),u.value=void 0,await h(),await O())}async function y(_={}){if(!!o.value){if(!s.value)return w(_);if(u.value){const b=await s.value.createWritable();await b.write(u.value),await b.close()}await h()}}async function w(_={}){if(!!o.value){if(s.value=await r.showSaveFilePicker(ne(ne({},a.unref(e)),_)),u.value){const b=await s.value.createWritable();await b.write(u.value),await b.close()}await h()}}async function h(){var _;l.value=await((_=s.value)==null?void 0:_.getFile())}async function O(){var _,b;a.unref(n)==="Text"&&(u.value=await((_=l.value)==null?void 0:_.text())),a.unref(n)==="ArrayBuffer"&&(u.value=await((b=l.value)==null?void 0:b.arrayBuffer())),a.unref(n)==="Blob"&&(u.value=l.value)}return a.watch(()=>a.unref(n),O),{isSupported:o,data:u,file:l,fileName:i,fileMIME:c,fileSize:f,fileLastModified:v,open:m,create:p,save:y,saveAs:w,updateData:O}}function Ho(e,t={}){const{initialValue:n=!1}=t,r=_e(t),o=a.computed(()=>j(e)),s=a.computed({get(){return d.isDef(r.value)&&d.isDef(o.value)&&r.value===o.value},set(u){var l,i;!u&&s.value&&((l=o.value)==null||l.blur()),u&&!s.value&&((i=o.value)==null||i.focus())}});return a.watch(o,()=>{s.value=n},{immediate:!0,flush:"post"}),{focused:s}}function Wo(e,t={}){const n=_e(t),r=a.computed(()=>j(e));return{focused:a.computed(()=>r.value&&n.value?r.value.contains(n.value):!1)}}function xo(e){var t;const n=a.ref(0);if(typeof performance=="undefined")return n;const r=(t=e==null?void 0:e.every)!=null?t:10;let o=performance.now(),s=0;return D(()=>{if(s+=1,s>=r){const u=performance.now(),l=u-o;n.value=Math.round(1e3/(l/s)),o=u,s=0}}),n}const mt=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]];function Bo(e,t={}){const{document:n=L,autoExit:r=!1}=t,o=e||(n==null?void 0:n.querySelector("html")),s=a.ref(!1);let u=mt[0];const l=M(()=>{if(n){for(const w of mt)if(w[1]in n)return u=w,!0}else return!1;return!1}),[i,c,f,,v]=u;async function m(){!l.value||((n==null?void 0:n[f])&&await n[c](),s.value=!1)}async function p(){if(!l.value)return;await m();const w=j(o);w&&(await w[i](),s.value=!0)}async function y(){s.value?await m():await p()}return n&&S(n,v,()=>{s.value=!!(n==null?void 0:n[f])},!1),r&&d.tryOnScopeDispose(m),{isSupported:l,isFullscreen:s,enter:p,exit:m,toggle:y}}function Vo(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 zo(e={}){const{navigator:t=W}=e,n=M(()=>t&&"getGamepads"in t),r=a.ref([]),o=d.createEventHook(),s=d.createEventHook(),u=p=>{const y=[],w="vibrationActuator"in p?p.vibrationActuator:null;return w&&y.push(w),p.hapticActuators&&y.push(...p.hapticActuators),{id:p.id,hapticActuators:y,index:p.index,mapping:p.mapping,connected:p.connected,timestamp:p.timestamp,axes:p.axes.map(h=>h),buttons:p.buttons.map(h=>({pressed:h.pressed,touched:h.touched,value:h.value}))}},l=()=>{const p=(t==null?void 0:t.getGamepads())||[];for(let y=0;y
O===w.index);h>-1&&(r.value[h]=u(w))}}},{isActive:i,pause:c,resume:f}=D(l),v=p=>{r.value.some(({index:y})=>y===p.index)||(r.value.push(u(p)),o.trigger(p.index)),f()},m=p=>{r.value=r.value.filter(y=>y.index!==p.index),s.trigger(p.index)};return S("gamepadconnected",p=>v(p.gamepad)),S("gamepaddisconnected",p=>m(p.gamepad)),d.tryOnMounted(()=>{const p=(t==null?void 0:t.getGamepads())||[];if(p)for(let y=0;yo&&"geolocation"in o),l=a.ref(null),i=a.ref(null),c=a.ref({accuracy:0,latitude:1/0,longitude:1/0,altitude:null,altitudeAccuracy:null,heading:null,speed:null});function f(y){l.value=y.timestamp,c.value=y.coords,i.value=null}let v;function m(){u.value&&(v=o.geolocation.watchPosition(f,y=>i.value=y,{enableHighAccuracy:t,maximumAge:n,timeout:r}))}s&&m();function p(){v&&o&&o.geolocation.clearWatch(v)}return d.tryOnScopeDispose(()=>{p()}),{isSupported:u,coords:c,locatedAt:l,error:i,resume:m,pause:p}}const Go=["mousemove","mousedown","resize","keydown","touchstart","wheel"],Xo=6e4;function Ko(e=Xo,t={}){const{initialState:n=!1,listenForVisibilityChange:r=!0,events:o=Go,window:s=C,eventFilter:u=d.throttleFilter(50)}=t,l=a.ref(n),i=a.ref(d.timestamp());let c;const f=d.createFilterWrapper(u,()=>{l.value=!1,i.value=d.timestamp(),clearTimeout(c),c=setTimeout(()=>l.value=!0,e)});if(s){const v=s.document;for(const m of o)S(s,m,f,{passive:!0});r&&S(v,"visibilitychange",()=>{v.hidden||f()})}return c=setTimeout(()=>l.value=!0,e),{idle:l,lastActive:i}}var Yo=Object.defineProperty,_t=Object.getOwnPropertySymbols,Qo=Object.prototype.hasOwnProperty,Jo=Object.prototype.propertyIsEnumerable,bt=(e,t,n)=>t in e?Yo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Zo=(e,t)=>{for(var n in t||(t={}))Qo.call(t,n)&&bt(e,n,t[n]);if(_t)for(var n of _t(t))Jo.call(t,n)&&bt(e,n,t[n]);return e};async function Do(e){return new Promise((t,n)=>{const r=new Image,{src:o,srcset:s,sizes:u}=e;r.src=o,s&&(r.srcset=s),u&&(r.sizes=u),r.onload=()=>t(r),r.onerror=n})}const ea=(e,t={})=>{const n=ke(()=>Do(d.resolveUnref(e)),void 0,Zo({resetOnExecute:!0},t));return a.watch(()=>d.resolveUnref(e),()=>n.execute(t.delay),{deep:!0}),n},Ot=1;function St(e,t={}){const{throttle:n=0,idle:r=200,onStop:o=d.noop,onScroll:s=d.noop,offset:u={left:0,right:0,top:0,bottom:0},eventListenerOptions:l={capture:!1,passive:!0},behavior:i="auto"}=t,c=a.ref(0),f=a.ref(0),v=a.computed({get(){return c.value},set(b){p(b,void 0)}}),m=a.computed({get(){return f.value},set(b){p(void 0,b)}});function p(b,F){var P,T,E;const A=d.resolveUnref(e);!A||(E=A instanceof Document?document.body:A)==null||E.scrollTo({top:(P=d.resolveUnref(F))!=null?P:m.value,left:(T=d.resolveUnref(b))!=null?T:v.value,behavior:d.resolveUnref(i)})}const y=a.ref(!1),w=a.reactive({left:!0,right:!1,top:!0,bottom:!1}),h=a.reactive({left:!1,right:!1,top:!1,bottom:!1}),O=d.useDebounceFn(b=>{y.value=!1,h.left=!1,h.right=!1,h.top=!1,h.bottom=!1,o(b)},n+r),_=b=>{const F=b.target===document?b.target.documentElement:b.target,P=F.scrollLeft;h.left=Pf.value,w.left=P<=0+(u.left||0),w.right=P+F.clientWidth>=F.scrollWidth-(u.right||0)-Ot,c.value=P;let T=F.scrollTop;b.target===document&&!T&&(T=document.body.scrollTop),h.top=Tf.value,w.top=T<=0+(u.top||0),w.bottom=T+F.clientHeight>=F.scrollHeight-(u.bottom||0)-Ot,f.value=T,y.value=!0,O(b),s(b)};return S(e,"scroll",n?d.useThrottleFn(_,n,!0,!1):_,l),{x:v,y:m,isScrolling:y,arrivedState:w,directions:h}}var ta=Object.defineProperty,na=Object.defineProperties,ra=Object.getOwnPropertyDescriptors,Pt=Object.getOwnPropertySymbols,oa=Object.prototype.hasOwnProperty,aa=Object.prototype.propertyIsEnumerable,Et=(e,t,n)=>t in e?ta(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,$t=(e,t)=>{for(var n in t||(t={}))oa.call(t,n)&&Et(e,n,t[n]);if(Pt)for(var n of Pt(t))aa.call(t,n)&&Et(e,n,t[n]);return e},la=(e,t)=>na(e,ra(t));function sa(e,t,n={}){var r,o;const s=(r=n.direction)!=null?r:"bottom",u=a.reactive(St(e,la($t({},n),{offset:$t({[s]:(o=n.distance)!=null?o:0},n.offset)})));a.watch(()=>u.arrivedState[s],async l=>{var i,c;if(l){const f=d.resolveUnref(e),v={height:(i=f==null?void 0:f.scrollHeight)!=null?i:0,width:(c=f==null?void 0:f.scrollWidth)!=null?c:0};await t(u),n.preserveScrollPosition&&f&&a.nextTick(()=>{f.scrollTo({top:f.scrollHeight-v.height,left:f.scrollWidth-v.width})})}})}function ua(e,t,n={}){const{root:r,rootMargin:o="0px",threshold:s=.1,window:u=C}=n,l=M(()=>u&&"IntersectionObserver"in u);let i=d.noop;const c=l.value?a.watch(()=>({el:j(e),root:j(r)}),({el:v,root:m})=>{if(i(),!v)return;const p=new IntersectionObserver(t,{root:m,rootMargin:o,threshold:s});p.observe(v),i=()=>{p.disconnect(),i=d.noop}},{immediate:!0,flush:"post"}):d.noop,f=()=>{i(),c()};return d.tryOnScopeDispose(f),{isSupported:l,stop:f}}const ia=["mousedown","mouseup","keydown","keyup"];function ca(e,t={}){const{events:n=ia,document:r=L,initial:o=null}=t,s=a.ref(o);return r&&n.forEach(u=>{S(r,u,l=>{typeof l.getModifierState=="function"&&(s.value=l.getModifierState(e))})}),s}function fa(e,t,n={}){const{window:r=C}=n;return ce(e,t,r==null?void 0:r.localStorage,n)}const Tt={ctrl:"control",command:"meta",cmd:"meta",option:"alt",up:"arrowup",down:"arrowdown",left:"arrowleft",right:"arrowright"};function da(e={}){const{reactive:t=!1,target:n=C,aliasMap:r=Tt,passive:o=!0,onEventFired:s=d.noop}=e,u=a.reactive(new Set),l={toJSON(){return{}},current:u},i=t?a.reactive(l):l,c=new Set,f=new Set;function v(w,h){w in i&&(t?i[w]=h:i[w].value=h)}function m(){u.clear();for(const w of f)v(w,!1)}function p(w,h){var O,_;const b=(O=w.key)==null?void 0:O.toLowerCase(),P=[(_=w.code)==null?void 0:_.toLowerCase(),b].filter(Boolean);b&&(h?u.add(b):u.delete(b));for(const T of P)f.add(T),v(T,h);b==="meta"&&!h?(c.forEach(T=>{u.delete(T),v(T,!1)}),c.clear()):typeof w.getModifierState=="function"&&w.getModifierState("Meta")&&h&&[...u,...P].forEach(T=>c.add(T))}S(n,"keydown",w=>(p(w,!0),s(w)),{passive:o}),S(n,"keyup",w=>(p(w,!1),s(w)),{passive:o}),S("blur",m,{passive:!0}),S("focus",m,{passive:!0});const y=new Proxy(i,{get(w,h,O){if(typeof h!="string")return Reflect.get(w,h,O);if(h=h.toLowerCase(),h in r&&(h=r[h]),!(h in i))if(/[+_-]/.test(h)){const b=h.split(/[+_-]/g).map(F=>F.trim());i[h]=a.computed(()=>b.every(F=>a.unref(y[F])))}else i[h]=a.ref(!1);const _=Reflect.get(w,h,O);return t?a.unref(_):_}});return y}var va=Object.defineProperty,Ft=Object.getOwnPropertySymbols,pa=Object.prototype.hasOwnProperty,ya=Object.prototype.propertyIsEnumerable,Rt=(e,t,n)=>t in e?va(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,It=(e,t)=>{for(var n in t||(t={}))pa.call(t,n)&&Rt(e,n,t[n]);if(Ft)for(var n of Ft(t))ya.call(t,n)&&Rt(e,n,t[n]);return e};function Fe(e,t){d.resolveUnref(e)&&t(d.resolveUnref(e))}function ga(e){let t=[];for(let n=0;n({id:i,label:t,kind:n,language:r,mode:o,activeCues:s,cues:u,inBandMetadataTrackDispatchType:l}))}const wa={src:"",tracks:[]};function ha(e,t={}){t=It(It({},wa),t);const{document:n=L}=t,r=a.ref(0),o=a.ref(0),s=a.ref(!1),u=a.ref(1),l=a.ref(!1),i=a.ref(!1),c=a.ref(!1),f=a.ref(1),v=a.ref(!1),m=a.ref([]),p=a.ref([]),y=a.ref(-1),w=a.ref(!1),h=a.ref(!1),O=n&&"pictureInPictureEnabled"in n,_=d.createEventHook(),b=$=>{Fe(e,R=>{if($){const k=d.isNumber($)?$:$.id;R.textTracks[k].mode="disabled"}else for(let k=0;k{Fe(e,k=>{const H=d.isNumber($)?$:$.id;R&&b(),k.textTracks[H].mode="showing",y.value=H})},P=()=>new Promise(($,R)=>{Fe(e,async k=>{O&&(w.value?n.exitPictureInPicture().then($).catch(R):k.requestPictureInPicture().then($).catch(R))})});a.watchEffect(()=>{if(!n)return;const $=d.resolveUnref(e);if(!$)return;const R=d.resolveUnref(t.src);let k=[];!R||(d.isString(R)?k=[{src:R}]:Array.isArray(R)?k=R:d.isObject(R)&&(k=[R]),$.querySelectorAll("source").forEach(H=>{H.removeEventListener("error",_.trigger),H.remove()}),k.forEach(({src:H,type:K})=>{const N=n.createElement("source");N.setAttribute("src",H),N.setAttribute("type",K||""),N.addEventListener("error",_.trigger),$.appendChild(N)}),$.load())}),d.tryOnScopeDispose(()=>{const $=d.resolveUnref(e);!$||$.querySelectorAll("source").forEach(R=>R.removeEventListener("error",_.trigger))}),a.watch(u,$=>{const R=d.resolveUnref(e);!R||(R.volume=$)}),a.watch(h,$=>{const R=d.resolveUnref(e);!R||(R.muted=$)}),a.watch(f,$=>{const R=d.resolveUnref(e);!R||(R.playbackRate=$)}),a.watchEffect(()=>{if(!n)return;const $=d.resolveUnref(t.tracks),R=d.resolveUnref(e);!$||!$.length||!R||(R.querySelectorAll("track").forEach(k=>k.remove()),$.forEach(({default:k,kind:H,label:K,src:N,srcLang:G},B)=>{const V=n.createElement("track");V.default=k||!1,V.kind=H,V.label=K,V.src=N,V.srclang=G,V.default&&(y.value=B),R.appendChild(V)}))});const{ignoreUpdates:T}=d.watchIgnorable(r,$=>{const R=d.resolveUnref(e);!R||(R.currentTime=$)}),{ignoreUpdates:E}=d.watchIgnorable(c,$=>{const R=d.resolveUnref(e);!R||($?R.play():R.pause())});S(e,"timeupdate",()=>T(()=>r.value=d.resolveUnref(e).currentTime)),S(e,"durationchange",()=>o.value=d.resolveUnref(e).duration),S(e,"progress",()=>m.value=ga(d.resolveUnref(e).buffered)),S(e,"seeking",()=>s.value=!0),S(e,"seeked",()=>s.value=!1),S(e,"waiting",()=>l.value=!0),S(e,"playing",()=>l.value=!1),S(e,"ratechange",()=>f.value=d.resolveUnref(e).playbackRate),S(e,"stalled",()=>v.value=!0),S(e,"ended",()=>i.value=!0),S(e,"pause",()=>E(()=>c.value=!1)),S(e,"play",()=>E(()=>c.value=!0)),S(e,"enterpictureinpicture",()=>w.value=!0),S(e,"leavepictureinpicture",()=>w.value=!1),S(e,"volumechange",()=>{const $=d.resolveUnref(e);!$||(u.value=$.volume,h.value=$.muted)});const A=[],I=a.watch([e],()=>{const $=d.resolveUnref(e);!$||(I(),A[0]=S($.textTracks,"addtrack",()=>p.value=Re($.textTracks)),A[1]=S($.textTracks,"removetrack",()=>p.value=Re($.textTracks)),A[2]=S($.textTracks,"change",()=>p.value=Re($.textTracks)))});return d.tryOnScopeDispose(()=>A.forEach($=>$())),{currentTime:r,duration:o,waiting:l,seeking:s,ended:i,stalled:v,buffered:m,playing:c,rate:f,volume:u,muted:h,tracks:p,selectedTrack:y,enableTrack:F,disableTrack:b,supportsPictureInPicture:O,togglePictureInPicture:P,isPictureInPicture:w,onSourceError:_.on}}const ma=()=>{const e=a.reactive({});return{get:t=>e[t],set:(t,n)=>a.set(e,t,n),has:t=>d.hasOwn(e,t),delete:t=>a.del(e,t),clear:()=>{Object.keys(e).forEach(t=>{a.del(e,t)})}}};function _a(e,t){const r=(()=>(t==null?void 0:t.cache)?a.reactive(t.cache):a.isVue2?ma():a.reactive(new Map))(),o=(...f)=>(t==null?void 0:t.getKey)?t.getKey(...f):JSON.stringify(f),s=(f,...v)=>(r.set(f,e(...v)),r.get(f)),u=(...f)=>s(o(...f),...f),l=(...f)=>{r.delete(o(...f))},i=()=>{r.clear()},c=(...f)=>{const v=o(...f);return r.has(v)?r.get(v):s(v,...f)};return c.load=u,c.delete=l,c.clear=i,c.generateKey=o,c.cache=r,c}function ba(e={}){const t=a.ref(),n=M(()=>typeof performance!="undefined"&&"memory"in performance);if(n.value){const{interval:r=1e3}=e;d.useIntervalFn(()=>{t.value=performance.memory},r,{immediate:e.immediate,immediateCallback:e.immediateCallback})}return{isSupported:n,memory:t}}function Oa(){const e=a.ref(!1);return a.onMounted(()=>{e.value=!0}),e}function Ct(e={}){const{type:t="page",touch:n=!0,resetOnTouchEnds:r=!1,initialValue:o={x:0,y:0},window:s=C,eventFilter:u}=e,l=a.ref(o.x),i=a.ref(o.y),c=a.ref(null),f=w=>{t==="page"?(l.value=w.pageX,i.value=w.pageY):t==="client"&&(l.value=w.clientX,i.value=w.clientY),c.value="mouse"},v=()=>{l.value=o.x,i.value=o.y},m=w=>{if(w.touches.length>0){const h=w.touches[0];t==="page"?(l.value=h.pageX,i.value=h.pageY):t==="client"&&(l.value=h.clientX,i.value=h.clientY),c.value="touch"}},p=w=>u===void 0?f(w):u(()=>f(w),{}),y=w=>u===void 0?m(w):u(()=>m(w),{});return s&&(S(s,"mousemove",p,{passive:!0}),S(s,"dragover",p,{passive:!0}),n&&(S(s,"touchstart",y,{passive:!0}),S(s,"touchmove",y,{passive:!0}),r&&S(s,"touchend",v,{passive:!0}))),{x:l,y:i,sourceType:c}}function At(e,t={}){const{handleOutside:n=!0,window:r=C}=t,{x:o,y:s,sourceType:u}=Ct(t),l=a.ref(e??(r==null?void 0:r.document.body)),i=a.ref(0),c=a.ref(0),f=a.ref(0),v=a.ref(0),m=a.ref(0),p=a.ref(0),y=a.ref(!0);let w=()=>{};return r&&(w=a.watch([l,o,s],()=>{const h=j(l);if(!h)return;const{left:O,top:_,width:b,height:F}=h.getBoundingClientRect();f.value=O+r.pageXOffset,v.value=_+r.pageYOffset,m.value=F,p.value=b;const P=o.value-f.value,T=s.value-v.value;y.value=b===0||F===0||P<0||T<0||P>b||T>F,(n||!y.value)&&(i.value=P,c.value=T)},{immediate:!0})),{x:o,y:s,sourceType:u,elementX:i,elementY:c,elementPositionX:f,elementPositionY:v,elementHeight:m,elementWidth:p,isOutside:y,stop:w}}function Sa(e={}){const{touch:t=!0,drag:n=!0,initialValue:r=!1,window:o=C}=e,s=a.ref(r),u=a.ref(null);if(!o)return{pressed:s,sourceType:u};const l=f=>()=>{s.value=!0,u.value=f},i=()=>{s.value=!1,u.value=null},c=a.computed(()=>j(e.target)||o);return S(c,"mousedown",l("mouse"),{passive:!0}),S(o,"mouseleave",i,{passive:!0}),S(o,"mouseup",i,{passive:!0}),n&&(S(c,"dragstart",l("mouse"),{passive:!0}),S(o,"drop",i,{passive:!0}),S(o,"dragend",i,{passive:!0})),t&&(S(c,"touchstart",l("touch"),{passive:!0}),S(o,"touchend",i,{passive:!0}),S(o,"touchcancel",i,{passive:!0})),{pressed:s,sourceType:u}}var jt=Object.getOwnPropertySymbols,Pa=Object.prototype.hasOwnProperty,Ea=Object.prototype.propertyIsEnumerable,$a=(e,t)=>{var n={};for(var r in e)Pa.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&jt)for(var r of jt(e))t.indexOf(r)<0&&Ea.call(e,r)&&(n[r]=e[r]);return n};function Ie(e,t,n={}){const r=n,{window:o=C}=r,s=$a(r,["window"]);let u;const l=M(()=>o&&"MutationObserver"in o),i=()=>{u&&(u.disconnect(),u=void 0)},c=a.watch(()=>j(e),v=>{i(),l.value&&o&&v&&(u=new MutationObserver(t),u.observe(v,s))},{immediate:!0}),f=()=>{i(),c()};return d.tryOnScopeDispose(f),{isSupported:l,stop:f}}const Ta=(e={})=>{const{window:t=C}=e,n=t==null?void 0:t.navigator,r=M(()=>n&&"language"in n),o=a.ref(n==null?void 0:n.language);return S(t,"languagechange",()=>{n&&(o.value=n.language)}),{isSupported:r,language:o}};function kt(e={}){const{window:t=C}=e,n=t==null?void 0:t.navigator,r=M(()=>n&&"connection"in n),o=a.ref(!0),s=a.ref(!1),u=a.ref(void 0),l=a.ref(void 0),i=a.ref(void 0),c=a.ref(void 0),f=a.ref(void 0),v=a.ref(void 0),m=a.ref("unknown"),p=r.value&&n.connection;function y(){!n||(o.value=n.onLine,u.value=o.value?void 0:Date.now(),l.value=o.value?Date.now():void 0,p&&(i.value=p.downlink,c.value=p.downlinkMax,v.value=p.effectiveType,f.value=p.rtt,s.value=p.saveData,m.value=p.type))}return t&&(S(t,"offline",()=>{o.value=!1,u.value=Date.now()}),S(t,"online",()=>{o.value=!0,l.value=Date.now()})),p&&S(p,"change",y,!1),y(),{isSupported:r,isOnline:o,saveData:s,offlineAt:u,onlineAt:l,downlink:i,downlinkMax:c,effectiveType:v,rtt:f,type:m}}var Fa=Object.defineProperty,Mt=Object.getOwnPropertySymbols,Ra=Object.prototype.hasOwnProperty,Ia=Object.prototype.propertyIsEnumerable,Ut=(e,t,n)=>t in e?Fa(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ca=(e,t)=>{for(var n in t||(t={}))Ra.call(t,n)&&Ut(e,n,t[n]);if(Mt)for(var n of Mt(t))Ia.call(t,n)&&Ut(e,n,t[n]);return e};function Lt(e={}){const{controls:t=!1,interval:n="requestAnimationFrame"}=e,r=a.ref(new Date),o=()=>r.value=new Date,s=n==="requestAnimationFrame"?D(o,{immediate:!0}):d.useIntervalFn(o,n,{immediate:!0});return t?Ca({now:r},s):r}function Aa(e){const t=a.ref(),n=()=>{t.value&&URL.revokeObjectURL(t.value),t.value=void 0};return a.watch(()=>a.unref(e),r=>{n(),r&&(t.value=URL.createObjectURL(r))},{immediate:!0}),d.tryOnScopeDispose(n),a.readonly(t)}function Nt(e,t,n){const r=a.ref(e);return a.computed({get(){return r.value=d.clamp(r.value,d.resolveUnref(t),d.resolveUnref(n))},set(o){r.value=d.clamp(o,d.resolveUnref(t),d.resolveUnref(n))}})}function ja(e){const{total:t=1/0,pageSize:n=10,page:r=1,onPageChange:o=d.noop,onPageSizeChange:s=d.noop,onPageCountChange:u=d.noop}=e,l=Nt(n,1,1/0),i=a.computed(()=>Math.max(1,Math.ceil(a.unref(t)/a.unref(l)))),c=Nt(r,1,i),f=a.computed(()=>c.value===1),v=a.computed(()=>c.value===i.value);a.isRef(r)&&d.syncRef(r,c),a.isRef(n)&&d.syncRef(n,l);function m(){c.value--}function p(){c.value++}const y={currentPage:c,currentPageSize:l,pageCount:i,isFirstPage:f,isLastPage:v,prev:m,next:p};return a.watch(c,()=>{o(a.reactive(y))}),a.watch(l,()=>{s(a.reactive(y))}),a.watch(i,()=>{u(a.reactive(y))}),y}function ka(e={}){const{isOnline:t}=kt(e);return t}function Ma(e={}){const{window:t=C}=e,n=a.ref(!1),r=o=>{if(!t)return;o=o||t.event;const s=o.relatedTarget||o.toElement;n.value=!s};return t&&(S(t,"mouseout",r,{passive:!0}),S(t.document,"mouseleave",r,{passive:!0}),S(t.document,"mouseenter",r,{passive:!0})),n}function Ua(e,t={}){const{deviceOrientationTiltAdjust:n=w=>w,deviceOrientationRollAdjust:r=w=>w,mouseTiltAdjust:o=w=>w,mouseRollAdjust:s=w=>w,window:u=C}=t,l=a.reactive(ot({window:u})),{elementX:i,elementY:c,elementWidth:f,elementHeight:v}=At(e,{handleOutside:!1,window:u}),m=a.computed(()=>l.isSupported&&(l.alpha!=null&&l.alpha!==0||l.gamma!=null&&l.gamma!==0)?"deviceOrientation":"mouse"),p=a.computed(()=>{if(m.value==="deviceOrientation"){const w=-l.beta/90;return r(w)}else{const w=-(c.value-v.value/2)/v.value;return s(w)}}),y=a.computed(()=>{if(m.value==="deviceOrientation"){const w=l.gamma/90;return n(w)}else{const w=(i.value-f.value/2)/f.value;return o(w)}});return{roll:p,tilt:y,source:m}}var La=Object.defineProperty,Na=Object.defineProperties,Ha=Object.getOwnPropertyDescriptors,Ht=Object.getOwnPropertySymbols,Wa=Object.prototype.hasOwnProperty,xa=Object.prototype.propertyIsEnumerable,Wt=(e,t,n)=>t in e?La(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ba=(e,t)=>{for(var n in t||(t={}))Wa.call(t,n)&&Wt(e,n,t[n]);if(Ht)for(var n of Ht(t))xa.call(t,n)&&Wt(e,n,t[n]);return e},Va=(e,t)=>Na(e,Ha(t));const xt={x:0,y:0,pointerId:0,pressure:0,tiltX:0,tiltY:0,width:0,height:0,twist:0,pointerType:null},za=Object.keys(xt);function qa(e={}){const{target:t=C}=e,n=a.ref(!1),r=a.ref(e.initialValue||{});Object.assign(r.value,xt,r.value);const o=s=>{n.value=!0,!(e.pointerTypes&&!e.pointerTypes.includes(s.pointerType))&&(r.value=d.objectPick(s,za,!1))};return t&&(S(t,"pointerdown",o,{passive:!0}),S(t,"pointermove",o,{passive:!0}),S(t,"pointerleave",()=>n.value=!1,{passive:!0})),Va(Ba({},d.toRefs(r)),{isInside:n})}g.SwipeDirection=void 0,function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"}(g.SwipeDirection||(g.SwipeDirection={}));function Ga(e,t={}){const{threshold:n=50,onSwipe:r,onSwipeEnd:o,onSwipeStart:s,passive:u=!0,window:l=C}=t,i=a.reactive({x:0,y:0}),c=a.reactive({x:0,y:0}),f=a.computed(()=>i.x-c.x),v=a.computed(()=>i.y-c.y),{max:m,abs:p}=Math,y=a.computed(()=>m(p(f.value),p(v.value))>=n),w=a.ref(!1),h=a.computed(()=>y.value?p(f.value)>p(v.value)?f.value>0?g.SwipeDirection.LEFT:g.SwipeDirection.RIGHT:v.value>0?g.SwipeDirection.UP:g.SwipeDirection.DOWN:g.SwipeDirection.NONE),O=I=>[I.touches[0].clientX,I.touches[0].clientY],_=(I,$)=>{i.x=I,i.y=$},b=(I,$)=>{c.x=I,c.y=$};let F;const P=Xa(l==null?void 0:l.document);u?F=P?{passive:!0}:{capture:!1}:F=P?{passive:!1,capture:!0}:{capture:!0};const T=I=>{w.value&&(o==null||o(I,h.value)),w.value=!1},E=[S(e,"touchstart",I=>{F.capture&&!F.passive&&I.preventDefault();const[$,R]=O(I);_($,R),b($,R),s==null||s(I)},F),S(e,"touchmove",I=>{const[$,R]=O(I);b($,R),!w.value&&y.value&&(w.value=!0),w.value&&(r==null||r(I))},F),S(e,"touchend",T,F),S(e,"touchcancel",T,F)];return{isPassiveEventSupported:P,isSwiping:w,direction:h,coordsStart:i,coordsEnd:c,lengthX:f,lengthY:v,stop:()=>E.forEach(I=>I())}}function Xa(e){if(!e)return!1;let t=!1;const n={get passive(){return t=!0,!1}};return e.addEventListener("x",d.noop,n),e.removeEventListener("x",d.noop),t}function Ka(e,t={}){const n=d.resolveRef(e),{threshold:r=50,onSwipe:o,onSwipeEnd:s,onSwipeStart:u}=t,l=a.reactive({x:0,y:0}),i=(T,E)=>{l.x=T,l.y=E},c=a.reactive({x:0,y:0}),f=(T,E)=>{c.x=T,c.y=E},v=a.computed(()=>l.x-c.x),m=a.computed(()=>l.y-c.y),{max:p,abs:y}=Math,w=a.computed(()=>p(y(v.value),y(m.value))>=r),h=a.ref(!1),O=a.ref(!1),_=a.computed(()=>w.value?y(v.value)>y(m.value)?v.value>0?g.SwipeDirection.LEFT:g.SwipeDirection.RIGHT:m.value>0?g.SwipeDirection.UP:g.SwipeDirection.DOWN:g.SwipeDirection.NONE),b=T=>{var E,A,I;const $=T.buttons===0,R=T.buttons===1;return(I=(A=(E=t.pointerTypes)==null?void 0:E.includes(T.pointerType))!=null?A:$||R)!=null?I:!0},F=[S(e,"pointerdown",T=>{var E,A;if(!b(T))return;O.value=!0,(A=(E=n.value)==null?void 0:E.style)==null||A.setProperty("touch-action","none");const I=T.target;I==null||I.setPointerCapture(T.pointerId);const{clientX:$,clientY:R}=T;i($,R),f($,R),u==null||u(T)}),S(e,"pointermove",T=>{if(!b(T)||!O.value)return;const{clientX:E,clientY:A}=T;f(E,A),!h.value&&w.value&&(h.value=!0),h.value&&(o==null||o(T))}),S(e,"pointerup",T=>{var E,A;!b(T)||(h.value&&(s==null||s(T,_.value)),O.value=!1,h.value=!1,(A=(E=n.value)==null?void 0:E.style)==null||A.setProperty("touch-action","initial"))})],P=()=>F.forEach(T=>T());return{isSwiping:a.readonly(h),direction:a.readonly(_),posStart:a.readonly(l),posEnd:a.readonly(c),distanceX:v,distanceY:m,stop:P}}function Ya(e){const t=q("(prefers-color-scheme: light)",e),n=q("(prefers-color-scheme: dark)",e);return a.computed(()=>n.value?"dark":t.value?"light":"no-preference")}function Qa(e){const t=q("(prefers-contrast: more)",e),n=q("(prefers-contrast: less)",e),r=q("(prefers-contrast: custom)",e);return a.computed(()=>t.value?"more":n.value?"less":r.value?"custom":"no-preference")}function Ja(e={}){const{window:t=C}=e;if(!t)return a.ref(["en"]);const n=t.navigator,r=a.ref(n.languages);return S(t,"languagechange",()=>{r.value=n.languages}),r}function Za(e){const t=q("(prefers-reduced-motion: reduce)",e);return a.computed(()=>t.value?"reduce":"no-preference")}const Da=(e={})=>{const{window:t=C}=e,n=M(()=>t&&"screen"in t&&"orientation"in t.screen),r=n.value?t.screen.orientation:{},o=a.ref(r.type),s=a.ref(r.angle||0);return n.value&&S(t,"orientationchange",()=>{o.value=r.type,s.value=r.angle}),{isSupported:n,orientation:o,angle:s,lockOrientation:i=>n.value?r.lock(i):Promise.reject(new Error("Not supported")),unlockOrientation:()=>{n.value&&r.unlock()}}},Bt="--vueuse-safe-area-top",Vt="--vueuse-safe-area-right",zt="--vueuse-safe-area-bottom",qt="--vueuse-safe-area-left";function el(){const e=a.ref(""),t=a.ref(""),n=a.ref(""),r=a.ref("");if(d.isClient){const s=ae(Bt),u=ae(Vt),l=ae(zt),i=ae(qt);s.value="env(safe-area-inset-top, 0px)",u.value="env(safe-area-inset-right, 0px)",l.value="env(safe-area-inset-bottom, 0px)",i.value="env(safe-area-inset-left, 0px)",o(),S("resize",d.useDebounceFn(o))}function o(){e.value=ve(Bt),t.value=ve(Vt),n.value=ve(zt),r.value=ve(qt)}return{top:e,right:t,bottom:n,left:r,update:o}}function ve(e){return getComputedStyle(document.documentElement).getPropertyValue(e)}function tl(e,t=d.noop,n={}){const{immediate:r=!0,manual:o=!1,type:s="text/javascript",async:u=!0,crossOrigin:l,referrerPolicy:i,noModule:c,defer:f,document:v=L,attrs:m={}}=n,p=a.ref(null);let y=null;const w=_=>new Promise((b,F)=>{const P=A=>(p.value=A,b(A),A);if(!v){b(!1);return}let T=!1,E=v.querySelector(`script[src="${d.resolveUnref(e)}"]`);E?E.hasAttribute("data-loaded")&&P(E):(E=v.createElement("script"),E.type=s,E.async=u,E.src=d.resolveUnref(e),f&&(E.defer=f),l&&(E.crossOrigin=l),c&&(E.noModule=c),i&&(E.referrerPolicy=i),Object.entries(m).forEach(([A,I])=>E==null?void 0:E.setAttribute(A,I)),T=!0),E.addEventListener("error",A=>F(A)),E.addEventListener("abort",A=>F(A)),E.addEventListener("load",()=>{E.setAttribute("data-loaded","true"),t(E),P(E)}),T&&(E=v.head.appendChild(E)),_||P(E)}),h=(_=!0)=>(y||(y=w(_)),y),O=()=>{if(!v)return;y=null,p.value&&(p.value=null);const _=v.querySelector(`script[src="${d.resolveUnref(e)}"]`);_&&v.head.removeChild(_)};return r&&!o&&d.tryOnMounted(h),o||d.tryOnUnmounted(O),{scriptTag:p,load:h,unload:O}}function nl(e){const t=e||window.event;return t.touches.length>1?!0:(t.preventDefault&&t.preventDefault(),!1)}function rl(e,t=!1){const n=a.ref(t);let r=null,o;a.watch(d.resolveRef(e),l=>{if(l){const i=l;o=i.style.overflow,n.value&&(i.style.overflow="hidden")}},{immediate:!0});const s=()=>{const l=d.resolveUnref(e);!l||n.value||(d.isIOS&&(r=S(l,"touchmove",nl,{passive:!1})),l.style.overflow="hidden",n.value=!0)},u=()=>{const l=d.resolveUnref(e);!l||!n.value||(d.isIOS&&(r==null||r()),l.style.overflow=o,n.value=!1)};return d.tryOnScopeDispose(u),a.computed({get(){return n.value},set(l){l?s():u()}})}function ol(e,t,n={}){const{window:r=C}=n;return ce(e,t,r==null?void 0:r.sessionStorage,n)}var al=Object.defineProperty,Gt=Object.getOwnPropertySymbols,ll=Object.prototype.hasOwnProperty,sl=Object.prototype.propertyIsEnumerable,Xt=(e,t,n)=>t in e?al(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Kt=(e,t)=>{for(var n in t||(t={}))ll.call(t,n)&&Xt(e,n,t[n]);if(Gt)for(var n of Gt(t))sl.call(t,n)&&Xt(e,n,t[n]);return e};function ul(e={},t={}){const{navigator:n=W}=t,r=n,o=M(()=>r&&"canShare"in r);return{isSupported:o,share:async(u={})=>{if(o.value){const l=Kt(Kt({},d.resolveUnref(e)),d.resolveUnref(u));let i=!0;if(l.files&&r.canShare&&(i=r.canShare({files:l.files})),i)return r.share(l)}}}}const il=(e,t)=>e.sort(t),pe=(e,t)=>e-t;function cl(...e){var t,n,r,o;const[s]=e;let u=pe,l={};e.length===2?typeof e[1]=="object"?(l=e[1],u=(t=l.compareFn)!=null?t:pe):u=(n=e[1])!=null?n:pe:e.length>2&&(u=(r=e[1])!=null?r:pe,l=(o=e[2])!=null?o:{});const{dirty:i=!1,sortFn:c=il}=l;return i?(a.watchEffect(()=>{const f=c(a.unref(s),u);a.isRef(s)?s.value=f:s.splice(0,s.length,...f)}),s):a.computed(()=>c([...a.unref(s)],u))}function fl(e={}){const{interimResults:t=!0,continuous:n=!0,window:r=C}=e,o=d.resolveRef(e.lang||"en-US"),s=a.ref(!1),u=a.ref(!1),l=a.ref(""),i=a.shallowRef(void 0),c=(w=!s.value)=>{s.value=w},f=()=>{s.value=!0},v=()=>{s.value=!1},m=r&&(r.SpeechRecognition||r.webkitSpeechRecognition),p=M(()=>m);let y;return p.value&&(y=new m,y.continuous=n,y.interimResults=t,y.lang=a.unref(o),y.onstart=()=>{u.value=!1},a.watch(o,w=>{y&&!s.value&&(y.lang=w)}),y.onresult=w=>{const h=Array.from(w.results).map(O=>(u.value=O.isFinal,O[0])).map(O=>O.transcript).join("");l.value=h,i.value=void 0},y.onerror=w=>{i.value=w},y.onend=()=>{s.value=!1,y.lang=a.unref(o)},a.watch(s,()=>{s.value?y.start():y.stop()})),d.tryOnScopeDispose(()=>{s.value=!1}),{isSupported:p,isListening:s,isFinal:u,recognition:y,result:l,error:i,toggle:c,start:f,stop:v}}function dl(e,t={}){const{pitch:n=1,rate:r=1,volume:o=1,window:s=C}=t,u=s&&s.speechSynthesis,l=M(()=>u),i=a.ref(!1),c=a.ref("init"),f=d.resolveRef(e||""),v=d.resolveRef(t.lang||"en-US"),m=a.shallowRef(void 0),p=(O=!i.value)=>{i.value=O},y=O=>{O.lang=a.unref(v),O.voice=a.unref(t.voice)||null,O.pitch=n,O.rate=r,O.volume=o,O.onstart=()=>{i.value=!0,c.value="play"},O.onpause=()=>{i.value=!1,c.value="pause"},O.onresume=()=>{i.value=!0,c.value="play"},O.onend=()=>{i.value=!1,c.value="end"},O.onerror=_=>{m.value=_}},w=a.computed(()=>{i.value=!1,c.value="init";const O=new SpeechSynthesisUtterance(f.value);return y(O),O}),h=()=>{u.cancel(),w&&u.speak(w.value)};return l.value&&(y(w.value),a.watch(v,O=>{w.value&&!i.value&&(w.value.lang=O)}),t.voice&&a.watch(t.voice,()=>{u.cancel()}),a.watch(i,()=>{i.value?u.resume():u.pause()})),d.tryOnScopeDispose(()=>{i.value=!1}),{isSupported:l,isPlaying:i,status:c,utterance:w,error:m,toggle:p,speak:h}}function vl(e,t){const n=a.ref(e),r=a.computed(()=>Array.isArray(n.value)?n.value:Object.keys(n.value)),o=a.ref(r.value.indexOf(t??r.value[0])),s=a.computed(()=>f(o.value)),u=a.computed(()=>o.value===0),l=a.computed(()=>o.value===r.value.length-1),i=a.computed(()=>r.value[o.value+1]),c=a.computed(()=>r.value[o.value-1]);function f(P){return Array.isArray(n.value)?n.value[P]:n.value[r.value[P]]}function v(P){if(!!r.value.includes(P))return f(r.value.indexOf(P))}function m(P){r.value.includes(P)&&(o.value=r.value.indexOf(P))}function p(){l.value||o.value++}function y(){u.value||o.value--}function w(P){F(P)&&m(P)}function h(P){return r.value.indexOf(P)===o.value+1}function O(P){return r.value.indexOf(P)===o.value-1}function _(P){return r.value.indexOf(P)===o.value}function b(P){return o.valuer.value.indexOf(P)}return{steps:n,stepNames:r,index:o,current:s,next:i,previous:c,isFirst:u,isLast:l,at:f,get:v,goTo:m,goToNext:p,goToPrevious:y,goBackTo:w,isNext:h,isPrevious:O,isCurrent:_,isBefore:b,isAfter:F}}function pl(e,t,n,r={}){var o;const{flush:s="pre",deep:u=!0,listenToStorageChanges:l=!0,writeDefaults:i=!0,shallow:c,window:f=C,eventFilter:v,onError:m=_=>{console.error(_)}}=r,p=d.resolveUnref(t),y=We(p),w=(c?a.shallowRef:a.ref)(t),h=(o=r.serializer)!=null?o:Pe[y];if(!n)try{n=ie("getDefaultStorage",()=>{var _;return(_=C)==null?void 0:_.localStorage})()}catch(_){m(_)}async function O(_){if(!(!n||_&&_.key!==e))try{const b=_?_.newValue:await n.getItem(e);b==null?(w.value=p,i&&p!==null&&await n.setItem(e,await h.write(p))):w.value=await h.read(b)}catch(b){m(b)}}return O(),f&&l&&S(f,"storage",_=>setTimeout(()=>O(_),0)),n&&d.watchWithFilter(w,async()=>{try{w.value==null?await n.removeItem(e):await n.setItem(e,await h.write(w.value))}catch(_){m(_)}},{flush:s,deep:u,eventFilter:v}),w}let yl=0;function gl(e,t={}){const n=a.ref(!1),{document:r=L,immediate:o=!0,manual:s=!1,id:u=`vueuse_styletag_${++yl}`}=t,l=a.ref(e);let i=()=>{};const c=()=>{if(!r)return;const v=r.getElementById(u)||r.createElement("style");v.isConnected||(v.type="text/css",v.id=u,t.media&&(v.media=t.media),r.head.appendChild(v)),!n.value&&(i=a.watch(l,m=>{v.textContent=m},{immediate:!0}),n.value=!0)},f=()=>{!r||!n.value||(i(),r.head.removeChild(r.getElementById(u)),n.value=!1)};return o&&!s&&d.tryOnMounted(c),s||d.tryOnScopeDispose(f),{id:u,css:l,unload:f,load:c,isLoaded:a.readonly(n)}}function wl(){const e=a.ref([]);return e.value.set=t=>{t&&e.value.push(t)},a.onBeforeUpdate(()=>{e.value.length=0}),e}function hl(e={}){const{document:t=L,selector:n="html",observe:r=!1,initialValue:o="ltr"}=e;function s(){var l,i;return(i=(l=t==null?void 0:t.querySelector(n))==null?void 0:l.getAttribute("dir"))!=null?i:o}const u=a.ref(s());return d.tryOnMounted(()=>u.value=s()),r&&t&&Ie(t.querySelector(n),()=>u.value=s(),{attributes:!0}),a.computed({get(){return u.value},set(l){var i,c;u.value=l,!!t&&(u.value?(i=t.querySelector(n))==null||i.setAttribute("dir",u.value):(c=t.querySelector(n))==null||c.removeAttribute("dir"))}})}function ml(e){var t;const n=(t=e.rangeCount)!=null?t:0,r=new Array(n);for(let o=0;o{var l,i;return(i=(l=n.value)==null?void 0:l.toString())!=null?i:""}),o=a.computed(()=>n.value?ml(n.value):[]),s=a.computed(()=>o.value.map(l=>l.getBoundingClientRect()));function u(){n.value=null,t&&(n.value=t.getSelection())}return t&&S(t.document,"selectionchange",u),{text:r,rects:s,ranges:o,selection:n}}function bl(e){const t=a.ref(e==null?void 0:e.element),n=a.ref(e==null?void 0:e.input);function r(){var o,s;!t.value||(t.value.style.height="1px",t.value.style.height=`${(o=t.value)==null?void 0:o.scrollHeight}px`,(s=e==null?void 0:e.onResize)==null||s.call(e))}return a.watch([n,t],r,{immediate:!0}),fe(t,()=>r()),(e==null?void 0:e.watch)&&a.watch(e.watch,r,{immediate:!0,deep:!0}),{textarea:t,input:n,triggerResize:r}}var Ol=Object.defineProperty,Sl=Object.defineProperties,Pl=Object.getOwnPropertyDescriptors,Yt=Object.getOwnPropertySymbols,El=Object.prototype.hasOwnProperty,$l=Object.prototype.propertyIsEnumerable,Qt=(e,t,n)=>t in e?Ol(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Jt=(e,t)=>{for(var n in t||(t={}))El.call(t,n)&&Qt(e,n,t[n]);if(Yt)for(var n of Yt(t))$l.call(t,n)&&Qt(e,n,t[n]);return e},Tl=(e,t)=>Sl(e,Pl(t));function Fl(e,t={}){const{throttle:n=200,trailing:r=!0}=t,o=d.throttleFilter(n,r),s=$e(e,Tl(Jt({},t),{eventFilter:o}));return Jt({},s)}var Rl=Object.defineProperty,ye=Object.getOwnPropertySymbols,Zt=Object.prototype.hasOwnProperty,Dt=Object.prototype.propertyIsEnumerable,en=(e,t,n)=>t in e?Rl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Il=(e,t)=>{for(var n in t||(t={}))Zt.call(t,n)&&en(e,n,t[n]);if(ye)for(var n of ye(t))Dt.call(t,n)&&en(e,n,t[n]);return e},Cl=(e,t)=>{var n={};for(var r in e)Zt.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&ye)for(var r of ye(e))t.indexOf(r)<0&&Dt.call(e,r)&&(n[r]=e[r]);return n};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:1/0,value:31536e6,name:"year"}],jl={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:""},kl=e=>e.toISOString().slice(0,10);function Ml(e,t={}){const{controls:n=!1,updateInterval:r=3e4}=t,o=Lt({interval:r,controls:!0}),{now:s}=o,u=Cl(o,["now"]),l=a.computed(()=>tn(new Date(d.resolveUnref(e)),t,a.unref(s.value)));return n?Il({timeAgo:l},u):l}function tn(e,t={},n=Date.now()){var r;const{max:o,messages:s=jl,fullDateFormatter:u=kl,units:l=Al,showSecond:i=!1,rounding:c="round"}=t,f=typeof c=="number"?h=>+h.toFixed(c):Math[c],v=+n-+e,m=Math.abs(v);function p(h,O){return f(Math.abs(h)/O.value)}function y(h,O){const _=p(h,O),b=h>0,F=w(O.name,_,b);return w(b?"past":"future",F,b)}function w(h,O,_){const b=s[h];return typeof b=="function"?b(O,_):b.replace("{0}",O.toString())}if(m<6e4&&!i)return s.justNow;if(typeof o=="number"&&m>o)return u(new Date(e));if(typeof o=="string"){const h=(r=l.find(O=>O.name===o))==null?void 0:r.max;if(h&&m>h)return u(new Date(e))}for(const[h,O]of l.entries()){if(p(v,O)<=0&&l[h-1])return y(v,l[h-1]);if(mt in e?Ll(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Wl=(e,t)=>{for(var n in t||(t={}))Nl.call(t,n)&&rn(e,n,t[n]);if(nn)for(var n of nn(t))Hl.call(t,n)&&rn(e,n,t[n]);return e};function xl(e={}){const{controls:t=!1,offset:n=0,immediate:r=!0,interval:o="requestAnimationFrame",callback:s}=e,u=a.ref(d.timestamp()+n),l=()=>u.value=d.timestamp()+n,i=s?()=>{l(),s(u.value)}:l,c=o==="requestAnimationFrame"?D(i,{immediate:r}):d.useIntervalFn(i,o,{immediate:r});return t?Wl({timestamp:u},c):u}function Bl(e=null,t={}){var n,r;const{document:o=L}=t,s=d.resolveRef((n=e??(o==null?void 0:o.title))!=null?n:null),u=e&&d.isFunction(e);function l(i){if(!("titleTemplate"in t))return i;const c=t.titleTemplate||"%s";return d.isFunction(c)?c(i):a.unref(c).replace(/%s/g,i)}return a.watch(s,(i,c)=>{i!==c&&o&&(o.title=l(d.isString(i)?i:""))},{immediate:!0}),t.observe&&!t.titleTemplate&&o&&!u&&Ie((r=o.head)==null?void 0:r.querySelector("title"),()=>{o&&o.title!==s.value&&(s.value=l(o.title))},{childList:!0}),s}var Vl=Object.defineProperty,on=Object.getOwnPropertySymbols,zl=Object.prototype.hasOwnProperty,ql=Object.prototype.propertyIsEnumerable,an=(e,t,n)=>t in e?Vl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Gl=(e,t)=>{for(var n in t||(t={}))zl.call(t,n)&&an(e,n,t[n]);if(on)for(var n of on(t))ql.call(t,n)&&an(e,n,t[n]);return e};const Xl={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]},Kl=Gl({linear:d.identity},Xl);function Yl([e,t,n,r]){const o=(f,v)=>1-3*v+3*f,s=(f,v)=>3*v-6*f,u=f=>3*f,l=(f,v,m)=>((o(v,m)*f+s(v,m))*f+u(v))*f,i=(f,v,m)=>3*o(v,m)*f*f+2*s(v,m)*f+u(v),c=f=>{let v=f;for(let m=0;m<4;++m){const p=i(v,e,n);if(p===0)return v;v-=(l(v,e,n)-f)/p}return v};return f=>e===t&&n===r?f:l(c(f),t,r)}function Ql(e,t={}){const{delay:n=0,disabled:r=!1,duration:o=1e3,onFinished:s=d.noop,onStarted:u=d.noop,transition:l=d.identity}=t,i=a.computed(()=>{const P=a.unref(l);return d.isFunction(P)?P:Yl(P)}),c=a.computed(()=>{const P=a.unref(e);return d.isNumber(P)?P:P.map(a.unref)}),f=a.computed(()=>d.isNumber(c.value)?[c.value]:c.value),v=a.ref(f.value.slice(0));let m,p,y,w,h;const{resume:O,pause:_}=D(()=>{const P=Date.now(),T=d.clamp(1-(y-P)/m,0,1);v.value=h.map((E,A)=>{var I;return E+((I=p[A])!=null?I:0)*i.value(T)}),T>=1&&(_(),s())},{immediate:!1}),b=()=>{_(),m=a.unref(o),p=v.value.map((P,T)=>{var E,A;return((E=f.value[T])!=null?E:0)-((A=v.value[T])!=null?A:0)}),h=v.value.slice(0),w=Date.now(),y=w+m,O(),u()},F=d.useTimeoutFn(b,n,{immediate:!1});return a.watch(f,()=>{a.unref(r)||(a.unref(n)<=0?b():F.start())},{deep:!0}),a.watch(()=>a.unref(r),P=>{P&&(v.value=f.value.slice(0),_())}),a.computed(()=>{const P=a.unref(r)?f:v;return d.isNumber(c.value)?P.value[0]:P.value})}function Jl(e="history",t={}){const{initialValue:n={},removeNullishValues:r=!0,removeFalsyValues:o=!1,write:s=!0,window:u=C}=t;if(!u)return a.reactive(n);const l=a.reactive({});function i(){if(e==="history")return u.location.search||"";if(e==="hash"){const O=u.location.hash||"",_=O.indexOf("?");return _>0?O.slice(_):""}else return(u.location.hash||"").replace(/^#/,"")}function c(O){const _=O.toString();if(e==="history")return`${_?`?${_}`:""}${u.location.hash||""}`;if(e==="hash-params")return`${u.location.search||""}${_?`#${_}`:""}`;const b=u.location.hash||"#",F=b.indexOf("?");return F>0?`${b.slice(0,F)}${_?`?${_}`:""}`:`${b}${_?`?${_}`:""}`}function f(){return new URLSearchParams(i())}function v(O){const _=new Set(Object.keys(l));for(const b of O.keys()){const F=O.getAll(b);l[b]=F.length>1?F:O.get(b)||"",_.delete(b)}Array.from(_).forEach(b=>delete l[b])}const{pause:m,resume:p}=d.pausableWatch(l,()=>{const O=new URLSearchParams("");Object.keys(l).forEach(_=>{const b=l[_];Array.isArray(b)?b.forEach(F=>O.append(_,F)):r&&b==null||o&&!b?O.delete(_):O.set(_,b)}),y(O)},{deep:!0});function y(O,_){m(),_&&v(O),u.history.replaceState(u.history.state,u.document.title,u.location.pathname+c(O)),p()}function w(){!s||y(f(),!0)}S(u,"popstate",w,!1),e!=="history"&&S(u,"hashchange",w,!1);const h=f();return h.keys().next().value?v(h):Object.assign(l,n),l}function Zl(e={}){var t,n;const r=a.ref((t=e.enabled)!=null?t:!1),o=a.ref((n=e.autoSwitch)!=null?n:!0),s=a.ref(e.videoDeviceId),u=a.ref(e.audioDeviceId),{navigator:l=W}=e,i=M(()=>{var h;return(h=l==null?void 0:l.mediaDevices)==null?void 0:h.getUserMedia}),c=a.shallowRef();function f(h){return h.value==="none"||h.value===!1?!1:h.value==null?!0:{deviceId:h.value}}async function v(){if(!(!i.value||c.value))return c.value=await l.mediaDevices.getUserMedia({video:f(s),audio:f(u)}),c.value}async function m(){var h;(h=c.value)==null||h.getTracks().forEach(O=>O.stop()),c.value=void 0}function p(){m(),r.value=!1}async function y(){return await v(),c.value&&(r.value=!0),c.value}async function w(){return m(),await y()}return a.watch(r,h=>{h?v():m()},{immediate:!0}),a.watch([s,u],()=>{o.value&&c.value&&w()},{immediate:!0}),{isSupported:i,stream:c,start:y,stop:p,restart:w,videoDeviceId:s,audioDeviceId:u,enabled:r,autoSwitch:o}}function ln(e,t,n,r={}){var o,s,u,l,i;const{clone:c=!1,passive:f=!1,eventName:v,deep:m=!1,defaultValue:p}=r,y=a.getCurrentInstance(),w=n||(y==null?void 0:y.emit)||((o=y==null?void 0:y.$emit)==null?void 0:o.bind(y))||((u=(s=y==null?void 0:y.proxy)==null?void 0:s.$emit)==null?void 0:u.bind(y==null?void 0:y.proxy));let h=v;if(!t)if(a.isVue2){const b=(i=(l=y==null?void 0:y.proxy)==null?void 0:l.$options)==null?void 0:i.model;t=(b==null?void 0:b.value)||"value",v||(h=(b==null?void 0:b.event)||"input")}else t="modelValue";h=v||h||`update:${t.toString()}`;const O=b=>c?d.isFunction(c)?c(b):oe(b):b,_=()=>d.isDef(e[t])?O(e[t]):p;if(f){const b=_(),F=a.ref(b);return a.watch(()=>e[t],P=>F.value=O(P)),a.watch(F,P=>{(P!==e[t]||m)&&w(h,P)},{deep:m}),F}else return a.computed({get(){return _()},set(b){w(h,b)}})}function Dl(e,t,n={}){const r={};for(const o in e)r[o]=ln(e,o,t,n);return r}function es(e){const{pattern:t=[],interval:n=0,navigator:r=W}=e||{},o=M(()=>typeof r!="undefined"&&"vibrate"in r),s=d.resolveRef(t);let u;const l=(c=s.value)=>{o.value&&r.vibrate(c)},i=()=>{o.value&&r.vibrate(0),u==null||u.pause()};return n>0&&(u=d.useIntervalFn(l,n,{immediate:!1,immediateCallback:!1})),{isSupported:o,pattern:t,intervalControls:u,vibrate:l,stop:i}}function ts(e,t){const{containerStyle:n,wrapperProps:r,scrollTo:o,calculateRange:s,currentList:u,containerRef:l}="itemHeight"in t?os(t,e):rs(t,e);return{list:u,scrollTo:o,containerProps:{ref:l,onScroll:()=>{s()},style:n},wrapperProps:r}}function sn(e){const t=a.ref(null),n=ft(t),r=a.ref([]),o=a.shallowRef(e);return{state:a.ref({start:0,end:10}),source:o,currentList:r,size:n,containerRef:t}}function un(e,t,n){return r=>{if(typeof n=="number")return Math.ceil(r/n);const{start:o=0}=e.value;let s=0,u=0;for(let l=o;l=r){u=l;break}return u-o}}function cn(e,t){return n=>{if(typeof t=="number")return Math.floor(n/t)+1;let r=0,o=0;for(let s=0;s=n){o=s;break}return o+1}}function fn(e,t,n,r,{containerRef:o,state:s,currentList:u,source:l}){return()=>{const i=o.value;if(i){const c=n(e==="vertical"?i.scrollTop:i.scrollLeft),f=r(e==="vertical"?i.clientHeight:i.clientWidth),v=c-t,m=c+f+t;s.value={start:v<0?0:v,end:m>l.value.length?l.value.length:m},u.value=l.value.slice(s.value.start,s.value.end).map((p,y)=>({data:p,index:y+s.value.start}))}}}function dn(e,t){return n=>typeof e=="number"?n*e:t.value.slice(0,n).reduce((o,s,u)=>o+e(u),0)}function vn(e,t,n){a.watch([e.width,e.height,t],()=>{n()})}function pn(e,t){return a.computed(()=>typeof e=="number"?t.value.length*e:t.value.reduce((n,r,o)=>n+e(o),0))}const ns={horizontal:"scrollLeft",vertical:"scrollTop"};function yn(e,t,n,r){return o=>{r.value&&(r.value[ns[e]]=n(o),t())}}function rs(e,t){const n=sn(t),{state:r,source:o,currentList:s,size:u,containerRef:l}=n,i={overflowX:"auto"},{itemWidth:c,overscan:f=5}=e,v=un(r,o,c),m=cn(o,c),p=fn("horizontal",f,m,v,n),y=dn(c,o),w=a.computed(()=>y(r.value.start)),h=pn(c,o);vn(u,t,p);const O=yn("horizontal",p,y,l),_=a.computed(()=>({style:{height:"100%",width:`${h.value-w.value}px`,marginLeft:`${w.value}px`,display:"flex"}}));return{scrollTo:O,calculateRange:p,wrapperProps:_,containerStyle:i,currentList:s,containerRef:l}}function os(e,t){const n=sn(t),{state:r,source:o,currentList:s,size:u,containerRef:l}=n,i={overflowY:"auto"},{itemHeight:c,overscan:f=5}=e,v=un(r,o,c),m=cn(o,c),p=fn("vertical",f,m,v,n),y=dn(c,o),w=a.computed(()=>y(r.value.start)),h=pn(c,o);vn(u,t,p);const O=yn("vertical",p,y,l),_=a.computed(()=>({style:{width:"100%",height:`${h.value-w.value}px`,marginTop:`${w.value}px`}}));return{calculateRange:p,scrollTo:O,containerStyle:i,wrapperProps:_,currentList:s,containerRef:l}}const as=(e={})=>{const{navigator:t=W,document:n=L}=e;let r;const o=M(()=>t&&"wakeLock"in t),s=a.ref(!1);async function u(){!o.value||!r||(n&&n.visibilityState==="visible"&&(r=await t.wakeLock.request("screen")),s.value=!r.released)}n&&S(n,"visibilitychange",u,{passive:!0});async function l(c){!o.value||(r=await t.wakeLock.request(c),s.value=!r.released)}async function i(){!o.value||!r||(await r.release(),s.value=!r.released,r=null)}return{isSupported:o,isActive:s,request:l,release:i}},ls=(e={})=>{const{window:t=C}=e,n=M(()=>!!t&&"Notification"in t),r=a.ref(null),o=async()=>{!n.value||"permission"in Notification&&Notification.permission!=="denied"&&await Notification.requestPermission()},s=d.createEventHook(),u=d.createEventHook(),l=d.createEventHook(),i=d.createEventHook(),c=async v=>{if(!n.value)return;await o();const m=Object.assign({},e,v);return r.value=new Notification(m.title||"",m),r.value.onclick=p=>s.trigger(p),r.value.onshow=p=>u.trigger(p),r.value.onerror=p=>l.trigger(p),r.value.onclose=p=>i.trigger(p),r.value},f=()=>{r.value&&r.value.close(),r.value=null};if(d.tryOnMounted(async()=>{n.value&&await o()}),d.tryOnScopeDispose(f),n.value&&t){const v=t.document;S(v,"visibilitychange",m=>{m.preventDefault(),v.visibilityState==="visible"&&f()})}return{isSupported:n,notification:r,show:c,close:f,onClick:s,onShow:u,onError:l,onClose:i}},gn="ping";function Ce(e){return e===!0?{}:e}function ss(e,t={}){const{onConnected:n,onDisconnected:r,onError:o,onMessage:s,immediate:u=!0,autoClose:l=!0,protocols:i=[]}=t,c=a.ref(null),f=a.ref("CLOSED"),v=a.ref(),m=d.resolveRef(e);let p,y,w=!1,h=0,O=[],_;const b=(I=1e3,$)=>{!v.value||(w=!0,p==null||p(),v.value.close(I,$))},F=()=>{if(O.length&&v.value&&f.value==="OPEN"){for(const I of O)v.value.send(I);O=[]}},P=()=>{clearTimeout(_),_=void 0},T=(I,$=!0)=>!v.value||f.value!=="OPEN"?($&&O.push(I),!1):(F(),v.value.send(I),!0),E=()=>{if(w)return;const I=new WebSocket(m.value,i);v.value=I,f.value="CONNECTING",I.onopen=()=>{f.value="OPEN",n==null||n(I),y==null||y(),F()},I.onclose=$=>{if(f.value="CLOSED",v.value=void 0,r==null||r(I,$),!w&&t.autoReconnect){const{retries:R=-1,delay:k=1e3,onFailed:H}=Ce(t.autoReconnect);h+=1,typeof R=="number"&&(R<0||h{o==null||o(I,$)},I.onmessage=$=>{if(t.heartbeat){P();const{message:R=gn}=Ce(t.heartbeat);if($.data===R)return}c.value=$.data,s==null||s(I,$)}};if(t.heartbeat){const{message:I=gn,interval:$=1e3,pongTimeout:R=1e3}=Ce(t.heartbeat),{pause:k,resume:H}=d.useIntervalFn(()=>{T(I,!1),_==null&&(_=setTimeout(()=>{b()},R))},$,{immediate:!1});p=k,y=H}l&&(S(window,"beforeunload",()=>b()),d.tryOnScopeDispose(b));const A=()=>{b(),w=!1,h=0,E()};return u&&a.watch(m,A,{immediate:!0}),{data:c,status:f,close:b,send:T,open:A,ws:v}}function us(e,t,n){const{window:r=C}=n??{},o=a.ref(null),s=a.shallowRef(),u=function(c){!s.value||s.value.postMessage(c)},l=function(){!s.value||s.value.terminate()};return r&&(d.isString(e)?s.value=new Worker(e,t):d.isFunction(e)?s.value=e():s.value=e,s.value.onmessage=i=>{o.value=i.data},d.tryOnScopeDispose(()=>{s.value&&s.value.terminate()})),{data:o,post:u,terminate:l,worker:s}}const is=e=>t=>{const n=t.data[0];return Promise.resolve(e.apply(void 0,n)).then(r=>{postMessage(["SUCCESS",r])}).catch(r=>{postMessage(["ERROR",r])})},cs=e=>e.length===0?"":`importScripts(${e.map(n=>`'${n}'`).toString()})`,fs=(e,t)=>{const n=`${cs(t)}; onmessage=(${is})(${e})`,r=new Blob([n],{type:"text/javascript"});return URL.createObjectURL(r)},ds=(e,t={})=>{const{dependencies:n=[],timeout:r,window:o=C}=t,s=a.ref(),u=a.ref("PENDING"),l=a.ref({}),i=a.ref(),c=(p="PENDING")=>{s.value&&s.value._url&&o&&(s.value.terminate(),URL.revokeObjectURL(s.value._url),l.value={},s.value=void 0,o.clearTimeout(i.value),u.value=p)};c(),d.tryOnScopeDispose(c);const f=()=>{const p=fs(e,n),y=new Worker(p);return y._url=p,y.onmessage=w=>{const{resolve:h=()=>{},reject:O=()=>{}}=l.value,[_,b]=w.data;switch(_){case"SUCCESS":h(b),c(_);break;default:O(b),c("ERROR");break}},y.onerror=w=>{const{reject:h=()=>{}}=l.value;h(w),c("ERROR")},r&&(i.value=setTimeout(()=>c("TIMEOUT_EXPIRED"),r)),y},v=(...p)=>new Promise((y,w)=>{l.value={resolve:y,reject:w},s.value&&s.value.postMessage([[...p]]),u.value="RUNNING"});return{workerFn:(...p)=>u.value==="RUNNING"?(console.error("[useWebWorkerFn] You can only run one instance of the worker at a time."),Promise.reject()):(s.value=f(),v(...p)),workerStatus:u,workerTerminate:c}};function vs({window:e=C}={}){if(!e)return a.ref(!1);const t=a.ref(e.document.hasFocus());return S(e,"blur",()=>{t.value=!1}),S(e,"focus",()=>{t.value=!0}),t}function ps({window:e=C}={}){if(!e)return{x:a.ref(0),y:a.ref(0)};const t=a.ref(e.pageXOffset),n=a.ref(e.pageYOffset);return S(e,"scroll",()=>{t.value=e.pageXOffset,n.value=e.pageYOffset},{capture:!1,passive:!0}),{x:t,y:n}}function ys(e={}){const{window:t=C,initialWidth:n=1/0,initialHeight:r=1/0,listenOrientation:o=!0,includeScrollbar:s=!0}=e,u=a.ref(n),l=a.ref(r),i=()=>{t&&(s?(u.value=t.innerWidth,l.value=t.innerHeight):(u.value=t.document.documentElement.clientWidth,l.value=t.document.documentElement.clientHeight))};return i(),d.tryOnMounted(i),S("resize",i,{passive:!0}),o&&S("orientationchange",i,{passive:!0}),{width:u,height:l}}g.DefaultMagicKeysAliasMap=Tt,g.StorageSerializers=Pe,g.TransitionPresets=Kl,g.asyncComputed=X,g.breakpointsAntDesign=zn,g.breakpointsBootstrapV5=Bn,g.breakpointsMasterCss=Xn,g.breakpointsQuasar=qn,g.breakpointsSematic=Gn,g.breakpointsTailwind=xn,g.breakpointsVuetify=Vn,g.cloneFnJSON=oe,g.computedAsync=X,g.computedInject=mn,g.createFetch=Fo,g.createUnrefFn=x,g.defaultDocument=L,g.defaultLocation=se,g.defaultNavigator=W,g.defaultWindow=C,g.formatTimeAgo=tn,g.getSSRHandler=ie,g.mapGamepadToXbox360Controller=Vo,g.onClickOutside=J,g.onKeyDown=$n,g.onKeyPressed=Tn,g.onKeyStroke=ue,g.onKeyUp=Fn,g.onLongPress=In,g.onStartTyping=jn,g.setSSRHandler=fr,g.templateRef=kn,g.unrefElement=j,g.useActiveElement=_e,g.useAsyncQueue=Mn,g.useAsyncState=ke,g.useBase64=Ln,g.useBattery=Hn,g.useBluetooth=Wn,g.useBreakpoints=Zn,g.useBroadcastChannel=Dn,g.useBrowserLocation=er,g.useCached=tr,g.useClipboard=nr,g.useCloned=cr,g.useColorMode=Ge,g.useConfirmDialog=mr,g.useCssVar=ae,g.useCurrentElement=_r,g.useCycleList=br,g.useDark=Rr,g.useDebouncedRefHistory=zr,g.useDeviceMotion=qr,g.useDeviceOrientation=ot,g.useDevicePixelRatio=Gr,g.useDevicesList=Xr,g.useDisplayMedia=Kr,g.useDocumentVisibility=Yr,g.useDraggable=ro,g.useDropZone=oo,g.useElementBounding=uo,g.useElementByPoint=po,g.useElementHover=yo,g.useElementSize=ft,g.useElementVisibility=go,g.useEventBus=wo,g.useEventListener=S,g.useEventSource=ho,g.useEyeDropper=mo,g.useFavicon=_o,g.useFetch=pt,g.useFileDialog=ko,g.useFileSystemAccess=No,g.useFocus=Ho,g.useFocusWithin=Wo,g.useFps=xo,g.useFullscreen=Bo,g.useGamepad=zo,g.useGeolocation=qo,g.useIdle=Ko,g.useImage=ea,g.useInfiniteScroll=sa,g.useIntersectionObserver=ua,g.useKeyModifier=ca,g.useLocalStorage=fa,g.useMagicKeys=da,g.useManualRefHistory=Qe,g.useMediaControls=ha,g.useMediaQuery=q,g.useMemoize=_a,g.useMemory=ba,g.useMounted=Oa,g.useMouse=Ct,g.useMouseInElement=At,g.useMousePressed=Sa,g.useMutationObserver=Ie,g.useNavigatorLanguage=Ta,g.useNetwork=kt,g.useNow=Lt,g.useObjectUrl=Aa,g.useOffsetPagination=ja,g.useOnline=ka,g.usePageLeave=Ma,g.useParallax=Ua,g.usePermission=at,g.usePointer=qa,g.usePointerSwipe=Ka,g.usePreferredColorScheme=Ya,g.usePreferredContrast=Qa,g.usePreferredDark=Ee,g.usePreferredLanguages=Ja,g.usePreferredReducedMotion=Za,g.useRafFn=D,g.useRefHistory=$e,g.useResizeObserver=fe,g.useScreenOrientation=Da,g.useScreenSafeArea=el,g.useScriptTag=tl,g.useScroll=St,g.useScrollLock=rl,g.useSessionStorage=ol,g.useShare=ul,g.useSorted=cl,g.useSpeechRecognition=fl,g.useSpeechSynthesis=dl,g.useStepper=vl,g.useStorage=ce,g.useStorageAsync=pl,g.useStyleTag=gl,g.useSupported=M,g.useSwipe=Ga,g.useTemplateRefsList=wl,g.useTextDirection=hl,g.useTextSelection=_l,g.useTextareaAutosize=bl,g.useThrottledRefHistory=Fl,g.useTimeAgo=Ml,g.useTimeoutPoll=Ul,g.useTimestamp=xl,g.useTitle=Bl,g.useTransition=Ql,g.useUrlSearchParams=Jl,g.useUserMedia=Zl,g.useVModel=ln,g.useVModels=Dl,g.useVibrate=es,g.useVirtualList=ts,g.useWakeLock=as,g.useWebNotification=ls,g.useWebSocket=ss,g.useWebWorker=us,g.useWebWorkerFn=ds,g.useWindowFocus=vs,g.useWindowScroll=ps,g.useWindowSize=ys,Object.keys(d).forEach(function(e){e!=="default"&&!g.hasOwnProperty(e)&&Object.defineProperty(g,e,{enumerable:!0,get:function(){return d[e]}})})})(this.VueUse=this.VueUse||{},VueUse,VueDemi);