moreShopAdmin/dist/assets/@vueuse.fbc6a400.js

2 lines
16 KiB
JavaScript
Raw Normal View History

2024-05-31 15:01:02 +08:00
import{g as be,e as he,f as ce,i as Pe,n as fe,j as Se,r as O,u as Ee,w as S,s as de,k as pe,l as W,b as T}from"./@vue.18505fe0.js";var $e=Object.defineProperty,Fe=Object.defineProperties,Ie=Object.getOwnPropertyDescriptors,J=Object.getOwnPropertySymbols,je=Object.prototype.hasOwnProperty,Ce=Object.prototype.propertyIsEnumerable,q=(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)&&q(e,r,t[r]);if(J)for(var r of J(t))Ce.call(t,r)&&q(e,r,t[r]);return e},Te=(e,t)=>Fe(e,Ie(t));function Tt(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 H;const A=typeof window<"u",De=e=>typeof e<"u",ve=e=>typeof e=="function",Ae=e=>typeof e=="string",D=()=>{},Me=A&&((H=window==null?void 0:window.navigator)==null?void 0:H.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function E(e){return typeof e=="function"?e():Ee(e)}function z(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 Re(e,t={}){let r,n,a=D;const o=s=>{clearTimeout(s),a(),a=D};return s=>{const u=E(e),c=E(t.maxWait);return r&&o(r),u<=0||c!==void 0&&c<=0?(n&&(o(n),n=null),Promise.resolve(s())):new Promise((d,v)=>{a=t.rejectOnCancel?v:d,c&&!n&&(n=setTimeout(()=>{r&&o(r),n=null,d(s())},c)),r=setTimeout(()=>{n&&o(n),n=null,d(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=E(e),f=Date.now()-a,p=()=>u=v();return c(),l<=0?(a=Date.now(),p()):(f>l&&(r||!i)?(a=Date.now(),p()):t&&(u=new Promise((_,$)=>{s=n?$:_,o=setTimeout(()=>{a=Date.now(),i=!0,_(p()),c()},Math.max(0,l-f))})),!r&&!o&&(o=setTimeout(()=>i=!0,l)),i=!1,u)}}function ke(e=me){const t=O(!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 M(e){return be()?(he(e),!0):!1}function Le(e,t=200,r={}){return z(Re(t,r),e)}function Dt(e,t=200,r={}){const n=O(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 z(xe(t,r,n,a),e)}function We(e){return typeof e=="function"?T(e):O(e)}function Q(e,t=!0){ce()?Pe(e):t?e():fe(e)}function Mt(e,t,r={}){const{immediate:n=!0}=r,a=O(!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)},E(t))}return n&&(a.value=!0,A&&u()),M(s),{isPending:W(a),start:u,stop:s}}function Rt(e=!1,t={}){const{truthyValue:r=!0,falsyValue:n=!1}=t,a=Se(e),o=O(e);function i(s){if(arguments.length)return o.value=s,o.value;{const u=E(r);return o.value=o.value===u?E(n):u,o.value}}return a?i:[o,i]}var B=Object.getOwnPropertySymbols,ze=Object.prototype.hasOwnProperty,Qe=Object.prototype.propertyIsEnumerable,Je=(e,t)=>{var r={};for(var n in e)ze.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&B)for(var n of B(e))t.indexOf(n)<0&&Qe.call(e,n)&&(r[n]=e[n]);return r};function qe(e,t,r={}){const n=r,{eventFilter:a=me}=n,o=Je(n,["eventFilter"]);return S(e,z(a,t),o)}var He=Object.defineProperty,Be=Object.defineProperties,Ue=Object.getOwnPropertyDescriptors,R=Object.getOwnPropertySymbols,_e=Object.prototype.hasOwnProperty,Oe=Object.prototype.propertyIsEnumerable,U=(e,t,r)=>t in e?He(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(R)for(var r of R(t))Oe.call(t,r)&&U(e,r,t[r]);return e},Ke=(e,t)=>Be(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&&R)for(var n of R(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:qe(e,t,Ke(Ge({},o),{eventFilter:i})),pause:s,resume:u,isActive:c}}function I(e){var t;const r=E(e);return(t=r==null?void 0:r.$e