mvframe 1.0.15 → 1.0.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/@ctrl.js +710 -0
- package/dist/@element-plus.js +659 -0
- package/dist/@floating-ui.js +997 -0
- package/dist/@sxzz.js +552 -0
- package/dist/@turf.js +1 -0
- package/dist/@visactor.js +55144 -0
- package/dist/@vue.js +30 -0
- package/dist/@vueuse.js +583 -0
- package/dist/Config.js +131 -109
- package/dist/async-validator.js +648 -0
- package/dist/composition.js +104 -96
- package/dist/css/cpt.css +1 -1
- package/dist/css/style.css +1 -1
- package/dist/cssfontparser.js +103 -0
- package/dist/d3-array.js +1 -0
- package/dist/d3-dsv.js +1 -0
- package/dist/d3-geo.js +1 -0
- package/dist/d3-hexbin.js +1 -0
- package/dist/d3-hierarchy.js +1 -0
- package/dist/dayjs.js +642 -0
- package/dist/element-plus.js +33909 -0
- package/dist/eventemitter3.js +113 -0
- package/dist/geobuf.js +1 -0
- package/dist/geojson-dissolve.js +1 -0
- package/dist/geojson-flatten.js +1 -0
- package/dist/geojson-linestring-dissolve.js +1 -0
- package/dist/gifuct-js.js +110 -0
- package/dist/ieee754.js +1 -0
- package/dist/index.js +15 -3007
- package/dist/js-binary-schema-parser.js +307 -0
- package/dist/lodash-es.js +1352 -0
- package/dist/lodash-unified.js +1 -0
- package/dist/lodash.js +597 -0
- package/dist/lottie-web.js +1 -0
- package/dist/maps.js +10 -0
- package/dist/memoize-one.js +36 -0
- package/dist/normalize-wheel-es.js +88 -0
- package/dist/pbf.js +1 -0
- package/dist/roughjs.js +1 -0
- package/dist/simple-statistics.js +1 -0
- package/dist/simplify-geojson.js +1 -0
- package/dist/simplify-geometry.js +1 -0
- package/dist/topojson-client.js +1 -0
- package/dist/topojson-server.js +1 -0
- package/dist/util.js +28 -26
- package/dist/vendor.js +5204 -0
- package/package.json +12 -4
- package/scripts/scaffold-app.js +202 -61
package/dist/@vue.js
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @vue/shared v3.5.27
|
|
3
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
|
+
* @license MIT
|
|
5
|
+
**/
|
|
6
|
+
process.env.NODE_ENV !== "production" && Object.freeze({});
|
|
7
|
+
process.env.NODE_ENV !== "production" && Object.freeze([]);
|
|
8
|
+
const b = () => {
|
|
9
|
+
}, r = Object.prototype.hasOwnProperty, j = (t, e) => r.call(t, e), y = Array.isArray, l = (t) => n(t) === "[object Date]", o = (t) => typeof t == "function", u = (t) => typeof t == "string", a = (t) => t !== null && typeof t == "object", g = (t) => (a(t) || o(t)) && o(t.then) && o(t.catch), i = Object.prototype.toString, n = (t) => i.call(t), f = (t) => n(t) === "[object Object]", s = (t) => {
|
|
10
|
+
const e = /* @__PURE__ */ Object.create(null);
|
|
11
|
+
return ((c) => e[c] || (e[c] = t(c)));
|
|
12
|
+
}, p = /-\w/g, E = s(
|
|
13
|
+
(t) => t.replace(p, (e) => e.slice(1).toUpperCase())
|
|
14
|
+
), h = /\B([A-Z])/g, N = s(
|
|
15
|
+
(t) => t.replace(h, "-$1").toLowerCase()
|
|
16
|
+
), w = s((t) => t.charAt(0).toUpperCase() + t.slice(1));
|
|
17
|
+
export {
|
|
18
|
+
b as N,
|
|
19
|
+
y as a,
|
|
20
|
+
a as b,
|
|
21
|
+
w as c,
|
|
22
|
+
E as d,
|
|
23
|
+
o as e,
|
|
24
|
+
l as f,
|
|
25
|
+
f as g,
|
|
26
|
+
j as h,
|
|
27
|
+
u as i,
|
|
28
|
+
g as j,
|
|
29
|
+
N as k
|
|
30
|
+
};
|
package/dist/@vueuse.js
ADDED
|
@@ -0,0 +1,583 @@
|
|
|
1
|
+
import { onMounted as B, nextTick as k, unref as $, getCurrentScope as Q, onScopeDispose as U, getCurrentInstance as L, ref as g, watch as S, shallowRef as Y, watchEffect as H, readonly as j, isRef as W, computed as P, reactive as N } from "vue";
|
|
2
|
+
function de(e, t) {
|
|
3
|
+
var o;
|
|
4
|
+
const n = Y();
|
|
5
|
+
return H(() => {
|
|
6
|
+
n.value = e();
|
|
7
|
+
}, {
|
|
8
|
+
...t,
|
|
9
|
+
flush: (o = void 0) != null ? o : "sync"
|
|
10
|
+
}), j(n);
|
|
11
|
+
}
|
|
12
|
+
function T(e) {
|
|
13
|
+
return Q() ? (U(e), !0) : !1;
|
|
14
|
+
}
|
|
15
|
+
function b(e) {
|
|
16
|
+
return typeof e == "function" ? e() : $(e);
|
|
17
|
+
}
|
|
18
|
+
function K(e) {
|
|
19
|
+
if (!W(e))
|
|
20
|
+
return N(e);
|
|
21
|
+
const t = new Proxy({}, {
|
|
22
|
+
get(o, n, r) {
|
|
23
|
+
return $(Reflect.get(e.value, n, r));
|
|
24
|
+
},
|
|
25
|
+
set(o, n, r) {
|
|
26
|
+
return W(e.value[n]) && !W(r) ? e.value[n].value = r : e.value[n] = r, !0;
|
|
27
|
+
},
|
|
28
|
+
deleteProperty(o, n) {
|
|
29
|
+
return Reflect.deleteProperty(e.value, n);
|
|
30
|
+
},
|
|
31
|
+
has(o, n) {
|
|
32
|
+
return Reflect.has(e.value, n);
|
|
33
|
+
},
|
|
34
|
+
ownKeys() {
|
|
35
|
+
return Object.keys(e.value);
|
|
36
|
+
},
|
|
37
|
+
getOwnPropertyDescriptor() {
|
|
38
|
+
return {
|
|
39
|
+
enumerable: !0,
|
|
40
|
+
configurable: !0
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
return N(t);
|
|
45
|
+
}
|
|
46
|
+
function ve(e) {
|
|
47
|
+
return K(P(e));
|
|
48
|
+
}
|
|
49
|
+
const R = typeof window < "u" && typeof document < "u";
|
|
50
|
+
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
51
|
+
const X = (e) => typeof e < "u", q = (e) => e != null, Z = Object.prototype.toString, ee = (e) => Z.call(e) === "[object Object]", me = (e, t, o) => Math.min(o, Math.max(t, e)), x = () => {
|
|
52
|
+
}, te = /* @__PURE__ */ ne();
|
|
53
|
+
function ne() {
|
|
54
|
+
var e, t;
|
|
55
|
+
return R && ((e = window == null ? void 0 : window.navigator) == null ? void 0 : e.userAgent) && (/iP(?:ad|hone|od)/.test(window.navigator.userAgent) || ((t = window == null ? void 0 : window.navigator) == null ? void 0 : t.maxTouchPoints) > 2 && /iPad|Macintosh/.test(window == null ? void 0 : window.navigator.userAgent));
|
|
56
|
+
}
|
|
57
|
+
function G(e, t) {
|
|
58
|
+
function o(...n) {
|
|
59
|
+
return new Promise((r, l) => {
|
|
60
|
+
Promise.resolve(e(() => t.apply(this, n), { fn: t, thisArg: this, args: n })).then(r).catch(l);
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
return o;
|
|
64
|
+
}
|
|
65
|
+
function oe(e, t = {}) {
|
|
66
|
+
let o, n, r = x;
|
|
67
|
+
const l = (i) => {
|
|
68
|
+
clearTimeout(i), r(), r = x;
|
|
69
|
+
};
|
|
70
|
+
return (i) => {
|
|
71
|
+
const f = b(e), a = b(t.maxWait);
|
|
72
|
+
return o && l(o), f <= 0 || a !== void 0 && a <= 0 ? (n && (l(n), n = null), Promise.resolve(i())) : new Promise((s, u) => {
|
|
73
|
+
r = t.rejectOnCancel ? u : s, a && !n && (n = setTimeout(() => {
|
|
74
|
+
o && l(o), n = null, s(i());
|
|
75
|
+
}, a)), o = setTimeout(() => {
|
|
76
|
+
n && l(n), n = null, s(i());
|
|
77
|
+
}, f);
|
|
78
|
+
});
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
function re(...e) {
|
|
82
|
+
let t = 0, o, n = !0, r = x, l, c, i, f, a;
|
|
83
|
+
!W(e[0]) && typeof e[0] == "object" ? { delay: c, trailing: i = !0, leading: f = !0, rejectOnCancel: a = !1 } = e[0] : [c, i = !0, f = !0, a = !1] = e;
|
|
84
|
+
const s = () => {
|
|
85
|
+
o && (clearTimeout(o), o = void 0, r(), r = x);
|
|
86
|
+
};
|
|
87
|
+
return (v) => {
|
|
88
|
+
const m = b(c), p = Date.now() - t, d = () => l = v();
|
|
89
|
+
return s(), m <= 0 ? (t = Date.now(), d()) : (p > m && (f || !n) ? (t = Date.now(), d()) : i && (l = new Promise((h, w) => {
|
|
90
|
+
r = a ? w : h, o = setTimeout(() => {
|
|
91
|
+
t = Date.now(), n = !0, h(d()), s();
|
|
92
|
+
}, Math.max(0, m - p));
|
|
93
|
+
})), !f && !o && (o = setTimeout(() => n = !0, m)), n = !1, l);
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
function ie(e) {
|
|
97
|
+
return L();
|
|
98
|
+
}
|
|
99
|
+
function se(e, t = 200, o = {}) {
|
|
100
|
+
return G(
|
|
101
|
+
oe(t, o),
|
|
102
|
+
e
|
|
103
|
+
);
|
|
104
|
+
}
|
|
105
|
+
function he(e, t = 200, o = {}) {
|
|
106
|
+
const n = g(e.value), r = se(() => {
|
|
107
|
+
n.value = e.value;
|
|
108
|
+
}, t, o);
|
|
109
|
+
return S(e, () => r()), n;
|
|
110
|
+
}
|
|
111
|
+
function pe(e, t = 200, o = !1, n = !0, r = !1) {
|
|
112
|
+
return G(
|
|
113
|
+
re(t, o, n, r),
|
|
114
|
+
e
|
|
115
|
+
);
|
|
116
|
+
}
|
|
117
|
+
function V(e, t = !0, o) {
|
|
118
|
+
ie() ? B(e, o) : t ? e() : k(e);
|
|
119
|
+
}
|
|
120
|
+
function we(e, t, o = {}) {
|
|
121
|
+
const {
|
|
122
|
+
immediate: n = !0
|
|
123
|
+
} = o, r = g(!1);
|
|
124
|
+
let l = null;
|
|
125
|
+
function c() {
|
|
126
|
+
l && (clearTimeout(l), l = null);
|
|
127
|
+
}
|
|
128
|
+
function i() {
|
|
129
|
+
r.value = !1, c();
|
|
130
|
+
}
|
|
131
|
+
function f(...a) {
|
|
132
|
+
c(), r.value = !0, l = setTimeout(() => {
|
|
133
|
+
r.value = !1, l = null, e(...a);
|
|
134
|
+
}, b(t));
|
|
135
|
+
}
|
|
136
|
+
return n && (r.value = !0, R && f()), T(i), {
|
|
137
|
+
isPending: j(r),
|
|
138
|
+
start: f,
|
|
139
|
+
stop: i
|
|
140
|
+
};
|
|
141
|
+
}
|
|
142
|
+
const _ = R ? window : void 0, ue = R ? window.document : void 0;
|
|
143
|
+
function y(e) {
|
|
144
|
+
var t;
|
|
145
|
+
const o = b(e);
|
|
146
|
+
return (t = o == null ? void 0 : o.$el) != null ? t : o;
|
|
147
|
+
}
|
|
148
|
+
function A(...e) {
|
|
149
|
+
let t, o, n, r;
|
|
150
|
+
if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([o, n, r] = e, t = _) : [t, o, n, r] = e, !t)
|
|
151
|
+
return x;
|
|
152
|
+
Array.isArray(o) || (o = [o]), Array.isArray(n) || (n = [n]);
|
|
153
|
+
const l = [], c = () => {
|
|
154
|
+
l.forEach((s) => s()), l.length = 0;
|
|
155
|
+
}, i = (s, u, v, m) => (s.addEventListener(u, v, m), () => s.removeEventListener(u, v, m)), f = S(
|
|
156
|
+
() => [y(t), b(r)],
|
|
157
|
+
([s, u]) => {
|
|
158
|
+
if (c(), !s)
|
|
159
|
+
return;
|
|
160
|
+
const v = ee(u) ? { ...u } : u;
|
|
161
|
+
l.push(
|
|
162
|
+
...o.flatMap((m) => n.map((p) => i(s, m, p, v)))
|
|
163
|
+
);
|
|
164
|
+
},
|
|
165
|
+
{ immediate: !0, flush: "post" }
|
|
166
|
+
), a = () => {
|
|
167
|
+
f(), c();
|
|
168
|
+
};
|
|
169
|
+
return T(a), a;
|
|
170
|
+
}
|
|
171
|
+
let z = !1;
|
|
172
|
+
function ge(e, t, o = {}) {
|
|
173
|
+
const { window: n = _, ignore: r = [], capture: l = !0, detectIframe: c = !1 } = o;
|
|
174
|
+
if (!n)
|
|
175
|
+
return x;
|
|
176
|
+
te && !z && (z = !0, Array.from(n.document.body.children).forEach((d) => d.addEventListener("click", x)), n.document.documentElement.addEventListener("click", x));
|
|
177
|
+
let i = !0;
|
|
178
|
+
const f = (d) => b(r).some((h) => {
|
|
179
|
+
if (typeof h == "string")
|
|
180
|
+
return Array.from(n.document.querySelectorAll(h)).some((w) => w === d.target || d.composedPath().includes(w));
|
|
181
|
+
{
|
|
182
|
+
const w = y(h);
|
|
183
|
+
return w && (d.target === w || d.composedPath().includes(w));
|
|
184
|
+
}
|
|
185
|
+
});
|
|
186
|
+
function a(d) {
|
|
187
|
+
const h = b(d);
|
|
188
|
+
return h && h.$.subTree.shapeFlag === 16;
|
|
189
|
+
}
|
|
190
|
+
function s(d, h) {
|
|
191
|
+
const w = b(d), E = w.$.subTree && w.$.subTree.children;
|
|
192
|
+
return E == null || !Array.isArray(E) ? !1 : E.some((O) => O.el === h.target || h.composedPath().includes(O.el));
|
|
193
|
+
}
|
|
194
|
+
const u = (d) => {
|
|
195
|
+
const h = y(e);
|
|
196
|
+
if (d.target != null && !(!(h instanceof Element) && a(e) && s(e, d)) && !(!h || h === d.target || d.composedPath().includes(h))) {
|
|
197
|
+
if (d.detail === 0 && (i = !f(d)), !i) {
|
|
198
|
+
i = !0;
|
|
199
|
+
return;
|
|
200
|
+
}
|
|
201
|
+
t(d);
|
|
202
|
+
}
|
|
203
|
+
};
|
|
204
|
+
let v = !1;
|
|
205
|
+
const m = [
|
|
206
|
+
A(n, "click", (d) => {
|
|
207
|
+
v || (v = !0, setTimeout(() => {
|
|
208
|
+
v = !1;
|
|
209
|
+
}, 0), u(d));
|
|
210
|
+
}, { passive: !0, capture: l }),
|
|
211
|
+
A(n, "pointerdown", (d) => {
|
|
212
|
+
const h = y(e);
|
|
213
|
+
i = !f(d) && !!(h && !d.composedPath().includes(h));
|
|
214
|
+
}, { passive: !0 }),
|
|
215
|
+
c && A(n, "blur", (d) => {
|
|
216
|
+
setTimeout(() => {
|
|
217
|
+
var h;
|
|
218
|
+
const w = y(e);
|
|
219
|
+
((h = n.document.activeElement) == null ? void 0 : h.tagName) === "IFRAME" && !(w != null && w.contains(n.document.activeElement)) && t(d);
|
|
220
|
+
}, 0);
|
|
221
|
+
})
|
|
222
|
+
].filter(Boolean);
|
|
223
|
+
return () => m.forEach((d) => d());
|
|
224
|
+
}
|
|
225
|
+
function le() {
|
|
226
|
+
const e = g(!1), t = L();
|
|
227
|
+
return t && B(() => {
|
|
228
|
+
e.value = !0;
|
|
229
|
+
}, t), e;
|
|
230
|
+
}
|
|
231
|
+
function F(e) {
|
|
232
|
+
const t = le();
|
|
233
|
+
return P(() => (t.value, !!e()));
|
|
234
|
+
}
|
|
235
|
+
function D(e, t, o = {}) {
|
|
236
|
+
const { window: n = _, ...r } = o;
|
|
237
|
+
let l;
|
|
238
|
+
const c = F(() => n && "MutationObserver" in n), i = () => {
|
|
239
|
+
l && (l.disconnect(), l = void 0);
|
|
240
|
+
}, f = P(() => {
|
|
241
|
+
const v = b(e), m = (Array.isArray(v) ? v : [v]).map(y).filter(q);
|
|
242
|
+
return new Set(m);
|
|
243
|
+
}), a = S(
|
|
244
|
+
() => f.value,
|
|
245
|
+
(v) => {
|
|
246
|
+
i(), c.value && v.size && (l = new MutationObserver(t), v.forEach((m) => l.observe(m, r)));
|
|
247
|
+
},
|
|
248
|
+
{ immediate: !0, flush: "post" }
|
|
249
|
+
), s = () => l == null ? void 0 : l.takeRecords(), u = () => {
|
|
250
|
+
a(), i();
|
|
251
|
+
};
|
|
252
|
+
return T(u), {
|
|
253
|
+
isSupported: c,
|
|
254
|
+
stop: u,
|
|
255
|
+
takeRecords: s
|
|
256
|
+
};
|
|
257
|
+
}
|
|
258
|
+
function ye(e = {}) {
|
|
259
|
+
var t;
|
|
260
|
+
const {
|
|
261
|
+
window: o = _,
|
|
262
|
+
deep: n = !0,
|
|
263
|
+
triggerOnRemoval: r = !1
|
|
264
|
+
} = e, l = (t = e.document) != null ? t : o == null ? void 0 : o.document, c = () => {
|
|
265
|
+
var a;
|
|
266
|
+
let s = l == null ? void 0 : l.activeElement;
|
|
267
|
+
if (n)
|
|
268
|
+
for (; s != null && s.shadowRoot; )
|
|
269
|
+
s = (a = s == null ? void 0 : s.shadowRoot) == null ? void 0 : a.activeElement;
|
|
270
|
+
return s;
|
|
271
|
+
}, i = g(), f = () => {
|
|
272
|
+
i.value = c();
|
|
273
|
+
};
|
|
274
|
+
return o && (A(o, "blur", (a) => {
|
|
275
|
+
a.relatedTarget === null && f();
|
|
276
|
+
}, !0), A(o, "focus", f, !0)), r && D(l, (a) => {
|
|
277
|
+
a.filter((s) => s.removedNodes.length).map((s) => Array.from(s.removedNodes)).flat().forEach((s) => {
|
|
278
|
+
s === i.value && f();
|
|
279
|
+
});
|
|
280
|
+
}, {
|
|
281
|
+
childList: !0,
|
|
282
|
+
subtree: !0
|
|
283
|
+
}), f(), i;
|
|
284
|
+
}
|
|
285
|
+
function ae(e, t = {}) {
|
|
286
|
+
const { window: o = _ } = t, n = F(() => o && "matchMedia" in o && typeof o.matchMedia == "function");
|
|
287
|
+
let r;
|
|
288
|
+
const l = g(!1), c = (a) => {
|
|
289
|
+
l.value = a.matches;
|
|
290
|
+
}, i = () => {
|
|
291
|
+
r && ("removeEventListener" in r ? r.removeEventListener("change", c) : r.removeListener(c));
|
|
292
|
+
}, f = H(() => {
|
|
293
|
+
n.value && (i(), r = o.matchMedia(b(e)), "addEventListener" in r ? r.addEventListener("change", c) : r.addListener(c), l.value = r.matches);
|
|
294
|
+
});
|
|
295
|
+
return T(() => {
|
|
296
|
+
f(), i(), r = void 0;
|
|
297
|
+
}), l;
|
|
298
|
+
}
|
|
299
|
+
function ce(e) {
|
|
300
|
+
return JSON.parse(JSON.stringify(e));
|
|
301
|
+
}
|
|
302
|
+
function be(e, t, o = {}) {
|
|
303
|
+
const { window: n = _, initialValue: r, observe: l = !1 } = o, c = g(r), i = P(() => {
|
|
304
|
+
var a;
|
|
305
|
+
return y(t) || ((a = n == null ? void 0 : n.document) == null ? void 0 : a.documentElement);
|
|
306
|
+
});
|
|
307
|
+
function f() {
|
|
308
|
+
var a;
|
|
309
|
+
const s = b(e), u = b(i);
|
|
310
|
+
if (u && n && s) {
|
|
311
|
+
const v = (a = n.getComputedStyle(u).getPropertyValue(s)) == null ? void 0 : a.trim();
|
|
312
|
+
c.value = v || r;
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
return l && D(i, f, {
|
|
316
|
+
attributeFilter: ["style", "class"],
|
|
317
|
+
window: n
|
|
318
|
+
}), S(
|
|
319
|
+
[i, () => b(e)],
|
|
320
|
+
(a, s) => {
|
|
321
|
+
s[0] && s[1] && s[0].style.removeProperty(s[1]), f();
|
|
322
|
+
},
|
|
323
|
+
{ immediate: !0 }
|
|
324
|
+
), S(
|
|
325
|
+
c,
|
|
326
|
+
(a) => {
|
|
327
|
+
var s;
|
|
328
|
+
const u = b(e);
|
|
329
|
+
(s = i.value) != null && s.style && u && (a == null ? i.value.style.removeProperty(u) : i.value.style.setProperty(u, a));
|
|
330
|
+
}
|
|
331
|
+
), c;
|
|
332
|
+
}
|
|
333
|
+
function Ee(e = {}) {
|
|
334
|
+
const { document: t = ue } = e;
|
|
335
|
+
if (!t)
|
|
336
|
+
return g("visible");
|
|
337
|
+
const o = g(t.visibilityState);
|
|
338
|
+
return A(t, "visibilitychange", () => {
|
|
339
|
+
o.value = t.visibilityState;
|
|
340
|
+
}), o;
|
|
341
|
+
}
|
|
342
|
+
function J(e, t, o = {}) {
|
|
343
|
+
const { window: n = _, ...r } = o;
|
|
344
|
+
let l;
|
|
345
|
+
const c = F(() => n && "ResizeObserver" in n), i = () => {
|
|
346
|
+
l && (l.disconnect(), l = void 0);
|
|
347
|
+
}, f = P(() => {
|
|
348
|
+
const u = b(e);
|
|
349
|
+
return Array.isArray(u) ? u.map((v) => y(v)) : [y(u)];
|
|
350
|
+
}), a = S(
|
|
351
|
+
f,
|
|
352
|
+
(u) => {
|
|
353
|
+
if (i(), c.value && n) {
|
|
354
|
+
l = new ResizeObserver(t);
|
|
355
|
+
for (const v of u)
|
|
356
|
+
v && l.observe(v, r);
|
|
357
|
+
}
|
|
358
|
+
},
|
|
359
|
+
{ immediate: !0, flush: "post" }
|
|
360
|
+
), s = () => {
|
|
361
|
+
i(), a();
|
|
362
|
+
};
|
|
363
|
+
return T(s), {
|
|
364
|
+
isSupported: c,
|
|
365
|
+
stop: s
|
|
366
|
+
};
|
|
367
|
+
}
|
|
368
|
+
function Oe(e, t = {}) {
|
|
369
|
+
const {
|
|
370
|
+
reset: o = !0,
|
|
371
|
+
windowResize: n = !0,
|
|
372
|
+
windowScroll: r = !0,
|
|
373
|
+
immediate: l = !0,
|
|
374
|
+
updateTiming: c = "sync"
|
|
375
|
+
} = t, i = g(0), f = g(0), a = g(0), s = g(0), u = g(0), v = g(0), m = g(0), p = g(0);
|
|
376
|
+
function d() {
|
|
377
|
+
const w = y(e);
|
|
378
|
+
if (!w) {
|
|
379
|
+
o && (i.value = 0, f.value = 0, a.value = 0, s.value = 0, u.value = 0, v.value = 0, m.value = 0, p.value = 0);
|
|
380
|
+
return;
|
|
381
|
+
}
|
|
382
|
+
const E = w.getBoundingClientRect();
|
|
383
|
+
i.value = E.height, f.value = E.bottom, a.value = E.left, s.value = E.right, u.value = E.top, v.value = E.width, m.value = E.x, p.value = E.y;
|
|
384
|
+
}
|
|
385
|
+
function h() {
|
|
386
|
+
c === "sync" ? d() : c === "next-frame" && requestAnimationFrame(() => d());
|
|
387
|
+
}
|
|
388
|
+
return J(e, h), S(() => y(e), (w) => !w && h()), D(e, h, {
|
|
389
|
+
attributeFilter: ["style", "class"]
|
|
390
|
+
}), r && A("scroll", h, { capture: !0, passive: !0 }), n && A("resize", h, { passive: !0 }), V(() => {
|
|
391
|
+
l && h();
|
|
392
|
+
}), {
|
|
393
|
+
height: i,
|
|
394
|
+
bottom: f,
|
|
395
|
+
left: a,
|
|
396
|
+
right: s,
|
|
397
|
+
top: u,
|
|
398
|
+
width: v,
|
|
399
|
+
x: m,
|
|
400
|
+
y: p,
|
|
401
|
+
update: h
|
|
402
|
+
};
|
|
403
|
+
}
|
|
404
|
+
function Se(e, t = { width: 0, height: 0 }, o = {}) {
|
|
405
|
+
const { window: n = _, box: r = "content-box" } = o, l = P(() => {
|
|
406
|
+
var u, v;
|
|
407
|
+
return (v = (u = y(e)) == null ? void 0 : u.namespaceURI) == null ? void 0 : v.includes("svg");
|
|
408
|
+
}), c = g(t.width), i = g(t.height), { stop: f } = J(
|
|
409
|
+
e,
|
|
410
|
+
([u]) => {
|
|
411
|
+
const v = r === "border-box" ? u.borderBoxSize : r === "content-box" ? u.contentBoxSize : u.devicePixelContentBoxSize;
|
|
412
|
+
if (n && l.value) {
|
|
413
|
+
const m = y(e);
|
|
414
|
+
if (m) {
|
|
415
|
+
const p = m.getBoundingClientRect();
|
|
416
|
+
c.value = p.width, i.value = p.height;
|
|
417
|
+
}
|
|
418
|
+
} else if (v) {
|
|
419
|
+
const m = Array.isArray(v) ? v : [v];
|
|
420
|
+
c.value = m.reduce((p, { inlineSize: d }) => p + d, 0), i.value = m.reduce((p, { blockSize: d }) => p + d, 0);
|
|
421
|
+
} else
|
|
422
|
+
c.value = u.contentRect.width, i.value = u.contentRect.height;
|
|
423
|
+
},
|
|
424
|
+
o
|
|
425
|
+
);
|
|
426
|
+
V(() => {
|
|
427
|
+
const u = y(e);
|
|
428
|
+
u && (c.value = "offsetWidth" in u ? u.offsetWidth : t.width, i.value = "offsetHeight" in u ? u.offsetHeight : t.height);
|
|
429
|
+
});
|
|
430
|
+
const a = S(
|
|
431
|
+
() => y(e),
|
|
432
|
+
(u) => {
|
|
433
|
+
c.value = u ? t.width : 0, i.value = u ? t.height : 0;
|
|
434
|
+
}
|
|
435
|
+
);
|
|
436
|
+
function s() {
|
|
437
|
+
f(), a();
|
|
438
|
+
}
|
|
439
|
+
return {
|
|
440
|
+
width: c,
|
|
441
|
+
height: i,
|
|
442
|
+
stop: s
|
|
443
|
+
};
|
|
444
|
+
}
|
|
445
|
+
function xe(e, t, o = {}) {
|
|
446
|
+
const {
|
|
447
|
+
root: n,
|
|
448
|
+
rootMargin: r = "0px",
|
|
449
|
+
threshold: l = 0,
|
|
450
|
+
window: c = _,
|
|
451
|
+
immediate: i = !0
|
|
452
|
+
} = o, f = F(() => c && "IntersectionObserver" in c), a = P(() => {
|
|
453
|
+
const p = b(e);
|
|
454
|
+
return (Array.isArray(p) ? p : [p]).map(y).filter(q);
|
|
455
|
+
});
|
|
456
|
+
let s = x;
|
|
457
|
+
const u = g(i), v = f.value ? S(
|
|
458
|
+
() => [a.value, y(n), u.value],
|
|
459
|
+
([p, d]) => {
|
|
460
|
+
if (s(), !u.value || !p.length)
|
|
461
|
+
return;
|
|
462
|
+
const h = new IntersectionObserver(
|
|
463
|
+
t,
|
|
464
|
+
{
|
|
465
|
+
root: y(d),
|
|
466
|
+
rootMargin: r,
|
|
467
|
+
threshold: l
|
|
468
|
+
}
|
|
469
|
+
);
|
|
470
|
+
p.forEach((w) => w && h.observe(w)), s = () => {
|
|
471
|
+
h.disconnect(), s = x;
|
|
472
|
+
};
|
|
473
|
+
},
|
|
474
|
+
{ immediate: i, flush: "post" }
|
|
475
|
+
) : x, m = () => {
|
|
476
|
+
s(), v(), u.value = !1;
|
|
477
|
+
};
|
|
478
|
+
return T(m), {
|
|
479
|
+
isSupported: f,
|
|
480
|
+
isActive: u,
|
|
481
|
+
pause() {
|
|
482
|
+
s(), u.value = !1;
|
|
483
|
+
},
|
|
484
|
+
resume() {
|
|
485
|
+
u.value = !0;
|
|
486
|
+
},
|
|
487
|
+
stop: m
|
|
488
|
+
};
|
|
489
|
+
}
|
|
490
|
+
function Ae(e, t, o, n = {}) {
|
|
491
|
+
var r, l, c;
|
|
492
|
+
const {
|
|
493
|
+
clone: i = !1,
|
|
494
|
+
passive: f = !1,
|
|
495
|
+
eventName: a,
|
|
496
|
+
deep: s = !1,
|
|
497
|
+
defaultValue: u,
|
|
498
|
+
shouldEmit: v
|
|
499
|
+
} = n, m = L(), p = o || (m == null ? void 0 : m.emit) || ((r = m == null ? void 0 : m.$emit) == null ? void 0 : r.bind(m)) || ((c = (l = m == null ? void 0 : m.proxy) == null ? void 0 : l.$emit) == null ? void 0 : c.bind(m == null ? void 0 : m.proxy));
|
|
500
|
+
let d = a;
|
|
501
|
+
t || (t = "modelValue"), d = d || `update:${t.toString()}`;
|
|
502
|
+
const h = (O) => i ? typeof i == "function" ? i(O) : ce(O) : O, w = () => X(e[t]) ? h(e[t]) : u, E = (O) => {
|
|
503
|
+
v ? v(O) && p(d, O) : p(d, O);
|
|
504
|
+
};
|
|
505
|
+
if (f) {
|
|
506
|
+
const O = w(), C = g(O);
|
|
507
|
+
let M = !1;
|
|
508
|
+
return S(
|
|
509
|
+
() => e[t],
|
|
510
|
+
(I) => {
|
|
511
|
+
M || (M = !0, C.value = h(I), k(() => M = !1));
|
|
512
|
+
}
|
|
513
|
+
), S(
|
|
514
|
+
C,
|
|
515
|
+
(I) => {
|
|
516
|
+
!M && (I !== e[t] || s) && E(I);
|
|
517
|
+
},
|
|
518
|
+
{ deep: s }
|
|
519
|
+
), C;
|
|
520
|
+
} else
|
|
521
|
+
return P({
|
|
522
|
+
get() {
|
|
523
|
+
return w();
|
|
524
|
+
},
|
|
525
|
+
set(O) {
|
|
526
|
+
E(O);
|
|
527
|
+
}
|
|
528
|
+
});
|
|
529
|
+
}
|
|
530
|
+
function _e(e = {}) {
|
|
531
|
+
const { window: t = _ } = e;
|
|
532
|
+
if (!t)
|
|
533
|
+
return g(!1);
|
|
534
|
+
const o = g(t.document.hasFocus());
|
|
535
|
+
return A(t, "blur", () => {
|
|
536
|
+
o.value = !1;
|
|
537
|
+
}), A(t, "focus", () => {
|
|
538
|
+
o.value = !0;
|
|
539
|
+
}), o;
|
|
540
|
+
}
|
|
541
|
+
function Pe(e = {}) {
|
|
542
|
+
const {
|
|
543
|
+
window: t = _,
|
|
544
|
+
initialWidth: o = Number.POSITIVE_INFINITY,
|
|
545
|
+
initialHeight: n = Number.POSITIVE_INFINITY,
|
|
546
|
+
listenOrientation: r = !0,
|
|
547
|
+
includeScrollbar: l = !0,
|
|
548
|
+
type: c = "inner"
|
|
549
|
+
} = e, i = g(o), f = g(n), a = () => {
|
|
550
|
+
t && (c === "outer" ? (i.value = t.outerWidth, f.value = t.outerHeight) : l ? (i.value = t.innerWidth, f.value = t.innerHeight) : (i.value = t.document.documentElement.clientWidth, f.value = t.document.documentElement.clientHeight));
|
|
551
|
+
};
|
|
552
|
+
if (a(), V(a), A("resize", a, { passive: !0 }), r) {
|
|
553
|
+
const s = ae("(orientation: portrait)");
|
|
554
|
+
S(s, () => a());
|
|
555
|
+
}
|
|
556
|
+
return { width: i, height: f };
|
|
557
|
+
}
|
|
558
|
+
export {
|
|
559
|
+
A as a,
|
|
560
|
+
Pe as b,
|
|
561
|
+
de as c,
|
|
562
|
+
Oe as d,
|
|
563
|
+
y as e,
|
|
564
|
+
se as f,
|
|
565
|
+
pe as g,
|
|
566
|
+
D as h,
|
|
567
|
+
R as i,
|
|
568
|
+
te as j,
|
|
569
|
+
be as k,
|
|
570
|
+
ve as l,
|
|
571
|
+
we as m,
|
|
572
|
+
me as n,
|
|
573
|
+
ge as o,
|
|
574
|
+
xe as p,
|
|
575
|
+
Ee as q,
|
|
576
|
+
he as r,
|
|
577
|
+
_e as s,
|
|
578
|
+
T as t,
|
|
579
|
+
J as u,
|
|
580
|
+
Se as v,
|
|
581
|
+
Ae as w,
|
|
582
|
+
ye as x
|
|
583
|
+
};
|