import{u as e,r as t,g as n,e as o,f as r,w as a,h as u,i,n as s,j as l}from"../@vue/@vue.5bfcce30.js";var c;const d="undefined"!=typeof window,f=()=>{},v=d&&(null==(c=null==window?void 0:window.navigator)?void 0:c.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function p(t){return"function"==typeof t?t():e(t)}function m(e,t){return function(...n){return new Promise(((o,r)=>{Promise.resolve(e((()=>t.apply(this,n)),{fn:t,thisArg:this,args:n})).then(o).catch(r)}))}}function y(e){return!!n()&&(o(e),!0)}function O(e,t=200,n={}){return m(function(e,t={}){let n,o,r=f;const a=e=>{clearTimeout(e),r(),r=f};return u=>{const i=p(e),s=p(t.maxWait);return n&&a(n),i<=0||void 0!==s&&s<=0?(o&&(a(o),o=null),Promise.resolve(u())):new Promise(((e,l)=>{r=t.rejectOnCancel?l:e,s&&!o&&(o=setTimeout((()=>{n&&a(n),o=null,e(u())}),s)),n=setTimeout((()=>{o&&a(o),o=null,e(u())}),i)}))}}(t,n),e)}function w(e,t=200,n={}){const o=r(e.value),u=O((()=>{o.value=e.value}),t,n);return a(e,(()=>u())),o}function b(e,t=200,n=!1,o=!0,r=!1){return m(function(e,t=!0,n=!0,o=!1){let r,a,u=0,i=!0,s=f;const l=()=>{r&&(clearTimeout(r),r=void 0,s(),s=f)};return c=>{const d=p(e),f=Date.now()-u,v=()=>a=c();return l(),d<=0?(u=Date.now(),v()):(f>d&&(n||!i)?(u=Date.now(),v()):t&&(a=new Promise(((e,t)=>{s=o?t:e,r=setTimeout((()=>{u=Date.now(),i=!0,e(v()),l()}),Math.max(0,d-f))}))),n||r||(r=setTimeout((()=>i=!0),d)),i=!1,a)}}(t,n,o,r),e)}function g(e,n,o={}){const{immediate:a=!0}=o,u=r(!1);let i=null;function s(){i&&(clearTimeout(i),i=null)}function l(){u.value=!1,s()}function c(...t){s(),u.value=!0,i=setTimeout((()=>{u.value=!1,i=null,e(...t)}),p(n))}return a&&(u.value=!0,d&&c()),y(l),{isPending:t(u),start:c,stop:l}}function h(e){var t;const n=p(e);return null!=(t=null==n?void 0:n.$el)?t:n}const I=d?window:void 0;function P(...e){let t,n,o,r;if("string"==typeof e[0]||Array.isArray(e[0])?([n,o,r]=e,t=I):[t,n,o,r]=e,!t)return f;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const u=[],i=()=>{u.forEach((e=>e())),u.length=0},s=a((()=>[h(t),p(r)]),(([e,t])=>{i(),e&&u.push(...n.flatMap((n=>o.map((o=>((e,t,n,o)=>(e.addEventListener(t,n,o),()=>e.removeEventListener(t,n,o)))(e,n,o,t))))))}),{immediate:!0,flush:"post"}),l=()=>{s(),i()};return y(l),l}let E=!1;function T(e,t,n={}){const{window:o=I,ignore:r=[],capture:a=!0,detectIframe:u=!1}=n;if(!o)return;v&&!E&&(E=!0,Array.from(o.document.body.children).forEach((e=>e.addEventListener("click",f))));let i=!0;const s=e=>r.some((t=>{if("string"==typeof t)return Array.from(o.document.querySelectorAll(t)).some((t=>t===e.target||e.composedPath().includes(t)));{const n=h(t);return n&&(e.target===n||e.composedPath().includes(n))}})),l=[P(o,"click",(n=>{const o=h(e);o&&o!==n.target&&!n.composedPath().includes(o)&&(0===n.detail&&(i=!s(n)),i?t(n):i=!0)}),{passive:!0,capture:a}),P(o,"pointerdown",(t=>{const n=h(e);n&&(i=!t.composedPath().includes(n)&&!s(t))}),{passive:!0}),u&&P(o,"blur",(n=>{var r;const a=h(e);"IFRAME"!==(null==(r=o.document.activeElement)?void 0:r.tagName)||(null==a?void 0:a.contains(o.document.activeElement))||t(n)}))].filter(Boolean);return()=>l.forEach((e=>e()))}function A(e,t=!1){const n=r(),o=()=>n.value=Boolean(e());return o(),function(e,t=!0){u()?i(e):t?e():s(e)}(o,t),n}const S="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},j="__vueuse_ssr_handlers__";function x(e,t,{window:n=I,initialValue:o=""}={}){const u=r(o),i=l((()=>{var e;return h(t)||(null==(e=null==n?void 0:n.document)?void 0:e.documentElement)}));return a([i,()=>p(e)],(([e,t])=>{var r;if(e&&n){const a=null==(r=n.getComputedStyle(e).getPropertyValue(t))?void 0:r.trim();u.value=a||o}}),{immediate:!0}),a(u,(t=>{var n;(null==(n=i.value)?void 0:n.style)&&i.value.style.setProperty(p(e),t)})),u}S[j]=S[j]||{},S[j];var N,Q,C=Object.getOwnPropertySymbols,D=Object.prototype.hasOwnProperty,_=Object.prototype.propertyIsEnumerable;function k(e,t,n={}){const o=n,{window:r=I}=o,u=((e,t)=>{var n={};for(var o in e)D.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&C)for(var o of C(e))t.indexOf(o)<0&&_.call(e,o)&&(n[o]=e[o]);return n})(o,["window"]);let i;const s=A((()=>r&&"ResizeObserver"in r)),l=()=>{i&&(i.disconnect(),i=void 0)},c=a((()=>h(e)),(e=>{l(),s.value&&r&&e&&(i=new ResizeObserver(t),i.observe(e,u))}),{immediate:!0,flush:"post"}),d=()=>{l(),c()};return y(d),{isSupported:s,stop:d}}(Q=N||(N={})).UP="UP",Q.RIGHT="RIGHT",Q.DOWN="DOWN",Q.LEFT="LEFT",Q.NONE="NONE";var B=Object.defineProperty,L=Object.getOwnPropertySymbols,R=Object.prototype.hasOwnProperty,V=Object.prototype.propertyIsEnumerable,$=(e,t,n)=>t in e?B(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;function F(e,t,n,o={}){var i,s,c;const{clone:d=!1,passive:f=!1,eventName:v,deep:p=!1,defaultValue:m}=o,y=u(),O=n||(null==y?void 0:y.emit)||(null==(i=null==y?void 0:y.$emit)?void 0:i.bind(y))||(null==(c=null==(s=null==y?void 0:y.proxy)?void 0:s.$emit)?void 0:c.bind(null==y?void 0:y.proxy));let w=v;t||(t="modelValue"),w=v||w||`update:${t.toString()}`;const b=e=>{return d?(e=>"function"==typeof e)(d)?d(e):(t=e,JSON.parse(JSON.stringify(t))):e;var t},g=()=>void 0!==e[t]?b(e[t]):m;if(f){const n=g(),o=r(n);return a((()=>e[t]),(e=>o.value=b(e))),a(o,(n=>{(n!==e[t]||p)&&O(w,n)}),{deep:p}),o}return l({get:()=>g(),set(e){O(w,e)}})}((e,t)=>{for(var n in t||(t={}))R.call(t,n)&&$(e,n,t[n]);if(L)for(var n of L(t))V.call(t,n)&&$(e,n,t[n])})({linear:function(e){return e}},{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]});export{k as a,h as b,x as c,g as d,b as e,v as f,F as g,d as i,T as o,w as r,y as t,P as u};