驭风行PC站
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
6.6 KiB

import{K as z,L as T,M as I,N as P,O as N,q as F,P as B,Q as V,R as H,S as D,T as J}from"./BPRC2v3K.js";import{l as h,k as p,h as L,N as U}from"./Ca9y1zsW.js";function y(e){var t;const r=I(e);return(t=r==null?void 0:r.$el)!=null?t:r}const _=F?window:void 0,k=F?window.document:void 0;function O(...e){let t,r,n,a;if(z(e[0])||Array.isArray(e[0])?([r,n,a]=e,t=_):[t,r,n,a]=e,!t)return T;Array.isArray(r)||(r=[r]),Array.isArray(n)||(n=[n]);const c=[],o=()=>{c.forEach(f=>f()),c.length=0},s=(f,v,i,u)=>(f.addEventListener(v,i,u),()=>f.removeEventListener(v,i,u)),l=h(()=>[y(t),I(a)],([f,v])=>{o(),f&&c.push(...r.flatMap(i=>n.map(u=>s(f,i,u,v))))},{immediate:!0,flush:"post"}),m=()=>{l(),o()};return P(m),m}let C=!1;function le(e,t,r={}){const{window:n=_,ignore:a=[],capture:c=!0,detectIframe:o=!1}=r;if(!n)return;J&&!C&&(C=!0,Array.from(n.document.body.children).forEach(i=>i.addEventListener("click",T)));let s=!0;const l=i=>a.some(u=>{if(typeof u=="string")return Array.from(n.document.querySelectorAll(u)).some(d=>d===i.target||i.composedPath().includes(d));{const d=y(u);return d&&(i.target===d||i.composedPath().includes(d))}}),f=[O(n,"click",i=>{const u=y(e);if(!(!u||u===i.target||i.composedPath().includes(u))){if(i.detail===0&&(s=!l(i)),!s){s=!0;return}t(i)}},{passive:!0,capture:c}),O(n,"pointerdown",i=>{const u=y(e);u&&(s=!i.composedPath().includes(u)&&!l(i))},{passive:!0}),o&&O(n,"blur",i=>{var u;const d=y(e);((u=n.document.activeElement)==null?void 0:u.tagName)==="IFRAME"&&!(d!=null&&d.contains(n.document.activeElement))&&t(i)})].filter(Boolean);return()=>f.forEach(i=>i())}function ce(e={}){var t;const{window:r=_}=e,n=(t=e.document)!=null?t:r==null?void 0:r.document,a=V(()=>null,()=>n==null?void 0:n.activeElement);return r&&(O(r,"blur",c=>{c.relatedTarget===null&&a.trigger()},!0),O(r,"focus",a.trigger,!0)),a}function M(e,t=!1){const r=p(),n=()=>r.value=!!e();return n(),N(n,t),r}function q(e){return JSON.parse(JSON.stringify(e))}const W=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},R="__vueuse_ssr_handlers__";W[R]=W[R]||{};function fe(e,t,{window:r=_,initialValue:n=""}={}){const a=p(n),c=L(()=>{var o;return y(t)||((o=r==null?void 0:r.document)==null?void 0:o.documentElement)});return h([c,()=>I(e)],([o,s])=>{var l;if(o&&r){const m=(l=r.getComputedStyle(o).getPropertyValue(s))==null?void 0:l.trim();a.value=m||n}},{immediate:!0}),h(a,o=>{var s;(s=c.value)!=null&&s.style&&c.value.style.setProperty(I(e),o)}),a}function de({document:e=k}={}){if(!e)return p("visible");const t=p(e.visibilityState);return O(e,"visibilitychange",()=>{t.value=e.visibilityState}),t}var $=Object.getOwnPropertySymbols,G=Object.prototype.hasOwnProperty,K=Object.prototype.propertyIsEnumerable,X=(e,t)=>{var r={};for(var n in e)G.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&$)for(var n of $(e))t.indexOf(n)<0&&K.call(e,n)&&(r[n]=e[n]);return r};function Y(e,t,r={}){const n=r,{window:a=_}=n,c=X(n,["window"]);let o;const s=M(()=>a&&"ResizeObserver"in a),l=()=>{o&&(o.disconnect(),o=void 0)},m=h(()=>y(e),v=>{l(),s.value&&a&&v&&(o=new ResizeObserver(t),o.observe(v,c))},{immediate:!0,flush:"post"}),f=()=>{l(),m()};return P(f),{isSupported:s,stop:f}}function ve(e,t={}){const{reset:r=!0,windowResize:n=!0,windowScroll:a=!0,immediate:c=!0}=t,o=p(0),s=p(0),l=p(0),m=p(0),f=p(0),v=p(0),i=p(0),u=p(0);function d(){const g=y(e);if(!g){r&&(o.value=0,s.value=0,l.value=0,m.value=0,f.value=0,v.value=0,i.value=0,u.value=0);return}const b=g.getBoundingClientRect();o.value=b.height,s.value=b.bottom,l.value=b.left,m.value=b.right,f.value=b.top,v.value=b.width,i.value=b.x,u.value=b.y}return Y(e,d),h(()=>y(e),g=>!g&&d()),a&&O("scroll",d,{capture:!0,passive:!0}),n&&O("resize",d,{passive:!0}),N(()=>{c&&d()}),{height:o,bottom:s,left:l,right:m,top:f,width:v,x:i,y:u,update:d}}var j=Object.getOwnPropertySymbols,Z=Object.prototype.hasOwnProperty,ee=Object.prototype.propertyIsEnumerable,te=(e,t)=>{var r={};for(var n in e)Z.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&j)for(var n of j(e))t.indexOf(n)<0&&ee.call(e,n)&&(r[n]=e[n]);return r};function pe(e,t,r={}){const n=r,{window:a=_}=n,c=te(n,["window"]);let o;const s=M(()=>a&&"MutationObserver"in a),l=()=>{o&&(o.disconnect(),o=void 0)},m=h(()=>y(e),v=>{l(),s.value&&a&&v&&(o=new MutationObserver(t),o.observe(v,c))},{immediate:!0}),f=()=>{l(),m()};return P(f),{isSupported:s,stop:f}}var x;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(x||(x={}));var ne=Object.defineProperty,A=Object.getOwnPropertySymbols,re=Object.prototype.hasOwnProperty,ie=Object.prototype.propertyIsEnumerable,Q=(e,t,r)=>t in e?ne(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,oe=(e,t)=>{for(var r in t||(t={}))re.call(t,r)&&Q(e,r,t[r]);if(A)for(var r of A(t))ie.call(t,r)&&Q(e,r,t[r]);return e};const se={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]};oe({linear:B},se);function me(e,t,r,n={}){var a,c,o;const{clone:s=!1,passive:l=!1,eventName:m,deep:f=!1,defaultValue:v}=n,i=U(),u=(i==null?void 0:i.emit)||((a=i==null?void 0:i.$emit)==null?void 0:a.bind(i))||((o=(c=i==null?void 0:i.proxy)==null?void 0:c.$emit)==null?void 0:o.bind(i==null?void 0:i.proxy));let d=m;d=m||d||`update:${t.toString()}`;const g=w=>s?H(s)?s(w):q(w):w,b=()=>D(e[t])?g(e[t]):v;if(l){const w=b(),S=p(w);return h(()=>e[t],E=>S.value=g(E)),h(S,E=>{(E!==e[t]||f)&&u(d,E)},{deep:f}),S}else return L({get(){return b()},set(w){u(d,w)}})}function Oe({window:e=_}={}){if(!e)return p(!1);const t=p(e.document.hasFocus());return O(e,"blur",()=>{t.value=!1}),O(e,"focus",()=>{t.value=!0}),t}function be(e={}){const{window:t=_,initialWidth:r=1/0,initialHeight:n=1/0,listenOrientation:a=!0,includeScrollbar:c=!0}=e,o=p(r),s=p(n),l=()=>{t&&(c?(o.value=t.innerWidth,s.value=t.innerHeight):(o.value=t.document.documentElement.clientWidth,s.value=t.document.documentElement.clientHeight))};return l(),N(l),O("resize",l,{passive:!0}),a&&O("orientationchange",l,{passive:!0}),{width:o,height:s}}const ye=e=>e;export{ve as a,O as b,Y as c,de as d,Oe as e,pe as f,y as g,fe as h,me as i,ce as j,ye as m,le as o,be as u};