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