2 lines
16 KiB
JavaScript
2 lines
16 KiB
JavaScript
import{g as he,e as be,f as ce,i as Pe,n as fe,j as Se,r as _,u as Ee,w as S,s as de,k as pe,l as W,b as T}from"./@vue.f8dfc830.js";var $e=Object.defineProperty,Fe=Object.defineProperties,Ie=Object.getOwnPropertyDescriptors,q=Object.getOwnPropertySymbols,je=Object.prototype.hasOwnProperty,Ce=Object.prototype.propertyIsEnumerable,J=(e,t,r)=>t in e?$e(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ne=(e,t)=>{for(var r in t||(t={}))je.call(t,r)&&J(e,r,t[r]);if(q)for(var r of q(t))Ce.call(t,r)&&J(e,r,t[r]);return e},Te=(e,t)=>Fe(e,Ie(t));function Dt(e,t){var r;const n=de();return pe(()=>{n.value=e()},Te(Ne({},t),{flush:(r=t==null?void 0:t.flush)!=null?r:"sync"})),W(n)}var B;const R=typeof window<"u",De=e=>typeof e<"u",ve=e=>typeof e=="function",Re=e=>typeof e=="string",D=()=>{},Ae=R&&((B=window==null?void 0:window.navigator)==null?void 0:B.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function F(e){return typeof e=="function"?e():Ee(e)}function Q(e,t){function r(...n){return new Promise((a,o)=>{Promise.resolve(e(()=>t.apply(this,n),{fn:t,thisArg:this,args:n})).then(a).catch(o)})}return r}const me=e=>e();function Me(e,t={}){let r,n,a=D;const o=s=>{clearTimeout(s),a(),a=D};return s=>{const u=F(e),c=F(t.maxWait);return r&&o(r),u<=0||c!==void 0&&c<=0?(n&&(o(n),n=null),Promise.resolve(s())):new Promise((p,v)=>{a=t.rejectOnCancel?v:p,c&&!n&&(n=setTimeout(()=>{r&&o(r),n=null,p(s())},c)),r=setTimeout(()=>{n&&o(n),n=null,p(s())},u)})}}function xe(e,t=!0,r=!0,n=!1){let a=0,o,i=!0,s=D,u;const c=()=>{o&&(clearTimeout(o),o=void 0,s(),s=D)};return v=>{const l=F(e),f=Date.now()-a,d=()=>u=v();return c(),l<=0?(a=Date.now(),d()):(f>l&&(r||!i)?(a=Date.now(),d()):t&&(u=new Promise((m,g)=>{s=n?g:m,o=setTimeout(()=>{a=Date.now(),i=!0,m(d()),c()},Math.max(0,l-f))})),!r&&!o&&(o=setTimeout(()=>i=!0,l)),i=!1,u)}}function ke(e=me){const t=_(!0);function r(){t.value=!1}function n(){t.value=!0}const a=(...o)=>{t.value&&e(...o)};return{isActive:W(t),pause:r,resume:n,eventFilter:a}}function Ve(e){return e}function A(e){return he()?(be(e),!0):!1}function Le(e,t=200,r={}){return Q(Me(t,r),e)}function Rt(e,t=200,r={}){const n=_(e.value),a=Le(()=>{n.value=e.value},t,r);return S(e,()=>a()),n}function At(e,t=200,r=!1,n=!0,a=!1){return Q(xe(t,r,n,a),e)}function ze(e){return typeof e=="function"?T(e):_(e)}function x(e,t=!0){ce()?Pe(e):t?e():fe(e)}function Mt(e,t,r={}){const{immediate:n=!0}=r,a=_(!1);let o=null;function i(){o&&(clearTimeout(o),o=null)}function s(){a.value=!1,i()}function u(...c){i(),a.value=!0,o=setTimeout(()=>{a.value=!1,o=null,e(...c)},F(t))}return n&&(a.value=!0,R&&u()),A(s),{isPending:W(a),start:u,stop:s}}function xt(e=!1,t={}){const{truthyValue:r=!0,falsyValue:n=!1}=t,a=Se(e),o=_(e);function i(s){if(arguments.length)return o.value=s,o.value;{const u=F(r);return o.value=o.value===u?F(n):u,o.value}}return a?i:[o,i]}var H=Object.getOwnPropertySymbols,We=Object.prototype.hasOwnProperty,Qe=Object.prototype.propertyIsEnumerable,qe=(e,t)=>{var r={};for(var n in e)We.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&H)for(var n of H(e))t.indexOf(n)<0&&Qe.call(e,n)&&(r[n]=e[n]);return r};function Je(e,t,r={}){const n=r,{eventFilter:a=me}=n,o=qe(n,["eventFilter"]);return S(e,Q(a,t),o)}var Be=Object.defineProperty,He=Object.defineProperties,Ue=Object.getOwnPropertyDescriptors,M=Object.getOwnPropertySymbols,_e=Object.prototype.hasOwnProperty,Oe=Object.prototype.propertyIsEnumerable,U=(e,t,r)=>t in e?Be(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ge=(e,t)=>{for(var r in t||(t={}))_e.call(t,r)&&U(e,r,t[r]);if(M)for(var r of M(t))Oe.call(t,r)&&U(e,r,t[r]);return e},Ke=(e,t)=>He(e,Ue(t)),Xe=(e,t)=>{var r={};for(var n in e)_e.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&M)for(var n of M(e))t.indexOf(n)<0&&Oe.call(e,n)&&(r[n]=e[n]);return r};function Ye(e,t,r={}){const n=r,{eventFilter:a}=n,o=Xe(n,["eventFilter"]),{eventFilter:i,pause:s,resume:u,isActive:c}=ke(a);return{stop:Je(e,t,Ke(Ge({},o),{eventFilter:i})),pause:s,resume:u,isActive:c}}function $(e){var t;const r=F(e);return(t=r==null?void 0:r.$el)!=null?t:r}const E=R?window:void 0,ge=R?window.document:void 0;R&&window.navigator;R&&window.location;function P(...e){let t,r,n,a;if(Re(e[0])||Array.isArray(e[0])?([r,n,a]=e,t=E):[t,r,n,a]=e,!t)return D;Array.isArray(r)||(r=[r]),Array.isArray(n)||(n=[n]);const o=[],i=()=>{o.forEach(p=>p()),o.length=0},s=(p,v,l,f)=>(p.addEventListener(v,l,f),()=>p.removeEventListener(v,l,f)),u=S(()=>[$(t),F(a)],([p,v])=>{i(),p&&o.push(...r.flatMap(l=>n.map(f=>s(p,l,f,v))))},{immediate:!0,flush:"post"}),c=()=>{u(),i()};return A(c),c}let G=!1;function kt(e,t,r={}){const{window:n=E,ignore:a=[],capture:o=!0,detectIframe:i=!1}=r;if(!n)return;Ae&&!G&&(G=!0,Array.from(n.document.body.children).forEach(l=>l.addEventListener("click",D)));let s=!0;const u=l=>a.some(f=>{if(typeof f=="string")return Array.from(n.document.querySelectorAll(f)).some(d=>d===l.target||l.composedPath().includes(d));{const d=$(f);return d&&(l.target===d||l.composedPath().includes(d))}}),p=[P(n,"click",l=>{const f=$(e);if(!(!f||f===l.target||l.composedPath().includes(f))){if(l.detail===0&&(s=!u(l)),!s){s=!0;return}t(l)}},{passive:!0,capture:o}),P(n,"pointerdown",l=>{const f=$(e);f&&(s=!l.composedPath().includes(f)&&!u(l))},{passive:!0}),i&&P(n,"blur",l=>{var f;const d=$(e);((f=n.document.activeElement)==null?void 0:f.tagName)==="IFRAME"&&!(d!=null&&d.contains(n.document.activeElement))&&t(l)})].filter(Boolean);return()=>p.forEach(l=>l())}function k(e,t=!1){const r=_(),n=()=>r.value=Boolean(e());return n(),x(n,t),r}function Ze(e,t={}){const{window:r=E}=t,n=k(()=>r&&"matchMedia"in r&&typeof r.matchMedia=="function");let a;const o=_(!1),i=()=>{!a||("removeEventListener"in a?a.removeEventListener("change",s):a.removeListener(s))},s=()=>{!n.value||(i(),a=r.matchMedia(ze(e).value),o.value=a.matches,"addEventListener"in a?a.addEventListener("change",s):a.addListener(s))};return pe(s),A(()=>i()),o}function et(e){return JSON.parse(JSON.stringify(e))}const L=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},z="__vueuse_ssr_handlers__";L[z]=L[z]||{};const tt=L[z];function we(e,t){return tt[e]||t}function rt(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}var nt=Object.defineProperty,K=Object.getOwnPropertySymbols,at=Object.prototype.hasOwnProperty,ot=Object.prototype.propertyIsEnumerable,X=(e,t,r)=>t in e?nt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Y=(e,t)=>{for(var r in t||(t={}))at.call(t,r)&&X(e,r,t[r]);if(K)for(var r of K(t))ot.call(t,r)&&X(e,r,t[r]);return e};const st={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},Z="vueuse-storage";function it(e,t,r,n={}){var a;const{flush:o="pre",deep:i=!0,listenToStorageChanges:s=!0,writeDefaults:u=!0,mergeDefaults:c=!1,shallow:p,window:v=E,eventFilter:l,onError:f=O=>{console.error(O)}}=n,d=(p?de:_)(t);if(!r)try{r=we("getDefaultStorage",()=>{var O;return(O=E)==null?void 0:O.localStorage})()}catch(O){f(O)}if(!r)return d;const m=F(t),g=rt(m),w=(a=n.serializer)!=null?a:st[g],{pause:y,resume:h}=Ye(d,()=>j(d.value),{flush:o,deep:i,eventFilter:l});return v&&s&&(P(v,"storage",I),P(v,Z,V)),I(),d;function j(O){try{if(O==null)r.removeItem(e);else{const b=w.write(O),C=r.getItem(e);C!==b&&(r.setItem(e,b),v&&v.dispatchEvent(new CustomEvent(Z,{detail:{key:e,oldValue:C,newValue:b,storageArea:r}})))}}catch(b){f(b)}}function N(O){const b=O?O.newValue:r.getItem(e);if(b==null)return u&&m!==null&&r.setItem(e,w.write(m)),m;if(!O&&c){const C=w.read(b);return ve(c)?c(C,m):g==="object"&&!Array.isArray(C)?Y(Y({},m),C):C}else return typeof b!="string"?b:w.read(b)}function V(O){I(O.detail)}function I(O){if(!(O&&O.storageArea!==r)){if(O&&O.key==null){d.value=m;return}if(!(O&&O.key!==e)){y();try{d.value=N(O)}catch(b){f(b)}finally{O?fe(h):h()}}}}}function ye(e){return Ze("(prefers-color-scheme: dark)",e)}var lt=Object.defineProperty,ee=Object.getOwnPropertySymbols,ut=Object.prototype.hasOwnProperty,ct=Object.prototype.propertyIsEnumerable,te=(e,t,r)=>t in e?lt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ft=(e,t)=>{for(var r in t||(t={}))ut.call(t,r)&&te(e,r,t[r]);if(ee)for(var r of ee(t))ct.call(t,r)&&te(e,r,t[r]);return e};function dt(e={}){const{selector:t="html",attribute:r="class",initialValue:n="auto",window:a=E,storage:o,storageKey:i="vueuse-color-scheme",listenToStorageChanges:s=!0,storageRef:u,emitAuto:c}=e,p=ft({auto:"",light:"light",dark:"dark"},e.modes||{}),v=ye({window:a}),l=T(()=>v.value?"dark":"light"),f=u||(i==null?_(n):it(i,n,o,{window:a,listenToStorageChanges:s})),d=T({get(){return f.value==="auto"&&!c?l.value:f.value},set(y){f.value=y}}),m=we("updateHTMLAttrs",(y,h,j)=>{const N=a==null?void 0:a.document.querySelector(y);if(!!N)if(h==="class"){const V=j.split(/\s/g);Object.values(p).flatMap(I=>(I||"").split(/\s/g)).filter(Boolean).forEach(I=>{V.includes(I)?N.classList.add(I):N.classList.remove(I)})}else N.setAttribute(h,j)});function g(y){var h;const j=y==="auto"?l.value:y;m(t,r,(h=p[j])!=null?h:j)}function w(y){e.onChanged?e.onChanged(y,g):g(y)}return S(d,w,{flush:"post",immediate:!0}),c&&S(l,()=>w(d.value),{flush:"post"}),x(()=>w(d.value)),d}function Vt(e,t,{window:r=E,initialValue:n=""}={}){const a=_(n),o=T(()=>{var i;return $(t)||((i=r==null?void 0:r.document)==null?void 0:i.documentElement)});return S([o,()=>F(e)],([i,s])=>{var u;if(i&&r){const c=(u=r.getComputedStyle(i).getPropertyValue(s))==null?void 0:u.trim();a.value=c||n}},{immediate:!0}),S(a,i=>{var s;(s=o.value)!=null&&s.style&&o.value.style.setProperty(F(e),i)}),a}var pt=Object.defineProperty,vt=Object.defineProperties,mt=Object.getOwnPropertyDescriptors,re=Object.getOwnPropertySymbols,_t=Object.prototype.hasOwnProperty,Ot=Object.prototype.propertyIsEnumerable,ne=(e,t,r)=>t in e?pt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,gt=(e,t)=>{for(var r in t||(t={}))_t.call(t,r)&&ne(e,r,t[r]);if(re)for(var r of re(t))Ot.call(t,r)&&ne(e,r,t[r]);return e},wt=(e,t)=>vt(e,mt(t));function Lt(e={}){const{valueDark:t="dark",valueLight:r="",window:n=E}=e,a=dt(wt(gt({},e),{onChanged:(s,u)=>{var c;e.onChanged?(c=e.onChanged)==null||c.call(e,s==="dark"):u(s)},modes:{dark:t,light:r}})),o=ye({window:n});return T({get(){return a.value==="dark"},set(s){s===o.value?a.value="auto":a.value=s?"dark":"light"}})}function zt({document:e=ge}={}){if(!e)return _("visible");const t=_(e.visibilityState);return P(e,"visibilitychange",()=>{t.value=e.visibilityState}),t}var ae=Object.getOwnPropertySymbols,yt=Object.prototype.hasOwnProperty,ht=Object.prototype.propertyIsEnumerable,bt=(e,t)=>{var r={};for(var n in e)yt.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ae)for(var n of ae(e))t.indexOf(n)<0&&ht.call(e,n)&&(r[n]=e[n]);return r};function Pt(e,t,r={}){const n=r,{window:a=E}=n,o=bt(n,["window"]);let i;const s=k(()=>a&&"ResizeObserver"in a),u=()=>{i&&(i.disconnect(),i=void 0)},c=S(()=>$(e),v=>{u(),s.value&&a&&v&&(i=new ResizeObserver(t),i.observe(v,o))},{immediate:!0,flush:"post"}),p=()=>{u(),c()};return A(p),{isSupported:s,stop:p}}function Wt(e,t={}){const{reset:r=!0,windowResize:n=!0,windowScroll:a=!0,immediate:o=!0}=t,i=_(0),s=_(0),u=_(0),c=_(0),p=_(0),v=_(0),l=_(0),f=_(0);function d(){const m=$(e);if(!m){r&&(i.value=0,s.value=0,u.value=0,c.value=0,p.value=0,v.value=0,l.value=0,f.value=0);return}const g=m.getBoundingClientRect();i.value=g.height,s.value=g.bottom,u.value=g.left,c.value=g.right,p.value=g.top,v.value=g.width,l.value=g.x,f.value=g.y}return Pt(e,d),S(()=>$(e),m=>!m&&d()),a&&P("scroll",d,{capture:!0,passive:!0}),n&&P("resize",d,{passive:!0}),x(()=>{o&&d()}),{height:i,bottom:s,left:u,right:c,top:p,width:v,x:l,y:f,update:d}}const oe=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]];function Qt(e,t={}){const{document:r=ge,autoExit:n=!1}=t,a=e||(r==null?void 0:r.querySelector("html")),o=_(!1);let i=oe[0];const s=k(()=>{if(r){for(const m of oe)if(m[1]in r)return i=m,!0}else return!1;return!1}),[u,c,p,,v]=i;async function l(){!s.value||(r!=null&&r[p]&&await r[c](),o.value=!1)}async function f(){if(!s.value)return;await l();const m=$(a);m&&(await m[u](),o.value=!0)}async function d(){o.value?await l():await f()}return r&&P(r,v,()=>{o.value=!!(r!=null&&r[p])},!1),n&&A(l),{isSupported:s,isFullscreen:o,enter:f,exit:l,toggle:d}}var se=Object.getOwnPropertySymbols,St=Object.prototype.hasOwnProperty,Et=Object.prototype.propertyIsEnumerable,$t=(e,t)=>{var r={};for(var n in e)St.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&se)for(var n of se(e))t.indexOf(n)<0&&Et.call(e,n)&&(r[n]=e[n]);return r};function qt(e,t,r={}){const n=r,{window:a=E}=n,o=$t(n,["window"]);let i;const s=k(()=>a&&"MutationObserver"in a),u=()=>{i&&(i.disconnect(),i=void 0)},c=S(()=>$(e),v=>{u(),s.value&&a&&v&&(i=new MutationObserver(t),i.observe(v,o))},{immediate:!0}),p=()=>{u(),c()};return A(p),{isSupported:s,stop:p}}var ie;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(ie||(ie={}));var Ft=Object.defineProperty,le=Object.getOwnPropertySymbols,It=Object.prototype.hasOwnProperty,jt=Object.prototype.propertyIsEnumerable,ue=(e,t,r)=>t in e?Ft(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ct=(e,t)=>{for(var r in t||(t={}))It.call(t,r)&&ue(e,r,t[r]);if(le)for(var r of le(t))jt.call(t,r)&&ue(e,r,t[r]);return e};const Nt={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]};Ct({linear:Ve},Nt);function Jt(e,t,r,n={}){var a,o,i;const{clone:s=!1,passive:u=!1,eventName:c,deep:p=!1,defaultValue:v}=n,l=ce(),f=r||(l==null?void 0:l.emit)||((a=l==null?void 0:l.$emit)==null?void 0:a.bind(l))||((i=(o=l==null?void 0:l.proxy)==null?void 0:o.$emit)==null?void 0:i.bind(l==null?void 0:l.proxy));let d=c;t||(t="modelValue"),d=c||d||`update:${t.toString()}`;const m=w=>s?ve(s)?s(w):et(w):w,g=()=>De(e[t])?m(e[t]):v;if(u){const w=g(),y=_(w);return S(()=>e[t],h=>y.value=m(h)),S(y,h=>{(h!==e[t]||p)&&f(d,h)},{deep:p}),y}else return T({get(){return g()},set(w){f(d,w)}})}function Bt({window:e=E}={}){if(!e)return _(!1);const t=_(e.document.hasFocus());return P(e,"blur",()=>{t.value=!1}),P(e,"focus",()=>{t.value=!0}),t}function Ht(e={}){const{window:t=E,initialWidth:r=1/0,initialHeight:n=1/0,listenOrientation:a=!0,includeScrollbar:o=!0}=e,i=_(r),s=_(n),u=()=>{t&&(o?(i.value=t.innerWidth,s.value=t.innerHeight):(i.value=t.document.documentElement.clientWidth,s.value=t.document.documentElement.clientHeight))};return u(),x(u),P("resize",u,{passive:!0}),a&&P("orientationchange",u,{passive:!0}),{width:i,height:s}}export{P as a,Ht as b,Wt as c,Pt as d,At as e,Vt as f,Mt as g,Ae as h,R as i,zt as j,Bt as k,Dt as l,Jt as m,qt as n,kt as o,Qt as p,Lt as q,Rt as r,xt as s,A as t,$ as u};
|