@vtj/pro 0.8.124 → 0.8.126
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/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 +2 -2
- package/dist/@vtj/materials/assets/ui/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 +3 -3
- package/dist/@vtj/materials/deps/@vtj/ui/style.css +1 -1
- package/dist/@vtj/materials/deps/@vtj/utils/index.umd.js +2 -2
- 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 +18 -18
- package/dist/@vtj/materials/deps/element-plus/zh-cn.js +1 -1
- package/dist/assets/@vueuse-D9gJRfA2.js +1 -0
- package/dist/assets/element-plus-CsJRdetr.css +1 -0
- package/dist/assets/element-plus-DUtxLjC2.js +21 -0
- package/dist/assets/extension-BR6-jc07.css +1 -0
- package/dist/assets/{extension-B4MF_ixk.js → extension-B_V2ZADl.js} +40 -40
- package/dist/assets/{index-DXdgGSQO.js → index-CerTZW1O.js} +1 -1
- package/dist/assets/{index-Dq8r5WU-.js → index-Dz1QOB6L.js} +2 -2
- package/dist/assets/{preview-BgyTDd8U.js → preview-PR8KbQ0A.js} +2 -2
- package/dist/index.html +6 -6
- package/package.json +11 -11
- package/dist/assets/@vueuse-zGbfkf2A.js +0 -1
- package/dist/assets/element-plus-DU0Dpdeo.js +0 -21
- package/dist/assets/element-plus-Dgd-zvcI.css +0 -1
- package/dist/assets/extension-D6LNxls-.css +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var ze=Object.defineProperty,ke=Object.defineProperties;var je=Object.getOwnPropertyDescriptors;var B=Object.getOwnPropertySymbols;var ae=Object.prototype.hasOwnProperty,ue=Object.prototype.propertyIsEnumerable;var ie=(e,t,n)=>t in e?ze(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,F=(e,t)=>{for(var n in t||(t={}))ae.call(t,n)&&ie(e,n,t[n]);if(B)for(var n of B(t))ue.call(t,n)&&ie(e,n,t[n]);return e},j=(e,t)=>ke(e,je(t));var X=(e,t)=>{var n={};for(var r in e)ae.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&B)for(var r of B(e))t.indexOf(r)<0&&ue.call(e,r)&&(n[r]=e[r]);return n};import{g as Oe,b as _e,u as Se,r as g,e as J,s as Z,w as Ee,f as A,h as ee,i as G,j as te,n as ne,k as C,l as Be,t as Xe,m as Ye}from"./@vue-CdxkCeWA.js";var Qe=Object.defineProperty,Je=Object.defineProperties,Ge=Object.getOwnPropertyDescriptors,le=Object.getOwnPropertySymbols,Ue=Object.prototype.hasOwnProperty,Ke=Object.prototype.propertyIsEnumerable,ce=(e,t,n)=>t in e?Qe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,qe=(e,t)=>{for(var n in t||(t={}))Ue.call(t,n)&&ce(e,n,t[n]);if(le)for(var n of le(t))Ke.call(t,n)&&ce(e,n,t[n]);return e},Ze=(e,t)=>Je(e,Ge(t));function Gt(e,t){var n;const r=Z();return Ee(()=>{r.value=e()},Ze(qe({},t),{flush:(n=void 0)!=null?n:"sync"})),J(r)}var fe;const U=typeof window!="undefined",et=e=>typeof e!="undefined",q=e=>typeof e=="function",tt=e=>typeof e=="string",k=()=>{},nt=U&&((fe=window==null?void 0:window.navigator)==null?void 0:fe.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function H(e){return typeof e=="function"?e():Se(e)}function Pe(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 rt(e,t={}){let n,r,o=k;const s=i=>{clearTimeout(i),o(),o=k};return i=>{const l=H(e),f=H(t.maxWait);return n&&s(n),l<=0||f!==void 0&&f<=0?(r&&(s(r),r=null),Promise.resolve(i())):new Promise((v,c)=>{o=t.rejectOnCancel?c:v,f&&!r&&(r=setTimeout(()=>{n&&s(n),r=null,v(i())},f)),n=setTimeout(()=>{r&&s(r),r=null,v(i())},l)})}}function ot(e,t=!0,n=!0,r=!1){let o=0,s,a=!0,i=k,l;const f=()=>{s&&(clearTimeout(s),s=void 0,i(),i=k)};return c=>{const u=H(e),d=Date.now()-o,p=()=>l=c();return f(),u<=0?(o=Date.now(),p()):(d>u&&(n||!a)?(o=Date.now(),p()):t&&(l=new Promise((h,w)=>{i=r?w:h,s=setTimeout(()=>{o=Date.now(),a=!0,h(p()),f()},Math.max(0,u-d))})),!n&&!s&&(s=setTimeout(()=>a=!0,u)),a=!1,l)}}function st(e){return e}function it(e,t){let n,r,o;const s=g(!0),a=()=>{s.value=!0,o()};A(e,a,{flush:"sync"});const i=q(t)?t:t.get,l=q(t)?void 0:t.set,f=ee((v,c)=>(r=v,o=c,{get(){return s.value&&(n=i(),s.value=!1),r(),n},set(u){l==null||l(u)}}));return Object.isExtensible(f)&&(f.trigger=a),f}function K(e){return Oe()?(_e(e),!0):!1}function at(e,t=200,n={}){return Pe(rt(t,n),e)}function Ut(e,t=200,n={}){const r=g(e.value),o=at(()=>{r.value=e.value},t,n);return A(e,()=>o()),r}function Kt(e,t=200,n=!1,r=!0,o=!1){return Pe(ot(t,n,r,o),e)}function re(e,t=!0){G()?te(e):t?e():ne(e)}function qt(e,t,n={}){const{immediate:r=!0}=n,o=g(!1);let s=null;function a(){s&&(clearTimeout(s),s=null)}function i(){o.value=!1,a()}function l(...f){a(),o.value=!0,s=setTimeout(()=>{o.value=!1,s=null,e(...f)},H(t))}return r&&(o.value=!0,U&&l()),K(i),{isPending:J(o),start:l,stop:i}}function W(e){var t;const n=H(e);return(t=n==null?void 0:n.$el)!=null?t:n}const z=U?window:void 0,ut=U?window.document:void 0;function R(...e){let t,n,r,o;if(tt(e[0])||Array.isArray(e[0])?([n,r,o]=e,t=z):[t,n,r,o]=e,!t)return k;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const s=[],a=()=>{s.forEach(v=>v()),s.length=0},i=(v,c,u,d)=>(v.addEventListener(c,u,d),()=>v.removeEventListener(c,u,d)),l=A(()=>[W(t),H(o)],([v,c])=>{a(),v&&s.push(...n.flatMap(u=>r.map(d=>i(v,u,d,c))))},{immediate:!0,flush:"post"}),f=()=>{l(),a()};return K(f),f}let de=!1;function Zt(e,t,n={}){const{window:r=z,ignore:o=[],capture:s=!0,detectIframe:a=!1}=n;if(!r)return;nt&&!de&&(de=!0,Array.from(r.document.body.children).forEach(u=>u.addEventListener("click",k)));let i=!0;const l=u=>o.some(d=>{if(typeof d=="string")return Array.from(r.document.querySelectorAll(d)).some(p=>p===u.target||u.composedPath().includes(p));{const p=W(d);return p&&(u.target===p||u.composedPath().includes(p))}}),v=[R(r,"click",u=>{const d=W(e);if(!(!d||d===u.target||u.composedPath().includes(d))){if(u.detail===0&&(i=!l(u)),!i){i=!0;return}t(u)}},{passive:!0,capture:s}),R(r,"pointerdown",u=>{const d=W(e);d&&(i=!u.composedPath().includes(d)&&!l(u))},{passive:!0}),a&&R(r,"blur",u=>{var d;const p=W(e);((d=r.document.activeElement)==null?void 0:d.tagName)==="IFRAME"&&!(p!=null&&p.contains(r.document.activeElement))&&t(u)})].filter(Boolean);return()=>v.forEach(u=>u())}function en(e={}){var t;const{window:n=z}=e,r=(t=e.document)!=null?t:n==null?void 0:n.document,o=it(()=>null,()=>r==null?void 0:r.activeElement);return n&&(R(n,"blur",s=>{s.relatedTarget===null&&o.trigger()},!0),R(n,"focus",o.trigger,!0)),o}function Te(e,t=!1){const n=g(),r=()=>n.value=!!e();return r(),re(r,t),n}function lt(e){return JSON.parse(JSON.stringify(e))}const ve=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},pe="__vueuse_ssr_handlers__";ve[pe]=ve[pe]||{};function tn(e,t,{window:n=z,initialValue:r=""}={}){const o=g(r),s=C(()=>{var a;return W(t)||((a=n==null?void 0:n.document)==null?void 0:a.documentElement)});return A([s,()=>H(e)],([a,i])=>{var l;if(a&&n){const f=(l=n.getComputedStyle(a).getPropertyValue(i))==null?void 0:l.trim();o.value=f||r}},{immediate:!0}),A(o,a=>{var i;(i=s.value)!=null&&i.style&&s.value.style.setProperty(H(e),a)}),o}function nn({document:e=ut}={}){if(!e)return g("visible");const t=g(e.visibilityState);return R(e,"visibilitychange",()=>{t.value=e.visibilityState}),t}var me=Object.getOwnPropertySymbols,ct=Object.prototype.hasOwnProperty,ft=Object.prototype.propertyIsEnumerable,dt=(e,t)=>{var n={};for(var r in e)ct.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&&ft.call(e,r)&&(n[r]=e[r]);return n};function vt(e,t,n={}){const r=n,{window:o=z}=r,s=dt(r,["window"]);let a;const i=Te(()=>o&&"ResizeObserver"in o),l=()=>{a&&(a.disconnect(),a=void 0)},f=A(()=>W(e),c=>{l(),i.value&&o&&c&&(a=new ResizeObserver(t),a.observe(c,s))},{immediate:!0,flush:"post"}),v=()=>{l(),f()};return K(v),{isSupported:i,stop:v}}function rn(e,t={}){const{reset:n=!0,windowResize:r=!0,windowScroll:o=!0,immediate:s=!0}=t,a=g(0),i=g(0),l=g(0),f=g(0),v=g(0),c=g(0),u=g(0),d=g(0);function p(){const h=W(e);if(!h){n&&(a.value=0,i.value=0,l.value=0,f.value=0,v.value=0,c.value=0,u.value=0,d.value=0);return}const w=h.getBoundingClientRect();a.value=w.height,i.value=w.bottom,l.value=w.left,f.value=w.right,v.value=w.top,c.value=w.width,u.value=w.x,d.value=w.y}return vt(e,p),A(()=>W(e),h=>!h&&p()),o&&R("scroll",p,{capture:!0,passive:!0}),r&&R("resize",p,{passive:!0}),re(()=>{s&&p()}),{height:a,bottom:i,left:l,right:f,top:v,width:c,x:u,y:d,update:p}}var he=Object.getOwnPropertySymbols,pt=Object.prototype.hasOwnProperty,mt=Object.prototype.propertyIsEnumerable,ht=(e,t)=>{var n={};for(var r in e)pt.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&he)for(var r of he(e))t.indexOf(r)<0&&mt.call(e,r)&&(n[r]=e[r]);return n};function on(e,t,n={}){const r=n,{window:o=z}=r,s=ht(r,["window"]);let a;const i=Te(()=>o&&"MutationObserver"in o),l=()=>{a&&(a.disconnect(),a=void 0)},f=A(()=>W(e),c=>{l(),i.value&&o&&c&&(a=new MutationObserver(t),a.observe(c,s))},{immediate:!0}),v=()=>{l(),f()};return K(v),{isSupported:i,stop:v}}var ge;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(ge||(ge={}));var gt=Object.defineProperty,ye=Object.getOwnPropertySymbols,yt=Object.prototype.hasOwnProperty,wt=Object.prototype.propertyIsEnumerable,we=(e,t,n)=>t in e?gt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,bt=(e,t)=>{for(var n in t||(t={}))yt.call(t,n)&&we(e,n,t[n]);if(ye)for(var n of ye(t))wt.call(t,n)&&we(e,n,t[n]);return e};const Ot={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]};bt({linear:st},Ot);function sn(e,t,n,r={}){var o,s,a;const{clone:i=!1,passive:l=!1,eventName:f,deep:v=!1,defaultValue:c}=r,u=G(),d=n||(u==null?void 0:u.emit)||((o=u==null?void 0:u.$emit)==null?void 0:o.bind(u))||((a=(s=u==null?void 0:u.proxy)==null?void 0:s.$emit)==null?void 0:a.bind(u==null?void 0:u.proxy));let p=f;t||(t="modelValue"),p=f||p||`update:${t.toString()}`;const h=O=>i?q(i)?i(O):lt(O):O,w=()=>et(e[t])?h(e[t]):c;if(l){const O=w(),S=g(O);return A(()=>e[t],x=>S.value=h(x)),A(S,x=>{(x!==e[t]||v)&&d(p,x)},{deep:v}),S}else return C({get(){return w()},set(O){d(p,O)}})}function an({window:e=z}={}){if(!e)return g(!1);const t=g(e.document.hasFocus());return R(e,"blur",()=>{t.value=!1}),R(e,"focus",()=>{t.value=!0}),t}function un(e={}){const{window:t=z,initialWidth:n=1/0,initialHeight:r=1/0,listenOrientation:o=!0,includeScrollbar:s=!0}=e,a=g(n),i=g(r),l=()=>{t&&(s?(a.value=t.innerWidth,i.value=t.innerHeight):(a.value=t.document.documentElement.clientWidth,i.value=t.document.documentElement.clientHeight))};return l(),re(l),R("resize",l,{passive:!0}),o&&R("orientationchange",l,{passive:!0}),{width:a,height:i}}function oe(e){return Oe()?(_e(e),!0):!1}function T(e){return typeof e=="function"?e():Se(e)}const xe=typeof window!="undefined"&&typeof document!="undefined";typeof WorkerGlobalScope!="undefined"&&globalThis instanceof WorkerGlobalScope;const _t=Object.prototype.toString,St=e=>_t.call(e)==="[object Object]",Ce=()=>{};function Et(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 Ae=e=>e();function Pt(e=Ae){const t=g(!0);function n(){t.value=!1}function r(){t.value=!0}const o=(...s)=>{t.value&&e(...s)};return{isActive:J(t),pause:n,resume:r,eventFilter:o}}function Tt(e){return G()}function xt(...e){if(e.length!==1)return Ye(...e);const t=e[0];return typeof t=="function"?J(ee(()=>({get:t,set:Ce}))):g(t)}function Ct(e,t,n={}){const s=n,{eventFilter:r=Ae}=s,o=X(s,["eventFilter"]);return A(e,Et(r,t),o)}function At(e,t,n={}){const v=n,{eventFilter:r}=v,o=X(v,["eventFilter"]),{eventFilter:s,pause:a,resume:i,isActive:l}=Pt(r);return{stop:Ct(e,t,j(F({},o),{eventFilter:s})),pause:a,resume:i,isActive:l}}function $t(e,t={}){if(!Be(e))return Xe(e);const n=Array.isArray(e.value)?Array.from({length:e.value.length}):{};for(const r in e.value)n[r]=ee(()=>({get(){return e.value[r]},set(o){var s;if((s=T(t.replaceRef))!=null?s:!0)if(Array.isArray(e.value)){const i=[...e.value];i[r]=o,e.value=i}else{const i=j(F({},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){Tt()?te(e,n):t?e():ne(e)}function V(e){var t;const n=T(e);return(t=n==null?void 0:n.$el)!=null?t:n}const D=xe?window:void 0;function I(...e){let t,n,r,o;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,r,o]=e,t=D):[t,n,r,o]=e,!t)return Ce;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const s=[],a=()=>{s.forEach(v=>v()),s.length=0},i=(v,c,u,d)=>(v.addEventListener(c,u,d),()=>v.removeEventListener(c,u,d)),l=A(()=>[V(t),T(o)],([v,c])=>{if(a(),!v)return;const u=St(c)?F({},c):c;s.push(...n.flatMap(d=>r.map(p=>i(v,d,p,u))))},{immediate:!0,flush:"post"}),f=()=>{l(),a()};return oe(f),f}function Lt(){const e=g(!1),t=G();return t&&te(()=>{e.value=!0},t),e}function $e(e){const t=Lt();return C(()=>(t.value,!!e()))}function Mt(e,t={}){const{window:n=D}=t,r=$e(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function");let o;const s=g(!1),a=f=>{s.value=f.matches},i=()=>{o&&("removeEventListener"in o?o.removeEventListener("change",a):o.removeListener(a))},l=Ee(()=>{r.value&&(i(),o=n.matchMedia(T(e)),"addEventListener"in o?o.addEventListener("change",a):o.addListener(a),s.value=o.matches)});return oe(()=>{l(),i(),o=void 0}),s}const Y=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},Q="__vueuse_ssr_handlers__",Rt=Dt();function Dt(){return Q in Y||(Y[Q]=Y[Q]||{}),Y[Q]}function Le(e,t){return Rt[e]||t}function Wt(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 It={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()}},be="vueuse-storage";function Ft(e,t,n,r={}){var o;const{flush:s="pre",deep:a=!0,listenToStorageChanges:i=!0,writeDefaults:l=!0,mergeDefaults:f=!1,shallow:v,window:c=D,eventFilter:u,onError:d=m=>{console.error(m)},initOnMounted:p}=r,h=(v?Z:g)(typeof t=="function"?t():t);if(!n)try{n=Le("getDefaultStorage",()=>{var m;return(m=D)==null?void 0:m.localStorage})()}catch(m){d(m)}if(!n)return h;const w=T(t),O=Wt(w),S=(o=r.serializer)!=null?o:It[O],{pause:x,resume:P}=At(h,()=>$(h.value),{flush:s,deep:a,eventFilter:u});c&&i&&se(()=>{n instanceof Storage?I(c,"storage",b):I(c,be,L),p&&b()}),p||b();function y(m,_){if(c){const E={key:e,oldValue:m,newValue:_,storageArea:n};c.dispatchEvent(n instanceof Storage?new StorageEvent("storage",E):new CustomEvent(be,{detail:E}))}}function $(m){try{const _=n.getItem(e);if(m==null)y(_,null),n.removeItem(e);else{const E=S.write(m);_!==E&&(n.setItem(e,E),y(_,E))}}catch(_){d(_)}}function M(m){const _=m?m.newValue:n.getItem(e);if(_==null)return l&&w!=null&&n.setItem(e,S.write(w)),w;if(!m&&f){const E=S.read(_);return typeof f=="function"?f(E,w):O==="object"&&!Array.isArray(E)?F(F({},w),E):E}else return typeof _!="string"?_:S.read(_)}function b(m){if(!(m&&m.storageArea!==n)){if(m&&m.key==null){h.value=w;return}if(!(m&&m.key!==e)){x();try{(m==null?void 0:m.newValue)!==S.write(h.value)&&(h.value=M(m))}catch(_){d(_)}finally{m?ne(P):P()}}}}function L(m){b(m.detail)}return h}function Me(e){return Mt("(prefers-color-scheme: dark)",e)}const Vt="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function Nt(e={}){const{selector:t="html",attribute:n="class",initialValue:r="auto",window:o=D,storage:s,storageKey:a="vueuse-color-scheme",listenToStorageChanges:i=!0,storageRef:l,emitAuto:f,disableTransition:v=!0}=e,c=F({auto:"",light:"light",dark:"dark"},e.modes||{}),u=Me({window:o}),d=C(()=>u.value?"dark":"light"),p=l||(a==null?xt(r):Ft(a,r,s,{window:o,listenToStorageChanges:i})),h=C(()=>p.value==="auto"?d.value:p.value),w=Le("updateHTMLAttrs",(P,y,$)=>{const M=typeof P=="string"?o==null?void 0:o.document.querySelector(P):V(P);if(!M)return;const b=new Set,L=new Set;let m=null;if(y==="class"){const E=$.split(/\s/g);Object.values(c).flatMap(N=>(N||"").split(/\s/g)).filter(Boolean).forEach(N=>{E.includes(N)?b.add(N):L.add(N)})}else m={key:y,value:$};if(b.size===0&&L.size===0&&m===null)return;let _;v&&(_=o.document.createElement("style"),_.appendChild(document.createTextNode(Vt)),o.document.head.appendChild(_));for(const E of b)M.classList.add(E);for(const E of L)M.classList.remove(E);m&&M.setAttribute(m.key,m.value),v&&(o.getComputedStyle(_).opacity,document.head.removeChild(_))});function O(P){var y;w(t,n,(y=c[P])!=null?y:P)}function S(P){e.onChanged?e.onChanged(P,O):O(P)}A(h,S,{flush:"post",immediate:!0}),se(()=>S(h.value));const x=C({get(){return f?p.value:h.value},set(P){p.value=P}});try{return Object.assign(x,{store:p,system:d,state:h})}catch(P){return x}}function ln(e={}){const{valueDark:t="dark",valueLight:n="",window:r=D}=e,o=Nt(j(F({},e),{onChanged:(i,l)=>{var f;e.onChanged?(f=e.onChanged)==null||f.call(e,i==="dark",l,i):l(i)},modes:{dark:t,light:n}})),s=C(()=>o.system?o.system.value:Me({window:r}).value?"dark":"light");return C({get(){return o.value==="dark"},set(i){const l=i?"dark":"light";s.value===l?o.value="auto":o.value=l}})}function cn(e,t={}){var n,r;const{pointerTypes:o,preventDefault:s,stopPropagation:a,exact:i,onMove:l,onEnd:f,onStart:v,initialValue:c,axis:u="both",draggingElement:d=D,containerElement:p,handle:h=e,buttons:w=[0]}=t,O=g((n=T(c))!=null?n:{x:0,y:0}),S=g(),x=b=>o?o.includes(b.pointerType):!0,P=b=>{T(s)&&b.preventDefault(),T(a)&&b.stopPropagation()},y=b=>{var L;if(!T(w).includes(b.button)||T(t.disabled)||!x(b)||T(i)&&b.target!==T(e))return;const m=T(p),_=(L=m==null?void 0:m.getBoundingClientRect)==null?void 0:L.call(m),E=T(e).getBoundingClientRect(),N={x:b.clientX-(m?E.left-_.left+m.scrollLeft:E.left),y:b.clientY-(m?E.top-_.top+m.scrollTop:E.top)};(v==null?void 0:v(N,b))!==!1&&(S.value=N,P(b))},$=b=>{if(T(t.disabled)||!x(b)||!S.value)return;const L=T(p),m=T(e).getBoundingClientRect();let{x:_,y:E}=O.value;(u==="x"||u==="both")&&(_=b.clientX-S.value.x,L&&(_=Math.min(Math.max(0,_),L.scrollWidth-m.width))),(u==="y"||u==="both")&&(E=b.clientY-S.value.y,L&&(E=Math.min(Math.max(0,E),L.scrollHeight-m.height))),O.value={x:_,y:E},l==null||l(O.value,b),P(b)},M=b=>{T(t.disabled)||!x(b)||S.value&&(S.value=void 0,f==null||f(O.value,b),P(b))};if(xe){const b={capture:(r=t.capture)!=null?r:!0};I(h,"pointerdown",y,b),I(d,"pointermove",$,b),I(d,"pointerup",M,b)}return j(F({},$t(O)),{position:O,isDragging:C(()=>!!S.value),style:C(()=>`left:${O.value.x}px;top:${O.value.y}px;`)})}function Ht(e,t,n={}){const c=n,{window:r=D}=c,o=X(c,["window"]);let s;const a=$e(()=>r&&"ResizeObserver"in r),i=()=>{s&&(s.disconnect(),s=void 0)},l=C(()=>{const u=T(e);return Array.isArray(u)?u.map(d=>V(d)):[V(u)]}),f=A(l,u=>{if(i(),a.value&&r){s=new ResizeObserver(t);for(const d of u)d&&s.observe(d,o)}},{immediate:!0,flush:"post"}),v=()=>{i(),f()};return oe(v),{isSupported:a,stop:v}}function zt(e,t={width:0,height:0},n={}){const{window:r=D,box:o="content-box"}=n,s=C(()=>{var c,u;return(u=(c=V(e))==null?void 0:c.namespaceURI)==null?void 0:u.includes("svg")}),a=g(t.width),i=g(t.height),{stop:l}=Ht(e,([c])=>{const u=o==="border-box"?c.borderBoxSize:o==="content-box"?c.contentBoxSize:c.devicePixelContentBoxSize;if(r&&s.value){const d=V(e);if(d){const p=d.getBoundingClientRect();a.value=p.width,i.value=p.height}}else if(u){const d=Array.isArray(u)?u:[u];a.value=d.reduce((p,{inlineSize:h})=>p+h,0),i.value=d.reduce((p,{blockSize:h})=>p+h,0)}else a.value=c.contentRect.width,i.value=c.contentRect.height},n);se(()=>{const c=V(e);c&&(a.value="offsetWidth"in c?c.offsetWidth:t.width,i.value="offsetHeight"in c?c.offsetHeight:t.height)});const f=A(()=>V(e),c=>{a.value=c?t.width:0,i.value=c?t.height:0});function v(){l(),f()}return{width:a,height:i,stop:v}}const kt={page:e=>[e.pageX,e.pageY],client:e=>[e.clientX,e.clientY],screen:e=>[e.screenX,e.screenY],movement:e=>e instanceof Touch?null:[e.movementX,e.movementY]};function jt(e={}){const{type:t="page",touch:n=!0,resetOnTouchEnds:r=!1,initialValue:o={x:0,y:0},window:s=D,target:a=s,scroll:i=!0,eventFilter:l}=e;let f=null;const v=g(o.x),c=g(o.y),u=g(null),d=typeof t=="function"?t:kt[t],p=y=>{const $=d(y);f=y,$&&([v.value,c.value]=$,u.value="mouse")},h=y=>{if(y.touches.length>0){const $=d(y.touches[0]);$&&([v.value,c.value]=$,u.value="touch")}},w=()=>{if(!f||!s)return;const y=d(f);f instanceof MouseEvent&&y&&(v.value=y[0]+s.scrollX,c.value=y[1]+s.scrollY)},O=()=>{v.value=o.x,c.value=o.y},S=l?y=>l(()=>p(y),{}):y=>p(y),x=l?y=>l(()=>h(y),{}):y=>h(y),P=l?()=>l(()=>w(),{}):()=>w();if(a){const y={passive:!0};I(a,["mousemove","dragover"],S,y),n&&t!=="movement"&&(I(a,["touchstart","touchmove"],x,y),r&&I(a,"touchend",O,y)),i&&t==="page"&&I(s,"scroll",P,{passive:!0})}return{x:v,y:c,sourceType:u}}function fn(e,t={}){const{handleOutside:n=!0,window:r=D}=t,o=t.type||"page",{x:s,y:a,sourceType:i}=jt(t),l=g(e!=null?e:r==null?void 0:r.document.body),f=g(0),v=g(0),c=g(0),u=g(0),d=g(0),p=g(0),h=g(!0);let w=()=>{};return r&&(w=A([l,s,a],()=>{const O=V(l);if(!O||!(O instanceof HTMLElement))return;const{left:S,top:x,width:P,height:y}=O.getBoundingClientRect();c.value=S+(o==="page"?r.pageXOffset:0),u.value=x+(o==="page"?r.pageYOffset:0),d.value=y,p.value=P;const $=s.value-c.value,M=a.value-u.value;h.value=P===0||y===0||$<0||M<0||$>P||M>y,(n||!h.value)&&(f.value=$,v.value=M)},{immediate:!0}),I(document,"mouseleave",()=>{h.value=!0})),{x:s,y:a,sourceType:i,elementX:f,elementY:v,elementPositionX:c,elementPositionY:u,elementHeight:d,elementWidth:p,isOutside:h,stop:w}}function dn(e,t){const{containerStyle:n,wrapperProps:r,scrollTo:o,calculateRange:s,currentList:a,containerRef:i}="itemHeight"in t?Yt(t,e):Xt(t,e);return{list:a,scrollTo:o,containerProps:{ref:i,onScroll:()=>{s()},style:n},wrapperProps:r}}function Re(e){const t=g(null),n=zt(t),r=g([]),o=Z(e);return{state:g({start:0,end:10}),source:o,currentList:r,size:n,containerRef:t}}function De(e,t,n){return r=>{if(typeof n=="number")return Math.ceil(r/n);const{start:o=0}=e.value;let s=0,a=0;for(let i=o;i<t.value.length;i++){const l=n(i);if(s+=l,a=i,s>r)break}return a-o}}function We(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 a=t(s);if(r+=a,r>=n){o=s;break}}return o+1}}function Ie(e,t,n,r,{containerRef:o,state:s,currentList:a,source:i}){return()=>{const l=o.value;if(l){const f=n(e==="vertical"?l.scrollTop:l.scrollLeft),v=r(e==="vertical"?l.clientHeight:l.clientWidth),c=f-t,u=f+v+t;s.value={start:c<0?0:c,end:u>i.value.length?i.value.length:u},a.value=i.value.slice(s.value.start,s.value.end).map((d,p)=>({data:d,index:p+s.value.start}))}}}function Fe(e,t){return n=>typeof e=="number"?n*e:t.value.slice(0,n).reduce((o,s,a)=>o+e(a),0)}function Ve(e,t,n,r){A([e.width,e.height,t,n],()=>{r()})}function Ne(e,t){return C(()=>typeof e=="number"?t.value.length*e:t.value.reduce((n,r,o)=>n+e(o),0))}const Bt={horizontal:"scrollLeft",vertical:"scrollTop"};function He(e,t,n,r){return o=>{r.value&&(r.value[Bt[e]]=n(o),t())}}function Xt(e,t){const n=Re(t),{state:r,source:o,currentList:s,size:a,containerRef:i}=n,l={overflowX:"auto"},{itemWidth:f,overscan:v=5}=e,c=De(r,o,f),u=We(o,f),d=Ie("horizontal",v,u,c,n),p=Fe(f,o),h=C(()=>p(r.value.start)),w=Ne(f,o);Ve(a,t,i,d);const O=He("horizontal",d,p,i),S=C(()=>({style:{height:"100%",width:`${w.value-h.value}px`,marginLeft:`${h.value}px`,display:"flex"}}));return{scrollTo:O,calculateRange:d,wrapperProps:S,containerStyle:l,currentList:s,containerRef:i}}function Yt(e,t){const n=Re(t),{state:r,source:o,currentList:s,size:a,containerRef:i}=n,l={overflowY:"auto"},{itemHeight:f,overscan:v=5}=e,c=De(r,o,f),u=We(o,f),d=Ie("vertical",v,u,c,n),p=Fe(f,o),h=C(()=>p(r.value.start)),w=Ne(f,o);Ve(a,t,i,d);const O=He("vertical",d,p,i),S=C(()=>({style:{width:"100%",height:`${w.value-h.value}px`,marginTop:`${h.value}px`}}));return{calculateRange:d,scrollTo:O,containerStyle:l,wrapperProps:S,currentList:s,containerRef:i}}export{W as a,un as b,rn as c,vt as d,Kt as e,tn as f,qt as g,nt as h,U as i,on as j,nn as k,an as l,Gt as m,sn as n,Zt as o,en as p,cn as q,Ut as r,fn as s,K as t,R as u,I as v,dn as w,zt as x,ln as y};
|