@vtj/pro 0.13.16 → 0.13.17
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.
- package/dist/.vtj/vtj.png +0 -0
- package/dist/@vtj/materials/assets/antdv/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/charts/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/element/index.umd.js +3 -3
- package/dist/@vtj/materials/assets/icons/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/ui/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/uni-h5/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/uni-ui/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/vant/index.umd.js +2 -2
- package/dist/@vtj/materials/deps/@vtj/charts/index.umd.js +2 -2
- package/dist/@vtj/materials/deps/@vtj/icons/index.umd.js +2 -2
- package/dist/@vtj/materials/deps/@vtj/ui/index.umd.js +4 -4
- package/dist/@vtj/materials/deps/@vtj/ui/style.css +1 -1
- package/dist/@vtj/materials/deps/@vtj/utils/index.umd.js +28 -33
- package/dist/@vtj/materials/deps/@vueuse/core/index.iife.min.js +1 -1
- package/dist/@vtj/materials/deps/element-plus/index.css +1 -1
- package/dist/@vtj/materials/deps/element-plus/index.full.min.js +14 -14
- package/dist/@vtj/materials/deps/element-plus/zh-cn.js +1 -1
- package/dist/@vtj/materials/deps/uni-app/index.umd.js +1 -1
- package/dist/@vtj/materials/deps/uni-h5/index.umd.js +8 -8
- package/dist/@vtj/materials/deps/uni-h5/style.css +1 -1
- package/dist/@vtj/materials/deps/uni-h5-vue/index.umd.js +1 -1
- package/dist/@vtj/materials/deps/uni-ui/index.umd.js +6 -1
- package/dist/@vtj/materials/deps/uni-ui/style.css +1 -1
- package/dist/@vtj/materials/deps/vue/vue.global.js +88 -53
- package/dist/@vtj/materials/deps/vue/vue.global.prod.js +9 -9
- package/dist/assets/{@element-plus-icons-vue-CM8mFRtE.js → @element-plus-icons-vue-CtYczY4K.js} +1 -1
- package/dist/assets/@vueuse-DmJSJ3Sc.js +1 -0
- package/dist/assets/{Editor-BYRlEJ7f-DrA-LA5d.js → Editor-BuEQalqM-DucWgUTD.js} +100 -104
- package/dist/assets/Editor-BuEQalqM-oS7Cs8w2.css +1 -0
- package/dist/assets/auth-BbAFxxwL.js +1 -0
- package/dist/assets/element-plus-D-MSrZ0u.css +1 -0
- package/dist/assets/element-plus-MdtkBKvq.js +13 -0
- package/dist/assets/index-B2Vq-Ty0.js +1 -0
- package/dist/assets/{index-Dfyhed0K.js → index-Biod853_.js} +2 -2
- package/dist/assets/{mockjs-DhpLkc3z.js → mockjs-B1eBEK5l.js} +1 -1
- package/dist/assets/page-BlFOKOi4.js +2 -0
- package/dist/assets/preview-6zwsYFyC.js +2 -0
- package/dist/assets/uni-page-B4FdXmeb.js +1 -0
- package/dist/assets/utils-CEJpjMok.js +1 -0
- package/dist/assets/vue-CEtC17Vu.js +34 -0
- package/dist/assets/{vue-router-BUqJHGtN.js → vue-router-BfFk43nw.js} +2 -2
- package/dist/assets/{vxe-BRrz13Uv.js → vxe-mp8c2cud.js} +1 -1
- package/dist/index.html +9 -9
- package/dist/uni/assets/{@dcloudio-uni-h5-vue-Dkyr-yjK.js → @dcloudio-uni-h5-vue-BtM9Eyib.js} +2 -2
- package/dist/uni/assets/index-NK4OvO4f.js +74 -0
- package/dist/uni/assets/{vue-router-BPElbjFz.js → vue-router-CbZ0Q__O.js} +1 -1
- package/dist/uni/index.html +3 -3
- package/package.json +12 -12
- package/src/.vtj/files/19sisjqn.json +134 -0
- package/src/.vtj/files/59sitlse.json +75 -0
- package/src/.vtj/histories/19sisjqn/29sisspz.json +125 -0
- package/src/.vtj/histories/19sisjqn/49sisvom.json +138 -0
- package/src/.vtj/histories/19sisjqn.json +13 -0
- package/src/.vtj/histories/59sitlse/29siy19o.json +68 -0
- package/src/.vtj/histories/59sitlse/49siy569.json +79 -0
- package/src/.vtj/histories/59sitlse/b9situxg.json +89 -0
- package/src/.vtj/histories/59sitlse/d9siu04b.json +102 -0
- package/src/.vtj/histories/59sitlse/f9siu2fm.json +120 -0
- package/src/.vtj/histories/59sitlse/g9siu5xn.json +42 -0
- package/src/.vtj/histories/59sitlse/i9siulxs.json +55 -0
- package/src/.vtj/histories/59sitlse.json +33 -0
- package/src/.vtj/materials/@vtj/pro.json +7832 -0
- package/src/.vtj/projects/@vtj/pro.json +264 -0
- package/dist/.vtj/gpt.gif +0 -0
- package/dist/assets/@vueuse-DQGZ4KR4.js +0 -1
- package/dist/assets/Editor-BYRlEJ7f-C5Cx8zyv.css +0 -1
- package/dist/assets/auth-BI3jjRhC.js +0 -1
- package/dist/assets/element-plus-ByPIA5X9.js +0 -13
- package/dist/assets/element-plus-DeBM2g7b.css +0 -1
- package/dist/assets/index-DcoapbuN.js +0 -1
- package/dist/assets/page-BVW4_EMo.js +0 -2
- package/dist/assets/preview-BsDp3_vl.js +0 -2
- package/dist/assets/uni-page-CHxZwhGN.js +0 -1
- package/dist/assets/utils-DY6MzNJy.js +0 -1
- package/dist/assets/vue-CWi9lEhc.js +0 -34
- package/dist/uni/assets/index-BJvCL257.js +0 -79
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var qe=Object.defineProperty,Ze=Object.defineProperties;var et=Object.getOwnPropertyDescriptors;var q=Object.getOwnPropertySymbols;var ye=Object.prototype.hasOwnProperty,we=Object.prototype.propertyIsEnumerable;var ge=(e,t,n)=>t in e?qe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,V=(e,t)=>{for(var n in t||(t={}))ye.call(t,n)&&ge(e,n,t[n]);if(q)for(var n of q(t))we.call(t,n)&&ge(e,n,t[n]);return e},Q=(e,t)=>Ze(e,et(t));var G=(e,t)=>{var n={};for(var r in e)ye.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&&we.call(e,r)&&(n[r]=e[r]);return n};import{g as Ie,b as De,s as M,w as Le,r as ne,e as b,f as x,h as P,u as ae,i as U,j as le,n as ce,k as te,l as be,m as fe,t as tt,p as nt,q as _,v as ze,x as rt}from"./vue-CEtC17Vu.js";var ot=Object.defineProperty,st=Object.defineProperties,it=Object.getOwnPropertyDescriptors,Oe=Object.getOwnPropertySymbols,ut=Object.prototype.hasOwnProperty,at=Object.prototype.propertyIsEnumerable,_e=(e,t,n)=>t in e?ot(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,lt=(e,t)=>{for(var n in t||(t={}))ut.call(t,n)&&_e(e,n,t[n]);if(Oe)for(var n of Oe(t))at.call(t,n)&&_e(e,n,t[n]);return e},ct=(e,t)=>st(e,it(t));function vn(e,t){var n;const r=M();return Le(()=>{r.value=e()},ct(lt({},t),{flush:(n=void 0)!=null?n:"sync"})),ne(r)}var Se;const re=typeof window!="undefined",ft=e=>typeof e!="undefined",ue=e=>typeof e=="function",dt=e=>typeof e=="string",j=()=>{},vt=re&&((Se=window==null?void 0:window.navigator)==null?void 0:Se.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function X(e){return typeof e=="function"?e():ae(e)}function Fe(e,t){function n(...r){return new Promise((o,s)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(o).catch(s)})}return n}function pt(e,t={}){let n,r,o=j;const s=i=>{clearTimeout(i),o(),o=j};return i=>{const a=X(e),f=X(t.maxWait);return n&&s(n),a<=0||f!==void 0&&f<=0?(r&&(s(r),r=null),Promise.resolve(i())):new Promise((v,l)=>{o=t.rejectOnCancel?l:v,f&&!r&&(r=setTimeout(()=>{n&&s(n),r=null,v(i())},f)),n=setTimeout(()=>{r&&s(r),r=null,v(i())},a)})}}function mt(e,t=!0,n=!0,r=!1){let o=0,s,u=!0,i=j,a;const f=()=>{s&&(clearTimeout(s),s=void 0,i(),i=j)};return l=>{const c=X(e),d=Date.now()-o,p=()=>a=l();return f(),c<=0?(o=Date.now(),p()):(d>c&&(n||!u)?(o=Date.now(),p()):t&&(a=new Promise((g,h)=>{i=r?h:g,s=setTimeout(()=>{o=Date.now(),u=!0,g(p()),f()},Math.max(0,c-d))})),!n&&!s&&(s=setTimeout(()=>u=!0,c)),u=!1,a)}}function ht(e){return e}function gt(e,t){let n,r,o;const s=b(!0),u=()=>{s.value=!0,o()};P(e,u,{flush:"sync"});const i=ue(t)?t:t.get,a=ue(t)?void 0:t.set,f=fe((v,l)=>(r=v,o=l,{get(){return s.value&&(n=i(),s.value=!1),r(),n},set(c){a==null||a(c)}}));return Object.isExtensible(f)&&(f.trigger=u),f}function K(e){return Ie()?(De(e),!0):!1}function yt(e){if(!te(e))return be(e);const t=new Proxy({},{get(n,r,o){return ae(Reflect.get(e.value,r,o))},set(n,r,o){return te(e.value[r])&&!te(o)?e.value[r].value=o:e.value[r]=o,!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 be(t)}function pn(e){return yt(x(e))}function wt(e,t=200,n={}){return Fe(pt(t,n),e)}function mn(e,t=200,n={}){const r=b(e.value),o=wt(()=>{r.value=e.value},t,n);return P(e,()=>o()),r}function hn(e,t=200,n=!1,r=!0,o=!1){return Fe(mt(t,n,r,o),e)}function de(e,t=!0){U()?le(e):t?e():ce(e)}function gn(e,t,n={}){const{immediate:r=!0}=n,o=b(!1);let s=null;function u(){s&&(clearTimeout(s),s=null)}function i(){o.value=!1,u()}function a(...f){u(),o.value=!0,s=setTimeout(()=>{o.value=!1,s=null,e(...f)},X(t))}return r&&(o.value=!0,re&&a()),K(i),{isPending:ne(o),start:a,stop:i}}function I(e){var t;const n=X(e);return(t=n==null?void 0:n.$el)!=null?t:n}const H=re?window:void 0,bt=re?window.document:void 0;function F(...e){let t,n,r,o;if(dt(e[0])||Array.isArray(e[0])?([n,r,o]=e,t=H):[t,n,r,o]=e,!t)return j;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const s=[],u=()=>{s.forEach(v=>v()),s.length=0},i=(v,l,c,d)=>(v.addEventListener(l,c,d),()=>v.removeEventListener(l,c,d)),a=P(()=>[I(t),X(o)],([v,l])=>{u(),v&&s.push(...n.flatMap(c=>r.map(d=>i(v,c,d,l))))},{immediate:!0,flush:"post"}),f=()=>{a(),u()};return K(f),f}let Ee=!1;function yn(e,t,n={}){const{window:r=H,ignore:o=[],capture:s=!0,detectIframe:u=!1}=n;if(!r)return;vt&&!Ee&&(Ee=!0,Array.from(r.document.body.children).forEach(c=>c.addEventListener("click",j)));let i=!0;const a=c=>o.some(d=>{if(typeof d=="string")return Array.from(r.document.querySelectorAll(d)).some(p=>p===c.target||c.composedPath().includes(p));{const p=I(d);return p&&(c.target===p||c.composedPath().includes(p))}}),v=[F(r,"click",c=>{const d=I(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:s}),F(r,"pointerdown",c=>{const d=I(e);d&&(i=!c.composedPath().includes(d)&&!a(c))},{passive:!0}),u&&F(r,"blur",c=>{var d;const p=I(e);((d=r.document.activeElement)==null?void 0:d.tagName)==="IFRAME"&&!(p!=null&&p.contains(r.document.activeElement))&&t(c)})].filter(Boolean);return()=>v.forEach(c=>c())}function wn(e={}){var t;const{window:n=H}=e,r=(t=e.document)!=null?t:n==null?void 0:n.document,o=gt(()=>null,()=>r==null?void 0:r.activeElement);return n&&(F(n,"blur",s=>{s.relatedTarget===null&&o.trigger()},!0),F(n,"focus",o.trigger,!0)),o}function ve(e,t=!1){const n=b(),r=()=>n.value=!!e();return r(),de(r,t),n}function Ot(e){return JSON.parse(JSON.stringify(e))}const xe=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},Pe="__vueuse_ssr_handlers__";xe[Pe]=xe[Pe]||{};function bn(e,t,{window:n=H,initialValue:r=""}={}){const o=b(r),s=x(()=>{var u;return I(t)||((u=n==null?void 0:n.document)==null?void 0:u.documentElement)});return P([s,()=>X(e)],([u,i])=>{var a;if(u&&n){const f=(a=n.getComputedStyle(u).getPropertyValue(i))==null?void 0:a.trim();o.value=f||r}},{immediate:!0}),P(o,u=>{var i;(i=s.value)!=null&&i.style&&s.value.style.setProperty(X(e),u)}),o}function On({document:e=bt}={}){if(!e)return b("visible");const t=b(e.visibilityState);return F(e,"visibilitychange",()=>{t.value=e.visibilityState}),t}var Te=Object.getOwnPropertySymbols,_t=Object.prototype.hasOwnProperty,St=Object.prototype.propertyIsEnumerable,Et=(e,t)=>{var n={};for(var r in e)_t.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Te)for(var r of Te(e))t.indexOf(r)<0&&St.call(e,r)&&(n[r]=e[r]);return n};function ke(e,t,n={}){const r=n,{window:o=H}=r,s=Et(r,["window"]);let u;const i=ve(()=>o&&"ResizeObserver"in o),a=()=>{u&&(u.disconnect(),u=void 0)},f=P(()=>I(e),l=>{a(),i.value&&o&&l&&(u=new ResizeObserver(t),u.observe(l,s))},{immediate:!0,flush:"post"}),v=()=>{a(),f()};return K(v),{isSupported:i,stop:v}}function _n(e,t={}){const{reset:n=!0,windowResize:r=!0,windowScroll:o=!0,immediate:s=!0}=t,u=b(0),i=b(0),a=b(0),f=b(0),v=b(0),l=b(0),c=b(0),d=b(0);function p(){const g=I(e);if(!g){n&&(u.value=0,i.value=0,a.value=0,f.value=0,v.value=0,l.value=0,c.value=0,d.value=0);return}const h=g.getBoundingClientRect();u.value=h.height,i.value=h.bottom,a.value=h.left,f.value=h.right,v.value=h.top,l.value=h.width,c.value=h.x,d.value=h.y}return ke(e,p),P(()=>I(e),g=>!g&&p()),o&&F("scroll",p,{capture:!0,passive:!0}),r&&F("resize",p,{passive:!0}),de(()=>{s&&p()}),{height:u,bottom:i,left:a,right:f,top:v,width:l,x:c,y:d,update:p}}function Sn(e,t={width:0,height:0},n={}){const{window:r=H,box:o="content-box"}=n,s=x(()=>{var a,f;return(f=(a=I(e))==null?void 0:a.namespaceURI)==null?void 0:f.includes("svg")}),u=b(t.width),i=b(t.height);return ke(e,([a])=>{const f=o==="border-box"?a.borderBoxSize:o==="content-box"?a.contentBoxSize:a.devicePixelContentBoxSize;if(r&&s.value){const v=I(e);if(v){const l=r.getComputedStyle(v);u.value=parseFloat(l.width),i.value=parseFloat(l.height)}}else if(f){const v=Array.isArray(f)?f:[f];u.value=v.reduce((l,{inlineSize:c})=>l+c,0),i.value=v.reduce((l,{blockSize:c})=>l+c,0)}else u.value=a.contentRect.width,i.value=a.contentRect.height},n),P(()=>I(e),a=>{u.value=a?t.width:0,i.value=a?t.height:0}),{width:u,height:i}}function En(e,t,n={}){const{root:r,rootMargin:o="0px",threshold:s=.1,window:u=H}=n,i=ve(()=>u&&"IntersectionObserver"in u);let a=j;const f=i.value?P(()=>({el:I(e),root:I(r)}),({el:l,root:c})=>{if(a(),!l)return;const d=new IntersectionObserver(t,{root:c,rootMargin:o,threshold:s});d.observe(l),a=()=>{d.disconnect(),a=j}},{immediate:!0,flush:"post"}):j,v=()=>{a(),f()};return K(v),{isSupported:i,stop:v}}var Ce=Object.getOwnPropertySymbols,xt=Object.prototype.hasOwnProperty,Pt=Object.prototype.propertyIsEnumerable,Tt=(e,t)=>{var n={};for(var r in e)xt.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Ce)for(var r of Ce(e))t.indexOf(r)<0&&Pt.call(e,r)&&(n[r]=e[r]);return n};function xn(e,t,n={}){const r=n,{window:o=H}=r,s=Tt(r,["window"]);let u;const i=ve(()=>o&&"MutationObserver"in o),a=()=>{u&&(u.disconnect(),u=void 0)},f=P(()=>I(e),l=>{a(),i.value&&o&&l&&(u=new MutationObserver(t),u.observe(l,s))},{immediate:!0}),v=()=>{a(),f()};return K(v),{isSupported:i,stop:v}}var Me;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(Me||(Me={}));var Ct=Object.defineProperty,We=Object.getOwnPropertySymbols,Mt=Object.prototype.hasOwnProperty,Wt=Object.prototype.propertyIsEnumerable,$e=(e,t,n)=>t in e?Ct(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,$t=(e,t)=>{for(var n in t||(t={}))Mt.call(t,n)&&$e(e,n,t[n]);if(We)for(var n of We(t))Wt.call(t,n)&&$e(e,n,t[n]);return e};const At={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:ht},At);function Pn(e,t,n,r={}){var o,s,u;const{clone:i=!1,passive:a=!1,eventName:f,deep:v=!1,defaultValue:l}=r,c=U(),d=n||(c==null?void 0:c.emit)||((o=c==null?void 0:c.$emit)==null?void 0:o.bind(c))||((u=(s=c==null?void 0:c.proxy)==null?void 0:s.$emit)==null?void 0:u.bind(c==null?void 0:c.proxy));let p=f;t||(t="modelValue"),p=f||p||`update:${t.toString()}`;const g=y=>i?ue(i)?i(y):Ot(y):y,h=()=>ft(e[t])?g(e[t]):l;if(a){const y=h(),O=b(y);return P(()=>e[t],E=>O.value=g(E)),P(O,E=>{(E!==e[t]||v)&&d(p,E)},{deep:v}),O}else return x({get(){return h()},set(y){d(p,y)}})}function Tn({window:e=H}={}){if(!e)return b(!1);const t=b(e.document.hasFocus());return F(e,"blur",()=>{t.value=!1}),F(e,"focus",()=>{t.value=!0}),t}function Cn(e={}){const{window:t=H,initialWidth:n=1/0,initialHeight:r=1/0,listenOrientation:o=!0,includeScrollbar:s=!0}=e,u=b(n),i=b(r),a=()=>{t&&(s?(u.value=t.innerWidth,i.value=t.innerHeight):(u.value=t.document.documentElement.clientWidth,i.value=t.document.documentElement.clientHeight))};return a(),de(a),F("resize",a,{passive:!0}),o&&F("orientationchange",a,{passive:!0}),{width:u,height:i}}function oe(e){return Ie()?(De(e),!0):!1}const ie=new WeakMap,Rt=(...e)=>{var t;const n=e[0],r=(t=U())==null?void 0:t.proxy;if(r==null&&!ze())throw new Error("injectLocal must be called in setup");return r&&ie.has(r)&&n in ie.get(r)?ie.get(r)[n]:rt(...e)},pe=typeof window!="undefined"&&typeof document!="undefined";typeof WorkerGlobalScope!="undefined"&&globalThis instanceof WorkerGlobalScope;const It=e=>e!=null,Dt=Object.prototype.toString,Lt=e=>Dt.call(e)==="[object Object]",zt=()=>{};function me(...e){if(e.length!==1)return tt(...e);const t=e[0];return typeof t=="function"?ne(fe(()=>({get:t,set:zt}))):b(t)}function Ft(e,t){function n(...r){return new Promise((o,s)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(o).catch(s)})}return n}const Ne=e=>e();function kt(e=Ne,t={}){const{initialState:n="active"}=t,r=me(n==="active");function o(){r.value=!1}function s(){r.value=!0}const u=(...i)=>{r.value&&e(...i)};return{isActive:ne(r),pause:o,resume:s,eventFilter:u}}function Ae(e){return e.endsWith("rem")?Number.parseFloat(e)*16:Number.parseFloat(e)}function J(e){return Array.isArray(e)?e:[e]}function Nt(e){return U()}function Vt(e,t,n={}){const s=n,{eventFilter:r=Ne}=s,o=G(s,["eventFilter"]);return P(e,Ft(r,t),o)}function Bt(e,t,n={}){const l=n,{eventFilter:r,initialState:o="active"}=l,s=G(l,["eventFilter","initialState"]),{eventFilter:u,pause:i,resume:a,isActive:f}=kt(r,{initialState:o});return{stop:Vt(e,t,Q(V({},s),{eventFilter:u})),pause:i,resume:a,isActive:f}}function Ht(e,t={}){if(!te(e))return nt(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(o){var s;if((s=_(t.replaceRef))!=null?s:!0)if(Array.isArray(e.value)){const i=[...e.value];i[r]=o,e.value=i}else{const i=Q(V({},e.value),{[r]:o});Object.setPrototypeOf(i,Object.getPrototypeOf(e.value)),e.value=i}else e.value[r]=o}}));return n}function se(e,t=!0,n){Nt()?le(e,n):t?e():ce(e)}function jt(e,t,n){return P(e,t,Q(V({},n),{immediate:!0}))}const N=pe?window:void 0,Xt=pe?window.document:void 0;function B(e){var t;const n=_(e);return(t=n==null?void 0:n.$el)!=null?t:n}function z(...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)),o=x(()=>{const i=J(_(e[0])).filter(a=>a!=null);return i.every(a=>typeof a!="string")?i:void 0}),s=jt(()=>{var i,a;return[(a=(i=o.value)==null?void 0:i.map(f=>B(f)))!=null?a:[N].filter(f=>f!=null),J(_(o.value?e[1]:e[0])),J(ae(o.value?e[2]:e[1])),_(o.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=Lt(v)?V({},v):v;t.push(...i.flatMap(c=>a.flatMap(d=>f.map(p=>r(c,d,p,l)))))},{flush:"post"}),u=()=>{s(),n()};return oe(n),u}function Yt(){const e=M(!1),t=U();return t&&le(()=>{e.value=!0},t),e}function he(e){const t=Yt();return x(()=>(t.value,!!e()))}function Ve(e,t,n={}){const c=n,{window:r=N}=c,o=G(c,["window"]);let s;const u=he(()=>r&&"MutationObserver"in r),i=()=>{s&&(s.disconnect(),s=void 0)},a=x(()=>{const d=_(e),p=J(d).map(B).filter(It);return new Set(p)}),f=P(a,d=>{i(),u.value&&d.size&&(s=new MutationObserver(t),d.forEach(p=>s.observe(p,o)))},{immediate:!0,flush:"post"}),v=()=>s==null?void 0:s.takeRecords(),l=()=>{f(),i()};return oe(l),{isSupported:u,stop:l,takeRecords:v}}const Qt=Symbol("vueuse-ssr-width");function Gt(){const e=ze()?Rt(Qt,null):null;return typeof e=="number"?e:void 0}function Jt(e,t={}){const{window:n=N,ssrWidth:r=Gt()}=t,o=he(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function"),s=M(typeof r=="number"),u=M(),i=M(!1),a=f=>{i.value=f.matches};return Le(()=>{if(s.value){s.value=!o.value;const f=_(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 p=!!(c||d);return c&&p&&(p=r>=Ae(c[1])),d&&p&&(p=r<=Ae(d[1])),l?!p:p});return}o.value&&(u.value=n.matchMedia(_(e)),i.value=u.value.matches)}),z(u,"change",a,{passive:!0}),x(()=>i.value)}const Z=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},ee="__vueuse_ssr_handlers__",Ut=Kt();function Kt(){return ee in Z||(Z[ee]=Z[ee]||{}),Z[ee]}function Be(e,t){return Ut[e]||t}function qt(e){return Jt("(prefers-color-scheme: dark)",e)}function Zt(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 en={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()}},Re="vueuse-storage";function tn(e,t,n,r={}){var o;const{flush:s="pre",deep:u=!0,listenToStorageChanges:i=!0,writeDefaults:a=!0,mergeDefaults:f=!1,shallow:v,window:l=N,eventFilter:c,onError:d=w=>{console.error(w)},initOnMounted:p}=r,g=(v?M:b)(typeof t=="function"?t():t),h=x(()=>_(e));if(!n)try{n=Be("getDefaultStorage",()=>{var w;return(w=N)==null?void 0:w.localStorage})()}catch(w){d(w)}if(!n)return g;const y=_(t),O=Zt(y),E=(o=r.serializer)!=null?o:en[O],{pause:$,resume:W}=Bt(g,w=>A(w),{flush:s,deep:u,eventFilter:c});P(h,()=>L(),{flush:s});let D=!1;const m=w=>{p&&!D||L(w)},S=w=>{p&&!D||Y(w)};l&&i&&(n instanceof Storage?z(l,"storage",m,{passive:!0}):z(l,Re,S)),p?se(()=>{D=!0,L()}):L();function T(w,R){if(l){const k={key:h.value,oldValue:w,newValue:R,storageArea:n};l.dispatchEvent(n instanceof Storage?new StorageEvent("storage",k):new CustomEvent(Re,{detail:k}))}}function A(w){try{const R=n.getItem(h.value);if(w==null)T(R,null),n.removeItem(h.value);else{const k=E.write(w);R!==k&&(n.setItem(h.value,k),T(R,k))}}catch(R){d(R)}}function C(w){const R=w?w.newValue:n.getItem(h.value);if(R==null)return a&&y!=null&&n.setItem(h.value,E.write(y)),y;if(!w&&f){const k=E.read(R);return typeof f=="function"?f(k,y):O==="object"&&!Array.isArray(k)?V(V({},y),k):k}else return typeof R!="string"?R:E.read(R)}function L(w){if(!(w&&w.storageArea!==n)){if(w&&w.key==null){g.value=y;return}if(!(w&&w.key!==h.value)){$();try{const R=E.write(g.value);(w===void 0||(w==null?void 0:w.newValue)!==R)&&(g.value=C(w))}catch(R){d(R)}finally{w?ce(W):W()}}}}function Y(w){L(w.detail)}return g}const nn="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function rn(e={}){const{selector:t="html",attribute:n="class",initialValue:r="auto",window:o=N,storage:s,storageKey:u="vueuse-color-scheme",listenToStorageChanges:i=!0,storageRef:a,emitAuto:f,disableTransition:v=!0}=e,l=V({auto:"",light:"light",dark:"dark"},e.modes||{}),c=qt({window:o}),d=x(()=>c.value?"dark":"light"),p=a||(u==null?me(r):tn(u,r,s,{window:o,listenToStorageChanges:i})),g=x(()=>p.value==="auto"?d.value:p.value),h=Be("updateHTMLAttrs",($,W,D)=>{const m=typeof $=="string"?o==null?void 0:o.document.querySelector($):B($);if(!m)return;const S=new Set,T=new Set;let A=null;if(W==="class"){const L=D.split(/\s/g);Object.values(l).flatMap(Y=>(Y||"").split(/\s/g)).filter(Boolean).forEach(Y=>{L.includes(Y)?S.add(Y):T.add(Y)})}else A={key:W,value:D};if(S.size===0&&T.size===0&&A===null)return;let C;v&&(C=o.document.createElement("style"),C.appendChild(document.createTextNode(nn)),o.document.head.appendChild(C));for(const L of S)m.classList.add(L);for(const L of T)m.classList.remove(L);A&&m.setAttribute(A.key,A.value),v&&(o.getComputedStyle(C).opacity,document.head.removeChild(C))});function y($){var W;h(t,n,(W=l[$])!=null?W:$)}function O($){e.onChanged?e.onChanged($,y):y($)}P(g,O,{flush:"post",immediate:!0}),se(()=>O(g.value));const E=x({get(){return f?p.value:g.value},set($){p.value=$}});return Object.assign(E,{store:p,system:d,state:g})}function Mn(e={}){const{valueDark:t="dark",valueLight:n=""}=e,r=rn(Q(V({},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}})),o=x(()=>r.system.value);return x({get(){return r.value==="dark"},set(u){const i=u?"dark":"light";o.value===i?r.value="auto":r.value=i}})}function Wn(e,t={}){var n;const{pointerTypes:r,preventDefault:o,stopPropagation:s,exact:u,onMove:i,onEnd:a,onStart:f,initialValue:v,axis:l="both",draggingElement:c=N,containerElement:d,handle:p=e,buttons:g=[0]}=t,h=b((n=_(v))!=null?n:{x:0,y:0}),y=b(),O=m=>r?r.includes(m.pointerType):!0,E=m=>{_(o)&&m.preventDefault(),_(s)&&m.stopPropagation()},$=m=>{var S;if(!_(g).includes(m.button)||_(t.disabled)||!O(m)||_(u)&&m.target!==_(e))return;const T=_(d),A=(S=T==null?void 0:T.getBoundingClientRect)==null?void 0:S.call(T),C=_(e).getBoundingClientRect(),L={x:m.clientX-(T?C.left-A.left+T.scrollLeft:C.left),y:m.clientY-(T?C.top-A.top+T.scrollTop:C.top)};(f==null?void 0:f(L,m))!==!1&&(y.value=L,E(m))},W=m=>{if(_(t.disabled)||!O(m)||!y.value)return;const S=_(d),T=_(e).getBoundingClientRect();let{x:A,y:C}=h.value;(l==="x"||l==="both")&&(A=m.clientX-y.value.x,S&&(A=Math.min(Math.max(0,A),S.scrollWidth-T.width))),(l==="y"||l==="both")&&(C=m.clientY-y.value.y,S&&(C=Math.min(Math.max(0,C),S.scrollHeight-T.height))),h.value={x:A,y:C},i==null||i(h.value,m),E(m)},D=m=>{_(t.disabled)||!O(m)||y.value&&(y.value=void 0,a==null||a(h.value,m),E(m))};if(pe){const m=()=>{var S;return{capture:(S=t.capture)!=null?S:!0,passive:!_(o)}};z(p,"pointerdown",$,m),z(c,"pointermove",W,m),z(c,"pointerup",D,m)}return Q(V({},Ht(h)),{position:h,isDragging:x(()=>!!y.value),style:x(()=>`left:${h.value.x}px;top:${h.value.y}px;`)})}function He(e,t,n={}){const l=n,{window:r=N}=l,o=G(l,["window"]);let s;const u=he(()=>r&&"ResizeObserver"in r),i=()=>{s&&(s.disconnect(),s=void 0)},a=x(()=>{const c=_(e);return Array.isArray(c)?c.map(d=>B(d)):[B(c)]}),f=P(a,c=>{if(i(),u.value&&r){s=new ResizeObserver(t);for(const d of c)d&&s.observe(d,o)}},{immediate:!0,flush:"post"}),v=()=>{i(),f()};return oe(v),{isSupported:u,stop:v}}function on(e,t={width:0,height:0},n={}){const{window:r=N,box:o="content-box"}=n,s=x(()=>{var l,c;return(c=(l=B(e))==null?void 0:l.namespaceURI)==null?void 0:c.includes("svg")}),u=M(t.width),i=M(t.height),{stop:a}=He(e,([l])=>{const c=o==="border-box"?l.borderBoxSize:o==="content-box"?l.contentBoxSize:l.devicePixelContentBoxSize;if(r&&s.value){const d=B(e);if(d){const p=d.getBoundingClientRect();u.value=p.width,i.value=p.height}}else if(c){const d=J(c);u.value=d.reduce((p,{inlineSize:g})=>p+g,0),i.value=d.reduce((p,{blockSize:g})=>p+g,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=P(()=>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 sn={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 un(e={}){const{type:t="page",touch:n=!0,resetOnTouchEnds:r=!1,initialValue:o={x:0,y:0},window:s=N,target:u=s,scroll:i=!0,eventFilter:a}=e;let f=null,v=0,l=0;const c=M(o.x),d=M(o.y),p=M(null),g=typeof t=="function"?t:sn[t],h=m=>{const S=g(m);f=m,S&&([c.value,d.value]=S,p.value="mouse"),s&&(v=s.scrollX,l=s.scrollY)},y=m=>{if(m.touches.length>0){const S=g(m.touches[0]);S&&([c.value,d.value]=S,p.value="touch")}},O=()=>{if(!f||!s)return;const m=g(f);f instanceof MouseEvent&&m&&(c.value=m[0]+s.scrollX-v,d.value=m[1]+s.scrollY-l)},E=()=>{c.value=o.x,d.value=o.y},$=a?m=>a(()=>h(m),{}):m=>h(m),W=a?m=>a(()=>y(m),{}):m=>y(m),D=a?()=>a(()=>O(),{}):()=>O();if(u){const m={passive:!0};z(u,["mousemove","dragover"],$,m),n&&t!=="movement"&&(z(u,["touchstart","touchmove"],W,m),r&&z(u,"touchend",E,m)),i&&t==="page"&&z(s,"scroll",D,m)}return{x:c,y:d,sourceType:p}}function $n(e,t={}){const{windowResize:n=!0,windowScroll:r=!0,handleOutside:o=!0,window:s=N}=t,u=t.type||"page",{x:i,y:a,sourceType:f}=un(t),v=M(e!=null?e:s==null?void 0:s.document.body),l=M(0),c=M(0),d=M(0),p=M(0),g=M(0),h=M(0),y=M(!0);function O(){if(!s)return;const W=B(v);if(!W||!(W instanceof Element))return;const{left:D,top:m,width:S,height:T}=W.getBoundingClientRect();d.value=D+(u==="page"?s.pageXOffset:0),p.value=m+(u==="page"?s.pageYOffset:0),g.value=T,h.value=S;const A=i.value-d.value,C=a.value-p.value;y.value=S===0||T===0||A<0||C<0||A>S||C>T,(o||!y.value)&&(l.value=A,c.value=C)}const E=[];function $(){E.forEach(W=>W()),E.length=0}if(se(()=>{O()}),s){const{stop:W}=He(v,O),{stop:D}=Ve(v,O,{attributeFilter:["style","class"]}),m=P([v,i,a],O);E.push(W,D,m),z(document,"mouseleave",()=>y.value=!0,{passive:!0}),r&&E.push(z("scroll",O,{capture:!0,passive:!0})),n&&E.push(z("resize",O,{passive:!0}))}return{x:i,y:a,sourceType:f,elementX:l,elementY:c,elementPositionX:d,elementPositionY:p,elementHeight:g,elementWidth:h,isOutside:y,stop:$}}function An(e=null,t={}){var n,r,o;const{document:s=Xt,restoreOnUnmount:u=l=>l}=t,i=(n=s==null?void 0:s.title)!=null?n:"",a=me((r=e!=null?e:s==null?void 0:s.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):_(c).replace(/%s/g,l)}return P(a,(l,c)=>{l!==c&&s&&(s.title=v(l!=null?l:""))},{immediate:!0}),t.observe&&!t.titleTemplate&&s&&!f&&Ve((o=s.head)==null?void 0:o.querySelector("title"),()=>{s&&s.title!==a.value&&(a.value=v(s.title))},{childList:!0}),oe(()=>{if(u){const l=u(i,a.value||"");l!=null&&s&&(s.title=l)}}),a}function Rn(e,t){const{containerStyle:n,wrapperProps:r,scrollTo:o,calculateRange:s,currentList:u,containerRef:i}="itemHeight"in t?cn(t,e):ln(t,e);return{list:u,scrollTo:o,containerProps:{ref:i,onScroll:()=>{s()},style:n},wrapperProps:r}}function je(e){const t=M(null),n=on(t),r=b([]),o=M(e);return{state:b({start:0,end:10}),source:o,currentList:r,size:n,containerRef:t}}function Xe(e,t,n){return r=>{if(typeof n=="number")return Math.ceil(r/n);const{start:o=0}=e.value;let s=0,u=0;for(let i=o;i<t.value.length;i++){const a=n(i);if(s+=a,u=i,s>r)break}return u-o}}function Ye(e,t){return n=>{if(typeof t=="number")return Math.floor(n/t)+1;let r=0,o=0;for(let s=0;s<e.value.length;s++){const u=t(s);if(r+=u,r>=n){o=s;break}}return o+1}}function Qe(e,t,n,r,{containerRef:o,state:s,currentList:u,source:i}){return()=>{const a=o.value;if(a){const f=n(e==="vertical"?a.scrollTop:a.scrollLeft),v=r(e==="vertical"?a.clientHeight:a.clientWidth),l=f-t,c=f+v+t;s.value={start:l<0?0:l,end:c>i.value.length?i.value.length:c},u.value=i.value.slice(s.value.start,s.value.end).map((d,p)=>({data:d,index:p+s.value.start}))}}}function Ge(e,t){return n=>typeof e=="number"?n*e:t.value.slice(0,n).reduce((o,s,u)=>o+e(u),0)}function Je(e,t,n,r){P([e.width,e.height,()=>_(t),n],()=>{r()})}function Ue(e,t){return x(()=>typeof e=="number"?t.value.length*e:t.value.reduce((n,r,o)=>n+e(o),0))}const an={horizontal:"scrollLeft",vertical:"scrollTop"};function Ke(e,t,n,r){return o=>{r.value&&(r.value[an[e]]=n(o),t())}}function ln(e,t){const n=je(t),{state:r,source:o,currentList:s,size:u,containerRef:i}=n,a={overflowX:"auto"},{itemWidth:f,overscan:v=5}=e,l=Xe(r,o,f),c=Ye(o,f),d=Qe("horizontal",v,c,l,n),p=Ge(f,o),g=x(()=>p(r.value.start)),h=Ue(f,o);Je(u,t,i,d);const y=Ke("horizontal",d,p,i),O=x(()=>({style:{height:"100%",width:`${h.value-g.value}px`,marginLeft:`${g.value}px`,display:"flex"}}));return{scrollTo:y,calculateRange:d,wrapperProps:O,containerStyle:a,currentList:s,containerRef:i}}function cn(e,t){const n=je(t),{state:r,source:o,currentList:s,size:u,containerRef:i}=n,a={overflowY:"auto"},{itemHeight:f,overscan:v=5}=e,l=Xe(r,o,f),c=Ye(o,f),d=Qe("vertical",v,c,l,n),p=Ge(f,o),g=x(()=>p(r.value.start)),h=Ue(f,o);Je(u,t,i,d);const y=Ke("vertical",d,p,i),O=x(()=>({style:{width:"100%",height:`${h.value-g.value}px`,marginTop:`${g.value}px`}}));return{calculateRange:d,scrollTo:y,containerStyle:a,wrapperProps:O,currentList:s,containerRef:i}}export{Rn as A,on as B,Mn as C,_n as a,F as b,vn as c,ke as d,I as e,hn as f,bn as g,gn as h,re as i,Sn as j,mn as k,En as l,vt as m,xn as n,yn as o,On as p,Tn as q,pn as r,Pn as s,K as t,Cn as u,wn as v,An as w,Wn as x,$n as y,z};
|