@vtj/pro 0.13.23 → 0.13.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (62) hide show
  1. package/dist/@vtj/materials/assets/antdv/index.umd.js +2 -2
  2. package/dist/@vtj/materials/assets/charts/index.umd.js +2 -2
  3. package/dist/@vtj/materials/assets/element/index.umd.js +2 -2
  4. package/dist/@vtj/materials/assets/icons/index.umd.js +2 -2
  5. package/dist/@vtj/materials/assets/ui/index.umd.js +2 -2
  6. package/dist/@vtj/materials/assets/uni-h5/index.umd.js +2 -2
  7. package/dist/@vtj/materials/assets/uni-ui/index.umd.js +2 -2
  8. package/dist/@vtj/materials/assets/vant/index.umd.js +2 -2
  9. package/dist/@vtj/materials/deps/@vtj/charts/index.umd.js +2 -2
  10. package/dist/@vtj/materials/deps/@vtj/icons/index.umd.js +2 -2
  11. package/dist/@vtj/materials/deps/@vtj/ui/index.umd.js +2 -2
  12. package/dist/@vtj/materials/deps/@vtj/utils/index.umd.js +2 -2
  13. package/dist/assets/{@element-plus-icons-vue-Bs81Xeyi.js → @element-plus-icons-vue-DE0zzihg.js} +1 -1
  14. package/dist/assets/@vueuse-BpC0PsDL.js +1 -0
  15. package/dist/assets/Editor-CLb3krdP-C8r-IoQB.js +307 -0
  16. package/dist/assets/auth-BU1g2m9V.js +1 -0
  17. package/dist/assets/element-plus-Ls1uDfNj.js +12 -0
  18. package/dist/assets/index-Bcin0Mcb.js +2 -0
  19. package/dist/assets/index-Ce7h16Vb.css +1 -0
  20. package/dist/assets/index-TDxfKkT3.js +1 -0
  21. package/dist/assets/lodash-es-KLPqz5pm.js +1 -0
  22. package/dist/assets/page-XeGEQ6Gx.js +2 -0
  23. package/dist/assets/preview-DBbWvSmA.js +2 -0
  24. package/dist/assets/shared-CcA2kMdO.js +12 -0
  25. package/dist/assets/{uni-page-CU2x9oBI.js → uni-page-B0qhTPS3.js} +1 -1
  26. package/dist/assets/utils-BgbpVBXT.js +1 -0
  27. package/dist/assets/{vue-DMnDC9ZE.js → vue-DgQ6LK_p.js} +1 -1
  28. package/dist/assets/{vue-router-ewcyuiJO.js → vue-router-CMJRGE5e.js} +2 -2
  29. package/dist/assets/{vxe-CUfKLI0g.js → vxe-3kB2iE1H.js} +1 -1
  30. package/dist/index.html +10 -10
  31. package/dist/uni/assets/{index-BpxuZr4v.js → index-Do95VDVa.js} +4 -4
  32. package/dist/uni/index.html +1 -1
  33. package/package.json +11 -11
  34. package/src/extension.ts +1 -8
  35. package/dist/assets/@vueuse-WKVogrsa.js +0 -1
  36. package/dist/assets/Editor-DXsCBRiC-D33HbIh-.js +0 -317
  37. package/dist/assets/auth-qKk5TEEw.js +0 -1
  38. package/dist/assets/element-plus-Ah0xLs8C.js +0 -13
  39. package/dist/assets/index-B9w6VXQs.js +0 -1
  40. package/dist/assets/index-CrVHlN_5.css +0 -1
  41. package/dist/assets/index-DylXIfBJ.js +0 -2
  42. package/dist/assets/lodash-es-D-A_gPnj.js +0 -1
  43. package/dist/assets/page-Bik-KS-X.js +0 -2
  44. package/dist/assets/preview-BVRIzTIz.js +0 -2
  45. package/dist/assets/shared-CiMZBXIr.js +0 -25
  46. package/dist/assets/utils-BgH3gXg6.js +0 -1
  47. package/src/.vtj/files/19sisjqn.json +0 -134
  48. package/src/.vtj/files/59sitlse.json +0 -75
  49. package/src/.vtj/histories/19sisjqn/29sisspz.json +0 -125
  50. package/src/.vtj/histories/19sisjqn/49sisvom.json +0 -138
  51. package/src/.vtj/histories/19sisjqn.json +0 -13
  52. package/src/.vtj/histories/59sitlse/29siy19o.json +0 -68
  53. package/src/.vtj/histories/59sitlse/49siy569.json +0 -79
  54. package/src/.vtj/histories/59sitlse/b9situxg.json +0 -89
  55. package/src/.vtj/histories/59sitlse/d9siu04b.json +0 -102
  56. package/src/.vtj/histories/59sitlse/f9siu2fm.json +0 -120
  57. package/src/.vtj/histories/59sitlse/g9siu5xn.json +0 -42
  58. package/src/.vtj/histories/59sitlse/i9siulxs.json +0 -55
  59. package/src/.vtj/histories/59sitlse.json +0 -33
  60. package/src/.vtj/materials/@vtj/pro.json +0 -7832
  61. package/src/.vtj/projects/@vtj/pro.json +0 -264
  62. /package/dist/assets/{Editor-DXsCBRiC-CF39O6J0.css → Editor-CLb3krdP-CF39O6J0.css} +0 -0
