@lazycatcloud/lzc-toolkit 0.0.104 → 0.0.106

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -8,7 +8,7 @@ const pt = {
8
8
  function a(s) {
9
9
  if (n === void 0)
10
10
  return;
11
- const i = s.clientX, r = s.clientY, v = Math.abs(i - n), M = Math.abs(r - o);
11
+ const u = s.clientX, r = s.clientY, v = Math.abs(u - n), M = Math.abs(r - o);
12
12
  v > 5 || M > 5 || e.value && e.value(s);
13
13
  }
14
14
  t.__mouse_down__ = l, t.__mouse_up__ = a, t.addEventListener("mousedown", l), t.addEventListener("mouseup", a);
@@ -43,12 +43,12 @@ function Fe(t, e) {
43
43
  function mt(t, e = {}) {
44
44
  let n, o;
45
45
  return (a) => {
46
- const s = re(t), i = re(e.maxWait);
47
- if (n && clearTimeout(n), s <= 0 || i !== void 0 && i <= 0)
46
+ const s = re(t), u = re(e.maxWait);
47
+ if (n && clearTimeout(n), s <= 0 || u !== void 0 && u <= 0)
48
48
  return o && (clearTimeout(o), o = null), a();
49
- i && !o && (o = setTimeout(() => {
49
+ u && !o && (o = setTimeout(() => {
50
50
  n && clearTimeout(n), o = null, a();
51
- }, i)), n = setTimeout(() => {
51
+ }, u)), n = setTimeout(() => {
52
52
  o && clearTimeout(o), o = null, a();
53
53
  }, s);
54
54
  };
@@ -76,9 +76,9 @@ function zt(t, e) {
76
76
  a.value = !0, l();
77
77
  };
78
78
  R(t, s, { flush: "sync" });
79
- const i = _e(e) ? e : e.get, r = _e(e) ? void 0 : e.set, v = dt((M, c) => (o = M, l = c, {
79
+ const u = _e(e) ? e : e.get, r = _e(e) ? void 0 : e.set, v = dt((M, c) => (o = M, l = c, {
80
80
  get() {
81
- return a.value && (n = i(), a.value = !1), o(), n;
81
+ return a.value && (n = u(), a.value = !1), o(), n;
82
82
  },
83
83
  set(f) {
84
84
  r?.(f);
@@ -129,23 +129,23 @@ var be = Object.getOwnPropertySymbols, Ct = Object.prototype.hasOwnProperty, At
129
129
  function _t(t, e, n = {}) {
130
130
  const o = n, { window: l = Et } = o, a = Ot(o, ["window"]);
131
131
  let s;
132
- const i = Lt(() => l && "ResizeObserver" in l), r = () => {
132
+ const u = Lt(() => l && "ResizeObserver" in l), r = () => {
133
133
  s && (s.disconnect(), s = void 0);
134
134
  }, v = R(() => Ge(t), (c) => {
135
- r(), i.value && l && c && (s = new ResizeObserver(e), s.observe(c, a));
135
+ r(), u.value && l && c && (s = new ResizeObserver(e), s.observe(c, a));
136
136
  }, { immediate: !0, flush: "post" }), M = () => {
137
137
  r(), v();
138
138
  };
139
139
  return We(M), {
140
- isSupported: i,
140
+ isSupported: u,
141
141
  stop: M
142
142
  };
143
143
  }
144
144
  function St(t, e = { width: 0, height: 0 }, n = {}) {
145
145
  const { box: o = "content-box" } = n, l = y(e.width), a = y(e.height);
146
146
  return _t(t, ([s]) => {
147
- const i = o === "border-box" ? s.borderBoxSize : o === "content-box" ? s.contentBoxSize : s.devicePixelContentBoxSize;
148
- i ? (l.value = i.reduce((r, { inlineSize: v }) => r + v, 0), a.value = i.reduce((r, { blockSize: v }) => r + v, 0)) : (l.value = s.contentRect.width, a.value = s.contentRect.height);
147
+ const u = o === "border-box" ? s.borderBoxSize : o === "content-box" ? s.contentBoxSize : s.devicePixelContentBoxSize;
148
+ u ? (l.value = u.reduce((r, { inlineSize: v }) => r + v, 0), a.value = u.reduce((r, { blockSize: v }) => r + v, 0)) : (l.value = s.contentRect.width, a.value = s.contentRect.height);
149
149
  }, n), R(() => Ge(t), (s) => {
150
150
  l.value = s ? e.width : 0, a.value = s ? e.height : 0;
151
151
  }), {
@@ -164,14 +164,14 @@ function je(t, e = {}) {
164
164
  immediate: l = !0,
165
165
  manual: a = !1,
166
166
  id: s = `vueuse_styletag_${++bt}`
167
- } = e, i = y(t);
167
+ } = e, u = y(t);
168
168
  let r = () => {
169
169
  };
170
170
  const v = () => {
171
171
  if (!o)
172
172
  return;
173
173
  const c = o.getElementById(s) || o.createElement("style");
174
- c.type = "text/css", c.id = s, e.media && (c.media = e.media), o.head.appendChild(c), !n.value && (r = R(i, (f) => {
174
+ c.type = "text/css", c.id = s, e.media && (c.media = e.media), o.head.appendChild(c), !n.value && (r = R(u, (f) => {
175
175
  c.innerText = f;
176
176
  }, { immediate: !0 }), n.value = !0);
177
177
  }, M = () => {
@@ -179,7 +179,7 @@ function je(t, e = {}) {
179
179
  };
180
180
  return l && !a && Ke(v), a || We(M), {
181
181
  id: s,
182
- css: i,
182
+ css: u,
183
183
  unload: M,
184
184
  load: v,
185
185
  isLoaded: vt(n)
@@ -223,14 +223,14 @@ Bt({
223
223
  linear: It
224
224
  }, Yt);
225
225
  function $t(t, e) {
226
- const { scrollEndHook: n, itemHeight: o, overscan: l = 5 } = e, a = y(null), s = St(a), i = y(!0), r = Ze(Z, 100);
226
+ const { scrollEndHook: n, itemHeight: o, overscan: l = 5 } = e, a = y(null), s = St(a), u = y(!0), r = Ze(Z, 100);
227
227
  let v;
228
228
  const M = gt(t), c = y(0), f = y({ start: 0, end: 10 }), D = y({ start: 0, end: l });
229
229
  let d = 0;
230
- const w = y([]), u = T(() => {
230
+ const w = y([]), i = T(() => {
231
231
  let { sum: z, height: p } = { sum: 0, height: 0 };
232
232
  return M.value.map((b, k) => (typeof o == "number" ? p = o : p = o(k), z += p, { height: p, sum: z }));
233
- }), g = T(() => J(f.value.start)), m = T(() => typeof o == "number" ? u.value.length * o : u.value[u.value.length - 1]?.sum || 0), Q = T(() => {
233
+ }), g = T(() => J(f.value.start)), m = T(() => typeof o == "number" ? i.value.length * o : i.value[i.value.length - 1]?.sum || 0), Q = T(() => {
234
234
  const { start: z, end: p } = D.value;
235
235
  return w.value.slice(z, p);
236
236
  });
@@ -251,10 +251,10 @@ function $t(t, e) {
251
251
  W(), r();
252
252
  });
253
253
  function W() {
254
- i.value = !1;
254
+ u.value = !1;
255
255
  }
256
256
  function Z() {
257
- i.value = !0, n?.();
257
+ u.value = !0, n?.();
258
258
  }
259
259
  function A() {
260
260
  cancelAnimationFrame(v), v = requestAnimationFrame(E);
@@ -275,27 +275,27 @@ function $t(t, e) {
275
275
  }
276
276
  }
277
277
  function O(z) {
278
- let p = 0, b = u.value.length - 1, k = -1;
278
+ let p = 0, b = i.value.length - 1, k = -1;
279
279
  for (; p <= b; ) {
280
280
  const x = Math.floor((p + b) / 2);
281
- u.value[x].sum >= z ? (k = x, b = x - 1) : p = x + 1;
281
+ i.value[x].sum >= z ? (k = x, b = x - 1) : p = x + 1;
282
282
  }
283
283
  return Math.max(0, k);
284
284
  }
285
285
  function K(z) {
286
286
  let p = 0, b = 0;
287
- for (let k = z; k < u.value.length && (p++, b += u.value[k].height, !(b >= s.height.value)); k++)
287
+ for (let k = z; k < i.value.length && (p++, b += i.value[k].height, !(b >= s.height.value)); k++)
288
288
  ;
289
289
  return p;
290
290
  }
291
291
  function J(z) {
292
292
  if (typeof o == "number")
293
293
  return z * o;
294
- let p = u.value[z];
294
+ let p = i.value[z];
295
295
  return p ? p.sum - p.height : 0;
296
296
  }
297
297
  function $(z) {
298
- return u.value[z] || { sum: 0, height: 0 };
298
+ return i.value[z] || { sum: 0, height: 0 };
299
299
  }
300
300
  function ee(z) {
301
301
  if (a.value) {
@@ -307,7 +307,7 @@ function $t(t, e) {
307
307
  style: {
308
308
  width: "100%",
309
309
  height: `${m.value}px`,
310
- pointerEvents: i.value ? void 0 : "none"
310
+ pointerEvents: u.value ? void 0 : "none"
311
311
  }
312
312
  })), te = T(() => ({
313
313
  style: {
@@ -326,7 +326,7 @@ function $t(t, e) {
326
326
  clientHeight: s.height,
327
327
  scrollTo: ee,
328
328
  scrollTop: c,
329
- isScrollEnd: i,
329
+ isScrollEnd: u,
330
330
  containerProps: {
331
331
  ref: a,
332
332
  onScroll: () => {
@@ -356,16 +356,16 @@ function Rt(t, e) {
356
356
  return !0;
357
357
  }
358
358
  function Un(t, e, n) {
359
- const o = t.reduce((M, c) => (M.set(c[n], c), M), /* @__PURE__ */ new Map()), l = [], a = [], s = [], i = /* @__PURE__ */ new Set(), r = 2500, v = Math.ceil(e.length / r);
359
+ const o = t.reduce((M, c) => (M.set(c[n], c), M), /* @__PURE__ */ new Map()), l = [], a = [], s = [], u = /* @__PURE__ */ new Set(), r = 2500, v = Math.ceil(e.length / r);
360
360
  for (let M = 0; M < v; M++) {
361
361
  const c = M * r, f = c + r, D = e.slice(c, f);
362
362
  for (const d of D) {
363
- const w = d[n], u = o.get(w);
364
- !u && d ? l.push(d) : u && !d ? a.push(u) : u && d && (Rt(u, d) || s.push(d)), i.add(w), o.delete(w);
363
+ const w = d[n], i = o.get(w);
364
+ !i && d ? l.push(d) : i && !d ? a.push(i) : i && d && (Rt(i, d) || s.push(d)), u.add(w), o.delete(w);
365
365
  }
366
366
  }
367
367
  for (const [M, c] of o)
368
- i.has(M) || a.push(c);
368
+ u.has(M) || a.push(c);
369
369
  return { added: l, removed: a, modified: s };
370
370
  }
371
371
  function Bn() {
@@ -376,11 +376,11 @@ function Bn() {
376
376
  boolRef: T(() => !1),
377
377
  numberRef: T(() => 0),
378
378
  arrayRef: T(() => [])
379
- }, a = H(qe, l), s = H(Je, e), i = H(ot, n), r = H(Xe, t), v = H(Ve, t), M = H(et, t), c = H(tt, t), f = H(nt, t), D = H(Te, t), d = H(lt, o);
379
+ }, a = H(qe, l), s = H(Je, e), u = H(ot, n), r = H(Xe, t), v = H(Ve, t), M = H(et, t), c = H(tt, t), f = H(nt, t), D = H(Te, t), d = H(lt, o);
380
380
  return {
381
381
  selected: a,
382
382
  isSelected: s,
383
- isAllSelected: i,
383
+ isAllSelected: u,
384
384
  toggle: r,
385
385
  toggleAll: v,
386
386
  select: M,
@@ -394,8 +394,8 @@ function Yn(t, e) {
394
394
  const n = y(!1), o = y(/* @__PURE__ */ new Set()), l = y(/* @__PURE__ */ new Map());
395
395
  R(
396
396
  t,
397
- () => {
398
- l.value = t.value.reduce((u, g) => (u.set(g[e], g), u), /* @__PURE__ */ new Map());
397
+ (i) => {
398
+ l.value = i.reduce((g, m) => (g.set(m[e], m), g), /* @__PURE__ */ new Map());
399
399
  },
400
400
  {
401
401
  deep: !0,
@@ -403,28 +403,28 @@ function Yn(t, e) {
403
403
  }
404
404
  );
405
405
  const a = T(() => {
406
- let u = [];
406
+ let i = [];
407
407
  if (n.value != null)
408
- n.value && (u = Array.from(l.value.values()));
408
+ n.value && (i = Array.from(l.value.values()));
409
409
  else if (o.value.size) {
410
410
  let g;
411
411
  o.value.forEach((m) => {
412
- g = l.value.get(m), g && u.push(g);
412
+ g = l.value.get(m), g && i.push(g);
413
413
  });
414
414
  }
415
- return u;
415
+ return i;
416
416
  }), s = T(() => {
417
- let u = 0;
418
- return n.value != null ? n.value && (u = l.value.size) : u = o.value.size, u;
419
- }), i = T(() => {
420
- let u;
417
+ let i = 0;
418
+ return n.value != null ? n.value && (i = l.value.size) : i = o.value.size, i;
419
+ }), u = T(() => {
420
+ let i;
421
421
  if (n.value != null)
422
- u = n.value;
422
+ i = n.value;
423
423
  else {
424
424
  const g = o.value.size, m = l.value.size;
425
- u = g == m;
425
+ i = g == m;
426
426
  }
427
- return u;
427
+ return i;
428
428
  });
429
429
  function r() {
430
430
  n.value = !0;
@@ -432,38 +432,38 @@ function Yn(t, e) {
432
432
  function v() {
433
433
  n.value = !1;
434
434
  }
435
- function M(u) {
435
+ function M(i) {
436
436
  D(() => {
437
- u.forEach((g) => {
437
+ i.forEach((g) => {
438
438
  o.value.add(g[e]);
439
439
  });
440
440
  });
441
441
  }
442
- function c(u) {
442
+ function c(i) {
443
443
  D(() => {
444
- u.forEach((g) => {
444
+ i.forEach((g) => {
445
445
  o.value.delete(g[e]);
446
446
  });
447
447
  });
448
448
  }
449
- function f(u) {
450
- return n.value != null ? n.value : o.value.has(u[e]);
449
+ function f(i) {
450
+ return n.value != null ? n.value : o.value.has(i[e]);
451
451
  }
452
- function D(u) {
453
- n.value != null && (n.value ? o.value = new Set(Array.from(l.value.keys())) : o.value = /* @__PURE__ */ new Set()), u(), o.value.size == 0 ? n.value = !1 : o.value.size == l.value.size ? n.value = !0 : n.value = null;
452
+ function D(i) {
453
+ n.value != null && (n.value ? o.value = new Set(Array.from(l.value.keys())) : o.value = /* @__PURE__ */ new Set()), i(), o.value.size == 0 ? n.value = !1 : o.value.size == l.value.size ? n.value = !0 : n.value = null;
454
454
  }
455
- function d(u) {
455
+ function d(i) {
456
456
  D(() => {
457
- u.forEach((g) => {
457
+ i.forEach((g) => {
458
458
  f(g) ? o.value.delete(g[e]) : o.value.add(g[e]);
459
459
  });
460
460
  });
461
461
  }
462
462
  function w() {
463
- const { value: u } = i;
464
- u ? v() : r();
463
+ const { value: i } = u;
464
+ i ? v() : r();
465
465
  }
466
- return B(Ve, w), B(Xe, d), B(Je, f), B(qe, a), B(et, M), B(tt, r), B(nt, c), B(ot, i), B(Te, v), B(Te, v), B(lt, s), {
466
+ return B(Ve, w), B(Xe, d), B(Je, f), B(qe, a), B(et, M), B(tt, r), B(nt, c), B(ot, u), B(Te, v), B(Te, v), B(lt, s), {
467
467
  selected: a,
468
468
  select: M,
469
469
  selectAll: r,
@@ -472,7 +472,7 @@ function Yn(t, e) {
472
472
  toggle: d,
473
473
  toggleAll: w,
474
474
  isSelected: f,
475
- isAllSelected: i,
475
+ isAllSelected: u,
476
476
  selectedCount: s
477
477
  };
478
478
  }
@@ -492,20 +492,20 @@ function st({
492
492
  unselect: a = fe("\u53D6\u6D88\u9009\u62E9"),
493
493
  unselectAll: s = fe("\u53D6\u6D88\u5168\u9009")
494
494
  } = o();
495
- let i = {};
495
+ let u = {};
496
496
  const r = T(
497
497
  () => Se(e === "colum" ? at : ut, 50)
498
498
  ), v = /* @__PURE__ */ new Set(), M = y(!0), c = y(), f = y(!1), D = y({ x: 0, y: 0 }), d = y({ x: 0, y: 0, scrollTop: 0 }), w = new ResizeObserver(
499
- (N) => u.value = N[0].target.getBoundingClientRect()
500
- ), u = y({}), g = y({
499
+ (N) => i.value = N[0].target.getBoundingClientRect()
500
+ ), i = y({}), g = y({
501
501
  top: 0,
502
502
  height: 0,
503
503
  sync(N = !1) {
504
504
  g.value.top = c.value?.scrollTop || 0, N && (g.value.height = c.value?.scrollHeight || 0);
505
505
  }
506
506
  }), m = T(() => f.value ? {
507
- left: Math.min(D.value.x, d.value.x) - u.value.left,
508
- top: Math.min(D.value.y, d.value.y) - u.value.top,
507
+ left: Math.min(D.value.x, d.value.x) - i.value.left,
508
+ top: Math.min(D.value.y, d.value.y) - i.value.top,
509
509
  width: Math.abs(D.value.x - d.value.x),
510
510
  height: Math.abs(D.value.y - d.value.y)
511
511
  } : { left: 0, top: 0, width: 0, height: 0 }), { margin: Q = 50, startSpeed: W = 30, maxSpeed: Z = 30 } = n;
@@ -520,14 +520,14 @@ function st({
520
520
  const h = c.value;
521
521
  if (!h || !f.value)
522
522
  return;
523
- const U = g.value.height - u.value.height;
523
+ const U = g.value.height - i.value.height;
524
524
  let L = g.value.top + Number($);
525
525
  L = Math.min(Math.max(0, L), U), h.scrollTop = L, q(), A = requestAnimationFrame(() => ee(N));
526
526
  }
527
527
  }
528
528
  function le(N) {
529
529
  if (c.value) {
530
- const U = u.value, L = U.bottom - N;
530
+ const U = i.value, L = U.bottom - N;
531
531
  if (L < E)
532
532
  return O * J(1 - L / E);
533
533
  const F = N - U.top;
@@ -538,13 +538,13 @@ function st({
538
538
  }
539
539
  function te(N) {
540
540
  const h = { ...m.value, right: 0, bottom: 0 };
541
- return h.left += u.value.left, h.top += u.value.top - g.value.top, h.right = h.width + h.left, h.bottom = h.height + h.top, h.left < N.right && h.right > N.left && h.top < N.bottom && h.bottom > N.top;
541
+ return h.left += i.value.left, h.top += i.value.top - g.value.top, h.right = h.width + h.left, h.bottom = h.height + h.top, h.left < N.right && h.right > N.left && h.top < N.bottom && h.bottom > N.top;
542
542
  }
543
543
  function q() {
544
544
  g.value.sync();
545
545
  const { top: N, height: h } = g.value;
546
546
  d.value.y = Math.min(
547
- h + u.value.top,
547
+ h + i.value.top,
548
548
  d.value.y + N - d.value.scrollTop
549
549
  ), d.value.scrollTop = N;
550
550
  }
@@ -563,9 +563,9 @@ function st({
563
563
  M.value = !0, f.value = !0, g.value.height ? g.value.sync() : g.value.sync(!0), D.value.x = N, D.value.y = h + g.value.top, d.value.x = D.value.x, d.value.y = D.value.y, c.value?.classList.add("disable-scroll-behavior"), v.clear();
564
564
  }
565
565
  function b(N, h, U) {
566
- !f.value || (M.value && e === "colum" && !S() && (s(), M.value = !1), U?.(), ee(h), d.value.x = Math.max(N, u.value.left), d.value.y = Math.min(
566
+ !f.value || (M.value && e === "colum" && !S() && (s(), M.value = !1), U?.(), ee(h), d.value.x = Math.max(N, i.value.left), d.value.y = Math.min(
567
567
  h + g.value.top,
568
- g.value.height + u.value.top
568
+ g.value.height + i.value.top
569
569
  ), d.value.scrollTop = g.value.top, r.value());
570
570
  }
571
571
  function k() {
@@ -585,7 +585,7 @@ function st({
585
585
  }
586
586
  function at() {
587
587
  S() || c.value?.querySelectorAll(`[${t}]`).forEach((N) => {
588
- i[`${t}`] = N.getAttribute(`${t}`), te(N.getBoundingClientRect()) ? l([i]) : a([i]);
588
+ u[`${t}`] = N.getAttribute(`${t}`), te(N.getBoundingClientRect()) ? l([u]) : a([u]);
589
589
  });
590
590
  }
591
591
  function ut() {
@@ -593,10 +593,10 @@ function st({
593
593
  let h = null, U = 0;
594
594
  c.value?.querySelectorAll(`[${t}]`).forEach((L, F) => {
595
595
  const ne = L.getAttribute(`${t}`);
596
- N.push(ne), te(L.getBoundingClientRect()) ? (h === null && (h = F), h = Math.min(h, F), U = Math.max(U, F)) : (i[`${t}`] = ne, v.has(ne) && a([i]));
596
+ N.push(ne), te(L.getBoundingClientRect()) ? (h === null && (h = F), h = Math.min(h, F), U = Math.max(U, F)) : (u[`${t}`] = ne, v.has(ne) && a([u]));
597
597
  });
598
598
  for (let L = h; L < U + 1; L++)
599
- i[`${t}`] = N[L], l([i]), v.add(N[L]);
599
+ u[`${t}`] = N[L], l([u]), v.add(N[L]);
600
600
  }
601
601
  function it(N) {
602
602
  return !N?.value || (c.value = N.value, !c?.value) ? !1 : (w.observe(c.value), z(
@@ -624,7 +624,7 @@ function $n(t) {
624
624
  onScroll: l,
625
625
  dragStart: a,
626
626
  dragMove: s,
627
- dragEnd: i,
627
+ dragEnd: u,
628
628
  cancelSelectAllBySingleClick: r
629
629
  } = e, v = T(() => ({
630
630
  left: `${o.value.left}px`,
@@ -655,7 +655,7 @@ function $n(t) {
655
655
  s(g.x, g.y);
656
656
  }
657
657
  function d(g) {
658
- g.composedPath().some((Q) => Q?.getAttribute?.(t.attribute)) || r(), i();
658
+ g.composedPath().some((Q) => Q?.getAttribute?.(t.attribute)) || r(), u();
659
659
  }
660
660
  function w(g) {
661
661
  try {
@@ -668,10 +668,10 @@ function $n(t) {
668
668
  console.error("\u62D6\u9009\u529F\u80FD\u521D\u59CB\u5316\u5931\u8D25", m);
669
669
  }
670
670
  }
671
- function u() {
671
+ function i() {
672
672
  n.disconnect(), e.containerEl.value?.removeEventListener("scroll", l), e.containerEl.value?.removeEventListener("mousedown", f), window.removeEventListener("mousemove", D), window.removeEventListener("mouseup", d);
673
673
  }
674
- return { init: w, unMount: u };
674
+ return { init: w, unMount: i };
675
675
  }
676
676
  function Rn(t, e, n = 600) {
677
677
  const o = st({
@@ -681,28 +681,28 @@ function Rn(t, e, n = 600) {
681
681
  startSpeed: 5,
682
682
  maxSpeed: 5
683
683
  }
684
- }), { observer: l } = o, { onScroll: a, dragStart: s, dragMove: i, dragEnd: r } = o;
684
+ }), { observer: l } = o, { onScroll: a, dragStart: s, dragMove: u, dragEnd: r } = o;
685
685
  let v;
686
686
  function M() {
687
687
  clearTimeout(v);
688
688
  }
689
- function c(u) {
690
- M(), u.composedPath().some((m) => !!m?.getAttribute?.(t.attribute)) && (v = setTimeout(() => {
691
- const { clientX: m, clientY: Q } = u.targetTouches[0];
692
- s(m, Q), e?.(), i(m, Q, () => u.preventDefault()), u.preventDefault();
689
+ function c(i) {
690
+ M(), i.composedPath().some((m) => !!m?.getAttribute?.(t.attribute)) && (v = setTimeout(() => {
691
+ const { clientX: m, clientY: Q } = i.targetTouches[0];
692
+ s(m, Q), e?.(), u(m, Q, () => i.preventDefault()), i.preventDefault();
693
693
  }, n));
694
694
  }
695
- function f(u) {
695
+ function f(i) {
696
696
  M();
697
- const { clientX: g, clientY: m } = u.targetTouches[0];
698
- i(g, m, () => u.preventDefault());
697
+ const { clientX: g, clientY: m } = i.targetTouches[0];
698
+ u(g, m, () => i.preventDefault());
699
699
  }
700
700
  function D() {
701
701
  M(), r();
702
702
  }
703
- function d(u) {
703
+ function d(i) {
704
704
  try {
705
- if (!o.init(u))
705
+ if (!o.init(i))
706
706
  throw "\u521D\u59CB\u5316\u5931\u8D25,Ref\u5143\u7D20\u4E0D\u6B63\u786E";
707
707
  if (!o.containerEl?.value)
708
708
  return !1;
@@ -800,9 +800,9 @@ function Zt({
800
800
  }`
801
801
  ), { LoadingComp: P({
802
802
  setup() {
803
- const i = xt();
803
+ const u = xt();
804
804
  return oe(() => {
805
- i.value.classList.add(l);
805
+ u.value.classList.add(l);
806
806
  }), () => V(t, e);
807
807
  }
808
808
  }) };
@@ -878,7 +878,7 @@ const qt = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTJweCIgaGVpZ2h0PSIxMnB4Ii
878
878
  function s() {
879
879
  n.closeOnClickOverlay && e("close");
880
880
  }
881
- function i() {
881
+ function u() {
882
882
  n.closeOnClick && e("close");
883
883
  }
884
884
  return (r, v) => (C(), pe(me, {
@@ -896,7 +896,7 @@ const qt = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTJweCIgaGVpZ2h0PSIxMnB4Ii
896
896
  }, [
897
897
  I("div", {
898
898
  class: G(`${o}-wrap`),
899
- onClick: se(i, ["stop"])
899
+ onClick: se(u, ["stop"])
900
900
  }, [
901
901
  I("div", {
902
902
  class: G(`${o}-content`),
@@ -970,17 +970,17 @@ function Wn(t, e) {
970
970
  s,
971
971
  e
972
972
  );
973
- const i = y(!1);
973
+ const u = y(!1);
974
974
  let r = null;
975
975
  const v = new Le(e);
976
976
  async function M() {
977
- if (n && console.log(`useDelayAsync - handler - processing: ${i.value}`), !i.value) {
978
- i.value = !0, r = setTimeout(() => {
977
+ if (n && console.log(`useDelayAsync - handler - processing: ${u.value}`), !u.value) {
978
+ u.value = !0, r = setTimeout(() => {
979
979
  n && console.log(
980
980
  "useDelayAsync - handler - setTimeout - loading: %s processing: %s",
981
981
  l,
982
- i.value
983
- ), l && (!i.value || v.show());
982
+ u.value
983
+ ), l && (!u.value || v.show());
984
984
  }, s);
985
985
  try {
986
986
  n && console.time("useDelayAsync - handler-execute-time"), await t(), n && console.timeEnd("useDelayAsync - handler-execute-time"), await c(a);
@@ -990,12 +990,12 @@ function Wn(t, e) {
990
990
  }
991
991
  }
992
992
  async function c(f = !0) {
993
- n && console.log("useDelayAsync - close - closeLoading: ", f), i.value = !1, r && clearTimeout(r), r = null, f && await v.destory();
993
+ n && console.log("useDelayAsync - close - closeLoading: ", f), u.value = !1, r && clearTimeout(r), r = null, f && await v.destory();
994
994
  }
995
995
  return Dt(() => {
996
996
  n && console.log("useDelayAsync - onBeforeUnmount - close"), c();
997
997
  }), {
998
- processing: i,
998
+ processing: u,
999
999
  handler: M,
1000
1000
  close: c
1001
1001
  };
@@ -1024,7 +1024,7 @@ const un = ["onClick"], rn = /* @__PURE__ */ P({
1024
1024
  padding: "14px 19px",
1025
1025
  top: `calc(${a.value}% - ${l.value}px)`,
1026
1026
  left: `calc(50% - ${o.value}px)`
1027
- })), i = T(() => ({
1027
+ })), u = T(() => ({
1028
1028
  width: "fit-content",
1029
1029
  display: "flex",
1030
1030
  justifyContent: "center",
@@ -1046,7 +1046,7 @@ const un = ["onClick"], rn = /* @__PURE__ */ P({
1046
1046
  style: Y([j(s), { zIndex: 9999999 }])
1047
1047
  }, [
1048
1048
  I("div", {
1049
- style: Y(j(i))
1049
+ style: Y(j(u))
1050
1050
  }, [
1051
1051
  I("span", null, Ee(t.message), 1)
1052
1052
  ], 4)
@@ -1124,7 +1124,7 @@ function dn(t) {
1124
1124
  performance: l = {},
1125
1125
  maxHeightRatio: a = 0.9,
1126
1126
  observeMethod: s = "classList"
1127
- } = t, i = y(!0), r = Ze(J, 100);
1127
+ } = t, u = y(!0), r = Ze(J, 100);
1128
1128
  let v, M = "";
1129
1129
  const c = y(0), f = y(0), D = y(0), d = y({
1130
1130
  top: 0,
@@ -1133,7 +1133,7 @@ function dn(t) {
1133
1133
  clientHeight: 0
1134
1134
  }), w = y({
1135
1135
  clientHeight: 0
1136
- }), u = T(() => !!f.value), g = T(() => d.value.scrollHeight > d.value.clientHeight), m = T(() => o ? d.value.clientHeight - Z.value : d.value.clientHeight - w.value.clientHeight), Q = T(() => d.value.scrollHeight - d.value.clientHeight), W = T(() => Math.max(
1136
+ }), i = T(() => !!f.value), g = T(() => d.value.scrollHeight > d.value.clientHeight), m = T(() => o ? d.value.clientHeight - Z.value : d.value.clientHeight - w.value.clientHeight), Q = T(() => d.value.scrollHeight - d.value.clientHeight), W = T(() => Math.max(
1137
1137
  d.value.clientHeight / d.value.scrollHeight,
1138
1138
  0.05
1139
1139
  )), Z = T(() => W.value > a ? 0 : W.value * d.value.clientHeight), A = T(() => ({
@@ -1148,13 +1148,13 @@ function dn(t) {
1148
1148
  e.value.style.scrollBehavior = M, f.value = 0, r();
1149
1149
  }
1150
1150
  function K() {
1151
- i.value = !1;
1151
+ u.value = !1;
1152
1152
  }
1153
1153
  function J() {
1154
- u.value || (i.value = !0);
1154
+ i.value || (u.value = !0);
1155
1155
  }
1156
1156
  function $(x) {
1157
- if (!u.value)
1157
+ if (!i.value)
1158
1158
  return;
1159
1159
  let S = x.clientY - d.value.top - f.value;
1160
1160
  S < 0 ? D.value = 0 : S >= m.value ? D.value = m.value : D.value = S, e.value.scrollTo({
@@ -1162,7 +1162,7 @@ function dn(t) {
1162
1162
  });
1163
1163
  }
1164
1164
  function ee() {
1165
- u.value || le();
1165
+ i.value || le();
1166
1166
  }
1167
1167
  function le() {
1168
1168
  cancelAnimationFrame(v), v = requestAnimationFrame(te);
@@ -1206,8 +1206,8 @@ function dn(t) {
1206
1206
  return R(c, () => {
1207
1207
  K(), r();
1208
1208
  }), {
1209
- isScrollEnd: i,
1210
- isDragSlider: u,
1209
+ isScrollEnd: u,
1210
+ isDragSlider: i,
1211
1211
  offsetTop: D,
1212
1212
  scrollTop: c,
1213
1213
  scrollable: g,
@@ -1232,7 +1232,7 @@ const vn = (t) => (ce("data-v-efefe52c"), t = t(), Me(), t), fn = /* @__PURE__ *
1232
1232
  autoHeight: o ? n.autoHeight : !0,
1233
1233
  performance: n.performance,
1234
1234
  observeMethod: n.observeMethod
1235
- }), { scrollable: i, isScrollEnd: r, sliderPos: v } = s, M = y(!1), c = n.autoHide ? T(() => M.value || !r.value) : T(() => i.value), { load: f } = je(
1235
+ }), { scrollable: u, isScrollEnd: r, sliderPos: v } = s, M = y(!1), c = n.autoHide ? T(() => M.value || !r.value) : T(() => u.value), { load: f } = je(
1236
1236
  `.hide-scrollbar {
1237
1237
  scrollbar-width: none;
1238
1238
  -ms-overflow-style: none;
@@ -1255,7 +1255,7 @@ const vn = (t) => (ce("data-v-efefe52c"), t = t(), Me(), t), fn = /* @__PURE__ *
1255
1255
  function d() {
1256
1256
  M.value = !1;
1257
1257
  }
1258
- return e({ uScrollBarReturn: s }), (w, u) => (C(), pe(me, null, {
1258
+ return e({ uScrollBarReturn: s }), (w, i) => (C(), pe(me, null, {
1259
1259
  default: we(() => [
1260
1260
  Ie(I("div", {
1261
1261
  ref_key: "sliderRef",
@@ -1291,22 +1291,22 @@ const Gn = /* @__PURE__ */ X(gn, [["__scopeId", "data-v-efefe52c"]]), Dn = (t) =
1291
1291
  pullRefreshContainer: null
1292
1292
  },
1293
1293
  setup(t) {
1294
- const e = t, n = 0.7, o = "#2EC1CC", l = y(-999), a = y(1), s = y(0), i = y(0.3), r = y(!1), v = y(0), M = y(0), c = y(0), f = y(0), D = y(0), d = y(), w = T(() => e.scrollTop), u = T(() => ({
1294
+ const e = t, n = 0.7, o = "#2EC1CC", l = y(-999), a = y(1), s = y(0), u = y(0.3), r = y(!1), v = y(0), M = y(0), c = y(0), f = y(0), D = y(0), d = y(), w = T(() => e.scrollTop), i = T(() => ({
1295
1295
  transition: `${f.value}ms`,
1296
1296
  transform: `translate3d(0,${l.value}px, 0) scale(${a.value})`
1297
1297
  })), g = T(() => ({
1298
1298
  borderColor: o,
1299
1299
  transition: f.value,
1300
1300
  transform: `rotate(${100 + s.value}deg)`,
1301
- opacity: i.value
1301
+ opacity: u.value
1302
1302
  }));
1303
1303
  R(D, (E) => {
1304
- E === 0 && (l.value = -50, i.value = 0.3);
1304
+ E === 0 && (l.value = -50, u.value = 0.3);
1305
1305
  }), R(M, (E) => {
1306
1306
  if (D.value === 2)
1307
1307
  return;
1308
1308
  const O = Math.pow(E, n);
1309
- O === 0 && (l.value = -50), O <= 50 && O > 0 && (l.value = O - 45, s.value = Math.pow(O, 1.5), O > 15 ? r.value = !0 : r.value = !1), O > 50 && (l.value = 5, i.value = 1, D.value);
1309
+ O === 0 && (l.value = -50), O <= 50 && O > 0 && (l.value = O - 45, s.value = Math.pow(O, 1.5), O > 15 ? r.value = !0 : r.value = !1), O > 50 && (l.value = 5, u.value = 1, D.value);
1310
1310
  });
1311
1311
  const m = y(0), Q = (E) => {
1312
1312
  m.value = E.touches[0].pageY;
@@ -1340,7 +1340,7 @@ const Gn = /* @__PURE__ */ X(gn, [["__scopeId", "data-v-efefe52c"]]), Dn = (t) =
1340
1340
  }), (E, O) => (C(), _("div", yn, [
1341
1341
  I("div", {
1342
1342
  class: "pull-refresh-box",
1343
- style: Y(j(u))
1343
+ style: Y(j(i))
1344
1344
  }, [
1345
1345
  d.value ? (C(), _("div", In, Ee(d.value), 1)) : (C(), _("div", Nn, [
1346
1346
  D.value == 2 ? (C(), _("div", Tn, [
@@ -1397,7 +1397,7 @@ const En = /* @__PURE__ */ X(zn, [["__scopeId", "data-v-18377f18"]]), jn = {
1397
1397
  }), {
1398
1398
  list: a,
1399
1399
  containerProps: s,
1400
- wrapperProps: i,
1400
+ wrapperProps: u,
1401
1401
  innerProps: r,
1402
1402
  getItemHeightData: v,
1403
1403
  scrollTop: M
@@ -1422,7 +1422,7 @@ const En = /* @__PURE__ */ X(zn, [["__scopeId", "data-v-18377f18"]]), jn = {
1422
1422
  ref: j(s).ref,
1423
1423
  class: "virtualList"
1424
1424
  }, f.$attrs), [
1425
- I("div", ge(De(j(i))), [
1425
+ I("div", ge(De(j(u))), [
1426
1426
  I("div", ge(De(j(r))), [
1427
1427
  (C(!0), _(Ae, null, ht(j(a), ({ index: d, data: w }) => (C(), _("div", {
1428
1428
  key: d,
package/dist/index.umd.js CHANGED
@@ -1,9 +1,9 @@
1
- (function(D,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(D=typeof globalThis<"u"?globalThis:D||self,e(D.ui={},D.Vue))})(this,function(D,e){"use strict";const ge={created(n,t){let o,l;function s(a){o=a.clientX,l=a.clientY}function i(a){if(o===void 0)return;const c=a.clientX,u=a.clientY,g=Math.abs(c-o),M=Math.abs(u-l);g>5||M>5||t.value&&t.value(a)}n.__mouse_down__=s,n.__mouse_up__=i,n.addEventListener("mousedown",s),n.addEventListener("mouseup",i)},unmounted(n){n.removeEventListener("mousedown",n.__mouse_down__),n.removeEventListener("mouseup",n.__mouse_up__)}},Se={created(n,t){const{fn:o,ms:l=1500}=t.value;let s=null;function i(a){s||(o(a),s=setTimeout(()=>{s=null},l))}n.addEventListener("click",i)}};var ye;const F=typeof window<"u",me=n=>typeof n=="function";F&&((ye=window?.navigator)==null?void 0:ye.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function K(n){return typeof n=="function"?n():e.unref(n)}function Ne(n,t){function o(...l){n(()=>t.apply(this,l),{fn:t,thisArg:this,args:l})}return o}function _e(n,t={}){let o,l;return i=>{const a=K(n),c=K(t.maxWait);if(o&&clearTimeout(o),a<=0||c!==void 0&&c<=0)return l&&(clearTimeout(l),l=null),i();c&&!l&&(l=setTimeout(()=>{o&&clearTimeout(o),l=null,i()},c)),o=setTimeout(()=>{l&&clearTimeout(l),l=null,i()},a)}}function ke(n,t=!0,o=!0){let l=0,s,i=!0;const a=()=>{s&&(clearTimeout(s),s=void 0)};return u=>{const g=K(n),M=Date.now()-l;if(a(),g<=0)return l=Date.now(),u();M>g&&(o||!i)?(l=Date.now(),u()):t&&(s=setTimeout(()=>{l=Date.now(),i=!0,a(),u()},g)),!o&&!s&&(s=setTimeout(()=>i=!0,g)),i=!1}}function be(n){return n}function Qe(n,t){let o,l,s;const i=e.ref(!0),a=()=>{i.value=!0,s()};e.watch(n,a,{flush:"sync"});const c=me(t)?t:t.get,u=me(t)?void 0:t.set,g=e.customRef((M,d)=>(l=M,s=d,{get(){return i.value&&(o=c(),i.value=!1),l(),o},set(y){u?.(y)}}));return Object.isExtensible(g)&&(g.trigger=a),g}function De(n){return e.getCurrentScope()?(e.onScopeDispose(n),!0):!1}function he(n,t=200,o={}){return Ne(_e(t,o),n)}function pe(n,t=200,o=!1,l=!0){return Ne(ke(t,o,l),n)}function Te(n,t=!0){e.getCurrentInstance()?e.onMounted(n):t?n():e.nextTick(n)}function we(n){var t;const o=K(n);return(t=o?.$el)!=null?t:o}const Be=F?window:void 0,Ue=F?window.document:void 0;F&&window.navigator,F&&window.location;function Ye(n,t=!1){const o=e.ref(),l=()=>o.value=Boolean(n());return l(),Te(l,t),o}const X=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},J="__vueuse_ssr_handlers__";X[J]=X[J]||{},X[J];function $e(){const n=e.getCurrentInstance(),t=Qe(()=>null,()=>n.proxy.$el);return e.onUpdated(t.trigger),e.onMounted(t.trigger),t}var Ie=Object.getOwnPropertySymbols,Pe=Object.prototype.hasOwnProperty,Re=Object.prototype.propertyIsEnumerable,He=(n,t)=>{var o={};for(var l in n)Pe.call(n,l)&&t.indexOf(l)<0&&(o[l]=n[l]);if(n!=null&&Ie)for(var l of Ie(n))t.indexOf(l)<0&&Re.call(n,l)&&(o[l]=n[l]);return o};function Ve(n,t,o={}){const l=o,{window:s=Be}=l,i=He(l,["window"]);let a;const c=Ye(()=>s&&"ResizeObserver"in s),u=()=>{a&&(a.disconnect(),a=void 0)},g=e.watch(()=>we(n),d=>{u(),c.value&&s&&d&&(a=new ResizeObserver(t),a.observe(d,i))},{immediate:!0,flush:"post"}),M=()=>{u(),g()};return De(M),{isSupported:c,stop:M}}function Fe(n,t={width:0,height:0},o={}){const{box:l="content-box"}=o,s=e.ref(t.width),i=e.ref(t.height);return Ve(n,([a])=>{const c=l==="border-box"?a.borderBoxSize:l==="content-box"?a.contentBoxSize:a.devicePixelContentBoxSize;c?(s.value=c.reduce((u,{inlineSize:g})=>u+g,0),i.value=c.reduce((u,{blockSize:g})=>u+g,0)):(s.value=a.contentRect.width,i.value=a.contentRect.height)},o),e.watch(()=>we(n),a=>{s.value=a?t.width:0,i.value=a?t.height:0}),{width:s,height:i}}var Ee;(function(n){n.UP="UP",n.RIGHT="RIGHT",n.DOWN="DOWN",n.LEFT="LEFT",n.NONE="NONE"})(Ee||(Ee={}));let We=0;function q(n,t={}){const o=e.ref(!1),{document:l=Ue,immediate:s=!0,manual:i=!1,id:a=`vueuse_styletag_${++We}`}=t,c=e.ref(n);let u=()=>{};const g=()=>{if(!l)return;const d=l.getElementById(a)||l.createElement("style");d.type="text/css",d.id=a,t.media&&(d.media=t.media),l.head.appendChild(d),!o.value&&(u=e.watch(c,y=>{d.innerText=y},{immediate:!0}),o.value=!0)},M=()=>{!l||!o.value||(u(),l.head.removeChild(l.getElementById(a)),o.value=!1)};return s&&!i&&Te(g),i||De(M),{id:a,css:c,unload:M,load:g,isLoaded:e.readonly(o)}}var Ke=Object.defineProperty,ze=Object.getOwnPropertySymbols,Ze=Object.prototype.hasOwnProperty,Ge=Object.prototype.propertyIsEnumerable,je=(n,t,o)=>t in n?Ke(n,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):n[t]=o,Xe=(n,t)=>{for(var o in t||(t={}))Ze.call(t,o)&&je(n,o,t[o]);if(ze)for(var o of ze(t))Ge.call(t,o)&&je(n,o,t[o]);return n};Xe({linear:be},{easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]});function Le(n,t){const{scrollEndHook:o,itemHeight:l,overscan:s=5}=t,i=e.ref(null),a=Fe(i),c=e.ref(!0),u=he(U,100);let g;const M=e.shallowRef(n),d=e.ref(0),y=e.ref({start:0,end:10}),N=e.ref({start:0,end:s});let f=0;const I=e.ref([]),r=e.computed(()=>{let{sum:E,height:T}={sum:0,height:0};return M.value.map((O,x)=>(typeof l=="number"?T=l:T=l(x),E+=T,{height:T,sum:E}))}),m=e.computed(()=>$(y.value.start)),w=e.computed(()=>typeof l=="number"?r.value.length*l:r.value[r.value.length-1]?.sum||0),S=e.computed(()=>{const{start:E,end:T}=N.value;return I.value.slice(E,T)});e.onMounted(()=>{}),e.onUnmounted(()=>cancelAnimationFrame(g)),e.watch(M,()=>{(a.width.value||a.height.value)&&v()},{deep:!0}),e.watch([a.width,a.height],([E,T])=>{(E||T)&&v()},{deep:!0}),e.watch(d,()=>{B(),u()});function B(){c.value=!1}function U(){c.value=!0,o?.()}function v(){cancelAnimationFrame(g),g=requestAnimationFrame(z)}function z(){if(i.value){d.value=i.value.scrollTop;let E=C(d.value);f=Y(E);let T=Math.max(0,E-s),O=Math.min(E+f+s,M.value.length);y.value={start:T,end:O},I.value=M.value.slice(T,O).map((x,L)=>({data:x,index:L+T})),N.value.start=E-T,N.value.end=N.value.start+f}}function C(E){let T=0,O=r.value.length-1,x=-1;for(;T<=O;){const L=Math.floor((T+O)/2);r.value[L].sum>=E?(x=L,O=L-1):T=L+1}return Math.max(0,x)}function Y(E){let T=0,O=0;for(let x=E;x<r.value.length&&(T++,O+=r.value[x].height,!(O>=a.height.value));x++);return T}function $(E){if(typeof l=="number")return E*l;let T=r.value[E];return T?T.sum-T.height:0}function k(E){return r.value[E]||{sum:0,height:0}}function R(E){if(i.value){const T=k(E);i.value.scrollTop=T.sum-T.height,z()}}const W=e.computed(()=>({style:{width:"100%",height:`${w.value}px`,pointerEvents:c.value?void 0:"none"}})),H=e.computed(()=>({style:{transform:`translate3d(0, ${m.value}px, 0)`,"will-change":"transform"}})),P={overflowY:"auto"};return{list:I,visiableList:S,getItemHeightData:k,getoffsetTopIndex:C,totalHeight:w,clientHeight:a.height,scrollTo:R,scrollTop:d,isScrollEnd:c,containerProps:{ref:i,onScroll:()=>{v()},style:P},wrapperProps:W,innerProps:H}}const ee=Symbol(),te=Symbol(),ne=Symbol(),oe=Symbol(),le=Symbol(),se=Symbol(),ae=Symbol(),ie=Symbol(),Z=Symbol(),re=Symbol();function Je(n,t){const o=Object.keys(n),l=Object.keys(t);if(o.length!==l.length)return!1;for(let s of o){const i=n[s],a=t[s];if(i instanceof Date){if(i.getTime()!==a.getTime())return!1;continue}if(n[s]!==t[s])return!1}return!0}function qe(n,t,o){const l=n.reduce((M,d)=>(M.set(d[o],d),M),new Map),s=[],i=[],a=[],c=new Set,u=2500,g=Math.ceil(t.length/u);for(let M=0;M<g;M++){const d=M*u,y=d+u,N=t.slice(d,y);for(const f of N){const I=f[o],r=l.get(I);!r&&f?s.push(f):r&&!f?i.push(r):r&&f&&(Je(r,f)||a.push(f)),c.add(I),l.delete(I)}}for(const[M,d]of l)c.has(M)||i.push(d);return{added:s,removed:i,modified:a}}function et(){const{voidFn:n,boolFn:t,boolRef:o,numberRef:l,arrayRef:s}={voidFn:I=>{},boolFn:I=>!1,boolRef:e.computed(()=>!1),numberRef:e.computed(()=>0),arrayRef:e.computed(()=>[])},i=e.inject(oe,s),a=e.inject(ne,t),c=e.inject(ie,o),u=e.inject(te,n),g=e.inject(ee,n),M=e.inject(le,n),d=e.inject(se,n),y=e.inject(ae,n),N=e.inject(Z,n),f=e.inject(re,l);return{selected:i,isSelected:a,isAllSelected:c,toggle:u,toggleAll:g,select:M,selectAll:d,unselect:y,unselectAll:N,selectedCount:f}}function tt(n,t){const o=e.ref(!1),l=e.ref(new Set),s=e.ref(new Map);e.watch(n,()=>{s.value=n.value.reduce((r,m)=>(r.set(m[t],m),r),new Map)},{deep:!0,immediate:!0});const i=e.computed(()=>{let r=[];if(o.value!=null)o.value&&(r=Array.from(s.value.values()));else if(l.value.size){let m;l.value.forEach(w=>{m=s.value.get(w),m&&r.push(m)})}return r}),a=e.computed(()=>{let r=0;return o.value!=null?o.value&&(r=s.value.size):r=l.value.size,r}),c=e.computed(()=>{let r;if(o.value!=null)r=o.value;else{const m=l.value.size,w=s.value.size;r=m==w}return r});function u(){o.value=!0}function g(){o.value=!1}function M(r){N(()=>{r.forEach(m=>{l.value.add(m[t])})})}function d(r){N(()=>{r.forEach(m=>{l.value.delete(m[t])})})}function y(r){return o.value!=null?o.value:l.value.has(r[t])}function N(r){o.value!=null&&(o.value?l.value=new Set(Array.from(s.value.keys())):l.value=new Set),r(),l.value.size==0?o.value=!1:l.value.size==s.value.size?o.value=!0:o.value=null}function f(r){N(()=>{r.forEach(m=>{y(m)?l.value.delete(m[t]):l.value.add(m[t])})})}function I(){const{value:r}=c;r?g():u()}return e.provide(ee,I),e.provide(te,f),e.provide(ne,y),e.provide(oe,i),e.provide(le,M),e.provide(se,u),e.provide(ae,d),e.provide(ie,c),e.provide(Z,g),e.provide(Z,g),e.provide(re,a),{selected:i,select:M,selectAll:u,unselect:d,unselectAll:g,toggle:f,toggleAll:I,isSelected:y,isAllSelected:c,selectedCount:a}}function ce(n){return()=>{console.debug(`\u9ED8\u8BA4${n}\u65B9\u6CD5,\u9700\u8981\u81EA\u5B9A\u4E49\u751F\u6548`)}}function ue({attribute:n,selectWay:t="colum",scrollOptions:o={},getSelectMap:l=()=>({})}){const{select:s=ce("\u9009\u62E9"),unselect:i=ce("\u53D6\u6D88\u9009\u62E9"),unselectAll:a=ce("\u53D6\u6D88\u5168\u9009")}=l();let c={};const u=e.computed(()=>pe(t==="colum"?Xt:Jt,50)),g=new Set,M=e.ref(!0),d=e.ref(),y=e.ref(!1),N=e.ref({x:0,y:0}),f=e.ref({x:0,y:0,scrollTop:0}),I=new ResizeObserver(h=>r.value=h[0].target.getBoundingClientRect()),r=e.ref({}),m=e.ref({top:0,height:0,sync(h=!1){m.value.top=d.value?.scrollTop||0,h&&(m.value.height=d.value?.scrollHeight||0)}}),w=e.computed(()=>y.value?{left:Math.min(N.value.x,f.value.x)-r.value.left,top:Math.min(N.value.y,f.value.y)-r.value.top,width:Math.abs(N.value.x-f.value.x),height:Math.abs(N.value.y-f.value.y)}:{left:0,top:0,width:0,height:0}),{margin:S=50,startSpeed:B=30,maxSpeed:U=30}=o;let v;const z=S,C=B,Y=U,$=h=>h**1;let k=0;function R(h){if(cancelAnimationFrame(v),k=W(h),k=Math.max(Math.min(k,Y),-Y),k!==0){const p=d.value;if(!p||!y.value)return;const _=m.value.height-r.value.height;let j=m.value.top+Number(k);j=Math.min(Math.max(0,j),_),p.scrollTop=j,P(),v=requestAnimationFrame(()=>R(h))}}function W(h){if(d.value){const _=r.value,j=_.bottom-h;if(j<z)return C*$(1-j/z);const b=h-_.top;if(b<z)return-C*$(1-b/z)}return 0}function H(h){const p={...w.value,right:0,bottom:0};return p.left+=r.value.left,p.top+=r.value.top-m.value.top,p.right=p.width+p.left,p.bottom=p.height+p.top,p.left<h.right&&p.right>h.left&&p.top<h.bottom&&p.bottom>h.top}function P(){m.value.sync();const{top:h,height:p}=m.value;f.value.y=Math.min(p+r.value.top,f.value.y+h-f.value.scrollTop),f.value.scrollTop=h}function E(h,p,_="dynamic-styles"){let j=document.getElementById(_);j||(j=document.createElement("style"),j.id=_,document.head.appendChild(j));const b=j.sheet.cssRules,V=b.length,en=`${h} { ${p} }`;for(let fe=0;fe<V;fe++){const xe=b[fe];if(xe.selectorText===h&&xe.style.cssText===p)return}j.sheet.insertRule(en,V)}function T(h,p){M.value=!0,y.value=!0,m.value.height?m.value.sync():m.value.sync(!0),N.value.x=h,N.value.y=p+m.value.top,f.value.x=N.value.x,f.value.y=N.value.y,d.value?.classList.add("disable-scroll-behavior"),g.clear()}function O(h,p,_){!y.value||(M.value&&t==="colum"&&!A()&&(a(),M.value=!1),_?.(),R(p),f.value.x=Math.max(h,r.value.left),f.value.y=Math.min(p+m.value.top,m.value.height+r.value.top),f.value.scrollTop=m.value.top,u.value())}function x(){y.value=!1,d.value?.classList.remove("disable-scroll-behavior")}function L(){!y.value||(k||P(),u.value())}function A(){if(!y.value)return!1;const{width:h,height:p}=w.value;return!(Math.max(h,p)>5)}function Me(){A()&&a()}function Xt(){A()||d.value?.querySelectorAll(`[${n}]`).forEach(h=>{c[`${n}`]=h.getAttribute(`${n}`),H(h.getBoundingClientRect())?s([c]):i([c])})}function Jt(){const h=[];let p=null,_=0;d.value?.querySelectorAll(`[${n}]`).forEach((j,b)=>{const V=j.getAttribute(`${n}`);h.push(V),H(j.getBoundingClientRect())?(p===null&&(p=b),p=Math.min(p,b),_=Math.max(_,b)):(c[`${n}`]=V,g.has(V)&&i([c]))});for(let j=p;j<_+1;j++)c[`${n}`]=h[j],s([c]),g.add(h[j])}function qt(h){return!h?.value||(d.value=h.value,!d?.value)?!1:(I.observe(d.value),E(".disable-scroll-behavior","scroll-behavior: unset !important;"),!0)}return{init:qt,dragStart:T,dragMove:O,dragEnd:x,onScroll:L,isSingleClick:A,cancelSelectAllBySingleClick:Me,selectFn:u,selectRange:w,isPressing:y,containerEl:d,observer:I}}function nt(n){const t=ue(n),{observer:o,selectRange:l}=t,{onScroll:s,dragStart:i,dragMove:a,dragEnd:c,cancelSelectAllBySingleClick:u}=t,g=e.computed(()=>({left:`${l.value.left}px`,top:`${l.value.top}px`,width:`${l.value.width}px`,height:`${l.value.height}px`})),{load:M}=q(`.drag-select-box {
1
+ (function(D,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(D=typeof globalThis<"u"?globalThis:D||self,e(D.ui={},D.Vue))})(this,function(D,e){"use strict";const ge={created(n,t){let o,l;function s(a){o=a.clientX,l=a.clientY}function i(a){if(o===void 0)return;const r=a.clientX,u=a.clientY,g=Math.abs(r-o),M=Math.abs(u-l);g>5||M>5||t.value&&t.value(a)}n.__mouse_down__=s,n.__mouse_up__=i,n.addEventListener("mousedown",s),n.addEventListener("mouseup",i)},unmounted(n){n.removeEventListener("mousedown",n.__mouse_down__),n.removeEventListener("mouseup",n.__mouse_up__)}},Se={created(n,t){const{fn:o,ms:l=1500}=t.value;let s=null;function i(a){s||(o(a),s=setTimeout(()=>{s=null},l))}n.addEventListener("click",i)}};var ye;const F=typeof window<"u",me=n=>typeof n=="function";F&&((ye=window?.navigator)==null?void 0:ye.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function K(n){return typeof n=="function"?n():e.unref(n)}function Ne(n,t){function o(...l){n(()=>t.apply(this,l),{fn:t,thisArg:this,args:l})}return o}function _e(n,t={}){let o,l;return i=>{const a=K(n),r=K(t.maxWait);if(o&&clearTimeout(o),a<=0||r!==void 0&&r<=0)return l&&(clearTimeout(l),l=null),i();r&&!l&&(l=setTimeout(()=>{o&&clearTimeout(o),l=null,i()},r)),o=setTimeout(()=>{l&&clearTimeout(l),l=null,i()},a)}}function ke(n,t=!0,o=!0){let l=0,s,i=!0;const a=()=>{s&&(clearTimeout(s),s=void 0)};return u=>{const g=K(n),M=Date.now()-l;if(a(),g<=0)return l=Date.now(),u();M>g&&(o||!i)?(l=Date.now(),u()):t&&(s=setTimeout(()=>{l=Date.now(),i=!0,a(),u()},g)),!o&&!s&&(s=setTimeout(()=>i=!0,g)),i=!1}}function be(n){return n}function Qe(n,t){let o,l,s;const i=e.ref(!0),a=()=>{i.value=!0,s()};e.watch(n,a,{flush:"sync"});const r=me(t)?t:t.get,u=me(t)?void 0:t.set,g=e.customRef((M,d)=>(l=M,s=d,{get(){return i.value&&(o=r(),i.value=!1),l(),o},set(y){u?.(y)}}));return Object.isExtensible(g)&&(g.trigger=a),g}function De(n){return e.getCurrentScope()?(e.onScopeDispose(n),!0):!1}function he(n,t=200,o={}){return Ne(_e(t,o),n)}function pe(n,t=200,o=!1,l=!0){return Ne(ke(t,o,l),n)}function Te(n,t=!0){e.getCurrentInstance()?e.onMounted(n):t?n():e.nextTick(n)}function we(n){var t;const o=K(n);return(t=o?.$el)!=null?t:o}const Be=F?window:void 0,Ue=F?window.document:void 0;F&&window.navigator,F&&window.location;function Ye(n,t=!1){const o=e.ref(),l=()=>o.value=Boolean(n());return l(),Te(l,t),o}const X=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},J="__vueuse_ssr_handlers__";X[J]=X[J]||{},X[J];function $e(){const n=e.getCurrentInstance(),t=Qe(()=>null,()=>n.proxy.$el);return e.onUpdated(t.trigger),e.onMounted(t.trigger),t}var Ie=Object.getOwnPropertySymbols,Pe=Object.prototype.hasOwnProperty,Re=Object.prototype.propertyIsEnumerable,He=(n,t)=>{var o={};for(var l in n)Pe.call(n,l)&&t.indexOf(l)<0&&(o[l]=n[l]);if(n!=null&&Ie)for(var l of Ie(n))t.indexOf(l)<0&&Re.call(n,l)&&(o[l]=n[l]);return o};function Ve(n,t,o={}){const l=o,{window:s=Be}=l,i=He(l,["window"]);let a;const r=Ye(()=>s&&"ResizeObserver"in s),u=()=>{a&&(a.disconnect(),a=void 0)},g=e.watch(()=>we(n),d=>{u(),r.value&&s&&d&&(a=new ResizeObserver(t),a.observe(d,i))},{immediate:!0,flush:"post"}),M=()=>{u(),g()};return De(M),{isSupported:r,stop:M}}function Fe(n,t={width:0,height:0},o={}){const{box:l="content-box"}=o,s=e.ref(t.width),i=e.ref(t.height);return Ve(n,([a])=>{const r=l==="border-box"?a.borderBoxSize:l==="content-box"?a.contentBoxSize:a.devicePixelContentBoxSize;r?(s.value=r.reduce((u,{inlineSize:g})=>u+g,0),i.value=r.reduce((u,{blockSize:g})=>u+g,0)):(s.value=a.contentRect.width,i.value=a.contentRect.height)},o),e.watch(()=>we(n),a=>{s.value=a?t.width:0,i.value=a?t.height:0}),{width:s,height:i}}var Ee;(function(n){n.UP="UP",n.RIGHT="RIGHT",n.DOWN="DOWN",n.LEFT="LEFT",n.NONE="NONE"})(Ee||(Ee={}));let We=0;function q(n,t={}){const o=e.ref(!1),{document:l=Ue,immediate:s=!0,manual:i=!1,id:a=`vueuse_styletag_${++We}`}=t,r=e.ref(n);let u=()=>{};const g=()=>{if(!l)return;const d=l.getElementById(a)||l.createElement("style");d.type="text/css",d.id=a,t.media&&(d.media=t.media),l.head.appendChild(d),!o.value&&(u=e.watch(r,y=>{d.innerText=y},{immediate:!0}),o.value=!0)},M=()=>{!l||!o.value||(u(),l.head.removeChild(l.getElementById(a)),o.value=!1)};return s&&!i&&Te(g),i||De(M),{id:a,css:r,unload:M,load:g,isLoaded:e.readonly(o)}}var Ke=Object.defineProperty,ze=Object.getOwnPropertySymbols,Ze=Object.prototype.hasOwnProperty,Ge=Object.prototype.propertyIsEnumerable,je=(n,t,o)=>t in n?Ke(n,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):n[t]=o,Xe=(n,t)=>{for(var o in t||(t={}))Ze.call(t,o)&&je(n,o,t[o]);if(ze)for(var o of ze(t))Ge.call(t,o)&&je(n,o,t[o]);return n};Xe({linear:be},{easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]});function Le(n,t){const{scrollEndHook:o,itemHeight:l,overscan:s=5}=t,i=e.ref(null),a=Fe(i),r=e.ref(!0),u=he(U,100);let g;const M=e.shallowRef(n),d=e.ref(0),y=e.ref({start:0,end:10}),N=e.ref({start:0,end:s});let f=0;const I=e.ref([]),c=e.computed(()=>{let{sum:E,height:T}={sum:0,height:0};return M.value.map((O,x)=>(typeof l=="number"?T=l:T=l(x),E+=T,{height:T,sum:E}))}),m=e.computed(()=>$(y.value.start)),w=e.computed(()=>typeof l=="number"?c.value.length*l:c.value[c.value.length-1]?.sum||0),S=e.computed(()=>{const{start:E,end:T}=N.value;return I.value.slice(E,T)});e.onMounted(()=>{}),e.onUnmounted(()=>cancelAnimationFrame(g)),e.watch(M,()=>{(a.width.value||a.height.value)&&v()},{deep:!0}),e.watch([a.width,a.height],([E,T])=>{(E||T)&&v()},{deep:!0}),e.watch(d,()=>{B(),u()});function B(){r.value=!1}function U(){r.value=!0,o?.()}function v(){cancelAnimationFrame(g),g=requestAnimationFrame(z)}function z(){if(i.value){d.value=i.value.scrollTop;let E=C(d.value);f=Y(E);let T=Math.max(0,E-s),O=Math.min(E+f+s,M.value.length);y.value={start:T,end:O},I.value=M.value.slice(T,O).map((x,L)=>({data:x,index:L+T})),N.value.start=E-T,N.value.end=N.value.start+f}}function C(E){let T=0,O=c.value.length-1,x=-1;for(;T<=O;){const L=Math.floor((T+O)/2);c.value[L].sum>=E?(x=L,O=L-1):T=L+1}return Math.max(0,x)}function Y(E){let T=0,O=0;for(let x=E;x<c.value.length&&(T++,O+=c.value[x].height,!(O>=a.height.value));x++);return T}function $(E){if(typeof l=="number")return E*l;let T=c.value[E];return T?T.sum-T.height:0}function k(E){return c.value[E]||{sum:0,height:0}}function R(E){if(i.value){const T=k(E);i.value.scrollTop=T.sum-T.height,z()}}const W=e.computed(()=>({style:{width:"100%",height:`${w.value}px`,pointerEvents:r.value?void 0:"none"}})),H=e.computed(()=>({style:{transform:`translate3d(0, ${m.value}px, 0)`,"will-change":"transform"}})),P={overflowY:"auto"};return{list:I,visiableList:S,getItemHeightData:k,getoffsetTopIndex:C,totalHeight:w,clientHeight:a.height,scrollTo:R,scrollTop:d,isScrollEnd:r,containerProps:{ref:i,onScroll:()=>{v()},style:P},wrapperProps:W,innerProps:H}}const ee=Symbol(),te=Symbol(),ne=Symbol(),oe=Symbol(),le=Symbol(),se=Symbol(),ae=Symbol(),ie=Symbol(),Z=Symbol(),re=Symbol();function Je(n,t){const o=Object.keys(n),l=Object.keys(t);if(o.length!==l.length)return!1;for(let s of o){const i=n[s],a=t[s];if(i instanceof Date){if(i.getTime()!==a.getTime())return!1;continue}if(n[s]!==t[s])return!1}return!0}function qe(n,t,o){const l=n.reduce((M,d)=>(M.set(d[o],d),M),new Map),s=[],i=[],a=[],r=new Set,u=2500,g=Math.ceil(t.length/u);for(let M=0;M<g;M++){const d=M*u,y=d+u,N=t.slice(d,y);for(const f of N){const I=f[o],c=l.get(I);!c&&f?s.push(f):c&&!f?i.push(c):c&&f&&(Je(c,f)||a.push(f)),r.add(I),l.delete(I)}}for(const[M,d]of l)r.has(M)||i.push(d);return{added:s,removed:i,modified:a}}function et(){const{voidFn:n,boolFn:t,boolRef:o,numberRef:l,arrayRef:s}={voidFn:I=>{},boolFn:I=>!1,boolRef:e.computed(()=>!1),numberRef:e.computed(()=>0),arrayRef:e.computed(()=>[])},i=e.inject(oe,s),a=e.inject(ne,t),r=e.inject(ie,o),u=e.inject(te,n),g=e.inject(ee,n),M=e.inject(le,n),d=e.inject(se,n),y=e.inject(ae,n),N=e.inject(Z,n),f=e.inject(re,l);return{selected:i,isSelected:a,isAllSelected:r,toggle:u,toggleAll:g,select:M,selectAll:d,unselect:y,unselectAll:N,selectedCount:f}}function tt(n,t){const o=e.ref(!1),l=e.ref(new Set),s=e.ref(new Map);e.watch(n,c=>{s.value=c.reduce((m,w)=>(m.set(w[t],w),m),new Map)},{deep:!0,immediate:!0});const i=e.computed(()=>{let c=[];if(o.value!=null)o.value&&(c=Array.from(s.value.values()));else if(l.value.size){let m;l.value.forEach(w=>{m=s.value.get(w),m&&c.push(m)})}return c}),a=e.computed(()=>{let c=0;return o.value!=null?o.value&&(c=s.value.size):c=l.value.size,c}),r=e.computed(()=>{let c;if(o.value!=null)c=o.value;else{const m=l.value.size,w=s.value.size;c=m==w}return c});function u(){o.value=!0}function g(){o.value=!1}function M(c){N(()=>{c.forEach(m=>{l.value.add(m[t])})})}function d(c){N(()=>{c.forEach(m=>{l.value.delete(m[t])})})}function y(c){return o.value!=null?o.value:l.value.has(c[t])}function N(c){o.value!=null&&(o.value?l.value=new Set(Array.from(s.value.keys())):l.value=new Set),c(),l.value.size==0?o.value=!1:l.value.size==s.value.size?o.value=!0:o.value=null}function f(c){N(()=>{c.forEach(m=>{y(m)?l.value.delete(m[t]):l.value.add(m[t])})})}function I(){const{value:c}=r;c?g():u()}return e.provide(ee,I),e.provide(te,f),e.provide(ne,y),e.provide(oe,i),e.provide(le,M),e.provide(se,u),e.provide(ae,d),e.provide(ie,r),e.provide(Z,g),e.provide(Z,g),e.provide(re,a),{selected:i,select:M,selectAll:u,unselect:d,unselectAll:g,toggle:f,toggleAll:I,isSelected:y,isAllSelected:r,selectedCount:a}}function ce(n){return()=>{console.debug(`\u9ED8\u8BA4${n}\u65B9\u6CD5,\u9700\u8981\u81EA\u5B9A\u4E49\u751F\u6548`)}}function ue({attribute:n,selectWay:t="colum",scrollOptions:o={},getSelectMap:l=()=>({})}){const{select:s=ce("\u9009\u62E9"),unselect:i=ce("\u53D6\u6D88\u9009\u62E9"),unselectAll:a=ce("\u53D6\u6D88\u5168\u9009")}=l();let r={};const u=e.computed(()=>pe(t==="colum"?Xt:Jt,50)),g=new Set,M=e.ref(!0),d=e.ref(),y=e.ref(!1),N=e.ref({x:0,y:0}),f=e.ref({x:0,y:0,scrollTop:0}),I=new ResizeObserver(h=>c.value=h[0].target.getBoundingClientRect()),c=e.ref({}),m=e.ref({top:0,height:0,sync(h=!1){m.value.top=d.value?.scrollTop||0,h&&(m.value.height=d.value?.scrollHeight||0)}}),w=e.computed(()=>y.value?{left:Math.min(N.value.x,f.value.x)-c.value.left,top:Math.min(N.value.y,f.value.y)-c.value.top,width:Math.abs(N.value.x-f.value.x),height:Math.abs(N.value.y-f.value.y)}:{left:0,top:0,width:0,height:0}),{margin:S=50,startSpeed:B=30,maxSpeed:U=30}=o;let v;const z=S,C=B,Y=U,$=h=>h**1;let k=0;function R(h){if(cancelAnimationFrame(v),k=W(h),k=Math.max(Math.min(k,Y),-Y),k!==0){const p=d.value;if(!p||!y.value)return;const _=m.value.height-c.value.height;let j=m.value.top+Number(k);j=Math.min(Math.max(0,j),_),p.scrollTop=j,P(),v=requestAnimationFrame(()=>R(h))}}function W(h){if(d.value){const _=c.value,j=_.bottom-h;if(j<z)return C*$(1-j/z);const b=h-_.top;if(b<z)return-C*$(1-b/z)}return 0}function H(h){const p={...w.value,right:0,bottom:0};return p.left+=c.value.left,p.top+=c.value.top-m.value.top,p.right=p.width+p.left,p.bottom=p.height+p.top,p.left<h.right&&p.right>h.left&&p.top<h.bottom&&p.bottom>h.top}function P(){m.value.sync();const{top:h,height:p}=m.value;f.value.y=Math.min(p+c.value.top,f.value.y+h-f.value.scrollTop),f.value.scrollTop=h}function E(h,p,_="dynamic-styles"){let j=document.getElementById(_);j||(j=document.createElement("style"),j.id=_,document.head.appendChild(j));const b=j.sheet.cssRules,V=b.length,en=`${h} { ${p} }`;for(let fe=0;fe<V;fe++){const xe=b[fe];if(xe.selectorText===h&&xe.style.cssText===p)return}j.sheet.insertRule(en,V)}function T(h,p){M.value=!0,y.value=!0,m.value.height?m.value.sync():m.value.sync(!0),N.value.x=h,N.value.y=p+m.value.top,f.value.x=N.value.x,f.value.y=N.value.y,d.value?.classList.add("disable-scroll-behavior"),g.clear()}function O(h,p,_){!y.value||(M.value&&t==="colum"&&!A()&&(a(),M.value=!1),_?.(),R(p),f.value.x=Math.max(h,c.value.left),f.value.y=Math.min(p+m.value.top,m.value.height+c.value.top),f.value.scrollTop=m.value.top,u.value())}function x(){y.value=!1,d.value?.classList.remove("disable-scroll-behavior")}function L(){!y.value||(k||P(),u.value())}function A(){if(!y.value)return!1;const{width:h,height:p}=w.value;return!(Math.max(h,p)>5)}function Me(){A()&&a()}function Xt(){A()||d.value?.querySelectorAll(`[${n}]`).forEach(h=>{r[`${n}`]=h.getAttribute(`${n}`),H(h.getBoundingClientRect())?s([r]):i([r])})}function Jt(){const h=[];let p=null,_=0;d.value?.querySelectorAll(`[${n}]`).forEach((j,b)=>{const V=j.getAttribute(`${n}`);h.push(V),H(j.getBoundingClientRect())?(p===null&&(p=b),p=Math.min(p,b),_=Math.max(_,b)):(r[`${n}`]=V,g.has(V)&&i([r]))});for(let j=p;j<_+1;j++)r[`${n}`]=h[j],s([r]),g.add(h[j])}function qt(h){return!h?.value||(d.value=h.value,!d?.value)?!1:(I.observe(d.value),E(".disable-scroll-behavior","scroll-behavior: unset !important;"),!0)}return{init:qt,dragStart:T,dragMove:O,dragEnd:x,onScroll:L,isSingleClick:A,cancelSelectAllBySingleClick:Me,selectFn:u,selectRange:w,isPressing:y,containerEl:d,observer:I}}function nt(n){const t=ue(n),{observer:o,selectRange:l}=t,{onScroll:s,dragStart:i,dragMove:a,dragEnd:r,cancelSelectAllBySingleClick:u}=t,g=e.computed(()=>({left:`${l.value.left}px`,top:`${l.value.top}px`,width:`${l.value.width}px`,height:`${l.value.height}px`})),{load:M}=q(`.drag-select-box {
2
2
  position: absolute;
3
3
  z-index: 99999;
4
4
  background-color: rgb(191 219 254);
5
5
  opacity: 0.5;
6
- }`,{id:"styletag_lzc_dragselect",manual:!0}),d=e.defineComponent({render(){return e.h("div",{id:"selectBoxEl",class:"drag-select-box",style:g.value})}});function y(m){m.button===0&&i(m.x,m.y)}function N(m){a(m.x,m.y)}function f(m){m.composedPath().some(S=>S?.getAttribute?.(n.attribute))||u(),c()}function I(m){try{if(!t.init(m))throw"\u521D\u59CB\u5316\u5931\u8D25,Ref\u5143\u7D20\u4E0D\u6B63\u786E";if(!t.containerEl?.value)return!1;e.render(e.h(d),t.containerEl.value),M(),t.containerEl.value?.addEventListener("scroll",s),t.containerEl.value?.addEventListener("mousedown",y),window.addEventListener("mousemove",N),window.addEventListener("mouseup",f)}catch(w){console.error("\u62D6\u9009\u529F\u80FD\u521D\u59CB\u5316\u5931\u8D25",w)}}function r(){o.disconnect(),t.containerEl.value?.removeEventListener("scroll",s),t.containerEl.value?.removeEventListener("mousedown",y),window.removeEventListener("mousemove",N),window.removeEventListener("mouseup",f)}return{init:I,unMount:r}}function ot(n,t,o=600){const l=ue({...n,selectWay:"row",scrollOptions:{startSpeed:5,maxSpeed:5}}),{observer:s}=l,{onScroll:i,dragStart:a,dragMove:c,dragEnd:u}=l;let g;function M(){clearTimeout(g)}function d(r){M(),r.composedPath().some(w=>!!w?.getAttribute?.(n.attribute))&&(g=setTimeout(()=>{const{clientX:w,clientY:S}=r.targetTouches[0];a(w,S),t?.(),c(w,S,()=>r.preventDefault()),r.preventDefault()},o))}function y(r){M();const{clientX:m,clientY:w}=r.targetTouches[0];c(m,w,()=>r.preventDefault())}function N(){M(),u()}function f(r){try{if(!l.init(r))throw"\u521D\u59CB\u5316\u5931\u8D25,Ref\u5143\u7D20\u4E0D\u6B63\u786E";if(!l.containerEl?.value)return!1;l.containerEl.value?.addEventListener("scroll",i),l.containerEl.value?.addEventListener("touchstart",d),l.containerEl.value?.addEventListener("touchmove",y),window.addEventListener("touchcancel",N),window.addEventListener("touchend",N)}catch(m){console.error("\u62D6\u9009\u529F\u80FD\u521D\u59CB\u5316\u5931\u8D25",m)}}function I(){s.disconnect(),l.containerEl.value?.removeEventListener("scroll",i),l.containerEl.value?.removeEventListener("touchstart",d),l.containerEl.value?.removeEventListener("touchmove",y),window.removeEventListener("touchcancel",N),window.removeEventListener("touchEnd",N)}return{init:f,unMount:I}}const ve=Symbol(),lt={key:0,class:"lzc-modal"},st=e.defineComponent({__name:"Dialog",props:{visiable:{type:Boolean,default:!1},closeOnClickOverlay:{type:Boolean,default:!0},dialogClass:{default:""}},emits:["update:visiable"],setup(n,{emit:t}){const o=n,l=()=>{o.closeOnClickOverlay&&t("update:visiable",!1)};return e.provide(ve,()=>t("update:visiable",!1)),(s,i)=>(e.openBlock(),e.createBlock(e.Transition,{name:"modal"},{default:e.withCtx(()=>[n.visiable?e.withDirectives((e.openBlock(),e.createElementBlock("div",lt,[e.createElementVNode("div",{onMousedown:i[0]||(i[0]=e.withModifiers(()=>{},["stop"])),class:e.normalizeClass(["lzc-dialog",n.dialogClass])},[e.renderSlot(s.$slots,"default",{},void 0,!0)],34)])),[[e.unref(ge),()=>l()]]):e.createCommentVNode("",!0)]),_:3}))}}),nn="",Q=(n,t)=>{const o=n.__vccOpts||n;for(const[l,s]of t)o[l]=s;return o},at=Q(st,[["__scopeId","data-v-4ff684af"]]);function it(n){function t(o,l){const s=document.createElement("div"),i={setup(){return()=>e.h(at,{visiable:!0,"onUpdate:visiable":()=>{s?.remove()},...n},{default:()=>e.h(o,l)})}};return document.body.appendChild(s),e.render(e.h(i),s),{close:()=>s?.remove()}}return{create:t}}function Ce({component:n,componentProps:t,delay:o=300}){const s=`lzc-delay-loading-${`${new Date().getTime()}`}`,i=`${o}ms`;return q(`@keyframes lzcDelayLoad {
6
+ }`,{id:"styletag_lzc_dragselect",manual:!0}),d=e.defineComponent({render(){return e.h("div",{id:"selectBoxEl",class:"drag-select-box",style:g.value})}});function y(m){m.button===0&&i(m.x,m.y)}function N(m){a(m.x,m.y)}function f(m){m.composedPath().some(S=>S?.getAttribute?.(n.attribute))||u(),r()}function I(m){try{if(!t.init(m))throw"\u521D\u59CB\u5316\u5931\u8D25,Ref\u5143\u7D20\u4E0D\u6B63\u786E";if(!t.containerEl?.value)return!1;e.render(e.h(d),t.containerEl.value),M(),t.containerEl.value?.addEventListener("scroll",s),t.containerEl.value?.addEventListener("mousedown",y),window.addEventListener("mousemove",N),window.addEventListener("mouseup",f)}catch(w){console.error("\u62D6\u9009\u529F\u80FD\u521D\u59CB\u5316\u5931\u8D25",w)}}function c(){o.disconnect(),t.containerEl.value?.removeEventListener("scroll",s),t.containerEl.value?.removeEventListener("mousedown",y),window.removeEventListener("mousemove",N),window.removeEventListener("mouseup",f)}return{init:I,unMount:c}}function ot(n,t,o=600){const l=ue({...n,selectWay:"row",scrollOptions:{startSpeed:5,maxSpeed:5}}),{observer:s}=l,{onScroll:i,dragStart:a,dragMove:r,dragEnd:u}=l;let g;function M(){clearTimeout(g)}function d(c){M(),c.composedPath().some(w=>!!w?.getAttribute?.(n.attribute))&&(g=setTimeout(()=>{const{clientX:w,clientY:S}=c.targetTouches[0];a(w,S),t?.(),r(w,S,()=>c.preventDefault()),c.preventDefault()},o))}function y(c){M();const{clientX:m,clientY:w}=c.targetTouches[0];r(m,w,()=>c.preventDefault())}function N(){M(),u()}function f(c){try{if(!l.init(c))throw"\u521D\u59CB\u5316\u5931\u8D25,Ref\u5143\u7D20\u4E0D\u6B63\u786E";if(!l.containerEl?.value)return!1;l.containerEl.value?.addEventListener("scroll",i),l.containerEl.value?.addEventListener("touchstart",d),l.containerEl.value?.addEventListener("touchmove",y),window.addEventListener("touchcancel",N),window.addEventListener("touchend",N)}catch(m){console.error("\u62D6\u9009\u529F\u80FD\u521D\u59CB\u5316\u5931\u8D25",m)}}function I(){s.disconnect(),l.containerEl.value?.removeEventListener("scroll",i),l.containerEl.value?.removeEventListener("touchstart",d),l.containerEl.value?.removeEventListener("touchmove",y),window.removeEventListener("touchcancel",N),window.removeEventListener("touchEnd",N)}return{init:f,unMount:I}}const ve=Symbol(),lt={key:0,class:"lzc-modal"},st=e.defineComponent({__name:"Dialog",props:{visiable:{type:Boolean,default:!1},closeOnClickOverlay:{type:Boolean,default:!0},dialogClass:{default:""}},emits:["update:visiable"],setup(n,{emit:t}){const o=n,l=()=>{o.closeOnClickOverlay&&t("update:visiable",!1)};return e.provide(ve,()=>t("update:visiable",!1)),(s,i)=>(e.openBlock(),e.createBlock(e.Transition,{name:"modal"},{default:e.withCtx(()=>[n.visiable?e.withDirectives((e.openBlock(),e.createElementBlock("div",lt,[e.createElementVNode("div",{onMousedown:i[0]||(i[0]=e.withModifiers(()=>{},["stop"])),class:e.normalizeClass(["lzc-dialog",n.dialogClass])},[e.renderSlot(s.$slots,"default",{},void 0,!0)],34)])),[[e.unref(ge),()=>l()]]):e.createCommentVNode("",!0)]),_:3}))}}),nn="",Q=(n,t)=>{const o=n.__vccOpts||n;for(const[l,s]of t)o[l]=s;return o},at=Q(st,[["__scopeId","data-v-4ff684af"]]);function it(n){function t(o,l){const s=document.createElement("div"),i={setup(){return()=>e.h(at,{visiable:!0,"onUpdate:visiable":()=>{s?.remove()},...n},{default:()=>e.h(o,l)})}};return document.body.appendChild(s),e.render(e.h(i),s),{close:()=>s?.remove()}}return{create:t}}function Ce({component:n,componentProps:t,delay:o=300}){const s=`lzc-delay-loading-${`${new Date().getTime()}`}`,i=`${o}ms`;return q(`@keyframes lzcDelayLoad {
7
7
  to {
8
8
  opacity: 1;
9
9
  }
@@ -11,10 +11,10 @@
11
11
  .${s} {
12
12
  opacity: 0;
13
13
  animation: lzcDelayLoad 0s ${i} forwards;
14
- }`),{LoadingComp:e.defineComponent({setup(){const c=$e();return e.onMounted(()=>{c.value.classList.add(s)}),()=>e.h(n,t)}})}}function rt({component:n,componentProps:t,delay:o=300}){const{LoadingComp:l}=Ce({component:n,componentProps:t,delay:o}),s=e.ref(!1);function i(){s.value=!0}function a(){s.value=!1}return{LoadingComp:l,loading:s,load:i,unload:a}}const ct=[(n=>(e.pushScopeId("data-v-d0ad7597"),n=n(),e.popScopeId(),n))(()=>e.createElementVNode("div",{class:"ldio-mm5gwljcryb"},[e.createElementVNode("div")],-1))],ut=e.defineComponent({__name:"DefaultLoading",props:{width:{default:24},height:{default:24}},setup(n){return e.useCssVars(t=>({d8dfa9f0:n.width+"px","2941c2e5":n.height+"px"})),(t,o)=>(e.openBlock(),e.createElementBlock("div",e.normalizeProps(e.guardReactiveProps(t.$attrs)),ct,16))}}),sn="",dt=Q(ut,[["__scopeId","data-v-d0ad7597"]]);async function Mt(n){return new Promise(t=>setTimeout(()=>t(),n))}const ft="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTJweCIgaGVpZ2h0PSIxMnB4IiB2aWV3Qm94PSIwIDAgMTIgMTIiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICAgIDxnIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxnIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0xMTAyLjAwMDAwMCwgLTQwNi4wMDAwMDApIiBmaWxsPSIjOTk5OTk5IiBmaWxsLXJ1bGU9Im5vbnplcm8iPgogICAgICAg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zA3OSw2Ljg0NzkxMzI0IDkuMDQ4NjMzNTYsNy4wMDA1MTQxNCA5LjMyMDIwNjksNy4yNzIxMzc5MyBMMTQuNTg2OTY1NSwxMi41Mzg4OTY2IEMxNC44NTg1ODkzLDEyLjgxMDQ2OTkgMTUuMDExMTkwMiwxMy4xNzg4MzI3IDE1LjAxMTE5MDIsMTMuNTYyOTMxIEMxNS4wMTExOTAyLDEzLjk0NzAyOTQgMTQuODU4NTg5MywxNC4zMTUzOTIyIDE0LjU4Njk2NTUsMTQuNTg2OTY1NSBDMTQuMzE1MzkyMiwxNC44NTg1ODkzIDEzLjk0NzAyOTQsMTUuMDExMTkwMiAxMy41NjI5MzEsMTUuMDExMTkwMiBDMTMuMTc4ODMyNywxNS4wMTExOTAyIDEyLjgxMDQ2OTksMTQuODU4NTg5MyAxMi41Mzg4OTY2LDE0LjU4Njk2NTUgTDcuMjcyMTM3OTMsOS4zMjAyMDY5IEM3LjAwMDUxNDE0LDkuMDQ4NjMzNTYgNi44NDc5MTMyNCw4LjY4MDI3MDc5IDYuODQ3OTEzMjQsOC4yOTYxNzI0MSBDNi44NDc5MTMyNCw3LjkxMjA3NDA0IDcuMDAwNTE0MTQsNy41NDM3MTEyNyA3LjI3MjEzNzkzLDcuMjcyMTM3OTMgWiI+PC9wYXRoPgogICAgICAgICAgICA8L2c+CiAgICAgICAgPC9nPgogICAgICAgIDwvZz4KICAgIDwvZz4KPC9zdmc+",yt=["onClick"],mt=["onClick"],Nt=["src"],Dt=["src"],ht=e.defineComponent({__name:"index",props:{visible:null,message:{default:""},duration:{default:2e3},width:{default:void 0},maxWidth:{default:void 0},showIcon:{type:Boolean,default:!0},icon:{default:void 0},showClose:{type:Boolean,default:!1},closeOnClick:{type:Boolean,default:!1},closeOnClickOverlay:{type:Boolean,default:!1},className:{default:""},overlayContentStyle:{default:void 0},captureEvent:{type:Boolean,default:!1}},emits:["close"],setup(n,{emit:t}){const o=n,l="lzc-loading-toast",s=e.computed(()=>{let u={};return o.captureEvent&&(u.pointerEvents="none"),u}),i=e.computed(()=>{let u={};return o.width&&(u.width=o.width),o.maxWidth&&(u.maxWidth=o.maxWidth),o.overlayContentStyle&&(u={...u,...o.overlayContentStyle}),u});function a(){o.closeOnClickOverlay&&t("close")}function c(){o.closeOnClick&&t("close")}return(u,g)=>(e.openBlock(),e.createBlock(e.Transition,{"enter-active-class":"lzc-animate-fade-in lzc-animate-duration-300","leave-active-class":"lzc-animate-fade-out lzc-animate-duration-300"},{default:e.withCtx(()=>[e.createElementVNode("div",{id:l,style:e.normalizeStyle(e.unref(s))},[e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(`${l} ${n.className}`),onClick:e.withModifiers(a,["stop"])},[e.createElementVNode("div",{class:e.normalizeClass(`${l}-wrap`),onClick:e.withModifiers(c,["stop"])},[e.createElementVNode("div",{class:e.normalizeClass(`${l}-content`),style:e.normalizeStyle(e.unref(i))},[n.showClose?(e.openBlock(),e.createElementBlock("img",{key:0,onClick:g[0]||(g[0]=e.withModifiers(M=>t("close"),["stop"])),src:e.unref(ft),class:e.normalizeClass(`${l}-close`)},null,10,Nt)):e.createCommentVNode("",!0),n.showIcon?(e.openBlock(),e.createElementBlock("img",{key:1,src:n.icon||e.unref(gt),class:e.normalizeClass(`${l}-icon`)},null,10,Dt)):e.createCommentVNode("",!0),n.message?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(`${l}-message`)},e.toDisplayString(n.message),3)):e.createCommentVNode("",!0)],6)],10,mt)],10,yt),[[e.vShow,n.visible]])],4)]),_:1}))}}),an="",rn="",pt=Q(ht,[["__scopeId","data-v-cb2e1a90"]]);class G{loadingToast;el;options;visible=e.ref(!1);animateDuration=300;constructor(t){this.options={...t,visible:this.visible},this.options.duration==null&&(this.options.duration=60*10*1e3),this.el=document.createElement("div"),this.loadingToast=pt}async show(){const t=this.options,l={...t,onClose:function(){G.close(),t?.onClose?.()}},s=e.createVNode(this.loadingToast,l);e.render(s,this.el),document.body.insertBefore(this.el,document.body.firstChild),this.visible.value=!0,t.duration!==0&&setTimeout(()=>{this.destory()},t.duration),await Mt(t.duration+this.animateDuration)}async destory(){!this.visible.value||(this.visible.value=!1,await new Promise(t=>{setTimeout(()=>{if(!this.el){t();return}document.body.removeChild(this.el),t()},this.animateDuration-10)}))}static close(){document.querySelector("#lzc-loading-toast")?.remove()}}function Tt(n,t){const o=!!t?.debug,l=t?.printErrorLog!==!1,s=t?.loading!==!1,i=t?.autoClose!==!1,a=t?.delay!=null?t.delay:200;o&&console.log("useDelayAsync - loading: %s autoClose: %s delay: %s options: %o",s,i,a,t);const c=e.ref(!1);let u=null;const g=new G(t);async function M(){if(o&&console.log(`useDelayAsync - handler - processing: ${c.value}`),!c.value){c.value=!0,u=setTimeout(()=>{o&&console.log("useDelayAsync - handler - setTimeout - loading: %s processing: %s",s,c.value),s&&(!c.value||g.show())},a);try{o&&console.time("useDelayAsync - handler-execute-time"),await n(),o&&console.timeEnd("useDelayAsync - handler-execute-time"),await d(i)}catch(y){o&&console.timeEnd("useDelayAsync - handler-execute-time"),l&&console.error(y),await d(i),await t?.onError?.(y)}}}async function d(y=!0){o&&console.log("useDelayAsync - close - closeLoading: ",y),c.value=!1,u&&clearTimeout(u),u=null,y&&await g.destory()}return e.onBeforeUnmount(()=>{o&&console.log("useDelayAsync - onBeforeUnmount - close"),d()}),{processing:c,handler:M,close:d}}const wt=["onClick"],It=e.defineComponent({__name:"Toast",props:{message:null,position:null,buttonClickEvent:null},setup(n){const t=n,o=e.ref(),l=e.ref(),s=e.ref(),i=e.computed(()=>{switch(t.position){case"top":return 10;case"middle":return 50;case"bottom":return 85}}),a=e.computed(()=>({position:"absolute",borderRadius:"10px",backgroundColor:"rgba(0, 0, 0, 0.8)",padding:"14px 19px",top:`calc(${i.value}% - ${s.value}px)`,left:`calc(50% - ${l.value}px)`})),c=e.computed(()=>({width:"fit-content",display:"flex",justifyContent:"center",alignItems:"center",color:"white",fontSize:"14px"}));function u(){!t.buttonClickEvent||t.buttonClickEvent()}return e.nextTick(()=>{l.value=o.value.offsetWidth/2,s.value=o.value.offsetHeight/2}),(g,M)=>(e.openBlock(),e.createElementBlock("div",{onClick:e.withModifiers(u,["stop"]),id:"toastWrapper",ref_key:"toastWrapper",ref:o,class:"toastWrapper",style:e.normalizeStyle([e.unref(a),{zIndex:9999999}])},[e.createElementVNode("div",{style:e.normalizeStyle(e.unref(c))},[e.createElementVNode("span",null,e.toDisplayString(n.message),1)],4)],12,wt))}}),cn="",Et=Q(It,[["__scopeId","data-v-533e986b"]]),Ae={message:"\u61D2\u732B\u4E91 Yes!!!",position:"middle",duration:1500,buttonClickEvent:()=>{}};class zt{options;container;constructor(t){this.options=t,this.container=document.createElement("div")}present(){const t=e.h(e.h(Et),{...Ae,...this.options});e.render(t,this.container),document.body.insertBefore(this.container,document.body.firstChild);const o=this.options.duration||Ae.duration;setTimeout(()=>{this.dismiss()},o)}dismiss(){if(this.container){const t=this.container.querySelector("#toastWrapper");t.style.opacity="0",t.style.transition="opacity 0.4s ease-in",setTimeout(()=>{this.container&&(e.render(null,this.container),document.body.removeChild(this.container))},500)}}}const jt=["xlink:href","fill","color"],Lt=e.defineComponent({__name:"SvgIcon",props:{name:null,prefix:{default:"icon"},color:{default:"#FFF"},width:null,height:null},setup(n){const t=n,o=e.computed(()=>`#${t.prefix}-${t.name}`),l=e.computed(()=>({width:`${t.width??t.height}px`,height:`${t.height??t.width}px`,aspectRatio:t.width&&t.height?void 0:"1/1"}));function s(i){const{style:a}=i;return typeof a=="object"?a:{}}return(i,a)=>(e.openBlock(),e.createElementBlock("svg",{"aria-hidden":"",style:e.normalizeStyle({...e.unref(l),...s(i.$attrs)})},[e.createElementVNode("use",{"xlink:href":e.unref(o),fill:n.color,color:n.color},null,8,jt)],4))}});function vt(n){const{containerEl:t,sliderEl:o,autoHeight:l,performance:s={},maxHeightRatio:i=.9,observeMethod:a="classList"}=n,c=e.ref(!0),u=he($,100);let g,M="";const d=e.ref(0),y=e.ref(0),N=e.ref(0),f=e.ref({top:0,scrollTop:0,scrollHeight:0,clientHeight:0}),I=e.ref({clientHeight:0}),r=e.computed(()=>!!y.value),m=e.computed(()=>f.value.scrollHeight>f.value.clientHeight),w=e.computed(()=>l?f.value.clientHeight-U.value:f.value.clientHeight-I.value.clientHeight),S=e.computed(()=>f.value.scrollHeight-f.value.clientHeight),B=e.computed(()=>Math.max(f.value.clientHeight/f.value.scrollHeight,.05)),U=e.computed(()=>B.value>i?0:B.value*f.value.clientHeight),v=e.computed(()=>({willChange:"transform",transform:`translate3d(0,${N.value}px,0)`,height:l?`${U.value}px`:void 0}));function z(L){Y(),y.value=L.clientY-o.value.getBoundingClientRect().top||1,M=getComputedStyle(t.value).scrollBehavior,M==="smooth"&&(t.value.style.scrollBehavior="unset")}function C(){t.value.style.scrollBehavior=M,y.value=0,u()}function Y(){c.value=!1}function $(){r.value||(c.value=!0)}function k(L){if(!r.value)return;let A=L.clientY-f.value.top-y.value;A<0?N.value=0:A>=w.value?N.value=w.value:N.value=A,t.value.scrollTo({top:N.value/w.value*S.value})}function R(){r.value||W()}function W(){cancelAnimationFrame(g),g=requestAnimationFrame(H)}function H(){t.value&&(d.value=s.scrollTop?.value??t.value.scrollTop,N.value=d.value/S.value*w.value)}function P(L){let A="addEventListener";L==="add"?A="addEventListener":A="removeEventListener",o.value?.[A]("pointerdown",z,{passive:!0}),window[A]("pointermove",k,{passive:!0}),window[A]("pointerup",C,{passive:!0})}const E=new MutationObserver(L=>{(a=="classList"||L.map(Me=>Me.oldValue).join().includes("height"))&&T()});function T(){f.value.top=t.value?.getBoundingClientRect().top??0,f.value.scrollHeight=t.value?.scrollHeight??0,f.value.clientHeight=t.value?.clientHeight??0}function O(){Y(),setTimeout(()=>{I.value.clientHeight=o.value?.clientHeight??0,$()},150)}function x(){if(t.value&&o.value){t.value.classList.add("hide-scrollbar"),t.value.addEventListener("scroll",R,{passive:!0}),P("add");const L={};a==="classList"?Object.assign(L,{subtree:!0,childList:!0}):Object.assign(L,{subtree:!0,attributeOldValue:!0,attributeFilter:["style"]}),E.observe(t.value,L),setTimeout(()=>{T()},100),O()}else console.error("useScrollBar:","\u521D\u59CB\u5316\u5931\u8D25!",{containerEl:t,sliderEl:o})}return e.watch(d,()=>{Y(),u()}),{isScrollEnd:c,isDragSlider:r,offsetTop:N,scrollTop:d,scrollable:m,sliderPos:v,init:x,modifySliderEventListener:P}}const Ct=(n=>(e.pushScopeId("data-v-efefe52c"),n=n(),e.popScopeId(),n))(()=>e.createElementVNode("div",{class:"default-slider"},null,-1)),At=e.defineComponent({__name:"ScrollBar",props:{containerEl:null,autoHide:{type:Boolean},autoHeight:{type:Boolean},observeMethod:null,performance:null},setup(n,{expose:t}){const o=n,l=!!e.useSlots().default,s=e.ref(null),i=e.computed(()=>o.containerEl),a=vt({containerEl:i,sliderEl:s,autoHeight:l?o.autoHeight:!0,performance:o.performance,observeMethod:o.observeMethod}),{scrollable:c,isScrollEnd:u,sliderPos:g}=a,M=e.ref(!1),d=o.autoHide?e.computed(()=>M.value||!u.value):e.computed(()=>c.value),{load:y}=q(`.hide-scrollbar {
14
+ }`),{LoadingComp:e.defineComponent({setup(){const r=$e();return e.onMounted(()=>{r.value.classList.add(s)}),()=>e.h(n,t)}})}}function rt({component:n,componentProps:t,delay:o=300}){const{LoadingComp:l}=Ce({component:n,componentProps:t,delay:o}),s=e.ref(!1);function i(){s.value=!0}function a(){s.value=!1}return{LoadingComp:l,loading:s,load:i,unload:a}}const ct=[(n=>(e.pushScopeId("data-v-d0ad7597"),n=n(),e.popScopeId(),n))(()=>e.createElementVNode("div",{class:"ldio-mm5gwljcryb"},[e.createElementVNode("div")],-1))],ut=e.defineComponent({__name:"DefaultLoading",props:{width:{default:24},height:{default:24}},setup(n){return e.useCssVars(t=>({d8dfa9f0:n.width+"px","2941c2e5":n.height+"px"})),(t,o)=>(e.openBlock(),e.createElementBlock("div",e.normalizeProps(e.guardReactiveProps(t.$attrs)),ct,16))}}),sn="",dt=Q(ut,[["__scop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IDcuMDAwNTE0MTQsNy41NDM3MTEyNyA3LjI3MjEzNzkzLDcuMjcyMTM3OTMgWiI+PC9wYXRoPgogICAgICAgICAgICA8L2c+CiAgICAgICAgPC9nPgogICAgICAgIDwvZz4KICAgIDwvZz4KPC9zdmc+",yt=["onClick"],mt=["onClick"],Nt=["src"],Dt=["src"],ht=e.defineComponent({__name:"index",props:{visible:null,message:{default:""},duration:{default:2e3},width:{default:void 0},maxWidth:{default:void 0},showIcon:{type:Boolean,default:!0},icon:{default:void 0},showClose:{type:Boolean,default:!1},closeOnClick:{type:Boolean,default:!1},closeOnClickOverlay:{type:Boolean,default:!1},className:{default:""},overlayContentStyle:{default:void 0},captureEvent:{type:Boolean,default:!1}},emits:["close"],setup(n,{emit:t}){const o=n,l="lzc-loading-toast",s=e.computed(()=>{let u={};return o.captureEvent&&(u.pointerEvents="none"),u}),i=e.computed(()=>{let u={};return o.width&&(u.width=o.width),o.maxWidth&&(u.maxWidth=o.maxWidth),o.overlayContentStyle&&(u={...u,...o.overlayContentStyle}),u});function a(){o.closeOnClickOverlay&&t("close")}function r(){o.closeOnClick&&t("close")}return(u,g)=>(e.openBlock(),e.createBlock(e.Transition,{"enter-active-class":"lzc-animate-fade-in lzc-animate-duration-300","leave-active-class":"lzc-animate-fade-out lzc-animate-duration-300"},{default:e.withCtx(()=>[e.createElementVNode("div",{id:l,style:e.normalizeStyle(e.unref(s))},[e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(`${l} ${n.className}`),onClick:e.withModifiers(a,["stop"])},[e.createElementVNode("div",{class:e.normalizeClass(`${l}-wrap`),onClick:e.withModifiers(r,["stop"])},[e.createElementVNode("div",{class:e.normalizeClass(`${l}-content`),style:e.normalizeStyle(e.unref(i))},[n.showClose?(e.openBlock(),e.createElementBlock("img",{key:0,onClick:g[0]||(g[0]=e.withModifiers(M=>t("close"),["stop"])),src:e.unref(ft),class:e.normalizeClass(`${l}-close`)},null,10,Nt)):e.createCommentVNode("",!0),n.showIcon?(e.openBlock(),e.createElementBlock("img",{key:1,src:n.icon||e.unref(gt),class:e.normalizeClass(`${l}-icon`)},null,10,Dt)):e.createCommentVNode("",!0),n.message?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(`${l}-message`)},e.toDisplayString(n.message),3)):e.createCommentVNode("",!0)],6)],10,mt)],10,yt),[[e.vShow,n.visible]])],4)]),_:1}))}}),an="",rn="",pt=Q(ht,[["__scopeId","data-v-cb2e1a90"]]);class G{loadingToast;el;options;visible=e.ref(!1);animateDuration=300;constructor(t){this.options={...t,visible:this.visible},this.options.duration==null&&(this.options.duration=60*10*1e3),this.el=document.createElement("div"),this.loadingToast=pt}async show(){const t=this.options,l={...t,onClose:function(){G.close(),t?.onClose?.()}},s=e.createVNode(this.loadingToast,l);e.render(s,this.el),document.body.insertBefore(this.el,document.body.firstChild),this.visible.value=!0,t.duration!==0&&setTimeout(()=>{this.destory()},t.duration),await Mt(t.duration+this.animateDuration)}async destory(){!this.visible.value||(this.visible.value=!1,await new Promise(t=>{setTimeout(()=>{if(!this.el){t();return}document.body.removeChild(this.el),t()},this.animateDuration-10)}))}static close(){document.querySelector("#lzc-loading-toast")?.remove()}}function Tt(n,t){const o=!!t?.debug,l=t?.printErrorLog!==!1,s=t?.loading!==!1,i=t?.autoClose!==!1,a=t?.delay!=null?t.delay:200;o&&console.log("useDelayAsync - loading: %s autoClose: %s delay: %s options: %o",s,i,a,t);const r=e.ref(!1);let u=null;const g=new G(t);async function M(){if(o&&console.log(`useDelayAsync - handler - processing: ${r.value}`),!r.value){r.value=!0,u=setTimeout(()=>{o&&console.log("useDelayAsync - handler - setTimeout - loading: %s processing: %s",s,r.value),s&&(!r.value||g.show())},a);try{o&&console.time("useDelayAsync - handler-execute-time"),await n(),o&&console.timeEnd("useDelayAsync - handler-execute-time"),await d(i)}catch(y){o&&console.timeEnd("useDelayAsync - handler-execute-time"),l&&console.error(y),await d(i),await t?.onError?.(y)}}}async function d(y=!0){o&&console.log("useDelayAsync - close - closeLoading: ",y),r.value=!1,u&&clearTimeout(u),u=null,y&&await g.destory()}return e.onBeforeUnmount(()=>{o&&console.log("useDelayAsync - onBeforeUnmount - close"),d()}),{processing:r,handler:M,close:d}}const wt=["onClick"],It=e.defineComponent({__name:"Toast",props:{message:null,position:null,buttonClickEvent:null},setup(n){const t=n,o=e.ref(),l=e.ref(),s=e.ref(),i=e.computed(()=>{switch(t.position){case"top":return 10;case"middle":return 50;case"bottom":return 85}}),a=e.computed(()=>({position:"absolute",borderRadius:"10px",backgroundColor:"rgba(0, 0, 0, 0.8)",padding:"14px 19px",top:`calc(${i.value}% - ${s.value}px)`,left:`calc(50% - ${l.value}px)`})),r=e.computed(()=>({width:"fit-content",display:"flex",justifyContent:"center",alignItems:"center",color:"white",fontSize:"14px"}));function u(){!t.buttonClickEvent||t.buttonClickEvent()}return e.nextTick(()=>{l.value=o.value.offsetWidth/2,s.value=o.value.offsetHeight/2}),(g,M)=>(e.openBlock(),e.createElementBlock("div",{onClick:e.withModifiers(u,["stop"]),id:"toastWrapper",ref_key:"toastWrapper",ref:o,class:"toastWrapper",style:e.normalizeStyle([e.unref(a),{zIndex:9999999}])},[e.createElementVNode("div",{style:e.normalizeStyle(e.unref(r))},[e.createElementVNode("span",null,e.toDisplayString(n.message),1)],4)],12,wt))}}),cn="",Et=Q(It,[["__scopeId","data-v-533e986b"]]),Ae={message:"\u61D2\u732B\u4E91 Yes!!!",position:"middle",duration:1500,buttonClickEvent:()=>{}};class zt{options;container;constructor(t){this.options=t,this.container=document.createElement("div")}present(){const t=e.h(e.h(Et),{...Ae,...this.options});e.render(t,this.container),document.body.insertBefore(this.container,document.body.firstChild);const o=this.options.duration||Ae.duration;setTimeout(()=>{this.dismiss()},o)}dismiss(){if(this.container){const t=this.container.querySelector("#toastWrapper");t.style.opacity="0",t.style.transition="opacity 0.4s ease-in",setTimeout(()=>{this.container&&(e.render(null,this.container),document.body.removeChild(this.container))},500)}}}const jt=["xlink:href","fill","color"],Lt=e.defineComponent({__name:"SvgIcon",props:{name:null,prefix:{default:"icon"},color:{default:"#FFF"},width:null,height:null},setup(n){const t=n,o=e.computed(()=>`#${t.prefix}-${t.name}`),l=e.computed(()=>({width:`${t.width??t.height}px`,height:`${t.height??t.width}px`,aspectRatio:t.width&&t.height?void 0:"1/1"}));function s(i){const{style:a}=i;return typeof a=="object"?a:{}}return(i,a)=>(e.openBlock(),e.createElementBlock("svg",{"aria-hidden":"",style:e.normalizeStyle({...e.unref(l),...s(i.$attrs)})},[e.createElementVNode("use",{"xlink:href":e.unref(o),fill:n.color,color:n.color},null,8,jt)],4))}});function vt(n){const{containerEl:t,sliderEl:o,autoHeight:l,performance:s={},maxHeightRatio:i=.9,observeMethod:a="classList"}=n,r=e.ref(!0),u=he($,100);let g,M="";const d=e.ref(0),y=e.ref(0),N=e.ref(0),f=e.ref({top:0,scrollTop:0,scrollHeight:0,clientHeight:0}),I=e.ref({clientHeight:0}),c=e.computed(()=>!!y.value),m=e.computed(()=>f.value.scrollHeight>f.value.clientHeight),w=e.computed(()=>l?f.value.clientHeight-U.value:f.value.clientHeight-I.value.clientHeight),S=e.computed(()=>f.value.scrollHeight-f.value.clientHeight),B=e.computed(()=>Math.max(f.value.clientHeight/f.value.scrollHeight,.05)),U=e.computed(()=>B.value>i?0:B.value*f.value.clientHeight),v=e.computed(()=>({willChange:"transform",transform:`translate3d(0,${N.value}px,0)`,height:l?`${U.value}px`:void 0}));function z(L){Y(),y.value=L.clientY-o.value.getBoundingClientRect().top||1,M=getComputedStyle(t.value).scrollBehavior,M==="smooth"&&(t.value.style.scrollBehavior="unset")}function C(){t.value.style.scrollBehavior=M,y.value=0,u()}function Y(){r.value=!1}function $(){c.value||(r.value=!0)}function k(L){if(!c.value)return;let A=L.clientY-f.value.top-y.value;A<0?N.value=0:A>=w.value?N.value=w.value:N.value=A,t.value.scrollTo({top:N.value/w.value*S.value})}function R(){c.value||W()}function W(){cancelAnimationFrame(g),g=requestAnimationFrame(H)}function H(){t.value&&(d.value=s.scrollTop?.value??t.value.scrollTop,N.value=d.value/S.value*w.value)}function P(L){let A="addEventListener";L==="add"?A="addEventListener":A="removeEventListener",o.value?.[A]("pointerdown",z,{passive:!0}),window[A]("pointermove",k,{passive:!0}),window[A]("pointerup",C,{passive:!0})}const E=new MutationObserver(L=>{(a=="classList"||L.map(Me=>Me.oldValue).join().includes("height"))&&T()});function T(){f.value.top=t.value?.getBoundingClientRect().top??0,f.value.scrollHeight=t.value?.scrollHeight??0,f.value.clientHeight=t.value?.clientHeight??0}function O(){Y(),setTimeout(()=>{I.value.clientHeight=o.value?.clientHeight??0,$()},150)}function x(){if(t.value&&o.value){t.value.classList.add("hide-scrollbar"),t.value.addEventListener("scroll",R,{passive:!0}),P("add");const L={};a==="classList"?Object.assign(L,{subtree:!0,childList:!0}):Object.assign(L,{subtree:!0,attributeOldValue:!0,attributeFilter:["style"]}),E.observe(t.value,L),setTimeout(()=>{T()},100),O()}else console.error("useScrollBar:","\u521D\u59CB\u5316\u5931\u8D25!",{containerEl:t,sliderEl:o})}return e.watch(d,()=>{Y(),u()}),{isScrollEnd:r,isDragSlider:c,offsetTop:N,scrollTop:d,scrollable:m,sliderPos:v,init:x,modifySliderEventListener:P}}const Ct=(n=>(e.pushScopeId("data-v-efefe52c"),n=n(),e.popScopeId(),n))(()=>e.createElementVNode("div",{class:"default-slider"},null,-1)),At=e.defineComponent({__name:"ScrollBar",props:{containerEl:null,autoHide:{type:Boolean},autoHeight:{type:Boolean},observeMethod:null,performance:null},setup(n,{expose:t}){const o=n,l=!!e.useSlots().default,s=e.ref(null),i=e.computed(()=>o.containerEl),a=vt({containerEl:i,sliderEl:s,autoHeight:l?o.autoHeight:!0,performance:o.performance,observeMethod:o.observeMethod}),{scrollable:r,isScrollEnd:u,sliderPos:g}=a,M=e.ref(!1),d=o.autoHide?e.computed(()=>M.value||!u.value):e.computed(()=>r.value),{load:y}=q(`.hide-scrollbar {
15
15
  scrollbar-width: none;
16
16
  -ms-overflow-style: none;
17
17
  }
18
18
  .hide-scrollbar::-webkit-scrollbar {
19
19
  display: none;
20
- }`,{id:"styletag_lzc_scrollbar",manual:!0});e.onMounted(()=>{y(),e.nextTick(()=>{a.init()})}),e.onUnmounted(()=>{a.modifySliderEventListener("remove")});function N(){M.value=!0}function f(){M.value=!1}return t({uScrollBarReturn:a}),(I,r)=>(e.openBlock(),e.createBlock(e.Transition,null,{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{ref_key:"sliderRef",ref:s,class:"slider-wrapper",onMouseenter:N,onMouseleave:f,style:e.normalizeStyle(e.unref(g))},[e.renderSlot(I.$slots,"default",{},()=>[Ct],!0)],36),[[e.vShow,e.unref(d)]])]),_:3}))}}),dn="",Ot=Q(At,[["__scopeId","data-v-efefe52c"]]),xt=n=>(e.pushScopeId("data-v-18377f18"),n=n(),e.popScopeId(),n),St={class:"pull-refresh"},_t={key:0,class:"pull-arrow-circle"},kt={key:0,class:"box-load"},bt={class:"left-load"},Qt={class:"right-load"},Bt=xt(()=>e.createElementVNode("div",{class:"among-load"},null,-1)),Ut={class:"pull-arrow"},Yt={key:1},$t=e.defineComponent({__name:"PullRefresh",props:{refresh:null,refreshOff:{type:Boolean,default:!1},scrollTop:null,pullRefreshContainer:null},setup(n){const t=n,o=.7,l="#2EC1CC",s=e.ref(-999),i=e.ref(1),a=e.ref(0),c=e.ref(.3),u=e.ref(!1),g=e.ref(0),M=e.ref(0),d=e.ref(0),y=e.ref(0),N=e.ref(0),f=e.ref(),I=e.computed(()=>t.scrollTop),r=e.computed(()=>({transition:`${y.value}ms`,transform:`translate3d(0,${s.value}px, 0) scale(${i.value})`})),m=e.computed(()=>({borderColor:l,transition:y.value,transform:`rotate(${100+a.value}deg)`,opacity:c.value}));e.watch(N,z=>{z===0&&(s.value=-50,c.value=.3)}),e.watch(M,z=>{if(N.value===2)return;const C=Math.pow(z,o);C===0&&(s.value=-50),C<=50&&C>0&&(s.value=C-45,a.value=Math.pow(C,1.5),C>15?u.value=!0:u.value=!1),C>50&&(s.value=5,c.value=1,N.value)});const w=e.ref(0),S=z=>{w.value=z.touches[0].pageY},B=z=>{const C=z.touches[0].pageY-w.value;w.value=z.touches[0].pageY,!t.refreshOff&&(!t?.refresh||N.value!==2&&I.value===0&&(g.value===0&&(g.value=z.touches[0].pageY),d.value=0,v.value.style.transition=`${d.value}ms`,y.value=0,M.value=z.touches[0].pageY-g.value,v.value.style.transform=`translate3d(0, ${Math.pow(M.value,o)}px, 0)`,C>0&&z.preventDefault()))},U=()=>{if(t.refreshOff||!t?.refresh||N.value===2)return;g.value=0,d.value=300;const z=Math.pow(M.value,o);v.value.style.transition=`${d.value}ms`,z>50?(N.value=2,M.value=Math.pow(50,1/o),v.value.style.transform=`translate3d(0, ${Math.pow(M.value,o)}px, 0)`,y.value=300,t?.refresh&&t?.refresh().then(()=>{f.value="\u5237\u65B0\u6210\u529F"}).catch(()=>{f.value="\u5237\u65B0\u5931\u8D25"}).finally(()=>{setTimeout(()=>{N.value=0,M.value=0,v.value.style.transform=`translate3d(0, ${Math.pow(M.value,o)}px, 0)`,setTimeout(()=>{f.value=void 0},y.value)},600)})):(M.value=0,v.value.style.transform=`translate3d(0, ${Math.pow(M.value,o)}px, 0)`)},v=e.ref(null);return e.onMounted(()=>{t?.refreshOff||(v.value=document.querySelector(t.pullRefreshContainer),v.value?.addEventListener("touchstart",S),v.value?.addEventListener("touchmove",B),v.value?.addEventListener("touchend",U))}),(z,C)=>(e.openBlock(),e.createElementBlock("div",St,[e.createElementVNode("div",{class:"pull-refresh-box",style:e.normalizeStyle(e.unref(r))},[f.value?(e.openBlock(),e.createElementBlock("div",Yt,e.toDisplayString(f.value),1)):(e.openBlock(),e.createElementBlock("div",_t,[N.value==2?(e.openBlock(),e.createElementBlock("div",kt,[e.createElementVNode("div",bt,[e.createElementVNode("div",{class:"left-circle",style:e.normalizeStyle({backgroundColor:l})},null,4)]),e.createElementVNode("div",Qt,[e.createElementVNode("div",{class:"right-circle",style:e.normalizeStyle({backgroundColor:l})},null,4)]),Bt])):(e.openBlock(),e.createElementBlock("div",{key:1,class:"pull-circle-line",style:e.normalizeStyle(e.unref(m))},[e.createElementVNode("div",Ut,[e.createElementVNode("div",{class:e.normalizeClass(["arrows",{opacity:u.value}]),style:e.normalizeStyle({borderBottomColor:l})},null,6)])],4))]))],4)]))}}),Mn="",Oe=Q($t,[["__scopeId","data-v-18377f18"]]),Pt={inheritAttrs:!1},Rt=e.defineComponent({...Pt,__name:"VirtualList",props:{data:null,itemHeight:null,overscan:{default:10},refresh:null,refreshOff:{type:Boolean,default:!1}},emits:["scrollEnd"],setup(n,{expose:t,emit:o}){const l=n,s=Le(e.toRef(l,"data"),{itemHeight:y=>l.itemHeight(l.data[y]),overscan:l.overscan,scrollEndHook:()=>{o("scrollEnd")}}),{list:i,containerProps:a,wrapperProps:c,innerProps:u,getItemHeightData:g,scrollTop:M}=s;t({vListReturn:s});const d="virtualListWrapper"+new Date().getTime();return(y,N)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(Oe,{refresh:n.refresh,refreshOff:n.refreshOff,scrollTop:e.unref(M),pullRefreshContainer:"#"+d},null,8,["refresh","refreshOff","scrollTop","pullRefreshContainer"]),e.createElementVNode("div",{class:"virtualListWrapper",id:d},[e.createElementVNode("div",e.mergeProps({onScrollPassive:N[0]||(N[0]=(...f)=>e.unref(a).onScroll&&e.unref(a).onScroll(...f)),ref:e.unref(a).ref,class:"virtualList"},y.$attrs),[e.createElementVNode("div",e.normalizeProps(e.guardReactiveProps(e.unref(c))),[e.createElementVNode("div",e.normalizeProps(e.guardReactiveProps(e.unref(u))),[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(i),({index:f,data:I})=>(e.openBlock(),e.createElementBlock("div",{key:f,style:e.normalizeStyle({height:`${e.unref(g)(f).height}px`,display:"flex"})},[e.renderSlot(y.$slots,"default",{data:I,index:f},void 0,!0)],4))),128))],16)],16)],16)])],64))}}),fn="",Ht=Q(Rt,[["__scopeId","data-v-e0fb787f"]]),de=n=>(e.pushScopeId("data-v-c986249d"),n=n(),e.popScopeId(),n),Vt={style:{position:"absolute"}},Ft=de(()=>e.createElementVNode("div",{class:"wrapper"},null,-1)),Wt=["width","height"],Kt=[de(()=>e.createElementVNode("title",null,"logo",-1)),de(()=>e.createElementVNode("g",{id:"group-1",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[e.createElementVNode("path",{d:"M260,0 L260,260 L0,260 L0,0 L260,0 Z M173.523673,59.478426 L168.543315,62.4752911 C160.9116,67.0675753 153.089651,71.6349169 145.95806,75.5800674 C142.130471,77.697465 141.695584,77.8197038 137.842227,77.8197038 L123.620155,77.8194132 C120.16747,77.8127705 119.807362,77.673506 116.200006,75.5626777 L115.86045,75.3641139 C113.295911,73.8653877 110.281688,72.1255413 103.60737,68.2932221 C100.032855,66.2486474 96.3694634,64.1645054 92.8123362,62.1486494 L88.1098826,59.4837265 L86.4238232,64.6191026 C83.7525911,72.7551036 81.4062856,80.7653112 79.9222326,87.4417622 C78.9474243,91.8460343 78.2380884,93.2327734 74.2195073,98.9752733 C73.3694777,100.207223 72.630007,101.343155 72.0710109,102.283257 C67.5201215,110.313953 65.2975905,119.339776 65.6004928,128.457001 C66.1750084,143.318086 73.5375842,157.955758 85.6992798,168.473706 C96.9509724,178.204645 111.5737,183.826593 127.858154,184.209647 L130.088901,184.229303 C130.3376,186.684365 130.531293,189.982467 130.67329,193.770543 L130.951876,201.202421 L137.351863,197.414204 C154.766094,187.106546 169.345402,176.172255 180.160428,163.526119 C190.679421,151.226139 196.179795,138.745301 195.345608,125.762609 C194.727393,116.39373 192.289395,107.848059 187.082918,99.046007 C186.275378,97.7498121 185.738167,97.0056347 184.495395,95.37077 C181.975467,92.0558065 181.159964,90.5424149 180.493634,87.4039653 C178.713605,78.9218624 176.863265,71.4211865 175.088993,65.0761883 L173.523673,59.478426 Z M93.177,72.537 L93.8226224,72.9040486 C95.6240552,73.9292933 97.4266638,74.9575498 99.2051531,75.9748184 C106.15023,79.9626119 109.111289,81.6727026 111.728598,83.2042091 C116.752992,86.1442112 118.538634,86.6733184 123.964152,86.6733184 L137.842227,86.6733184 C143.264867,86.6733184 145.156143,86.1417146 150.243765,83.3272749 L153.915953,81.276117 C157.635687,79.179445 161.486156,76.9543599 165.360239,74.6740288 L168.062636,73.0710869 L168.527808,74.8705095 C169.630114,79.2468106 170.742831,84.0476913 171.830914,89.2325336 C172.820403,93.8931438 174.207097,96.4665356 177.447051,100.728693 C178.530829,102.154402 178.952253,102.738183 179.517404,103.643654 C183.925243,111.098001 185.980436,118.301862 186.51071,126.337939 C187.173867,136.658947 182.587388,147.066077 173.431821,157.771787 L171.503004,159.959402 C163.609627,168.649028 153.591728,176.617571 141.90907,184.187495 L139.123121,185.960576 L139.113767,185.819152 C139.047016,184.932364 138.975009,184.102769 138.897435,183.336992 C138.769034,182.069465 138.589718,180.629122 138.367155,179.053334 L137.795381,175.005053 L133.714496,175.253822 C132.500079,175.327852 131.274186,175.368647 130.037423,175.375838 C114.999567,175.463276 101.629066,170.545082 91.4908024,161.777083 C81.1421175,152.827103 74.9249947,140.466728 74.4483613,128.138982 C74.2004611,120.675327 76.0261036,113.26129 79.7275986,106.727863 C80.126032,106.059698 80.7615655,105.083428 81.4902403,104.02721 C86.0997527,97.4404488 87.2937074,95.1062887 88.5657754,89.358959 C89.6596645,84.4377825 91.2792852,78.6447463 93.1627518,72.6043699 L93.177,72.537 Z",id:"path-1",fill:"#FFF"})],-1))],Zt=e.defineComponent({__name:"Loading",props:{width:{default:"90"},height:{default:"90"},duration:{default:1300}},setup(n){const t=n;e.useCssVars(l=>({"5e400569":o}));const o=`${t.duration}ms`;return(l,s)=>(e.openBlock(),e.createElementBlock("div",Vt,[Ft,(e.openBlock(),e.createElementBlock("svg",{style:{position:"relative"},width:n.width,height:n.height,viewBox:"0 0 260 260",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},Kt,8,Wt))]))}}),mn="",Gt=Q(Zt,[["__scopeId","data-v-c986249d"]]);D.DefaultLoading=dt,D.Loading=Gt,D.LoadingToast=G,D.PullRefresh=Oe,D.ScrollBar=Ot,D.SvgIcon=Lt,D.ToastCreator=zt,D.VirtualList=Ht,D.allSelectedKey=oe,D.closeDialogKey=ve,D.dialogController=it,D.diff=qe,D.isAllSelectedKey=ie,D.isSelectedKey=ne,D.selectAllKey=se,D.selectKey=le,D.selectedCountKey=re,D.toggleAllKey=ee,D.toggleKey=te,D.unselectAllKey=Z,D.unselectKey=ae,D.useDelayAsync=Tt,D.useDelayLoad=rt,D.useDelayLoadComp=Ce,D.useDragSelect=ue,D.useDragSelectByMobile=ot,D.useDragSelectByPc=nt,D.useSelectable=tt,D.useSelectableInjectors=et,D.useVirtualList=Le,D.vDebounceClick=Se,D.vSingleClick=ge,Object.defineProperties(D,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
20
+ }`,{id:"styletag_lzc_scrollbar",manual:!0});e.onMounted(()=>{y(),e.nextTick(()=>{a.init()})}),e.onUnmounted(()=>{a.modifySliderEventListener("remove")});function N(){M.value=!0}function f(){M.value=!1}return t({uScrollBarReturn:a}),(I,c)=>(e.openBlock(),e.createBlock(e.Transition,null,{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{ref_key:"sliderRef",ref:s,class:"slider-wrapper",onMouseenter:N,onMouseleave:f,style:e.normalizeStyle(e.unref(g))},[e.renderSlot(I.$slots,"default",{},()=>[Ct],!0)],36),[[e.vShow,e.unref(d)]])]),_:3}))}}),dn="",Ot=Q(At,[["__scopeId","data-v-efefe52c"]]),xt=n=>(e.pushScopeId("data-v-18377f18"),n=n(),e.popScopeId(),n),St={class:"pull-refresh"},_t={key:0,class:"pull-arrow-circle"},kt={key:0,class:"box-load"},bt={class:"left-load"},Qt={class:"right-load"},Bt=xt(()=>e.createElementVNode("div",{class:"among-load"},null,-1)),Ut={class:"pull-arrow"},Yt={key:1},$t=e.defineComponent({__name:"PullRefresh",props:{refresh:null,refreshOff:{type:Boolean,default:!1},scrollTop:null,pullRefreshContainer:null},setup(n){const t=n,o=.7,l="#2EC1CC",s=e.ref(-999),i=e.ref(1),a=e.ref(0),r=e.ref(.3),u=e.ref(!1),g=e.ref(0),M=e.ref(0),d=e.ref(0),y=e.ref(0),N=e.ref(0),f=e.ref(),I=e.computed(()=>t.scrollTop),c=e.computed(()=>({transition:`${y.value}ms`,transform:`translate3d(0,${s.value}px, 0) scale(${i.value})`})),m=e.computed(()=>({borderColor:l,transition:y.value,transform:`rotate(${100+a.value}deg)`,opacity:r.value}));e.watch(N,z=>{z===0&&(s.value=-50,r.value=.3)}),e.watch(M,z=>{if(N.value===2)return;const C=Math.pow(z,o);C===0&&(s.value=-50),C<=50&&C>0&&(s.value=C-45,a.value=Math.pow(C,1.5),C>15?u.value=!0:u.value=!1),C>50&&(s.value=5,r.value=1,N.value)});const w=e.ref(0),S=z=>{w.value=z.touches[0].pageY},B=z=>{const C=z.touches[0].pageY-w.value;w.value=z.touches[0].pageY,!t.refreshOff&&(!t?.refresh||N.value!==2&&I.value===0&&(g.value===0&&(g.value=z.touches[0].pageY),d.value=0,v.value.style.transition=`${d.value}ms`,y.value=0,M.value=z.touches[0].pageY-g.value,v.value.style.transform=`translate3d(0, ${Math.pow(M.value,o)}px, 0)`,C>0&&z.preventDefault()))},U=()=>{if(t.refreshOff||!t?.refresh||N.value===2)return;g.value=0,d.value=300;const z=Math.pow(M.value,o);v.value.style.transition=`${d.value}ms`,z>50?(N.value=2,M.value=Math.pow(50,1/o),v.value.style.transform=`translate3d(0, ${Math.pow(M.value,o)}px, 0)`,y.value=300,t?.refresh&&t?.refresh().then(()=>{f.value="\u5237\u65B0\u6210\u529F"}).catch(()=>{f.value="\u5237\u65B0\u5931\u8D25"}).finally(()=>{setTimeout(()=>{N.value=0,M.value=0,v.value.style.transform=`translate3d(0, ${Math.pow(M.value,o)}px, 0)`,setTimeout(()=>{f.value=void 0},y.value)},600)})):(M.value=0,v.value.style.transform=`translate3d(0, ${Math.pow(M.value,o)}px, 0)`)},v=e.ref(null);return e.onMounted(()=>{t?.refreshOff||(v.value=document.querySelector(t.pullRefreshContainer),v.value?.addEventListener("touchstart",S),v.value?.addEventListener("touchmove",B),v.value?.addEventListener("touchend",U))}),(z,C)=>(e.openBlock(),e.createElementBlock("div",St,[e.createElementVNode("div",{class:"pull-refresh-box",style:e.normalizeStyle(e.unref(c))},[f.value?(e.openBlock(),e.createElementBlock("div",Yt,e.toDisplayString(f.value),1)):(e.openBlock(),e.createElementBlock("div",_t,[N.value==2?(e.openBlock(),e.createElementBlock("div",kt,[e.createElementVNode("div",bt,[e.createElementVNode("div",{class:"left-circle",style:e.normalizeStyle({backgroundColor:l})},null,4)]),e.createElementVNode("div",Qt,[e.createElementVNode("div",{class:"right-circle",style:e.normalizeStyle({backgroundColor:l})},null,4)]),Bt])):(e.openBlock(),e.createElementBlock("div",{key:1,class:"pull-circle-line",style:e.normalizeStyle(e.unref(m))},[e.createElementVNode("div",Ut,[e.createElementVNode("div",{class:e.normalizeClass(["arrows",{opacity:u.value}]),style:e.normalizeStyle({borderBottomColor:l})},null,6)])],4))]))],4)]))}}),Mn="",Oe=Q($t,[["__scopeId","data-v-18377f18"]]),Pt={inheritAttrs:!1},Rt=e.defineComponent({...Pt,__name:"VirtualList",props:{data:null,itemHeight:null,overscan:{default:10},refresh:null,refreshOff:{type:Boolean,default:!1}},emits:["scrollEnd"],setup(n,{expose:t,emit:o}){const l=n,s=Le(e.toRef(l,"data"),{itemHeight:y=>l.itemHeight(l.data[y]),overscan:l.overscan,scrollEndHook:()=>{o("scrollEnd")}}),{list:i,containerProps:a,wrapperProps:r,innerProps:u,getItemHeightData:g,scrollTop:M}=s;t({vListReturn:s});const d="virtualListWrapper"+new Date().getTime();return(y,N)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(Oe,{refresh:n.refresh,refreshOff:n.refreshOff,scrollTop:e.unref(M),pullRefreshContainer:"#"+d},null,8,["refresh","refreshOff","scrollTop","pullRefreshContainer"]),e.createElementVNode("div",{class:"virtualListWrapper",id:d},[e.createElementVNode("div",e.mergeProps({onScrollPassive:N[0]||(N[0]=(...f)=>e.unref(a).onScroll&&e.unref(a).onScroll(...f)),ref:e.unref(a).ref,class:"virtualList"},y.$attrs),[e.createElementVNode("div",e.normalizeProps(e.guardReactiveProps(e.unref(r))),[e.createElementVNode("div",e.normalizeProps(e.guardReactiveProps(e.unref(u))),[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(i),({index:f,data:I})=>(e.openBlock(),e.createElementBlock("div",{key:f,style:e.normalizeStyle({height:`${e.unref(g)(f).height}px`,display:"flex"})},[e.renderSlot(y.$slots,"default",{data:I,index:f},void 0,!0)],4))),128))],16)],16)],16)])],64))}}),fn="",Ht=Q(Rt,[["__scopeId","data-v-e0fb787f"]]),de=n=>(e.pushScopeId("data-v-c986249d"),n=n(),e.popScopeId(),n),Vt={style:{position:"absolute"}},Ft=de(()=>e.createElementVNode("div",{class:"wrapper"},null,-1)),Wt=["width","height"],Kt=[de(()=>e.createElementVNode("title",null,"logo",-1)),de(()=>e.createElementVNode("g",{id:"group-1",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[e.createElementVNode("path",{d:"M260,0 L260,260 L0,260 L0,0 L260,0 Z M173.523673,59.478426 L168.543315,62.4752911 C160.9116,67.0675753 153.089651,71.6349169 145.95806,75.5800674 C142.130471,77.697465 141.695584,77.8197038 137.842227,77.8197038 L123.620155,77.8194132 C120.16747,77.8127705 119.807362,77.673506 116.200006,75.5626777 L115.86045,75.3641139 C113.295911,73.8653877 110.281688,72.1255413 103.60737,68.2932221 C100.032855,66.2486474 96.3694634,64.1645054 92.8123362,62.1486494 L88.1098826,59.4837265 L86.4238232,64.6191026 C83.7525911,72.7551036 81.4062856,80.7653112 79.9222326,87.4417622 C78.9474243,91.8460343 78.2380884,93.2327734 74.2195073,98.9752733 C73.3694777,100.207223 72.630007,101.343155 72.0710109,102.283257 C67.5201215,110.313953 65.2975905,119.339776 65.6004928,128.457001 C66.1750084,143.318086 73.5375842,157.955758 85.6992798,168.473706 C96.9509724,178.204645 111.5737,183.826593 127.858154,184.209647 L130.088901,184.229303 C130.3376,186.684365 130.531293,189.982467 130.67329,193.770543 L130.951876,201.202421 L137.351863,197.414204 C154.766094,187.106546 169.345402,176.172255 180.160428,163.526119 C190.679421,151.226139 196.179795,138.745301 195.345608,125.762609 C194.727393,116.39373 192.289395,107.848059 187.082918,99.046007 C186.275378,97.7498121 185.738167,97.0056347 184.495395,95.37077 C181.975467,92.0558065 181.159964,90.5424149 180.493634,87.4039653 C178.713605,78.9218624 176.863265,71.4211865 175.088993,65.0761883 L173.523673,59.478426 Z M93.177,72.537 L93.8226224,72.9040486 C95.6240552,73.9292933 97.4266638,74.9575498 99.2051531,75.9748184 C106.15023,79.9626119 109.111289,81.6727026 111.728598,83.2042091 C116.752992,86.1442112 118.538634,86.6733184 123.964152,86.6733184 L137.842227,86.6733184 C143.264867,86.6733184 145.156143,86.1417146 150.243765,83.3272749 L153.915953,81.276117 C157.635687,79.179445 161.486156,76.9543599 165.360239,74.6740288 L168.062636,73.0710869 L168.527808,74.8705095 C169.630114,79.2468106 170.742831,84.0476913 171.830914,89.2325336 C172.820403,93.8931438 174.207097,96.4665356 177.447051,100.728693 C178.530829,102.154402 178.952253,102.738183 179.517404,103.643654 C183.925243,111.098001 185.980436,118.301862 186.51071,126.337939 C187.173867,136.658947 182.587388,147.066077 173.431821,157.771787 L171.503004,159.959402 C163.609627,168.649028 153.591728,176.617571 141.90907,184.187495 L139.123121,185.960576 L139.113767,185.819152 C139.047016,184.932364 138.975009,184.102769 138.897435,183.336992 C138.769034,182.069465 138.589718,180.629122 138.367155,179.053334 L137.795381,175.005053 L133.714496,175.253822 C132.500079,175.327852 131.274186,175.368647 130.037423,175.375838 C114.999567,175.463276 101.629066,170.545082 91.4908024,161.777083 C81.1421175,152.827103 74.9249947,140.466728 74.4483613,128.138982 C74.2004611,120.675327 76.0261036,113.26129 79.7275986,106.727863 C80.126032,106.059698 80.7615655,105.083428 81.4902403,104.02721 C86.0997527,97.4404488 87.2937074,95.1062887 88.5657754,89.358959 C89.6596645,84.4377825 91.2792852,78.6447463 93.1627518,72.6043699 L93.177,72.537 Z",id:"path-1",fill:"#FFF"})],-1))],Zt=e.defineComponent({__name:"Loading",props:{width:{default:"90"},height:{default:"90"},duration:{default:1300}},setup(n){const t=n;e.useCssVars(l=>({"5e400569":o}));const o=`${t.duration}ms`;return(l,s)=>(e.openBlock(),e.createElementBlock("div",Vt,[Ft,(e.openBlock(),e.createElementBlock("svg",{style:{position:"relative"},width:n.width,height:n.height,viewBox:"0 0 260 260",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},Kt,8,Wt))]))}}),mn="",Gt=Q(Zt,[["__scopeId","data-v-c986249d"]]);D.DefaultLoading=dt,D.Loading=Gt,D.LoadingToast=G,D.PullRefresh=Oe,D.ScrollBar=Ot,D.SvgIcon=Lt,D.ToastCreator=zt,D.VirtualList=Ht,D.allSelectedKey=oe,D.closeDialogKey=ve,D.dialogController=it,D.diff=qe,D.isAllSelectedKey=ie,D.isSelectedKey=ne,D.selectAllKey=se,D.selectKey=le,D.selectedCountKey=re,D.toggleAllKey=ee,D.toggleKey=te,D.unselectAllKey=Z,D.unselectKey=ae,D.useDelayAsync=Tt,D.useDelayLoad=rt,D.useDelayLoadComp=Ce,D.useDragSelect=ue,D.useDragSelectByMobile=ot,D.useDragSelectByPc=nt,D.useSelectable=tt,D.useSelectableInjectors=et,D.useVirtualList=Le,D.vDebounceClick=Se,D.vSingleClick=ge,Object.defineProperties(D,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lazycatcloud/lzc-toolkit",
3
- "version": "0.0.104",
3
+ "version": "0.0.106",
4
4
  "description": "lazycat ui toolkits",
5
5
  "main": "./dist/index.umd.js",
6
6
  "module": "./dist/index.es.js",