@opentiny/tiny-robot 0.4.2-alpha.7 → 0.4.2-alpha.8

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/index4.js CHANGED
@@ -1,42 +1,42 @@
1
- import { onMounted as ie, nextTick as he, watch as A, getCurrentScope as ge, onScopeDispose as we, getCurrentInstance as $, hasInjectionContext as le, inject as ye, shallowRef as b, shallowReadonly as be, toValue as w, isRef as se, toRefs as Te, customRef as Se, computed as _, watchEffect as ue, unref as Oe, reactive as ee, ref as Ee, readonly as Pe } from "vue";
2
- function V(e) {
3
- return ge() ? (we(e), !0) : !1;
1
+ import { onMounted as se, nextTick as we, watch as C, getCurrentScope as ye, onScopeDispose as be, getCurrentInstance as Q, hasInjectionContext as ue, inject as Te, shallowRef as T, shallowReadonly as Se, toValue as p, isRef as ae, toRefs as Ee, customRef as Oe, computed as R, watchEffect as ce, unref as xe, reactive as ne, ref as G, readonly as Pe } from "vue";
2
+ function B(e) {
3
+ return ye() ? (be(e), !0) : !1;
4
4
  }
5
5
  // @__NO_SIDE_EFFECTS__
6
- function te() {
6
+ function oe() {
7
7
  const e = /* @__PURE__ */ new Set(), t = (i) => {
8
8
  e.delete(i);
9
9
  };
10
10
  return {
11
11
  on: (i) => {
12
12
  e.add(i);
13
- const c = () => t(i);
14
- return V(c), {
15
- off: c
13
+ const a = () => t(i);
14
+ return B(a), {
15
+ off: a
16
16
  };
17
17
  },
18
18
  off: t,
19
- trigger: (...i) => Promise.all(Array.from(e).map((c) => c(...i))),
19
+ trigger: (...i) => Promise.all(Array.from(e).map((a) => a(...i))),
20
20
  clear: () => {
21
21
  e.clear();
22
22
  }
23
23
  };
24
24
  }
25
- const j = /* @__PURE__ */ new WeakMap(), xe = /* @__NO_SIDE_EFFECTS__ */ (...e) => {
25
+ const X = /* @__PURE__ */ new WeakMap(), Me = /* @__NO_SIDE_EFFECTS__ */ (...e) => {
26
26
  var t;
27
- const o = e[0], n = (t = $()) == null ? void 0 : t.proxy;
28
- if (n == null && !le())
27
+ const o = e[0], n = (t = Q()) == null ? void 0 : t.proxy;
28
+ if (n == null && !ue())
29
29
  throw new Error("injectLocal must be called in setup");
30
- return n && j.has(n) && o in j.get(n) ? j.get(n)[o] : ye(...e);
31
- }, N = typeof window < "u" && typeof document < "u";
30
+ return n && X.has(n) && o in X.get(n) ? X.get(n)[o] : Te(...e);
31
+ }, z = typeof window < "u" && typeof document < "u";
32
32
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
33
- const Me = (e) => e != null, We = Object.prototype.toString, _e = (e) => We.call(e) === "[object Object]", x = () => {
33
+ const _e = (e) => e != null, We = Object.prototype.toString, Re = (e) => We.call(e) === "[object Object]", I = () => {
34
34
  }, Ie = (e, t) => Object.prototype.hasOwnProperty.call(e, t), Ae = /* @__PURE__ */ Fe();
35
35
  function Fe() {
36
36
  var e, t;
37
- return N && ((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));
37
+ return z && ((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));
38
38
  }
39
- function Y(e, t) {
39
+ function U(e, t) {
40
40
  function o(...n) {
41
41
  return new Promise((u, i) => {
42
42
  Promise.resolve(e(() => t.apply(this, n), { fn: t, thisArg: this, args: n })).then(u).catch(i);
@@ -44,91 +44,91 @@ function Y(e, t) {
44
44
  }
45
45
  return o;
46
46
  }
47
- const Re = (e) => e();
48
- function ce(e, t = {}) {
49
- let o, n, u = x;
47
+ const Ce = (e) => e();
48
+ function fe(e, t = {}) {
49
+ let o, n, u = I;
50
50
  const i = (s) => {
51
- clearTimeout(s), u(), u = x;
51
+ clearTimeout(s), u(), u = I;
52
52
  };
53
- let c;
53
+ let a;
54
54
  return (s) => {
55
- const f = w(e), a = w(t.maxWait);
56
- return o && i(o), f <= 0 || a !== void 0 && a <= 0 ? (n && (i(n), n = void 0), Promise.resolve(s())) : new Promise((l, d) => {
57
- u = t.rejectOnCancel ? d : l, c = s, a && !n && (n = setTimeout(() => {
58
- o && i(o), n = void 0, l(c());
59
- }, a)), o = setTimeout(() => {
55
+ const f = p(e), c = p(t.maxWait);
56
+ return o && i(o), f <= 0 || c !== void 0 && c <= 0 ? (n && (i(n), n = void 0), Promise.resolve(s())) : new Promise((l, d) => {
57
+ u = t.rejectOnCancel ? d : l, a = s, c && !n && (n = setTimeout(() => {
58
+ o && i(o), n = void 0, l(a());
59
+ }, c)), o = setTimeout(() => {
60
60
  n && i(n), n = void 0, l(s());
61
61
  }, f);
62
62
  });
63
63
  };
64
64
  }
65
- function ae(...e) {
66
- let t = 0, o, n = !0, u = x, i, c, r, s, f;
67
- !se(e[0]) && typeof e[0] == "object" ? { delay: c, trailing: r = !0, leading: s = !0, rejectOnCancel: f = !1 } = e[0] : [c, r = !0, s = !0, f = !1] = e;
68
- const a = () => {
69
- o && (clearTimeout(o), o = void 0, u(), u = x);
65
+ function de(...e) {
66
+ let t = 0, o, n = !0, u = I, i, a, r, s, f;
67
+ !ae(e[0]) && typeof e[0] == "object" ? { delay: a, trailing: r = !0, leading: s = !0, rejectOnCancel: f = !1 } = e[0] : [a, r = !0, s = !0, f = !1] = e;
68
+ const c = () => {
69
+ o && (clearTimeout(o), o = void 0, u(), u = I);
70
70
  };
71
71
  return (d) => {
72
- const m = w(c), p = Date.now() - t, T = () => i = d();
73
- return a(), m <= 0 ? (t = Date.now(), T()) : (p > m && (s || !n) ? (t = Date.now(), T()) : r && (i = new Promise((v, h) => {
74
- u = f ? h : v, o = setTimeout(() => {
75
- t = Date.now(), n = !0, v(T()), a();
76
- }, Math.max(0, m - p));
72
+ const m = p(a), w = Date.now() - t, E = () => i = d();
73
+ return c(), m <= 0 ? (t = Date.now(), E()) : (w > m && (s || !n) ? (t = Date.now(), E()) : r && (i = new Promise((v, g) => {
74
+ u = f ? g : v, o = setTimeout(() => {
75
+ t = Date.now(), n = !0, v(E()), c();
76
+ }, Math.max(0, m - w));
77
77
  })), !s && !o && (o = setTimeout(() => n = !0, m)), n = !1, i);
78
78
  };
79
79
  }
80
- function ne(e) {
80
+ function re(e) {
81
81
  return e.endsWith("rem") ? Number.parseFloat(e) * 16 : Number.parseFloat(e);
82
82
  }
83
- function ke(e, t, o = !1) {
83
+ function De(e, t, o = !1) {
84
84
  return t.reduce((n, u) => (u in e && (!o || e[u] !== void 0) && (n[u] = e[u]), n), {});
85
85
  }
86
- function D(e) {
86
+ function H(e) {
87
87
  return Array.isArray(e) ? e : [e];
88
88
  }
89
- function Ce(e) {
90
- return $();
89
+ function ke(e) {
90
+ return Q();
91
91
  }
92
92
  // @__NO_SIDE_EFFECTS__
93
93
  function Le(e, t = 200, o = {}) {
94
- return Y(
95
- ce(t, o),
94
+ return U(
95
+ fe(t, o),
96
96
  e
97
97
  );
98
98
  }
99
99
  // @__NO_SIDE_EFFECTS__
100
- function De(e, t = 200, o = !1, n = !0, u = !1) {
101
- return Y(
102
- ae(t, o, n, u),
100
+ function Ve(e, t = 200, o = !1, n = !0, u = !1) {
101
+ return U(
102
+ de(t, o, n, u),
103
103
  e
104
104
  );
105
105
  }
106
- function fe(e, t, o = {}) {
106
+ function ve(e, t, o = {}) {
107
107
  const {
108
- eventFilter: n = Re,
108
+ eventFilter: n = Ce,
109
109
  ...u
110
110
  } = o;
111
- return A(
111
+ return C(
112
112
  e,
113
- Y(
113
+ U(
114
114
  n,
115
115
  t
116
116
  ),
117
117
  u
118
118
  );
119
119
  }
120
- function Ve(e, t = {}) {
121
- if (!se(e))
122
- return Te(e);
120
+ function pe(e, t = {}) {
121
+ if (!ae(e))
122
+ return Ee(e);
123
123
  const o = Array.isArray(e.value) ? Array.from({ length: e.value.length }) : {};
124
124
  for (const n in e.value)
125
- o[n] = Se(() => ({
125
+ o[n] = Oe(() => ({
126
126
  get() {
127
127
  return e.value[n];
128
128
  },
129
129
  set(u) {
130
130
  var i;
131
- if ((i = w(t.replaceRef)) != null ? i : !0)
131
+ if ((i = p(t.replaceRef)) != null ? i : !0)
132
132
  if (Array.isArray(e.value)) {
133
133
  const r = [...e.value];
134
134
  r[n] = u, e.value = r;
@@ -142,28 +142,28 @@ function Ve(e, t = {}) {
142
142
  }));
143
143
  return o;
144
144
  }
145
- function B(e, t = !0, o) {
146
- Ce() ? ie(e, o) : t ? e() : he(e);
145
+ function j(e, t = !0, o) {
146
+ ke() ? se(e, o) : t ? e() : we(e);
147
147
  }
148
148
  function Qe(e, t, o = {}) {
149
149
  const {
150
150
  immediate: n = !0,
151
151
  immediateCallback: u = !1
152
- } = o, i = b(!1);
153
- let c;
152
+ } = o, i = T(!1);
153
+ let a;
154
154
  function r() {
155
- c && (clearTimeout(c), c = void 0);
155
+ a && (clearTimeout(a), a = void 0);
156
156
  }
157
157
  function s() {
158
158
  i.value = !1, r();
159
159
  }
160
- function f(...a) {
161
- u && e(), r(), i.value = !0, c = setTimeout(() => {
162
- i.value = !1, c = void 0, e(...a);
163
- }, w(t));
160
+ function f(...c) {
161
+ u && e(), r(), i.value = !0, a = setTimeout(() => {
162
+ i.value = !1, a = void 0, e(...c);
163
+ }, p(t));
164
164
  }
165
- return n && (i.value = !0, N && f()), V(s), {
166
- isPending: be(i),
165
+ return n && (i.value = !0, z && f()), B(s), {
166
+ isPending: Se(i),
167
167
  start: f,
168
168
  stop: s
169
169
  };
@@ -174,17 +174,17 @@ function Ue(e, t, o = {}) {
174
174
  maxWait: u = void 0,
175
175
  ...i
176
176
  } = o;
177
- return fe(
177
+ return ve(
178
178
  e,
179
179
  t,
180
180
  {
181
181
  ...i,
182
- eventFilter: ce(n, { maxWait: u })
182
+ eventFilter: fe(n, { maxWait: u })
183
183
  }
184
184
  );
185
185
  }
186
186
  function He(e, t, o) {
187
- return A(
187
+ return C(
188
188
  e,
189
189
  t,
190
190
  {
@@ -198,88 +198,88 @@ function qe(e, t, o = {}) {
198
198
  throttle: n = 0,
199
199
  trailing: u = !0,
200
200
  leading: i = !0,
201
- ...c
201
+ ...a
202
202
  } = o;
203
- return fe(
203
+ return ve(
204
204
  e,
205
205
  t,
206
206
  {
207
- ...c,
208
- eventFilter: ae(n, u, i)
207
+ ...a,
208
+ eventFilter: de(n, u, i)
209
209
  }
210
210
  );
211
211
  }
212
- const I = N ? window : void 0, ze = N ? window.document : void 0;
213
- function S(e) {
212
+ const F = z ? window : void 0, Be = z ? window.document : void 0;
213
+ function x(e) {
214
214
  var t;
215
- const o = w(e);
215
+ const o = p(e);
216
216
  return (t = o == null ? void 0 : o.$el) != null ? t : o;
217
217
  }
218
218
  function M(...e) {
219
219
  const t = [], o = () => {
220
220
  t.forEach((r) => r()), t.length = 0;
221
- }, n = (r, s, f, a) => (r.addEventListener(s, f, a), () => r.removeEventListener(s, f, a)), u = _(() => {
222
- const r = D(w(e[0])).filter((s) => s != null);
221
+ }, n = (r, s, f, c) => (r.addEventListener(s, f, c), () => r.removeEventListener(s, f, c)), u = R(() => {
222
+ const r = H(p(e[0])).filter((s) => s != null);
223
223
  return r.every((s) => typeof s != "string") ? r : void 0;
224
224
  }), i = He(
225
225
  () => {
226
226
  var r, s;
227
227
  return [
228
- (s = (r = u.value) == null ? void 0 : r.map((f) => S(f))) != null ? s : [I].filter((f) => f != null),
229
- D(w(u.value ? e[1] : e[0])),
230
- D(Oe(u.value ? e[2] : e[1])),
228
+ (s = (r = u.value) == null ? void 0 : r.map((f) => x(f))) != null ? s : [F].filter((f) => f != null),
229
+ H(p(u.value ? e[1] : e[0])),
230
+ H(xe(u.value ? e[2] : e[1])),
231
231
  // @ts-expect-error - TypeScript gets the correct types, but somehow still complains
232
- w(u.value ? e[3] : e[2])
232
+ p(u.value ? e[3] : e[2])
233
233
  ];
234
234
  },
235
- ([r, s, f, a]) => {
235
+ ([r, s, f, c]) => {
236
236
  if (o(), !(r != null && r.length) || !(s != null && s.length) || !(f != null && f.length))
237
237
  return;
238
- const l = _e(a) ? { ...a } : a;
238
+ const l = Re(c) ? { ...c } : c;
239
239
  t.push(
240
240
  ...r.flatMap(
241
241
  (d) => s.flatMap(
242
- (m) => f.map((p) => n(d, m, p, l))
242
+ (m) => f.map((w) => n(d, m, w, l))
243
243
  )
244
244
  )
245
245
  );
246
246
  },
247
247
  { flush: "post" }
248
- ), c = () => {
248
+ ), a = () => {
249
249
  i(), o();
250
250
  };
251
- return V(o), c;
251
+ return B(o), a;
252
252
  }
253
- let oe = !1;
253
+ let ie = !1;
254
254
  function Je(e, t, o = {}) {
255
- const { window: n = I, ignore: u = [], capture: i = !0, detectIframe: c = !1, controls: r = !1 } = o;
255
+ const { window: n = F, ignore: u = [], capture: i = !0, detectIframe: a = !1, controls: r = !1 } = o;
256
256
  if (!n)
257
- return r ? { stop: x, cancel: x, trigger: x } : x;
258
- if (Ae && !oe) {
259
- oe = !0;
257
+ return r ? { stop: I, cancel: I, trigger: I } : I;
258
+ if (Ae && !ie) {
259
+ ie = !0;
260
260
  const v = { passive: !0 };
261
- Array.from(n.document.body.children).forEach((h) => h.addEventListener("click", x, v)), n.document.documentElement.addEventListener("click", x, v);
261
+ Array.from(n.document.body.children).forEach((g) => g.addEventListener("click", I, v)), n.document.documentElement.addEventListener("click", I, v);
262
262
  }
263
263
  let s = !0;
264
- const f = (v) => w(u).some((h) => {
265
- if (typeof h == "string")
266
- return Array.from(n.document.querySelectorAll(h)).some((y) => y === v.target || v.composedPath().includes(y));
264
+ const f = (v) => p(u).some((g) => {
265
+ if (typeof g == "string")
266
+ return Array.from(n.document.querySelectorAll(g)).some((b) => b === v.target || v.composedPath().includes(b));
267
267
  {
268
- const y = S(h);
269
- return y && (v.target === y || v.composedPath().includes(y));
268
+ const b = x(g);
269
+ return b && (v.target === b || v.composedPath().includes(b));
270
270
  }
271
271
  });
272
- function a(v) {
273
- const h = w(v);
274
- return h && h.$.subTree.shapeFlag === 16;
272
+ function c(v) {
273
+ const g = p(v);
274
+ return g && g.$.subTree.shapeFlag === 16;
275
275
  }
276
- function l(v, h) {
277
- const y = w(v), O = y.$.subTree && y.$.subTree.children;
278
- return O == null || !Array.isArray(O) ? !1 : O.some((E) => E.el === h.target || h.composedPath().includes(E.el));
276
+ function l(v, g) {
277
+ const b = p(v), O = b.$.subTree && b.$.subTree.children;
278
+ return O == null || !Array.isArray(O) ? !1 : O.some((_) => _.el === g.target || g.composedPath().includes(_.el));
279
279
  }
280
280
  const d = (v) => {
281
- const h = S(e);
282
- if (v.target != null && !(!(h instanceof Element) && a(e) && l(e, v)) && !(!h || h === v.target || v.composedPath().includes(h))) {
281
+ const g = x(e);
282
+ if (v.target != null && !(!(g instanceof Element) && c(e) && l(e, v)) && !(!g || g === v.target || v.composedPath().includes(g))) {
283
283
  if ("detail" in v && v.detail === 0 && (s = !f(v)), !s) {
284
284
  s = !0;
285
285
  return;
@@ -288,228 +288,288 @@ function Je(e, t, o = {}) {
288
288
  }
289
289
  };
290
290
  let m = !1;
291
- const p = [
291
+ const w = [
292
292
  M(n, "click", (v) => {
293
293
  m || (m = !0, setTimeout(() => {
294
294
  m = !1;
295
295
  }, 0), d(v));
296
296
  }, { passive: !0, capture: i }),
297
297
  M(n, "pointerdown", (v) => {
298
- const h = S(e);
299
- s = !f(v) && !!(h && !v.composedPath().includes(h));
298
+ const g = x(e);
299
+ s = !f(v) && !!(g && !v.composedPath().includes(g));
300
300
  }, { passive: !0 }),
301
- c && M(n, "blur", (v) => {
301
+ a && M(n, "blur", (v) => {
302
302
  setTimeout(() => {
303
- var h;
304
- const y = S(e);
305
- ((h = n.document.activeElement) == null ? void 0 : h.tagName) === "IFRAME" && !(y != null && y.contains(n.document.activeElement)) && t(v);
303
+ var g;
304
+ const b = x(e);
305
+ ((g = n.document.activeElement) == null ? void 0 : g.tagName) === "IFRAME" && !(b != null && b.contains(n.document.activeElement)) && t(v);
306
306
  }, 0);
307
307
  }, { passive: !0 })
308
- ].filter(Boolean), T = () => p.forEach((v) => v());
308
+ ].filter(Boolean), E = () => w.forEach((v) => v());
309
309
  return r ? {
310
- stop: T,
310
+ stop: E,
311
311
  cancel: () => {
312
312
  s = !1;
313
313
  },
314
314
  trigger: (v) => {
315
315
  s = !0, d(v), s = !1;
316
316
  }
317
- } : T;
317
+ } : E;
318
318
  }
319
319
  // @__NO_SIDE_EFFECTS__
320
- function Ne() {
321
- const e = b(!1), t = $();
322
- return t && ie(() => {
320
+ function ze() {
321
+ const e = T(!1), t = Q();
322
+ return t && se(() => {
323
323
  e.value = !0;
324
324
  }, t), e;
325
325
  }
326
326
  // @__NO_SIDE_EFFECTS__
327
- function G(e) {
328
- const t = /* @__PURE__ */ Ne();
329
- return _(() => (t.value, !!e()));
327
+ function q(e) {
328
+ const t = /* @__PURE__ */ ze();
329
+ return R(() => (t.value, !!e()));
330
330
  }
331
- function X(e, t, o = {}) {
332
- const { window: n = I, ...u } = o;
331
+ function J(e, t, o = {}) {
332
+ const { window: n = F, ...u } = o;
333
333
  let i;
334
- const c = /* @__PURE__ */ G(() => n && "MutationObserver" in n), r = () => {
334
+ const a = /* @__PURE__ */ q(() => n && "MutationObserver" in n), r = () => {
335
335
  i && (i.disconnect(), i = void 0);
336
- }, s = _(() => {
337
- const d = w(e), m = D(d).map(S).filter(Me);
336
+ }, s = R(() => {
337
+ const d = p(e), m = H(d).map(x).filter(_e);
338
338
  return new Set(m);
339
- }), f = A(
339
+ }), f = C(
340
340
  s,
341
341
  (d) => {
342
- r(), c.value && d.size && (i = new MutationObserver(t), d.forEach((m) => i.observe(m, u)));
342
+ r(), a.value && d.size && (i = new MutationObserver(t), d.forEach((m) => i.observe(m, u)));
343
343
  },
344
344
  { immediate: !0, flush: "post" }
345
- ), a = () => i == null ? void 0 : i.takeRecords(), l = () => {
345
+ ), c = () => i == null ? void 0 : i.takeRecords(), l = () => {
346
346
  f(), r();
347
347
  };
348
- return V(l), {
349
- isSupported: c,
348
+ return B(l), {
349
+ isSupported: a,
350
350
  stop: l,
351
- takeRecords: a
351
+ takeRecords: c
352
352
  };
353
353
  }
354
- const Be = Symbol("vueuse-ssr-width");
354
+ const Ne = Symbol("vueuse-ssr-width");
355
355
  // @__NO_SIDE_EFFECTS__
356
- function je() {
357
- const e = le() ? /* @__PURE__ */ xe(Be, null) : null;
356
+ function $e() {
357
+ const e = ue() ? /* @__PURE__ */ Me(Ne, null) : null;
358
358
  return typeof e == "number" ? e : void 0;
359
359
  }
360
- function de(e, t = {}) {
361
- const { window: o = I, ssrWidth: n = /* @__PURE__ */ je() } = t, u = /* @__PURE__ */ G(() => o && "matchMedia" in o && typeof o.matchMedia == "function"), i = b(typeof n == "number"), c = b(), r = b(!1), s = (f) => {
360
+ function me(e, t = {}) {
361
+ const { window: o = F, ssrWidth: n = /* @__PURE__ */ $e() } = t, u = /* @__PURE__ */ q(() => o && "matchMedia" in o && typeof o.matchMedia == "function"), i = T(typeof n == "number"), a = T(), r = T(!1), s = (f) => {
362
362
  r.value = f.matches;
363
363
  };
364
- return ue(() => {
364
+ return ce(() => {
365
365
  if (i.value) {
366
366
  i.value = !u.value;
367
- const f = w(e).split(",");
368
- r.value = f.some((a) => {
369
- const l = a.includes("not all"), d = a.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/), m = a.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);
370
- let p = !!(d || m);
371
- return d && p && (p = n >= ne(d[1])), m && p && (p = n <= ne(m[1])), l ? !p : p;
367
+ const f = p(e).split(",");
368
+ r.value = f.some((c) => {
369
+ const l = c.includes("not all"), d = c.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/), m = c.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);
370
+ let w = !!(d || m);
371
+ return d && w && (w = n >= re(d[1])), m && w && (w = n <= re(m[1])), l ? !w : w;
372
372
  });
373
373
  return;
374
374
  }
375
- u.value && (c.value = o.matchMedia(w(e)), r.value = c.value.matches);
376
- }), M(c, "change", s, { passive: !0 }), _(() => r.value);
375
+ u.value && (a.value = o.matchMedia(p(e)), r.value = a.value.matches);
376
+ }), M(a, "change", s, { passive: !0 }), R(() => r.value);
377
377
  }
378
378
  function Ke(e, t, o = {}) {
379
- const { window: n = I, initialValue: u, observe: i = !1 } = o, c = b(u), r = _(() => {
379
+ const { window: n = F, initialValue: u, observe: i = !1 } = o, a = T(u), r = R(() => {
380
380
  var f;
381
- return S(t) || ((f = n == null ? void 0 : n.document) == null ? void 0 : f.documentElement);
381
+ return x(t) || ((f = n == null ? void 0 : n.document) == null ? void 0 : f.documentElement);
382
382
  });
383
383
  function s() {
384
384
  var f;
385
- const a = w(e), l = w(r);
386
- if (l && n && a) {
387
- const d = (f = n.getComputedStyle(l).getPropertyValue(a)) == null ? void 0 : f.trim();
388
- c.value = d || c.value || u;
385
+ const c = p(e), l = p(r);
386
+ if (l && n && c) {
387
+ const d = (f = n.getComputedStyle(l).getPropertyValue(c)) == null ? void 0 : f.trim();
388
+ a.value = d || a.value || u;
389
389
  }
390
390
  }
391
- return i && X(r, s, {
391
+ return i && J(r, s, {
392
392
  attributeFilter: ["style", "class"],
393
393
  window: n
394
- }), A(
395
- [r, () => w(e)],
396
- (f, a) => {
397
- a[0] && a[1] && a[0].style.removeProperty(a[1]), s();
394
+ }), C(
395
+ [r, () => p(e)],
396
+ (f, c) => {
397
+ c[0] && c[1] && c[0].style.removeProperty(c[1]), s();
398
398
  },
399
399
  { immediate: !0 }
400
- ), A(
401
- [c, r],
402
- ([f, a]) => {
403
- const l = w(e);
404
- a != null && a.style && l && (f == null ? a.style.removeProperty(l) : a.style.setProperty(l, f));
400
+ ), C(
401
+ [a, r],
402
+ ([f, c]) => {
403
+ const l = p(e);
404
+ c != null && c.style && l && (f == null ? c.style.removeProperty(l) : c.style.setProperty(l, f));
405
405
  },
406
406
  { immediate: !0 }
407
- ), c;
407
+ ), a;
408
408
  }
409
- function ve(e, t, o = {}) {
410
- const { window: n = I, ...u } = o;
409
+ function Ze(e, t = {}) {
410
+ var o;
411
+ const {
412
+ pointerTypes: n,
413
+ preventDefault: u,
414
+ stopPropagation: i,
415
+ exact: a,
416
+ onMove: r,
417
+ onEnd: s,
418
+ onStart: f,
419
+ initialValue: c,
420
+ axis: l = "both",
421
+ draggingElement: d = F,
422
+ containerElement: m,
423
+ handle: w = e,
424
+ buttons: E = [0]
425
+ } = t, v = G(
426
+ (o = p(c)) != null ? o : { x: 0, y: 0 }
427
+ ), g = G(), b = (y) => n ? n.includes(y.pointerType) : !0, O = (y) => {
428
+ p(u) && y.preventDefault(), p(i) && y.stopPropagation();
429
+ }, _ = (y) => {
430
+ var W;
431
+ if (!p(E).includes(y.button) || p(t.disabled) || !b(y) || p(a) && y.target !== p(e))
432
+ return;
433
+ const h = p(m), P = (W = h == null ? void 0 : h.getBoundingClientRect) == null ? void 0 : W.call(h), S = p(e).getBoundingClientRect(), D = {
434
+ x: y.clientX - (h ? S.left - P.left + h.scrollLeft : S.left),
435
+ y: y.clientY - (h ? S.top - P.top + h.scrollTop : S.top)
436
+ };
437
+ (f == null ? void 0 : f(D, y)) !== !1 && (g.value = D, O(y));
438
+ }, N = (y) => {
439
+ if (p(t.disabled) || !b(y) || !g.value)
440
+ return;
441
+ const W = p(m), h = p(e).getBoundingClientRect();
442
+ let { x: P, y: S } = v.value;
443
+ (l === "x" || l === "both") && (P = y.clientX - g.value.x, W && (P = Math.min(Math.max(0, P), W.scrollWidth - h.width))), (l === "y" || l === "both") && (S = y.clientY - g.value.y, W && (S = Math.min(Math.max(0, S), W.scrollHeight - h.height))), v.value = {
444
+ x: P,
445
+ y: S
446
+ }, r == null || r(v.value, y), O(y);
447
+ }, Y = (y) => {
448
+ p(t.disabled) || !b(y) || g.value && (g.value = void 0, s == null || s(v.value, y), O(y));
449
+ };
450
+ if (z) {
451
+ const y = () => {
452
+ var W;
453
+ return {
454
+ capture: (W = t.capture) != null ? W : !0,
455
+ passive: !p(u)
456
+ };
457
+ };
458
+ M(w, "pointerdown", _, y), M(d, "pointermove", N, y), M(d, "pointerup", Y, y);
459
+ }
460
+ return {
461
+ ...pe(v),
462
+ position: v,
463
+ isDragging: R(() => !!g.value),
464
+ style: R(
465
+ () => `left:${v.value.x}px;top:${v.value.y}px;`
466
+ )
467
+ };
468
+ }
469
+ function he(e, t, o = {}) {
470
+ const { window: n = F, ...u } = o;
411
471
  let i;
412
- const c = /* @__PURE__ */ G(() => n && "ResizeObserver" in n), r = () => {
472
+ const a = /* @__PURE__ */ q(() => n && "ResizeObserver" in n), r = () => {
413
473
  i && (i.disconnect(), i = void 0);
414
- }, s = _(() => {
415
- const l = w(e);
416
- return Array.isArray(l) ? l.map((d) => S(d)) : [S(l)];
417
- }), f = A(
474
+ }, s = R(() => {
475
+ const l = p(e);
476
+ return Array.isArray(l) ? l.map((d) => x(d)) : [x(l)];
477
+ }), f = C(
418
478
  s,
419
479
  (l) => {
420
- if (r(), c.value && n) {
480
+ if (r(), a.value && n) {
421
481
  i = new ResizeObserver(t);
422
482
  for (const d of l)
423
483
  d && i.observe(d, u);
424
484
  }
425
485
  },
426
486
  { immediate: !0, flush: "post" }
427
- ), a = () => {
487
+ ), c = () => {
428
488
  r(), f();
429
489
  };
430
- return V(a), {
431
- isSupported: c,
432
- stop: a
490
+ return B(c), {
491
+ isSupported: a,
492
+ stop: c
433
493
  };
434
494
  }
435
- function Ze(e, t = {}) {
495
+ function et(e, t = {}) {
436
496
  const {
437
497
  reset: o = !0,
438
498
  windowResize: n = !0,
439
499
  windowScroll: u = !0,
440
500
  immediate: i = !0,
441
- updateTiming: c = "sync"
442
- } = t, r = b(0), s = b(0), f = b(0), a = b(0), l = b(0), d = b(0), m = b(0), p = b(0);
443
- function T() {
444
- const h = S(e);
445
- if (!h) {
446
- o && (r.value = 0, s.value = 0, f.value = 0, a.value = 0, l.value = 0, d.value = 0, m.value = 0, p.value = 0);
501
+ updateTiming: a = "sync"
502
+ } = t, r = T(0), s = T(0), f = T(0), c = T(0), l = T(0), d = T(0), m = T(0), w = T(0);
503
+ function E() {
504
+ const g = x(e);
505
+ if (!g) {
506
+ o && (r.value = 0, s.value = 0, f.value = 0, c.value = 0, l.value = 0, d.value = 0, m.value = 0, w.value = 0);
447
507
  return;
448
508
  }
449
- const y = h.getBoundingClientRect();
450
- r.value = y.height, s.value = y.bottom, f.value = y.left, a.value = y.right, l.value = y.top, d.value = y.width, m.value = y.x, p.value = y.y;
509
+ const b = g.getBoundingClientRect();
510
+ r.value = b.height, s.value = b.bottom, f.value = b.left, c.value = b.right, l.value = b.top, d.value = b.width, m.value = b.x, w.value = b.y;
451
511
  }
452
512
  function v() {
453
- c === "sync" ? T() : c === "next-frame" && requestAnimationFrame(() => T());
513
+ a === "sync" ? E() : a === "next-frame" && requestAnimationFrame(() => E());
454
514
  }
455
- return ve(e, v), A(() => S(e), (h) => !h && v()), X(e, v, {
515
+ return he(e, v), C(() => x(e), (g) => !g && v()), J(e, v, {
456
516
  attributeFilter: ["style", "class"]
457
- }), u && M("scroll", v, { capture: !0, passive: !0 }), n && M("resize", v, { passive: !0 }), B(() => {
517
+ }), u && M("scroll", v, { capture: !0, passive: !0 }), n && M("resize", v, { passive: !0 }), j(() => {
458
518
  i && v();
459
519
  }), {
460
520
  height: r,
461
521
  bottom: s,
462
522
  left: f,
463
- right: a,
523
+ right: c,
464
524
  top: l,
465
525
  width: d,
466
526
  x: m,
467
- y: p,
527
+ y: w,
468
528
  update: v
469
529
  };
470
530
  }
471
- function et(e, t = { width: 0, height: 0 }, o = {}) {
472
- const { window: n = I, box: u = "content-box" } = o, i = _(() => {
531
+ function tt(e, t = { width: 0, height: 0 }, o = {}) {
532
+ const { window: n = F, box: u = "content-box" } = o, i = R(() => {
473
533
  var l, d;
474
- return (d = (l = S(e)) == null ? void 0 : l.namespaceURI) == null ? void 0 : d.includes("svg");
475
- }), c = b(t.width), r = b(t.height), { stop: s } = ve(
534
+ return (d = (l = x(e)) == null ? void 0 : l.namespaceURI) == null ? void 0 : d.includes("svg");
535
+ }), a = T(t.width), r = T(t.height), { stop: s } = he(
476
536
  e,
477
537
  ([l]) => {
478
538
  const d = u === "border-box" ? l.borderBoxSize : u === "content-box" ? l.contentBoxSize : l.devicePixelContentBoxSize;
479
539
  if (n && i.value) {
480
- const m = S(e);
540
+ const m = x(e);
481
541
  if (m) {
482
- const p = m.getBoundingClientRect();
483
- c.value = p.width, r.value = p.height;
542
+ const w = m.getBoundingClientRect();
543
+ a.value = w.width, r.value = w.height;
484
544
  }
485
545
  } else if (d) {
486
- const m = D(d);
487
- c.value = m.reduce((p, { inlineSize: T }) => p + T, 0), r.value = m.reduce((p, { blockSize: T }) => p + T, 0);
546
+ const m = H(d);
547
+ a.value = m.reduce((w, { inlineSize: E }) => w + E, 0), r.value = m.reduce((w, { blockSize: E }) => w + E, 0);
488
548
  } else
489
- c.value = l.contentRect.width, r.value = l.contentRect.height;
549
+ a.value = l.contentRect.width, r.value = l.contentRect.height;
490
550
  },
491
551
  o
492
552
  );
493
- B(() => {
494
- const l = S(e);
495
- l && (c.value = "offsetWidth" in l ? l.offsetWidth : t.width, r.value = "offsetHeight" in l ? l.offsetHeight : t.height);
553
+ j(() => {
554
+ const l = x(e);
555
+ l && (a.value = "offsetWidth" in l ? l.offsetWidth : t.width, r.value = "offsetHeight" in l ? l.offsetHeight : t.height);
496
556
  });
497
- const f = A(
498
- () => S(e),
557
+ const f = C(
558
+ () => x(e),
499
559
  (l) => {
500
- c.value = l ? t.width : 0, r.value = l ? t.height : 0;
560
+ a.value = l ? t.width : 0, r.value = l ? t.height : 0;
501
561
  }
502
562
  );
503
- function a() {
563
+ function c() {
504
564
  s(), f();
505
565
  }
506
566
  return {
507
- width: c,
567
+ width: a,
508
568
  height: r,
509
- stop: a
569
+ stop: c
510
570
  };
511
571
  }
512
- const $e = {
572
+ const je = {
513
573
  multiple: !0,
514
574
  accept: "*",
515
575
  reset: !1,
@@ -525,52 +585,52 @@ function Ye(e) {
525
585
  t.items.add(o);
526
586
  return t.files;
527
587
  }
528
- function tt(e = {}) {
588
+ function nt(e = {}) {
529
589
  const {
530
- document: t = ze
531
- } = e, o = Ee(Ye(e.initialFiles)), { on: n, trigger: u } = /* @__PURE__ */ te(), { on: i, trigger: c } = /* @__PURE__ */ te(), r = _(() => {
590
+ document: t = Be
591
+ } = e, o = G(Ye(e.initialFiles)), { on: n, trigger: u } = /* @__PURE__ */ oe(), { on: i, trigger: a } = /* @__PURE__ */ oe(), r = R(() => {
532
592
  var l;
533
- const d = (l = S(e.input)) != null ? l : t ? t.createElement("input") : void 0;
593
+ const d = (l = x(e.input)) != null ? l : t ? t.createElement("input") : void 0;
534
594
  return d && (d.type = "file", d.onchange = (m) => {
535
- const p = m.target;
536
- o.value = p.files, u(o.value);
595
+ const w = m.target;
596
+ o.value = w.files, u(o.value);
537
597
  }, d.oncancel = () => {
538
- c();
598
+ a();
539
599
  }), d;
540
600
  }), s = () => {
541
601
  o.value = null, r.value && r.value.value && (r.value.value = "", u(null));
542
602
  }, f = (l) => {
543
603
  const d = r.value;
544
- d && (d.multiple = w(l.multiple), d.accept = w(l.accept), d.webkitdirectory = w(l.directory), Ie(l, "capture") && (d.capture = w(l.capture)));
545
- }, a = (l) => {
604
+ d && (d.multiple = p(l.multiple), d.accept = p(l.accept), d.webkitdirectory = p(l.directory), Ie(l, "capture") && (d.capture = p(l.capture)));
605
+ }, c = (l) => {
546
606
  const d = r.value;
547
607
  if (!d)
548
608
  return;
549
609
  const m = {
550
- ...$e,
610
+ ...je,
551
611
  ...e,
552
612
  ...l
553
613
  };
554
- f(m), w(m.reset) && s(), d.click();
614
+ f(m), p(m.reset) && s(), d.click();
555
615
  };
556
- return ue(() => {
616
+ return ce(() => {
557
617
  f(e);
558
618
  }), {
559
619
  files: Pe(o),
560
- open: a,
620
+ open: c,
561
621
  reset: s,
562
622
  onCancel: i,
563
623
  onChange: n
564
624
  };
565
625
  }
566
- const re = 1;
567
- function nt(e, t = {}) {
626
+ const le = 1;
627
+ function ot(e, t = {}) {
568
628
  const {
569
629
  throttle: o = 0,
570
630
  idle: n = 200,
571
- onStop: u = x,
572
- onScroll: i = x,
573
- offset: c = {
631
+ onStop: u = I,
632
+ onScroll: i = I,
633
+ offset: a = {
574
634
  left: 0,
575
635
  right: 0,
576
636
  top: 0,
@@ -584,92 +644,92 @@ function nt(e, t = {}) {
584
644
  passive: !0
585
645
  },
586
646
  behavior: f = "auto",
587
- window: a = I,
588
- onError: l = (g) => {
589
- console.error(g);
647
+ window: c = F,
648
+ onError: l = (h) => {
649
+ console.error(h);
590
650
  }
591
651
  } = t, d = typeof r == "boolean" ? {
592
652
  mutation: r
593
- } : r, m = b(0), p = b(0), T = _({
653
+ } : r, m = T(0), w = T(0), E = R({
594
654
  get() {
595
655
  return m.value;
596
656
  },
597
- set(g) {
598
- h(g, void 0);
657
+ set(h) {
658
+ g(h, void 0);
599
659
  }
600
- }), v = _({
660
+ }), v = R({
601
661
  get() {
602
- return p.value;
662
+ return w.value;
603
663
  },
604
- set(g) {
605
- h(void 0, g);
664
+ set(h) {
665
+ g(void 0, h);
606
666
  }
607
667
  });
608
- function h(g, R) {
609
- var P, C, L, z;
610
- if (!a)
668
+ function g(h, P) {
669
+ var S, D, V, $;
670
+ if (!c)
611
671
  return;
612
- const W = w(e);
613
- if (!W)
672
+ const A = p(e);
673
+ if (!A)
614
674
  return;
615
- (L = W instanceof Document ? a.document.body : W) == null || L.scrollTo({
616
- top: (P = w(R)) != null ? P : v.value,
617
- left: (C = w(g)) != null ? C : T.value,
618
- behavior: w(f)
675
+ (V = A instanceof Document ? c.document.body : A) == null || V.scrollTo({
676
+ top: (S = p(P)) != null ? S : v.value,
677
+ left: (D = p(h)) != null ? D : E.value,
678
+ behavior: p(f)
619
679
  });
620
- const F = ((z = W == null ? void 0 : W.document) == null ? void 0 : z.documentElement) || (W == null ? void 0 : W.documentElement) || W;
621
- T != null && (m.value = F.scrollLeft), v != null && (p.value = F.scrollTop);
680
+ const k = (($ = A == null ? void 0 : A.document) == null ? void 0 : $.documentElement) || (A == null ? void 0 : A.documentElement) || A;
681
+ E != null && (m.value = k.scrollLeft), v != null && (w.value = k.scrollTop);
622
682
  }
623
- const y = b(!1), O = ee({
683
+ const b = T(!1), O = ne({
624
684
  left: !0,
625
685
  right: !1,
626
686
  top: !0,
627
687
  bottom: !1
628
- }), E = ee({
688
+ }), _ = ne({
629
689
  left: !1,
630
690
  right: !1,
631
691
  top: !1,
632
692
  bottom: !1
633
- }), Q = (g) => {
634
- y.value && (y.value = !1, E.left = !1, E.right = !1, E.top = !1, E.bottom = !1, u(g));
635
- }, pe = /* @__PURE__ */ Le(Q, o + n), H = (g) => {
636
- var R;
637
- if (!a)
693
+ }), N = (h) => {
694
+ b.value && (b.value = !1, _.left = !1, _.right = !1, _.top = !1, _.bottom = !1, u(h));
695
+ }, Y = /* @__PURE__ */ Le(N, o + n), y = (h) => {
696
+ var P;
697
+ if (!c)
638
698
  return;
639
- const P = ((R = g == null ? void 0 : g.document) == null ? void 0 : R.documentElement) || (g == null ? void 0 : g.documentElement) || S(g), { display: C, flexDirection: L, direction: z } = getComputedStyle(P), W = z === "rtl" ? -1 : 1, F = P.scrollLeft;
640
- E.left = F < m.value, E.right = F > m.value;
641
- const q = Math.abs(F * W) <= (c.left || 0), J = Math.abs(F * W) + P.clientWidth >= P.scrollWidth - (c.right || 0) - re;
642
- C === "flex" && L === "row-reverse" ? (O.left = J, O.right = q) : (O.left = q, O.right = J), m.value = F;
643
- let k = P.scrollTop;
644
- g === a.document && !k && (k = a.document.body.scrollTop), E.top = k < p.value, E.bottom = k > p.value;
645
- const K = Math.abs(k) <= (c.top || 0), Z = Math.abs(k) + P.clientHeight >= P.scrollHeight - (c.bottom || 0) - re;
646
- C === "flex" && L === "column-reverse" ? (O.top = Z, O.bottom = K) : (O.top = K, O.bottom = Z), p.value = k;
647
- }, U = (g) => {
648
- var R;
649
- if (!a)
699
+ const S = ((P = h == null ? void 0 : h.document) == null ? void 0 : P.documentElement) || (h == null ? void 0 : h.documentElement) || x(h), { display: D, flexDirection: V, direction: $ } = getComputedStyle(S), A = $ === "rtl" ? -1 : 1, k = S.scrollLeft;
700
+ _.left = k < m.value, _.right = k > m.value;
701
+ const K = Math.abs(k * A) <= (a.left || 0), Z = Math.abs(k * A) + S.clientWidth >= S.scrollWidth - (a.right || 0) - le;
702
+ D === "flex" && V === "row-reverse" ? (O.left = Z, O.right = K) : (O.left = K, O.right = Z), m.value = k;
703
+ let L = S.scrollTop;
704
+ h === c.document && !L && (L = c.document.body.scrollTop), _.top = L < w.value, _.bottom = L > w.value;
705
+ const ee = Math.abs(L) <= (a.top || 0), te = Math.abs(L) + S.clientHeight >= S.scrollHeight - (a.bottom || 0) - le;
706
+ D === "flex" && V === "column-reverse" ? (O.top = te, O.bottom = ee) : (O.top = ee, O.bottom = te), w.value = L;
707
+ }, W = (h) => {
708
+ var P;
709
+ if (!c)
650
710
  return;
651
- const P = (R = g.target.documentElement) != null ? R : g.target;
652
- H(P), y.value = !0, pe(g), i(g);
711
+ const S = (P = h.target.documentElement) != null ? P : h.target;
712
+ y(S), b.value = !0, Y(h), i(h);
653
713
  };
654
714
  return M(
655
715
  e,
656
716
  "scroll",
657
- o ? /* @__PURE__ */ De(U, o, !0, !1) : U,
717
+ o ? /* @__PURE__ */ Ve(W, o, !0, !1) : W,
658
718
  s
659
- ), B(() => {
719
+ ), j(() => {
660
720
  try {
661
- const g = w(e);
662
- if (!g)
721
+ const h = p(e);
722
+ if (!h)
663
723
  return;
664
- H(g);
665
- } catch (g) {
666
- l(g);
724
+ y(h);
725
+ } catch (h) {
726
+ l(h);
667
727
  }
668
- }), d != null && d.mutation && e != null && e !== a && e !== document && X(
728
+ }), d != null && d.mutation && e != null && e !== c && e !== document && J(
669
729
  e,
670
730
  () => {
671
- const g = w(e);
672
- g && H(g);
731
+ const h = p(e);
732
+ h && y(h);
673
733
  },
674
734
  {
675
735
  attributes: !0,
@@ -679,21 +739,21 @@ function nt(e, t = {}) {
679
739
  ), M(
680
740
  e,
681
741
  "scrollend",
682
- Q,
742
+ N,
683
743
  s
684
744
  ), {
685
- x: T,
745
+ x: E,
686
746
  y: v,
687
- isScrolling: y,
747
+ isScrolling: b,
688
748
  arrivedState: O,
689
- directions: E,
749
+ directions: _,
690
750
  measure() {
691
- const g = w(e);
692
- a && g && H(g);
751
+ const h = p(e);
752
+ c && h && y(h);
693
753
  }
694
754
  };
695
755
  }
696
- const me = {
756
+ const ge = {
697
757
  x: 0,
698
758
  y: 0,
699
759
  pointerId: 0,
@@ -704,70 +764,73 @@ const me = {
704
764
  height: 0,
705
765
  twist: 0,
706
766
  pointerType: null
707
- }, Ge = /* @__PURE__ */ Object.keys(me);
708
- function ot(e = {}) {
767
+ }, Xe = /* @__PURE__ */ Object.keys(ge);
768
+ function rt(e = {}) {
709
769
  const {
710
- target: t = I
711
- } = e, o = b(!1), n = b(e.initialValue || {});
712
- Object.assign(n.value, me, n.value);
770
+ target: t = F
771
+ } = e, o = T(!1), n = T(e.initialValue || {});
772
+ Object.assign(n.value, ge, n.value);
713
773
  const u = (i) => {
714
- o.value = !0, !(e.pointerTypes && !e.pointerTypes.includes(i.pointerType)) && (n.value = ke(i, Ge, !1));
774
+ o.value = !0, !(e.pointerTypes && !e.pointerTypes.includes(i.pointerType)) && (n.value = De(i, Xe, !1));
715
775
  };
716
776
  if (t) {
717
777
  const i = { passive: !0 };
718
778
  M(t, ["pointerdown", "pointermove", "pointerup"], u, i), M(t, "pointerleave", () => o.value = !1, i);
719
779
  }
720
780
  return {
721
- ...Ve(n),
781
+ ...pe(n),
722
782
  isInside: o
723
783
  };
724
784
  }
725
785
  // @__NO_SIDE_EFFECTS__
726
- function rt(e) {
727
- const t = de("(prefers-reduced-motion: reduce)", e);
728
- return _(() => t.value ? "reduce" : "no-preference");
786
+ function it(e) {
787
+ const t = me("(prefers-reduced-motion: reduce)", e);
788
+ return R(() => t.value ? "reduce" : "no-preference");
729
789
  }
730
790
  // @__NO_SIDE_EFFECTS__
731
- function it(e = {}) {
791
+ function lt(e = {}) {
732
792
  const {
733
- window: t = I,
793
+ window: t = F,
734
794
  initialWidth: o = Number.POSITIVE_INFINITY,
735
795
  initialHeight: n = Number.POSITIVE_INFINITY,
736
796
  listenOrientation: u = !0,
737
797
  includeScrollbar: i = !0,
738
- type: c = "inner"
739
- } = e, r = b(o), s = b(n), f = () => {
798
+ type: a = "inner"
799
+ } = e, r = T(o), s = T(n), f = () => {
740
800
  if (t)
741
- if (c === "outer")
801
+ if (a === "outer")
742
802
  r.value = t.outerWidth, s.value = t.outerHeight;
743
- else if (c === "visual" && t.visualViewport) {
803
+ else if (a === "visual" && t.visualViewport) {
744
804
  const { width: l, height: d, scale: m } = t.visualViewport;
745
805
  r.value = Math.round(l * m), s.value = Math.round(d * m);
746
806
  } else i ? (r.value = t.innerWidth, s.value = t.innerHeight) : (r.value = t.document.documentElement.clientWidth, s.value = t.document.documentElement.clientHeight);
747
807
  };
748
- f(), B(f);
749
- const a = { passive: !0 };
750
- if (M("resize", f, a), t && c === "visual" && t.visualViewport && M(t.visualViewport, "resize", f, a), u) {
751
- const l = de("(orientation: portrait)");
752
- A(l, () => f());
808
+ f(), j(f);
809
+ const c = { passive: !0 };
810
+ if (M("resize", f, c), t && a === "visual" && t.visualViewport && M(t.visualViewport, "resize", f, c), u) {
811
+ const l = me("(orientation: portrait)");
812
+ C(l, () => f());
753
813
  }
754
814
  return { width: r, height: s };
755
815
  }
756
816
  export {
757
- S as a,
758
- it as b,
759
- et as c,
760
- Ze as d,
761
- tt as e,
817
+ x as a,
818
+ lt as b,
819
+ tt as c,
820
+ et as d,
821
+ nt as e,
762
822
  Ue as f,
763
823
  M as g,
764
824
  Qe as h,
765
- rt as i,
766
- ve as j,
767
- de as k,
768
- nt as l,
769
- Ke as m,
825
+ it as i,
826
+ he as j,
827
+ me as k,
828
+ ot as l,
829
+ Ze as m,
830
+ J as n,
770
831
  Je as o,
771
- ot as u,
832
+ Ke as p,
833
+ B as t,
834
+ rt as u,
772
835
  qe as w
773
836
  };