@@ -0,0 +1 @@
1
+ var Ve=Object.defineProperty,je=Object.defineProperties;var Xe=Object.getOwnPropertyDescriptors;var q=Object.getOwnPropertySymbols;var ge=Object.prototype.hasOwnProperty,ye=Object.prototype.propertyIsEnumerable;var he=(e,t,n)=>t in e?Ve(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,z=(e,t)=>{for(var n in t||(t={}))ge.call(t,n)&&he(e,n,t[n]);if(q)for(var n of q(t))ye.call(t,n)&&he(e,n,t[n]);return e},Q=(e,t)=>je(e,Xe(t));var J=(e,t)=>{var n={};for(var r in e)ge.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&q)for(var r of q(e))t.indexOf(r)<0&&ye.call(e,r)&&(n[r]=e[r]);return n};import{s as T,w as $e,r as ne,b as $,e as W,f as I,g as De,h as ke,i as te,j as we,u as ae,k as G,l as le,n as ce,m as fe,t as Ye,p as Qe,q as O,v as Fe,x as Je}from"./vue-DgQ6LK_p.js";var Ue=Object.defineProperty,Ge=Object.defineProperties,Ke=Object.getOwnPropertyDescriptors,be=Object.getOwnPropertySymbols,qe=Object.prototype.hasOwnProperty,Ze=Object.prototype.propertyIsEnumerable,Oe=(e,t,n)=>t in e?Ue(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,et=(e,t)=>{for(var n in t||(t={}))qe.call(t,n)&&Oe(e,n,t[n]);if(be)for(var n of be(t))Ze.call(t,n)&&Oe(e,n,t[n]);return e},tt=(e,t)=>Ge(e,Ke(t));function Zt(e,t){var n;const r=T();return $e(()=>{r.value=e()},tt(et({},t),{flush:(n=void 0)!=null?n:"sync"})),ne(r)}var _e;const re=typeof window!="undefined",nt=e=>typeof e!="undefined",ue=e=>typeof e=="function",rt=e=>typeof e=="string",en=(e,t,n)=>Math.min(n,Math.max(t,e)),V=()=>{},ot=re&&((_e=window==null?void 0:window.navigator)==null?void 0:_e.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function X(e){return typeof e=="function"?e():ae(e)}function Re(e,t){function n(...r){return new Promise((s,o)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(s).catch(o)})}return n}function st(e,t={}){let n,r,s=V;const o=i=>{clearTimeout(i),s(),s=V};return i=>{const a=X(e),f=X(t.maxWait);return n&&o(n),a<=0||f!==void 0&&f<=0?(r&&(o(r),r=null),Promise.resolve(i())):new Promise((v,l)=>{s=t.rejectOnCancel?l:v,f&&!r&&(r=setTimeout(()=>{n&&o(n),r=null,v(i())},f)),n=setTimeout(()=>{r&&o(r),r=null,v(i())},a)})}}function it(e,t=!0,n=!0,r=!1){let s=0,o,u=!0,i=V,a;const f=()=>{o&&(clearTimeout(o),o=void 0,i(),i=V)};return l=>{const c=X(e),d=Date.now()-s,m=()=>a=l();return f(),c<=0?(s=Date.now(),m()):(d>c&&(n||!u)?(s=Date.now(),m()):t&&(a=new Promise((y,w)=>{i=r?w:y,o=setTimeout(()=>{s=Date.now(),u=!0,y(m()),f()},Math.max(0,c-d))})),!n&&!o&&(o=setTimeout(()=>u=!0,c)),u=!1,a)}}function ut(e){return e}function at(e,t){let n,r,s;const o=$(!0),u=()=>{o.value=!0,s()};W(e,u,{flush:"sync"});const i=ue(t)?t:t.get,a=ue(t)?void 0:t.set,f=fe((v,l)=>(r=v,s=l,{get(){return o.value&&(n=i(),o.value=!1),r(),n},set(c){a==null||a(c)}}));return Object.isExtensible(f)&&(f.trigger=u),f}function K(e){return De()?(ke(e),!0):!1}function lt(e){if(!te(e))return we(e);const t=new Proxy({},{get(n,r,s){return ae(Reflect.get(e.value,r,s))},set(n,r,s){return te(e.value[r])&&!te(s)?e.value[r].value=s:e.value[r]=s,!0},deleteProperty(n,r){return Reflect.deleteProperty(e.value,r)},has(n,r){return Reflect.has(e.value,r)},ownKeys(){return Object.keys(e.value)},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}});return we(t)}function tn(e){return lt(I(e))}function ct(e,t=200,n={}){return Re(st(t,n),e)}function nn(e,t=200,n={}){const r=$(e.value),s=ct(()=>{r.value=e.value},t,n);return W(e,()=>s()),r}function rn(e,t=200,n=!1,r=!0,s=!1){return Re(it(t,n,r,s),e)}function Ne(e,t=!0){G()?le(e):t?e():ce(e)}function on(e,t,n={}){const{immediate:r=!0}=n,s=$(!1);let o=null;function u(){o&&(clearTimeout(o),o=null)}function i(){s.value=!1,u()}function a(...f){u(),s.value=!0,o=setTimeout(()=>{s.value=!1,o=null,e(...f)},X(t))}return r&&(s.value=!0,re&&a()),K(i),{isPending:ne(s),start:a,stop:i}}function L(e){var t;const n=X(e);return(t=n==null?void 0:n.$el)!=null?t:n}const j=re?window:void 0,ft=re?window.document:void 0;function H(...e){let t,n,r,s;if(rt(e[0])||Array.isArray(e[0])?([n,r,s]=e,t=j):[t,n,r,s]=e,!t)return V;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const o=[],u=()=>{o.forEach(v=>v()),o.length=0},i=(v,l,c,d)=>(v.addEventListener(l,c,d),()=>v.removeEventListener(l,c,d)),a=W(()=>[L(t),X(s)],([v,l])=>{u(),v&&o.push(...n.flatMap(c=>r.map(d=>i(v,c,d,l))))},{immediate:!0,flush:"post"}),f=()=>{a(),u()};return K(f),f}let Se=!1;function sn(e,t,n={}){const{window:r=j,ignore:s=[],capture:o=!0,detectIframe:u=!1}=n;if(!r)return;ot&&!Se&&(Se=!0,Array.from(r.document.body.children).forEach(c=>c.addEventListener("click",V)));let i=!0;const a=c=>s.some(d=>{if(typeof d=="string")return Array.from(r.document.querySelectorAll(d)).some(m=>m===c.target||c.composedPath().includes(m));{const m=L(d);return m&&(c.target===m||c.composedPath().includes(m))}}),v=[H(r,"click",c=>{const d=L(e);if(!(!d||d===c.target||c.composedPath().includes(d))){if(c.detail===0&&(i=!a(c)),!i){i=!0;return}t(c)}},{passive:!0,capture:o}),H(r,"pointerdown",c=>{const d=L(e);d&&(i=!c.composedPath().includes(d)&&!a(c))},{passive:!0}),u&&H(r,"blur",c=>{var d;const m=L(e);((d=r.document.activeElement)==null?void 0:d.tagName)==="IFRAME"&&!(m!=null&&m.contains(r.document.activeElement))&&t(c)})].filter(Boolean);return()=>v.forEach(c=>c())}function un(e={}){var t;const{window:n=j}=e,r=(t=e.document)!=null?t:n==null?void 0:n.document,s=at(()=>null,()=>r==null?void 0:r.activeElement);return n&&(H(n,"blur",o=>{o.relatedTarget===null&&s.trigger()},!0),H(n,"focus",s.trigger,!0)),s}function de(e,t=!1){const n=$(),r=()=>n.value=!!e();return r(),Ne(r,t),n}function dt(e){return JSON.parse(JSON.stringify(e))}const Ee=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},Pe="__vueuse_ssr_handlers__";Ee[Pe]=Ee[Pe]||{};function an(e,t,{window:n=j,initialValue:r=""}={}){const s=$(r),o=I(()=>{var u;return L(t)||((u=n==null?void 0:n.document)==null?void 0:u.documentElement)});return W([o,()=>X(e)],([u,i])=>{var a;if(u&&n){const f=(a=n.getComputedStyle(u).getPropertyValue(i))==null?void 0:a.trim();s.value=f||r}},{immediate:!0}),W(s,u=>{var i;(i=o.value)!=null&&i.style&&o.value.style.setProperty(X(e),u)}),s}function ln({document:e=ft}={}){if(!e)return $("visible");const t=$(e.visibilityState);return H(e,"visibilitychange",()=>{t.value=e.visibilityState}),t}var xe=Object.getOwnPropertySymbols,vt=Object.prototype.hasOwnProperty,pt=Object.prototype.propertyIsEnumerable,mt=(e,t)=>{var n={};for(var r in e)vt.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&xe)for(var r of xe(e))t.indexOf(r)<0&&pt.call(e,r)&&(n[r]=e[r]);return n};function cn(e,t,n={}){const r=n,{window:s=j}=r,o=mt(r,["window"]);let u;const i=de(()=>s&&"ResizeObserver"in s),a=()=>{u&&(u.disconnect(),u=void 0)},f=W(()=>L(e),l=>{a(),i.value&&s&&l&&(u=new ResizeObserver(t),u.observe(l,o))},{immediate:!0,flush:"post"}),v=()=>{a(),f()};return K(v),{isSupported:i,stop:v}}function fn(e,t,n={}){const{root:r,rootMargin:s="0px",threshold:o=.1,window:u=j}=n,i=de(()=>u&&"IntersectionObserver"in u);let a=V;const f=i.value?W(()=>({el:L(e),root:L(r)}),({el:l,root:c})=>{if(a(),!l)return;const d=new IntersectionObserver(t,{root:c,rootMargin:s,threshold:o});d.observe(l),a=()=>{d.disconnect(),a=V}},{immediate:!0,flush:"post"}):V,v=()=>{a(),f()};return K(v),{isSupported:i,stop:v}}var Me=Object.getOwnPropertySymbols,ht=Object.prototype.hasOwnProperty,gt=Object.prototype.propertyIsEnumerable,yt=(e,t)=>{var n={};for(var r in e)ht.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Me)for(var r of Me(e))t.indexOf(r)<0&&gt.call(e,r)&&(n[r]=e[r]);return n};function dn(e,t,n={}){const r=n,{window:s=j}=r,o=yt(r,["window"]);let u;const i=de(()=>s&&"MutationObserver"in s),a=()=>{u&&(u.disconnect(),u=void 0)},f=W(()=>L(e),l=>{a(),i.value&&s&&l&&(u=new MutationObserver(t),u.observe(l,o))},{immediate:!0}),v=()=>{a(),f()};return K(v),{isSupported:i,stop:v}}var Ce;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(Ce||(Ce={}));var wt=Object.defineProperty,Te=Object.getOwnPropertySymbols,bt=Object.prototype.hasOwnProperty,Ot=Object.prototype.propertyIsEnumerable,We=(e,t,n)=>t in e?wt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,_t=(e,t)=>{for(var n in t||(t={}))bt.call(t,n)&&We(e,n,t[n]);if(Te)for(var n of Te(t))Ot.call(t,n)&&We(e,n,t[n]);return e};const St={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]};_t({linear:ut},St);function vn(e,t,n,r={}){var s,o,u;const{clone:i=!1,passive:a=!1,eventName:f,deep:v=!1,defaultValue:l}=r,c=G(),d=n||(c==null?void 0:c.emit)||((s=c==null?void 0:c.$emit)==null?void 0:s.bind(c))||((u=(o=c==null?void 0:c.proxy)==null?void 0:o.$emit)==null?void 0:u.bind(c==null?void 0:c.proxy));let m=f;t||(t="modelValue"),m=f||m||`update:${t.toString()}`;const y=g=>i?ue(i)?i(g):dt(g):g,w=()=>nt(e[t])?y(e[t]):l;if(a){const g=w(),S=$(g);return W(()=>e[t],_=>S.value=y(_)),W(S,_=>{(_!==e[t]||v)&&d(m,_)},{deep:v}),S}else return I({get(){return w()},set(g){d(m,g)}})}function pn({window:e=j}={}){if(!e)return $(!1);const t=$(e.document.hasFocus());return H(e,"blur",()=>{t.value=!1}),H(e,"focus",()=>{t.value=!0}),t}function mn(e={}){const{window:t=j,initialWidth:n=1/0,initialHeight:r=1/0,listenOrientation:s=!0,includeScrollbar:o=!0}=e,u=$(n),i=$(r),a=()=>{t&&(o?(u.value=t.innerWidth,i.value=t.innerHeight):(u.value=t.document.documentElement.clientWidth,i.value=t.document.documentElement.clientHeight))};return a(),Ne(a),H("resize",a,{passive:!0}),s&&H("orientationchange",a,{passive:!0}),{width:u,height:i}}function oe(e){return De()?(ke(e),!0):!1}const ie=new WeakMap,Et=(...e)=>{var t;const n=e[0],r=(t=G())==null?void 0:t.proxy;if(r==null&&!Fe())throw new Error("injectLocal must be called in setup");return r&&ie.has(r)&&n in ie.get(r)?ie.get(r)[n]:Je(...e)},ve=typeof window!="undefined"&&typeof document!="undefined";typeof WorkerGlobalScope!="undefined"&&globalThis instanceof WorkerGlobalScope;const Pt=e=>e!=null,xt=Object.prototype.toString,Mt=e=>xt.call(e)==="[object Object]",Ct=()=>{};function pe(...e){if(e.length!==1)return Ye(...e);const t=e[0];return typeof t=="function"?ne(fe(()=>({get:t,set:Ct}))):$(t)}function Tt(e,t){function n(...r){return new Promise((s,o)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(s).catch(o)})}return n}const ze=e=>e();function Wt(e=ze,t={}){const{initialState:n="active"}=t,r=pe(n==="active");function s(){r.value=!1}function o(){r.value=!0}const u=(...i)=>{r.value&&e(...i)};return{isActive:ne(r),pause:s,resume:o,eventFilter:u}}function Ae(e){return e.endsWith("rem")?Number.parseFloat(e)*16:Number.parseFloat(e)}function U(e){return Array.isArray(e)?e:[e]}function At(e){return G()}function It(e,t,n={}){const o=n,{eventFilter:r=ze}=o,s=J(o,["eventFilter"]);return W(e,Tt(r,t),s)}function $t(e,t,n={}){const l=n,{eventFilter:r,initialState:s="active"}=l,o=J(l,["eventFilter","initialState"]),{eventFilter:u,pause:i,resume:a,isActive:f}=Wt(r,{initialState:s});return{stop:It(e,t,Q(z({},o),{eventFilter:u})),pause:i,resume:a,isActive:f}}function Dt(e,t={}){if(!te(e))return Qe(e);const n=Array.isArray(e.value)?Array.from({length:e.value.length}):{};for(const r in e.value)n[r]=fe(()=>({get(){return e.value[r]},set(s){var o;if((o=O(t.replaceRef))!=null?o:!0)if(Array.isArray(e.value)){const i=[...e.value];i[r]=s,e.value=i}else{const i=Q(z({},e.value),{[r]:s});Object.setPrototypeOf(i,Object.getPrototypeOf(e.value)),e.value=i}else e.value[r]=s}}));return n}function se(e,t=!0,n){At()?le(e,n):t?e():ce(e)}function kt(e,t,n){return W(e,t,Q(z({},n),{immediate:!0}))}const N=ve?window:void 0,Ft=ve?window.document:void 0;function B(e){var t;const n=O(e);return(t=n==null?void 0:n.$el)!=null?t:n}function F(...e){const t=[],n=()=>{t.forEach(i=>i()),t.length=0},r=(i,a,f,v)=>(i.addEventListener(a,f,v),()=>i.removeEventListener(a,f,v)),s=I(()=>{const i=U(O(e[0])).filter(a=>a!=null);return i.every(a=>typeof a!="string")?i:void 0}),o=kt(()=>{var i,a;return[(a=(i=s.value)==null?void 0:i.map(f=>B(f)))!=null?a:[N].filter(f=>f!=null),U(O(s.value?e[1]:e[0])),U(ae(s.value?e[2]:e[1])),O(s.value?e[3]:e[2])]},([i,a,f,v])=>{if(n(),!(i!=null&&i.length)||!(a!=null&&a.length)||!(f!=null&&f.length))return;const l=Mt(v)?z({},v):v;t.push(...i.flatMap(c=>a.flatMap(d=>f.map(m=>r(c,d,m,l)))))},{flush:"post"}),u=()=>{o(),n()};return oe(n),u}function Rt(){const e=T(!1),t=G();return t&&le(()=>{e.value=!0},t),e}function me(e){const t=Rt();return I(()=>(t.value,!!e()))}function Le(e,t,n={}){const c=n,{window:r=N}=c,s=J(c,["window"]);let o;const u=me(()=>r&&"MutationObserver"in r),i=()=>{o&&(o.disconnect(),o=void 0)},a=I(()=>{const d=O(e),m=U(d).map(B).filter(Pt);return new Set(m)}),f=W(a,d=>{i(),u.value&&d.size&&(o=new MutationObserver(t),d.forEach(m=>o.observe(m,s)))},{immediate:!0,flush:"post"}),v=()=>o==null?void 0:o.takeRecords(),l=()=>{f(),i()};return oe(l),{isSupported:u,stop:l,takeRecords:v}}const Nt=Symbol("vueuse-ssr-width");function zt(){const e=Fe()?Et(Nt,null):null;return typeof e=="number"?e:void 0}function Lt(e,t={}){const{window:n=N,ssrWidth:r=zt()}=t,s=me(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function"),o=T(typeof r=="number"),u=T(),i=T(!1),a=f=>{i.value=f.matches};return $e(()=>{if(o.value){o.value=!s.value;const f=O(e).split(",");i.value=f.some(v=>{const l=v.includes("not all"),c=v.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),d=v.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);let m=!!(c||d);return c&&m&&(m=r>=Ae(c[1])),d&&m&&(m=r<=Ae(d[1])),l?!m:m});return}s.value&&(u.value=n.matchMedia(O(e)),i.value=u.value.matches)}),F(u,"change",a,{passive:!0}),I(()=>i.value)}const Z=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},ee="__vueuse_ssr_handlers__",Bt=Ht();function Ht(){return ee in Z||(Z[ee]=Z[ee]||{}),Z[ee]}function Be(e,t){return Bt[e]||t}function Vt(e){return Lt("(prefers-color-scheme: dark)",e)}function jt(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"}const Xt={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()}},Ie="vueuse-storage";function Yt(e,t,n,r={}){var s;const{flush:o="pre",deep:u=!0,listenToStorageChanges:i=!0,writeDefaults:a=!0,mergeDefaults:f=!1,shallow:v,window:l=N,eventFilter:c,onError:d=h=>{console.error(h)},initOnMounted:m}=r,y=(v?T:$)(typeof t=="function"?t():t),w=I(()=>O(e));if(!n)try{n=Be("getDefaultStorage",()=>{var h;return(h=N)==null?void 0:h.localStorage})()}catch(h){d(h)}if(!n)return y;const g=O(t),S=jt(g),_=(s=r.serializer)!=null?s:Xt[S],{pause:M,resume:x}=$t(y,h=>C(h),{flush:o,deep:u,eventFilter:c});W(w,()=>k(),{flush:o});let D=!1;const p=h=>{m&&!D||k(h)},b=h=>{m&&!D||Y(h)};l&&i&&(n instanceof Storage?F(l,"storage",p,{passive:!0}):F(l,Ie,b)),m?se(()=>{D=!0,k()}):k();function E(h,A){if(l){const R={key:w.value,oldValue:h,newValue:A,storageArea:n};l.dispatchEvent(n instanceof Storage?new StorageEvent("storage",R):new CustomEvent(Ie,{detail:R}))}}function C(h){try{const A=n.getItem(w.value);if(h==null)E(A,null),n.removeItem(w.value);else{const R=_.write(h);A!==R&&(n.setItem(w.value,R),E(A,R))}}catch(A){d(A)}}function P(h){const A=h?h.newValue:n.getItem(w.value);if(A==null)return a&&g!=null&&n.setItem(w.value,_.write(g)),g;if(!h&&f){const R=_.read(A);return typeof f=="function"?f(R,g):S==="object"&&!Array.isArray(R)?z(z({},g),R):R}else return typeof A!="string"?A:_.read(A)}function k(h){if(!(h&&h.storageArea!==n)){if(h&&h.key==null){y.value=g;return}if(!(h&&h.key!==w.value)){M();try{const A=_.write(y.value);(h===void 0||(h==null?void 0:h.newValue)!==A)&&(y.value=P(h))}catch(A){d(A)}finally{h?ce(x):x()}}}}function Y(h){k(h.detail)}return y}const Qt="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function Jt(e={}){const{selector:t="html",attribute:n="class",initialValue:r="auto",window:s=N,storage:o,storageKey:u="vueuse-color-scheme",listenToStorageChanges:i=!0,storageRef:a,emitAuto:f,disableTransition:v=!0}=e,l=z({auto:"",light:"light",dark:"dark"},e.modes||{}),c=Vt({window:s}),d=I(()=>c.value?"dark":"light"),m=a||(u==null?pe(r):Yt(u,r,o,{window:s,listenToStorageChanges:i})),y=I(()=>m.value==="auto"?d.value:m.value),w=Be("updateHTMLAttrs",(M,x,D)=>{const p=typeof M=="string"?s==null?void 0:s.document.querySelector(M):B(M);if(!p)return;const b=new Set,E=new Set;let C=null;if(x==="class"){const k=D.split(/\s/g);Object.values(l).flatMap(Y=>(Y||"").split(/\s/g)).filter(Boolean).forEach(Y=>{k.includes(Y)?b.add(Y):E.add(Y)})}else C={key:x,value:D};if(b.size===0&&E.size===0&&C===null)return;let P;v&&(P=s.document.createElement("style"),P.appendChild(document.createTextNode(Qt)),s.document.head.appendChild(P));for(const k of b)p.classList.add(k);for(const k of E)p.classList.remove(k);C&&p.setAttribute(C.key,C.value),v&&(s.getComputedStyle(P).opacity,document.head.removeChild(P))});function g(M){var x;w(t,n,(x=l[M])!=null?x:M)}function S(M){e.onChanged?e.onChanged(M,g):g(M)}W(y,S,{flush:"post",immediate:!0}),se(()=>S(y.value));const _=I({get(){return f?m.value:y.value},set(M){m.value=M}});return Object.assign(_,{store:m,system:d,state:y})}function hn(e={}){const{valueDark:t="dark",valueLight:n=""}=e,r=Jt(Q(z({},e),{onChanged:(u,i)=>{var a;e.onChanged?(a=e.onChanged)==null||a.call(e,u==="dark",i,u):i(u)},modes:{dark:t,light:n}})),s=I(()=>r.system.value);return I({get(){return r.value==="dark"},set(u){const i=u?"dark":"light";s.value===i?r.value="auto":r.value=i}})}function gn(e,t={}){var n;const{pointerTypes:r,preventDefault:s,stopPropagation:o,exact:u,onMove:i,onEnd:a,onStart:f,initialValue:v,axis:l="both",draggingElement:c=N,containerElement:d,handle:m=e,buttons:y=[0]}=t,w=$((n=O(v))!=null?n:{x:0,y:0}),g=$(),S=p=>r?r.includes(p.pointerType):!0,_=p=>{O(s)&&p.preventDefault(),O(o)&&p.stopPropagation()},M=p=>{var b;if(!O(y).includes(p.button)||O(t.disabled)||!S(p)||O(u)&&p.target!==O(e))return;const E=O(d),C=(b=E==null?void 0:E.getBoundingClientRect)==null?void 0:b.call(E),P=O(e).getBoundingClientRect(),k={x:p.clientX-(E?P.left-C.left+E.scrollLeft:P.left),y:p.clientY-(E?P.top-C.top+E.scrollTop:P.top)};(f==null?void 0:f(k,p))!==!1&&(g.value=k,_(p))},x=p=>{if(O(t.disabled)||!S(p)||!g.value)return;const b=O(d),E=O(e).getBoundingClientRect();let{x:C,y:P}=w.value;(l==="x"||l==="both")&&(C=p.clientX-g.value.x,b&&(C=Math.min(Math.max(0,C),b.scrollWidth-E.width))),(l==="y"||l==="both")&&(P=p.clientY-g.value.y,b&&(P=Math.min(Math.max(0,P),b.scrollHeight-E.height))),w.value={x:C,y:P},i==null||i(w.value,p),_(p)},D=p=>{O(t.disabled)||!S(p)||g.value&&(g.value=void 0,a==null||a(w.value,p),_(p))};if(ve){const p=()=>{var b;return{capture:(b=t.capture)!=null?b:!0,passive:!O(s)}};F(m,"pointerdown",M,p),F(c,"pointermove",x,p),F(c,"pointerup",D,p)}return Q(z({},Dt(w)),{position:w,isDragging:I(()=>!!g.value),style:I(()=>`left:${w.value.x}px;top:${w.value.y}px;`)})}function He(e,t,n={}){const l=n,{window:r=N}=l,s=J(l,["window"]);let o;const u=me(()=>r&&"ResizeObserver"in r),i=()=>{o&&(o.disconnect(),o=void 0)},a=I(()=>{const c=O(e);return Array.isArray(c)?c.map(d=>B(d)):[B(c)]}),f=W(a,c=>{if(i(),u.value&&r){o=new ResizeObserver(t);for(const d of c)d&&o.observe(d,s)}},{immediate:!0,flush:"post"}),v=()=>{i(),f()};return oe(v),{isSupported:u,stop:v}}function yn(e,t={width:0,height:0},n={}){const{window:r=N,box:s="content-box"}=n,o=I(()=>{var l,c;return(c=(l=B(e))==null?void 0:l.namespaceURI)==null?void 0:c.includes("svg")}),u=T(t.width),i=T(t.height),{stop:a}=He(e,([l])=>{const c=s==="border-box"?l.borderBoxSize:s==="content-box"?l.contentBoxSize:l.devicePixelContentBoxSize;if(r&&o.value){const d=B(e);if(d){const m=d.getBoundingClientRect();u.value=m.width,i.value=m.height}}else if(c){const d=U(c);u.value=d.reduce((m,{inlineSize:y})=>m+y,0),i.value=d.reduce((m,{blockSize:y})=>m+y,0)}else u.value=l.contentRect.width,i.value=l.contentRect.height},n);se(()=>{const l=B(e);l&&(u.value="offsetWidth"in l?l.offsetWidth:t.width,i.value="offsetHeight"in l?l.offsetHeight:t.height)});const f=W(()=>B(e),l=>{u.value=l?t.width:0,i.value=l?t.height:0});function v(){a(),f()}return{width:u,height:i,stop:v}}const Ut={page:e=>[e.pageX,e.pageY],client:e=>[e.clientX,e.clientY],screen:e=>[e.screenX,e.screenY],movement:e=>e instanceof MouseEvent?[e.movementX,e.movementY]:null};function Gt(e={}){const{type:t="page",touch:n=!0,resetOnTouchEnds:r=!1,initialValue:s={x:0,y:0},window:o=N,target:u=o,scroll:i=!0,eventFilter:a}=e;let f=null,v=0,l=0;const c=T(s.x),d=T(s.y),m=T(null),y=typeof t=="function"?t:Ut[t],w=p=>{const b=y(p);f=p,b&&([c.value,d.value]=b,m.value="mouse"),o&&(v=o.scrollX,l=o.scrollY)},g=p=>{if(p.touches.length>0){const b=y(p.touches[0]);b&&([c.value,d.value]=b,m.value="touch")}},S=()=>{if(!f||!o)return;const p=y(f);f instanceof MouseEvent&&p&&(c.value=p[0]+o.scrollX-v,d.value=p[1]+o.scrollY-l)},_=()=>{c.value=s.x,d.value=s.y},M=a?p=>a(()=>w(p),{}):p=>w(p),x=a?p=>a(()=>g(p),{}):p=>g(p),D=a?()=>a(()=>S(),{}):()=>S();if(u){const p={passive:!0};F(u,["mousemove","dragover"],M,p),n&&t!=="movement"&&(F(u,["touchstart","touchmove"],x,p),r&&F(u,"touchend",_,p)),i&&t==="page"&&F(o,"scroll",D,p)}return{x:c,y:d,sourceType:m}}function wn(e,t={}){const{windowResize:n=!0,windowScroll:r=!0,handleOutside:s=!0,window:o=N}=t,u=t.type||"page",{x:i,y:a,sourceType:f}=Gt(t),v=T(e!=null?e:o==null?void 0:o.document.body),l=T(0),c=T(0),d=T(0),m=T(0),y=T(0),w=T(0),g=T(!0);function S(){if(!o)return;const x=B(v);if(!x||!(x instanceof Element))return;const{left:D,top:p,width:b,height:E}=x.getBoundingClientRect();d.value=D+(u==="page"?o.pageXOffset:0),m.value=p+(u==="page"?o.pageYOffset:0),y.value=E,w.value=b;const C=i.value-d.value,P=a.value-m.value;g.value=b===0||E===0||C<0||P<0||C>b||P>E,(s||!g.value)&&(l.value=C,c.value=P)}const _=[];function M(){_.forEach(x=>x()),_.length=0}if(se(()=>{S()}),o){const{stop:x}=He(v,S),{stop:D}=Le(v,S,{attributeFilter:["style","class"]}),p=W([v,i,a],S);_.push(x,D,p),F(document,"mouseleave",()=>g.value=!0,{passive:!0}),r&&_.push(F("scroll",S,{capture:!0,passive:!0})),n&&_.push(F("resize",S,{passive:!0}))}return{x:i,y:a,sourceType:f,elementX:l,elementY:c,elementPositionX:d,elementPositionY:m,elementHeight:y,elementWidth:w,isOutside:g,stop:M}}function bn(e=null,t={}){var n,r,s;const{document:o=Ft,restoreOnUnmount:u=l=>l}=t,i=(n=o==null?void 0:o.title)!=null?n:"",a=pe((r=e!=null?e:o==null?void 0:o.title)!=null?r:null),f=!!(e&&typeof e=="function");function v(l){if(!("titleTemplate"in t))return l;const c=t.titleTemplate||"%s";return typeof c=="function"?c(l):O(c).replace(/%s/g,l)}return W(a,(l,c)=>{l!==c&&o&&(o.title=v(l!=null?l:""))},{immediate:!0}),t.observe&&!t.titleTemplate&&o&&!f&&Le((s=o.head)==null?void 0:s.querySelector("title"),()=>{o&&o.title!==a.value&&(a.value=v(o.title))},{childList:!0}),oe(()=>{if(u){const l=u(i,a.value||"");l!=null&&o&&(o.title=l)}}),a}export{gn as A,cn as a,L as b,Zt as c,an as d,on as e,mn as f,en as g,nn as h,re as i,fn as j,rn as k,ot as l,dn as m,ln as n,sn as o,pn as p,vn as q,tn as r,un as s,K as t,H as u,bn as v,wn as w,F as x,yn as y,hn as z};