@vue/devtools-ui 7.3.3 → 7.3.5

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 (42) hide show
  1. package/dist/ic-icons-data-DOuTCdZE.cjs +1 -0
  2. package/dist/ic-icons-data-stfsGcEC.js +2196 -0
  3. package/dist/index.cjs +1 -1
  4. package/dist/index.js +429 -1000
  5. package/dist/style.css +1 -1
  6. package/dist/theme.cjs +2 -2
  7. package/dist/theme.js +17 -146
  8. package/dist/types/src/components/Badge.d.ts +11 -0
  9. package/dist/types/src/components/Button.d.ts +70 -0
  10. package/dist/types/src/components/Card.d.ts +11 -0
  11. package/dist/types/src/components/Checkbox.d.ts +35 -0
  12. package/dist/types/src/components/Confirm.d.ts +84 -0
  13. package/dist/types/src/components/DarkToggle.d.ts +57 -0
  14. package/dist/types/src/components/Dialog.d.ts +78 -0
  15. package/dist/types/src/components/Drawer.d.ts +77 -0
  16. package/dist/types/src/components/Dropdown.d.ts +40 -0
  17. package/dist/types/src/components/DropdownButton.d.ts +41 -0
  18. package/dist/types/src/components/FormField.d.ts +47 -0
  19. package/dist/types/src/components/IcIcon.d.ts +15 -0
  20. package/dist/types/src/components/Icon.d.ts +33 -0
  21. package/dist/types/src/components/Input.d.ts +84 -0
  22. package/dist/types/src/components/LoadingIndicator.d.ts +2 -0
  23. package/dist/types/src/components/Notification.d.ts +33 -0
  24. package/dist/types/src/components/Overlay.d.ts +42 -0
  25. package/dist/types/src/components/Select.d.ts +53 -0
  26. package/dist/types/src/components/Switch.d.ts +30 -0
  27. package/dist/types/src/components/Tooltip.d.ts +23 -0
  28. package/dist/types/src/components/index.d.ts +41 -0
  29. package/dist/types/src/composables/index.d.ts +3 -0
  30. package/dist/types/src/composables/notification.d.ts +10 -0
  31. package/dist/types/src/composables/theme.d.ts +7 -0
  32. package/dist/types/src/constants/ic-icons.d.ts +1 -0
  33. package/dist/types/src/index.d.ts +6 -0
  34. package/dist/types/src/types/floating-vue.d.ts +10 -0
  35. package/dist/types/src/types/index.d.ts +1 -0
  36. package/dist/types/theme/index.d.ts +2 -0
  37. package/dist/types/{theme.d.ts → theme/theme.d.ts} +66 -73
  38. package/dist/types/theme/uno.config.d.ts +3 -0
  39. package/dist/vendor-BtJ-3rRj.cjs +1 -0
  40. package/dist/vendor-XKDuzWDy.js +731 -0
  41. package/package.json +8 -7
  42. package/dist/types/index.d.ts +0 -1062
