数通智联化工云平台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

1 lines
96 KiB

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