import{a6 as H,y as P,a1 as U,a2 as z,Z as F,_ as j,u as I,W as g,G as w,ai as Q,ac as k,k as B,a9 as L,al as G,X as Z,m as _,N as A,K as q,U as ee,H as te,am as ne}from"./app-xf5yGDx6.js";function J(e){return U()?(z(e),!0):!1}const N=new WeakMap,oe=(...e)=>{var t;const o=e[0],n=(t=L())==null?void 0:t.proxy;if(n==null&&!G())throw new Error("injectLocal must be called in setup");return n&&N.has(n)&&o in N.get(n)?N.get(n)[o]:Z(...e)};function re(e){if(!F(e))return j(e);const t=new Proxy({},{get(o,n,r){return I(Reflect.get(e.value,n,r))},set(o,n,r){return F(e.value[n])&&!F(r)?e.value[n].value=r:e.value[n]=r,!0},deleteProperty(o,n){return Reflect.deleteProperty(e.value,n)},has(o,n){return Reflect.has(e.value,n)},ownKeys(){return Object.keys(e.value)},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}});return j(t)}function ue(e){return re(_(e))}function xe(e,...t){const o=t.flat(),n=o[0];return ue(()=>Object.fromEntries(typeof n=="function"?Object.entries(A(e)).filter(([r,u])=>!n(w(u),r)):Object.entries(A(e)).filter(r=>!o.includes(r[0]))))}const C=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const ie=e=>typeof e<"u",se=Object.prototype.toString,ae=e=>se.call(e)==="[object Object]",X=()=>{};function le(e,t){function o(...n){return new Promise((r,u)=>{Promise.resolve(e(()=>t.apply(this,n),{fn:t,thisArg:this,args:n})).then(r).catch(u)})}return o}function ce(e,t={}){let o,n,r=X;const u=i=>{clearTimeout(i),r(),r=X};let c;return i=>{const a=w(e),l=w(t.maxWait);return o&&u(o),a<=0||l!==void 0&&l<=0?(n&&(u(n),n=null),Promise.resolve(i())):new Promise((v,h)=>{r=t.rejectOnCancel?h:v,c=i,l&&!n&&(n=setTimeout(()=>{o&&u(o),n=null,v(c())},l)),o=setTimeout(()=>{n&&u(n),n=null,v(i())},a)})}}function fe(e){let t;function o(){return t||(t=e()),t}return o.reset=async()=>{const n=t;t=void 0,n&&await n},o}function D(e){return e.endsWith("rem")?Number.parseFloat(e)*16:Number.parseFloat(e)}function V(e){return Array.isArray(e)?e:[e]}function de(...e){if(e.length!==1)return Q(...e);const t=e[0];return typeof t=="function"?H(k(()=>({get:t,set:X}))):B(t)}function We(e,t=200,o={}){return le(ce(t,o),e)}function pe(e,t,o={}){const{immediate:n=!0,immediateCallback:r=!1}=o,u=g(!1);let c=null;function s(){c&&(clearTimeout(c),c=null)}function i(){u.value=!1,s()}function a(...l){r&&e(),s(),u.value=!0,c=setTimeout(()=>{u.value=!1,c=null,e(...l)},w(t))}return n&&(u.value=!0,C&&a()),J(i),{isPending:H(u),start:a,stop:i}}function me(e,t,o){return P(e,t,{...o,immediate:!0})}const R=C?window:void 0,Me=C?window.document:void 0,K=C?window.navigator:void 0;function ve(e){var t;const o=w(e);return(t=o?.$el)!=null?t:o}function M(...e){const t=[],o=()=>{t.forEach(s=>s()),t.length=0},n=(s,i,a,l)=>(s.addEventListener(i,a,l),()=>s.removeEventListener(i,a,l)),r=_(()=>{const s=V(w(e[0])).filter(i=>i!=null);return s.every(i=>typeof i!="string")?s:void 0}),u=me(()=>{var s,i;return[(i=(s=r.value)==null?void 0:s.map(a=>ve(a)))!=null?i:[R].filter(a=>a!=null),V(w(r.value?e[1]:e[0])),V(I(r.value?e[2]:e[1])),w(r.value?e[3]:e[2])]},([s,i,a,l])=>{if(o(),!s?.length||!i?.length||!a?.length)return;const v=ae(l)?{...l}:l;t.push(...s.flatMap(h=>i.flatMap(d=>a.map(y=>n(h,d,y,v)))))},{flush:"post"}),c=()=>{u(),o()};return J(o),c}function he(){const e=g(!1),t=L();return t&&te(()=>{e.value=!0},t),e}function Y(e){const t=he();return _(()=>(t.value,!!e()))}const ye=Symbol("vueuse-ssr-width");function ge(){const e=G()?oe(ye,null):null;return typeof e=="number"?e:void 0}function Ee(e,t={}){const{window:o=R,ssrWidth:n=ge()}=t,r=Y(()=>o&&"matchMedia"in o&&typeof o.matchMedia=="function"),u=g(typeof n=="number"),c=g(),s=g(!1),i=a=>{s.value=a.matches};return ee(()=>{if(u.value){u.value=!r.value;const a=w(e).split(",");s.value=a.some(l=>{const v=l.includes("not all"),h=l.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),d=l.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);let y=!!(h||d);return h&&y&&(y=n>=D(h[1])),d&&y&&(y=n<=D(d[1])),v?!y:y});return}r.value&&(c.value=o.matchMedia(w(e)),s.value=c.value.matches)}),M(c,"change",i,{passive:!0}),_(()=>s.value)}function $(e,t={}){const{controls:o=!1,navigator:n=K}=t,r=Y(()=>n&&"permissions"in n),u=g(),c=typeof e=="string"?{name:e}:e,s=g(),i=()=>{var l,v;s.value=(v=(l=u.value)==null?void 0:l.state)!=null?v:"prompt"};M(u,"change",i,{passive:!0});const a=fe(async()=>{if(r.value){if(!u.value)try{u.value=await n.permissions.query(c)}catch{u.value=void 0}finally{i()}if(o)return ne(u.value)}});return a(),o?{state:s,isSupported:r,query:a}:s}function Oe(e={}){const{navigator:t=K,read:o=!1,source:n,copiedDuring:r=1500,legacy:u=!1}=e,c=Y(()=>t&&"clipboard"in t),s=$("clipboard-read"),i=$("clipboard-write"),a=_(()=>c.value||u),l=g(""),v=g(!1),h=pe(()=>v.value=!1,r,{immediate:!1});async function d(){let p=!(c.value&&x(s.value));if(!p)try{l.value=await t.clipboard.readText()}catch{p=!0}p&&(l.value=W())}a.value&&o&&M(["copy","cut"],d,{passive:!0});async function y(p=w(n)){if(a.value&&p!=null){let f=!(c.value&&x(i.value));if(!f)try{await t.clipboard.writeText(p)}catch{f=!0}f&&b(p),l.value=p,v.value=!0,h.start()}}function b(p){const f=document.createElement("textarea");f.value=p??"",f.style.position="absolute",f.style.opacity="0",document.body.appendChild(f),f.select(),document.execCommand("copy"),f.remove()}function W(){var p,f,S;return(S=(f=(p=document?.getSelection)==null?void 0:p.call(document))==null?void 0:f.toString())!=null?S:""}function x(p){return p==="granted"||p==="prompt"}return{isSupported:a,text:l,copied:v,copy:y}}function we(e){return JSON.parse(JSON.stringify(e))}const be={page:e=>[e.pageX,e.pageY],client:e=>[e.clientX,e.clientY],screen:e=>[e.screenX,e.screenY],movement:e=>e instanceof MouseEvent?[e.movementX,e.movementY]:null};function _e(e={}){const{type:t="page",touch:o=!0,resetOnTouchEnds:n=!1,initialValue:r={x:0,y:0},window:u=R,target:c=u,scroll:s=!0,eventFilter:i}=e;let a=null,l=0,v=0;const h=g(r.x),d=g(r.y),y=g(null),b=typeof t=="function"?t:be[t],W=m=>{const T=b(m);a=m,T&&([h.value,d.value]=T,y.value="mouse"),u&&(l=u.scrollX,v=u.scrollY)},x=m=>{if(m.touches.length>0){const T=b(m.touches[0]);T&&([h.value,d.value]=T,y.value="touch")}},p=()=>{if(!a||!u)return;const m=b(a);a instanceof MouseEvent&&m&&(h.value=m[0]+u.scrollX-l,d.value=m[1]+u.scrollY-v)},f=()=>{h.value=r.x,d.value=r.y},S=i?m=>i(()=>W(m),{}):m=>W(m),E=i?m=>i(()=>x(m),{}):m=>x(m),O=i?()=>i(()=>p(),{}):()=>p();if(c){const m={passive:!0};M(c,["mousemove","dragover"],S,m),o&&t!=="movement"&&(M(c,["touchstart","touchmove"],E,m),n&&M(c,"touchend",f,m)),s&&t==="page"&&M(u,"scroll",O,m)}return{x:h,y:d,sourceType:y}}function Te(e,t){const o=g(t);return P(de(e),(n,r)=>{o.value=r},{flush:"sync"}),H(o)}function Pe(e,t,o,n={}){var r,u,c;const{clone:s=!1,passive:i=!1,eventName:a,deep:l=!1,defaultValue:v,shouldEmit:h}=n,d=L(),y=o||d?.emit||((r=d?.$emit)==null?void 0:r.bind(d))||((c=(u=d?.proxy)==null?void 0:u.$emit)==null?void 0:c.bind(d?.proxy));let b=a;t||(t="modelValue"),b=b||`update:${t.toString()}`;const W=f=>s?typeof s=="function"?s(f):we(f):f,x=()=>ie(e[t])?W(e[t]):v,p=f=>{h?h(f)&&y(b,f):y(b,f)};if(i){const f=x(),S=B(f);let E=!1;return P(()=>e[t],O=>{E||(E=!0,S.value=W(O),q(()=>E=!1))}),P(S,O=>{!E&&(O!==e[t]||l)&&p(O)},{deep:l}),S}else return _({get(){return x()},set(f){p(f)}})}export{Oe as a,Te as b,M as c,R as d,Me as e,Pe as f,Ee as g,_e as h,xe as r,We as u};