1 |
- import{b as g,u as te,g as re,e as ne,i as oe,t as ae,f as le,h as se,j as ue,n as J,k as S,l as j,w as x}from"./@vue-cb50a1c4.js";var F;const D=typeof window<"u",ie=e=>typeof e=="string",E=()=>{};D&&((F=window==null?void 0:window.navigator)!=null&&F.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function y(e){return typeof e=="function"?e():te(e)}function Z(e,r){function t(...n){return new Promise((l,u)=>{Promise.resolve(e(()=>r.apply(this,n),{fn:r,thisArg:this,args:n})).then(l).catch(u)})}return t}function ce(e,r={}){let t,n,l=E;const u=s=>{clearTimeout(s),l(),l=E};return s=>{const i=y(e),f=y(r.maxWait);return t&&u(t),i<=0||f!==void 0&&f<=0?(n&&(u(n),n=null),Promise.resolve(s())):new Promise((o,m)=>{l=r.rejectOnCancel?m:o,f&&!n&&(n=setTimeout(()=>{t&&u(t),n=null,o(s())},f)),t=setTimeout(()=>{n&&u(n),n=null,o(s())},i)})}}function fe(e,r=!0,t=!0,n=!1){let l=0,u,c=!0,s=E,i;const f=()=>{u&&(clearTimeout(u),u=void 0,s(),s=E)};return m=>{const _=y(e),p=Date.now()-l,a=()=>i=m();if(f(),_<=0)return l=Date.now(),a();if(p>_&&(t||!c))l=Date.now(),a();else if(r)return new Promise((v,d)=>{s=n?d:v,u=setTimeout(()=>{l=Date.now(),c=!0,v(a()),f()},_-p)});return!t&&!u&&(u=setTimeout(()=>c=!0,_)),c=!1,i}}function pe(e){return e}function C(e){return re()?(ne(e),!0):!1}function de(e,r=200,t={}){return Z(ce(r,t),e)}function ve(e,r=200,t=!1,n=!0,l=!1){return Z(fe(r,t,n,l),e)}var me=Object.defineProperty,_e=Object.defineProperties,ge=Object.getOwnPropertyDescriptors,H=Object.getOwnPropertySymbols,ye=Object.prototype.hasOwnProperty,Oe=Object.prototype.propertyIsEnumerable,M=(e,r,t)=>r in e?me(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,he=(e,r)=>{for(var t in r||(r={}))ye.call(r,t)&&M(e,t,r[t]);if(H)for(var t of H(r))Oe.call(r,t)&&M(e,t,r[t]);return e},we=(e,r)=>_e(e,ge(r));function Pe(e){if(!oe(e))return ae(e);const r=Array.isArray(e.value)?new Array(e.value.length):{};for(const t in e.value)r[t]=le(()=>({get(){return e.value[t]},set(n){if(Array.isArray(e.value)){const l=[...e.value];l[t]=n,e.value=l}else{const l=we(he({},e.value),{[t]:n});Object.setPrototypeOf(l,e.value),e.value=l}}}));return r}function ee(e,r=!0){se()?ue(e):r?e():J(e)}function Ke(e=0,r={}){const t=g(e),{max:n=1/0,min:l=-1/0}=r,u=(o=1)=>t.value=Math.min(n,t.value+o),c=(o=1)=>t.value=Math.max(l,t.value-o),s=()=>t.value,i=o=>t.value=Math.max(l,Math.min(n,o));return{count:t,inc:u,dec:c,get:s,set:i,reset:(o=e)=>(e=o,i(o))}}function be(e,r,t={}){const{immediate:n=!0}=t,l=g(!1);let u=null;function c(){u&&(clearTimeout(u),u=null)}function s(){l.value=!1,c()}function i(...f){c(),l.value=!0,u=setTimeout(()=>{l.value=!1,u=null,e(...f)},y(r))}return n&&(l.value=!0,D&&i()),C(s),{isPending:l,start:i,stop:s}}function P(e){var r;const t=y(e);return(r=t==null?void 0:t.$el)!=null?r:t}const A=D?window:void 0,Ee=D?window.navigator:void 0;function w(...e){let r,t,n,l;if(ie(e[0])||Array.isArray(e[0])?([t,n,l]=e,r=A):[r,t,n,l]=e,!r)return E;Array.isArray(t)||(t=[t]),Array.isArray(n)||(n=[n]);const u=[],c=()=>{u.forEach(o=>o()),u.length=0},s=(o,m,_)=>(o.addEventListener(m,_,l),()=>o.removeEventListener(m,_,l)),i=x(()=>P(r),o=>{c(),o&&u.push(...t.flatMap(m=>n.map(_=>s(o,m,_))))},{immediate:!0,flush:"post"}),f=()=>{i(),c()};return C(f),f}function ke(e,r,t={}){const{window:n=A,ignore:l=[],capture:u=!0,detectIframe:c=!1}=t;if(!n)return;let s=!0,i;const f=p=>l.some(a=>{if(typeof a=="string")return Array.from(n.document.querySelectorAll(a)).some(v=>v===p.target||p.composedPath().includes(v));{const v=P(a);return v&&(p.target===v||p.composedPath().includes(v))}}),o=p=>{n.clearTimeout(i);const a=P(e);if(!(!a||a===p.target||p.composedPath().includes(a))){if(p.detail===0&&(s=!f(p)),!s){s=!0;return}r(p)}},m=[w(n,"click",o,{passive:!0,capture:u}),w(n,"pointerdown",p=>{const a=P(e);a&&(s=!p.composedPath().includes(a)&&!f(p))},{passive:!0}),w(n,"pointerup",p=>{if(p.button===0){const a=p.composedPath();p.composedPath=()=>a,i=n.setTimeout(()=>o(p),50)}},{passive:!0}),c&&w(n,"blur",p=>{var a;const v=P(e);((a=n.document.activeElement)==null?void 0:a.tagName)==="IFRAME"&&!(v!=null&&v.contains(n.document.activeElement))&&r(p)})].filter(Boolean);return()=>m.forEach(p=>p())}const Te=500;function Je(e,r,t){var n,l;const u=S(()=>P(e));let c;function s(){c&&(clearTimeout(c),c=void 0)}function i(o){var m,_,p,a;(m=t==null?void 0:t.modifiers)!=null&&m.self&&o.target!==u.value||(s(),(_=t==null?void 0:t.modifiers)!=null&&_.prevent&&o.preventDefault(),(p=t==null?void 0:t.modifiers)!=null&&p.stop&&o.stopPropagation(),c=setTimeout(()=>r(o),(a=t==null?void 0:t.delay)!=null?a:Te))}const f={capture:(n=t==null?void 0:t.modifiers)==null?void 0:n.capture,once:(l=t==null?void 0:t.modifiers)==null?void 0:l.once};w(u,"pointerdown",i,f),w(u,"pointerup",s,f),w(u,"pointerleave",s,f)}function N(e,r=!1){const t=g(),n=()=>t.value=!!e();return n(),ee(n,r),t}function Ze(e={}){const{navigator:r=Ee,read:t=!1,source:n,copiedDuring:l=1500,legacy:u=!1}=e,c=["copy","cut"],s=N(()=>r&&"clipboard"in r),i=S(()=>s.value||u),f=g(""),o=g(!1),m=be(()=>o.value=!1,l);function _(){s.value?r.clipboard.readText().then(d=>{f.value=d}):f.value=v()}if(i.value&&t)for(const d of c)w(d,_);async function p(d=y(n)){i.value&&d!=null&&(s.value?await r.clipboard.writeText(d):a(d),f.value=d,o.value=!0,m.start())}function a(d){const O=document.createElement("textarea");O.value=d??"",O.style.position="absolute",O.style.opacity="0",document.body.appendChild(O),O.select(),document.execCommand("copy"),O.remove()}function v(){var d,O,$;return($=(O=(d=document==null?void 0:document.getSelection)==null?void 0:d.call(document))==null?void 0:O.toString())!=null?$:""}return{isSupported:i,text:f,copied:o,copy:p}}const R=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Q="__vueuse_ssr_handlers__";R[Q]=R[Q]||{};var Ie=Object.defineProperty,Se=Object.defineProperties,$e=Object.getOwnPropertyDescriptors,B=Object.getOwnPropertySymbols,xe=Object.prototype.hasOwnProperty,De=Object.prototype.propertyIsEnumerable,z=(e,r,t)=>r in e?Ie(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,Ae=(e,r)=>{for(var t in r||(r={}))xe.call(r,t)&&z(e,t,r[t]);if(B)for(var t of B(r))De.call(r,t)&&z(e,t,r[t]);return e},Ce=(e,r)=>Se(e,$e(r));function et(e,r={}){var t,n,l;const u=(t=r.draggingElement)!=null?t:A,c=(n=r.handle)!=null?n:e,s=g((l=y(r.initialValue))!=null?l:{x:0,y:0}),i=g(),f=a=>r.pointerTypes?r.pointerTypes.includes(a.pointerType):!0,o=a=>{y(r.preventDefault)&&a.preventDefault(),y(r.stopPropagation)&&a.stopPropagation()},m=a=>{var v;if(!f(a)||y(r.exact)&&a.target!==y(e))return;const d=y(e).getBoundingClientRect(),O={x:a.clientX-d.left,y:a.clientY-d.top};((v=r.onStart)==null?void 0:v.call(r,O,a))!==!1&&(i.value=O,o(a))},_=a=>{var v;f(a)&&i.value&&(s.value={x:a.clientX-i.value.x,y:a.clientY-i.value.y},(v=r.onMove)==null||v.call(r,s.value,a),o(a))},p=a=>{var v;f(a)&&i.value&&(i.value=void 0,(v=r.onEnd)==null||v.call(r,s.value,a),o(a))};return D&&(w(c,"pointerdown",m,!0),w(u,"pointermove",_,!0),w(u,"pointerup",p,!0)),Ce(Ae({},Pe(s)),{position:s,isDragging:S(()=>!!i.value),style:S(()=>`left:${s.value.x}px;top:${s.value.y}px;`)})}var V=Object.getOwnPropertySymbols,Le=Object.prototype.hasOwnProperty,je=Object.prototype.propertyIsEnumerable,Ne=(e,r)=>{var t={};for(var n in e)Le.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&V)for(var n of V(e))r.indexOf(n)<0&&je.call(e,n)&&(t[n]=e[n]);return t};function We(e,r,t={}){const n=t,{window:l=A}=n,u=Ne(n,["window"]);let c;const s=N(()=>l&&"ResizeObserver"in l),i=()=>{c&&(c.disconnect(),c=void 0)},f=x(()=>P(e),m=>{i(),s.value&&l&&m&&(c=new ResizeObserver(r),c.observe(m,u))},{immediate:!0,flush:"post"}),o=()=>{i(),f()};return C(o),{isSupported:s,stop:o}}function tt(e,r={}){const{reset:t=!0,windowResize:n=!0,windowScroll:l=!0,immediate:u=!0}=r,c=g(0),s=g(0),i=g(0),f=g(0),o=g(0),m=g(0),_=g(0),p=g(0);function a(){const v=P(e);if(!v){t&&(c.value=0,s.value=0,i.value=0,f.value=0,o.value=0,m.value=0,_.value=0,p.value=0);return}const d=v.getBoundingClientRect();c.value=d.height,s.value=d.bottom,i.value=d.left,f.value=d.right,o.value=d.top,m.value=d.width,_.value=d.x,p.value=d.y}return We(e,a),x(()=>P(e),v=>!v&&a()),l&&w("scroll",a,{capture:!0,passive:!0}),n&&w("resize",a,{passive:!0}),ee(()=>{u&&a()}),{height:c,bottom:s,left:i,right:f,top:o,width:m,x:_,y:p,update:a}}const U=1;function Fe(e,r={}){const{throttle:t=0,idle:n=200,onStop:l=E,onScroll:u=E,offset:c={left:0,right:0,top:0,bottom:0},eventListenerOptions:s={capture:!1,passive:!0},behavior:i="auto"}=r,f=g(0),o=g(0),m=S({get(){return f.value},set(h){p(h,void 0)}}),_=S({get(){return o.value},set(h){p(void 0,h)}});function p(h,T){var I,b,W;const L=y(e);L&&((W=L instanceof Document?document.body:L)==null||W.scrollTo({top:(I=y(T))!=null?I:_.value,left:(b=y(h))!=null?b:m.value,behavior:y(i)}))}const a=g(!1),v=j({left:!0,right:!1,top:!0,bottom:!1}),d=j({left:!1,right:!1,top:!1,bottom:!1}),O=de(h=>{a.value=!1,d.left=!1,d.right=!1,d.top=!1,d.bottom=!1,l(h)},t+n),$=h=>{const T=h.target===document?h.target.documentElement:h.target,I=T.scrollLeft;d.left=I<f.value,d.right=I>o.value,v.left=I<=0+(c.left||0),v.right=I+T.clientWidth>=T.scrollWidth-(c.right||0)-U,f.value=I;let b=T.scrollTop;h.target===document&&!b&&(b=document.body.scrollTop),d.top=b<o.value,d.bottom=b>o.value,v.top=b<=0+(c.top||0),v.bottom=b+T.clientHeight>=T.scrollHeight-(c.bottom||0)-U,o.value=b,a.value=!0,O(h),u(h)};return w(e,"scroll",t?ve($,t,!0,!1):$,s),{x:m,y:_,isScrolling:a,arrivedState:v,directions:d}}var He=Object.defineProperty,Me=Object.defineProperties,Re=Object.getOwnPropertyDescriptors,X=Object.getOwnPropertySymbols,Qe=Object.prototype.hasOwnProperty,Be=Object.prototype.propertyIsEnumerable,Y=(e,r,t)=>r in e?He(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,G=(e,r)=>{for(var t in r||(r={}))Qe.call(r,t)&&Y(e,t,r[t]);if(X)for(var t of X(r))Be.call(r,t)&&Y(e,t,r[t]);return e},ze=(e,r)=>Me(e,Re(r));function rt(e,r,t={}){var n,l;const u=(n=t.direction)!=null?n:"bottom",c=j(Fe(e,ze(G({},t),{offset:G({[u]:(l=t.distance)!=null?l:0},t.offset)})));x(()=>c.arrivedState[u],async s=>{var i,f;if(s){const o=y(e),m={height:(i=o==null?void 0:o.scrollHeight)!=null?i:0,width:(f=o==null?void 0:o.scrollWidth)!=null?f:0};await r(c),t.preserveScrollPosition&&o&&J(()=>{o.scrollTo({top:o.scrollHeight-m.height,left:o.scrollWidth-m.width})})}})}function nt(e,r,t={}){const{root:n,rootMargin:l="0px",threshold:u=.1,window:c=A}=t,s=N(()=>c&&"IntersectionObserver"in c);let i=E;const f=s.value?x(()=>({el:P(e),root:P(n)}),({el:m,root:_})=>{if(i(),!m)return;const p=new IntersectionObserver(r,{root:_,rootMargin:l,threshold:u});p.observe(m),i=()=>{p.disconnect(),i=E}},{immediate:!0,flush:"post"}):E,o=()=>{i(),f()};return C(o),{isSupported:s,stop:o}}var q;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(q||(q={}));var Ve=Object.defineProperty,K=Object.getOwnPropertySymbols,Ue=Object.prototype.hasOwnProperty,Xe=Object.prototype.propertyIsEnumerable,k=(e,r,t)=>r in e?Ve(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,Ye=(e,r)=>{for(var t in r||(r={}))Ue.call(r,t)&&k(e,t,r[t]);if(K)for(var t of K(r))Xe.call(r,t)&&k(e,t,r[t]);return e};const Ge={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]};Ye({linear:pe},Ge);export{Ke as a,et as b,rt as c,Ze as d,tt as e,Je as f,nt as g,ke as o,ve as u};
|