@luna-park/plugin-reactivity 1.0.0 → 1.1.0
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/index.js +521 -431
- package/dist/runtime.js +85 -62
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4494,7 +4494,7 @@ function zf(e) {
|
|
|
4494
4494
|
return e;
|
|
4495
4495
|
}
|
|
4496
4496
|
// src/llm.md?raw
|
|
4497
|
-
var Bf = "# Reactivity plugin\n\nReactive nodes powered by VueUse, all frontend-only. Getter nodes are operation nodes whose outputs update on their own; action nodes have an exec input.\n\n## Getters\n- **Browser**: `reactivity/browser/*`: `documentVisibility`, `mediaQuery`, `online`, `network` (connection type, speed, save-data), `preferredDark`, `preferredReducedMotion`, `preferredLanguages`, `screenOrientation`, `devicePixelRatio`, `windowFocus`, `fullscreen`.\n- **Responsive**: `reactivity/responsive/breakpoint` compares the window width with a named breakpoint; `reactivity/responsive/currentBreakpoint` returns the active breakpoint name. Names come from the preset in the plugin settings (Tailwind by default: `sm`, `md`, `lg`, `xl`, `2xl`).\n- **Sensors**: `reactivity/sensors/*`: `idle`, `magicKey`, `mousePressed`, `pointer`, `windowScroll`, `windowSize`, `pageLeave` (exit intent), `battery`, `geolocation` (asks for permission; check `Located`).\n- **Storage**: `reactivity/storage/get` reads a JSON value from `localStorage` / `sessionStorage` with a default. Readers of a key update as soon as it is written, also across tabs.\n- **Theme**: `reactivity/theme/colorMode` returns the mode (`auto`, `light`, `dark`) and the resolved state. The built app gets a `dark` / `light` class on `<html>` (Tailwind `dark:` compatible).\n- **Time**: `reactivity/time/*`: `dateFormat`, `interval`, `now`, `timeAgo`, `timestamp`, `countdown` (starts as soon as used, restarts when the seconds change).\n- **Utils**: `reactivity/utils/debounced` and `reactivity/utils/throttled` delay a changing value (e.g. a search field); `reactivity/utils/previous` returns the value before its last change.\n\n## Actions\n- `reactivity/storage/set` writes a storage key; `reactivity/theme/setColorMode` changes the color mode (remembered).\n- `reactivity/browser/setFullscreen` (toggle, enter, exit), `setScrollLock` (while a modal or menu is open), `setWakeLock` (keep the screen on).\n- `reactivity/browser/share` (native share sheet), `notify` (system notification, asks permission), `speak` (text to speech, continues when finished), `vibrate` (Android only), `pickColor` (eye dropper, Chromium only).\n- Fullscreen, share and pick color must run from a user action such as a click.\n\nThe editor preview does not change its own theme or scroll lock. Prefer these nodes over polling with timers or listening to DOM events by hand.\n", Vf = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%2342B883'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3cpath%20d='M13.5%204.5%208%2012.5h4l-1.5%207%205.5-8h-4z'%20fill='%2342B883'/%3e%3cpath%20d='M5.6%205.6a9%209%200%200%200%200%2012.8'/%3e%3cpath%20d='M18.4%205.6a9%209%200%200%201%200%2012.8'/%3e%3c/svg%3e", Hf = {
|
|
4497
|
+
var Bf = "# Reactivity plugin\r\n\r\nReactive nodes powered by VueUse, all frontend-only. Getter nodes are operation nodes whose outputs update on their own; action nodes have an exec input.\r\n\r\n## Getters\r\n- **Browser**: `reactivity/browser/*`: `documentVisibility`, `mediaQuery`, `online`, `network` (connection type, speed, save-data), `preferredDark`, `preferredReducedMotion`, `preferredLanguages`, `screenOrientation`, `devicePixelRatio`, `windowFocus`, `fullscreen`.\r\n- **Responsive**: `reactivity/responsive/breakpoint` compares the window width with a named breakpoint; `reactivity/responsive/currentBreakpoint` returns the active breakpoint name. Names come from the preset in the plugin settings (Tailwind by default: `sm`, `md`, `lg`, `xl`, `2xl`).\r\n- **Sensors**: `reactivity/sensors/*`: `idle`, `magicKey`, `mousePressed`, `pointer`, `windowScroll`, `windowSize`, `pageLeave` (exit intent), `battery`, `geolocation` (asks for permission; check `Located`).\r\n- **Storage**: `reactivity/storage/get` reads a JSON value from `localStorage` / `sessionStorage` with a default. Readers of a key update as soon as it is written, also across tabs.\r\n- **Theme**: `reactivity/theme/colorMode` returns the mode (`auto`, `light`, `dark`) and the resolved state. The built app gets a `dark` / `light` class on `<html>` (Tailwind `dark:` compatible).\r\n- **Time**: `reactivity/time/*`: `dateFormat`, `interval`, `now`, `timeAgo`, `timestamp`, `countdown` (starts as soon as used, restarts when the seconds change).\r\n- **Utils**: `reactivity/utils/debounced` and `reactivity/utils/throttled` delay a changing value (e.g. a search field); `reactivity/utils/previous` returns the value before its last change.\r\n\r\n## Actions\r\n- `reactivity/storage/set` writes a storage key; `reactivity/theme/setColorMode` changes the color mode (remembered).\r\n- `reactivity/browser/setFullscreen` (toggle, enter, exit), `setScrollLock` (while a modal or menu is open), `setWakeLock` (keep the screen on).\r\n- `reactivity/sensors/drag` moves an element by dragging: link `event/pointerdown(<handle id>)` (exec and `out_event`) to it, set two computed values from its `out_x` and `out_y`, and bind them on the element to move: `:style.transform=\"'translate(' + dragX + 'px, ' + dragY + 'px)'\"`. It follows the pointer on the whole page, so no capture overlay is needed.\r\n- `reactivity/browser/share` (native share sheet), `notify` (system notification, asks permission), `speak` (text to speech, continues when finished), `vibrate` (Android only), `pickColor` (eye dropper, Chromium only).\r\n- Fullscreen, share and pick color must run from a user action such as a click.\r\n\r\nThe editor preview does not change its own theme or scroll lock. Prefer these nodes over polling with timers or listening to DOM events by hand.\r\n", Vf = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%2342B883'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3cpath%20d='M13.5%204.5%208%2012.5h4l-1.5%207%205.5-8h-4z'%20fill='%2342B883'/%3e%3cpath%20d='M5.6%205.6a9%209%200%200%200%200%2012.8'/%3e%3cpath%20d='M18.4%205.6a9%209%200%200%201%200%2012.8'/%3e%3c/svg%3e", Hf = {
|
|
4498
4498
|
prefix: "fas",
|
|
4499
4499
|
iconName: "wave-square",
|
|
4500
4500
|
icon: [
|
|
@@ -4847,6 +4847,16 @@ var Bf = "# Reactivity plugin\n\nReactive nodes powered by VueUse, all frontend-
|
|
|
4847
4847
|
"M448 256c0-106-86-192-192-192l0 384c106 0 192-86 192-192zM0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256z"
|
|
4848
4848
|
]
|
|
4849
4849
|
}, Sp = {
|
|
4850
|
+
prefix: "fas",
|
|
4851
|
+
iconName: "arrows-up-down-left-right",
|
|
4852
|
+
icon: [
|
|
4853
|
+
512,
|
|
4854
|
+
512,
|
|
4855
|
+
["arrows"],
|
|
4856
|
+
"f047",
|
|
4857
|
+
"M278.6 9.4c-12.5-12.5-32.8-12.5-45.3 0l-64 64c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l9.4-9.4L224 224l-114.7 0 9.4-9.4c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-64 64c-12.5 12.5-12.5 32.8 0 45.3l64 64c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3l-9.4-9.4L224 288l0 114.7-9.4-9.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l64 64c12.5 12.5 32.8 12.5 45.3 0l64-64c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-9.4 9.4L288 288l114.7 0-9.4 9.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l64-64c12.5-12.5 12.5-32.8 0-45.3l-64-64c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l9.4 9.4L288 224l0-114.7 9.4 9.4c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3l-64-64z"
|
|
4858
|
+
]
|
|
4859
|
+
}, Cp = {
|
|
4850
4860
|
prefix: "fas",
|
|
4851
4861
|
iconName: "display",
|
|
4852
4862
|
icon: [
|
|
@@ -4856,7 +4866,7 @@ var Bf = "# Reactivity plugin\n\nReactive nodes powered by VueUse, all frontend-
|
|
|
4856
4866
|
"e163",
|
|
4857
4867
|
"M64 0C28.7 0 0 28.7 0 64L0 352c0 35.3 28.7 64 64 64l176 0-10.7 32L160 448c-17.7 0-32 14.3-32 32s14.3 32 32 32l256 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-69.3 0L336 416l176 0c35.3 0 64-28.7 64-64l0-288c0-35.3-28.7-64-64-64L64 0zM512 64l0 288L64 352 64 64l448 0z"
|
|
4858
4868
|
]
|
|
4859
|
-
},
|
|
4869
|
+
}, wp = {
|
|
4860
4870
|
prefix: "fas",
|
|
4861
4871
|
iconName: "clock-rotate-left",
|
|
4862
4872
|
icon: [
|
|
@@ -4866,7 +4876,7 @@ var Bf = "# Reactivity plugin\n\nReactive nodes powered by VueUse, all frontend-
|
|
|
4866
4876
|
"f1da",
|
|
4867
4877
|
"M75 75L41 41C25.9 25.9 0 36.6 0 57.9L0 168c0 13.3 10.7 24 24 24l110.1 0c21.4 0 32.1-25.9 17-41l-30.8-30.8C155 85.5 203 64 256 64c106 0 192 86 192 192s-86 192-192 192c-40.8 0-78.6-12.7-109.7-34.4c-14.5-10.1-34.4-6.6-44.6 7.9s-6.6 34.4 7.9 44.6C151.2 495 201.7 512 256 512c141.4 0 256-114.6 256-256S397.4 0 256 0C185.3 0 121.3 28.7 75 75zm181 53c-13.3 0-24 10.7-24 24l0 104c0 6.4 2.5 12.5 7 17l72 72c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-65-65 0-94.1c0-13.3-10.7-24-24-24z"
|
|
4868
4878
|
]
|
|
4869
|
-
},
|
|
4879
|
+
}, Tp = {
|
|
4870
4880
|
prefix: "fas",
|
|
4871
4881
|
iconName: "moon",
|
|
4872
4882
|
icon: [
|
|
@@ -4876,7 +4886,7 @@ var Bf = "# Reactivity plugin\n\nReactive nodes powered by VueUse, all frontend-
|
|
|
4876
4886
|
"f186",
|
|
4877
4887
|
"M223.5 32C100 32 0 132.3 0 256S100 480 223.5 480c60.6 0 115.5-24.2 155.8-63.4c5-4.9 6.3-12.5 3.1-18.7s-10.1-9.7-17-8.5c-9.8 1.7-19.8 2.6-30.1 2.6c-96.9 0-175.5-78.8-175.5-176c0-65.8 36-123.1 89.3-153.3c6.1-3.5 9.2-10.5 7.7-17.3s-7.3-11.9-14.3-12.5c-6.3-.5-12.6-.8-19-.8z"
|
|
4878
4888
|
]
|
|
4879
|
-
},
|
|
4889
|
+
}, Ep = {
|
|
4880
4890
|
prefix: "fas",
|
|
4881
4891
|
iconName: "up-right-and-down-left-from-center",
|
|
4882
4892
|
icon: [
|
|
@@ -4886,7 +4896,7 @@ var Bf = "# Reactivity plugin\n\nReactive nodes powered by VueUse, all frontend-
|
|
|
4886
4896
|
"f424",
|
|
4887
4897
|
"M344 0L488 0c13.3 0 24 10.7 24 24l0 144c0 9.7-5.8 18.5-14.8 22.2s-19.3 1.7-26.2-5.2l-39-39-87 87c-9.4 9.4-24.6 9.4-33.9 0l-32-32c-9.4-9.4-9.4-24.6 0-33.9l87-87L327 41c-6.9-6.9-8.9-17.2-5.2-26.2S334.3 0 344 0zM168 512L24 512c-13.3 0-24-10.7-24-24L0 344c0-9.7 5.8-18.5 14.8-22.2s19.3-1.7 26.2 5.2l39 39 87-87c9.4-9.4 24.6-9.4 33.9 0l32 32c9.4 9.4 9.4 24.6 0 33.9l-87 87 39 39c6.9 6.9 8.9 17.2 5.2 26.2s-12.5 14.8-22.2 14.8z"
|
|
4888
4898
|
]
|
|
4889
|
-
},
|
|
4899
|
+
}, Dp = {
|
|
4890
4900
|
prefix: "fas",
|
|
4891
4901
|
iconName: "arrows-up-down",
|
|
4892
4902
|
icon: [
|
|
@@ -4896,9 +4906,9 @@ var Bf = "# Reactivity plugin\n\nReactive nodes powered by VueUse, all frontend-
|
|
|
4896
4906
|
"f07d",
|
|
4897
4907
|
"M182.6 9.4c-12.5-12.5-32.8-12.5-45.3 0l-96 96c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L128 109.3l0 293.5L86.6 361.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l96 96c12.5 12.5 32.8 12.5 45.3 0l96-96c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 402.7l0-293.5 41.4 41.4c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3l-96-96z"
|
|
4898
4908
|
]
|
|
4899
|
-
},
|
|
4909
|
+
}, Op = {
|
|
4900
4910
|
name: "@luna-park/plugin-reactivity",
|
|
4901
|
-
version: "1.
|
|
4911
|
+
version: "1.1.0",
|
|
4902
4912
|
private: !1,
|
|
4903
4913
|
description: "Reactivity plugin for Luna Park: browser, sensor, time and state nodes powered by VueUse.",
|
|
4904
4914
|
keywords: [
|
|
@@ -4952,14 +4962,14 @@ var Bf = "# Reactivity plugin\n\nReactive nodes powered by VueUse, all frontend-
|
|
|
4952
4962
|
"@vueuse/core": "^15.0.0",
|
|
4953
4963
|
vue: "^3.5.43"
|
|
4954
4964
|
}
|
|
4955
|
-
},
|
|
4965
|
+
}, kp = `${Op.name}/runtime`, J = [{
|
|
4956
4966
|
id: () => "instance",
|
|
4957
4967
|
values: () => "const [[instance]] = useInstances();"
|
|
4958
4968
|
}];
|
|
4959
4969
|
function Y(e) {
|
|
4960
4970
|
return {
|
|
4961
4971
|
name: e,
|
|
4962
|
-
target:
|
|
4972
|
+
target: kp
|
|
4963
4973
|
};
|
|
4964
4974
|
}
|
|
4965
4975
|
function X(e) {
|
|
@@ -4969,36 +4979,36 @@ function X(e) {
|
|
|
4969
4979
|
};
|
|
4970
4980
|
}
|
|
4971
4981
|
var Z = Y("useInstances");
|
|
4972
|
-
function
|
|
4982
|
+
function Ap(e, t, n = "[]", r = "") {
|
|
4973
4983
|
return ({ id: i, key: a }) => `()=>{${r}return [[instance]](${n}, () => ${e}, ${JSON.stringify(i)})${t[a]};}`;
|
|
4974
4984
|
}
|
|
4975
|
-
function
|
|
4985
|
+
function jp(e) {
|
|
4976
4986
|
return e.replace(/^out_/, "");
|
|
4977
4987
|
}
|
|
4978
4988
|
// node_modules/.pnpm/@vueuse+shared@15.0.0_vue@3.5.45_typescript@6.0.3_/node_modules/@vueuse/shared/dist/index.js
|
|
4979
|
-
function
|
|
4989
|
+
function Mp(e, t) {
|
|
4980
4990
|
return i() ? (u(e, t), !0) : !1;
|
|
4981
4991
|
}
|
|
4982
|
-
var
|
|
4992
|
+
var Np = /* @__PURE__ */ new WeakMap(), Pp = /* @__NO_SIDE_EFFECTS__ */ (...e) => {
|
|
4983
4993
|
let t = e[0], n = r()?.proxy ?? i();
|
|
4984
4994
|
if (n == null && !a()) throw Error("injectLocal must be called in setup");
|
|
4985
|
-
return n &&
|
|
4986
|
-
},
|
|
4995
|
+
return n && Np.has(n) && t in Np.get(n) ? Np.get(n)[t] : o(...e);
|
|
4996
|
+
}, Fp = typeof window < "u" && typeof document < "u";
|
|
4987
4997
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
4988
|
-
var
|
|
4989
|
-
function
|
|
4998
|
+
var Ip = (e) => e != null, Lp = Object.prototype.toString, Rp = (e) => Lp.call(e) === "[object Object]", zp = () => +Date.now(), Bp = () => {}, Vp = /* #__PURE__ */ Hp();
|
|
4999
|
+
function Hp() {
|
|
4990
5000
|
var e, t;
|
|
4991
|
-
return
|
|
5001
|
+
return Fp && !!((e = window) != null && (e = e.navigator) != null && e.userAgent) && (/iP(?:ad|hone|od)/.test(window.navigator.userAgent) || ((t = window) == null || (t = t.navigator) == null ? void 0 : t.maxTouchPoints) > 2 && /iPad|Macintosh/.test(window?.navigator.userAgent));
|
|
4992
5002
|
}
|
|
4993
|
-
function
|
|
5003
|
+
function Up(...e) {
|
|
4994
5004
|
if (e.length !== 1) return g(...e);
|
|
4995
5005
|
let n = e[0];
|
|
4996
5006
|
return typeof n == "function" ? f(t(() => ({
|
|
4997
5007
|
get: n,
|
|
4998
|
-
set:
|
|
5008
|
+
set: Bp
|
|
4999
5009
|
}))) : p(n);
|
|
5000
5010
|
}
|
|
5001
|
-
function
|
|
5011
|
+
function Wp(e, t) {
|
|
5002
5012
|
function n(...n) {
|
|
5003
5013
|
return new Promise((r, i) => {
|
|
5004
5014
|
Promise.resolve(e(() => t.apply(this, n), {
|
|
@@ -5014,10 +5024,10 @@ function Up(e, t) {
|
|
|
5014
5024
|
isPending: e.isPending
|
|
5015
5025
|
}), n;
|
|
5016
5026
|
}
|
|
5017
|
-
var
|
|
5018
|
-
function
|
|
5019
|
-
let n, r, i =
|
|
5020
|
-
clearTimeout(e), i(), i =
|
|
5027
|
+
var Gp = (e) => e();
|
|
5028
|
+
function Kp(e, t = {}) {
|
|
5029
|
+
let n, r, i = Bp, a = Bp, o = h(!1), s = (e) => {
|
|
5030
|
+
clearTimeout(e), i(), i = Bp;
|
|
5021
5031
|
}, c;
|
|
5022
5032
|
return Object.assign((l) => {
|
|
5023
5033
|
let u = _(e), d = _(t.maxWait);
|
|
@@ -5030,23 +5040,23 @@ function Gp(e, t = {}) {
|
|
|
5030
5040
|
}));
|
|
5031
5041
|
}, {
|
|
5032
5042
|
cancel: () => {
|
|
5033
|
-
n &&= (s(n), void 0), r &&= (s(r), void 0), o.value = !1, a =
|
|
5043
|
+
n &&= (s(n), void 0), r &&= (s(r), void 0), o.value = !1, a = Bp;
|
|
5034
5044
|
},
|
|
5035
5045
|
flush: () => {
|
|
5036
5046
|
if (o.value) {
|
|
5037
5047
|
n &&= (clearTimeout(n), void 0), r &&= (clearTimeout(r), void 0), o.value = !1;
|
|
5038
5048
|
let e = a;
|
|
5039
|
-
i =
|
|
5049
|
+
i = Bp, a = Bp, e(c());
|
|
5040
5050
|
}
|
|
5041
5051
|
},
|
|
5042
5052
|
isPending: m(o)
|
|
5043
5053
|
});
|
|
5044
5054
|
}
|
|
5045
|
-
function
|
|
5046
|
-
let t = 0, n, r = !0, i =
|
|
5055
|
+
function qp(...e) {
|
|
5056
|
+
let t = 0, n, r = !0, i = Bp, a, o, c, l, u;
|
|
5047
5057
|
!s(e[0]) && typeof e[0] == "object" ? {delay: o, trailing: c = !0, leading: l = !0, rejectOnCancel: u = !1} = e[0] : [o, c = !0, l = !0, u = !1] = e;
|
|
5048
5058
|
let d = () => {
|
|
5049
|
-
n && (clearTimeout(n), n = void 0, i(), i =
|
|
5059
|
+
n && (clearTimeout(n), n = void 0, i(), i = Bp);
|
|
5050
5060
|
};
|
|
5051
5061
|
return (e) => {
|
|
5052
5062
|
let s = _(o), f = Date.now() - t, p = () => a = e();
|
|
@@ -5057,8 +5067,8 @@ function Kp(...e) {
|
|
|
5057
5067
|
})), !l && !n && (n = setTimeout(() => r = !0, s)), r = !1, a);
|
|
5058
5068
|
};
|
|
5059
5069
|
}
|
|
5060
|
-
function
|
|
5061
|
-
let { initialState: n = "active" } = t, r =
|
|
5070
|
+
function Jp(e = Gp, t = {}) {
|
|
5071
|
+
let { initialState: n = "active" } = t, r = Up(n === "active");
|
|
5062
5072
|
function i() {
|
|
5063
5073
|
r.value = !1;
|
|
5064
5074
|
}
|
|
@@ -5074,50 +5084,50 @@ function qp(e = Wp, t = {}) {
|
|
|
5074
5084
|
}
|
|
5075
5085
|
};
|
|
5076
5086
|
}
|
|
5077
|
-
function
|
|
5087
|
+
function Yp(e, t) {
|
|
5078
5088
|
if (typeof e == "number") return e + t;
|
|
5079
5089
|
let n = e.match(/^-?\d+\.?\d*/)?.[0] || "", r = e.slice(n.length), i = Number.parseFloat(n) + t;
|
|
5080
5090
|
return Number.isNaN(i) ? e : i + r;
|
|
5081
5091
|
}
|
|
5082
|
-
function
|
|
5092
|
+
function Xp(e) {
|
|
5083
5093
|
return e.endsWith("rem") ? Number.parseFloat(e) * 16 : Number.parseFloat(e);
|
|
5084
5094
|
}
|
|
5085
|
-
function
|
|
5095
|
+
function Zp(e, t, n = !1) {
|
|
5086
5096
|
return t.reduce((t, r) => (r in e && (n && e[r] === void 0 || (t[r] = e[r])), t), {});
|
|
5087
5097
|
}
|
|
5088
|
-
function
|
|
5098
|
+
function Qp(e) {
|
|
5089
5099
|
return Array.isArray(e) ? e : [e];
|
|
5090
5100
|
}
|
|
5091
|
-
function
|
|
5101
|
+
function $p(e) {
|
|
5092
5102
|
return e || r();
|
|
5093
5103
|
}
|
|
5094
|
-
function $p(e, t = 200, n = {}) {
|
|
5095
|
-
return Up(Gp(t, n), e);
|
|
5096
|
-
}
|
|
5097
5104
|
function em(e, t = 200, n = {}) {
|
|
5098
|
-
|
|
5105
|
+
return Wp(Kp(t, n), e);
|
|
5106
|
+
}
|
|
5107
|
+
function tm(e, t = 200, n = {}) {
|
|
5108
|
+
let r = p(_(e)), i = em(() => {
|
|
5099
5109
|
r.value = e.value;
|
|
5100
5110
|
}, t, n);
|
|
5101
5111
|
return v(e, () => i()), m(r);
|
|
5102
5112
|
}
|
|
5103
|
-
function
|
|
5104
|
-
return
|
|
5113
|
+
function nm(e, t = 200, n = !0, r = !0, i = !1) {
|
|
5114
|
+
return Wp(qp(t, n, r, i), e);
|
|
5105
5115
|
}
|
|
5106
|
-
function
|
|
5116
|
+
function rm(e, t = 200, n = !0, r = !0) {
|
|
5107
5117
|
if (t <= 0) return e;
|
|
5108
|
-
let i = p(_(e)), a =
|
|
5118
|
+
let i = p(_(e)), a = nm(() => {
|
|
5109
5119
|
i.value = e.value;
|
|
5110
5120
|
}, t, n, r);
|
|
5111
5121
|
return v(e, () => a()), i;
|
|
5112
5122
|
}
|
|
5113
|
-
function rm(e, t, n = {}) {
|
|
5114
|
-
let { eventFilter: r = Wp, ...i } = n;
|
|
5115
|
-
return v(e, Up(r, t), i);
|
|
5116
|
-
}
|
|
5117
5123
|
function im(e, t, n = {}) {
|
|
5118
|
-
let { eventFilter: r
|
|
5124
|
+
let { eventFilter: r = Gp, ...i } = n;
|
|
5125
|
+
return v(e, Wp(r, t), i);
|
|
5126
|
+
}
|
|
5127
|
+
function am(e, t, n = {}) {
|
|
5128
|
+
let { eventFilter: r, initialState: i = "active", ...a } = n, { eventFilter: o, pause: s, resume: c, isActive: l } = Jp(r, { initialState: i });
|
|
5119
5129
|
return {
|
|
5120
|
-
stop:
|
|
5130
|
+
stop: im(e, t, {
|
|
5121
5131
|
...a,
|
|
5122
5132
|
eventFilter: o
|
|
5123
5133
|
}),
|
|
@@ -5126,7 +5136,7 @@ function im(e, t, n = {}) {
|
|
|
5126
5136
|
isActive: l
|
|
5127
5137
|
};
|
|
5128
5138
|
}
|
|
5129
|
-
function
|
|
5139
|
+
function om(e, n = {}) {
|
|
5130
5140
|
if (!s(e)) return ee(e);
|
|
5131
5141
|
let r = Array.isArray(e.value) ? Array.from({ length: e.value.length }) : {};
|
|
5132
5142
|
for (let i in e.value) r[i] = t(() => ({
|
|
@@ -5150,15 +5160,15 @@ function am(e, n = {}) {
|
|
|
5150
5160
|
}));
|
|
5151
5161
|
return r;
|
|
5152
5162
|
}
|
|
5153
|
-
function
|
|
5154
|
-
|
|
5163
|
+
function sm(e, t = !0, n) {
|
|
5164
|
+
$p(n) ? l(e, n) : t ? e() : c(e);
|
|
5155
5165
|
}
|
|
5156
|
-
var
|
|
5157
|
-
function
|
|
5166
|
+
var cm = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[T\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/i, lm = /[YMDHhms]o|\[([^\]]+)\]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a{1,2}|A{1,2}|m{1,2}|s{1,2}|Z{1,2}|z{1,4}|SSS/g;
|
|
5167
|
+
function um(e, t, n, r) {
|
|
5158
5168
|
let i = e < 12 ? "AM" : "PM";
|
|
5159
5169
|
return r && (i = i.split("").reduce((e, t) => e += `${t}.`, "")), n ? i.toLowerCase() : i;
|
|
5160
5170
|
}
|
|
5161
|
-
function
|
|
5171
|
+
function dm(e) {
|
|
5162
5172
|
let t = [
|
|
5163
5173
|
"th",
|
|
5164
5174
|
"st",
|
|
@@ -5167,30 +5177,30 @@ function um(e) {
|
|
|
5167
5177
|
], n = e % 100;
|
|
5168
5178
|
return e + (t[(n - 20) % 10] || t[n] || t[0]);
|
|
5169
5179
|
}
|
|
5170
|
-
function
|
|
5171
|
-
let r = e.getFullYear(), i = e.getMonth(), a = e.getDate(), o = e.getHours(), s = e.getMinutes(), c = e.getSeconds(), l = e.getMilliseconds(), u = e.getDay(), d = n.customMeridiem ??
|
|
5172
|
-
Yo: () =>
|
|
5180
|
+
function fm(e, t, n = {}) {
|
|
5181
|
+
let r = e.getFullYear(), i = e.getMonth(), a = e.getDate(), o = e.getHours(), s = e.getMinutes(), c = e.getSeconds(), l = e.getMilliseconds(), u = e.getDay(), d = n.customMeridiem ?? um, f = (e) => e.split(" ")[1] ?? "", p = {
|
|
5182
|
+
Yo: () => dm(r),
|
|
5173
5183
|
YY: () => String(r).slice(-2),
|
|
5174
5184
|
YYYY: () => r,
|
|
5175
5185
|
M: () => i + 1,
|
|
5176
|
-
Mo: () =>
|
|
5186
|
+
Mo: () => dm(i + 1),
|
|
5177
5187
|
MM: () => `${i + 1}`.padStart(2, "0"),
|
|
5178
5188
|
MMM: () => e.toLocaleDateString(_(n.locales), { month: "short" }),
|
|
5179
5189
|
MMMM: () => e.toLocaleDateString(_(n.locales), { month: "long" }),
|
|
5180
5190
|
D: () => String(a),
|
|
5181
|
-
Do: () =>
|
|
5191
|
+
Do: () => dm(a),
|
|
5182
5192
|
DD: () => `${a}`.padStart(2, "0"),
|
|
5183
5193
|
H: () => String(o),
|
|
5184
|
-
Ho: () =>
|
|
5194
|
+
Ho: () => dm(o),
|
|
5185
5195
|
HH: () => `${o}`.padStart(2, "0"),
|
|
5186
5196
|
h: () => `${o % 12 || 12}`.padStart(1, "0"),
|
|
5187
|
-
ho: () =>
|
|
5197
|
+
ho: () => dm(o % 12 || 12),
|
|
5188
5198
|
hh: () => `${o % 12 || 12}`.padStart(2, "0"),
|
|
5189
5199
|
m: () => String(s),
|
|
5190
|
-
mo: () =>
|
|
5200
|
+
mo: () => dm(s),
|
|
5191
5201
|
mm: () => `${s}`.padStart(2, "0"),
|
|
5192
5202
|
s: () => String(c),
|
|
5193
|
-
so: () =>
|
|
5203
|
+
so: () => dm(c),
|
|
5194
5204
|
ss: () => `${c}`.padStart(2, "0"),
|
|
5195
5205
|
SSS: () => `${l}`.padStart(3, "0"),
|
|
5196
5206
|
d: () => u,
|
|
@@ -5206,14 +5216,14 @@ function dm(e, t, n = {}) {
|
|
|
5206
5216
|
zzz: () => f(e.toLocaleDateString(_(n.locales), { timeZoneName: "shortOffset" })),
|
|
5207
5217
|
zzzz: () => f(e.toLocaleDateString(_(n.locales), { timeZoneName: "longOffset" }))
|
|
5208
5218
|
};
|
|
5209
|
-
return t.replace(
|
|
5219
|
+
return t.replace(lm, (e, t) => t ?? p[e]?.call(p) ?? e);
|
|
5210
5220
|
}
|
|
5211
|
-
function
|
|
5221
|
+
function pm(e) {
|
|
5212
5222
|
if (e === null) return /* @__PURE__ */ new Date(NaN);
|
|
5213
5223
|
if (e === void 0) return /* @__PURE__ */ new Date();
|
|
5214
5224
|
if (e instanceof Date) return new Date(e);
|
|
5215
5225
|
if (typeof e == "string" && !/Z$/i.test(e)) {
|
|
5216
|
-
let t = e.match(
|
|
5226
|
+
let t = e.match(cm);
|
|
5217
5227
|
if (t) {
|
|
5218
5228
|
let e = t[2] - 1 || 0, n = (t[7] || "0").substring(0, 3);
|
|
5219
5229
|
return new Date(t[1], e, t[3] || 1, t[4] || 0, t[5] || 0, t[6] || 0, n);
|
|
@@ -5221,10 +5231,10 @@ function fm(e) {
|
|
|
5221
5231
|
}
|
|
5222
5232
|
return new Date(e);
|
|
5223
5233
|
}
|
|
5224
|
-
function
|
|
5225
|
-
return e(() =>
|
|
5234
|
+
function mm(t, n = "HH:mm:ss", r = {}) {
|
|
5235
|
+
return e(() => fm(pm(_(t)), _(n), r));
|
|
5226
5236
|
}
|
|
5227
|
-
function
|
|
5237
|
+
function hm(e, t = 1e3, n = {}) {
|
|
5228
5238
|
let { immediate: r = !0, immediateCallback: i = !1 } = n, a = null, o = h(!1);
|
|
5229
5239
|
function c() {
|
|
5230
5240
|
a &&= (clearInterval(a), null);
|
|
@@ -5236,18 +5246,18 @@ function mm(e, t = 1e3, n = {}) {
|
|
|
5236
5246
|
let n = _(t);
|
|
5237
5247
|
n <= 0 || (o.value = !0, i && e(), c(), o.value && (a = setInterval(e, n)));
|
|
5238
5248
|
}
|
|
5239
|
-
return r &&
|
|
5240
|
-
o.value &&
|
|
5241
|
-
})),
|
|
5249
|
+
return r && Fp && u(), (s(t) || typeof t == "function") && Mp(v(t, () => {
|
|
5250
|
+
o.value && Fp && u();
|
|
5251
|
+
})), Mp(l), {
|
|
5242
5252
|
isActive: m(o),
|
|
5243
5253
|
pause: l,
|
|
5244
5254
|
resume: u
|
|
5245
5255
|
};
|
|
5246
5256
|
}
|
|
5247
|
-
function
|
|
5257
|
+
function gm(e = 1e3, t = {}) {
|
|
5248
5258
|
let { controls: n = !1, immediate: r = !0, callback: i } = t, a = h(0), o = () => a.value += 1, s = () => {
|
|
5249
5259
|
a.value = 0;
|
|
5250
|
-
}, c =
|
|
5260
|
+
}, c = hm(i ? () => {
|
|
5251
5261
|
o(), i(a.value);
|
|
5252
5262
|
} : o, e, { immediate: r });
|
|
5253
5263
|
return n ? {
|
|
@@ -5256,13 +5266,13 @@ function hm(e = 1e3, t = {}) {
|
|
|
5256
5266
|
...c
|
|
5257
5267
|
} : m(a);
|
|
5258
5268
|
}
|
|
5259
|
-
function
|
|
5269
|
+
function _m(e, t, n) {
|
|
5260
5270
|
return v(e, t, {
|
|
5261
5271
|
...n,
|
|
5262
5272
|
immediate: !0
|
|
5263
5273
|
});
|
|
5264
5274
|
}
|
|
5265
|
-
function
|
|
5275
|
+
function vm(e, t, n) {
|
|
5266
5276
|
let r = v(e, (e, i, a) => {
|
|
5267
5277
|
e && (n?.once && c(() => r()), t(e, i, a));
|
|
5268
5278
|
}, {
|
|
@@ -5272,46 +5282,46 @@ function _m(e, t, n) {
|
|
|
5272
5282
|
return r;
|
|
5273
5283
|
}
|
|
5274
5284
|
// node_modules/.pnpm/@vueuse+core@15.0.0_vue@3.5.45_typescript@6.0.3_/node_modules/@vueuse/core/dist/index.js
|
|
5275
|
-
var Q =
|
|
5276
|
-
|
|
5277
|
-
function
|
|
5285
|
+
var Q = Fp ? window : void 0, ym = Fp ? window.document : void 0, bm = Fp ? window.navigator : void 0;
|
|
5286
|
+
Fp && window.location;
|
|
5287
|
+
function xm(e) {
|
|
5278
5288
|
let t = _(e);
|
|
5279
5289
|
return t?.$el ?? t;
|
|
5280
5290
|
}
|
|
5281
5291
|
function $(...t) {
|
|
5282
5292
|
let n = (e, t, n, r) => (e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r)), r = e(() => {
|
|
5283
|
-
let e =
|
|
5293
|
+
let e = Qp(_(t[0])).filter((e) => e != null);
|
|
5284
5294
|
return e.every((e) => typeof e != "string") ? e : void 0;
|
|
5285
5295
|
});
|
|
5286
|
-
return
|
|
5287
|
-
r.value?.map((e) =>
|
|
5288
|
-
|
|
5289
|
-
|
|
5296
|
+
return _m(() => [
|
|
5297
|
+
r.value?.map((e) => xm(e)) ?? [Q].filter((e) => e != null),
|
|
5298
|
+
Qp(_(r.value ? t[1] : t[0])),
|
|
5299
|
+
Qp(te(r.value ? t[2] : t[1])),
|
|
5290
5300
|
_(r.value ? t[3] : t[2])
|
|
5291
5301
|
], ([e, t, r, i], a, o) => {
|
|
5292
5302
|
if (!e?.length || !t?.length || !r?.length) return;
|
|
5293
|
-
let s =
|
|
5303
|
+
let s = Rp(i) ? { ...i } : i, c = e.flatMap((e) => t.flatMap((t) => r.map((r) => n(e, t, r, s))));
|
|
5294
5304
|
o(() => {
|
|
5295
5305
|
c.forEach((e) => e());
|
|
5296
5306
|
});
|
|
5297
5307
|
}, { flush: "post" });
|
|
5298
5308
|
}
|
|
5299
|
-
function
|
|
5309
|
+
function Sm() {
|
|
5300
5310
|
let e = h(!1), t = r();
|
|
5301
5311
|
return t && l(() => {
|
|
5302
5312
|
e.value = !0;
|
|
5303
5313
|
}, t), e;
|
|
5304
5314
|
}
|
|
5305
5315
|
/* @__NO_SIDE_EFFECTS__ */
|
|
5306
|
-
function
|
|
5307
|
-
let n =
|
|
5316
|
+
function Cm(t) {
|
|
5317
|
+
let n = Sm();
|
|
5308
5318
|
return e(() => (n.value, !!t()));
|
|
5309
5319
|
}
|
|
5310
|
-
function
|
|
5311
|
-
let { window: i = Q, ...a } = r, o, s = /* @__PURE__ */
|
|
5320
|
+
function wm(t, n, r = {}) {
|
|
5321
|
+
let { window: i = Q, ...a } = r, o, s = /* @__PURE__ */ Cm(() => i && "MutationObserver" in i), c = () => {
|
|
5312
5322
|
o &&= (o.disconnect(), void 0);
|
|
5313
5323
|
}, l = e(() => {
|
|
5314
|
-
let e =
|
|
5324
|
+
let e = Qp(_(t)).map(xm).filter(Ip);
|
|
5315
5325
|
return new Set(e);
|
|
5316
5326
|
}), u = v(l, (e) => {
|
|
5317
5327
|
c(), s.value && e.size && (o = new MutationObserver(n), e.forEach((e) => o.observe(e, a)));
|
|
@@ -5321,13 +5331,13 @@ function Cm(t, n, r = {}) {
|
|
|
5321
5331
|
}), d = () => o?.takeRecords(), f = () => {
|
|
5322
5332
|
u(), c();
|
|
5323
5333
|
};
|
|
5324
|
-
return
|
|
5334
|
+
return Mp(f), {
|
|
5325
5335
|
isSupported: s,
|
|
5326
5336
|
stop: f,
|
|
5327
5337
|
takeRecords: d
|
|
5328
5338
|
};
|
|
5329
5339
|
}
|
|
5330
|
-
function
|
|
5340
|
+
function Tm(t, n = {}) {
|
|
5331
5341
|
let { immediate: r = !0, fpsLimit: i = null, window: a = Q, once: o = !1 } = n, s = h(!1), c = e(() => {
|
|
5332
5342
|
let e = _(i);
|
|
5333
5343
|
return e ? 1e3 / e : null;
|
|
@@ -5347,19 +5357,19 @@ function wm(t, n = {}) {
|
|
|
5347
5357
|
function p() {
|
|
5348
5358
|
s.value = !1, u != null && a && (a.cancelAnimationFrame(u), u = null);
|
|
5349
5359
|
}
|
|
5350
|
-
return r && f(),
|
|
5360
|
+
return r && f(), Mp(p), {
|
|
5351
5361
|
isActive: m(s),
|
|
5352
5362
|
pause: p,
|
|
5353
5363
|
resume: f
|
|
5354
5364
|
};
|
|
5355
5365
|
}
|
|
5356
|
-
function
|
|
5357
|
-
let { navigator: t =
|
|
5366
|
+
function Em(e = {}) {
|
|
5367
|
+
let { navigator: t = bm } = e, n = [
|
|
5358
5368
|
"chargingchange",
|
|
5359
5369
|
"chargingtimechange",
|
|
5360
5370
|
"dischargingtimechange",
|
|
5361
5371
|
"levelchange"
|
|
5362
|
-
], r = /* @__PURE__ */
|
|
5372
|
+
], r = /* @__PURE__ */ Cm(() => t && "getBattery" in t && typeof t.getBattery == "function"), i = h(!1), a = h(0), o = h(0), s = h(1), c;
|
|
5363
5373
|
function l() {
|
|
5364
5374
|
i.value = this.charging, a.value = this.chargingTime || 0, o.value = this.dischargingTime || 0, s.value = this.level;
|
|
5365
5375
|
}
|
|
@@ -5373,78 +5383,78 @@ function Tm(e = {}) {
|
|
|
5373
5383
|
level: s
|
|
5374
5384
|
};
|
|
5375
5385
|
}
|
|
5376
|
-
var
|
|
5386
|
+
var Dm = Symbol("vueuse-ssr-width");
|
|
5377
5387
|
/* @__NO_SIDE_EFFECTS__ */
|
|
5378
|
-
function
|
|
5379
|
-
let e = a() ? /* @__PURE__ */
|
|
5388
|
+
function Om() {
|
|
5389
|
+
let e = a() ? /* @__PURE__ */ Pp(Dm, null) : null;
|
|
5380
5390
|
return typeof e == "number" ? e : void 0;
|
|
5381
5391
|
}
|
|
5382
|
-
function
|
|
5383
|
-
let { window: r = Q, ssrWidth: i = /* @__PURE__ */
|
|
5392
|
+
function km(t, n = {}) {
|
|
5393
|
+
let { window: r = Q, ssrWidth: i = /* @__PURE__ */ Om() } = n, a = /* @__PURE__ */ Cm(() => r && "matchMedia" in r && typeof r.matchMedia == "function"), o = h(typeof i == "number"), s = h(), c = h(!1);
|
|
5384
5394
|
return ne(() => {
|
|
5385
5395
|
if (o.value) {
|
|
5386
5396
|
o.value = !a.value;
|
|
5387
5397
|
let e = _(t).split(",");
|
|
5388
5398
|
c.value = e.some((e) => {
|
|
5389
5399
|
let t = e.includes("not all"), n = e.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/), r = e.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/), a = !!(n || r);
|
|
5390
|
-
return n && a && (a = i >=
|
|
5400
|
+
return n && a && (a = i >= Xp(n[1])), r && a && (a = i <= Xp(r[1])), t ? !a : a;
|
|
5391
5401
|
});
|
|
5392
5402
|
} else a.value && (s.value = r.matchMedia(_(t)), c.value = s.value.matches);
|
|
5393
5403
|
}), $(s, "change", (e) => {
|
|
5394
5404
|
c.value = e.matches;
|
|
5395
5405
|
}, { passive: !0 }), e(() => c.value);
|
|
5396
5406
|
}
|
|
5397
|
-
var
|
|
5407
|
+
var Am = {
|
|
5398
5408
|
sm: 640,
|
|
5399
5409
|
md: 768,
|
|
5400
5410
|
lg: 1024,
|
|
5401
5411
|
xl: 1280,
|
|
5402
5412
|
"2xl": 1536
|
|
5403
|
-
},
|
|
5413
|
+
}, jm = {
|
|
5404
5414
|
xs: 0,
|
|
5405
5415
|
sm: 576,
|
|
5406
5416
|
md: 768,
|
|
5407
5417
|
lg: 992,
|
|
5408
5418
|
xl: 1200,
|
|
5409
5419
|
xxl: 1400
|
|
5410
|
-
},
|
|
5420
|
+
}, Mm = {
|
|
5411
5421
|
xs: 0,
|
|
5412
5422
|
sm: 600,
|
|
5413
5423
|
md: 960,
|
|
5414
5424
|
lg: 1280,
|
|
5415
5425
|
xl: 1920,
|
|
5416
5426
|
xxl: 2560
|
|
5417
|
-
},
|
|
5427
|
+
}, Nm = {
|
|
5418
5428
|
xs: 480,
|
|
5419
5429
|
sm: 576,
|
|
5420
5430
|
md: 768,
|
|
5421
5431
|
lg: 992,
|
|
5422
5432
|
xl: 1200,
|
|
5423
5433
|
xxl: 1600
|
|
5424
|
-
},
|
|
5434
|
+
}, Pm = {
|
|
5425
5435
|
xs: 0,
|
|
5426
5436
|
sm: 600,
|
|
5427
5437
|
md: 1024,
|
|
5428
5438
|
lg: 1440,
|
|
5429
5439
|
xl: 1920
|
|
5430
|
-
},
|
|
5440
|
+
}, Fm = {
|
|
5431
5441
|
xs: 0,
|
|
5432
5442
|
sm: 768,
|
|
5433
5443
|
md: 992,
|
|
5434
5444
|
lg: 1200,
|
|
5435
5445
|
xl: 1920
|
|
5436
5446
|
};
|
|
5437
|
-
function
|
|
5447
|
+
function Im(t, n = {}) {
|
|
5438
5448
|
function r(e, n) {
|
|
5439
5449
|
let r = _(t[_(e)]);
|
|
5440
|
-
return n != null && (r =
|
|
5450
|
+
return n != null && (r = Yp(r, n)), typeof r == "number" && (r = `${r}px`), r;
|
|
5441
5451
|
}
|
|
5442
|
-
let { window: i = Q, strategy: a = "min-width", ssrWidth: o = /* @__PURE__ */
|
|
5443
|
-
s &&
|
|
5452
|
+
let { window: i = Q, strategy: a = "min-width", ssrWidth: o = /* @__PURE__ */ Om() } = n, s = typeof o == "number", c = s ? h(!1) : { value: !0 };
|
|
5453
|
+
s && sm(() => c.value = !!i);
|
|
5444
5454
|
function l(e, t) {
|
|
5445
|
-
return !c.value && s ? e === "min" ? o >=
|
|
5455
|
+
return !c.value && s ? e === "min" ? o >= Xp(t) : o <= Xp(t) : i ? i.matchMedia(`(${e}-width: ${t})`).matches : !1;
|
|
5446
5456
|
}
|
|
5447
|
-
let u = (e) =>
|
|
5457
|
+
let u = (e) => km(() => `(min-width: ${r(e)})`, n), d = (e) => km(() => `(max-width: ${r(e)})`, n), f = Object.keys(t).reduce((e, t) => (Object.defineProperty(e, t, {
|
|
5448
5458
|
get: () => a === "min-width" ? u(t) : d(t),
|
|
5449
5459
|
enumerable: !0,
|
|
5450
5460
|
configurable: !0
|
|
@@ -5453,7 +5463,7 @@ function Fm(t, n = {}) {
|
|
|
5453
5463
|
let n = Object.keys(t).map((e) => [
|
|
5454
5464
|
e,
|
|
5455
5465
|
f[e],
|
|
5456
|
-
|
|
5466
|
+
Xp(r(e))
|
|
5457
5467
|
]).sort((e, t) => e[2] - t[2]);
|
|
5458
5468
|
return e(() => n.filter(([, e]) => e.value).map(([e]) => e));
|
|
5459
5469
|
}
|
|
@@ -5461,13 +5471,13 @@ function Fm(t, n = {}) {
|
|
|
5461
5471
|
greaterOrEqual: u,
|
|
5462
5472
|
smallerOrEqual: d,
|
|
5463
5473
|
greater(e) {
|
|
5464
|
-
return
|
|
5474
|
+
return km(() => `(min-width: ${r(e, .1)})`, n);
|
|
5465
5475
|
},
|
|
5466
5476
|
smaller(e) {
|
|
5467
|
-
return
|
|
5477
|
+
return km(() => `(max-width: ${r(e, -.1)})`, n);
|
|
5468
5478
|
},
|
|
5469
5479
|
between(e, t) {
|
|
5470
|
-
return
|
|
5480
|
+
return km(() => `(min-width: ${r(e)}) and (max-width: ${r(t, -.1)})`, n);
|
|
5471
5481
|
},
|
|
5472
5482
|
isGreater(e) {
|
|
5473
5483
|
return l("min", r(e, .1));
|
|
@@ -5491,20 +5501,20 @@ function Fm(t, n = {}) {
|
|
|
5491
5501
|
}
|
|
5492
5502
|
});
|
|
5493
5503
|
}
|
|
5494
|
-
var
|
|
5495
|
-
function
|
|
5496
|
-
return
|
|
5504
|
+
var Lm = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Rm = "__vueuse_ssr_handlers__", zm = /* #__PURE__ */ Bm();
|
|
5505
|
+
function Bm() {
|
|
5506
|
+
return Rm in Lm || (Lm[Rm] = Lm[Rm] || {}), Lm[Rm];
|
|
5497
5507
|
}
|
|
5498
|
-
function
|
|
5499
|
-
return
|
|
5500
|
-
}
|
|
5501
|
-
function Vm(e) {
|
|
5502
|
-
return Om("(prefers-color-scheme: dark)", e);
|
|
5508
|
+
function Vm(e, t) {
|
|
5509
|
+
return zm[e] || t;
|
|
5503
5510
|
}
|
|
5504
5511
|
function Hm(e) {
|
|
5512
|
+
return km("(prefers-color-scheme: dark)", e);
|
|
5513
|
+
}
|
|
5514
|
+
function Um(e) {
|
|
5505
5515
|
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";
|
|
5506
5516
|
}
|
|
5507
|
-
var
|
|
5517
|
+
var Wm = {
|
|
5508
5518
|
boolean: {
|
|
5509
5519
|
read: (e) => e === "true",
|
|
5510
5520
|
write: (e) => String(e)
|
|
@@ -5537,18 +5547,18 @@ var Um = {
|
|
|
5537
5547
|
read: (e) => new Date(e),
|
|
5538
5548
|
write: (e) => e.toISOString()
|
|
5539
5549
|
}
|
|
5540
|
-
},
|
|
5541
|
-
function
|
|
5550
|
+
}, Gm = "vueuse-storage";
|
|
5551
|
+
function Km(t, n, r, i = {}) {
|
|
5542
5552
|
let { flush: a = "pre", deep: o = !0, listenToStorageChanges: s = !0, writeDefaults: l = !0, mergeDefaults: u = !1, shallow: d, window: f = Q, eventFilter: m, onError: g = (e) => {
|
|
5543
5553
|
console.error(e);
|
|
5544
5554
|
}, initOnMounted: ee } = i, te = (d ? h : p)(typeof n == "function" ? n() : n), ne = e(() => _(t));
|
|
5545
5555
|
if (!r) try {
|
|
5546
|
-
r =
|
|
5556
|
+
r = Vm("getDefaultStorage", () => Q?.localStorage)();
|
|
5547
5557
|
} catch (e) {
|
|
5548
5558
|
g(e);
|
|
5549
5559
|
}
|
|
5550
5560
|
if (!r) return te;
|
|
5551
|
-
let re = _(n), ie =
|
|
5561
|
+
let re = _(n), ie = Um(re), y = i.serializer ?? Wm[ie], { pause: b, resume: ae } = am(te, (e) => x(e), {
|
|
5552
5562
|
flush: a,
|
|
5553
5563
|
deep: o,
|
|
5554
5564
|
eventFilter: m
|
|
@@ -5557,9 +5567,9 @@ function Gm(t, n, r, i = {}) {
|
|
|
5557
5567
|
let oe = !1;
|
|
5558
5568
|
f && s && (r instanceof Storage ? $(f, "storage", (e) => {
|
|
5559
5569
|
(!ee || oe) && ce(e);
|
|
5560
|
-
}, { passive: !0 }) : $(f,
|
|
5570
|
+
}, { passive: !0 }) : $(f, Gm, (e) => {
|
|
5561
5571
|
(!ee || oe) && le(e);
|
|
5562
|
-
})), ee ?
|
|
5572
|
+
})), ee ? sm(() => {
|
|
5563
5573
|
oe = !0, ce();
|
|
5564
5574
|
}) : ce();
|
|
5565
5575
|
function se(e, t) {
|
|
@@ -5570,7 +5580,7 @@ function Gm(t, n, r, i = {}) {
|
|
|
5570
5580
|
newValue: t,
|
|
5571
5581
|
storageArea: r
|
|
5572
5582
|
};
|
|
5573
|
-
f.dispatchEvent(r instanceof Storage ? new StorageEvent("storage", n) : new CustomEvent(
|
|
5583
|
+
f.dispatchEvent(r instanceof Storage ? new StorageEvent("storage", n) : new CustomEvent(Gm, { detail: n }));
|
|
5574
5584
|
}
|
|
5575
5585
|
}
|
|
5576
5586
|
function x(e) {
|
|
@@ -5618,18 +5628,18 @@ function Gm(t, n, r, i = {}) {
|
|
|
5618
5628
|
}
|
|
5619
5629
|
return te;
|
|
5620
5630
|
}
|
|
5621
|
-
var
|
|
5622
|
-
function
|
|
5631
|
+
var qm = "*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";
|
|
5632
|
+
function Jm(t = {}) {
|
|
5623
5633
|
let { selector: n = "html", attribute: r = "class", initialValue: i = "auto", window: a = Q, storage: o, storageKey: s = "vueuse-color-scheme", listenToStorageChanges: c = !0, storageRef: l, emitAuto: u, disableTransition: d = !0 } = t, f = {
|
|
5624
5634
|
auto: "",
|
|
5625
5635
|
light: "light",
|
|
5626
5636
|
dark: "dark",
|
|
5627
5637
|
...t.modes || {}
|
|
5628
|
-
}, p =
|
|
5638
|
+
}, p = Hm({ window: a }), m = e(() => p.value ? "dark" : "light"), h = l || (s == null ? Up(i) : Km(s, i, o, {
|
|
5629
5639
|
window: a,
|
|
5630
5640
|
listenToStorageChanges: c
|
|
5631
|
-
})), g = e(() => h.value === "auto" ? m.value : h.value), ee =
|
|
5632
|
-
let r = typeof e == "string" ? a?.document.querySelector(e) :
|
|
5641
|
+
})), g = e(() => h.value === "auto" ? m.value : h.value), ee = Vm("updateHTMLAttrs", (e, t, n) => {
|
|
5642
|
+
let r = typeof e == "string" ? a?.document.querySelector(e) : xm(e);
|
|
5633
5643
|
if (!r) return;
|
|
5634
5644
|
let i = /* @__PURE__ */ new Set(), o = /* @__PURE__ */ new Set(), s = null;
|
|
5635
5645
|
if (t === "class") {
|
|
@@ -5643,7 +5653,7 @@ function qm(t = {}) {
|
|
|
5643
5653
|
};
|
|
5644
5654
|
if (i.size === 0 && o.size === 0 && s === null) return;
|
|
5645
5655
|
let c;
|
|
5646
|
-
d && (c = a.document.createElement("style"), c.appendChild(document.createTextNode(
|
|
5656
|
+
d && (c = a.document.createElement("style"), c.appendChild(document.createTextNode(qm)), a.document.head.appendChild(c));
|
|
5647
5657
|
for (let e of i) r.classList.add(e);
|
|
5648
5658
|
for (let e of o) r.classList.remove(e);
|
|
5649
5659
|
s && r.setAttribute(s.key, s.value), d && (a.getComputedStyle(c).opacity, document.head.removeChild(c));
|
|
@@ -5657,7 +5667,7 @@ function qm(t = {}) {
|
|
|
5657
5667
|
v(g, te, {
|
|
5658
5668
|
flush: "post",
|
|
5659
5669
|
immediate: !0
|
|
5660
|
-
}),
|
|
5670
|
+
}), sm(() => te(g.value));
|
|
5661
5671
|
let ne = e({
|
|
5662
5672
|
get() {
|
|
5663
5673
|
return u ? h.value : g.value;
|
|
@@ -5672,8 +5682,8 @@ function qm(t = {}) {
|
|
|
5672
5682
|
state: g
|
|
5673
5683
|
});
|
|
5674
5684
|
}
|
|
5675
|
-
function
|
|
5676
|
-
let n = h(_(e)), { scheduler: r = (e) =>
|
|
5685
|
+
function Ym(e, t = {}) {
|
|
5686
|
+
let n = h(_(e)), { scheduler: r = (e) => hm(e, 1e3, { immediate: !1 }), onTick: i, onComplete: a } = t, o = r(() => {
|
|
5677
5687
|
let e = n.value - 1;
|
|
5678
5688
|
n.value = e < 0 ? 0 : e, i?.(), n.value <= 0 && (o.pause(), a?.());
|
|
5679
5689
|
}), s = (t) => {
|
|
@@ -5695,30 +5705,30 @@ function Jm(e, t = {}) {
|
|
|
5695
5705
|
isActive: o.isActive
|
|
5696
5706
|
};
|
|
5697
5707
|
}
|
|
5698
|
-
function
|
|
5699
|
-
let { window: t = Q } = e, n = h(1), r =
|
|
5700
|
-
return t && (i =
|
|
5708
|
+
function Xm(e = {}) {
|
|
5709
|
+
let { window: t = Q } = e, n = h(1), r = km(() => `(resolution: ${n.value}dppx)`, e), i = Bp;
|
|
5710
|
+
return t && (i = _m(r, () => n.value = t.devicePixelRatio)), {
|
|
5701
5711
|
pixelRatio: m(n),
|
|
5702
5712
|
stop: i
|
|
5703
5713
|
};
|
|
5704
5714
|
}
|
|
5705
|
-
function
|
|
5706
|
-
let { document: t =
|
|
5715
|
+
function Zm(e = {}) {
|
|
5716
|
+
let { document: t = ym } = e;
|
|
5707
5717
|
if (!t) return h("visible");
|
|
5708
5718
|
let n = h(t.visibilityState);
|
|
5709
5719
|
return $(t, "visibilitychange", () => {
|
|
5710
5720
|
n.value = t.visibilityState;
|
|
5711
5721
|
}, { passive: !0 }), n;
|
|
5712
5722
|
}
|
|
5713
|
-
var
|
|
5723
|
+
var Qm = [
|
|
5714
5724
|
"fullscreenchange",
|
|
5715
5725
|
"webkitfullscreenchange",
|
|
5716
5726
|
"webkitendfullscreen",
|
|
5717
5727
|
"mozfullscreenchange",
|
|
5718
5728
|
"MSFullscreenChange"
|
|
5719
5729
|
];
|
|
5720
|
-
function
|
|
5721
|
-
let { document: r =
|
|
5730
|
+
function $m(t, n = {}) {
|
|
5731
|
+
let { document: r = ym, autoExit: i = !1 } = n, a = e(() => xm(t) ?? r?.documentElement), o = h(!1), s = e(() => [
|
|
5722
5732
|
"requestFullscreen",
|
|
5723
5733
|
"webkitRequestFullscreen",
|
|
5724
5734
|
"webkitEnterFullscreen",
|
|
@@ -5744,7 +5754,7 @@ function Qm(t, n = {}) {
|
|
|
5744
5754
|
"webkitFullscreenElement",
|
|
5745
5755
|
"mozFullScreenElement",
|
|
5746
5756
|
"msFullscreenElement"
|
|
5747
|
-
].find((e) => r && e in r), d = /* @__PURE__ */
|
|
5757
|
+
].find((e) => r && e in r), d = /* @__PURE__ */ Cm(() => a.value && r && s.value !== void 0 && c.value !== void 0 && l.value !== void 0), f = () => u ? r?.[u] === a.value : !1, p = () => {
|
|
5748
5758
|
if (l.value) {
|
|
5749
5759
|
if (r && r[l.value] != null) return r[l.value];
|
|
5750
5760
|
{
|
|
@@ -5782,7 +5792,7 @@ function Qm(t, n = {}) {
|
|
|
5782
5792
|
capture: !1,
|
|
5783
5793
|
passive: !0
|
|
5784
5794
|
};
|
|
5785
|
-
return $(r,
|
|
5795
|
+
return $(r, Qm, _, te), $(() => xm(a), Qm, _, te), sm(_, !1), i && Mp(m), {
|
|
5786
5796
|
isSupported: d,
|
|
5787
5797
|
isFullscreen: o,
|
|
5788
5798
|
enter: g,
|
|
@@ -5790,8 +5800,8 @@ function Qm(t, n = {}) {
|
|
|
5790
5800
|
toggle: ee
|
|
5791
5801
|
};
|
|
5792
5802
|
}
|
|
5793
|
-
function
|
|
5794
|
-
let { enableHighAccuracy: t = !0, maximumAge: n = 3e4, timeout: r = 27e3, navigator: i =
|
|
5803
|
+
function eh(e = {}) {
|
|
5804
|
+
let { enableHighAccuracy: t = !0, maximumAge: n = 3e4, timeout: r = 27e3, navigator: i = bm, immediate: a = !0 } = e, o = /* @__PURE__ */ Cm(() => i && "geolocation" in i), s = h(null), c = h(null), l = h({
|
|
5795
5805
|
accuracy: 0,
|
|
5796
5806
|
latitude: Infinity,
|
|
5797
5807
|
longitude: Infinity,
|
|
@@ -5815,7 +5825,7 @@ function $m(e = {}) {
|
|
|
5815
5825
|
function p() {
|
|
5816
5826
|
d && i && i.geolocation.clearWatch(d);
|
|
5817
5827
|
}
|
|
5818
|
-
return
|
|
5828
|
+
return Mp(() => {
|
|
5819
5829
|
p();
|
|
5820
5830
|
}), {
|
|
5821
5831
|
isSupported: o,
|
|
@@ -5826,19 +5836,19 @@ function $m(e = {}) {
|
|
|
5826
5836
|
pause: p
|
|
5827
5837
|
};
|
|
5828
5838
|
}
|
|
5829
|
-
var
|
|
5839
|
+
var th = [
|
|
5830
5840
|
"mousemove",
|
|
5831
5841
|
"mousedown",
|
|
5832
5842
|
"resize",
|
|
5833
5843
|
"keydown",
|
|
5834
5844
|
"touchstart",
|
|
5835
5845
|
"wheel"
|
|
5836
|
-
],
|
|
5837
|
-
function
|
|
5838
|
-
let { initialState: n = !1, listenForVisibilityChange: r = !0, events: i =
|
|
5846
|
+
], nh = 6e4;
|
|
5847
|
+
function rh(e = nh, t = {}) {
|
|
5848
|
+
let { initialState: n = !1, listenForVisibilityChange: r = !0, events: i = th, window: a = Q, eventFilter: o = qp(50) } = t, s = h(n), c = h(zp()), l = h(!1), u, d = () => {
|
|
5839
5849
|
s.value = !1, clearTimeout(u), u = setTimeout(() => s.value = !0, e);
|
|
5840
|
-
}, f =
|
|
5841
|
-
c.value =
|
|
5850
|
+
}, f = Wp(o, () => {
|
|
5851
|
+
c.value = zp(), d();
|
|
5842
5852
|
});
|
|
5843
5853
|
if (a) {
|
|
5844
5854
|
let e = a.document, t = { passive: !0 };
|
|
@@ -5864,12 +5874,12 @@ function nh(e = th, t = {}) {
|
|
|
5864
5874
|
isPending: m(l)
|
|
5865
5875
|
};
|
|
5866
5876
|
}
|
|
5867
|
-
function
|
|
5877
|
+
function ih(e) {
|
|
5868
5878
|
return typeof Window < "u" && e instanceof Window ? e.document.documentElement : typeof Document < "u" && e instanceof Document ? e.documentElement : e;
|
|
5869
5879
|
}
|
|
5870
|
-
var
|
|
5871
|
-
function
|
|
5872
|
-
let { throttle: r = 0, idle: i = 200, onStop: a =
|
|
5880
|
+
var ah = 1;
|
|
5881
|
+
function oh(t, n = {}) {
|
|
5882
|
+
let { throttle: r = 0, idle: i = 200, onStop: a = Bp, onScroll: o = Bp, offset: s = {
|
|
5873
5883
|
left: 0,
|
|
5874
5884
|
right: 0,
|
|
5875
5885
|
top: 0,
|
|
@@ -5919,23 +5929,23 @@ function ah(t, n = {}) {
|
|
|
5919
5929
|
bottom: !1
|
|
5920
5930
|
}), b = (e) => {
|
|
5921
5931
|
re.value && (re.value = !1, y.left = !1, y.right = !1, y.top = !1, y.bottom = !1, a(e));
|
|
5922
|
-
}, ae =
|
|
5932
|
+
}, ae = em(b, r + i), oe = (e) => {
|
|
5923
5933
|
var t;
|
|
5924
5934
|
if (!f) return;
|
|
5925
|
-
let n = (e == null || (t = e.document) == null ? void 0 : t.documentElement) || e?.documentElement ||
|
|
5935
|
+
let n = (e == null || (t = e.document) == null ? void 0 : t.documentElement) || e?.documentElement || xm(e), { display: r, flexDirection: i, direction: a } = f.getComputedStyle(n), o = a === "rtl" ? -1 : 1, c = n.scrollLeft;
|
|
5926
5936
|
y.left = c < g.value, y.right = c > g.value;
|
|
5927
|
-
let l = Math.abs(c * o) <= (s.left || 0), u = Math.abs(c * o) + n.clientWidth >= n.scrollWidth - (s.right || 0) -
|
|
5937
|
+
let l = Math.abs(c * o) <= (s.left || 0), u = Math.abs(c * o) + n.clientWidth >= n.scrollWidth - (s.right || 0) - ah;
|
|
5928
5938
|
r === "flex" && i === "row-reverse" ? (ie.left = u, ie.right = l) : (ie.left = l, ie.right = u), g.value = c;
|
|
5929
5939
|
let d = n.scrollTop;
|
|
5930
5940
|
e === f.document && !d && (d = f.document.body.scrollTop), y.top = d < ee.value, y.bottom = d > ee.value;
|
|
5931
|
-
let p = Math.abs(d) <= (s.top || 0), m = Math.abs(d) + n.clientHeight >= n.scrollHeight - (s.bottom || 0) -
|
|
5941
|
+
let p = Math.abs(d) <= (s.top || 0), m = Math.abs(d) + n.clientHeight >= n.scrollHeight - (s.bottom || 0) - ah;
|
|
5932
5942
|
r === "flex" && i === "column-reverse" ? (ie.top = m, ie.bottom = p) : (ie.top = p, ie.bottom = m), ee.value = d;
|
|
5933
5943
|
}, se = (e) => {
|
|
5934
5944
|
if (!f) return;
|
|
5935
5945
|
let t = e.target.documentElement ?? e.target;
|
|
5936
5946
|
oe(t), re.value = !0, ae(e), o(e);
|
|
5937
5947
|
};
|
|
5938
|
-
return $(t, "scroll", r ?
|
|
5948
|
+
return $(t, "scroll", r ? nm(se, r, !0, !1) : se, l), sm(() => {
|
|
5939
5949
|
try {
|
|
5940
5950
|
let e = _(t);
|
|
5941
5951
|
if (!e) return;
|
|
@@ -5943,7 +5953,7 @@ function ah(t, n = {}) {
|
|
|
5943
5953
|
} catch (e) {
|
|
5944
5954
|
p(e);
|
|
5945
5955
|
}
|
|
5946
|
-
}), m?.mutation && t != null && t !== f && t !== document &&
|
|
5956
|
+
}), m?.mutation && t != null && t !== f && t !== document && wm(t, () => {
|
|
5947
5957
|
let e = _(t);
|
|
5948
5958
|
e && oe(e);
|
|
5949
5959
|
}, {
|
|
@@ -5962,7 +5972,7 @@ function ah(t, n = {}) {
|
|
|
5962
5972
|
}
|
|
5963
5973
|
};
|
|
5964
5974
|
}
|
|
5965
|
-
var
|
|
5975
|
+
var sh = {
|
|
5966
5976
|
ctrl: "control",
|
|
5967
5977
|
command: "meta",
|
|
5968
5978
|
cmd: "meta",
|
|
@@ -5972,8 +5982,8 @@ var oh = {
|
|
|
5972
5982
|
left: "arrowleft",
|
|
5973
5983
|
right: "arrowright"
|
|
5974
5984
|
};
|
|
5975
|
-
function
|
|
5976
|
-
let { reactive: n = !1, target: r = Q, aliasMap: i =
|
|
5985
|
+
function ch(t = {}) {
|
|
5986
|
+
let { reactive: n = !1, target: r = Q, aliasMap: i = sh, passive: a = !0, onEventFired: o = Bp } = t, s = d(/* @__PURE__ */ new Set()), c = {
|
|
5977
5987
|
toJSON() {
|
|
5978
5988
|
return {};
|
|
5979
5989
|
},
|
|
@@ -6031,7 +6041,7 @@ function sh(t = {}) {
|
|
|
6031
6041
|
} });
|
|
6032
6042
|
return ne;
|
|
6033
6043
|
}
|
|
6034
|
-
function
|
|
6044
|
+
function lh(t = {}) {
|
|
6035
6045
|
let { touch: n = !0, drag: r = !0, capture: i = !1, initialValue: a = !1, window: o = Q } = t, s = h(a), c = h(null);
|
|
6036
6046
|
if (!o) return {
|
|
6037
6047
|
pressed: s,
|
|
@@ -6043,7 +6053,7 @@ function ch(t = {}) {
|
|
|
6043
6053
|
}, u = (e) => {
|
|
6044
6054
|
var n;
|
|
6045
6055
|
s.value = !1, c.value = null, (n = t.onReleased) == null || n.call(t, e);
|
|
6046
|
-
}, d = e(() =>
|
|
6056
|
+
}, d = e(() => xm(t.target) || o), f = {
|
|
6047
6057
|
passive: !0,
|
|
6048
6058
|
capture: i
|
|
6049
6059
|
};
|
|
@@ -6052,8 +6062,8 @@ function ch(t = {}) {
|
|
|
6052
6062
|
sourceType: c
|
|
6053
6063
|
};
|
|
6054
6064
|
}
|
|
6055
|
-
function
|
|
6056
|
-
let { window: t = Q } = e, n = t?.navigator, r = /* @__PURE__ */
|
|
6065
|
+
function uh(e = {}) {
|
|
6066
|
+
let { window: t = Q } = e, n = t?.navigator, r = /* @__PURE__ */ Cm(() => n && "connection" in n), i = h(!0), a = h(!1), o = h(void 0), s = h(void 0), c = h(void 0), l = h(void 0), u = h(void 0), d = h(void 0), f = h("unknown"), p = r.value && n.connection;
|
|
6057
6067
|
function g() {
|
|
6058
6068
|
n && (i.value = n.onLine, o.value = i.value ? void 0 : Date.now(), s.value = i.value ? Date.now() : void 0, p && (c.value = p.downlink, l.value = p.downlinkMax, d.value = p.effectiveType, u.value = p.rtt, a.value = p.saveData, f.value = p.type));
|
|
6059
6069
|
}
|
|
@@ -6076,18 +6086,18 @@ function lh(e = {}) {
|
|
|
6076
6086
|
};
|
|
6077
6087
|
}
|
|
6078
6088
|
/* @__NO_SIDE_EFFECTS__ */
|
|
6079
|
-
function
|
|
6080
|
-
let { controls: t = !1, scheduler: n =
|
|
6089
|
+
function dh(e = {}) {
|
|
6090
|
+
let { controls: t = !1, scheduler: n = Tm } = e, r = h(/* @__PURE__ */ new Date()), i = n(() => r.value = /* @__PURE__ */ new Date());
|
|
6081
6091
|
return t ? {
|
|
6082
6092
|
now: r,
|
|
6083
6093
|
...i
|
|
6084
6094
|
} : r;
|
|
6085
6095
|
}
|
|
6086
|
-
function
|
|
6087
|
-
let { isOnline: t } =
|
|
6096
|
+
function fh(e = {}) {
|
|
6097
|
+
let { isOnline: t } = uh(e);
|
|
6088
6098
|
return t;
|
|
6089
6099
|
}
|
|
6090
|
-
function
|
|
6100
|
+
function ph(e = {}) {
|
|
6091
6101
|
let { window: t = Q } = e, n = h(!1), r = (e) => {
|
|
6092
6102
|
if (!t) return;
|
|
6093
6103
|
e ||= t.event;
|
|
@@ -6100,8 +6110,8 @@ function fh(e = {}) {
|
|
|
6100
6110
|
}
|
|
6101
6111
|
return n;
|
|
6102
6112
|
}
|
|
6103
|
-
function
|
|
6104
|
-
let { window: t = Q } = e, n = /* @__PURE__ */
|
|
6113
|
+
function mh(e = {}) {
|
|
6114
|
+
let { window: t = Q } = e, n = /* @__PURE__ */ Cm(() => t && "screen" in t && "orientation" in t.screen), r = n.value ? t.screen.orientation : {}, i = h(r.type), a = h(r.angle || 0);
|
|
6105
6115
|
return n.value && $(t, "orientationchange", () => {
|
|
6106
6116
|
i.value = r.type, a.value = r.angle;
|
|
6107
6117
|
}, { passive: !0 }), {
|
|
@@ -6114,7 +6124,7 @@ function ph(e = {}) {
|
|
|
6114
6124
|
}
|
|
6115
6125
|
};
|
|
6116
6126
|
}
|
|
6117
|
-
var
|
|
6127
|
+
var hh = {
|
|
6118
6128
|
x: 0,
|
|
6119
6129
|
y: 0,
|
|
6120
6130
|
pointerId: 0,
|
|
@@ -6125,12 +6135,12 @@ var mh = {
|
|
|
6125
6135
|
height: 0,
|
|
6126
6136
|
twist: 0,
|
|
6127
6137
|
pointerType: null
|
|
6128
|
-
},
|
|
6129
|
-
function
|
|
6138
|
+
}, gh = /* #__PURE__ */ Object.keys(hh);
|
|
6139
|
+
function _h(e = {}) {
|
|
6130
6140
|
let { target: t = Q } = e, n = h(!1), r = h(e.initialValue || {});
|
|
6131
|
-
Object.assign(r.value,
|
|
6141
|
+
Object.assign(r.value, hh, r.value);
|
|
6132
6142
|
let i = (t) => {
|
|
6133
|
-
n.value = !0, (!e.pointerTypes || e.pointerTypes.includes(t.pointerType)) && (r.value =
|
|
6143
|
+
n.value = !0, (!e.pointerTypes || e.pointerTypes.includes(t.pointerType)) && (r.value = Zp(t, gh, !1));
|
|
6134
6144
|
};
|
|
6135
6145
|
if (t) {
|
|
6136
6146
|
let e = { passive: !0 };
|
|
@@ -6141,11 +6151,11 @@ function gh(e = {}) {
|
|
|
6141
6151
|
], i, e), $(t, ["pointerleave", "pointercancel"], () => n.value = !1, e);
|
|
6142
6152
|
}
|
|
6143
6153
|
return {
|
|
6144
|
-
...
|
|
6154
|
+
...om(r),
|
|
6145
6155
|
isInside: n
|
|
6146
6156
|
};
|
|
6147
6157
|
}
|
|
6148
|
-
function
|
|
6158
|
+
function vh(e = {}) {
|
|
6149
6159
|
let { window: t = Q } = e;
|
|
6150
6160
|
if (!t) return h(["en"]);
|
|
6151
6161
|
let n = t.navigator, r = h(n.languages);
|
|
@@ -6153,49 +6163,49 @@ function _h(e = {}) {
|
|
|
6153
6163
|
r.value = n.languages;
|
|
6154
6164
|
}, { passive: !0 }), r;
|
|
6155
6165
|
}
|
|
6156
|
-
function
|
|
6157
|
-
let n =
|
|
6166
|
+
function yh(t) {
|
|
6167
|
+
let n = km("(prefers-reduced-motion: reduce)", t);
|
|
6158
6168
|
return e(() => n.value ? "reduce" : "no-preference");
|
|
6159
6169
|
}
|
|
6160
|
-
function
|
|
6170
|
+
function bh(e, t) {
|
|
6161
6171
|
let n = h(t);
|
|
6162
|
-
return v(
|
|
6172
|
+
return v(Up(e), (e, t) => {
|
|
6163
6173
|
n.value = t;
|
|
6164
6174
|
}, { flush: "sync" }), f(n);
|
|
6165
6175
|
}
|
|
6166
|
-
function
|
|
6176
|
+
function xh(e) {
|
|
6167
6177
|
let t = window.getComputedStyle(e);
|
|
6168
6178
|
if (t.overflowX === "scroll" || t.overflowY === "scroll" || t.overflowX === "auto" && e.clientWidth < e.scrollWidth || t.overflowY === "auto" && e.clientHeight < e.scrollHeight) return !0;
|
|
6169
6179
|
{
|
|
6170
6180
|
let t = e.parentNode;
|
|
6171
|
-
return !t || t.tagName === "BODY" ? !1 :
|
|
6181
|
+
return !t || t.tagName === "BODY" ? !1 : xh(t);
|
|
6172
6182
|
}
|
|
6173
6183
|
}
|
|
6174
|
-
function
|
|
6184
|
+
function Sh(e) {
|
|
6175
6185
|
let t = e || window.event, n = t.target;
|
|
6176
|
-
return
|
|
6186
|
+
return xh(n) ? !1 : t.touches.length > 1 || (t.preventDefault && t.preventDefault(), !1);
|
|
6177
6187
|
}
|
|
6178
|
-
var
|
|
6179
|
-
function
|
|
6188
|
+
var Ch = /* @__PURE__ */ new WeakMap();
|
|
6189
|
+
function wh(t, n = !1) {
|
|
6180
6190
|
let r = h(n), i = null, a = "";
|
|
6181
|
-
v(
|
|
6182
|
-
let t =
|
|
6191
|
+
v(Up(t), (e) => {
|
|
6192
|
+
let t = ih(_(e));
|
|
6183
6193
|
if (t) {
|
|
6184
6194
|
let e = t;
|
|
6185
|
-
if (
|
|
6195
|
+
if (Ch.get(e) || Ch.set(e, e.style.overflow), e.style.overflow !== "hidden" && (a = e.style.overflow), e.style.overflow === "hidden") return r.value = !0;
|
|
6186
6196
|
if (r.value) return e.style.overflow = "hidden";
|
|
6187
6197
|
}
|
|
6188
6198
|
}, { immediate: !0 });
|
|
6189
6199
|
let o = () => {
|
|
6190
|
-
let e =
|
|
6191
|
-
e && !r.value && (
|
|
6192
|
-
|
|
6200
|
+
let e = ih(_(t));
|
|
6201
|
+
e && !r.value && (Vp && (i = $(e, "touchmove", (e) => {
|
|
6202
|
+
Sh(e);
|
|
6193
6203
|
}, { passive: !1 })), e.style.overflow = "hidden", r.value = !0);
|
|
6194
6204
|
}, s = () => {
|
|
6195
|
-
let e =
|
|
6196
|
-
e && r.value && (
|
|
6205
|
+
let e = ih(_(t));
|
|
6206
|
+
e && r.value && (Vp && i?.(), e.style.overflow = a, Ch.delete(e), r.value = !1);
|
|
6197
6207
|
};
|
|
6198
|
-
return
|
|
6208
|
+
return Mp(s), e({
|
|
6199
6209
|
get() {
|
|
6200
6210
|
return r.value;
|
|
6201
6211
|
},
|
|
@@ -6204,7 +6214,7 @@ function Ch(t, n = !1) {
|
|
|
6204
6214
|
}
|
|
6205
6215
|
});
|
|
6206
6216
|
}
|
|
6207
|
-
var
|
|
6217
|
+
var Th = [
|
|
6208
6218
|
{
|
|
6209
6219
|
max: 6e4,
|
|
6210
6220
|
value: 1e3,
|
|
@@ -6240,7 +6250,7 @@ var wh = [
|
|
|
6240
6250
|
value: 31536e6,
|
|
6241
6251
|
name: "year"
|
|
6242
6252
|
}
|
|
6243
|
-
],
|
|
6253
|
+
], Eh = {
|
|
6244
6254
|
justNow: "just now",
|
|
6245
6255
|
past: (e) => /\d/.test(e) ? `${e} ago` : e,
|
|
6246
6256
|
future: (e) => /\d/.test(e) ? `in ${e}` : e,
|
|
@@ -6253,22 +6263,22 @@ var wh = [
|
|
|
6253
6263
|
second: (e) => `${e} second${e > 1 ? "s" : ""}`,
|
|
6254
6264
|
invalid: ""
|
|
6255
6265
|
};
|
|
6256
|
-
function
|
|
6266
|
+
function Dh(e) {
|
|
6257
6267
|
return e.toISOString().slice(0, 10);
|
|
6258
6268
|
}
|
|
6259
6269
|
/* @__NO_SIDE_EFFECTS__ */
|
|
6260
|
-
function
|
|
6261
|
-
let { controls: r = !1, scheduler: i = (e) =>
|
|
6270
|
+
function Oh(t, n = {}) {
|
|
6271
|
+
let { controls: r = !1, scheduler: i = (e) => hm(e, 3e4) } = n, { now: a, ...o } = /* @__PURE__ */ dh({
|
|
6262
6272
|
scheduler: i,
|
|
6263
6273
|
controls: !0
|
|
6264
|
-
}), s = e(() =>
|
|
6274
|
+
}), s = e(() => kh(new Date(_(t)), n, _(a)));
|
|
6265
6275
|
return r ? {
|
|
6266
6276
|
timeAgo: s,
|
|
6267
6277
|
...o
|
|
6268
6278
|
} : s;
|
|
6269
6279
|
}
|
|
6270
|
-
function
|
|
6271
|
-
let { max: r, messages: i =
|
|
6280
|
+
function kh(e, t = {}, n = Date.now()) {
|
|
6281
|
+
let { max: r, messages: i = Eh, fullDateFormatter: a = Dh, units: o = Th, showSecond: s = !1, rounding: c = "round" } = t, l = typeof c == "number" ? (e) => +e.toFixed(c) : Math[c], u = +n - e, d = Math.abs(u);
|
|
6272
6282
|
function f(e, t) {
|
|
6273
6283
|
return l(Math.abs(e) / t.value);
|
|
6274
6284
|
}
|
|
@@ -6292,8 +6302,8 @@ function Oh(e, t = {}, n = Date.now()) {
|
|
|
6292
6302
|
}
|
|
6293
6303
|
return i.invalid;
|
|
6294
6304
|
}
|
|
6295
|
-
function
|
|
6296
|
-
let { controls: t = !1, offset: n = 0, scheduler: r =
|
|
6305
|
+
function Ah(e = {}) {
|
|
6306
|
+
let { controls: t = !1, offset: n = 0, scheduler: r = Tm, callback: i } = e, a = h(zp() + n), o = () => a.value = zp() + n, s = r(i ? () => {
|
|
6297
6307
|
o(), i(a.value);
|
|
6298
6308
|
} : o);
|
|
6299
6309
|
return t ? {
|
|
@@ -6301,11 +6311,11 @@ function kh(e = {}) {
|
|
|
6301
6311
|
...s
|
|
6302
6312
|
} : a;
|
|
6303
6313
|
}
|
|
6304
|
-
function
|
|
6305
|
-
let { navigator: n =
|
|
6314
|
+
function jh(t = {}) {
|
|
6315
|
+
let { navigator: n = bm, document: r = ym } = t, i = h(!1), a = h(null), o = Zm({ document: r }), s = /* @__PURE__ */ Cm(() => n && "wakeLock" in n), c = e(() => !!a.value && o.value === "visible");
|
|
6306
6316
|
s.value && ($(a, "release", () => {
|
|
6307
6317
|
i.value = a.value?.type ?? !1;
|
|
6308
|
-
}, { passive: !0 }),
|
|
6318
|
+
}, { passive: !0 }), vm(() => o.value === "visible" && r?.visibilityState === "visible" && i.value, (e) => {
|
|
6309
6319
|
i.value = !1, l(e);
|
|
6310
6320
|
}));
|
|
6311
6321
|
async function l(e) {
|
|
@@ -6319,7 +6329,7 @@ function Ah(t = {}) {
|
|
|
6319
6329
|
let e = a.value;
|
|
6320
6330
|
a.value = null, await e?.release();
|
|
6321
6331
|
}
|
|
6322
|
-
return
|
|
6332
|
+
return Mp(() => {
|
|
6323
6333
|
d();
|
|
6324
6334
|
}), {
|
|
6325
6335
|
sentinel: a,
|
|
@@ -6330,7 +6340,7 @@ function Ah(t = {}) {
|
|
|
6330
6340
|
release: d
|
|
6331
6341
|
};
|
|
6332
6342
|
}
|
|
6333
|
-
function
|
|
6343
|
+
function Mh(e = {}) {
|
|
6334
6344
|
let { window: t = Q } = e;
|
|
6335
6345
|
if (!t) return h(!1);
|
|
6336
6346
|
let n = h(t.document.hasFocus()), r = { passive: !0 };
|
|
@@ -6340,11 +6350,11 @@ function jh(e = {}) {
|
|
|
6340
6350
|
n.value = !0;
|
|
6341
6351
|
}, r), n;
|
|
6342
6352
|
}
|
|
6343
|
-
function
|
|
6353
|
+
function Nh(e = {}) {
|
|
6344
6354
|
let { window: t = Q, ...n } = e;
|
|
6345
|
-
return
|
|
6355
|
+
return oh(t, n);
|
|
6346
6356
|
}
|
|
6347
|
-
function
|
|
6357
|
+
function Ph(e = {}) {
|
|
6348
6358
|
let { window: t = Q, initialWidth: n = Infinity, initialHeight: r = Infinity, listenOrientation: i = !0, includeScrollbar: a = !0, type: o = "inner" } = e, s = h(n), c = h(r), l = () => {
|
|
6349
6359
|
if (t) {
|
|
6350
6360
|
if (o === "outer") s.value = t.outerWidth, c.value = t.outerHeight;
|
|
@@ -6354,10 +6364,10 @@ function Nh(e = {}) {
|
|
|
6354
6364
|
} else a ? (s.value = t.innerWidth, c.value = t.innerHeight) : (s.value = t.document.documentElement.clientWidth, c.value = t.document.documentElement.clientHeight);
|
|
6355
6365
|
}
|
|
6356
6366
|
};
|
|
6357
|
-
l(),
|
|
6367
|
+
l(), sm(l);
|
|
6358
6368
|
let u = { passive: !0 };
|
|
6359
6369
|
if ($("resize", l, u), t && o === "visual" && t.visualViewport && $(t.visualViewport, "resize", l, u), i) {
|
|
6360
|
-
let e =
|
|
6370
|
+
let e = km("(orientation: portrait)");
|
|
6361
6371
|
v(e, () => l());
|
|
6362
6372
|
}
|
|
6363
6373
|
return {
|
|
@@ -6366,28 +6376,28 @@ function Nh(e = {}) {
|
|
|
6366
6376
|
};
|
|
6367
6377
|
}
|
|
6368
6378
|
// src/runtime/shared.ts
|
|
6369
|
-
var
|
|
6370
|
-
function
|
|
6371
|
-
|
|
6379
|
+
var Fh = n(!0), Ih = !1;
|
|
6380
|
+
function Lh(e) {
|
|
6381
|
+
Ih = e;
|
|
6372
6382
|
}
|
|
6373
|
-
function
|
|
6374
|
-
return
|
|
6383
|
+
function Rh() {
|
|
6384
|
+
return Ih;
|
|
6375
6385
|
}
|
|
6376
|
-
function
|
|
6386
|
+
function zh(e) {
|
|
6377
6387
|
let t;
|
|
6378
|
-
return () => (t ??=
|
|
6388
|
+
return () => (t ??= Fh.run(e), t);
|
|
6379
6389
|
}
|
|
6380
|
-
function
|
|
6381
|
-
return
|
|
6390
|
+
function Bh(e) {
|
|
6391
|
+
return Fh.run(e);
|
|
6382
6392
|
}
|
|
6383
6393
|
// src/runtime/actions.ts
|
|
6384
|
-
var
|
|
6385
|
-
async function Uh(e) {
|
|
6386
|
-
let t = Bh();
|
|
6387
|
-
return await t[e]().catch(() => void 0), t.isFullscreen.value;
|
|
6388
|
-
}
|
|
6394
|
+
var Vh = zh(() => $m()), Hh = zh(() => jh()), Uh = zh(() => wh(globalThis.document?.body));
|
|
6389
6395
|
async function Wh(e) {
|
|
6390
6396
|
let t = Vh();
|
|
6397
|
+
return await t[e]().catch(() => void 0), t.isFullscreen.value;
|
|
6398
|
+
}
|
|
6399
|
+
async function Gh(e) {
|
|
6400
|
+
let t = Hh();
|
|
6391
6401
|
try {
|
|
6392
6402
|
e ? await t.request("screen") : await t.release();
|
|
6393
6403
|
} catch {
|
|
@@ -6395,10 +6405,10 @@ async function Wh(e) {
|
|
|
6395
6405
|
}
|
|
6396
6406
|
return e;
|
|
6397
6407
|
}
|
|
6398
|
-
function
|
|
6399
|
-
|
|
6408
|
+
function Kh(e) {
|
|
6409
|
+
Rh() || (Uh().value = e);
|
|
6400
6410
|
}
|
|
6401
|
-
async function
|
|
6411
|
+
async function qh(e) {
|
|
6402
6412
|
if (!globalThis.navigator?.share) return !1;
|
|
6403
6413
|
try {
|
|
6404
6414
|
return await navigator.share(e), !0;
|
|
@@ -6406,20 +6416,20 @@ async function Kh(e) {
|
|
|
6406
6416
|
return !1;
|
|
6407
6417
|
}
|
|
6408
6418
|
}
|
|
6409
|
-
function
|
|
6419
|
+
function Jh(e) {
|
|
6410
6420
|
return globalThis.navigator?.vibrate?.(e) ?? !1;
|
|
6411
6421
|
}
|
|
6412
|
-
async function
|
|
6422
|
+
async function Yh(e, t = {}) {
|
|
6413
6423
|
return !("Notification" in globalThis) || (Notification.permission === "default" ? await Notification.requestPermission() : Notification.permission) !== "granted" ? !1 : (new Notification(e, t), !0);
|
|
6414
6424
|
}
|
|
6415
|
-
function
|
|
6425
|
+
function Xh(e, t = {}) {
|
|
6416
6426
|
if (!("speechSynthesis" in globalThis)) return Promise.resolve(!1);
|
|
6417
6427
|
let n = new SpeechSynthesisUtterance(e);
|
|
6418
6428
|
return Object.assign(n, Object.fromEntries(Object.entries(t).filter(([, e]) => e !== void 0))), new Promise((e) => {
|
|
6419
6429
|
n.onend = () => e(!0), n.onerror = () => e(!1), speechSynthesis.cancel(), speechSynthesis.speak(n);
|
|
6420
6430
|
});
|
|
6421
6431
|
}
|
|
6422
|
-
async function
|
|
6432
|
+
async function Zh() {
|
|
6423
6433
|
let e = globalThis.EyeDropper;
|
|
6424
6434
|
if (!e) return "";
|
|
6425
6435
|
try {
|
|
@@ -6429,35 +6439,58 @@ async function Xh() {
|
|
|
6429
6439
|
}
|
|
6430
6440
|
}
|
|
6431
6441
|
// src/runtime/config.ts
|
|
6432
|
-
var
|
|
6433
|
-
antDesign:
|
|
6434
|
-
bootstrap:
|
|
6435
|
-
element:
|
|
6436
|
-
quasar:
|
|
6437
|
-
tailwind:
|
|
6438
|
-
vuetify:
|
|
6439
|
-
},
|
|
6440
|
-
function
|
|
6441
|
-
Object.assign(
|
|
6442
|
-
}
|
|
6443
|
-
function
|
|
6444
|
-
return
|
|
6445
|
-
}
|
|
6446
|
-
function
|
|
6447
|
-
return Object.keys(
|
|
6448
|
-
}
|
|
6449
|
-
function
|
|
6450
|
-
return
|
|
6451
|
-
}
|
|
6452
|
-
function
|
|
6453
|
-
let t =
|
|
6442
|
+
var Qh = {
|
|
6443
|
+
antDesign: Nm,
|
|
6444
|
+
bootstrap: jm,
|
|
6445
|
+
element: Fm,
|
|
6446
|
+
quasar: Pm,
|
|
6447
|
+
tailwind: Am,
|
|
6448
|
+
vuetify: Mm
|
|
6449
|
+
}, $h = d({ breakpoints: "tailwind" });
|
|
6450
|
+
function eg(e) {
|
|
6451
|
+
Object.assign($h, e);
|
|
6452
|
+
}
|
|
6453
|
+
function tg() {
|
|
6454
|
+
return $h.breakpoints;
|
|
6455
|
+
}
|
|
6456
|
+
function ng(e) {
|
|
6457
|
+
return Object.keys(Qh[e] ?? Am);
|
|
6458
|
+
}
|
|
6459
|
+
function rg() {
|
|
6460
|
+
return Im(Qh[$h.breakpoints] ?? Am);
|
|
6461
|
+
}
|
|
6462
|
+
function ig(e) {
|
|
6463
|
+
let t = rg();
|
|
6454
6464
|
return {
|
|
6455
6465
|
greaterOrEqual: t.greaterOrEqual(e),
|
|
6456
6466
|
smaller: t.smaller(e)
|
|
6457
6467
|
};
|
|
6458
6468
|
}
|
|
6469
|
+
// src/runtime/drag.ts
|
|
6470
|
+
function ag() {
|
|
6471
|
+
let e = p(0), t = p(0), n = p(!1), r;
|
|
6472
|
+
function i(i) {
|
|
6473
|
+
r?.(), i.preventDefault?.();
|
|
6474
|
+
let a = i.clientX - e.value, o = i.clientY - t.value;
|
|
6475
|
+
n.value = !0;
|
|
6476
|
+
let s = [$(window, "pointermove", (n) => {
|
|
6477
|
+
e.value = n.clientX - a, t.value = n.clientY - o;
|
|
6478
|
+
}), $(window, ["pointerup", "pointercancel"], () => {
|
|
6479
|
+
n.value = !1, r?.();
|
|
6480
|
+
})];
|
|
6481
|
+
r = () => {
|
|
6482
|
+
s.forEach((e) => e()), r = void 0;
|
|
6483
|
+
};
|
|
6484
|
+
}
|
|
6485
|
+
return u(() => r?.()), {
|
|
6486
|
+
isDragging: n,
|
|
6487
|
+
start: i,
|
|
6488
|
+
x: e,
|
|
6489
|
+
y: t
|
|
6490
|
+
};
|
|
6491
|
+
}
|
|
6459
6492
|
// src/runtime/state.ts
|
|
6460
|
-
var
|
|
6493
|
+
var og = /* @__PURE__ */ new Map(), sg = {
|
|
6461
6494
|
read: (e) => {
|
|
6462
6495
|
try {
|
|
6463
6496
|
return JSON.parse(e);
|
|
@@ -6467,41 +6500,41 @@ var ig = /* @__PURE__ */ new Map(), ag = {
|
|
|
6467
6500
|
},
|
|
6468
6501
|
write: (e) => JSON.stringify(e)
|
|
6469
6502
|
};
|
|
6470
|
-
function
|
|
6471
|
-
let n = `${t}:${e}`, r =
|
|
6503
|
+
function cg(e, t = "local") {
|
|
6504
|
+
let n = `${t}:${e}`, r = og.get(n);
|
|
6472
6505
|
if (r) return r;
|
|
6473
|
-
let i = t === "session" ? globalThis.sessionStorage : globalThis.localStorage, a =
|
|
6474
|
-
serializer:
|
|
6506
|
+
let i = t === "session" ? globalThis.sessionStorage : globalThis.localStorage, a = Bh(() => Km(e, null, i, {
|
|
6507
|
+
serializer: sg,
|
|
6475
6508
|
writeDefaults: !1
|
|
6476
6509
|
}));
|
|
6477
|
-
return
|
|
6510
|
+
return og.set(n, a), a;
|
|
6478
6511
|
}
|
|
6479
|
-
function
|
|
6480
|
-
return
|
|
6512
|
+
function lg(e, t = "local", n) {
|
|
6513
|
+
return cg(e, t).value ?? n;
|
|
6481
6514
|
}
|
|
6482
|
-
function
|
|
6483
|
-
|
|
6515
|
+
function ug(e, t, n = "local") {
|
|
6516
|
+
cg(e, n).value = t ?? null;
|
|
6484
6517
|
}
|
|
6485
|
-
var
|
|
6518
|
+
var dg = zh(() => Jm({
|
|
6486
6519
|
emitAuto: !0,
|
|
6487
6520
|
onChanged: (e, t) => {
|
|
6488
|
-
|
|
6521
|
+
Rh() || t(e);
|
|
6489
6522
|
}
|
|
6490
6523
|
}));
|
|
6491
|
-
function
|
|
6492
|
-
|
|
6524
|
+
function fg(e) {
|
|
6525
|
+
dg().store.value = e;
|
|
6493
6526
|
}
|
|
6494
|
-
function
|
|
6495
|
-
return
|
|
6527
|
+
function pg(t, n) {
|
|
6528
|
+
return tm(e(t), n);
|
|
6496
6529
|
}
|
|
6497
|
-
function
|
|
6498
|
-
return
|
|
6530
|
+
function mg(t, n) {
|
|
6531
|
+
return rm(e(t), n);
|
|
6499
6532
|
}
|
|
6500
|
-
function
|
|
6501
|
-
let n =
|
|
6533
|
+
function hg(e, t) {
|
|
6534
|
+
let n = Ym(e, { scheduler: (e) => hm(e, t, { immediate: !1 }) });
|
|
6502
6535
|
return n.start(), n;
|
|
6503
6536
|
}
|
|
6504
|
-
var
|
|
6537
|
+
var gg = [
|
|
6505
6538
|
S({
|
|
6506
6539
|
name: "browser/fullscreen",
|
|
6507
6540
|
inputs: {},
|
|
@@ -6511,17 +6544,17 @@ var mg = [
|
|
|
6511
6544
|
},
|
|
6512
6545
|
methods: {
|
|
6513
6546
|
out_fullscreen() {
|
|
6514
|
-
return
|
|
6547
|
+
return Vh().isFullscreen.value;
|
|
6515
6548
|
},
|
|
6516
6549
|
out_isSupported() {
|
|
6517
|
-
return
|
|
6550
|
+
return Vh().isSupported.value;
|
|
6518
6551
|
}
|
|
6519
6552
|
},
|
|
6520
6553
|
display: {
|
|
6521
6554
|
name: "Use Fullscreen",
|
|
6522
6555
|
altSearch: "full screen presentation immersive",
|
|
6523
6556
|
config: {
|
|
6524
|
-
icon:
|
|
6557
|
+
icon: Ep,
|
|
6525
6558
|
scope: x.Frontend
|
|
6526
6559
|
}
|
|
6527
6560
|
},
|
|
@@ -6553,13 +6586,13 @@ var mg = [
|
|
|
6553
6586
|
out_fullscreen: b.boolean({ name: "Fullscreen" })
|
|
6554
6587
|
},
|
|
6555
6588
|
methods: { async in_exec() {
|
|
6556
|
-
return this.out_fullscreen = await
|
|
6589
|
+
return this.out_fullscreen = await Wh(this.in_mode ?? "toggle"), this.out_exec();
|
|
6557
6590
|
} },
|
|
6558
6591
|
display: {
|
|
6559
6592
|
name: "Set Fullscreen",
|
|
6560
6593
|
altSearch: "full screen enter exit toggle presentation",
|
|
6561
6594
|
config: {
|
|
6562
|
-
icon:
|
|
6595
|
+
icon: Ep,
|
|
6563
6596
|
scope: x.Frontend
|
|
6564
6597
|
}
|
|
6565
6598
|
},
|
|
@@ -6583,7 +6616,7 @@ var mg = [
|
|
|
6583
6616
|
out_active: b.boolean({ name: "Active" })
|
|
6584
6617
|
},
|
|
6585
6618
|
methods: { async in_exec() {
|
|
6586
|
-
return this.out_active = await
|
|
6619
|
+
return this.out_active = await Gh(!!this.in_active), this.out_exec();
|
|
6587
6620
|
} },
|
|
6588
6621
|
display: {
|
|
6589
6622
|
name: "Set Wake Lock",
|
|
@@ -6610,7 +6643,7 @@ var mg = [
|
|
|
6610
6643
|
},
|
|
6611
6644
|
outputs: { out_exec: b.exec() },
|
|
6612
6645
|
methods: { in_exec() {
|
|
6613
|
-
return
|
|
6646
|
+
return Kh(!!this.in_locked), this.out_exec();
|
|
6614
6647
|
} },
|
|
6615
6648
|
display: {
|
|
6616
6649
|
name: "Set Scroll Lock",
|
|
@@ -6651,7 +6684,7 @@ var mg = [
|
|
|
6651
6684
|
out_shared: b.boolean({ name: "Shared" })
|
|
6652
6685
|
},
|
|
6653
6686
|
methods: { async in_exec() {
|
|
6654
|
-
return this.out_shared = await
|
|
6687
|
+
return this.out_shared = await qh({
|
|
6655
6688
|
text: this.in_text,
|
|
6656
6689
|
title: this.in_title,
|
|
6657
6690
|
url: this.in_url
|
|
@@ -6685,7 +6718,7 @@ var mg = [
|
|
|
6685
6718
|
},
|
|
6686
6719
|
outputs: { out_exec: b.exec() },
|
|
6687
6720
|
methods: { in_exec() {
|
|
6688
|
-
return
|
|
6721
|
+
return Jh(this.in_pattern ?? 200), this.out_exec();
|
|
6689
6722
|
} },
|
|
6690
6723
|
display: {
|
|
6691
6724
|
name: "Vibrate",
|
|
@@ -6724,7 +6757,7 @@ var mg = [
|
|
|
6724
6757
|
out_shown: b.boolean({ name: "Shown" })
|
|
6725
6758
|
},
|
|
6726
6759
|
methods: { async in_exec() {
|
|
6727
|
-
return this.out_shown = await
|
|
6760
|
+
return this.out_shown = await Yh(this.in_title ?? "", {
|
|
6728
6761
|
body: this.in_body,
|
|
6729
6762
|
icon: this.in_icon
|
|
6730
6763
|
}), this.out_exec();
|
|
@@ -6772,7 +6805,7 @@ var mg = [
|
|
|
6772
6805
|
out_spoken: b.boolean({ name: "Spoken" })
|
|
6773
6806
|
},
|
|
6774
6807
|
methods: { async in_exec() {
|
|
6775
|
-
return this.out_spoken = await
|
|
6808
|
+
return this.out_spoken = await Xh(this.in_text ?? "", {
|
|
6776
6809
|
lang: this.in_lang,
|
|
6777
6810
|
pitch: this.in_pitch,
|
|
6778
6811
|
rate: this.in_rate
|
|
@@ -6806,7 +6839,7 @@ var mg = [
|
|
|
6806
6839
|
})
|
|
6807
6840
|
},
|
|
6808
6841
|
methods: { async in_exec() {
|
|
6809
|
-
return this.out_color = await
|
|
6842
|
+
return this.out_color = await Zh(), this.out_exec();
|
|
6810
6843
|
} },
|
|
6811
6844
|
display: {
|
|
6812
6845
|
name: "Pick Color",
|
|
@@ -6825,13 +6858,13 @@ var mg = [
|
|
|
6825
6858
|
imports: [Y("pickColor")]
|
|
6826
6859
|
}
|
|
6827
6860
|
})
|
|
6828
|
-
],
|
|
6861
|
+
], _g = [
|
|
6829
6862
|
S({
|
|
6830
6863
|
name: "browser/documentVisibility",
|
|
6831
6864
|
inputs: {},
|
|
6832
6865
|
outputs: { out_visible: b.boolean({ name: "Visible" }) },
|
|
6833
6866
|
methods: { out_visible() {
|
|
6834
|
-
return this.instance([], () =>
|
|
6867
|
+
return this.instance([], () => Zm()).value === "visible";
|
|
6835
6868
|
} },
|
|
6836
6869
|
display: {
|
|
6837
6870
|
name: "Use Document Visibility",
|
|
@@ -6860,13 +6893,13 @@ var mg = [
|
|
|
6860
6893
|
outputs: { out_matches: b.boolean({ name: "Matches" }) },
|
|
6861
6894
|
methods: { out_matches() {
|
|
6862
6895
|
let e = this.in_query ?? "";
|
|
6863
|
-
return this.instance([e], () =>
|
|
6896
|
+
return this.instance([e], () => km(e)).value;
|
|
6864
6897
|
} },
|
|
6865
6898
|
display: {
|
|
6866
6899
|
name: "Use Media Query",
|
|
6867
6900
|
altSearch: "responsive breakpoint mobile screen css",
|
|
6868
6901
|
config: {
|
|
6869
|
-
icon:
|
|
6902
|
+
icon: Cp,
|
|
6870
6903
|
scope: x.Frontend
|
|
6871
6904
|
}
|
|
6872
6905
|
},
|
|
@@ -6885,7 +6918,7 @@ var mg = [
|
|
|
6885
6918
|
inputs: {},
|
|
6886
6919
|
outputs: { out_online: b.boolean({ name: "Online" }) },
|
|
6887
6920
|
methods: { out_online() {
|
|
6888
|
-
return this.instance([], () =>
|
|
6921
|
+
return this.instance([], () => fh()).value;
|
|
6889
6922
|
} },
|
|
6890
6923
|
display: {
|
|
6891
6924
|
name: "Use Online",
|
|
@@ -6910,13 +6943,13 @@ var mg = [
|
|
|
6910
6943
|
inputs: {},
|
|
6911
6944
|
outputs: { out_dark: b.boolean({ name: "Dark" }) },
|
|
6912
6945
|
methods: { out_dark() {
|
|
6913
|
-
return this.instance([], () =>
|
|
6946
|
+
return this.instance([], () => Hm()).value;
|
|
6914
6947
|
} },
|
|
6915
6948
|
display: {
|
|
6916
6949
|
name: "Use Preferred Dark",
|
|
6917
6950
|
altSearch: "dark mode theme color scheme",
|
|
6918
6951
|
config: {
|
|
6919
|
-
icon:
|
|
6952
|
+
icon: Tp,
|
|
6920
6953
|
scope: x.Frontend
|
|
6921
6954
|
}
|
|
6922
6955
|
},
|
|
@@ -6935,7 +6968,7 @@ var mg = [
|
|
|
6935
6968
|
inputs: {},
|
|
6936
6969
|
outputs: { out_reduced: b.boolean({ name: "Reduced" }) },
|
|
6937
6970
|
methods: { out_reduced() {
|
|
6938
|
-
return this.instance([], () =>
|
|
6971
|
+
return this.instance([], () => yh()).value === "reduce";
|
|
6939
6972
|
} },
|
|
6940
6973
|
display: {
|
|
6941
6974
|
name: "Use Preferred Reduced Motion",
|
|
@@ -6960,7 +6993,7 @@ var mg = [
|
|
|
6960
6993
|
inputs: {},
|
|
6961
6994
|
outputs: { out_focused: b.boolean({ name: "Focused" }) },
|
|
6962
6995
|
methods: { out_focused() {
|
|
6963
|
-
return this.instance([], () =>
|
|
6996
|
+
return this.instance([], () => Mh()).value;
|
|
6964
6997
|
} },
|
|
6965
6998
|
display: {
|
|
6966
6999
|
name: "Use Window Focus",
|
|
@@ -6980,7 +7013,7 @@ var mg = [
|
|
|
6980
7013
|
imports: [X("useWindowFocus"), Z]
|
|
6981
7014
|
}
|
|
6982
7015
|
})
|
|
6983
|
-
],
|
|
7016
|
+
], vg = [
|
|
6984
7017
|
S({
|
|
6985
7018
|
name: "browser/network",
|
|
6986
7019
|
inputs: {},
|
|
@@ -7004,16 +7037,16 @@ var mg = [
|
|
|
7004
7037
|
},
|
|
7005
7038
|
methods: {
|
|
7006
7039
|
out_effectiveType() {
|
|
7007
|
-
return this.instance([], () =>
|
|
7040
|
+
return this.instance([], () => uh()).effectiveType.value ?? "";
|
|
7008
7041
|
},
|
|
7009
7042
|
out_type() {
|
|
7010
|
-
return this.instance([], () =>
|
|
7043
|
+
return this.instance([], () => uh()).type.value ?? "";
|
|
7011
7044
|
},
|
|
7012
7045
|
out_downlink() {
|
|
7013
|
-
return this.instance([], () =>
|
|
7046
|
+
return this.instance([], () => uh()).downlink.value ?? 0;
|
|
7014
7047
|
},
|
|
7015
7048
|
out_saveData() {
|
|
7016
|
-
return this.instance([], () =>
|
|
7049
|
+
return this.instance([], () => uh()).saveData.value ?? !1;
|
|
7017
7050
|
}
|
|
7018
7051
|
},
|
|
7019
7052
|
display: {
|
|
@@ -7030,7 +7063,7 @@ var mg = [
|
|
|
7030
7063
|
},
|
|
7031
7064
|
build: {
|
|
7032
7065
|
define: J,
|
|
7033
|
-
generate:
|
|
7066
|
+
generate: Ap("useNetwork()", {
|
|
7034
7067
|
out_downlink: ".downlink.value ?? 0",
|
|
7035
7068
|
out_effectiveType: ".effectiveType.value ?? \"\"",
|
|
7036
7069
|
out_saveData: ".saveData.value ?? false",
|
|
@@ -7052,13 +7085,13 @@ var mg = [
|
|
|
7052
7085
|
},
|
|
7053
7086
|
methods: {
|
|
7054
7087
|
out_orientation() {
|
|
7055
|
-
return this.instance([], () =>
|
|
7088
|
+
return this.instance([], () => mh()).orientation.value ?? "";
|
|
7056
7089
|
},
|
|
7057
7090
|
out_portrait() {
|
|
7058
|
-
return this.instance([], () =>
|
|
7091
|
+
return this.instance([], () => mh()).orientation.value?.startsWith("portrait") ?? !1;
|
|
7059
7092
|
},
|
|
7060
7093
|
out_angle() {
|
|
7061
|
-
return this.instance([], () =>
|
|
7094
|
+
return this.instance([], () => mh()).angle.value;
|
|
7062
7095
|
}
|
|
7063
7096
|
},
|
|
7064
7097
|
display: {
|
|
@@ -7075,7 +7108,7 @@ var mg = [
|
|
|
7075
7108
|
},
|
|
7076
7109
|
build: {
|
|
7077
7110
|
define: J,
|
|
7078
|
-
generate:
|
|
7111
|
+
generate: Ap("useScreenOrientation()", {
|
|
7079
7112
|
out_angle: ".angle.value",
|
|
7080
7113
|
out_orientation: ".orientation.value ?? \"\"",
|
|
7081
7114
|
out_portrait: ".orientation.value?.startsWith(\"portrait\") ?? false"
|
|
@@ -7088,7 +7121,7 @@ var mg = [
|
|
|
7088
7121
|
inputs: {},
|
|
7089
7122
|
outputs: { out_pixelRatio: b.number({ name: "Pixel Ratio" }) },
|
|
7090
7123
|
methods: { out_pixelRatio() {
|
|
7091
|
-
return this.instance([], () =>
|
|
7124
|
+
return this.instance([], () => Xm()).pixelRatio.value;
|
|
7092
7125
|
} },
|
|
7093
7126
|
display: {
|
|
7094
7127
|
name: "Use Device Pixel Ratio",
|
|
@@ -7104,7 +7137,7 @@ var mg = [
|
|
|
7104
7137
|
},
|
|
7105
7138
|
build: {
|
|
7106
7139
|
define: J,
|
|
7107
|
-
generate:
|
|
7140
|
+
generate: Ap("useDevicePixelRatio()", { out_pixelRatio: ".pixelRatio.value" }),
|
|
7108
7141
|
imports: [X("useDevicePixelRatio"), Z]
|
|
7109
7142
|
}
|
|
7110
7143
|
}),
|
|
@@ -7120,10 +7153,10 @@ var mg = [
|
|
|
7120
7153
|
},
|
|
7121
7154
|
methods: {
|
|
7122
7155
|
out_language() {
|
|
7123
|
-
return this.instance([], () =>
|
|
7156
|
+
return this.instance([], () => vh()).value[0] ?? "";
|
|
7124
7157
|
},
|
|
7125
7158
|
out_languages() {
|
|
7126
|
-
return [...this.instance([], () =>
|
|
7159
|
+
return [...this.instance([], () => vh()).value];
|
|
7127
7160
|
}
|
|
7128
7161
|
},
|
|
7129
7162
|
display: {
|
|
@@ -7140,7 +7173,7 @@ var mg = [
|
|
|
7140
7173
|
},
|
|
7141
7174
|
build: {
|
|
7142
7175
|
define: J,
|
|
7143
|
-
generate:
|
|
7176
|
+
generate: Ap("usePreferredLanguages()", {
|
|
7144
7177
|
out_language: ".value[0] ?? \"\"",
|
|
7145
7178
|
out_languages: ".value.slice()"
|
|
7146
7179
|
}),
|
|
@@ -7168,19 +7201,19 @@ var mg = [
|
|
|
7168
7201
|
},
|
|
7169
7202
|
methods: {
|
|
7170
7203
|
out_level() {
|
|
7171
|
-
return this.instance([], () =>
|
|
7204
|
+
return this.instance([], () => Em()).level.value;
|
|
7172
7205
|
},
|
|
7173
7206
|
out_charging() {
|
|
7174
|
-
return this.instance([], () =>
|
|
7207
|
+
return this.instance([], () => Em()).charging.value;
|
|
7175
7208
|
},
|
|
7176
7209
|
out_chargingTime() {
|
|
7177
|
-
return this.instance([], () =>
|
|
7210
|
+
return this.instance([], () => Em()).chargingTime.value;
|
|
7178
7211
|
},
|
|
7179
7212
|
out_dischargingTime() {
|
|
7180
|
-
return this.instance([], () =>
|
|
7213
|
+
return this.instance([], () => Em()).dischargingTime.value;
|
|
7181
7214
|
},
|
|
7182
7215
|
out_isSupported() {
|
|
7183
|
-
return this.instance([], () =>
|
|
7216
|
+
return this.instance([], () => Em()).isSupported.value;
|
|
7184
7217
|
}
|
|
7185
7218
|
},
|
|
7186
7219
|
display: {
|
|
@@ -7197,7 +7230,7 @@ var mg = [
|
|
|
7197
7230
|
},
|
|
7198
7231
|
build: {
|
|
7199
7232
|
define: J,
|
|
7200
|
-
generate:
|
|
7233
|
+
generate: Ap("useBattery()", {
|
|
7201
7234
|
out_charging: ".charging.value",
|
|
7202
7235
|
out_chargingTime: ".chargingTime.value",
|
|
7203
7236
|
out_dischargingTime: ".dischargingTime.value",
|
|
@@ -7228,19 +7261,19 @@ var mg = [
|
|
|
7228
7261
|
},
|
|
7229
7262
|
methods: {
|
|
7230
7263
|
out_latitude() {
|
|
7231
|
-
return this.instance([], () =>
|
|
7264
|
+
return this.instance([], () => eh()).coords.value.latitude;
|
|
7232
7265
|
},
|
|
7233
7266
|
out_longitude() {
|
|
7234
|
-
return this.instance([], () =>
|
|
7267
|
+
return this.instance([], () => eh()).coords.value.longitude;
|
|
7235
7268
|
},
|
|
7236
7269
|
out_accuracy() {
|
|
7237
|
-
return this.instance([], () =>
|
|
7270
|
+
return this.instance([], () => eh()).coords.value.accuracy;
|
|
7238
7271
|
},
|
|
7239
7272
|
out_located() {
|
|
7240
|
-
return this.instance([], () =>
|
|
7273
|
+
return this.instance([], () => eh()).locatedAt.value !== null;
|
|
7241
7274
|
},
|
|
7242
7275
|
out_error() {
|
|
7243
|
-
return this.instance([], () =>
|
|
7276
|
+
return this.instance([], () => eh()).error.value?.message ?? "";
|
|
7244
7277
|
}
|
|
7245
7278
|
},
|
|
7246
7279
|
display: {
|
|
@@ -7257,7 +7290,7 @@ var mg = [
|
|
|
7257
7290
|
},
|
|
7258
7291
|
build: {
|
|
7259
7292
|
define: J,
|
|
7260
|
-
generate:
|
|
7293
|
+
generate: Ap("useGeolocation()", {
|
|
7261
7294
|
out_accuracy: ".coords.value.accuracy",
|
|
7262
7295
|
out_error: ".error.value?.message ?? \"\"",
|
|
7263
7296
|
out_latitude: ".coords.value.latitude",
|
|
@@ -7272,7 +7305,7 @@ var mg = [
|
|
|
7272
7305
|
inputs: {},
|
|
7273
7306
|
outputs: { out_left: b.boolean({ name: "Left" }) },
|
|
7274
7307
|
methods: { out_left() {
|
|
7275
|
-
return this.instance([], () =>
|
|
7308
|
+
return this.instance([], () => ph()).value;
|
|
7276
7309
|
} },
|
|
7277
7310
|
display: {
|
|
7278
7311
|
name: "Use Page Leave",
|
|
@@ -7288,14 +7321,14 @@ var mg = [
|
|
|
7288
7321
|
},
|
|
7289
7322
|
build: {
|
|
7290
7323
|
define: J,
|
|
7291
|
-
generate:
|
|
7324
|
+
generate: Ap("usePageLeave()", { out_left: ".value" }),
|
|
7292
7325
|
imports: [X("usePageLeave"), Z]
|
|
7293
7326
|
}
|
|
7294
7327
|
})
|
|
7295
7328
|
];
|
|
7296
7329
|
// src/nodes/responsive.ts
|
|
7297
|
-
function
|
|
7298
|
-
let t =
|
|
7330
|
+
function yg(e) {
|
|
7331
|
+
let t = ng(e);
|
|
7299
7332
|
return [S({
|
|
7300
7333
|
name: "responsive/breakpoint",
|
|
7301
7334
|
inputs: { in_breakpoint: b.string({
|
|
@@ -7315,11 +7348,11 @@ function _g(e) {
|
|
|
7315
7348
|
methods: {
|
|
7316
7349
|
out_greaterOrEqual() {
|
|
7317
7350
|
let e = this.in_breakpoint ?? "";
|
|
7318
|
-
return this.instance([
|
|
7351
|
+
return this.instance([tg(), e], () => ig(e)).greaterOrEqual.value;
|
|
7319
7352
|
},
|
|
7320
7353
|
out_smaller() {
|
|
7321
7354
|
let e = this.in_breakpoint ?? "";
|
|
7322
|
-
return this.instance([
|
|
7355
|
+
return this.instance([tg(), e], () => ig(e)).smaller.value;
|
|
7323
7356
|
}
|
|
7324
7357
|
},
|
|
7325
7358
|
display: {
|
|
@@ -7336,7 +7369,7 @@ function _g(e) {
|
|
|
7336
7369
|
},
|
|
7337
7370
|
build: {
|
|
7338
7371
|
define: J,
|
|
7339
|
-
generate: ({ id: e, key: t }) => `()=>{const breakpoint = this.in_breakpoint ?? ""; return [[instance]]([getBreakpointPreset(), breakpoint], () => useBreakpoint(breakpoint), ${JSON.stringify(e)}).${
|
|
7372
|
+
generate: ({ id: e, key: t }) => `()=>{const breakpoint = this.in_breakpoint ?? ""; return [[instance]]([getBreakpointPreset(), breakpoint], () => useBreakpoint(breakpoint), ${JSON.stringify(e)}).${jp(t)}.value;}`,
|
|
7340
7373
|
imports: [
|
|
7341
7374
|
Y("useBreakpoint"),
|
|
7342
7375
|
Y("getBreakpointPreset"),
|
|
@@ -7348,7 +7381,7 @@ function _g(e) {
|
|
|
7348
7381
|
inputs: {},
|
|
7349
7382
|
outputs: { out_current: b.string({ name: "Current" }) },
|
|
7350
7383
|
methods: { out_current() {
|
|
7351
|
-
return this.instance([
|
|
7384
|
+
return this.instance([tg()], () => rg().active()).value;
|
|
7352
7385
|
} },
|
|
7353
7386
|
display: {
|
|
7354
7387
|
name: "Use Current Breakpoint",
|
|
@@ -7374,7 +7407,7 @@ function _g(e) {
|
|
|
7374
7407
|
})];
|
|
7375
7408
|
}
|
|
7376
7409
|
// src/nodes/sensors.ts
|
|
7377
|
-
var
|
|
7410
|
+
var bg = [
|
|
7378
7411
|
S({
|
|
7379
7412
|
name: "sensors/idle",
|
|
7380
7413
|
inputs: { in_timeout: b.number({
|
|
@@ -7392,11 +7425,11 @@ var vg = [
|
|
|
7392
7425
|
methods: {
|
|
7393
7426
|
out_idle() {
|
|
7394
7427
|
let e = this.in_timeout ?? 6e4;
|
|
7395
|
-
return this.instance([e], () =>
|
|
7428
|
+
return this.instance([e], () => rh(e)).idle.value;
|
|
7396
7429
|
},
|
|
7397
7430
|
out_lastActive() {
|
|
7398
7431
|
let e = this.in_timeout ?? 6e4;
|
|
7399
|
-
return this.instance([e], () =>
|
|
7432
|
+
return this.instance([e], () => rh(e)).lastActive.value;
|
|
7400
7433
|
}
|
|
7401
7434
|
},
|
|
7402
7435
|
display: {
|
|
@@ -7413,7 +7446,7 @@ var vg = [
|
|
|
7413
7446
|
},
|
|
7414
7447
|
build: {
|
|
7415
7448
|
define: J,
|
|
7416
|
-
generate: ({ id: e, key: t }) => `()=>{const timeout = this.in_timeout ?? 60000; return [[instance]]([timeout], () => useIdle(timeout), ${JSON.stringify(e)}).${
|
|
7449
|
+
generate: ({ id: e, key: t }) => `()=>{const timeout = this.in_timeout ?? 60000; return [[instance]]([timeout], () => useIdle(timeout), ${JSON.stringify(e)}).${jp(t)}.value;}`,
|
|
7417
7450
|
imports: [X("useIdle"), Z]
|
|
7418
7451
|
}
|
|
7419
7452
|
}),
|
|
@@ -7426,7 +7459,7 @@ var vg = [
|
|
|
7426
7459
|
outputs: { out_pressed: b.boolean({ name: "Pressed" }) },
|
|
7427
7460
|
methods: { out_pressed() {
|
|
7428
7461
|
let e = this.in_key ?? "";
|
|
7429
|
-
return this.instance([e], () =>
|
|
7462
|
+
return this.instance([e], () => ch()[e]).value;
|
|
7430
7463
|
} },
|
|
7431
7464
|
display: {
|
|
7432
7465
|
name: "Use Magic Key",
|
|
@@ -7451,7 +7484,7 @@ var vg = [
|
|
|
7451
7484
|
inputs: {},
|
|
7452
7485
|
outputs: { out_pressed: b.boolean({ name: "Pressed" }) },
|
|
7453
7486
|
methods: { out_pressed() {
|
|
7454
|
-
return this.instance([], () =>
|
|
7487
|
+
return this.instance([], () => lh()).pressed.value;
|
|
7455
7488
|
} },
|
|
7456
7489
|
display: {
|
|
7457
7490
|
name: "Use Mouse Pressed",
|
|
@@ -7489,19 +7522,19 @@ var vg = [
|
|
|
7489
7522
|
},
|
|
7490
7523
|
methods: {
|
|
7491
7524
|
out_isInside() {
|
|
7492
|
-
return this.instance([], () =>
|
|
7525
|
+
return this.instance([], () => _h()).isInside.value;
|
|
7493
7526
|
},
|
|
7494
7527
|
out_pointerType() {
|
|
7495
|
-
return this.instance([], () =>
|
|
7528
|
+
return this.instance([], () => _h()).pointerType.value ?? "";
|
|
7496
7529
|
},
|
|
7497
7530
|
out_pressure() {
|
|
7498
|
-
return this.instance([], () =>
|
|
7531
|
+
return this.instance([], () => _h()).pressure.value;
|
|
7499
7532
|
},
|
|
7500
7533
|
out_x() {
|
|
7501
|
-
return this.instance([], () =>
|
|
7534
|
+
return this.instance([], () => _h()).x.value;
|
|
7502
7535
|
},
|
|
7503
7536
|
out_y() {
|
|
7504
|
-
return this.instance([], () =>
|
|
7537
|
+
return this.instance([], () => _h()).y.value;
|
|
7505
7538
|
}
|
|
7506
7539
|
},
|
|
7507
7540
|
display: {
|
|
@@ -7520,11 +7553,68 @@ var vg = [
|
|
|
7520
7553
|
define: J,
|
|
7521
7554
|
generate: ({ id: e, key: t }) => {
|
|
7522
7555
|
let n = t === "out_pointerType" ? " ?? \"\"" : "";
|
|
7523
|
-
return `()=>{return [[instance]]([], () => usePointer(), ${JSON.stringify(e)}).${
|
|
7556
|
+
return `()=>{return [[instance]]([], () => usePointer(), ${JSON.stringify(e)}).${jp(t)}.value${n};}`;
|
|
7524
7557
|
},
|
|
7525
7558
|
imports: [X("usePointer"), Z]
|
|
7526
7559
|
}
|
|
7527
7560
|
}),
|
|
7561
|
+
S({
|
|
7562
|
+
name: "sensors/drag",
|
|
7563
|
+
inputs: {
|
|
7564
|
+
in_exec: b.exec({ name: "Start" }),
|
|
7565
|
+
in_event: b.object({}, {
|
|
7566
|
+
name: "Event",
|
|
7567
|
+
description: "The `pointerdown` or `mousedown` event that starts the drag"
|
|
7568
|
+
})
|
|
7569
|
+
},
|
|
7570
|
+
outputs: {
|
|
7571
|
+
out_exec: b.exec(),
|
|
7572
|
+
out_isDragging: b.boolean({ name: "Is Dragging" }),
|
|
7573
|
+
out_x: b.number({
|
|
7574
|
+
name: "X",
|
|
7575
|
+
description: "Horizontal offset in pixels"
|
|
7576
|
+
}),
|
|
7577
|
+
out_y: b.number({
|
|
7578
|
+
name: "Y",
|
|
7579
|
+
description: "Vertical offset in pixels"
|
|
7580
|
+
})
|
|
7581
|
+
},
|
|
7582
|
+
methods: {
|
|
7583
|
+
in_exec() {
|
|
7584
|
+
return this.instance([], () => ag()).start(this.in_event), this.out_exec();
|
|
7585
|
+
},
|
|
7586
|
+
out_isDragging() {
|
|
7587
|
+
return this.instance([], () => ag()).isDragging.value;
|
|
7588
|
+
},
|
|
7589
|
+
out_x() {
|
|
7590
|
+
return this.instance([], () => ag()).x.value;
|
|
7591
|
+
},
|
|
7592
|
+
out_y() {
|
|
7593
|
+
return this.instance([], () => ag()).y.value;
|
|
7594
|
+
}
|
|
7595
|
+
},
|
|
7596
|
+
display: {
|
|
7597
|
+
name: "Use Drag",
|
|
7598
|
+
altSearch: "draggable move window title bar pointer drag and drop",
|
|
7599
|
+
config: {
|
|
7600
|
+
icon: Sp,
|
|
7601
|
+
scope: x.Frontend
|
|
7602
|
+
}
|
|
7603
|
+
},
|
|
7604
|
+
documentation: {
|
|
7605
|
+
short: "Move an element by dragging it",
|
|
7606
|
+
description: "Starts a drag from a `pointerdown` event (link the event node's exec and event to `Start` and `Event`), follows the pointer anywhere on the page until it is released, and returns the total offset in pixels. Each new drag continues from the last offset.",
|
|
7607
|
+
llm: "Link `event/pointerdown(<handle id>)` to `Start` and its `out_event` to `Event`. Put the event on the handle (e.g. a title bar). Set two computed values from `out_x` and `out_y` and bind them on the element to move: `:style.transform=\"'translate(' + dragX + 'px, ' + dragY + 'px)'\"`."
|
|
7608
|
+
},
|
|
7609
|
+
build: {
|
|
7610
|
+
define: J,
|
|
7611
|
+
generate: ({ id: e, key: t }) => {
|
|
7612
|
+
let n = `[[instance]]([], () => useDrag(), ${JSON.stringify(e)})`;
|
|
7613
|
+
return t === "in_exec" ? `function(){${n}.start(this.in_event); return this.out_exec();}` : `()=>{return ${n}.${jp(t)}.value;}`;
|
|
7614
|
+
},
|
|
7615
|
+
imports: [Y("useDrag"), Z]
|
|
7616
|
+
}
|
|
7617
|
+
}),
|
|
7528
7618
|
S({
|
|
7529
7619
|
name: "sensors/windowScroll",
|
|
7530
7620
|
inputs: {},
|
|
@@ -7535,20 +7625,20 @@ var vg = [
|
|
|
7535
7625
|
},
|
|
7536
7626
|
methods: {
|
|
7537
7627
|
out_isScrolling() {
|
|
7538
|
-
return this.instance([], () =>
|
|
7628
|
+
return this.instance([], () => Nh()).isScrolling.value;
|
|
7539
7629
|
},
|
|
7540
7630
|
out_x() {
|
|
7541
|
-
return this.instance([], () =>
|
|
7631
|
+
return this.instance([], () => Nh()).x.value;
|
|
7542
7632
|
},
|
|
7543
7633
|
out_y() {
|
|
7544
|
-
return this.instance([], () =>
|
|
7634
|
+
return this.instance([], () => Nh()).y.value;
|
|
7545
7635
|
}
|
|
7546
7636
|
},
|
|
7547
7637
|
display: {
|
|
7548
7638
|
name: "Use Window Scroll",
|
|
7549
7639
|
altSearch: "scroll position offset",
|
|
7550
7640
|
config: {
|
|
7551
|
-
icon:
|
|
7641
|
+
icon: Dp,
|
|
7552
7642
|
scope: x.Frontend
|
|
7553
7643
|
}
|
|
7554
7644
|
},
|
|
@@ -7558,7 +7648,7 @@ var vg = [
|
|
|
7558
7648
|
},
|
|
7559
7649
|
build: {
|
|
7560
7650
|
define: J,
|
|
7561
|
-
generate: ({ id: e, key: t }) => `()=>{return [[instance]]([], () => useWindowScroll(), ${JSON.stringify(e)}).${
|
|
7651
|
+
generate: ({ id: e, key: t }) => `()=>{return [[instance]]([], () => useWindowScroll(), ${JSON.stringify(e)}).${jp(t)}.value;}`,
|
|
7562
7652
|
imports: [X("useWindowScroll"), Z]
|
|
7563
7653
|
}
|
|
7564
7654
|
}),
|
|
@@ -7571,17 +7661,17 @@ var vg = [
|
|
|
7571
7661
|
},
|
|
7572
7662
|
methods: {
|
|
7573
7663
|
out_height() {
|
|
7574
|
-
return this.instance([], () =>
|
|
7664
|
+
return this.instance([], () => Ph()).height.value;
|
|
7575
7665
|
},
|
|
7576
7666
|
out_width() {
|
|
7577
|
-
return this.instance([], () =>
|
|
7667
|
+
return this.instance([], () => Ph()).width.value;
|
|
7578
7668
|
}
|
|
7579
7669
|
},
|
|
7580
7670
|
display: {
|
|
7581
7671
|
name: "Use Window Size",
|
|
7582
7672
|
altSearch: "viewport dimensions width height resize responsive",
|
|
7583
7673
|
config: {
|
|
7584
|
-
icon:
|
|
7674
|
+
icon: Ep,
|
|
7585
7675
|
scope: x.Frontend
|
|
7586
7676
|
}
|
|
7587
7677
|
},
|
|
@@ -7591,20 +7681,20 @@ var vg = [
|
|
|
7591
7681
|
},
|
|
7592
7682
|
build: {
|
|
7593
7683
|
define: J,
|
|
7594
|
-
generate: ({ id: e, key: t }) => `()=>{return [[instance]]([], () => useWindowSize(), ${JSON.stringify(e)}).${
|
|
7684
|
+
generate: ({ id: e, key: t }) => `()=>{return [[instance]]([], () => useWindowSize(), ${JSON.stringify(e)}).${jp(t)}.value;}`,
|
|
7595
7685
|
imports: [X("useWindowSize"), Z]
|
|
7596
7686
|
}
|
|
7597
7687
|
})
|
|
7598
|
-
],
|
|
7688
|
+
], xg = () => b.string({
|
|
7599
7689
|
name: "Storage",
|
|
7600
7690
|
description: "`local` persists across sessions, `session` is cleared when the tab closes",
|
|
7601
7691
|
enum: ["local", "session"],
|
|
7602
7692
|
optional: !0
|
|
7603
|
-
}),
|
|
7693
|
+
}), Sg = [
|
|
7604
7694
|
"auto",
|
|
7605
7695
|
"light",
|
|
7606
7696
|
"dark"
|
|
7607
|
-
],
|
|
7697
|
+
], Cg = [
|
|
7608
7698
|
S({
|
|
7609
7699
|
name: "storage/get",
|
|
7610
7700
|
inputs: {
|
|
@@ -7613,14 +7703,14 @@ var vg = [
|
|
|
7613
7703
|
name: "Default",
|
|
7614
7704
|
optional: !0
|
|
7615
7705
|
}),
|
|
7616
|
-
in_storage:
|
|
7706
|
+
in_storage: xg()
|
|
7617
7707
|
},
|
|
7618
7708
|
outputs: { out_value: b.unknown({
|
|
7619
7709
|
name: "Value",
|
|
7620
7710
|
dynamic: ({ inputs: e }) => e.in_default
|
|
7621
7711
|
}) },
|
|
7622
7712
|
methods: { out_value() {
|
|
7623
|
-
return
|
|
7713
|
+
return lg(this.in_key ?? "", this.in_storage ?? "local", this.in_default);
|
|
7624
7714
|
} },
|
|
7625
7715
|
display: {
|
|
7626
7716
|
name: "Use Storage",
|
|
@@ -7645,11 +7735,11 @@ var vg = [
|
|
|
7645
7735
|
in_exec: b.exec(),
|
|
7646
7736
|
in_key: b.string({ name: "Key" }),
|
|
7647
7737
|
in_value: b.unknown({ name: "Value" }),
|
|
7648
|
-
in_storage:
|
|
7738
|
+
in_storage: xg()
|
|
7649
7739
|
},
|
|
7650
7740
|
outputs: { out_exec: b.exec() },
|
|
7651
7741
|
methods: { in_exec() {
|
|
7652
|
-
return
|
|
7742
|
+
return ug(this.in_key ?? "", this.in_value, this.in_storage ?? "local"), this.out_exec();
|
|
7653
7743
|
} },
|
|
7654
7744
|
display: {
|
|
7655
7745
|
name: "Set Storage",
|
|
@@ -7675,7 +7765,7 @@ var vg = [
|
|
|
7675
7765
|
out_mode: b.string({
|
|
7676
7766
|
name: "Mode",
|
|
7677
7767
|
description: "`auto`, `light` or `dark`",
|
|
7678
|
-
enum: [...
|
|
7768
|
+
enum: [...Sg]
|
|
7679
7769
|
}),
|
|
7680
7770
|
out_state: b.string({
|
|
7681
7771
|
name: "State",
|
|
@@ -7686,13 +7776,13 @@ var vg = [
|
|
|
7686
7776
|
},
|
|
7687
7777
|
methods: {
|
|
7688
7778
|
out_mode() {
|
|
7689
|
-
return
|
|
7779
|
+
return dg().store.value;
|
|
7690
7780
|
},
|
|
7691
7781
|
out_state() {
|
|
7692
|
-
return
|
|
7782
|
+
return dg().state.value;
|
|
7693
7783
|
},
|
|
7694
7784
|
out_dark() {
|
|
7695
|
-
return
|
|
7785
|
+
return dg().state.value === "dark";
|
|
7696
7786
|
}
|
|
7697
7787
|
},
|
|
7698
7788
|
display: {
|
|
@@ -7722,12 +7812,12 @@ var vg = [
|
|
|
7722
7812
|
in_exec: b.exec(),
|
|
7723
7813
|
in_mode: b.string({
|
|
7724
7814
|
name: "Mode",
|
|
7725
|
-
enum: [...
|
|
7815
|
+
enum: [...Sg]
|
|
7726
7816
|
})
|
|
7727
7817
|
},
|
|
7728
7818
|
outputs: { out_exec: b.exec() },
|
|
7729
7819
|
methods: { in_exec() {
|
|
7730
|
-
return
|
|
7820
|
+
return fg(this.in_mode ?? "auto"), this.out_exec();
|
|
7731
7821
|
} },
|
|
7732
7822
|
display: {
|
|
7733
7823
|
name: "Set Color Mode",
|
|
@@ -7746,20 +7836,20 @@ var vg = [
|
|
|
7746
7836
|
imports: [Y("setColorMode")]
|
|
7747
7837
|
}
|
|
7748
7838
|
})
|
|
7749
|
-
],
|
|
7839
|
+
], wg = () => b.union([
|
|
7750
7840
|
b.interface("Date"),
|
|
7751
7841
|
b.string(),
|
|
7752
7842
|
b.number()
|
|
7753
|
-
], { name: "Date" }),
|
|
7843
|
+
], { name: "Date" }), Tg = [
|
|
7754
7844
|
S({
|
|
7755
7845
|
name: "time/dateFormat",
|
|
7756
7846
|
inputs: {
|
|
7757
|
-
in_date:
|
|
7847
|
+
in_date: wg(),
|
|
7758
7848
|
in_format: b.string({ name: "Format" })
|
|
7759
7849
|
},
|
|
7760
7850
|
outputs: { out_output: b.string({ name: "Formatted Date" }) },
|
|
7761
7851
|
methods: { out_output() {
|
|
7762
|
-
return
|
|
7852
|
+
return mm(this.in_date, this.in_format).value;
|
|
7763
7853
|
} },
|
|
7764
7854
|
display: {
|
|
7765
7855
|
name: "Use Date Format",
|
|
@@ -7789,7 +7879,7 @@ var vg = [
|
|
|
7789
7879
|
outputs: { out_counter: b.number({ name: "Counter" }) },
|
|
7790
7880
|
methods: { out_counter() {
|
|
7791
7881
|
let e = this.in_interval ?? 1e3;
|
|
7792
|
-
return this.instance([e], () =>
|
|
7882
|
+
return this.instance([e], () => gm(e)).value;
|
|
7793
7883
|
} },
|
|
7794
7884
|
display: {
|
|
7795
7885
|
name: "Use Interval",
|
|
@@ -7819,7 +7909,7 @@ var vg = [
|
|
|
7819
7909
|
outputs: { out_now: b.interface("Date") },
|
|
7820
7910
|
methods: { out_now() {
|
|
7821
7911
|
let e = this.in_interval;
|
|
7822
|
-
return this.instance([e], () => /* @__PURE__ */
|
|
7912
|
+
return this.instance([e], () => /* @__PURE__ */ dh(e ? { scheduler: (t) => hm(t, e) } : void 0)).value;
|
|
7823
7913
|
} },
|
|
7824
7914
|
display: {
|
|
7825
7915
|
name: "Use Now",
|
|
@@ -7844,15 +7934,15 @@ var vg = [
|
|
|
7844
7934
|
}),
|
|
7845
7935
|
S({
|
|
7846
7936
|
name: "time/timeAgo",
|
|
7847
|
-
inputs: { in_date:
|
|
7937
|
+
inputs: { in_date: wg() },
|
|
7848
7938
|
outputs: { out_output: b.string({ name: "Time Ago" }) },
|
|
7849
7939
|
methods: { out_output() {
|
|
7850
|
-
return this.instance([], () => /* @__PURE__ */
|
|
7940
|
+
return this.instance([], () => /* @__PURE__ */ Oh(() => this.in_date)).value;
|
|
7851
7941
|
} },
|
|
7852
7942
|
display: {
|
|
7853
7943
|
name: "Use Time Ago",
|
|
7854
7944
|
config: {
|
|
7855
|
-
icon:
|
|
7945
|
+
icon: wp,
|
|
7856
7946
|
scope: x.Frontend
|
|
7857
7947
|
}
|
|
7858
7948
|
},
|
|
@@ -7876,7 +7966,7 @@ var vg = [
|
|
|
7876
7966
|
outputs: { out_timestamp: b.number({ name: "Timestamp" }) },
|
|
7877
7967
|
methods: { out_timestamp() {
|
|
7878
7968
|
let e = this.in_interval;
|
|
7879
|
-
return this.instance([e], () =>
|
|
7969
|
+
return this.instance([e], () => Ah(e ? { scheduler: (t) => hm(t, e) } : void 0)).value;
|
|
7880
7970
|
} },
|
|
7881
7971
|
display: {
|
|
7882
7972
|
name: "Use Timestamp",
|
|
@@ -7892,7 +7982,7 @@ var vg = [
|
|
|
7892
7982
|
},
|
|
7893
7983
|
build: {
|
|
7894
7984
|
define: J,
|
|
7895
|
-
generate:
|
|
7985
|
+
generate: Ap("useTimestamp(interval ? {scheduler: (callback) => useIntervalFn(callback, interval)} : undefined)", { out_timestamp: ".value" }, "[interval]", "const interval = this.in_interval; "),
|
|
7896
7986
|
imports: [
|
|
7897
7987
|
X("useTimestamp"),
|
|
7898
7988
|
X("useIntervalFn"),
|
|
@@ -7917,11 +8007,11 @@ var vg = [
|
|
|
7917
8007
|
methods: {
|
|
7918
8008
|
out_remaining() {
|
|
7919
8009
|
let e = this.in_seconds ?? 0, t = this.in_interval ?? 1e3;
|
|
7920
|
-
return this.instance([e, t], () =>
|
|
8010
|
+
return this.instance([e, t], () => hg(e, t)).remaining.value;
|
|
7921
8011
|
},
|
|
7922
8012
|
out_done() {
|
|
7923
8013
|
let e = this.in_seconds ?? 0, t = this.in_interval ?? 1e3;
|
|
7924
|
-
return this.instance([e, t], () =>
|
|
8014
|
+
return this.instance([e, t], () => hg(e, t)).remaining.value <= 0;
|
|
7925
8015
|
}
|
|
7926
8016
|
},
|
|
7927
8017
|
display: {
|
|
@@ -7938,14 +8028,14 @@ var vg = [
|
|
|
7938
8028
|
},
|
|
7939
8029
|
build: {
|
|
7940
8030
|
define: J,
|
|
7941
|
-
generate:
|
|
8031
|
+
generate: Ap("useRunningCountdown(seconds, interval)", {
|
|
7942
8032
|
out_done: ".remaining.value <= 0",
|
|
7943
8033
|
out_remaining: ".remaining.value"
|
|
7944
8034
|
}, "[seconds, interval]", "const seconds = this.in_seconds ?? 0; const interval = this.in_interval ?? 1000; "),
|
|
7945
8035
|
imports: [Y("useRunningCountdown"), Z]
|
|
7946
8036
|
}
|
|
7947
8037
|
})
|
|
7948
|
-
],
|
|
8038
|
+
], Eg = [
|
|
7949
8039
|
S({
|
|
7950
8040
|
name: "utils/debounced",
|
|
7951
8041
|
inputs: {
|
|
@@ -7962,7 +8052,7 @@ var vg = [
|
|
|
7962
8052
|
}) },
|
|
7963
8053
|
methods: { out_value() {
|
|
7964
8054
|
let e = this.in_delay ?? 200;
|
|
7965
|
-
return this.instance([e], () =>
|
|
8055
|
+
return this.instance([e], () => pg(() => this.in_value, e)).value;
|
|
7966
8056
|
} },
|
|
7967
8057
|
display: {
|
|
7968
8058
|
name: "Use Debounced",
|
|
@@ -7998,7 +8088,7 @@ var vg = [
|
|
|
7998
8088
|
}) },
|
|
7999
8089
|
methods: { out_value() {
|
|
8000
8090
|
let e = this.in_delay ?? 200;
|
|
8001
|
-
return this.instance([e], () =>
|
|
8091
|
+
return this.instance([e], () => mg(() => this.in_value, e)).value;
|
|
8002
8092
|
} },
|
|
8003
8093
|
display: {
|
|
8004
8094
|
name: "Use Throttled",
|
|
@@ -8026,13 +8116,13 @@ var vg = [
|
|
|
8026
8116
|
dynamic: ({ inputs: e }) => e.in_value
|
|
8027
8117
|
}) },
|
|
8028
8118
|
methods: { out_previous() {
|
|
8029
|
-
return this.instance([], () =>
|
|
8119
|
+
return this.instance([], () => bh(() => this.in_value)).value;
|
|
8030
8120
|
} },
|
|
8031
8121
|
display: {
|
|
8032
8122
|
name: "Use Previous",
|
|
8033
8123
|
altSearch: "old last before change history",
|
|
8034
8124
|
config: {
|
|
8035
|
-
icon:
|
|
8125
|
+
icon: wp,
|
|
8036
8126
|
scope: x.Frontend
|
|
8037
8127
|
}
|
|
8038
8128
|
},
|
|
@@ -8048,55 +8138,55 @@ var vg = [
|
|
|
8048
8138
|
})
|
|
8049
8139
|
];
|
|
8050
8140
|
// src/nodes/index.ts
|
|
8051
|
-
function
|
|
8141
|
+
function Dg(e) {
|
|
8052
8142
|
return [
|
|
8053
|
-
...mg,
|
|
8054
|
-
...hg,
|
|
8055
8143
|
...gg,
|
|
8056
|
-
..._g
|
|
8144
|
+
..._g,
|
|
8057
8145
|
...vg,
|
|
8058
|
-
...
|
|
8146
|
+
...yg(e),
|
|
8147
|
+
...bg,
|
|
8059
8148
|
...Cg,
|
|
8060
|
-
...
|
|
8149
|
+
...Tg,
|
|
8150
|
+
...Eg
|
|
8061
8151
|
];
|
|
8062
8152
|
}
|
|
8063
8153
|
// src/index.ts
|
|
8064
|
-
var
|
|
8154
|
+
var Og = b.object({ breakpoints: b.string({
|
|
8065
8155
|
name: "Breakpoints",
|
|
8066
8156
|
default: "tailwind",
|
|
8067
8157
|
description: "Breakpoint preset used by the responsive nodes.",
|
|
8068
|
-
enum: Object.keys(
|
|
8158
|
+
enum: Object.keys(Qh)
|
|
8069
8159
|
}) });
|
|
8070
|
-
function
|
|
8160
|
+
function kg(e) {
|
|
8071
8161
|
return { breakpoints: e.breakpoints ?? "tailwind" };
|
|
8072
8162
|
}
|
|
8073
|
-
function
|
|
8074
|
-
|
|
8163
|
+
function Ag({ config: e }) {
|
|
8164
|
+
Lh(!0), eg(kg(e));
|
|
8075
8165
|
}
|
|
8076
|
-
var
|
|
8166
|
+
var jg = zf({
|
|
8077
8167
|
id: "reactivity",
|
|
8078
8168
|
name: "Reactivity",
|
|
8079
8169
|
description: "Reactive browser, sensor, time and state nodes powered by VueUse.",
|
|
8080
8170
|
icon: Vf,
|
|
8081
8171
|
llm: Bf,
|
|
8082
|
-
config:
|
|
8172
|
+
config: Og,
|
|
8083
8173
|
lifecycle: {
|
|
8084
|
-
mount:
|
|
8085
|
-
update:
|
|
8174
|
+
mount: Ag,
|
|
8175
|
+
update: Ag
|
|
8086
8176
|
},
|
|
8087
|
-
editor: { nodes: ({ config: e }) =>
|
|
8177
|
+
editor: { nodes: ({ config: e }) => Dg(kg(e).breakpoints) },
|
|
8088
8178
|
build: {
|
|
8089
8179
|
frontImports: [{
|
|
8090
|
-
name:
|
|
8091
|
-
version:
|
|
8180
|
+
name: Op.name,
|
|
8181
|
+
version: Op.version
|
|
8092
8182
|
}, {
|
|
8093
8183
|
name: "@vueuse/core",
|
|
8094
|
-
version:
|
|
8184
|
+
version: Op.peerDependencies["@vueuse/core"]
|
|
8095
8185
|
}],
|
|
8096
8186
|
injections: ({ config: e }) => ({ [If.AppSetup]: `
|
|
8097
|
-
import { configureReactivity } from "${
|
|
8098
|
-
configureReactivity(${JSON.stringify(
|
|
8187
|
+
import { configureReactivity } from "${Op.name}/runtime";
|
|
8188
|
+
configureReactivity(${JSON.stringify(kg(e))});
|
|
8099
8189
|
` })
|
|
8100
8190
|
}
|
|
8101
8191
|
});
|
|
8102
|
-
export {
|
|
8192
|
+
export { jg as default };
|