WokerTask/public/admin/assets/@vueuse.a2e59ee9.js

2 lines
16 KiB
JavaScript
Raw Normal View History

2023-12-29 18:51:22 +08:00
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.$e