@8wave/ai-elements 0.103.0-beta.3 → 0.103.0-beta.4
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/_chunks/PkLazyImg-CyeqD59M.js +34 -0
- package/dist/_chunks/{PkLazyImg-_389yCnQ.js.map → PkLazyImg-CyeqD59M.js.map} +1 -1
- package/dist/_chunks/{PkStreamingMarkdown-YJDdYD0E.js → PkStreamingMarkdown-DIkusrTI.js} +28 -28
- package/dist/_chunks/{PkStreamingMarkdown-YJDdYD0E.js.map → PkStreamingMarkdown-DIkusrTI.js.map} +1 -1
- package/dist/_chunks/PkToolRequestGeolocation-Cgus94KF.js +69 -0
- package/dist/_chunks/{PkToolRequestGeolocation-T16QI-Uv.js.map → PkToolRequestGeolocation-Cgus94KF.js.map} +1 -1
- package/dist/_chunks/{PkToolRequestOAuthConnection-C8e5np2q.js → PkToolRequestOAuthConnection-DsUpUh97.js} +21 -21
- package/dist/_chunks/{PkToolRequestOAuthConnection-C8e5np2q.js.map → PkToolRequestOAuthConnection-DsUpUh97.js.map} +1 -1
- package/dist/_chunks/PkToolShowArtifact-griVx9w3.js +93 -0
- package/dist/_chunks/{PkToolShowArtifact-D15GjBm6.js.map → PkToolShowArtifact-griVx9w3.js.map} +1 -1
- package/dist/_chunks/{PkToolShowCalendarEvent-D_GjXl2_.js → PkToolShowCalendarEvent-DyiNmqqo.js} +43 -43
- package/dist/_chunks/{PkToolShowCalendarEvent-D_GjXl2_.js.map → PkToolShowCalendarEvent-DyiNmqqo.js.map} +1 -1
- package/dist/_chunks/PkToolShowComparison-RA72YL7R.js +66 -0
- package/dist/_chunks/{PkToolShowComparison-Bp2rP2Hx.js.map → PkToolShowComparison-RA72YL7R.js.map} +1 -1
- package/dist/_chunks/{PkToolShowContactForm-NVzIu2t0.js → PkToolShowContactForm-BzDhv2yd.js} +41 -41
- package/dist/_chunks/{PkToolShowContactForm-NVzIu2t0.js.map → PkToolShowContactForm-BzDhv2yd.js.map} +1 -1
- package/dist/_chunks/{PkToolShowDiagram-BnZrDPVC.js → PkToolShowDiagram-DhXe8IPm.js} +79 -79
- package/dist/_chunks/{PkToolShowDiagram-BnZrDPVC.js.map → PkToolShowDiagram-DhXe8IPm.js.map} +1 -1
- package/dist/_chunks/{PkToolShowEmail-DCSj4328.js → PkToolShowEmail-CBmfy_I9.js} +34 -34
- package/dist/_chunks/{PkToolShowEmail-DCSj4328.js.map → PkToolShowEmail-CBmfy_I9.js.map} +1 -1
- package/dist/_chunks/PkToolShowForm-CzIfm5de.js +365 -0
- package/dist/_chunks/{PkToolShowForm-ztQFyFd9.js.map → PkToolShowForm-CzIfm5de.js.map} +1 -1
- package/dist/_chunks/PkToolShowImageGallery-CSIiRuSC.js +74 -0
- package/dist/_chunks/{PkToolShowImageGallery-DiOR0vYa.js.map → PkToolShowImageGallery-CSIiRuSC.js.map} +1 -1
- package/dist/_chunks/{PkToolShowLocation-CQmgakEo.js → PkToolShowLocation-BHoUqpx4.js} +4079 -4079
- package/dist/_chunks/{PkToolShowLocation-CQmgakEo.js.map → PkToolShowLocation-BHoUqpx4.js.map} +1 -1
- package/dist/_chunks/PkToolShowMessage-CpDmPfCG.js +77 -0
- package/dist/_chunks/{PkToolShowMessage-BysjJ1oS.js.map → PkToolShowMessage-CpDmPfCG.js.map} +1 -1
- package/dist/_chunks/{PkToolShowProductList-D-JXSRmA.js → PkToolShowProductList-B8uuIvGo.js} +28 -28
- package/dist/_chunks/{PkToolShowProductList-D-JXSRmA.js.map → PkToolShowProductList-B8uuIvGo.js.map} +1 -1
- package/dist/_chunks/{PkToolShowQrCode-BcIwuGqm.js → PkToolShowQrCode-CD2lo3O0.js} +23 -23
- package/dist/_chunks/{PkToolShowQrCode-BcIwuGqm.js.map → PkToolShowQrCode-CD2lo3O0.js.map} +1 -1
- package/dist/_chunks/{PkToolShowSources-U7etupUP.js → PkToolShowSources-JxaTAEpc.js} +98 -98
- package/dist/_chunks/{PkToolShowSources-U7etupUP.js.map → PkToolShowSources-JxaTAEpc.js.map} +1 -1
- package/dist/_chunks/{PkToolShowSuggestedReply-Dqe4gtEY.js → PkToolShowSuggestedReply-BTxqEwEm.js} +18 -18
- package/dist/_chunks/{PkToolShowSuggestedReply-Dqe4gtEY.js.map → PkToolShowSuggestedReply-BTxqEwEm.js.map} +1 -1
- package/dist/_chunks/{PkToolShowVideo-DYMhfXKH.js → PkToolShowVideo-CVksKdPD.js} +17 -17
- package/dist/_chunks/{PkToolShowVideo-DYMhfXKH.js.map → PkToolShowVideo-CVksKdPD.js.map} +1 -1
- package/dist/_chunks/{PkToolShowWeather-D_pJe5DI.js → PkToolShowWeather-IDwTDozU.js} +68 -68
- package/dist/_chunks/{PkToolShowWeather-D_pJe5DI.js.map → PkToolShowWeather-IDwTDozU.js.map} +1 -1
- package/dist/_chunks/PkToolShowWebPages-D9Yst_2O.js +78 -0
- package/dist/_chunks/{PkToolShowWebPages-CPNgXzrS.js.map → PkToolShowWebPages-D9Yst_2O.js.map} +1 -1
- package/dist/_chunks/{PkUrl-C3gMPCjz.js → PkUrl-B3FTSURr.js} +19 -19
- package/dist/_chunks/{PkUrl-C3gMPCjz.js.map → PkUrl-B3FTSURr.js.map} +1 -1
- package/dist/_chunks/{VvCheckbox.es-CEfwI84M.js → VvCheckbox.es-C_dlDzrr.js} +78 -78
- package/dist/_chunks/{VvCheckbox.es-CEfwI84M.js.map → VvCheckbox.es-C_dlDzrr.js.map} +1 -1
- package/dist/_chunks/{VvCheckboxGroup.es-B-eWqe8G.js → VvCheckboxGroup.es-hY0kWpC2.js} +197 -197
- package/dist/_chunks/{VvCheckboxGroup.es-B-eWqe8G.js.map → VvCheckboxGroup.es-hY0kWpC2.js.map} +1 -1
- package/dist/_chunks/VvCombobox.es-DxhDF7ab.js +2044 -0
- package/dist/_chunks/{VvCombobox.es-CfRJtWOd.js.map → VvCombobox.es-DxhDF7ab.js.map} +1 -1
- package/dist/_chunks/{VvInputText.es-B0HHD6Th.js → VvInputText.es-CdpU8kvP.js} +460 -460
- package/dist/_chunks/{VvInputText.es-B0HHD6Th.js.map → VvInputText.es-CdpU8kvP.js.map} +1 -1
- package/dist/_chunks/{VvRadio.es-B3u8JJFF.js → VvRadio.es-BruZ5FHR.js} +144 -144
- package/dist/_chunks/{VvRadio.es-B3u8JJFF.js.map → VvRadio.es-BruZ5FHR.js.map} +1 -1
- package/dist/_chunks/{VvRadioGroup.es--AMV1wAw.js → VvRadioGroup.es-DSv6UdEy.js} +148 -148
- package/dist/_chunks/{VvRadioGroup.es--AMV1wAw.js.map → VvRadioGroup.es-DSv6UdEy.js.map} +1 -1
- package/dist/_chunks/{VvSelect.es-BfrDID0e.js → VvSelect.es-C244CAei.js} +155 -155
- package/dist/_chunks/{VvSelect.es-BfrDID0e.js.map → VvSelect.es-C244CAei.js.map} +1 -1
- package/dist/_chunks/VvTextarea.es-DbaPIcWl.js +1166 -0
- package/dist/_chunks/{VvTextarea.es-CAzFW944.js.map → VvTextarea.es-DbaPIcWl.js.map} +1 -1
- package/dist/_chunks/{dist-BvSGMyWS.js → dist-BgJVX4FG.js} +12 -12
- package/dist/_chunks/{dist-BvSGMyWS.js.map → dist-BgJVX4FG.js.map} +1 -1
- package/dist/_chunks/{dist-TFHdNK0W.js → dist-C5Y-NI3i.js} +230 -230
- package/dist/_chunks/{dist-TFHdNK0W.js.map → dist-C5Y-NI3i.js.map} +1 -1
- package/dist/_chunks/{esm-CUYQMpeA.js → esm-BTbGj6W3.js} +25 -25
- package/dist/_chunks/{esm-CUYQMpeA.js.map → esm-BTbGj6W3.js.map} +1 -1
- package/dist/_chunks/{floating-ui.vue-Br_zOLJv.js → floating-ui.vue-CoA4oagI.js} +16 -16
- package/dist/_chunks/{floating-ui.vue-Br_zOLJv.js.map → floating-ui.vue-CoA4oagI.js.map} +1 -1
- package/dist/_chunks/{iconify-BGSTR7vH.js → iconify-6ObncgfH.js} +36 -36
- package/dist/_chunks/{iconify-BGSTR7vH.js.map → iconify-6ObncgfH.js.map} +1 -1
- package/dist/_chunks/{index.es-B9rhQl9Z.js → index.es-BbyodRh9.js} +258 -258
- package/dist/_chunks/{index.es-B9rhQl9Z.js.map → index.es-BbyodRh9.js.map} +1 -1
- package/dist/_chunks/index.es-gbmOq0Nu.js +3124 -0
- package/dist/_chunks/index.es-gbmOq0Nu.js.map +1 -0
- package/dist/_chunks/{rolldown-runtime-CEFd7nDs.js → rolldown-runtime-CoeuCKPe.js} +4 -11
- package/dist/_chunks/{src-BjFv9Ag8.js → src-CIEdKLKO.js} +2 -2
- package/dist/_chunks/{src-BjFv9Ag8.js.map → src-CIEdKLKO.js.map} +1 -1
- package/dist/_chunks/useImageFallback-BAsLRsyg.js +19 -0
- package/dist/_chunks/{useImageFallback-8kfLDjXm.js.map → useImageFallback-BAsLRsyg.js.map} +1 -1
- package/dist/_chunks/{useLightbox-Bq6k-Wlt.js → useLightbox-Epg2fN87.js} +7 -7
- package/dist/_chunks/{useLightbox-Bq6k-Wlt.js.map → useLightbox-Epg2fN87.js.map} +1 -1
- package/dist/_chunks/useShortUrlResolver--HRa6Od3.js +72 -0
- package/dist/_chunks/{useShortUrlResolver-BTJM8XRw.js.map → useShortUrlResolver--HRa6Od3.js.map} +1 -1
- package/dist/_chunks/{vue-i18n-BJ7nxwO3.js → vue-i18n-t25g63Be.js} +81 -81
- package/dist/_chunks/{vue-i18n-BJ7nxwO3.js.map → vue-i18n-t25g63Be.js.map} +1 -1
- package/dist/_chunks/vue.runtime.esm-bundler-B3bThTaf.js +3747 -0
- package/dist/_chunks/vue.runtime.esm-bundler-B3bThTaf.js.map +1 -0
- package/dist/ai-elements.es.js +1861 -1861
- package/dist/ai-elements.es.js.map +1 -1
- package/dist-vue/PkChatbot.js +1 -1
- package/dist-vue/PkChatbotAuth.js +1 -1
- package/dist-vue/PkChatbotFeedbackForm.js +1 -1
- package/dist-vue/PkChatbotMessages.js +1 -1
- package/dist-vue/PkChatbotViewChat.js +1 -1
- package/dist-vue/_chunks/{PkChatbot-DZ6TaZHh.js → PkChatbot-Ch8FlZjC.js} +2 -2
- package/dist-vue/_chunks/{PkChatbot-DZ6TaZHh.js.map → PkChatbot-Ch8FlZjC.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotAuth-CqwTN8ih.js → PkChatbotAuth-DvnmIukc.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotAuth-CqwTN8ih.js.map → PkChatbotAuth-DvnmIukc.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotFeedbackForm-nEevDHmI.js → PkChatbotFeedbackForm-D0RNa7bE.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotFeedbackForm-nEevDHmI.js.map → PkChatbotFeedbackForm-D0RNa7bE.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotMessages-BgsyN-mB.js → PkChatbotMessages-DGO0WIqx.js} +4 -4
- package/dist-vue/_chunks/{PkChatbotMessages-BgsyN-mB.js.map → PkChatbotMessages-DGO0WIqx.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewChat-0g30_sQH.js → PkChatbotViewChat-Dkz8dq8N.js} +3 -3
- package/dist-vue/_chunks/{PkChatbotViewChat-0g30_sQH.js.map → PkChatbotViewChat-Dkz8dq8N.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowContactForm-CMK4zR2J.js → PkToolShowContactForm-CkkWxSSz.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowContactForm-CMK4zR2J.js.map → PkToolShowContactForm-CkkWxSSz.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowDiagram-DoklcF3f.js → PkToolShowDiagram-D0NBG-Gy.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowDiagram-DoklcF3f.js.map → PkToolShowDiagram-D0NBG-Gy.js.map} +1 -1
- package/dist-vue/_chunks/{index.es-BT6Jr2yi.js → index.es-BKxzs6Sh.js} +2 -2
- package/dist-vue/_chunks/{index.es-BT6Jr2yi.js.map → index.es-BKxzs6Sh.js.map} +1 -1
- package/dist-vue/index.js +10 -10
- package/package.json +2 -2
- package/dist/_chunks/PkLazyImg-_389yCnQ.js +0 -34
- package/dist/_chunks/PkToolRequestGeolocation-T16QI-Uv.js +0 -69
- package/dist/_chunks/PkToolShowArtifact-D15GjBm6.js +0 -93
- package/dist/_chunks/PkToolShowComparison-Bp2rP2Hx.js +0 -66
- package/dist/_chunks/PkToolShowForm-ztQFyFd9.js +0 -365
- package/dist/_chunks/PkToolShowImageGallery-DiOR0vYa.js +0 -74
- package/dist/_chunks/PkToolShowMessage-BysjJ1oS.js +0 -77
- package/dist/_chunks/PkToolShowWebPages-CPNgXzrS.js +0 -78
- package/dist/_chunks/VvCombobox.es-CfRJtWOd.js +0 -2044
- package/dist/_chunks/VvTextarea.es-CAzFW944.js +0 -1166
- package/dist/_chunks/index.es-DvV0VhDa.js +0 -9832
- package/dist/_chunks/index.es-DvV0VhDa.js.map +0 -1
- package/dist/_chunks/useImageFallback-8kfLDjXm.js +0 -19
- package/dist/_chunks/useShortUrlResolver-BTJM8XRw.js +0 -72
- package/dist/_chunks/vue.runtime.esm-bundler-DF2of3lp.js +0 -5007
- package/dist/_chunks/vue.runtime.esm-bundler-DF2of3lp.js.map +0 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { D as e, F as t, N as n, O as r, X as i, Z as a, _t as o, bt as s, ct as c, ft as l, gt as u, ht as d, it as f, k as p, m, mt as h, pt as g, rt as _, tt as v, ut as y, w as b, yt as x } from "./vue.runtime.esm-bundler-B3bThTaf.js";
|
|
2
2
|
//#region ../../node_modules/.pnpm/@vueuse+shared@14.4.0_vue@3.5.41_typescript@6.0.3_/node_modules/@vueuse/shared/dist/index.js
|
|
3
|
-
|
|
3
|
+
f(), r();
|
|
4
4
|
function S(e, t) {
|
|
5
|
-
return
|
|
5
|
+
return _() ? (y(e, t), !0) : !1;
|
|
6
6
|
}
|
|
7
7
|
var C = /* @__PURE__ */ new WeakMap(), w = (...t) => {
|
|
8
|
-
let
|
|
9
|
-
if (
|
|
10
|
-
return
|
|
8
|
+
let n = t[0], r = b()?.proxy ?? _();
|
|
9
|
+
if (r == null && !e()) throw Error("injectLocal must be called in setup");
|
|
10
|
+
return r && C.has(r) && n in C.get(r) ? C.get(r)[n] : p(...t);
|
|
11
11
|
}, T = typeof window < "u" && typeof document < "u";
|
|
12
12
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
13
13
|
var E = (e) => e !== void 0, D = (e) => e != null, O = Object.prototype.toString, k = (e) => O.call(e) === "[object Object]", A = () => {}, j = /* #__PURE__ */ M();
|
|
@@ -16,12 +16,12 @@ function M() {
|
|
|
16
16
|
return T && !!((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));
|
|
17
17
|
}
|
|
18
18
|
function ee(...e) {
|
|
19
|
-
if (e.length !== 1) return
|
|
19
|
+
if (e.length !== 1) return o(...e);
|
|
20
20
|
let t = e[0];
|
|
21
|
-
return typeof t == "function" ?
|
|
21
|
+
return typeof t == "function" ? l(v(() => ({
|
|
22
22
|
get: t,
|
|
23
23
|
set: A
|
|
24
|
-
}))) :
|
|
24
|
+
}))) : g(t);
|
|
25
25
|
}
|
|
26
26
|
function N(e, t) {
|
|
27
27
|
function n(...n) {
|
|
@@ -44,14 +44,14 @@ function te(e, t = {}) {
|
|
|
44
44
|
let n, r, i = A, a = A, o = d(!1), s = (e) => {
|
|
45
45
|
clearTimeout(e), i(), i = A;
|
|
46
46
|
}, c;
|
|
47
|
-
return Object.assign((
|
|
48
|
-
let
|
|
49
|
-
return n && s(n),
|
|
50
|
-
i = t.rejectOnCancel ?
|
|
47
|
+
return Object.assign((l) => {
|
|
48
|
+
let u = x(e), d = x(t.maxWait);
|
|
49
|
+
return n && s(n), u <= 0 || d !== void 0 && d <= 0 ? (r &&= (s(r), void 0), o.value = !1, Promise.resolve(l())) : (o.value = !0, new Promise((e, f) => {
|
|
50
|
+
i = t.rejectOnCancel ? f : e, a = e, c = l, d && !r && (r = setTimeout(() => {
|
|
51
51
|
n && s(n), r = void 0, o.value = !1, e(c());
|
|
52
|
-
},
|
|
53
|
-
r && s(r), r = void 0, o.value = !1, e(
|
|
54
|
-
},
|
|
52
|
+
}, d)), n = setTimeout(() => {
|
|
53
|
+
r && s(r), r = void 0, o.value = !1, e(l());
|
|
54
|
+
}, u);
|
|
55
55
|
}));
|
|
56
56
|
}, {
|
|
57
57
|
cancel: () => {
|
|
@@ -64,22 +64,22 @@ function te(e, t = {}) {
|
|
|
64
64
|
i = A, a = A, e(c());
|
|
65
65
|
}
|
|
66
66
|
},
|
|
67
|
-
isPending:
|
|
67
|
+
isPending: h(o)
|
|
68
68
|
});
|
|
69
69
|
}
|
|
70
70
|
function F(...e) {
|
|
71
|
-
let t = 0, n, r = !0, i = A, a, o, s,
|
|
72
|
-
!
|
|
71
|
+
let t = 0, n, r = !0, i = A, a, o, s, l, u;
|
|
72
|
+
!c(e[0]) && typeof e[0] == "object" ? {delay: o, trailing: s = !0, leading: l = !0, rejectOnCancel: u = !1} = e[0] : [o, s = !0, l = !0, u = !1] = e;
|
|
73
73
|
let d = () => {
|
|
74
74
|
n && (clearTimeout(n), n = void 0, i(), i = A);
|
|
75
75
|
};
|
|
76
76
|
return (e) => {
|
|
77
|
-
let
|
|
78
|
-
return d(),
|
|
77
|
+
let c = x(o), f = Date.now() - t, p = () => a = e();
|
|
78
|
+
return d(), c <= 0 ? (t = Date.now(), p()) : (f > c ? (t = Date.now(), (l || !r) && p()) : s && (a = new Promise((e, a) => {
|
|
79
79
|
i = u ? a : e, n = setTimeout(() => {
|
|
80
|
-
t = Date.now(), r = !0, e(
|
|
81
|
-
}, Math.max(0,
|
|
82
|
-
})), !
|
|
80
|
+
t = Date.now(), r = !0, e(p()), d();
|
|
81
|
+
}, Math.max(0, c - f));
|
|
82
|
+
})), !l && !n && (n = setTimeout(() => r = !0, c)), r = !1, a);
|
|
83
83
|
};
|
|
84
84
|
}
|
|
85
85
|
function I(e = P, t = {}) {
|
|
@@ -91,7 +91,7 @@ function I(e = P, t = {}) {
|
|
|
91
91
|
r.value = !0;
|
|
92
92
|
}
|
|
93
93
|
return {
|
|
94
|
-
isActive:
|
|
94
|
+
isActive: h(r),
|
|
95
95
|
pause: i,
|
|
96
96
|
resume: a,
|
|
97
97
|
eventFilter: (...t) => {
|
|
@@ -116,20 +116,20 @@ function R(e) {
|
|
|
116
116
|
return Array.isArray(e) ? e : [e];
|
|
117
117
|
}
|
|
118
118
|
function re(e) {
|
|
119
|
-
return e ||
|
|
119
|
+
return e || b();
|
|
120
120
|
}
|
|
121
121
|
function ie(e, t = 200, n = {}) {
|
|
122
122
|
return N(te(t, n), e);
|
|
123
123
|
}
|
|
124
124
|
function ae(e, t = 200, n = {}) {
|
|
125
|
-
let r =
|
|
125
|
+
let r = g(x(e)), a = ie(() => {
|
|
126
126
|
r.value = e.value;
|
|
127
127
|
}, t, n);
|
|
128
|
-
return
|
|
128
|
+
return i(e, () => a()), h(r);
|
|
129
129
|
}
|
|
130
130
|
function oe(e, t, n = {}) {
|
|
131
|
-
let { eventFilter: r = P, ...
|
|
132
|
-
return
|
|
131
|
+
let { eventFilter: r = P, ...a } = n;
|
|
132
|
+
return i(e, N(r, t), a);
|
|
133
133
|
}
|
|
134
134
|
function se(e, t, n = {}) {
|
|
135
135
|
let { eventFilter: r, initialState: i = "active", ...a } = n, { eventFilter: o, pause: s, resume: c, isActive: l } = I(r, { initialState: i });
|
|
@@ -143,8 +143,8 @@ function se(e, t, n = {}) {
|
|
|
143
143
|
isActive: l
|
|
144
144
|
};
|
|
145
145
|
}
|
|
146
|
-
function ce(e,
|
|
147
|
-
re(i) ? t(e, i) :
|
|
146
|
+
function ce(e, r = !0, i) {
|
|
147
|
+
re(i) ? t(e, i) : r ? e() : n(e);
|
|
148
148
|
}
|
|
149
149
|
function le(e, t, n = {}) {
|
|
150
150
|
let { immediate: r = !0, immediateCallback: i = !1 } = n, a = d(!1), o;
|
|
@@ -154,42 +154,42 @@ function le(e, t, n = {}) {
|
|
|
154
154
|
function c() {
|
|
155
155
|
a.value = !1, s();
|
|
156
156
|
}
|
|
157
|
-
function
|
|
157
|
+
function l(...n) {
|
|
158
158
|
i && e(), s(), a.value = !0, o = setTimeout(() => {
|
|
159
159
|
a.value = !1, o = void 0, e(...n);
|
|
160
|
-
},
|
|
160
|
+
}, x(t));
|
|
161
161
|
}
|
|
162
|
-
return r && (a.value = !0, T &&
|
|
163
|
-
isPending:
|
|
164
|
-
start:
|
|
162
|
+
return r && (a.value = !0, T && l()), S(c), {
|
|
163
|
+
isPending: h(a),
|
|
164
|
+
start: l,
|
|
165
165
|
stop: c
|
|
166
166
|
};
|
|
167
167
|
}
|
|
168
168
|
function ue(e, t, n = {}) {
|
|
169
|
-
let { eventFilter: r = P, ...
|
|
170
|
-
if (
|
|
169
|
+
let { eventFilter: r = P, ...a } = n, o = N(r, t), s, c, l;
|
|
170
|
+
if (a.flush === "sync") {
|
|
171
171
|
let t = !1;
|
|
172
172
|
c = () => {}, s = (e) => {
|
|
173
173
|
t = !0, e(), t = !1;
|
|
174
|
-
}, l =
|
|
175
|
-
t ||
|
|
176
|
-
},
|
|
174
|
+
}, l = i(e, (...e) => {
|
|
175
|
+
t || o(...e);
|
|
176
|
+
}, a);
|
|
177
177
|
} else {
|
|
178
178
|
let t = [], n = 0, r = 0;
|
|
179
179
|
c = () => {
|
|
180
180
|
n = r;
|
|
181
|
-
}, t.push(
|
|
181
|
+
}, t.push(i(e, () => {
|
|
182
182
|
r++;
|
|
183
183
|
}, {
|
|
184
|
-
...
|
|
184
|
+
...a,
|
|
185
185
|
flush: "sync"
|
|
186
186
|
})), s = (e) => {
|
|
187
187
|
let t = r;
|
|
188
188
|
e(), n += r - t;
|
|
189
|
-
}, t.push(
|
|
189
|
+
}, t.push(i(e, (...e) => {
|
|
190
190
|
let t = n > 0 && n === r;
|
|
191
|
-
n = 0, r = 0, !t &&
|
|
192
|
-
},
|
|
191
|
+
n = 0, r = 0, !t && o(...e);
|
|
192
|
+
}, a)), l = () => {
|
|
193
193
|
t.forEach((e) => e());
|
|
194
194
|
};
|
|
195
195
|
}
|
|
@@ -200,28 +200,28 @@ function ue(e, t, n = {}) {
|
|
|
200
200
|
};
|
|
201
201
|
}
|
|
202
202
|
function de(e, t, n) {
|
|
203
|
-
return
|
|
203
|
+
return i(e, t, {
|
|
204
204
|
...n,
|
|
205
205
|
immediate: !0
|
|
206
206
|
});
|
|
207
207
|
}
|
|
208
208
|
function fe(e, t, n) {
|
|
209
|
-
return
|
|
209
|
+
return i(e, t, {
|
|
210
210
|
...n,
|
|
211
211
|
once: !0
|
|
212
212
|
});
|
|
213
213
|
}
|
|
214
214
|
//#endregion
|
|
215
215
|
//#region ../../node_modules/.pnpm/@vueuse+core@14.4.0_vue@3.5.41_typescript@6.0.3_/node_modules/@vueuse/core/dist/index.js
|
|
216
|
-
|
|
216
|
+
r(), f();
|
|
217
217
|
function z(e, t, n) {
|
|
218
218
|
let r;
|
|
219
|
-
r =
|
|
220
|
-
let { lazy:
|
|
221
|
-
return
|
|
222
|
-
if (!
|
|
223
|
-
|
|
224
|
-
let n =
|
|
219
|
+
r = c(n) ? { evaluating: n } : n || {};
|
|
220
|
+
let { lazy: i = !1, flush: o = "sync", evaluating: s = void 0, shallow: l = !0, onError: u = globalThis.reportError ?? A } = r, f = d(!i), p = l ? d(t) : g(t), h = 0;
|
|
221
|
+
return a(async (t) => {
|
|
222
|
+
if (!f.value) return;
|
|
223
|
+
h++;
|
|
224
|
+
let n = h, r = !1;
|
|
225
225
|
s && Promise.resolve().then(() => {
|
|
226
226
|
s.value = !0;
|
|
227
227
|
});
|
|
@@ -231,32 +231,32 @@ function z(e, t, n) {
|
|
|
231
231
|
s && (s.value = !1), r || e();
|
|
232
232
|
});
|
|
233
233
|
});
|
|
234
|
-
n ===
|
|
234
|
+
n === h && (p.value = i);
|
|
235
235
|
} catch (e) {
|
|
236
|
-
|
|
236
|
+
u(e);
|
|
237
237
|
} finally {
|
|
238
|
-
s && n ===
|
|
238
|
+
s && n === h && (s.value = !1), r = !0;
|
|
239
239
|
}
|
|
240
|
-
}, { flush: o }),
|
|
240
|
+
}, { flush: o }), i ? m(() => (f.value = !0, p.value)) : p;
|
|
241
241
|
}
|
|
242
242
|
var B = T ? window : void 0;
|
|
243
243
|
T && window.document;
|
|
244
244
|
var V = T ? window.navigator : void 0;
|
|
245
245
|
T && window.location;
|
|
246
246
|
function H(e) {
|
|
247
|
-
let t =
|
|
247
|
+
let t = x(e);
|
|
248
248
|
return t?.$el ?? t;
|
|
249
249
|
}
|
|
250
250
|
function U(...e) {
|
|
251
|
-
let t = (e, t, n, r) => (e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r)), n =
|
|
252
|
-
let t = R(
|
|
251
|
+
let t = (e, t, n, r) => (e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r)), n = m(() => {
|
|
252
|
+
let t = R(x(e[0])).filter((e) => e != null);
|
|
253
253
|
return t.every((e) => typeof e != "string") ? t : void 0;
|
|
254
254
|
});
|
|
255
255
|
return de(() => [
|
|
256
256
|
n.value?.map((e) => H(e)) ?? [B].filter((e) => e != null),
|
|
257
|
-
R(
|
|
258
|
-
R(
|
|
259
|
-
|
|
257
|
+
R(x(n.value ? e[1] : e[0])),
|
|
258
|
+
R(s(n.value ? e[2] : e[1])),
|
|
259
|
+
x(n.value ? e[3] : e[2])
|
|
260
260
|
], ([e, n, r, i], a, o) => {
|
|
261
261
|
if (!e?.length || !n?.length || !r?.length) return;
|
|
262
262
|
let s = k(i) ? { ...i } : i, c = e.flatMap((e) => n.flatMap((n) => r.map((r) => t(e, n, r, s))));
|
|
@@ -278,42 +278,42 @@ function pe(e, t, n = {}) {
|
|
|
278
278
|
let e = { passive: !0 };
|
|
279
279
|
Array.from(r.document.body.children).forEach((t) => t.addEventListener("click", A, e)), r.document.documentElement.addEventListener("click", A, e);
|
|
280
280
|
}
|
|
281
|
-
let c = !0,
|
|
281
|
+
let c = !0, l = (e) => x(i).some((t) => {
|
|
282
282
|
if (typeof t == "string") return Array.from(r.document.querySelectorAll(t)).some((t) => t === e.target || e.composedPath().includes(t));
|
|
283
283
|
{
|
|
284
284
|
let n = H(t);
|
|
285
285
|
return n && (e.target === n || e.composedPath().includes(n));
|
|
286
286
|
}
|
|
287
287
|
});
|
|
288
|
-
function
|
|
289
|
-
let t =
|
|
288
|
+
function u(e) {
|
|
289
|
+
let t = x(e);
|
|
290
290
|
return t && t.$.subTree.shapeFlag === 16;
|
|
291
291
|
}
|
|
292
|
-
function
|
|
293
|
-
let n =
|
|
292
|
+
function d(e, t) {
|
|
293
|
+
let n = x(e), r = n.$.subTree && n.$.subTree.children;
|
|
294
294
|
return r == null || !Array.isArray(r) ? !1 : r.some((e) => e.el === t.target || t.composedPath().includes(e.el));
|
|
295
295
|
}
|
|
296
|
-
let
|
|
296
|
+
let f = (n) => {
|
|
297
297
|
let r = H(e);
|
|
298
|
-
if (n.target != null && !(!(r instanceof Element) &&
|
|
299
|
-
if ("detail" in n && n.detail === 0 && (c = !
|
|
298
|
+
if (n.target != null && !(!(r instanceof Element) && u(e) && d(e, n)) && !(!r || r === n.target || n.composedPath().includes(r))) {
|
|
299
|
+
if ("detail" in n && n.detail === 0 && (c = !l(n)), !c) {
|
|
300
300
|
c = !0;
|
|
301
301
|
return;
|
|
302
302
|
}
|
|
303
303
|
t(n);
|
|
304
304
|
}
|
|
305
|
-
},
|
|
305
|
+
}, p = !1, m = [
|
|
306
306
|
U(r, "click", (e) => {
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
}, 0),
|
|
307
|
+
p || (p = !0, setTimeout(() => {
|
|
308
|
+
p = !1;
|
|
309
|
+
}, 0), f(e));
|
|
310
310
|
}, {
|
|
311
311
|
passive: !0,
|
|
312
312
|
capture: a
|
|
313
313
|
}),
|
|
314
314
|
U(r, "pointerdown", (t) => {
|
|
315
315
|
let n = H(e);
|
|
316
|
-
c = !
|
|
316
|
+
c = !l(t) && !!(n && !t.composedPath().includes(n));
|
|
317
317
|
}, { passive: !0 }),
|
|
318
318
|
o && U(r, "blur", (n) => {
|
|
319
319
|
setTimeout(() => {
|
|
@@ -322,19 +322,19 @@ function pe(e, t, n = {}) {
|
|
|
322
322
|
a?.tagName === "IFRAME" && !i?.contains(r.document.activeElement) && t(n);
|
|
323
323
|
}, 0);
|
|
324
324
|
}, { passive: !0 })
|
|
325
|
-
].filter(Boolean),
|
|
325
|
+
].filter(Boolean), h = () => m.forEach((e) => e());
|
|
326
326
|
return s ? {
|
|
327
|
-
stop:
|
|
327
|
+
stop: h,
|
|
328
328
|
cancel: () => {
|
|
329
329
|
c = !1;
|
|
330
330
|
},
|
|
331
331
|
trigger: (e) => {
|
|
332
|
-
c = !0,
|
|
332
|
+
c = !0, f(e), c = !1;
|
|
333
333
|
}
|
|
334
|
-
} :
|
|
334
|
+
} : h;
|
|
335
335
|
}
|
|
336
336
|
function me() {
|
|
337
|
-
let e = d(!1), n =
|
|
337
|
+
let e = d(!1), n = b();
|
|
338
338
|
return n && t(() => {
|
|
339
339
|
e.value = !0;
|
|
340
340
|
}, n), e;
|
|
@@ -342,37 +342,37 @@ function me() {
|
|
|
342
342
|
/* @__NO_SIDE_EFFECTS__ */
|
|
343
343
|
function G(e) {
|
|
344
344
|
let t = me();
|
|
345
|
-
return
|
|
345
|
+
return m(() => (t.value, !!e()));
|
|
346
346
|
}
|
|
347
347
|
function K(e, t, n = {}) {
|
|
348
|
-
let { window: r = B, ...
|
|
349
|
-
|
|
350
|
-
},
|
|
351
|
-
let t = R(
|
|
348
|
+
let { window: r = B, ...a } = n, o, s = /* @__PURE__ */ G(() => r && "MutationObserver" in r), c = () => {
|
|
349
|
+
o &&= (o.disconnect(), void 0);
|
|
350
|
+
}, l = i(m(() => {
|
|
351
|
+
let t = R(x(e)).map(H).filter(D);
|
|
352
352
|
return new Set(t);
|
|
353
353
|
}), (e) => {
|
|
354
|
-
c(), s.value && e.size && (
|
|
354
|
+
c(), s.value && e.size && (o = new MutationObserver(t), e.forEach((e) => o.observe(e, a)));
|
|
355
355
|
}, {
|
|
356
356
|
immediate: !0,
|
|
357
357
|
flush: "post"
|
|
358
|
-
}),
|
|
359
|
-
|
|
358
|
+
}), u = () => o?.takeRecords(), d = () => {
|
|
359
|
+
l(), c();
|
|
360
360
|
};
|
|
361
|
-
return S(
|
|
361
|
+
return S(d), {
|
|
362
362
|
isSupported: s,
|
|
363
|
-
stop:
|
|
364
|
-
takeRecords:
|
|
363
|
+
stop: d,
|
|
364
|
+
takeRecords: u
|
|
365
365
|
};
|
|
366
366
|
}
|
|
367
367
|
function q(e, t, n = {}) {
|
|
368
|
-
let { window: r = B, document:
|
|
369
|
-
if (!r || !
|
|
368
|
+
let { window: r = B, document: i = r?.document, flush: o = "sync" } = n;
|
|
369
|
+
if (!r || !i) return A;
|
|
370
370
|
let s, c = (e) => {
|
|
371
371
|
s?.(), s = e;
|
|
372
|
-
}, l =
|
|
372
|
+
}, l = a(() => {
|
|
373
373
|
let n = H(e);
|
|
374
374
|
if (n) {
|
|
375
|
-
let { stop: e } = K(
|
|
375
|
+
let { stop: e } = K(i, (e) => {
|
|
376
376
|
e.map((e) => [...e.removedNodes]).flat().some((e) => e === n || e.contains(n)) && t(e);
|
|
377
377
|
}, {
|
|
378
378
|
window: r,
|
|
@@ -394,7 +394,7 @@ function ge(...e) {
|
|
|
394
394
|
e.length === 3 ? (t = e[0], n = e[1], r = e[2]) : e.length === 2 ? typeof e[1] == "object" ? (t = !0, n = e[0], r = e[1]) : (t = e[0], n = e[1]) : (t = !0, n = e[0]);
|
|
395
395
|
let { target: i = B, eventName: a = "keydown", passive: o = !1, dedupe: s = !1 } = r, c = he(t);
|
|
396
396
|
return U(i, a, (e) => {
|
|
397
|
-
e.repeat &&
|
|
397
|
+
e.repeat && x(s) || c(e) && n(e);
|
|
398
398
|
}, o);
|
|
399
399
|
}
|
|
400
400
|
function _e(e = {}) {
|
|
@@ -419,84 +419,84 @@ function _e(e = {}) {
|
|
|
419
419
|
var ve = Symbol("vueuse-ssr-width");
|
|
420
420
|
/* @__NO_SIDE_EFFECTS__ */
|
|
421
421
|
function ye() {
|
|
422
|
-
let
|
|
423
|
-
return typeof
|
|
422
|
+
let t = e() ? w(ve, null) : null;
|
|
423
|
+
return typeof t == "number" ? t : void 0;
|
|
424
424
|
}
|
|
425
425
|
function be(e, t = {}) {
|
|
426
|
-
let { window: n = B, ssrWidth: r = /* @__PURE__ */ ye() } = t,
|
|
427
|
-
return
|
|
426
|
+
let { window: n = B, ssrWidth: r = /* @__PURE__ */ ye() } = t, i = /* @__PURE__ */ G(() => n && "matchMedia" in n && typeof n.matchMedia == "function"), o = d(typeof r == "number"), s = d(), c = d(!1);
|
|
427
|
+
return a(() => {
|
|
428
428
|
if (o.value) {
|
|
429
|
-
o.value = !
|
|
430
|
-
let t =
|
|
429
|
+
o.value = !i.value;
|
|
430
|
+
let t = x(e).split(",");
|
|
431
431
|
c.value = t.some((e) => {
|
|
432
432
|
let t = e.includes("not all"), n = e.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/), i = e.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/), a = !!(n || i);
|
|
433
433
|
return n && a && (a = r >= L(n[1])), i && a && (a = r <= L(i[1])), t ? !a : a;
|
|
434
434
|
});
|
|
435
435
|
return;
|
|
436
436
|
}
|
|
437
|
-
|
|
437
|
+
i.value && (s.value = n.matchMedia(x(e)), c.value = s.value.matches);
|
|
438
438
|
}), U(s, "change", (e) => {
|
|
439
439
|
c.value = e.matches;
|
|
440
|
-
}, { passive: !0 }),
|
|
440
|
+
}, { passive: !0 }), m(() => c.value);
|
|
441
441
|
}
|
|
442
442
|
function J(e, t = {}) {
|
|
443
|
-
let { controls: n = !1, navigator: r = V } = t, i = /* @__PURE__ */ G(() => r && "permissions" in r), a = d(), o = typeof e == "string" ? { name: e } : e,
|
|
444
|
-
|
|
443
|
+
let { controls: n = !1, navigator: r = V } = t, i = /* @__PURE__ */ G(() => r && "permissions" in r), a = d(), o = typeof e == "string" ? { name: e } : e, s = d(), c = () => {
|
|
444
|
+
s.value = a.value?.state ?? "prompt";
|
|
445
445
|
};
|
|
446
|
-
U(a, "change",
|
|
447
|
-
let
|
|
446
|
+
U(a, "change", c, { passive: !0 });
|
|
447
|
+
let l = ne(async () => {
|
|
448
448
|
if (i.value) {
|
|
449
449
|
if (!a.value) try {
|
|
450
450
|
a.value = await r.permissions.query(o);
|
|
451
451
|
} catch {
|
|
452
452
|
a.value = void 0;
|
|
453
453
|
} finally {
|
|
454
|
-
|
|
454
|
+
c();
|
|
455
455
|
}
|
|
456
|
-
if (n) return
|
|
456
|
+
if (n) return u(a.value);
|
|
457
457
|
}
|
|
458
458
|
});
|
|
459
|
-
return
|
|
460
|
-
state:
|
|
459
|
+
return l(), n ? {
|
|
460
|
+
state: s,
|
|
461
461
|
isSupported: i,
|
|
462
|
-
query:
|
|
463
|
-
} :
|
|
462
|
+
query: l
|
|
463
|
+
} : s;
|
|
464
464
|
}
|
|
465
465
|
function xe(e = {}) {
|
|
466
|
-
let { navigator: t = V, read: n = !1, source: r, copiedDuring: i = 1500, legacy: a = !1 } = e, o = /* @__PURE__ */ G(() => t && "clipboard" in t), s = J("clipboard-read"), c = J("clipboard-write"),
|
|
467
|
-
async function
|
|
466
|
+
let { navigator: t = V, read: n = !1, source: r, copiedDuring: i = 1500, legacy: a = !1 } = e, o = /* @__PURE__ */ G(() => t && "clipboard" in t), s = J("clipboard-read"), c = J("clipboard-write"), l = m(() => o.value || a), u = d(""), f = d(!1), p = d(!1), g = le(() => f.value = !1, i, { immediate: !1 }), _ = 0;
|
|
467
|
+
async function v() {
|
|
468
468
|
let e = !(o.value && w(s.value));
|
|
469
469
|
if (!e) try {
|
|
470
|
-
|
|
470
|
+
u.value = await t.clipboard.readText();
|
|
471
471
|
} catch {
|
|
472
472
|
e = !0;
|
|
473
473
|
}
|
|
474
|
-
e && (
|
|
474
|
+
e && (u.value = C());
|
|
475
475
|
}
|
|
476
|
-
|
|
477
|
-
async function
|
|
478
|
-
let n = e ??
|
|
479
|
-
if (
|
|
480
|
-
|
|
476
|
+
l.value && n && U(["copy", "cut"], v, { passive: !0 });
|
|
477
|
+
async function y(e) {
|
|
478
|
+
let n = e ?? x(r);
|
|
479
|
+
if (l.value && n != null) {
|
|
480
|
+
p.value = !0;
|
|
481
481
|
let e = !(o.value && w(c.value));
|
|
482
482
|
if (!e) try {
|
|
483
|
-
let e =
|
|
483
|
+
let e = b(n);
|
|
484
484
|
await t.clipboard.write([e]);
|
|
485
485
|
} catch {
|
|
486
486
|
e = !0;
|
|
487
487
|
}
|
|
488
488
|
if (e) {
|
|
489
|
-
if (typeof n == "string")
|
|
489
|
+
if (typeof n == "string") u.value = n, S(n);
|
|
490
490
|
else {
|
|
491
|
-
let e = ++
|
|
492
|
-
t != null && e ===
|
|
491
|
+
let e = ++_, t = await n();
|
|
492
|
+
t != null && e === _ && (u.value = t, S(t));
|
|
493
493
|
}
|
|
494
494
|
}
|
|
495
|
-
|
|
495
|
+
f.value = !0, g.start(), p.value = !1;
|
|
496
496
|
}
|
|
497
497
|
}
|
|
498
|
-
function
|
|
499
|
-
return typeof e == "string" ? (
|
|
498
|
+
function b(e) {
|
|
499
|
+
return typeof e == "string" ? (u.value = e, new ClipboardItem({ "text/plain": e })) : new ClipboardItem({ "text/plain": e().then((e = "") => (u.value = e, new Blob([e], { type: "text/plain" }))) });
|
|
500
500
|
}
|
|
501
501
|
function S(e) {
|
|
502
502
|
let t = document.createElement("textarea");
|
|
@@ -510,11 +510,11 @@ function xe(e = {}) {
|
|
|
510
510
|
return e === "granted" || e === "prompt";
|
|
511
511
|
}
|
|
512
512
|
return {
|
|
513
|
-
copyPending: p
|
|
514
|
-
isSupported:
|
|
515
|
-
text:
|
|
516
|
-
copied:
|
|
517
|
-
copy:
|
|
513
|
+
copyPending: h(p),
|
|
514
|
+
isSupported: l,
|
|
515
|
+
text: h(u),
|
|
516
|
+
copied: h(f),
|
|
517
|
+
copy: y
|
|
518
518
|
};
|
|
519
519
|
}
|
|
520
520
|
function Se(e) {
|
|
@@ -567,59 +567,59 @@ var Oe = {
|
|
|
567
567
|
write: (e) => e.toISOString()
|
|
568
568
|
}
|
|
569
569
|
}, Z = "vueuse-storage";
|
|
570
|
-
function Q(e, t,
|
|
571
|
-
let { flush:
|
|
570
|
+
function Q(e, t, r, a = {}) {
|
|
571
|
+
let { flush: o = "pre", deep: s = !0, listenToStorageChanges: c = !0, writeDefaults: l = !0, mergeDefaults: u = !1, shallow: f, window: p = B, eventFilter: h, onError: _ = (e) => {
|
|
572
572
|
console.error(e);
|
|
573
|
-
}, initOnMounted:
|
|
574
|
-
if (!
|
|
575
|
-
|
|
573
|
+
}, initOnMounted: v } = a, y = (f ? d : g)(typeof t == "function" ? t() : t), b = m(() => x(e));
|
|
574
|
+
if (!r) try {
|
|
575
|
+
r = Te("getDefaultStorage", () => B?.localStorage)();
|
|
576
576
|
} catch (e) {
|
|
577
|
-
|
|
577
|
+
_(e);
|
|
578
578
|
}
|
|
579
|
-
if (!
|
|
580
|
-
let S =
|
|
581
|
-
flush:
|
|
579
|
+
if (!r) return y;
|
|
580
|
+
let S = x(t), C = De(S), w = a.serializer ?? Oe[C], { pause: T, resume: E } = se(y, (e) => k(e), {
|
|
581
|
+
flush: o,
|
|
582
582
|
deep: s,
|
|
583
|
-
eventFilter:
|
|
583
|
+
eventFilter: h
|
|
584
584
|
});
|
|
585
|
-
|
|
585
|
+
i(b, () => j(), { flush: o });
|
|
586
586
|
let D = !1;
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
}, { passive: !0 }) : U(
|
|
590
|
-
|
|
591
|
-
})),
|
|
587
|
+
p && c && (r instanceof Storage ? U(p, "storage", (e) => {
|
|
588
|
+
v && !D || j(e);
|
|
589
|
+
}, { passive: !0 }) : U(p, Z, (e) => {
|
|
590
|
+
v && !D || M(e);
|
|
591
|
+
})), v ? ce(() => {
|
|
592
592
|
D = !0, j();
|
|
593
593
|
}) : j();
|
|
594
594
|
function O(e, t) {
|
|
595
|
-
if (
|
|
596
|
-
let
|
|
597
|
-
key:
|
|
595
|
+
if (p) {
|
|
596
|
+
let n = {
|
|
597
|
+
key: b.value,
|
|
598
598
|
oldValue: e,
|
|
599
599
|
newValue: t,
|
|
600
|
-
storageArea:
|
|
600
|
+
storageArea: r
|
|
601
601
|
};
|
|
602
|
-
|
|
602
|
+
p.dispatchEvent(r instanceof Storage ? new StorageEvent("storage", n) : new CustomEvent(Z, { detail: n }));
|
|
603
603
|
}
|
|
604
604
|
}
|
|
605
605
|
function k(e) {
|
|
606
606
|
try {
|
|
607
|
-
let t =
|
|
608
|
-
if (e == null) O(t, null),
|
|
607
|
+
let t = r.getItem(b.value);
|
|
608
|
+
if (e == null) O(t, null), r.removeItem(b.value);
|
|
609
609
|
else {
|
|
610
|
-
let
|
|
611
|
-
t !==
|
|
610
|
+
let n = w.write(e);
|
|
611
|
+
t !== n && (r.setItem(b.value, n), O(t, n));
|
|
612
612
|
}
|
|
613
613
|
} catch (e) {
|
|
614
|
-
|
|
614
|
+
_(e);
|
|
615
615
|
}
|
|
616
616
|
}
|
|
617
617
|
function A(e) {
|
|
618
|
-
let t = e ? e.newValue :
|
|
619
|
-
if (t == null) return
|
|
620
|
-
if (!e &&
|
|
618
|
+
let t = e ? e.newValue : r.getItem(b.value);
|
|
619
|
+
if (t == null) return l && S != null && r.setItem(b.value, w.write(S)), S;
|
|
620
|
+
if (!e && u) {
|
|
621
621
|
let e = w.read(t);
|
|
622
|
-
return typeof
|
|
622
|
+
return typeof u == "function" ? u(e, S) : C === "object" && !Array.isArray(e) ? {
|
|
623
623
|
...S,
|
|
624
624
|
...e
|
|
625
625
|
} : e;
|
|
@@ -627,20 +627,20 @@ function Q(e, t, n, i = {}) {
|
|
|
627
627
|
return typeof t == "string" ? w.read(t) : t;
|
|
628
628
|
}
|
|
629
629
|
function j(e) {
|
|
630
|
-
if (!(e && e.storageArea !==
|
|
630
|
+
if (!(e && e.storageArea !== r)) {
|
|
631
631
|
if (e && e.key == null) {
|
|
632
|
-
|
|
632
|
+
y.value = S;
|
|
633
633
|
return;
|
|
634
634
|
}
|
|
635
|
-
if (!(e && e.key !==
|
|
635
|
+
if (!(e && e.key !== b.value)) {
|
|
636
636
|
T();
|
|
637
637
|
try {
|
|
638
|
-
let t = w.write(
|
|
639
|
-
(e === void 0 || e?.newValue !== t) && (
|
|
638
|
+
let t = w.write(y.value);
|
|
639
|
+
(e === void 0 || e?.newValue !== t) && (y.value = A(e));
|
|
640
640
|
} catch (e) {
|
|
641
|
-
|
|
641
|
+
_(e);
|
|
642
642
|
} finally {
|
|
643
|
-
e ?
|
|
643
|
+
e ? n(E) : E();
|
|
644
644
|
}
|
|
645
645
|
}
|
|
646
646
|
}
|
|
@@ -648,33 +648,33 @@ function Q(e, t, n, i = {}) {
|
|
|
648
648
|
function M(e) {
|
|
649
649
|
j(e.detail);
|
|
650
650
|
}
|
|
651
|
-
return
|
|
651
|
+
return y;
|
|
652
652
|
}
|
|
653
653
|
function ke(e, t = {}) {
|
|
654
654
|
let n = d(!1), r = d(null), i = 0, a = !0;
|
|
655
655
|
if (T) {
|
|
656
|
-
let o = typeof t == "function" ? { onDrop: t } : t,
|
|
656
|
+
let o = typeof t == "function" ? { onDrop: t } : t, c = o.multiple ?? !0, l = o.preventDefaultForUnhandled ?? !1, u = (e) => {
|
|
657
657
|
let t = Array.from(e.dataTransfer?.files ?? []);
|
|
658
|
-
return t.length === 0 ? null :
|
|
659
|
-
}, u = (e) => {
|
|
660
|
-
let t = x(o.dataTypes);
|
|
661
|
-
return typeof t == "function" ? t(e) : !t?.length || e.length !== 0 && e.every((e) => t.some((t) => e.includes(t)));
|
|
658
|
+
return t.length === 0 ? null : c ? t : [t[0]];
|
|
662
659
|
}, d = (e) => {
|
|
660
|
+
let t = s(o.dataTypes);
|
|
661
|
+
return typeof t == "function" ? t(e) : !t?.length || e.length !== 0 && e.every((e) => t.some((t) => e.includes(t)));
|
|
662
|
+
}, f = (e) => {
|
|
663
663
|
if (o.checkValidity) return o.checkValidity(e);
|
|
664
|
-
let t = Array.from(e ?? []).map((e) => e.type), n =
|
|
664
|
+
let t = Array.from(e ?? []).map((e) => e.type), n = d(t), r = c || e.length <= 1;
|
|
665
665
|
return n && r;
|
|
666
|
-
},
|
|
666
|
+
}, p = () => /^(?:(?!chrome|android).)*safari/i.test(navigator.userAgent) && !("chrome" in window), m = (e, t) => {
|
|
667
667
|
let s = e.dataTransfer?.items;
|
|
668
|
-
if (a = (s &&
|
|
668
|
+
if (a = (s && f(s)) ?? !1, l && e.preventDefault(), !p() && !a) {
|
|
669
669
|
e.dataTransfer && (e.dataTransfer.dropEffect = "none");
|
|
670
670
|
return;
|
|
671
671
|
}
|
|
672
672
|
e.preventDefault(), e.dataTransfer && (e.dataTransfer.dropEffect = "copy");
|
|
673
|
-
let
|
|
673
|
+
let c = u(e);
|
|
674
674
|
switch (t) {
|
|
675
675
|
case "enter":
|
|
676
|
-
var
|
|
677
|
-
i += 1, n.value = !0, (
|
|
676
|
+
var d;
|
|
677
|
+
i += 1, n.value = !0, (d = o.onEnter) == null || d.call(o, null, e);
|
|
678
678
|
break;
|
|
679
679
|
case "over":
|
|
680
680
|
var m;
|
|
@@ -686,11 +686,11 @@ function ke(e, t = {}) {
|
|
|
686
686
|
break;
|
|
687
687
|
case "drop": if (i = 0, n.value = !1, a) {
|
|
688
688
|
var g;
|
|
689
|
-
r.value =
|
|
689
|
+
r.value = c, (g = o.onDrop) == null || g.call(o, c, e);
|
|
690
690
|
}
|
|
691
691
|
}
|
|
692
692
|
};
|
|
693
|
-
U(e, "dragenter", (e) =>
|
|
693
|
+
U(e, "dragenter", (e) => m(e, "enter")), U(e, "dragover", (e) => m(e, "over")), U(e, "dragleave", (e) => m(e, "leave")), U(e, "drop", (e) => m(e, "drop"));
|
|
694
694
|
}
|
|
695
695
|
return {
|
|
696
696
|
files: r,
|
|
@@ -702,40 +702,40 @@ function Ae(e, t = {}) {
|
|
|
702
702
|
let t = e ? n : r;
|
|
703
703
|
s &&= (clearTimeout(s), void 0), t ? s = setTimeout(() => o.value = e, t) : o.value = e;
|
|
704
704
|
};
|
|
705
|
-
return a ? (U(e, "mouseenter", () => c(!0), { passive: !0 }), U(e, "mouseleave", () => c(!1), { passive: !0 }), i && q(
|
|
705
|
+
return a ? (U(e, "mouseenter", () => c(!0), { passive: !0 }), U(e, "mouseleave", () => c(!1), { passive: !0 }), i && q(m(() => H(e)), () => c(!1)), o) : o;
|
|
706
706
|
}
|
|
707
707
|
function $(e, t, n = {}) {
|
|
708
|
-
let { root: r, rootMargin:
|
|
709
|
-
|
|
708
|
+
let { root: r, rootMargin: a, threshold: o = 0, window: s = B, immediate: c = !0 } = n, l = /* @__PURE__ */ G(() => s && "IntersectionObserver" in s), u = m(() => R(x(e)).map(H).filter(D)), f = A, p = d(c), h = l.value ? i(() => [
|
|
709
|
+
u.value,
|
|
710
710
|
H(r),
|
|
711
|
-
|
|
712
|
-
|
|
711
|
+
x(a),
|
|
712
|
+
p.value
|
|
713
713
|
], ([e, n, r]) => {
|
|
714
|
-
if (
|
|
714
|
+
if (f(), !p.value || !e.length) return;
|
|
715
715
|
let i = new IntersectionObserver(t, {
|
|
716
716
|
root: H(n),
|
|
717
717
|
rootMargin: r,
|
|
718
|
-
threshold:
|
|
718
|
+
threshold: o
|
|
719
719
|
});
|
|
720
|
-
e.forEach((e) => e && i.observe(e)),
|
|
721
|
-
i.disconnect(),
|
|
720
|
+
e.forEach((e) => e && i.observe(e)), f = () => {
|
|
721
|
+
i.disconnect(), f = A;
|
|
722
722
|
};
|
|
723
723
|
}, {
|
|
724
724
|
immediate: c,
|
|
725
725
|
flush: "post"
|
|
726
|
-
}) : A,
|
|
727
|
-
|
|
726
|
+
}) : A, g = () => {
|
|
727
|
+
f(), h(), p.value = !1;
|
|
728
728
|
};
|
|
729
|
-
return S(
|
|
730
|
-
isSupported:
|
|
731
|
-
isActive:
|
|
729
|
+
return S(g), {
|
|
730
|
+
isSupported: l,
|
|
731
|
+
isActive: p,
|
|
732
732
|
pause() {
|
|
733
|
-
|
|
733
|
+
f(), p.value = !1;
|
|
734
734
|
},
|
|
735
735
|
resume() {
|
|
736
|
-
|
|
736
|
+
p.value = !0;
|
|
737
737
|
},
|
|
738
|
-
stop:
|
|
738
|
+
stop: g
|
|
739
739
|
};
|
|
740
740
|
}
|
|
741
741
|
function je(e, t = {}) {
|
|
@@ -757,19 +757,19 @@ function je(e, t = {}) {
|
|
|
757
757
|
} : c;
|
|
758
758
|
}
|
|
759
759
|
function Me(e, t = {}) {
|
|
760
|
-
let { initialValue: n = !1, focusVisible: r = !1, preventScroll:
|
|
760
|
+
let { initialValue: n = !1, focusVisible: r = !1, preventScroll: a = !1 } = t, o = d(!1), s = m(() => H(e)), c = { passive: !0 };
|
|
761
761
|
U(s, "focus", (e) => {
|
|
762
762
|
var t;
|
|
763
|
-
(!r || (t = e.target).matches?.call(t, ":focus-visible")) && (
|
|
764
|
-
}, c), U(s, "blur", () =>
|
|
765
|
-
let l =
|
|
766
|
-
get: () =>
|
|
763
|
+
(!r || (t = e.target).matches?.call(t, ":focus-visible")) && (o.value = !0);
|
|
764
|
+
}, c), U(s, "blur", () => o.value = !1, c);
|
|
765
|
+
let l = m({
|
|
766
|
+
get: () => o.value,
|
|
767
767
|
set(e) {
|
|
768
768
|
var t, n;
|
|
769
|
-
!e &&
|
|
769
|
+
!e && o.value ? (t = s.value) == null || t.blur() : e && !o.value && ((n = s.value) == null || n.focus({ preventScroll: a }));
|
|
770
770
|
}
|
|
771
771
|
});
|
|
772
|
-
return
|
|
772
|
+
return i(s, () => {
|
|
773
773
|
l.value = n;
|
|
774
774
|
}, {
|
|
775
775
|
immediate: !0,
|
|
@@ -778,7 +778,7 @@ function Me(e, t = {}) {
|
|
|
778
778
|
}
|
|
779
779
|
var Ne = "focusin", Pe = "focusout", Fe = ":focus-within";
|
|
780
780
|
function Ie(e, t = {}) {
|
|
781
|
-
let { window: n = B } = t, r =
|
|
781
|
+
let { window: n = B } = t, r = m(() => H(e)), i = d(!1), a = m(() => i.value), o = _e(t);
|
|
782
782
|
if (!n || !o.value) return { focused: a };
|
|
783
783
|
let s = { passive: !0 };
|
|
784
784
|
return U(r, Ne, () => i.value = !0, s), U(r, Pe, () => {
|
|
@@ -790,22 +790,22 @@ function Le(e, t, n = {}) {
|
|
|
790
790
|
let { window: r = B } = n;
|
|
791
791
|
return Q(e, t, r?.localStorage, n);
|
|
792
792
|
}
|
|
793
|
-
function Re(e, t,
|
|
794
|
-
var
|
|
795
|
-
let { clone:
|
|
796
|
-
t ||= "modelValue",
|
|
797
|
-
let
|
|
798
|
-
|
|
793
|
+
function Re(e, t, r, a = {}) {
|
|
794
|
+
var o, s;
|
|
795
|
+
let { clone: c = !1, passive: l = !1, eventName: u, deep: d = !1, defaultValue: f, shouldEmit: p } = a, h = b(), _ = r || h?.emit || (h == null || (o = h.$emit) == null ? void 0 : o.bind(h)) || (h == null || (s = h.proxy) == null || (s = s.$emit) == null ? void 0 : s.bind(h?.proxy)), v = u;
|
|
796
|
+
t ||= "modelValue", v ||= `update:${t.toString()}`;
|
|
797
|
+
let y = (e) => c ? typeof c == "function" ? c(e) : Se(e) : e, x = () => E(e[t]) ? y(e[t]) : f, S = (e) => {
|
|
798
|
+
p ? p(e) && _(v, e) : _(v, e);
|
|
799
799
|
};
|
|
800
|
-
if (
|
|
801
|
-
let
|
|
802
|
-
return
|
|
803
|
-
|
|
804
|
-
}),
|
|
805
|
-
!
|
|
806
|
-
}, { deep:
|
|
800
|
+
if (l) {
|
|
801
|
+
let r = g(x()), a = !1;
|
|
802
|
+
return i(() => e[t], (e) => {
|
|
803
|
+
a || (a = !0, r.value = y(e), n(() => a = !1));
|
|
804
|
+
}), i(r, (n) => {
|
|
805
|
+
!a && (n !== e[t] || d) && S(n);
|
|
806
|
+
}, { deep: d }), r;
|
|
807
807
|
}
|
|
808
|
-
return
|
|
808
|
+
return m({
|
|
809
809
|
get() {
|
|
810
810
|
return x();
|
|
811
811
|
},
|
|
@@ -817,4 +817,4 @@ function Re(e, t, n, i = {}) {
|
|
|
817
817
|
//#endregion
|
|
818
818
|
export { ue as _, ke as a, Me as c, K as d, Ee as f, F as g, ae as h, xe as i, Ie as l, Re as m, pe as n, Ae as o, Q as p, ge as r, je as s, z as t, Le as u };
|
|
819
819
|
|
|
820
|
-
//# sourceMappingURL=dist-
|
|
820
|
+
//# sourceMappingURL=dist-C5Y-NI3i.js.map
|