@@ -0,0 +1,41 @@
1
+ import { default as Button } from './Button';
2
+ import { default as Badge } from './Badge';
3
+ import { default as LoadingIndicator } from './LoadingIndicator';
4
+ import { default as Icon } from './Icon';
5
+ import { default as DarkToggle } from './DarkToggle';
6
+ import { default as Card } from './Card';
7
+ import { default as Dialog } from './Dialog';
8
+ import { default as Input } from './Input';
9
+ import { default as FormField } from './FormField';
10
+ import { default as Dropdown } from './Dropdown';
11
+ import { default as DropdownButton } from './DropdownButton';
12
+ import { default as Confirm } from './Confirm';
13
+ import { default as Select } from './Select';
14
+ import { default as Switch } from './Switch';
15
+ import { default as Checkbox } from './Checkbox';
16
+ import { default as Drawer } from './Drawer';
17
+ import { default as Overlay } from './Overlay';
18
+ import { default as Notification } from './Notification';
19
+ import { default as Tooltip } from './Tooltip';
20
+ import { default as IcIcon } from './IcIcon';
21
+
22
+ export { Badge as VueBadge, Button as VueButton, Card as VueCard, Checkbox as VueCheckbox, Dialog as VueDialog, Drawer as VueDrawer, LoadingIndicator as VueLoadingIndicator, Icon as VueIcon, DarkToggle as VueDarkToggle, Input as VueInput, FormField as VueFormField, Overlay as VueOverlay, Dropdown as VueDropdown, DropdownButton as VueDropdownButton, Confirm as VueConfirm, Select as VueSelect, Switch as VueSwitch, Notification as VueNotification, Tooltip as VueTooltip, IcIcon as VueIcIcon, };
23
+ export type * from './Button';
24
+ export type * from './Badge';
25
+ export type * from './LoadingIndicator';
26
+ export type * from './Icon';
27
+ export type * from './DarkToggle';
28
+ export type * from './Card';
29
+ export type * from './Dialog';
30
+ export type * from './Input';
31
+ export type * from './FormField';
32
+ export type * from './Dropdown';
33
+ export type * from './DropdownButton';
34
+ export type * from './Confirm';
35
+ export type * from './Select';
36
+ export type * from './Switch';
37
+ export type * from './Checkbox';
38
+ export type * from './Drawer';
39
+ export type * from './Overlay';
40
+ export type * from './Notification';
41
+ export type * from './Tooltip';
@@ -0,0 +1,3 @@
1
+ export * from './notification';
2
+ export type * from './notification';
3
+ export * from './theme';
@@ -0,0 +1,10 @@
1
+ export type VueNotificationPlacement = 'top-left' | 'top-center' | 'top-right' | 'bottom-left' | 'bottom-center' | 'bottom-right';
2
+ export interface VueNotificationOptions {
3
+ message: string;
4
+ type?: 'success' | 'error' | 'info' | 'warning';
5
+ classes?: string;
6
+ duration?: number;
7
+ placement?: VueNotificationPlacement;
8
+ onClose?: () => void;
9
+ }
10
+ export declare function showVueNotification(options: VueNotificationOptions): void;
@@ -0,0 +1,7 @@
1
+ import { UseColorModeOptions } from '@vueuse/core';
2
+
3
+ export declare const THEME_KEY = "__vue-devtools-theme__";
4
+ export declare function useDevToolsColorMode(options?: Omit<UseColorModeOptions, 'storageKey'>): {
5
+ colorMode: import('@vueuse/core').UseColorModeReturn<import('@vueuse/core').BasicColorMode>;
6
+ isDark: import('vue').ComputedRef<boolean>;
7
+ };
@@ -0,0 +1 @@
1
+ export declare const icIcons: Record<string, string>;
@@ -0,0 +1,6 @@
1
+ import { vTooltip } from 'floating-vue';
2
+
3
+ export * from './components';
4
+ export * from './composables';
5
+ export * from './types';
6
+ export { vTooltip, };
@@ -0,0 +1,10 @@
1
+ import { Placement } from 'floating-vue';
2
+
3
+ export interface FloatingVueCommonProps {
4
+ trigger?: 'click' | 'hover';
5
+ distance?: number;
6
+ skidding?: number;
7
+ placement?: Placement;
8
+ disabled?: boolean;
9
+ shown?: boolean;
10
+ }
@@ -0,0 +1 @@
1
+ export * from './floating-vue';
@@ -0,0 +1,2 @@
1
+ export * from './theme';
2
+ export * from './uno.config';
@@ -1,73 +1,66 @@
1
- import { UserConfig } from 'unocss';
2
-
3
- export declare const theme: {
4
- colors: Record<string, any>;
5
- fontFamily: {
6
- sans: string;
7
- };
8
- };
9
-
10
- export declare const themeDef: {
11
- colors: {
12
- white: string;
13
- black: string;
14
- 'gray-900': string;
15
- 'gray-800': string;
16
- 'gray-700': string;
17
- 'gray-600': string;
18
- 'gray-500': string;
19
- 'gray-400': string;
20
- 'gray-300': string;
21
- 'gray-200': string;
22
- 'gray-100': string;
23
- 'primary-900': string;
24
- 'primary-800': string;
25
- 'primary-700': string;
26
- 'primary-600': string;
27
- 'primary-500': string;
28
- 'primary-400': string;
29
- 'primary-300': string;
30
- 'primary-200': string;
31
- 'primary-100': string;
32
- 'accent-900': string;
33
- 'accent-800': string;
34
- 'accent-700': string;
35
- 'accent-600': string;
36
- 'accent-500': string;
37
- 'accent-400': string;
38
- 'accent-300': string;
39
- 'accent-200': string;
40
- 'accent-100': string;
41
- 'danger-900': string;
42
- 'danger-800': string;
43
- 'danger-700': string;
44
- 'danger-600': string;
45
- 'danger-500': string;
46
- 'danger-400': string;
47
- 'danger-300': string;
48
- 'danger-200': string;
49
- 'danger-100': string;
50
- 'warning-900': string;
51
- 'warning-800': string;
52
- 'warning-700': string;
53
- 'warning-600': string;
54
- 'warning-500': string;
55
- 'warning-400': string;
56
- 'warning-300': string;
57
- 'warning-200': string;
58
- 'warning-100': string;
59
- 'info-900': string;
60
- 'info-800': string;
61
- 'info-700': string;
62
- 'info-600': string;
63
- 'info-500': string;
64
- 'info-400': string;
65
- 'info-300': string;
66
- 'info-200': string;
67
- 'info-100': string;
68
- };
69
- };
70
-
71
- export declare const unoConfig: UserConfig<object>;
72
-
73
- export { }
1
+ export declare const themeDef: {
2
+ colors: {
3
+ white: string;
4
+ black: string;
5
+ 'gray-900': string;
6
+ 'gray-800': string;
7
+ 'gray-700': string;
8
+ 'gray-600': string;
9
+ 'gray-500': string;
10
+ 'gray-400': string;
11
+ 'gray-300': string;
12
+ 'gray-200': string;
13
+ 'gray-100': string;
14
+ 'primary-900': string;
15
+ 'primary-800': string;
16
+ 'primary-700': string;
17
+ 'primary-600': string;
18
+ 'primary-500': string;
19
+ 'primary-400': string;
20
+ 'primary-300': string;
21
+ 'primary-200': string;
22
+ 'primary-100': string;
23
+ 'accent-900': string;
24
+ 'accent-800': string;
25
+ 'accent-700': string;
26
+ 'accent-600': string;
27
+ 'accent-500': string;
28
+ 'accent-400': string;
29
+ 'accent-300': string;
30
+ 'accent-200': string;
31
+ 'accent-100': string;
32
+ 'danger-900': string;
33
+ 'danger-800': string;
34
+ 'danger-700': string;
35
+ 'danger-600': string;
36
+ 'danger-500': string;
37
+ 'danger-400': string;
38
+ 'danger-300': string;
39
+ 'danger-200': string;
40
+ 'danger-100': string;
41
+ 'warning-900': string;
42
+ 'warning-800': string;
43
+ 'warning-700': string;
44
+ 'warning-600': string;
45
+ 'warning-500': string;
46
+ 'warning-400': string;
47
+ 'warning-300': string;
48
+ 'warning-200': string;
49
+ 'warning-100': string;
50
+ 'info-900': string;
51
+ 'info-800': string;
52
+ 'info-700': string;
53
+ 'info-600': string;
54
+ 'info-500': string;
55
+ 'info-400': string;
56
+ 'info-300': string;
57
+ 'info-200': string;
58
+ 'info-100': string;
59
+ };
60
+ };
61
+ export declare const theme: {
62
+ colors: Record<string, any>;
63
+ fontFamily: {
64
+ sans: string;
65
+ };
66
+ };
@@ -0,0 +1,3 @@
1
+ import { UserConfig } from 'unocss';
2
+
3
+ export declare const unoConfig: UserConfig;
@@ -0,0 +1 @@
1
+ "use strict";const a=require("vue");function $(e){return a.getCurrentScope()?(a.onScopeDispose(e),!0):!1}function ge(e,t,{enumerable:n=!1,unwrap:r=!0}={}){for(const[o,u]of Object.entries(t))o!=="value"&&(a.isRef(u)&&r?Object.defineProperty(e,o,{get(){return u.value},set(s){u.value=s},enumerable:n}):Object.defineProperty(e,o,{value:u,enumerable:n}));return e}function M(e){return typeof e=="function"?e():a.unref(e)}const ie=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const me=e=>typeof e<"u",be=Object.prototype.toString,ye=e=>be.call(e)==="[object Object]",z=()=>{},Q=we();function we(){var e,t;return ie&&((e=window==null?void 0:window.navigator)==null?void 0:e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window==null?void 0:window.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function se(e,t){function n(...r){return new Promise((o,u)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(o).catch(u)})}return n}const ae=e=>e();function Se(e,t={}){let n,r,o=z;const u=i=>{clearTimeout(i),o(),o=z};return i=>{const h=M(e),c=M(t.maxWait);return n&&u(n),h<=0||c!==void 0&&c<=0?(r&&(u(r),r=null),Promise.resolve(i())):new Promise((v,l)=>{o=t.rejectOnCancel?l:v,c&&!r&&(r=setTimeout(()=>{n&&u(n),r=null,v(i())},c)),n=setTimeout(()=>{r&&u(r),r=null,v(i())},h)})}}function Ne(e=ae){const t=a.ref(!0);function n(){t.value=!1}function r(){t.value=!0}const o=(...u)=>{t.value&&e(...u)};return{isActive:a.readonly(t),pause:n,resume:r,eventFilter:o}}function Oe(e){return e||a.getCurrentInstance()}function le(...e){if(e.length!==1)return a.toRef(...e);const t=e[0];return typeof t=="function"?a.readonly(a.customRef(()=>({get:t,set:z}))):a.ref(t)}function xe(e,t=200,n={}){return se(Se(t,n),e)}function Me(e,t=200,n={}){const r=a.ref(e.value),o=xe(()=>{r.value=e.value},t,n);return a.watch(e,()=>o()),r}function Ae(e,t={}){let n=e,r,o;const u=a.customRef((f,p)=>(r=f,o=p,{get(){return s()},set(g){i(g)}}));function s(f=!0){return f&&r(),n}function i(f,p=!0){var g,m;if(f===n)return;const S=n;((g=t.onBeforeChange)==null?void 0:g.call(t,f,S))!==!1&&(n=f,(m=t.onChanged)==null||m.call(t,f,S),p&&o())}return ge(u,{get:s,set:i,untrackedGet:()=>s(!1),silentSet:f=>i(f,!1),peek:()=>s(!1),lay:f=>i(f,!1)},{enumerable:!0})}function Ce(e,t,n={}){const{eventFilter:r=ae,...o}=n;return a.watch(e,se(r,t),o)}function Ee(e,t,n={}){const{eventFilter:r,...o}=n,{eventFilter:u,pause:s,resume:i,isActive:h}=Ne(r);return{stop:Ce(e,t,{...o,eventFilter:u}),pause:s,resume:i,isActive:h}}function Y(e,t=!0,n){Oe()?a.onMounted(e,n):t?e():a.nextTick(e)}function _e(e=!1,t={}){const{truthyValue:n=!0,falsyValue:r=!1}=t,o=a.isRef(e),u=a.ref(e);function s(i){if(arguments.length)return u.value=i,u.value;{const h=M(n);return u.value=u.value===h?M(r):h,u.value}}return o?s:[u,s]}function W(e){var t;const n=M(e);return(t=n==null?void 0:n.$el)!=null?t:n}const j=ie?window:void 0;function F(...e){let t,n,r,o;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,r,o]=e,t=j):[t,n,r,o]=e,!t)return z;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const u=[],s=()=>{u.forEach(v=>v()),u.length=0},i=(v,l,f,p)=>(v.addEventListener(l,f,p),()=>v.removeEventListener(l,f,p)),h=a.watch(()=>[W(t),M(o)],([v,l])=>{if(s(),!v)return;const f=ye(l)?{...l}:l;u.push(...n.flatMap(p=>r.map(g=>i(v,p,g,f))))},{immediate:!0,flush:"post"}),c=()=>{h(),s()};return $(c),c}function Te(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function De(...e){let t,n,r={};e.length===3?(t=e[0],n=e[1],r=e[2]):e.length===2?typeof e[1]=="object"?(t=!0,n=e[0],r=e[1]):(t=e[0],n=e[1]):(t=!0,n=e[0]);const{target:o=j,eventName:u="keydown",passive:s=!1,dedupe:i=!1}=r,h=Te(t);return F(o,u,v=>{v.repeat&&M(i)||h(v)&&n(v)},s)}function Re(){const e=a.ref(!1),t=a.getCurrentInstance();return t&&a.onMounted(()=>{e.value=!0},t),e}function ce(e){const t=Re();return a.computed(()=>(t.value,!!e()))}function We(e,t={}){const{window:n=j}=t,r=ce(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function");let o;const u=a.ref(!1),s=c=>{u.value=c.matches},i=()=>{o&&("removeEventListener"in o?o.removeEventListener("change",s):o.removeListener(s))},h=a.watchEffect(()=>{r.value&&(i(),o=n.matchMedia(M(e)),"addEventListener"in o?o.addEventListener("change",s):o.addListener(s),u.value=o.matches)});return $(()=>{h(),i(),o=void 0}),u}function je(e){return JSON.parse(JSON.stringify(e))}const H=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},V="__vueuse_ssr_handlers__",Le=Ie();function Ie(){return V in H||(H[V]=H[V]||{}),H[V]}function fe(e,t){return Le[e]||t}function ke(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 He={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()}},U="vueuse-storage";function Ve(e,t,n,r={}){var o;const{flush:u="pre",deep:s=!0,listenToStorageChanges:i=!0,writeDefaults:h=!0,mergeDefaults:c=!1,shallow:v,window:l=j,eventFilter:f,onError:p=d=>{console.error(d)},initOnMounted:g}=r,m=(v?a.shallowRef:a.ref)(typeof t=="function"?t():t);if(!n)try{n=fe("getDefaultStorage",()=>{var d;return(d=j)==null?void 0:d.localStorage})()}catch(d){p(d)}if(!n)return m;const S=M(t),D=ke(S),A=(o=r.serializer)!=null?o:He[D],{pause:w,resume:b}=Ee(m,()=>_(m.value),{flush:u,deep:s,eventFilter:f});l&&i&&Y(()=>{F(l,"storage",C),F(l,U,k),g&&C()}),g||C();function O(d,N){l&&l.dispatchEvent(new CustomEvent(U,{detail:{key:e,oldValue:d,newValue:N,storageArea:n}}))}function _(d){try{const N=n.getItem(e);if(d==null)O(N,null),n.removeItem(e);else{const R=A.write(d);N!==R&&(n.setItem(e,R),O(N,R))}}catch(N){p(N)}}function L(d){const N=d?d.newValue:n.getItem(e);if(N==null)return h&&S!=null&&n.setItem(e,A.write(S)),S;if(!d&&c){const R=A.read(N);return typeof c=="function"?c(R,S):D==="object"&&!Array.isArray(R)?{...S,...R}:R}else return typeof N!="string"?N:A.read(N)}function C(d){if(!(d&&d.storageArea!==n)){if(d&&d.key==null){m.value=S;return}if(!(d&&d.key!==e)){w();try{(d==null?void 0:d.newValue)!==A.write(m.value)&&(m.value=L(d))}catch(N){p(N)}finally{d?a.nextTick(b):b()}}}}function k(d){C(d.detail)}return m}function Pe(e){return We("(prefers-color-scheme: dark)",e)}function ze(e={}){const{selector:t="html",attribute:n="class",initialValue:r="auto",window:o=j,storage:u,storageKey:s="vueuse-color-scheme",listenToStorageChanges:i=!0,storageRef:h,emitAuto:c,disableTransition:v=!0}=e,l={auto:"",light:"light",dark:"dark",...e.modes||{}},f=Pe({window:o}),p=a.computed(()=>f.value?"dark":"light"),g=h||(s==null?le(r):Ve(s,r,u,{window:o,listenToStorageChanges:i})),m=a.computed(()=>g.value==="auto"?p.value:g.value),S=fe("updateHTMLAttrs",(b,O,_)=>{const L=typeof b=="string"?o==null?void 0:o.document.querySelector(b):W(b);if(!L)return;let C;if(v&&(C=o.document.createElement("style"),C.appendChild(document.createTextNode("*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),o.document.head.appendChild(C)),O==="class"){const k=_.split(/\s/g);Object.values(l).flatMap(d=>(d||"").split(/\s/g)).filter(Boolean).forEach(d=>{k.includes(d)?L.classList.add(d):L.classList.remove(d)})}else L.setAttribute(O,_);v&&(o.getComputedStyle(C).opacity,document.head.removeChild(C))});function D(b){var O;S(t,n,(O=l[b])!=null?O:b)}function A(b){e.onChanged?e.onChanged(b,D):D(b)}a.watch(m,A,{flush:"post",immediate:!0}),Y(()=>A(m.value));const w=a.computed({get(){return c?g.value:m.value},set(b){g.value=b}});try{return Object.assign(w,{store:g,system:p,state:m})}catch{return w}}function Fe(e,t,n={}){const{window:r=j,...o}=n;let u;const s=ce(()=>r&&"ResizeObserver"in r),i=()=>{u&&(u.disconnect(),u=void 0)},h=a.computed(()=>Array.isArray(e)?e.map(l=>W(l)):[W(e)]),c=a.watch(h,l=>{if(i(),s.value&&r){u=new ResizeObserver(t);for(const f of l)f&&u.observe(f,o)}},{immediate:!0,flush:"post"}),v=()=>{i(),c()};return $(v),{isSupported:s,stop:v}}function $e(e,t={width:0,height:0},n={}){const{window:r=j,box:o="content-box"}=n,u=a.computed(()=>{var l,f;return(f=(l=W(e))==null?void 0:l.namespaceURI)==null?void 0:f.includes("svg")}),s=a.ref(t.width),i=a.ref(t.height),{stop:h}=Fe(e,([l])=>{const f=o==="border-box"?l.borderBoxSize:o==="content-box"?l.contentBoxSize:l.devicePixelContentBoxSize;if(r&&u.value){const p=W(e);if(p){const g=p.getBoundingClientRect();s.value=g.width,i.value=g.height}}else if(f){const p=Array.isArray(f)?f:[f];s.value=p.reduce((g,{inlineSize:m})=>g+m,0),i.value=p.reduce((g,{blockSize:m})=>g+m,0)}else s.value=l.contentRect.width,i.value=l.contentRect.height},n);Y(()=>{const l=W(e);l&&(s.value="offsetWidth"in l?l.offsetWidth:t.width,i.value="offsetHeight"in l?l.offsetHeight:t.height)});const c=a.watch(()=>W(e),l=>{s.value=l?t.width:0,i.value=l?t.height:0});function v(){h(),c()}return{width:s,height:i,stop:v}}function B(e){return typeof Window<"u"&&e instanceof Window?e.document.documentElement:typeof Document<"u"&&e instanceof Document?e.documentElement:e}function de(e){const t=window.getComputedStyle(e);if(t.overflowX==="scroll"||t.overflowY==="scroll"||t.overflowX==="auto"&&e.clientWidth<e.scrollWidth||t.overflowY==="auto"&&e.clientHeight<e.scrollHeight)return!0;{const n=e.parentNode;return!n||n.tagName==="BODY"?!1:de(n)}}function Be(e){const t=e||window.event,n=t.target;return de(n)?!1:t.touches.length>1?!0:(t.preventDefault&&t.preventDefault(),!1)}const J=new WeakMap;function Je(e,t=!1){const n=a.ref(t);let r=null,o="";a.watch(le(e),i=>{const h=B(M(i));if(h){const c=h;if(J.get(c)||J.set(c,c.style.overflow),c.style.overflow!=="hidden"&&(o=c.style.overflow),c.style.overflow==="hidden")return n.value=!0;if(n.value)return c.style.overflow="hidden"}},{immediate:!0});const u=()=>{const i=B(M(e));!i||n.value||(Q&&(r=F(i,"touchmove",h=>{Be(h)},{passive:!1})),i.style.overflow="hidden",n.value=!0)},s=()=>{const i=B(M(e));!i||!n.value||(Q&&(r==null||r()),i.style.overflow=o,J.delete(i),n.value=!1)};return $(s),a.computed({get(){return n.value},set(i){i?u():s()}})}function Ge(e,t,n,r={}){var o,u,s;const{clone:i=!1,passive:h=!1,eventName:c,deep:v=!1,defaultValue:l,shouldEmit:f}=r,p=a.getCurrentInstance(),g=n||(p==null?void 0:p.emit)||((o=p==null?void 0:p.$emit)==null?void 0:o.bind(p))||((s=(u=p==null?void 0:p.proxy)==null?void 0:u.$emit)==null?void 0:s.bind(p==null?void 0:p.proxy));let m=c;t||(t="modelValue"),m=m||`update:${t.toString()}`;const S=w=>i?typeof i=="function"?i(w):je(w):w,D=()=>me(e[t])?S(e[t]):l,A=w=>{f?f(w)&&g(m,w):g(m,w)};if(h){const w=D(),b=a.ref(w);let O=!1;return a.watch(()=>e[t],_=>{O||(O=!0,b.value=S(_),a.nextTick(()=>O=!1))}),a.watch(b,_=>{!O&&(_!==e[t]||v)&&A(_)},{deep:v}),b}else return a.computed({get(){return D()},set(w){A(w)}})}var Ke={grad:.9,turn:360,rad:360/(2*Math.PI)},T=function(e){return typeof e=="string"?e.length>0:typeof e=="number"},y=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=Math.pow(10,t)),Math.round(n*e)/n+0},x=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=1),e>n?n:e>t?e:t},he=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},X=function(e){return{r:x(e.r,0,255),g:x(e.g,0,255),b:x(e.b,0,255),a:x(e.a)}},G=function(e){return{r:y(e.r),g:y(e.g),b:y(e.b),a:y(e.a,3)}},qe=/^#([0-9a-f]{3,8})$/i,P=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},pe=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,u=Math.max(t,n,r),s=u-Math.min(t,n,r),i=s?u===t?(n-r)/s:u===n?2+(r-t)/s:4+(t-n)/s:0;return{h:60*(i<0?i+6:i),s:u?s/u*100:0,v:u/255*100,a:o}},ve=function(e){var t=e.h,n=e.s,r=e.v,o=e.a;t=t/360*6,n/=100,r/=100;var u=Math.floor(t),s=r*(1-n),i=r*(1-(t-u)*n),h=r*(1-(1-t+u)*n),c=u%6;return{r:255*[r,i,s,s,h,r][c],g:255*[h,r,r,i,s,s][c],b:255*[s,s,h,r,r,i][c],a:o}},Z=function(e){return{h:he(e.h),s:x(e.s,0,100),l:x(e.l,0,100),a:x(e.a)}},ee=function(e){return{h:y(e.h),s:y(e.s),l:y(e.l),a:y(e.a,3)}},te=function(e){return ve((n=(t=e).s,{h:t.h,s:(n*=((r=t.l)<50?r:100-r)/100)>0?2*n/(r+n)*100:0,v:r+n,a:t.a}));var t,n,r},I=function(e){return{h:(t=pe(e)).h,s:(o=(200-(n=t.s))*(r=t.v)/100)>0&&o<200?n*r/100/(o<=100?o:200-o)*100:0,l:o/2,a:t.a};var t,n,r,o},Ye=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Qe=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Ue=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Xe=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,ne={string:[[function(e){var t=qe.exec(e);return t?(e=t[1]).length<=4?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:e.length===4?y(parseInt(e[3]+e[3],16)/255,2):1}:e.length===6||e.length===8?{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:e.length===8?y(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=Ue.exec(e)||Xe.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:X({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:t[7]===void 0?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(e){var t=Ye.exec(e)||Qe.exec(e);if(!t)return null;var n,r,o=Z({h:(n=t[1],r=t[2],r===void 0&&(r="deg"),Number(n)*(Ke[r]||1)),s:Number(t[3]),l:Number(t[4]),a:t[5]===void 0?1:Number(t[5])/(t[6]?100:1)});return te(o)},"hsl"]],object:[[function(e){var t=e.r,n=e.g,r=e.b,o=e.a,u=o===void 0?1:o;return T(t)&&T(n)&&T(r)?X({r:Number(t),g:Number(n),b:Number(r),a:Number(u)}):null},"rgb"],[function(e){var t=e.h,n=e.s,r=e.l,o=e.a,u=o===void 0?1:o;if(!T(t)||!T(n)||!T(r))return null;var s=Z({h:Number(t),s:Number(n),l:Number(r),a:Number(u)});return te(s)},"hsl"],[function(e){var t=e.h,n=e.s,r=e.v,o=e.a,u=o===void 0?1:o;if(!T(t)||!T(n)||!T(r))return null;var s=function(i){return{h:he(i.h),s:x(i.s,0,100),v:x(i.v,0,100),a:x(i.a)}}({h:Number(t),s:Number(n),v:Number(r),a:Number(u)});return ve(s)},"hsv"]]},re=function(e,t){for(var n=0;n<t.length;n++){var r=t[n][0](e);if(r)return[r,t[n][1]]}return[null,void 0]},Ze=function(e){return typeof e=="string"?re(e.trim(),ne.string):typeof e=="object"&&e!==null?re(e,ne.object):[null,void 0]},K=function(e,t){var n=I(e);return{h:n.h,s:x(n.s+100*t,0,100),l:n.l,a:n.a}},q=function(e){return(299*e.r+587*e.g+114*e.b)/1e3/255},oe=function(e,t){var n=I(e);return{h:n.h,s:n.s,l:x(n.l+100*t,0,100),a:n.a}},ue=function(){function e(t){this.parsed=Ze(t)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return e.prototype.isValid=function(){return this.parsed!==null},e.prototype.brightness=function(){return y(q(this.rgba),2)},e.prototype.isDark=function(){return q(this.rgba)<.5},e.prototype.isLight=function(){return q(this.rgba)>=.5},e.prototype.toHex=function(){return t=G(this.rgba),n=t.r,r=t.g,o=t.b,s=(u=t.a)<1?P(y(255*u)):"","#"+P(n)+P(r)+P(o)+s;var t,n,r,o,u,s},e.prototype.toRgb=function(){return G(this.rgba)},e.prototype.toRgbString=function(){return t=G(this.rgba),n=t.r,r=t.g,o=t.b,(u=t.a)<1?"rgba("+n+", "+r+", "+o+", "+u+")":"rgb("+n+", "+r+", "+o+")";var t,n,r,o,u},e.prototype.toHsl=function(){return ee(I(this.rgba))},e.prototype.toHslString=function(){return t=ee(I(this.rgba)),n=t.h,r=t.s,o=t.l,(u=t.a)<1?"hsla("+n+", "+r+"%, "+o+"%, "+u+")":"hsl("+n+", "+r+"%, "+o+"%)";var t,n,r,o,u},e.prototype.toHsv=function(){return t=pe(this.rgba),{h:y(t.h),s:y(t.s),v:y(t.v),a:y(t.a,3)};var t},e.prototype.invert=function(){return E({r:255-(t=this.rgba).r,g:255-t.g,b:255-t.b,a:t.a});var t},e.prototype.saturate=function(t){return t===void 0&&(t=.1),E(K(this.rgba,t))},e.prototype.desaturate=function(t){return t===void 0&&(t=.1),E(K(this.rgba,-t))},e.prototype.grayscale=function(){return E(K(this.rgba,-1))},e.prototype.lighten=function(t){return t===void 0&&(t=.1),E(oe(this.rgba,t))},e.prototype.darken=function(t){return t===void 0&&(t=.1),E(oe(this.rgba,-t))},e.prototype.rotate=function(t){return t===void 0&&(t=15),this.hue(this.hue()+t)},e.prototype.alpha=function(t){return typeof t=="number"?E({r:(n=this.rgba).r,g:n.g,b:n.b,a:t}):y(this.rgba.a,3);var n},e.prototype.hue=function(t){var n=I(this.rgba);return typeof t=="number"?E({h:t,s:n.s,l:n.l,a:n.a}):y(n.h)},e.prototype.isEqual=function(t){return this.toHex()===E(t).toHex()},e}(),E=function(e){return e instanceof ue?e:new ue(e)};exports.onKeyStroke=De;exports.refDebounced=Me;exports.refWithControl=Ae;exports.useColorMode=ze;exports.useElementSize=$e;exports.useScrollLock=Je;exports.useToggle=_e;exports.useVModel=Ge;exports.w=E;