import{u as e,g as t,e as n,r as o,w as r,f as a,h as u,i,n as s,j as l}from"../@vue/@vue.lccsL1Mu.js";var c;const d="undefined"!=typeof window,f=e=>"string"==typeof e,v=()=>{},p=d&&(null==(c=null==window?void 0:window.navigator)?void 0:c.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function m(t){return"function"==typeof t?t():e(t)}function y(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 O(e){return!!t()&&(n(e),!0)}function w(e,t=200,n={}){return y(function(e,t={}){let n,o,r=v;const a=e=>{clearTimeout(e),r(),r=v};return u=>{const i=m(e),s=m(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 b(e,t=200,n={}){const a=o(e.value),u=w((()=>{a.value=e.value}),t,n);return r(e,(()=>u())),a}function g(e,t=200,n=!1,o=!0,r=!1){return y(function(e,t=!0,n=!0,o=!1){let r,a,u=0,i=!0,s=v;const l=()=>{r&&(clearTimeout(r),r=void 0,s(),s=v)};return c=>{const d=m(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 h(e,t,n={}){const{immediate:r=!0}=n,u=o(!1);let i=null;function s(){i&&(clearTimeout(i),i=null)}function l(){u.value=!1,s()}function c(...n){s(),u.value=!0,i=setTimeout((()=>{u.value=!1,i=null,e(...n)}),m(t))}return r&&(u.value=!0,d&&c()),O(l),{isPending:a(u),start:c,stop:l}}function I(e){var t;const n=m(e);return null!=(t=null==n?void 0:n.$el)?t:n}const P=d?window:void 0;function E(...e){let t,n,o,a;if(f(e[0])||Array.isArray(e[0])?([n,o,a]=e,t=P):[t,n,o,a]=e,!t)return v;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const u=[],i=()=>{u.forEach((e=>e())),u.length=0},s=r((()=>[I(t),m(a)]),(([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 O(l),l}let T=!1;function A(e,t,n={}){const{window:o=P,ignore:r=[],capture:a=!0,detectIframe:u=!1}=n;if(!o)return;p&&!T&&(T=!0,Array.from(o.document.body.children).forEach((e=>e.addEventListener("click",v))));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=I(t);return n&&(e.target===n||e.composedPath().includes(n))}})),l=[E(o,"click",(n=>{const o=I(e);o&&o!==n.target&&!n.composedPath().includes(o)&&(0===n.detail&&(i=!s(n)),i?t(n):i=!0)}),{passive:!0,capture:a}),E(o,"pointerdown",(t=>{const n=I(e);n&&(i=!t.composedPath().includes(n)&&!s(t))}),{passive:!0}),u&&E(o,"blur",(n=>{var r;const a=I(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 S(e,t=!1){const n=o(),r=()=>n.value=Boolean(e());return r(),function(e,t=!0){u()?i(e):t?e():s(e)}(r,t),n}const j="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},x="__vueuse_ssr_handlers__";function N(e,t,{window:n=P,initialValue:a=""}={}){const u=o(a),i=l((()=>{var e;return I(t)||(null==(e=null==n?void 0:n.document)?void 0:e.documentElement)}));return r([i,()=>m(e)],(([e,t])=>{var o;if(e&&n){const r=null==(o=n.getComputedStyle(e).getPropertyValue(t))?void 0:o.trim();u.value=r||a}}),{immediate:!0}),r(u,(t=>{var n;(null==(n=i.value)?void 0:n.style)&&i.value.style.setProperty(m(e),t)})),u}j[x]=j[x]||{};var Q,C,D=Object.getOwnPropertySymbols,_=Object.prototype.hasOwnProperty,k=Object.prototype.propertyIsEnumerable;function B(e,t,n={}){const o=n,{window:a=P}=o,u=((e,t)=>{var n={};for(var o in e)_.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&D)for(var o of D(e))t.indexOf(o)<0&&k.call(e,o)&&(n[o]=e[o]);return n})(o,["window"]);let i;const s=S((()=>a&&"ResizeObserver"in a)),l=()=>{i&&(i.disconnect(),i=void 0)},c=r((()=>I(e)),(e=>{l(),s.value&&a&&e&&(i=new ResizeObserver(t),i.observe(e,u))}),{immediate:!0,flush:"post"}),d=()=>{l(),c()};return O(d),{isSupported:s,stop:d}}(C=Q||(Q={})).UP="UP",C.RIGHT="RIGHT",C.DOWN="DOWN",C.LEFT="LEFT",C.NONE="NONE";var L=Object.defineProperty,R=Object.getOwnPropertySymbols,$=Object.prototype.hasOwnProperty,F=Object.prototype.propertyIsEnumerable,M=(e,t,n)=>t in e?L(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;function V(e,t,n,a={}){var i,s,c;const{clone:d=!1,passive:f=!1,eventName:v,deep:p=!1,defaultValue:m}=a,y=u(),O=(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;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(),a=o(n);return r((()=>e[t]),(e=>a.value=b(e))),r(a,(n=>{(n!==e[t]||p)&&O(w,n)}),{deep:p}),a}return l({get:()=>g(),set(e){O(w,e)}})}((e,t)=>{for(var n in t||(t={}))$.call(t,n)&&M(e,n,t[n]);if(R)for(var n of R(t))F.call(t,n)&&M(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{B as a,I as b,N as c,h as d,g as e,p as f,V as g,d as i,A as o,b as r,O as t,E as u};