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