@lazycatcloud/lzc-toolkit 0.0.200 → 0.0.201

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
@@ -301,13 +301,13 @@ function un(e, t = {}) {
301
301
  return;
302
302
  const Y = ((x = N?.document) == null ? void 0 : x.documentElement) || N?.documentElement || ie(N), { display: Z, flexDirection: p } = getComputedStyle(Y), E = Y.scrollLeft;
303
303
  w.left = E < c.value, w.right = E > c.value;
304
- const O = Math.abs(E) <= (a.left || 0), Q = Math.abs(E) + Y.clientWidth >= Y.scrollWidth - (a.right || 0) - rt;
305
- Z === "flex" && p === "row-reverse" ? (T.left = Q, T.right = O) : (T.left = O, T.right = Q), c.value = E;
306
- let _ = Y.scrollTop;
307
- N === r.document && !_ && (_ = r.document.body.scrollTop), w.top = _ < g.value, w.bottom = _ > g.value;
308
- const I = Math.abs(_) <= (a.top || 0), L = Math.abs(_) + Y.clientHeight >= Y.scrollHeight - (a.bottom || 0) - rt;
309
- Z === "flex" && p === "column-reverse" ? (T.top = L, T.bottom = I) : (T.top = I, T.bottom = L), g.value = _;
310
- }, C = (N) => {
304
+ const S = Math.abs(E) <= (a.left || 0), Q = Math.abs(E) + Y.clientWidth >= Y.scrollWidth - (a.right || 0) - rt;
305
+ Z === "flex" && p === "row-reverse" ? (T.left = Q, T.right = S) : (T.left = S, T.right = Q), c.value = E;
306
+ let O = Y.scrollTop;
307
+ N === r.document && !O && (O = r.document.body.scrollTop), w.top = O < g.value, w.bottom = O > g.value;
308
+ const I = Math.abs(O) <= (a.top || 0), L = Math.abs(O) + Y.clientHeight >= Y.scrollHeight - (a.bottom || 0) - rt;
309
+ Z === "flex" && p === "column-reverse" ? (T.top = L, T.bottom = I) : (T.top = I, T.bottom = L), g.value = O;
310
+ }, _ = (N) => {
311
311
  var x;
312
312
  if (!r)
313
313
  return;
@@ -317,7 +317,7 @@ function un(e, t = {}) {
317
317
  return Ee(
318
318
  e,
319
319
  "scroll",
320
- n ? Ue(C, n, !0, !1) : C,
320
+ n ? Ue(_, n, !0, !1) : _,
321
321
  d
322
322
  ), Xe(() => {
323
323
  try {
@@ -401,13 +401,13 @@ function dn(e, t) {
401
401
  }), mt(() => cancelAnimationFrame(r)), G(
402
402
  f,
403
403
  () => {
404
- (a.width.value || a.height.value) && C();
404
+ (a.width.value || a.height.value) && _();
405
405
  },
406
406
  { deep: !0 }
407
407
  ), G(
408
408
  [a.width, a.height],
409
409
  ([I, L]) => {
410
- (I || L) && C();
410
+ (I || L) && _();
411
411
  },
412
412
  { deep: !0 }
413
413
  ), G(c, () => {
@@ -419,7 +419,7 @@ function dn(e, t) {
419
419
  function b() {
420
420
  d.value = !0, n?.();
421
421
  }
422
- function C() {
422
+ function _() {
423
423
  cancelAnimationFrame(r), r = requestAnimationFrame(N);
424
424
  }
425
425
  function N() {
@@ -474,7 +474,7 @@ function dn(e, t) {
474
474
  s.value.scrollTop = B.sum - B.height, N();
475
475
  }
476
476
  }
477
- const O = z(() => ({
477
+ const S = z(() => ({
478
478
  style: {
479
479
  width: "100%",
480
480
  height: `${w.value}px`,
@@ -485,7 +485,7 @@ function dn(e, t) {
485
485
  transform: `translate3d(0, ${T.value}px, 0)`,
486
486
  "will-change": "transform"
487
487
  }
488
- })), _ = {
488
+ })), O = {
489
489
  overflowY: "auto"
490
490
  };
491
491
  return {
@@ -501,11 +501,11 @@ function dn(e, t) {
501
501
  containerProps: {
502
502
  ref: s,
503
503
  onScroll: () => {
504
- C();
504
+ _();
505
505
  },
506
- style: _
506
+ style: O
507
507
  },
508
- wrapperProps: O,
508
+ wrapperProps: S,
509
509
  innerProps: Q
510
510
  };
511
511
  }
@@ -537,12 +537,10 @@ function ko(e, t, n = { deep: !0, useAllFlagOptimizatiofn: !0 }) {
537
537
  const o = m(!1), l = m(/* @__PURE__ */ new Set()), s = pe(/* @__PURE__ */ new Map());
538
538
  G(
539
539
  e,
540
- (h, D, b) => {
541
- s.clear(), h.forEach((C) => {
542
- s.has(C[t]) || s.set(C[t], C);
543
- }), w(), b(() => {
544
- D && (D.length = 0);
545
- });
540
+ (h) => {
541
+ s.clear(), h.forEach((D) => {
542
+ s.has(D[t]) || s.set(D[t], D);
543
+ }), w();
546
544
  },
547
545
  {
548
546
  deep: n.deep,
@@ -733,21 +731,21 @@ function It({
733
731
  top: Math.min(T.value.y, w.value.y) - h.value.top,
734
732
  width: Math.abs(T.value.x - w.value.x),
735
733
  height: Math.abs(T.value.y - w.value.y)
736
- } : { left: 0, top: 0, width: 0, height: 0 }), C = m(!1), { margin: N = 50, startSpeed: x = 30, maxSpeed: Y = 30 } = l;
734
+ } : { left: 0, top: 0, width: 0, height: 0 }), _ = m(!1), { margin: N = 50, startSpeed: x = 30, maxSpeed: Y = 30 } = l;
737
735
  let Z;
738
- const p = N, E = x, O = Y, Q = (j) => j ** 1;
739
- let _ = 0;
736
+ const p = N, E = x, S = Y, Q = (j) => j ** 1;
737
+ let O = 0;
740
738
  function I(j) {
741
- if (cancelAnimationFrame(Z), _ = L(j), _ = Math.max(
742
- Math.min(_, O),
743
- -O
744
- ), _ !== 0) {
745
- const S = M.value;
746
- if (!S || !y.value)
739
+ if (cancelAnimationFrame(Z), O = L(j), O = Math.max(
740
+ Math.min(O, S),
741
+ -S
742
+ ), O !== 0) {
743
+ const C = M.value;
744
+ if (!C || !y.value)
747
745
  return;
748
746
  const X = D.value.height - h.value.height;
749
- let P = D.value.top + Number(_);
750
- P = Math.min(Math.max(0, P), X), S.scrollTop = P, H(), Z = requestAnimationFrame(() => I(j));
747
+ let P = D.value.top + Number(O);
748
+ P = Math.min(Math.max(0, P), X), C.scrollTop = P, H(), Z = requestAnimationFrame(() => I(j));
751
749
  }
752
750
  }
753
751
  function L(j) {
@@ -762,36 +760,36 @@ function It({
762
760
  return 0;
763
761
  }
764
762
  function B(j) {
765
- const S = { ...b.value, right: 0, bottom: 0 };
766
- return S.left += h.value.left, S.top += h.value.top - D.value.top, S.right = S.width + S.left, S.bottom = S.height + S.top, S.left < j.right && S.right > j.left && S.top < j.bottom && S.bottom > j.top;
763
+ const C = { ...b.value, right: 0, bottom: 0 };
764
+ return C.left += h.value.left, C.top += h.value.top - D.value.top, C.right = C.width + C.left, C.bottom = C.height + C.top, C.left < j.right && C.right > j.left && C.top < j.bottom && C.bottom > j.top;
767
765
  }
768
766
  function H() {
769
767
  D.value.sync();
770
- const { top: j, height: S } = D.value;
768
+ const { top: j, height: C } = D.value;
771
769
  w.value.y = Math.min(
772
- S + h.value.top,
770
+ C + h.value.top,
773
771
  w.value.y + j - w.value.scrollTop
774
772
  ), w.value.scrollTop = j;
775
773
  }
776
- function k(j, S, X = "dynamic-styles") {
774
+ function k(j, C, X = "dynamic-styles") {
777
775
  let P = document.getElementById(X);
778
776
  P || (P = document.createElement("style"), P.id = X, document.head.appendChild(P));
779
- const ee = P.sheet.cssRules, ue = ee.length, Oe = `${j} { ${S} }`;
777
+ const ee = P.sheet.cssRules, ue = ee.length, Oe = `${j} { ${C} }`;
780
778
  for (let he = 0; he < ue; he++) {
781
779
  const we = ee[he];
782
- if (we.selectorText === j && we.style.cssText === S)
780
+ if (we.selectorText === j && we.style.cssText === C)
783
781
  return;
784
782
  }
785
783
  P.sheet.insertRule(Oe, ue);
786
784
  }
787
- function W(j, S) {
785
+ function W(j, C) {
788
786
  u.value = !0, y.value = !0, D.value.sync(!0);
789
- const X = S + D.value.top;
787
+ const X = C + D.value.top;
790
788
  T.value.x = j, T.value.y = X, w.value.x = j, w.value.y = X, M.value?.classList.add("disable-scroll-behavior"), v.clear();
791
789
  }
792
- function J(j, S, X) {
793
- !y.value || (u.value && o === "colum" && !Ne() && (C.value || i(), u.value = !1), X?.(), I(S), w.value.x = Math.max(j, h.value.left), w.value.y = Math.min(
794
- S + D.value.top,
790
+ function J(j, C, X) {
791
+ !y.value || (u.value && o === "colum" && !Ne() && (_.value || i(), u.value = !1), X?.(), I(C), w.value.x = Math.max(j, h.value.left), w.value.y = Math.min(
792
+ C + D.value.top,
795
793
  D.value.height + h.value.top
796
794
  ), w.value.scrollTop = D.value.top, f.value());
797
795
  }
@@ -799,13 +797,13 @@ function It({
799
797
  y.value = !1, M.value?.classList.remove("disable-scroll-behavior");
800
798
  }
801
799
  function le() {
802
- !y.value || (_ || H(), f.value());
800
+ !y.value || (O || H(), f.value());
803
801
  }
804
802
  function Ne() {
805
803
  if (!y.value)
806
804
  return !1;
807
- const { width: j, height: S } = b.value;
808
- return !(Math.max(j, S) > 5);
805
+ const { width: j, height: C } = b.value;
806
+ return !(Math.max(j, C) > 5);
809
807
  }
810
808
  function Ct() {
811
809
  Ne() && i();
@@ -814,34 +812,34 @@ function It({
814
812
  Ne() || M.value?.querySelectorAll(`[${n}]`).forEach((j) => {
815
813
  r[c.value] = g(
816
814
  j.getAttribute(`${n}`)
817
- ), B(j.getBoundingClientRect()) ? a([r]) : C.value || d([r]);
815
+ ), B(j.getBoundingClientRect()) ? a([r]) : _.value || d([r]);
818
816
  });
819
817
  }
820
818
  function Ot() {
821
819
  const j = [];
822
- let S = null, X = 0;
820
+ let C = null, X = 0;
823
821
  M.value?.querySelectorAll(`[${n}]`).forEach((P, ee) => {
824
822
  const ue = g(P.getAttribute(`${n}`));
825
- j.push(ue), B(P.getBoundingClientRect()) ? (S === null && (S = ee), S = Math.min(S, ee), X = Math.max(X, ee)) : (r[c.value] = ue, v.has(ue) && d([r]));
823
+ j.push(ue), B(P.getBoundingClientRect()) ? (C === null && (C = ee), C = Math.min(C, ee), X = Math.max(X, ee)) : (r[c.value] = ue, v.has(ue) && d([r]));
826
824
  });
827
- for (let P = S; P < X + 1; P++)
825
+ for (let P = C; P < X + 1; P++)
828
826
  r[c.value] = j[P], a([r]), v.add(j[P]);
829
827
  }
830
828
  function it() {
831
829
  if (!h.value)
832
830
  return !0;
833
- const { left: j, right: S, top: X, bottom: P } = h.value, ee = window.innerWidth, ue = window.innerHeight, Oe = S <= 0, he = j >= ee, we = P <= 0, kt = X >= ue;
831
+ const { left: j, right: C, top: X, bottom: P } = h.value, ee = window.innerWidth, ue = window.innerHeight, Oe = C <= 0, he = j >= ee, we = P <= 0, kt = X >= ue;
834
832
  return Oe || he || we || kt;
835
833
  }
836
834
  function _t() {
837
835
  it() && ut();
838
836
  }
839
- function ut(j = 100, S = 3) {
837
+ function ut(j = 100, C = 3) {
840
838
  if (!M.value)
841
839
  return;
842
840
  let X = 0;
843
841
  const P = () => {
844
- !M.value || (h.value = M.value.getBoundingClientRect(), it() && X < S && (X++, setTimeout(P, j)));
842
+ !M.value || (h.value = M.value.getBoundingClientRect(), it() && X < C && (X++, setTimeout(P, j)));
845
843
  };
846
844
  P();
847
845
  }
@@ -859,7 +857,7 @@ function It({
859
857
  selectFn: f,
860
858
  getAttributeValue: g,
861
859
  checkAndUpdateRect: _t,
862
- incrementalSelect: C,
860
+ incrementalSelect: _,
863
861
  selectRange: b,
864
862
  isPressing: y,
865
863
  containerEl: M
@@ -1421,24 +1419,24 @@ function zt(e) {
1421
1419
  const E = s.value;
1422
1420
  if (!E)
1423
1421
  return;
1424
- const { scrollTop: O, scrollLeft: Q } = E, { width: _, height: I } = a.value, { scaleW: L, scaleH: B } = C(p), { top: H, left: k } = N(L, B), W = k != 0 ? k : Q * -1, J = H != 0 ? H : O * -1;
1422
+ const { scrollTop: S, scrollLeft: Q } = E, { width: O, height: I } = a.value, { scaleW: L, scaleH: B } = _(p), { top: H, left: k } = N(L, B), W = k != 0 ? k : Q * -1, J = H != 0 ? H : S * -1;
1425
1423
  E.scrollTop = 0, E.scrollLeft = 0;
1426
1424
  const { value: V } = r;
1427
- V.width = `${_}px`, V.height = `${I}px`, V.maxHeight = "none", V.transitionDuration = "0s", V.transform = ke(W, J, p), r.value = V, await Me(), i.offsetX = W, i.offsetY = J, await st(20);
1425
+ V.width = `${O}px`, V.height = `${I}px`, V.maxHeight = "none", V.transitionDuration = "0s", V.transform = ke(W, J, p), r.value = V, await Me(), i.offsetX = W, i.offsetY = J, await st(20);
1428
1426
  }
1429
1427
  async function y(p, E) {
1430
1428
  if (!E && i.preview)
1431
1429
  return;
1432
1430
  i.preview = !0, p = p ?? i.level;
1433
- const { value: O } = r, { scaleW: Q, scaleH: _ } = C(p), { left: I, top: L } = N(Q, _);
1434
- p === 1 && (O.maxHeight = "100%"), O.width = `${Q}px`, O.height = `${_}px`, O.transitionDuration = "0s", O.transform = ke(I, L, 1), r.value = O, await Me();
1431
+ const { value: S } = r, { scaleW: Q, scaleH: O } = _(p), { left: I, top: L } = N(Q, O);
1432
+ p === 1 && (S.maxHeight = "100%"), S.width = `${Q}px`, S.height = `${O}px`, S.transitionDuration = "0s", S.transform = ke(I, L, 1), r.value = S, await Me();
1435
1433
  const B = s.value;
1436
1434
  if (!B)
1437
1435
  return;
1438
1436
  const { offsetX: H, offsetY: k } = i;
1439
1437
  H < 0 && (B.scrollLeft = Math.abs(H)), k < 0 && (B.scrollTop = Math.abs(k));
1440
1438
  }
1441
- async function T(p, E, O) {
1439
+ async function T(p, E, S) {
1442
1440
  if (t.value || (p = ae(p), p = be(
1443
1441
  p,
1444
1442
  n.value - n.value * 0.5,
@@ -1446,14 +1444,14 @@ function zt(e) {
1446
1444
  ), p == i.level))
1447
1445
  return;
1448
1446
  i.preview && await M(), E || (E = { x: f.startX.value, y: f.startY.value });
1449
- const { value: Q } = r, { width: _, height: I } = a.value, { scaleW: L, scaleH: B } = C(p), { top: H, left: k } = N(L, B), W = p / i.level, J = {
1450
- left: Math.abs(_ * p - d.value.width) * -1,
1447
+ const { value: Q } = r, { width: O, height: I } = a.value, { scaleW: L, scaleH: B } = _(p), { top: H, left: k } = N(L, B), W = p / i.level, J = {
1448
+ left: Math.abs(O * p - d.value.width) * -1,
1451
1449
  top: Math.abs(I * p - d.value.height) * -1,
1452
1450
  right: k,
1453
1451
  bottom: H
1454
1452
  };
1455
1453
  let V = k != 0 ? k : (i.offsetX - E.x) * W + E.x, le = H != 0 ? H : (i.offsetY - E.y) * W + E.y;
1456
- V = ae(be(V, J.left, J.right)), le = ae(be(le, J.top, J.bottom)), Q.width = `${_}px`, Q.height = `${I}px`, Q.transitionDuration = O ? Bn(p) : "0s", Q.transform = ke(V, le, p), i.offsetX = V, i.offsetY = le, i.level = p, r.value = Q, await Me(), O && c.startTransition(), e.onScale?.(p);
1454
+ V = ae(be(V, J.left, J.right)), le = ae(be(le, J.top, J.bottom)), Q.width = `${O}px`, Q.height = `${I}px`, Q.transitionDuration = S ? Bn(p) : "0s", Q.transform = ke(V, le, p), i.offsetX = V, i.offsetY = le, i.level = p, r.value = Q, await Me(), S && c.startTransition(), e.onScale?.(p);
1457
1455
  }
1458
1456
  function w() {
1459
1457
  const p = i.level > 1 ? 1 : b();
@@ -1462,8 +1460,8 @@ function zt(e) {
1462
1460
  function h(p, E) {
1463
1461
  if (!i.preview)
1464
1462
  return;
1465
- const O = s.value;
1466
- !O || O.scrollTo({
1463
+ const S = s.value;
1464
+ !S || S.scrollTo({
1467
1465
  left: i.offsetX - p,
1468
1466
  top: i.offsetY - E
1469
1467
  });
@@ -1472,38 +1470,38 @@ function zt(e) {
1472
1470
  i.level >= n.value && i.level <= o.value ? i.zooming && await y() : i.level < n.value ? await T(n.value, void 0, !0) : i.level > o.value && await T(o.value, i.lastCenter, !0), i.zooming = !1;
1473
1471
  }
1474
1472
  function b() {
1475
- const { width: p, height: E } = a.value, { width: O, height: Q } = d.value, _ = 2.5;
1473
+ const { width: p, height: E } = a.value, { width: S, height: Q } = d.value, O = 2.5;
1476
1474
  let I;
1477
- return E == Q ? (I = O / p, I - 1 < 0.1 && (I = _)) : I = Math.max(_, O / p, Q / E), I;
1475
+ return E == Q ? (I = S / p, I - 1 < 0.1 && (I = O)) : I = Math.max(O, S / p, Q / E), I;
1478
1476
  }
1479
- function C(p) {
1480
- const { width: E, height: O } = a.value;
1477
+ function _(p) {
1478
+ const { width: E, height: S } = a.value;
1481
1479
  return {
1482
1480
  scaleW: ae(p * E),
1483
- scaleH: ae(p * O)
1481
+ scaleH: ae(p * S)
1484
1482
  };
1485
1483
  }
1486
1484
  function N(p, E) {
1487
- const { width: O, height: Q } = d.value, _ = Math.max(0, (Q - E) * 0.5), I = Math.max(0, (O - p) * 0.5);
1488
- return { top: _, left: I };
1485
+ const { width: S, height: Q } = d.value, O = Math.max(0, (Q - E) * 0.5), I = Math.max(0, (S - p) * 0.5);
1486
+ return { top: O, left: I };
1489
1487
  }
1490
1488
  async function x(p, E) {
1491
1489
  if (p = p ?? l.value, E = E ?? s.value, !E)
1492
1490
  return;
1493
- let O, { clientWidth: Q = 0, clientHeight: _ = 0 } = p || {};
1491
+ let S, { clientWidth: Q = 0, clientHeight: O = 0 } = p || {};
1494
1492
  const { clientWidth: I, clientHeight: L } = E;
1495
- if (p instanceof HTMLImageElement ? O = { width: p.naturalWidth, height: p.naturalHeight } : p instanceof HTMLVideoElement && (O = { width: p.videoWidth, height: p.videoHeight }), O) {
1493
+ if (p instanceof HTMLImageElement ? S = { width: p.naturalWidth, height: p.naturalHeight } : p instanceof HTMLVideoElement && (S = { width: p.videoWidth, height: p.videoHeight }), S) {
1496
1494
  const B = Yn(
1497
- O.width,
1498
- O.height,
1495
+ S.width,
1496
+ S.height,
1499
1497
  I,
1500
1498
  L
1501
1499
  );
1502
- Q = B.width, _ = B.height;
1500
+ Q = B.width, O = B.height;
1503
1501
  }
1504
- (Q === 0 || _ === 0) && (Q = a.value.width || I, _ = a.value.height || L), a.value = {
1502
+ (Q === 0 || O === 0) && (Q = a.value.width || I, O = a.value.height || L), a.value = {
1505
1503
  width: Math.min(Q, I),
1506
- height: Math.min(_, L)
1504
+ height: Math.min(O, L)
1507
1505
  }, d.value = { width: I, height: L }, y(void 0, !0);
1508
1506
  }
1509
1507
  function Y() {
@@ -1577,10 +1575,10 @@ function Po(e) {
1577
1575
  const D = t.containerRef.value;
1578
1576
  if (!D)
1579
1577
  return;
1580
- const { left: b, top: C } = D.getBoundingClientRect();
1581
- c.value.left = b, c.value.top = C, l.startTap();
1582
- let N = h.clientX - b, x = h.clientY - C;
1583
- o.start(N, x), f("start", N, x, h), s.transitioning.value || (a = !0, i.left = b, i.top = C, n.offsetX = D.scrollLeft, n.offsetY = D.scrollTop), window.addEventListener("pointermove", v), window.addEventListener("pointerup", u);
1578
+ const { left: b, top: _ } = D.getBoundingClientRect();
1579
+ c.value.left = b, c.value.top = _, l.startTap();
1580
+ let N = h.clientX - b, x = h.clientY - _;
1581
+ o.start(N, x), f("start", N, x, h), s.transitioning.value || (a = !0, i.left = b, i.top = _, n.offsetX = D.scrollLeft, n.offsetY = D.scrollTop), window.addEventListener("pointermove", v), window.addEventListener("pointerup", u);
1584
1582
  }
1585
1583
  function v(h) {
1586
1584
  if (!a)
@@ -1851,7 +1849,7 @@ function Xn(e) {
1851
1849
  }), y = z(() => !!g.value), T = z(() => u.value.scrollHeight > u.value.clientHeight), w = z(() => o ? u.value.clientHeight - b.value : u.value.clientHeight - M.value.clientHeight), h = z(() => u.value.scrollHeight - u.value.clientHeight), D = z(() => !u.value.clientHeight && !u.value.scrollHeight ? 1 : Math.max(
1852
1850
  u.value.clientHeight / u.value.scrollHeight,
1853
1851
  0.05
1854
- )), b = z(() => D.value > s ? 0 : D.value * u.value.clientHeight), C = z(() => ({
1852
+ )), b = z(() => D.value > s ? 0 : D.value * u.value.clientHeight), _ = z(() => ({
1855
1853
  willChange: "transform",
1856
1854
  transform: `translate3d(0,${v.value}px,0)`,
1857
1855
  height: o ? `${b.value}px` : void 0
@@ -1878,15 +1876,15 @@ function Xn(e) {
1878
1876
  });
1879
1877
  }
1880
1878
  function E() {
1881
- y.value || O();
1879
+ y.value || S();
1882
1880
  }
1883
- function O() {
1881
+ function S() {
1884
1882
  cancelAnimationFrame(r), r = requestAnimationFrame(Q);
1885
1883
  }
1886
1884
  function Q() {
1887
1885
  t.value && (c.value = l.scrollTop?.value ?? t.value.scrollTop, v.value = c.value / h.value * w.value);
1888
1886
  }
1889
- function _(k) {
1887
+ function O(k) {
1890
1888
  let W = "addEventListener";
1891
1889
  k === "add" ? W = "addEventListener" : W = "removeEventListener", n.value?.[W]("pointerdown", N, {
1892
1890
  passive: !0
@@ -1911,7 +1909,7 @@ function Xn(e) {
1911
1909
  if (t.value && n.value) {
1912
1910
  t.value.classList.add("hide-scrollbar"), t.value.addEventListener("scroll", E, {
1913
1911
  passive: !0
1914
- }), _("add");
1912
+ }), O("add");
1915
1913
  const k = {};
1916
1914
  a === "classList" ? Object.assign(k, { subtree: !0, childList: !0 }) : Object.assign(k, {
1917
1915
  subtree: !0,
@@ -1931,9 +1929,9 @@ function Xn(e) {
1931
1929
  offsetTop: v,
1932
1930
  scrollTop: c,
1933
1931
  scrollable: T,
1934
- sliderPos: C,
1932
+ sliderPos: _,
1935
1933
  init: H,
1936
- modifySliderEventListener: _,
1934
+ modifySliderEventListener: O,
1937
1935
  heightRatio: D
1938
1936
  };
1939
1937
  }
@@ -2034,31 +2032,31 @@ const Vo = /* @__PURE__ */ oe(Kn, [["__scopeId", "data-v-7fd39e51"]]), Gn = (e)
2034
2032
  w.value = N.touches[0].pageY;
2035
2033
  }, D = (N) => {
2036
2034
  const x = N.touches[0].pageY - w.value;
2037
- w.value = N.touches[0].pageY, !t.refreshOff && (!t?.refresh || v.value !== 2 && M.value === 0 && (r.value === 0 && (r.value = N.touches[0].pageY), c.value = 0, C.value.style.transition = `${c.value}ms`, g.value = 0, f.value = N.touches[0].pageY - r.value, C.value.style.transform = `translate3d(0, ${Math.pow(f.value, n)}px, 0)`, x > 0 && N.preventDefault()));
2035
+ w.value = N.touches[0].pageY, !t.refreshOff && (!t?.refresh || v.value !== 2 && M.value === 0 && (r.value === 0 && (r.value = N.touches[0].pageY), c.value = 0, _.value.style.transition = `${c.value}ms`, g.value = 0, f.value = N.touches[0].pageY - r.value, _.value.style.transform = `translate3d(0, ${Math.pow(f.value, n)}px, 0)`, x > 0 && N.preventDefault()));
2038
2036
  }, b = () => {
2039
2037
  if (t.refreshOff || !t?.refresh || v.value === 2)
2040
2038
  return;
2041
2039
  r.value = 0, c.value = 300;
2042
2040
  const N = Math.pow(f.value, n);
2043
- C.value.style.transition = `${c.value}ms`, N > 50 ? (v.value = 2, f.value = Math.pow(50, 1 / n), C.value.style.transform = `translate3d(0, ${Math.pow(f.value, n)}px, 0)`, g.value = 300, t?.refresh && t?.refresh().then(() => {
2041
+ _.value.style.transition = `${c.value}ms`, N > 50 ? (v.value = 2, f.value = Math.pow(50, 1 / n), _.value.style.transform = `translate3d(0, ${Math.pow(f.value, n)}px, 0)`, g.value = 300, t?.refresh && t?.refresh().then(() => {
2044
2042
  u.value = "\u5237\u65B0\u6210\u529F";
2045
2043
  }).catch(() => {
2046
2044
  u.value = "\u5237\u65B0\u5931\u8D25";
2047
2045
  }).finally(() => {
2048
2046
  setTimeout(() => {
2049
- v.value = 0, f.value = 0, C.value.style.transform = `translate3d(0, ${Math.pow(
2047
+ v.value = 0, f.value = 0, _.value.style.transform = `translate3d(0, ${Math.pow(
2050
2048
  f.value,
2051
2049
  n
2052
2050
  )}px, 0)`, setTimeout(() => {
2053
2051
  u.value = void 0;
2054
2052
  }, g.value);
2055
2053
  }, 600);
2056
- })) : (f.value = 0, C.value.style.transform = `translate3d(0, ${Math.pow(f.value, n)}px, 0)`);
2057
- }, C = m(null);
2054
+ })) : (f.value = 0, _.value.style.transform = `translate3d(0, ${Math.pow(f.value, n)}px, 0)`);
2055
+ }, _ = m(null);
2058
2056
  return de(() => {
2059
- t?.refreshOff || (C.value = document.querySelector(
2057
+ t?.refreshOff || (_.value = document.querySelector(
2060
2058
  t.pullRefreshContainer
2061
- ), C.value?.addEventListener("touchstart", h), C.value?.addEventListener("touchmove", D), C.value?.addEventListener("touchend", b));
2059
+ ), _.value?.addEventListener("touchstart", h), _.value?.addEventListener("touchmove", D), _.value?.addEventListener("touchend", b));
2062
2060
  }), (N, x) => (U(), $("div", qn, [
2063
2061
  R("div", {
2064
2062
  class: "pull-refresh-box",
@@ -2278,7 +2276,7 @@ const Do = ["title"], To = { class: "tip" }, No = /* @__PURE__ */ Xt("\u5F53\u52
2278
2276
  async function b(x) {
2279
2277
  x ? h() : l.value && t("load", l.value), s.value = !0;
2280
2278
  }
2281
- function C(x) {
2279
+ function _(x) {
2282
2280
  x ? (v(), t("loadError")) : T(), s.value = !0;
2283
2281
  }
2284
2282
  function N() {
@@ -2298,14 +2296,14 @@ const Do = ["title"], To = { class: "tip" }, No = /* @__PURE__ */ Xt("\u5F53\u52
2298
2296
  key: 2,
2299
2297
  src: A(f),
2300
2298
  onLoad: b,
2301
- onError: C,
2299
+ onError: _,
2302
2300
  vImageCancel: A(u)
2303
2301
  }, () => [
2304
2302
  A(y) ? ce((U(), $("img", me({ key: 0 }, x.$attrs, {
2305
2303
  ref_key: "thumbnailRef",
2306
2304
  ref: l,
2307
2305
  onLoad: Y[0] || (Y[0] = (Z) => b()),
2308
- onError: Y[1] || (Y[1] = (Z) => C()),
2306
+ onError: Y[1] || (Y[1] = (Z) => _()),
2309
2307
  src: e.thumbnail
2310
2308
  }), null, 16, Eo)), [
2311
2309
  [A(u)]
@@ -2315,7 +2313,7 @@ const Do = ["title"], To = { class: "tip" }, No = /* @__PURE__ */ Xt("\u5F53\u52
2315
2313
  ref: o,
2316
2314
  class: "src-class",
2317
2315
  onLoad: Y[2] || (Y[2] = (Z) => b(!0)),
2318
- onError: Y[3] || (Y[3] = (Z) => C(!0)),
2316
+ onError: Y[3] || (Y[3] = (Z) => _(!0)),
2319
2317
  src: A(f)
2320
2318
  }), null, 16, Io)), [
2321
2319
  [A(u)],
package/dist/index.umd.js CHANGED
@@ -1,4 +1,4 @@
1
- (function(z,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(z=typeof globalThis<"u"?globalThis:z||self,e(z.ui={},z.Vue))})(this,function(z,e){"use strict";const xe={created(t,n){let o,l;function s(i){i.button==0&&(o=i.clientX,l=i.clientY)}function a(i){if(i.button!=0||o===void 0)return;const f=i.clientX,r=i.clientY,u=Math.abs(f-o),M=Math.abs(r-l);u>5||M>5||n.value&&n.value(i)}t.__mouse_down__=s,t.__mouse_up__=a,t.addEventListener("mousedown",s),t.addEventListener("mouseup",a)},unmounted(t){t.removeEventListener("mousedown",t.__mouse_down__),t.removeEventListener("mouseup",t.__mouse_up__)}},Je={created(t,n){const{fn:o,ms:l=1500}=n.value;let s=null;function a(i){s||(o(i),s=setTimeout(()=>{s=null},l))}t.addEventListener("click",a)}},ye={beforeMount(t,n){n.value()}};function et(t,n){var o;const l=e.shallowRef();return e.watchEffect(()=>{l.value=t()},{...n,flush:(o=n?.flush)!=null?o:"sync"}),e.readonly(l)}function tt(t,n){let o,l,s;const a=e.ref(!0),i=()=>{a.value=!0,s()};e.watch(t,i,{flush:"sync"});const f=typeof n=="function"?n:n.get,r=typeof n=="function"?void 0:n.set,u=e.customRef((M,d)=>(l=M,s=d,{get(){return a.value&&(o=f(),a.value=!1),l(),o},set(h){r?.(h)}}));return Object.isExtensible(u)&&(u.trigger=i),u}function De(t){return e.getCurrentScope()?(e.onScopeDispose(t),!0):!1}function V(t){return typeof t=="function"?t():e.unref(t)}const _e=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const nt=Object.prototype.toString,ot=t=>nt.call(t)==="[object Object]",J=()=>{};function Oe(t,n){function o(...l){return new Promise((s,a)=>{Promise.resolve(t(()=>n.apply(this,l),{fn:n,thisArg:this,args:l})).then(s).catch(a)})}return o}function lt(t,n={}){let o,l,s=J;const a=f=>{clearTimeout(f),s(),s=J};return f=>{const r=V(t),u=V(n.maxWait);return o&&a(o),r<=0||u!==void 0&&u<=0?(l&&(a(l),l=null),Promise.resolve(f())):new Promise((M,d)=>{s=n.rejectOnCancel?d:M,u&&!l&&(l=setTimeout(()=>{o&&a(o),l=null,M(f())},u)),o=setTimeout(()=>{l&&a(l),l=null,M(f())},r)})}}function st(...t){let n=0,o,l=!0,s=J,a,i,f,r,u;!e.isRef(t[0])&&typeof t[0]=="object"?{delay:i,trailing:f=!0,leading:r=!0,rejectOnCancel:u=!1}=t[0]:[i,f=!0,r=!0,u=!1]=t;const M=()=>{o&&(clearTimeout(o),o=void 0,s(),s=J)};return h=>{const g=V(i),c=Date.now()-n,m=()=>a=h();return M(),g<=0?(n=Date.now(),m()):(c>g&&(r||!l)?(n=Date.now(),m()):f&&(a=new Promise((y,N)=>{s=u?N:y,o=setTimeout(()=>{n=Date.now(),l=!0,y(m()),M()},Math.max(0,g-c))})),!r&&!o&&(o=setTimeout(()=>l=!0,g)),l=!1,a)}}function at(t){return t||e.getCurrentInstance()}function oe(t,n=200,o={}){return Oe(lt(n,o),t)}function Te(t,n=200,o=!1,l=!0,s=!1){return Oe(st(n,o,l,s),t)}function Ne(t,n=!0,o){at()?e.onMounted(t,o):n?t():e.nextTick(t)}function K(t){var n;const o=V(t);return(n=o?.$el)!=null?n:o}const le=_e?window:void 0,it=_e?window.document:void 0;function se(...t){let n,o,l,s;if(typeof t[0]=="string"||Array.isArray(t[0])?([o,l,s]=t,n=le):[n,o,l,s]=t,!n)return J;Array.isArray(o)||(o=[o]),Array.isArray(l)||(l=[l]);const a=[],i=()=>{a.forEach(M=>M()),a.length=0},f=(M,d,h,g)=>(M.addEventListener(d,h,g),()=>M.removeEventListener(d,h,g)),r=e.watch(()=>[K(n),V(s)],([M,d])=>{if(i(),!M)return;const h=ot(d)?{...d}:d;a.push(...o.flatMap(g=>l.map(c=>f(M,g,c,h))))},{immediate:!0,flush:"post"}),u=()=>{r(),i()};return De(u),u}function rt(){const t=e.ref(!1),n=e.getCurrentInstance();return n&&e.onMounted(()=>{t.value=!0},n),t}function ct(t){const n=rt();return e.computed(()=>(n.value,Boolean(t())))}function ut(t){const n=e.getCurrentInstance(),o=tt(()=>null,()=>t?K(t):n.proxy.$el);return e.onUpdated(o.trigger),e.onMounted(o.trigger),o}function we(t,n,o={}){const{window:l=le,...s}=o;let a;const i=ct(()=>l&&"ResizeObserver"in l),f=()=>{a&&(a.disconnect(),a=void 0)},r=e.computed(()=>Array.isArray(t)?t.map(d=>K(d)):[K(t)]),u=e.watch(r,d=>{if(f(),i.value&&l){a=new ResizeObserver(n);for(const h of d)h&&a.observe(h,s)}},{immediate:!0,flush:"post"}),M=()=>{f(),u()};return De(M),{isSupported:i,stop:M}}function dt(t,n={width:0,height:0},o={}){const{window:l=le,box:s="content-box"}=o,a=e.computed(()=>{var d,h;return(h=(d=K(t))==null?void 0:d.namespaceURI)==null?void 0:h.includes("svg")}),i=e.ref(n.width),f=e.ref(n.height),{stop:r}=we(t,([d])=>{const h=s==="border-box"?d.borderBoxSize:s==="content-box"?d.contentBoxSize:d.devicePixelContentBoxSize;if(l&&a.value){const g=K(t);if(g){const c=l.getComputedStyle(g);i.value=Number.parseFloat(c.width),f.value=Number.parseFloat(c.height)}}else if(h){const g=Array.isArray(h)?h:[h];i.value=g.reduce((c,{inlineSize:m})=>c+m,0),f.value=g.reduce((c,{blockSize:m})=>c+m,0)}else i.value=d.contentRect.width,f.value=d.contentRect.height},o);Ne(()=>{const d=K(t);d&&(i.value="offsetWidth"in d?d.offsetWidth:n.width,f.value="offsetHeight"in d?d.offsetHeight:n.height)});const u=e.watch(()=>K(t),d=>{i.value=d?n.width:0,f.value=d?n.height:0});function M(){r(),u()}return{width:i,height:f,stop:M}}const ke=1;function ft(t,n={}){const{throttle:o=0,idle:l=200,onStop:s=J,onScroll:a=J,offset:i={left:0,right:0,top:0,bottom:0},eventListenerOptions:f={capture:!1,passive:!0},behavior:r="auto",window:u=le,onError:M=w=>{console.error(w)}}=n,d=e.ref(0),h=e.ref(0),g=e.computed({get(){return d.value},set(w){m(w,void 0)}}),c=e.computed({get(){return h.value},set(w){m(void 0,w)}});function m(w,C){var B,$,D;if(!u)return;const E=V(t);!E||(D=E instanceof Document?u.document.body:E)==null||D.scrollTo({top:(B=V(C))!=null?B:c.value,left:($=V(w))!=null?$:g.value,behavior:V(r)})}const y=e.ref(!1),N=e.reactive({left:!0,right:!1,top:!0,bottom:!1}),v=e.reactive({left:!1,right:!1,top:!1,bottom:!1}),p=w=>{!y.value||(y.value=!1,v.left=!1,v.right=!1,v.top=!1,v.bottom=!1,s(w))},T=oe(p,o+l),O=w=>{var C;if(!u)return;const B=((C=w?.document)==null?void 0:C.documentElement)||w?.documentElement||K(w),{display:$,flexDirection:D}=getComputedStyle(B),E=B.scrollLeft;v.left=E<d.value,v.right=E>d.value;const x=Math.abs(E)<=(i.left||0),b=Math.abs(E)+B.clientWidth>=B.scrollWidth-(i.right||0)-ke;$==="flex"&&D==="row-reverse"?(N.left=b,N.right=x):(N.left=x,N.right=b),d.value=E;let _=B.scrollTop;w===u.document&&!_&&(_=u.document.body.scrollTop),v.top=_<h.value,v.bottom=_>h.value;const I=Math.abs(_)<=(i.top||0),A=Math.abs(_)+B.clientHeight>=B.scrollHeight-(i.bottom||0)-ke;$==="flex"&&D==="column-reverse"?(N.top=A,N.bottom=I):(N.top=I,N.bottom=A),h.value=_},j=w=>{var C;if(!u)return;const B=(C=w.target.documentElement)!=null?C:w.target;O(B),y.value=!0,T(w),a(w)};return se(t,"scroll",o?Te(j,o,!0,!1):j,f),Ne(()=>{try{const w=V(t);if(!w)return;O(w)}catch(w){M(w)}}),se(t,"scrollend",p,f),{x:g,y:c,isScrolling:y,arrivedState:N,directions:v,measure(){const w=V(t);u&&w&&O(w)}}}let Mt=0;function ve(t,n={}){const o=e.ref(!1),{document:l=it,immediate:s=!0,manual:a=!1,id:i=`vueuse_styletag_${++Mt}`}=n,f=e.ref(t);let r=()=>{};const u=()=>{if(!l)return;const d=l.getElementById(i)||l.createElement("style");d.isConnected||(d.id=i,n.media&&(d.media=n.media),l.head.appendChild(d)),!o.value&&(r=e.watch(f,h=>{d.textContent=h},{immediate:!0}),o.value=!0)},M=()=>{!l||!o.value||(r(),l.head.removeChild(l.getElementById(i)),o.value=!1)};return s&&!a&&Ne(u),a||De(M),{id:i,css:f,unload:M,load:u,isLoaded:e.readonly(o)}}function gt(t,n,o){const l=t.style[n];return l!=o&&(t.style[n]=o),{reset(){l!=o&&(t.style[n]=l)}}}function be(t,n){const{scrollEndHook:o,itemHeight:l,overscan:s=5}=n,a=e.ref(null),i=dt(a),f=e.ref(!0),r=oe(O,100);let u;const M=e.shallowRef(t),d=e.ref(0),h=e.ref({start:0,end:10}),g=e.ref({start:0,end:s});let c=0;const m=e.ref([]),y=e.computed(()=>{let{sum:I,height:A}={sum:0,height:0};return M.value.map((Q,Y)=>(typeof l=="number"?A=l:A=l(Y),I+=A,{height:A,sum:I}))}),N=e.computed(()=>$(h.value.start)),v=e.computed(()=>typeof l=="number"?y.value.length*l:y.value[y.value.length-1]?.sum||0),p=e.computed(()=>{const{start:I,end:A}=g.value;return m.value.slice(I,A)});e.onMounted(()=>{}),e.onUnmounted(()=>cancelAnimationFrame(u)),e.watch(M,()=>{(i.width.value||i.height.value)&&j()},{deep:!0}),e.watch([i.width,i.height],([I,A])=>{(I||A)&&j()},{deep:!0}),e.watch(d,()=>{T(),r()});function T(){f.value=!1}function O(){f.value=!0,o?.()}function j(){cancelAnimationFrame(u),u=requestAnimationFrame(w)}function w(){if(a.value){d.value=a.value.scrollTop;let I=C(d.value);c=B(I);let A=Math.max(0,I-s),Q=Math.min(I+c+s,M.value.length);h.value={start:A,end:Q},m.value=M.value.slice(A,Q).map((Y,k)=>({data:Y,index:k+A})),g.value.start=I-A,g.value.end=g.value.start+c}}function C(I){let A=0,Q=y.value.length-1,Y=-1;for(;A<=Q;){const k=Math.floor((A+Q)/2);y.value[k].sum>=I?(Y=k,Q=k-1):A=k+1}return Math.max(0,Y)}function B(I){let A=0,Q=0;for(let Y=I;Y<y.value.length&&(A++,Q+=y.value[Y].height,!(Q>=i.height.value));Y++);return A}function $(I){if(typeof l=="number")return I*l;let A=y.value[I];return A?A.sum-A.height:0}function D(I){return y.value[I]||{sum:0,height:0}}function E(I,A="smooth"){if(a.value){const{reset:Q}=gt(a.value,"scrollBehavior",A),Y=D(I);a.value.scrollTop=Y.sum-Y.height,w(),Q()}if(a.value){const Q=D(I);a.value.scrollTop=Q.sum-Q.height,w()}}const x=e.computed(()=>({style:{width:"100%",height:`${v.value}px`,pointerEvents:f.value?void 0:"none"}})),b=e.computed(()=>({style:{transform:`translate3d(0, ${N.value}px, 0)`,"will-change":"transform"}})),_={overflowY:"auto"};return{list:m,visiableList:p,getItemHeightData:D,getoffsetTopIndex:C,totalHeight:v,clientHeight:i.height,scrollTo:E,scrollTop:d,isScrollEnd:f,containerProps:{ref:a,onScroll:()=>{j()},style:_},wrapperProps:x,innerProps:b}}const Ee=Symbol(),ae=Symbol(),ie=Symbol(),re=Symbol(),ce=Symbol(),ue=Symbol(),de=Symbol(),fe=Symbol(),Me=Symbol(),ee=Symbol(),ge=Symbol();function mt(){const{voidFn:t,boolFn:n,boolRef:o,numberRef:l,arrayRef:s}={voidFn:y=>{},boolFn:y=>!1,boolRef:e.computed(()=>!1),numberRef:e.computed(()=>0),arrayRef:e.computed(()=>[])},a=e.inject(Ee,"id"),i=e.inject(ce,s),f=e.inject(re,n),r=e.inject(Me,o),u=e.inject(ie,t),M=e.inject(ae,t),d=e.inject(ue,t),h=e.inject(de,t),g=e.inject(fe,t),c=e.inject(ee,t),m=e.inject(ge,l);return{itemKey:a,selected:i,isSelected:f,isAllSelected:r,toggle:u,toggleAll:M,select:d,selectAll:h,unselect:g,unselectAll:c,selectedCount:m}}function ht(t,n,o={deep:!0,useAllFlagOptimizatiofn:!0}){const l=e.ref(!1),s=e.ref(new Set),a=e.reactive(new Map);e.watch(t,(p,T,O)=>{a.clear(),p.forEach(j=>{a.has(j[n])||a.set(j[n],j)}),v(),O(()=>{T&&(T.length=0)})},{deep:o.deep,immediate:!0}),e.onScopeDispose(()=>{l.value=!1,s.value.clear(),a.clear()});const i=e.computed(()=>{let p=[];if(l.value!=null)l.value&&(p=Array.from(a.values()));else if(s.value.size){let T;s.value.forEach(O=>{T=a.get(O),T&&p.push(T)})}return p}),f=e.computed(()=>{let p=0;return l.value!=null?l.value&&(p=a.size):p=s.value.size,p}),r=e.computed(()=>{let p;if(l.value!=null)p=l.value;else{const T=s.value.size,O=a.size;p=T==O}return p});function u(){l.value=!0}function M(){l.value=!1}function d(p){a.has(p)&&s.value.add(p)}function h(p){m(()=>{p.forEach(T=>{d(T[n])})})}function g(p){m(()=>{p.forEach(T=>{s.value.delete(T[n])})})}function c(p){return l.value!=null?l.value:s.value.has(p[n])}function m(p){l.value!=null&&(l.value?s.value=new Set(Array.from(a.keys())):s.value=new Set),p(),o.useAllFlagOptimizatiofn?s.value.size==0?l.value=!1:s.value.size==a.size?l.value=!0:l.value=null:l.value=null}function y(p){m(()=>{p.forEach(T=>{c(T)?s.value.delete(T[n]):d(T[n])})})}function N(){const{value:p}=r;p?M():u()}function v(){const p=[];s.value.forEach(T=>{a.get(T)||p.push(T)}),p.forEach(T=>s.value.delete(T))}return e.provide(Ee,n),e.provide(ae,N),e.provide(ie,y),e.provide(re,c),e.provide(ce,i),e.provide(ue,h),e.provide(de,u),e.provide(fe,g),e.provide(Me,r),e.provide(ee,M),e.provide(ee,M),e.provide(ge,f),{selected:i,select:h,selectAll:u,unselect:g,unselectAll:M,toggle:y,toggleAll:N,isSelected:c,isAllSelected:r,selectedCount:f}}function pt(t){const n=e.ref(!1),o=e.ref(new Set),l=e.computed(()=>{let c=[];return n.value!=null?n.value&&(c=t.value):o.value.size&&(c=Array.from(o.value.values())),c}),s=e.computed(()=>{let c=0;return n.value!=null?n.value&&(c=t.value.length):c=o.value.size,c}),a=e.computed(()=>{let c;if(n.value!=null)c=n.value;else{const m=o.value.size,y=t.value.length;c=m==y}return c});function i(){n.value=!0}function f(){n.value=!1}function r(c){d(()=>{c.forEach(m=>{o.value.add(m)})})}function u(c){d(()=>{c.forEach(m=>{o.value.delete(m)})})}function M(c){return n.value!=null?n.value:o.value.has(c)}function d(c){n.value!=null&&(n.value?o.value=new Set(Array.from(t.value)):o.value=new Set),c(),o.value.size==0?n.value=!1:o.value.size==t.value.length?n.value=!0:n.value=null}function h(c){d(()=>{c.forEach(m=>{M(m)?o.value.delete(m):o.value.add(m)})})}function g(){const{value:c}=a;c?f():i()}return e.provide(ae,g),e.provide(ie,h),e.provide(re,M),e.provide(ce,l),e.provide(ue,r),e.provide(de,i),e.provide(fe,u),e.provide(Me,a),e.provide(ee,f),e.provide(ee,f),e.provide(ge,s),{selected:l,select:r,selectAll:i,unselect:u,unselectAll:f,toggle:h,toggleAll:g,isSelected:M,isAllSelected:a,selectedCount:s}}function Ie(t){return()=>{console.debug(`\u9ED8\u8BA4${t}\u65B9\u6CD5,\u9700\u8981\u81EA\u5B9A\u4E49\u751F\u6548`)}}function ze({key:t,customAttributeValue:n,attribute:o,selectWay:l="colum",scrollOptions:s={},getSelectMap:a=()=>({})}){const{select:i=Ie("\u9009\u62E9"),unselect:f=Ie("\u53D6\u6D88\u9009\u62E9"),unselectAll:r=Ie("\u53D6\u6D88\u5168\u9009")}=a();let u={};const M=e.computed(()=>Te(l==="colum"?Hn:Fn,50)),d=e.computed(()=>t??o),h=(()=>n?L=>n(L):L=>L)(),g=new Set,c=e.ref(!0),m=e.ref(),y=e.ref(!1),N=e.ref({x:0,y:0}),v=e.ref({x:0,y:0,scrollTop:0}),p=e.ref({}),T=e.ref({top:0,height:0,sync(L=!1){T.value.top=m.value?.scrollTop||0,L&&(T.value.height=m.value?.scrollHeight||0)}}),O=e.computed(()=>y.value?{left:Math.min(N.value.x,v.value.x)-p.value.left,top:Math.min(N.value.y,v.value.y)-p.value.top,width:Math.abs(N.value.x-v.value.x),height:Math.abs(N.value.y-v.value.y)}:{left:0,top:0,width:0,height:0}),j=e.ref(!1),{margin:w=50,startSpeed:C=30,maxSpeed:B=30}=s;let $;const D=w,E=C,x=B,b=L=>L**1;let _=0;function I(L){if(cancelAnimationFrame($),_=A(L),_=Math.max(Math.min(_,x),-x),_!==0){const S=m.value;if(!S||!y.value)return;const P=T.value.height-p.value.height;let U=T.value.top+Number(_);U=Math.min(Math.max(0,U),P),S.scrollTop=U,Y(),$=requestAnimationFrame(()=>I(L))}}function A(L){if(m.value){const P=p.value,U=P.bottom-L;if(U<D)return E*b(1-U/D);const X=L-P.top;if(X<D)return-E*b(1-X/D)}return 0}function Q(L){const S={...O.value,right:0,bottom:0};return S.left+=p.value.left,S.top+=p.value.top-T.value.top,S.right=S.width+S.left,S.bottom=S.height+S.top,S.left<L.right&&S.right>L.left&&S.top<L.bottom&&S.bottom>L.top}function Y(){T.value.sync();const{top:L,height:S}=T.value;v.value.y=Math.min(S+p.value.top,v.value.y+L-v.value.scrollTop),v.value.scrollTop=L}function k(L,S,P="dynamic-styles"){let U=document.getElementById(P);U||(U=document.createElement("style"),U.id=P,document.head.appendChild(U));const X=U.sheet.cssRules,q=X.length,Se=`${L} { ${S} }`;for(let ne=0;ne<q;ne++){const pe=X[ne];if(pe.selectorText===L&&pe.style.cssText===S)return}U.sheet.insertRule(Se,q)}function R(L,S){c.value=!0,y.value=!0,T.value.sync(!0);const P=S+T.value.top;N.value.x=L,N.value.y=P,v.value.x=L,v.value.y=P,m.value?.classList.add("disable-scroll-behavior"),g.clear()}function F(L,S,P){!y.value||(c.value&&l==="colum"&&!he()&&(j.value||r(),c.value=!1),P?.(),I(S),v.value.x=Math.max(L,p.value.left),v.value.y=Math.min(S+T.value.top,T.value.height+p.value.top),v.value.scrollTop=T.value.top,M.value())}function H(){y.value=!1,m.value?.classList.remove("disable-scroll-behavior")}function G(){!y.value||(_||Y(),M.value())}function he(){if(!y.value)return!1;const{width:L,height:S}=O.value;return!(Math.max(L,S)>5)}function $n(){he()&&r()}function Hn(){he()||m.value?.querySelectorAll(`[${o}]`).forEach(L=>{u[d.value]=h(L.getAttribute(`${o}`)),Q(L.getBoundingClientRect())?i([u]):j.value||f([u])})}function Fn(){const L=[];let S=null,P=0;m.value?.querySelectorAll(`[${o}]`).forEach((U,X)=>{const q=h(U.getAttribute(`${o}`));L.push(q),Q(U.getBoundingClientRect())?(S===null&&(S=X),S=Math.min(S,X),P=Math.max(P,X)):(u[d.value]=q,g.has(q)&&f([u]))});for(let U=S;U<P+1;U++)u[d.value]=L[U],i([u]),g.add(L[U])}function Ge(){if(!p.value)return!0;const{left:L,right:S,top:P,bottom:U}=p.value,X=window.innerWidth,q=window.innerHeight,Se=S<=0,ne=L>=X,pe=U<=0,Xn=P>=q;return Se||ne||pe||Xn}function Vn(){Ge()&&qe()}function qe(L=100,S=3){if(!m.value)return;let P=0;const U=()=>{!m.value||(p.value=m.value.getBoundingClientRect(),Ge()&&P<S&&(P++,setTimeout(U,L)))};U()}function Wn(L){return!L?.value||(m.value=L.value,!m?.value)?!1:(qe(),k(".disable-scroll-behavior","scroll-behavior: unset !important;"),!0)}return{init:Wn,dragStart:R,dragMove:F,dragEnd:H,onScroll:G,isSingleClick:he,cancelSelectAllBySingleClick:$n,selectFn:M,getAttributeValue:h,checkAndUpdateRect:Vn,incrementalSelect:j,selectRange:O,isPressing:y,containerEl:m}}function yt(t,n=!1){const o=ze(t),{selectRange:l}=o,{onScroll:s,dragStart:a,dragMove:i,dragEnd:f,cancelSelectAllBySingleClick:r}=o,u=e.computed(()=>({left:`${l.value.left}px`,top:`${l.value.top}px`,width:`${l.value.width}px`,height:`${l.value.height}px`})),{load:M}=ve(`.drag-select-box {
1
+ (function(z,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(z=typeof globalThis<"u"?globalThis:z||self,e(z.ui={},z.Vue))})(this,function(z,e){"use strict";const xe={created(t,n){let o,l;function s(i){i.button==0&&(o=i.clientX,l=i.clientY)}function a(i){if(i.button!=0||o===void 0)return;const f=i.clientX,r=i.clientY,u=Math.abs(f-o),M=Math.abs(r-l);u>5||M>5||n.value&&n.value(i)}t.__mouse_down__=s,t.__mouse_up__=a,t.addEventListener("mousedown",s),t.addEventListener("mouseup",a)},unmounted(t){t.removeEventListener("mousedown",t.__mouse_down__),t.removeEventListener("mouseup",t.__mouse_up__)}},Je={created(t,n){const{fn:o,ms:l=1500}=n.value;let s=null;function a(i){s||(o(i),s=setTimeout(()=>{s=null},l))}t.addEventListener("click",a)}},ye={beforeMount(t,n){n.value()}};function et(t,n){var o;const l=e.shallowRef();return e.watchEffect(()=>{l.value=t()},{...n,flush:(o=n?.flush)!=null?o:"sync"}),e.readonly(l)}function tt(t,n){let o,l,s;const a=e.ref(!0),i=()=>{a.value=!0,s()};e.watch(t,i,{flush:"sync"});const f=typeof n=="function"?n:n.get,r=typeof n=="function"?void 0:n.set,u=e.customRef((M,d)=>(l=M,s=d,{get(){return a.value&&(o=f(),a.value=!1),l(),o},set(h){r?.(h)}}));return Object.isExtensible(u)&&(u.trigger=i),u}function De(t){return e.getCurrentScope()?(e.onScopeDispose(t),!0):!1}function V(t){return typeof t=="function"?t():e.unref(t)}const _e=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const nt=Object.prototype.toString,ot=t=>nt.call(t)==="[object Object]",J=()=>{};function Oe(t,n){function o(...l){return new Promise((s,a)=>{Promise.resolve(t(()=>n.apply(this,l),{fn:n,thisArg:this,args:l})).then(s).catch(a)})}return o}function lt(t,n={}){let o,l,s=J;const a=f=>{clearTimeout(f),s(),s=J};return f=>{const r=V(t),u=V(n.maxWait);return o&&a(o),r<=0||u!==void 0&&u<=0?(l&&(a(l),l=null),Promise.resolve(f())):new Promise((M,d)=>{s=n.rejectOnCancel?d:M,u&&!l&&(l=setTimeout(()=>{o&&a(o),l=null,M(f())},u)),o=setTimeout(()=>{l&&a(l),l=null,M(f())},r)})}}function st(...t){let n=0,o,l=!0,s=J,a,i,f,r,u;!e.isRef(t[0])&&typeof t[0]=="object"?{delay:i,trailing:f=!0,leading:r=!0,rejectOnCancel:u=!1}=t[0]:[i,f=!0,r=!0,u=!1]=t;const M=()=>{o&&(clearTimeout(o),o=void 0,s(),s=J)};return h=>{const g=V(i),c=Date.now()-n,m=()=>a=h();return M(),g<=0?(n=Date.now(),m()):(c>g&&(r||!l)?(n=Date.now(),m()):f&&(a=new Promise((y,N)=>{s=u?N:y,o=setTimeout(()=>{n=Date.now(),l=!0,y(m()),M()},Math.max(0,g-c))})),!r&&!o&&(o=setTimeout(()=>l=!0,g)),l=!1,a)}}function at(t){return t||e.getCurrentInstance()}function oe(t,n=200,o={}){return Oe(lt(n,o),t)}function Te(t,n=200,o=!1,l=!0,s=!1){return Oe(st(n,o,l,s),t)}function Ne(t,n=!0,o){at()?e.onMounted(t,o):n?t():e.nextTick(t)}function K(t){var n;const o=V(t);return(n=o?.$el)!=null?n:o}const le=_e?window:void 0,it=_e?window.document:void 0;function se(...t){let n,o,l,s;if(typeof t[0]=="string"||Array.isArray(t[0])?([o,l,s]=t,n=le):[n,o,l,s]=t,!n)return J;Array.isArray(o)||(o=[o]),Array.isArray(l)||(l=[l]);const a=[],i=()=>{a.forEach(M=>M()),a.length=0},f=(M,d,h,g)=>(M.addEventListener(d,h,g),()=>M.removeEventListener(d,h,g)),r=e.watch(()=>[K(n),V(s)],([M,d])=>{if(i(),!M)return;const h=ot(d)?{...d}:d;a.push(...o.flatMap(g=>l.map(c=>f(M,g,c,h))))},{immediate:!0,flush:"post"}),u=()=>{r(),i()};return De(u),u}function rt(){const t=e.ref(!1),n=e.getCurrentInstance();return n&&e.onMounted(()=>{t.value=!0},n),t}function ct(t){const n=rt();return e.computed(()=>(n.value,Boolean(t())))}function ut(t){const n=e.getCurrentInstance(),o=tt(()=>null,()=>t?K(t):n.proxy.$el);return e.onUpdated(o.trigger),e.onMounted(o.trigger),o}function we(t,n,o={}){const{window:l=le,...s}=o;let a;const i=ct(()=>l&&"ResizeObserver"in l),f=()=>{a&&(a.disconnect(),a=void 0)},r=e.computed(()=>Array.isArray(t)?t.map(d=>K(d)):[K(t)]),u=e.watch(r,d=>{if(f(),i.value&&l){a=new ResizeObserver(n);for(const h of d)h&&a.observe(h,s)}},{immediate:!0,flush:"post"}),M=()=>{f(),u()};return De(M),{isSupported:i,stop:M}}function dt(t,n={width:0,height:0},o={}){const{window:l=le,box:s="content-box"}=o,a=e.computed(()=>{var d,h;return(h=(d=K(t))==null?void 0:d.namespaceURI)==null?void 0:h.includes("svg")}),i=e.ref(n.width),f=e.ref(n.height),{stop:r}=we(t,([d])=>{const h=s==="border-box"?d.borderBoxSize:s==="content-box"?d.contentBoxSize:d.devicePixelContentBoxSize;if(l&&a.value){const g=K(t);if(g){const c=l.getComputedStyle(g);i.value=Number.parseFloat(c.width),f.value=Number.parseFloat(c.height)}}else if(h){const g=Array.isArray(h)?h:[h];i.value=g.reduce((c,{inlineSize:m})=>c+m,0),f.value=g.reduce((c,{blockSize:m})=>c+m,0)}else i.value=d.contentRect.width,f.value=d.contentRect.height},o);Ne(()=>{const d=K(t);d&&(i.value="offsetWidth"in d?d.offsetWidth:n.width,f.value="offsetHeight"in d?d.offsetHeight:n.height)});const u=e.watch(()=>K(t),d=>{i.value=d?n.width:0,f.value=d?n.height:0});function M(){r(),u()}return{width:i,height:f,stop:M}}const ke=1;function ft(t,n={}){const{throttle:o=0,idle:l=200,onStop:s=J,onScroll:a=J,offset:i={left:0,right:0,top:0,bottom:0},eventListenerOptions:f={capture:!1,passive:!0},behavior:r="auto",window:u=le,onError:M=w=>{console.error(w)}}=n,d=e.ref(0),h=e.ref(0),g=e.computed({get(){return d.value},set(w){m(w,void 0)}}),c=e.computed({get(){return h.value},set(w){m(void 0,w)}});function m(w,C){var B,$,D;if(!u)return;const E=V(t);!E||(D=E instanceof Document?u.document.body:E)==null||D.scrollTo({top:(B=V(C))!=null?B:c.value,left:($=V(w))!=null?$:g.value,behavior:V(r)})}const y=e.ref(!1),N=e.reactive({left:!0,right:!1,top:!0,bottom:!1}),v=e.reactive({left:!1,right:!1,top:!1,bottom:!1}),p=w=>{!y.value||(y.value=!1,v.left=!1,v.right=!1,v.top=!1,v.bottom=!1,s(w))},T=oe(p,o+l),O=w=>{var C;if(!u)return;const B=((C=w?.document)==null?void 0:C.documentElement)||w?.documentElement||K(w),{display:$,flexDirection:D}=getComputedStyle(B),E=B.scrollLeft;v.left=E<d.value,v.right=E>d.value;const S=Math.abs(E)<=(i.left||0),b=Math.abs(E)+B.clientWidth>=B.scrollWidth-(i.right||0)-ke;$==="flex"&&D==="row-reverse"?(N.left=b,N.right=S):(N.left=S,N.right=b),d.value=E;let x=B.scrollTop;w===u.document&&!x&&(x=u.document.body.scrollTop),v.top=x<h.value,v.bottom=x>h.value;const I=Math.abs(x)<=(i.top||0),A=Math.abs(x)+B.clientHeight>=B.scrollHeight-(i.bottom||0)-ke;$==="flex"&&D==="column-reverse"?(N.top=A,N.bottom=I):(N.top=I,N.bottom=A),h.value=x},_=w=>{var C;if(!u)return;const B=(C=w.target.documentElement)!=null?C:w.target;O(B),y.value=!0,T(w),a(w)};return se(t,"scroll",o?Te(_,o,!0,!1):_,f),Ne(()=>{try{const w=V(t);if(!w)return;O(w)}catch(w){M(w)}}),se(t,"scrollend",p,f),{x:g,y:c,isScrolling:y,arrivedState:N,directions:v,measure(){const w=V(t);u&&w&&O(w)}}}let Mt=0;function ve(t,n={}){const o=e.ref(!1),{document:l=it,immediate:s=!0,manual:a=!1,id:i=`vueuse_styletag_${++Mt}`}=n,f=e.ref(t);let r=()=>{};const u=()=>{if(!l)return;const d=l.getElementById(i)||l.createElement("style");d.isConnected||(d.id=i,n.media&&(d.media=n.media),l.head.appendChild(d)),!o.value&&(r=e.watch(f,h=>{d.textContent=h},{immediate:!0}),o.value=!0)},M=()=>{!l||!o.value||(r(),l.head.removeChild(l.getElementById(i)),o.value=!1)};return s&&!a&&Ne(u),a||De(M),{id:i,css:f,unload:M,load:u,isLoaded:e.readonly(o)}}function gt(t,n,o){const l=t.style[n];return l!=o&&(t.style[n]=o),{reset(){l!=o&&(t.style[n]=l)}}}function be(t,n){const{scrollEndHook:o,itemHeight:l,overscan:s=5}=n,a=e.ref(null),i=dt(a),f=e.ref(!0),r=oe(O,100);let u;const M=e.shallowRef(t),d=e.ref(0),h=e.ref({start:0,end:10}),g=e.ref({start:0,end:s});let c=0;const m=e.ref([]),y=e.computed(()=>{let{sum:I,height:A}={sum:0,height:0};return M.value.map((Q,Y)=>(typeof l=="number"?A=l:A=l(Y),I+=A,{height:A,sum:I}))}),N=e.computed(()=>$(h.value.start)),v=e.computed(()=>typeof l=="number"?y.value.length*l:y.value[y.value.length-1]?.sum||0),p=e.computed(()=>{const{start:I,end:A}=g.value;return m.value.slice(I,A)});e.onMounted(()=>{}),e.onUnmounted(()=>cancelAnimationFrame(u)),e.watch(M,()=>{(i.width.value||i.height.value)&&_()},{deep:!0}),e.watch([i.width,i.height],([I,A])=>{(I||A)&&_()},{deep:!0}),e.watch(d,()=>{T(),r()});function T(){f.value=!1}function O(){f.value=!0,o?.()}function _(){cancelAnimationFrame(u),u=requestAnimationFrame(w)}function w(){if(a.value){d.value=a.value.scrollTop;let I=C(d.value);c=B(I);let A=Math.max(0,I-s),Q=Math.min(I+c+s,M.value.length);h.value={start:A,end:Q},m.value=M.value.slice(A,Q).map((Y,k)=>({data:Y,index:k+A})),g.value.start=I-A,g.value.end=g.value.start+c}}function C(I){let A=0,Q=y.value.length-1,Y=-1;for(;A<=Q;){const k=Math.floor((A+Q)/2);y.value[k].sum>=I?(Y=k,Q=k-1):A=k+1}return Math.max(0,Y)}function B(I){let A=0,Q=0;for(let Y=I;Y<y.value.length&&(A++,Q+=y.value[Y].height,!(Q>=i.height.value));Y++);return A}function $(I){if(typeof l=="number")return I*l;let A=y.value[I];return A?A.sum-A.height:0}function D(I){return y.value[I]||{sum:0,height:0}}function E(I,A="smooth"){if(a.value){const{reset:Q}=gt(a.value,"scrollBehavior",A),Y=D(I);a.value.scrollTop=Y.sum-Y.height,w(),Q()}if(a.value){const Q=D(I);a.value.scrollTop=Q.sum-Q.height,w()}}const S=e.computed(()=>({style:{width:"100%",height:`${v.value}px`,pointerEvents:f.value?void 0:"none"}})),b=e.computed(()=>({style:{transform:`translate3d(0, ${N.value}px, 0)`,"will-change":"transform"}})),x={overflowY:"auto"};return{list:m,visiableList:p,getItemHeightData:D,getoffsetTopIndex:C,totalHeight:v,clientHeight:i.height,scrollTo:E,scrollTop:d,isScrollEnd:f,containerProps:{ref:a,onScroll:()=>{_()},style:x},wrapperProps:S,innerProps:b}}const Ee=Symbol(),ae=Symbol(),ie=Symbol(),re=Symbol(),ce=Symbol(),ue=Symbol(),de=Symbol(),fe=Symbol(),Me=Symbol(),ee=Symbol(),ge=Symbol();function mt(){const{voidFn:t,boolFn:n,boolRef:o,numberRef:l,arrayRef:s}={voidFn:y=>{},boolFn:y=>!1,boolRef:e.computed(()=>!1),numberRef:e.computed(()=>0),arrayRef:e.computed(()=>[])},a=e.inject(Ee,"id"),i=e.inject(ce,s),f=e.inject(re,n),r=e.inject(Me,o),u=e.inject(ie,t),M=e.inject(ae,t),d=e.inject(ue,t),h=e.inject(de,t),g=e.inject(fe,t),c=e.inject(ee,t),m=e.inject(ge,l);return{itemKey:a,selected:i,isSelected:f,isAllSelected:r,toggle:u,toggleAll:M,select:d,selectAll:h,unselect:g,unselectAll:c,selectedCount:m}}function ht(t,n,o={deep:!0,useAllFlagOptimizatiofn:!0}){const l=e.ref(!1),s=e.ref(new Set),a=e.reactive(new Map);e.watch(t,p=>{a.clear(),p.forEach(T=>{a.has(T[n])||a.set(T[n],T)}),v()},{deep:o.deep,immediate:!0}),e.onScopeDispose(()=>{l.value=!1,s.value.clear(),a.clear()});const i=e.computed(()=>{let p=[];if(l.value!=null)l.value&&(p=Array.from(a.values()));else if(s.value.size){let T;s.value.forEach(O=>{T=a.get(O),T&&p.push(T)})}return p}),f=e.computed(()=>{let p=0;return l.value!=null?l.value&&(p=a.size):p=s.value.size,p}),r=e.computed(()=>{let p;if(l.value!=null)p=l.value;else{const T=s.value.size,O=a.size;p=T==O}return p});function u(){l.value=!0}function M(){l.value=!1}function d(p){a.has(p)&&s.value.add(p)}function h(p){m(()=>{p.forEach(T=>{d(T[n])})})}function g(p){m(()=>{p.forEach(T=>{s.value.delete(T[n])})})}function c(p){return l.value!=null?l.value:s.value.has(p[n])}function m(p){l.value!=null&&(l.value?s.value=new Set(Array.from(a.keys())):s.value=new Set),p(),o.useAllFlagOptimizatiofn?s.value.size==0?l.value=!1:s.value.size==a.size?l.value=!0:l.value=null:l.value=null}function y(p){m(()=>{p.forEach(T=>{c(T)?s.value.delete(T[n]):d(T[n])})})}function N(){const{value:p}=r;p?M():u()}function v(){const p=[];s.value.forEach(T=>{a.get(T)||p.push(T)}),p.forEach(T=>s.value.delete(T))}return e.provide(Ee,n),e.provide(ae,N),e.provide(ie,y),e.provide(re,c),e.provide(ce,i),e.provide(ue,h),e.provide(de,u),e.provide(fe,g),e.provide(Me,r),e.provide(ee,M),e.provide(ee,M),e.provide(ge,f),{selected:i,select:h,selectAll:u,unselect:g,unselectAll:M,toggle:y,toggleAll:N,isSelected:c,isAllSelected:r,selectedCount:f}}function pt(t){const n=e.ref(!1),o=e.ref(new Set),l=e.computed(()=>{let c=[];return n.value!=null?n.value&&(c=t.value):o.value.size&&(c=Array.from(o.value.values())),c}),s=e.computed(()=>{let c=0;return n.value!=null?n.value&&(c=t.value.length):c=o.value.size,c}),a=e.computed(()=>{let c;if(n.value!=null)c=n.value;else{const m=o.value.size,y=t.value.length;c=m==y}return c});function i(){n.value=!0}function f(){n.value=!1}function r(c){d(()=>{c.forEach(m=>{o.value.add(m)})})}function u(c){d(()=>{c.forEach(m=>{o.value.delete(m)})})}function M(c){return n.value!=null?n.value:o.value.has(c)}function d(c){n.value!=null&&(n.value?o.value=new Set(Array.from(t.value)):o.value=new Set),c(),o.value.size==0?n.value=!1:o.value.size==t.value.length?n.value=!0:n.value=null}function h(c){d(()=>{c.forEach(m=>{M(m)?o.value.delete(m):o.value.add(m)})})}function g(){const{value:c}=a;c?f():i()}return e.provide(ae,g),e.provide(ie,h),e.provide(re,M),e.provide(ce,l),e.provide(ue,r),e.provide(de,i),e.provide(fe,u),e.provide(Me,a),e.provide(ee,f),e.provide(ee,f),e.provide(ge,s),{selected:l,select:r,selectAll:i,unselect:u,unselectAll:f,toggle:h,toggleAll:g,isSelected:M,isAllSelected:a,selectedCount:s}}function Ie(t){return()=>{console.debug(`\u9ED8\u8BA4${t}\u65B9\u6CD5,\u9700\u8981\u81EA\u5B9A\u4E49\u751F\u6548`)}}function ze({key:t,customAttributeValue:n,attribute:o,selectWay:l="colum",scrollOptions:s={},getSelectMap:a=()=>({})}){const{select:i=Ie("\u9009\u62E9"),unselect:f=Ie("\u53D6\u6D88\u9009\u62E9"),unselectAll:r=Ie("\u53D6\u6D88\u5168\u9009")}=a();let u={};const M=e.computed(()=>Te(l==="colum"?Hn:Fn,50)),d=e.computed(()=>t??o),h=(()=>n?L=>n(L):L=>L)(),g=new Set,c=e.ref(!0),m=e.ref(),y=e.ref(!1),N=e.ref({x:0,y:0}),v=e.ref({x:0,y:0,scrollTop:0}),p=e.ref({}),T=e.ref({top:0,height:0,sync(L=!1){T.value.top=m.value?.scrollTop||0,L&&(T.value.height=m.value?.scrollHeight||0)}}),O=e.computed(()=>y.value?{left:Math.min(N.value.x,v.value.x)-p.value.left,top:Math.min(N.value.y,v.value.y)-p.value.top,width:Math.abs(N.value.x-v.value.x),height:Math.abs(N.value.y-v.value.y)}:{left:0,top:0,width:0,height:0}),_=e.ref(!1),{margin:w=50,startSpeed:C=30,maxSpeed:B=30}=s;let $;const D=w,E=C,S=B,b=L=>L**1;let x=0;function I(L){if(cancelAnimationFrame($),x=A(L),x=Math.max(Math.min(x,S),-S),x!==0){const j=m.value;if(!j||!y.value)return;const P=T.value.height-p.value.height;let U=T.value.top+Number(x);U=Math.min(Math.max(0,U),P),j.scrollTop=U,Y(),$=requestAnimationFrame(()=>I(L))}}function A(L){if(m.value){const P=p.value,U=P.bottom-L;if(U<D)return E*b(1-U/D);const X=L-P.top;if(X<D)return-E*b(1-X/D)}return 0}function Q(L){const j={...O.value,right:0,bottom:0};return j.left+=p.value.left,j.top+=p.value.top-T.value.top,j.right=j.width+j.left,j.bottom=j.height+j.top,j.left<L.right&&j.right>L.left&&j.top<L.bottom&&j.bottom>L.top}function Y(){T.value.sync();const{top:L,height:j}=T.value;v.value.y=Math.min(j+p.value.top,v.value.y+L-v.value.scrollTop),v.value.scrollTop=L}function k(L,j,P="dynamic-styles"){let U=document.getElementById(P);U||(U=document.createElement("style"),U.id=P,document.head.appendChild(U));const X=U.sheet.cssRules,q=X.length,Se=`${L} { ${j} }`;for(let ne=0;ne<q;ne++){const pe=X[ne];if(pe.selectorText===L&&pe.style.cssText===j)return}U.sheet.insertRule(Se,q)}function R(L,j){c.value=!0,y.value=!0,T.value.sync(!0);const P=j+T.value.top;N.value.x=L,N.value.y=P,v.value.x=L,v.value.y=P,m.value?.classList.add("disable-scroll-behavior"),g.clear()}function F(L,j,P){!y.value||(c.value&&l==="colum"&&!he()&&(_.value||r(),c.value=!1),P?.(),I(j),v.value.x=Math.max(L,p.value.left),v.value.y=Math.min(j+T.value.top,T.value.height+p.value.top),v.value.scrollTop=T.value.top,M.value())}function H(){y.value=!1,m.value?.classList.remove("disable-scroll-behavior")}function G(){!y.value||(x||Y(),M.value())}function he(){if(!y.value)return!1;const{width:L,height:j}=O.value;return!(Math.max(L,j)>5)}function $n(){he()&&r()}function Hn(){he()||m.value?.querySelectorAll(`[${o}]`).forEach(L=>{u[d.value]=h(L.getAttribute(`${o}`)),Q(L.getBoundingClientRect())?i([u]):_.value||f([u])})}function Fn(){const L=[];let j=null,P=0;m.value?.querySelectorAll(`[${o}]`).forEach((U,X)=>{const q=h(U.getAttribute(`${o}`));L.push(q),Q(U.getBoundingClientRect())?(j===null&&(j=X),j=Math.min(j,X),P=Math.max(P,X)):(u[d.value]=q,g.has(q)&&f([u]))});for(let U=j;U<P+1;U++)u[d.value]=L[U],i([u]),g.add(L[U])}function Ge(){if(!p.value)return!0;const{left:L,right:j,top:P,bottom:U}=p.value,X=window.innerWidth,q=window.innerHeight,Se=j<=0,ne=L>=X,pe=U<=0,Xn=P>=q;return Se||ne||pe||Xn}function Vn(){Ge()&&qe()}function qe(L=100,j=3){if(!m.value)return;let P=0;const U=()=>{!m.value||(p.value=m.value.getBoundingClientRect(),Ge()&&P<j&&(P++,setTimeout(U,L)))};U()}function Wn(L){return!L?.value||(m.value=L.value,!m?.value)?!1:(qe(),k(".disable-scroll-behavior","scroll-behavior: unset !important;"),!0)}return{init:Wn,dragStart:R,dragMove:F,dragEnd:H,onScroll:G,isSingleClick:he,cancelSelectAllBySingleClick:$n,selectFn:M,getAttributeValue:h,checkAndUpdateRect:Vn,incrementalSelect:_,selectRange:O,isPressing:y,containerEl:m}}function yt(t,n=!1){const o=ze(t),{selectRange:l}=o,{onScroll:s,dragStart:a,dragMove:i,dragEnd:f,cancelSelectAllBySingleClick:r}=o,u=e.computed(()=>({left:`${l.value.left}px`,top:`${l.value.top}px`,width:`${l.value.width}px`,height:`${l.value.height}px`})),{load:M}=ve(`.drag-select-box {
2
2
  position: absolute;
3
3
  z-index: 99999;
4
4
  background-color: rgb(191 219 254);
@@ -11,10 +11,10 @@
11
11
  .${s} {
12
12
  opacity: 0;
13
13
  animation: lzcDelayLoad 0s ${a} forwards;
14
- }`),{LoadingComp:e.defineComponent({setup(){const f=ut();return e.onMounted(()=>{f.value?.classList?.add(s)}),()=>e.h(t,n)}})}}function vt({component:t,componentProps:n,delay:o=300}){const{LoadingComp:l}=Ae({component:t,componentProps:n,delay:o}),s=e.ref(!1);function a(){s.value=!0}function i(){s.value=!1}return{LoadingComp:l,loading:s,load:a,unload:i}}const Et=[(t=>(e.pushScopeId("data-v-92a1804d"),t=t(),e.popScopeId(),t))(()=>e.createElementVNode("div",{class:"ldio-mm5gwljcryb"},[e.createElementVNode("div")],-1))],It=e.defineComponent({__name:"DefaultLoading",props:{width:{default:24},height:{default:24}},setup(t){return e.useCssVars(n=>({"4e4a9ce4":t.width+"px",e56fe5c2:t.height+"px"})),(n,o)=>(e.openBlock(),e.createElementBlock("div",e.normalizeProps(e.guardReactiveProps(n.$attrs)),Et,16))}}),qn="",Qe=W(It,[["__scopeId","data-v-92a1804d"]]),zt="data:image/png;base64,iV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u639ycRuN3/UMLYCAbktSFKkrVvcf2LQV74lW8jChRMzOfxpv/2uhHHrYDokYVYab4acWhjZU7yLWIt3w/1Uklo+D1nV/+xyqc3Bt3O11JCMmb9nn/WH3s8C68Id0QV9CV9I/6P1jUg5x4Tgar6hLoQgX9nH69/dRiy+Eh3fhofMl7QSoE4qT6Z/0Hb2tuTjyFJ10gLlTSleKzPMXx7FL75OUSUCjm11TW6yMYRBfpAURwUZroxzs+rOuaRnb4C1Ks/ZoFCNUFAZTg4oFiQeiJi4gJlOJKasnf6T38v3ZspAsv2hYq6YFCqZXFEsyDhAguVK/FiuPxvZ0X79DnDW/nM94DodRu/G+wEOriAQIlqfjNP+n7dokGcnirPma93jJf73ALWF00xVE/3HdsGc605vk6Nydb0GN38y4UqV7BjE/ggv48NfZE3UH2F3Kp4Zn6aTweAAAAAElFTkSuQmCC",At={class:"loading-wrap"},Lt=["src"],Ct=e.defineComponent({__name:"PageLoading",props:{delay:{default:"0.15s"},size:{default:"mini"}},setup(t){const n=t;e.useCssVars(l=>({b1cf73a8:t.delay}));const o=e.computed(()=>{const l={};return n.size==="mini"?(l.width="22px",l.height="22px"):n.size==="large"&&(l.width="28px",l.height="28px"),l});return(l,s)=>(e.openBlock(),e.createElementBlock("div",At,[e.createElementVNode("img",{class:"loading-circle",src:e.unref(zt),style:e.normalizeStyle(e.unref(o))},null,12,Lt)]))}}),Jn="",jt=W(Ct,[["__scopeId","data-v-3c54972f"]]);async function Le(t){return new Promise(n=>setTimeout(()=>n(),t))}const St="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTJweCIgaGVpZ2h0PSIxMnB4IiB2aWV3Qm94PSIwIDAgMTIgMTIiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICAgIDxnIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPg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WiBNNy4yNzIxMzc5Myw3LjI3MjEzNzkzIEM3LjU0MzcxMTI3LDcuMDAwNTE0MTQgNy45MTIwNzQwNCw2Ljg0NzkxMzI0IDguMjk2MTcyNDEsNi44NDc5MTMyNCBDOC42ODAyNzA3OSw2Ljg0NzkxMzI0IDkuMDQ4NjMzNTYsNy4wMDA1MTQxNCA5LjMyMDIwNjksNy4yNzIxMzc5MyBMMTQuNTg2OTY1NSwxMi41Mzg4OTY2IEMxNC44NTg1ODkzLDEyLjgxMDQ2OTkgMTUuMDExMTkwMiwxMy4xNzg4MzI3IDE1LjAxMTE5MDIsMTMuNTYyOTMxIEMxNS4wMTExOTAyLDEzLjk0NzAyOTQgMTQuODU4NTg5MywxNC4zMTUzOTIyIDE0LjU4Njk2NTUsMTQuNTg2OTY1NSBDMTQuMzE1MzkyMiwxNC44NTg1ODkzIDEzLjk0NzAyOTQsMTUuMDExMTkwMiAxMy41NjI5MzEsMTUuMDExMTkwMiBDMTMuMTc4ODMyNywxNS4wMTExOTAyIDEyLjgxMDQ2OTksMTQuODU4NTg5MyAxMi41Mzg4OTY2LDE0LjU4Njk2NTUgTDcuMjcyMTM3OTMsOS4zMjAyMDY5IEM3LjAwMDUxNDE0LDkuMDQ4NjMzNTYgNi44NDc5MTMyNCw4LjY4MDI3MDc5IDYuODQ3OTEzMjQsOC4yOTYxNzI0MSBDNi44NDc5MTMyNCw3LjkxMjA3NDA0IDcuMDAwNTE0MTQsNy41NDM3MTEyNyA3LjI3MjEzNzkzLDcuMjcyMTM3OTMgWiI+PC9wYXRoPgogICAgICAgICAgICA8L2c+CiAgICAgICAgPC9nPgogICAgICAgIDwvZz4KICAgIDwvZz4KPC9zdmc+",_t=["onClick"],Ot=["onClick"],kt=["src"],bt=["src"],Bt=e.defineComponent({__name:"index",props:{visible:null,message:{default:""},duration:{default:2e3},width:{default:void 0},maxWidth:{default:void 0},showIcon:{type:Boolean,default:!1},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},captureEventP:{type:Boolean,default:!0}},emits:["close"],setup(t,{emit:n}){const o=t,l="lzc-loading-toast",s=e.computed(()=>{let u={};return o.captureEventP&&(u.pointerEvents="none"),u}),a=e.computed(()=>{let u={padding:"12px"};return(o.icon||o.showIcon)&&(u.padding="20px"),o.width&&(u.width=o.width),o.maxWidth&&(u.maxWidth=o.maxWidth),o.overlayContentStyle&&(u={...u,...o.overlayContentStyle}),u}),i=e.computed(()=>{let u={};return o.showClose&&!o.icon&&(u.paddingRight="16px"),u});function f(){o.closeOnClickOverlay&&n("close")}function r(){o.closeOnClick&&n("close")}return(u,M)=>(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} ${t.className}`),onClick:e.withModifiers(f,["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(a))},[t.showClose?(e.openBlock(),e.createElementBlock("img",{key:0,onClick:M[0]||(M[0]=e.withModifiers(d=>n("close"),["stop"])),src:e.unref(St),class:e.normalizeClass(`${l}-close`)},null,10,kt)):e.createCommentVNode("",!0),t.showIcon?(e.openBlock(),e.createElementBlock("img",{key:1,src:t.icon||e.unref(xt),class:e.normalizeClass(`${l}-icon`)},null,10,bt)):e.createCommentVNode("",!0),t.message?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(`${l}-message`),style:e.normalizeStyle(e.unref(i))},e.toDisplayString(t.message),7)):e.createCommentVNode("",!0)],6)],10,Ot)],10,_t),[[e.vShow,t.visible]])],4)]),_:1}))}}),eo="",to="",Qt=W(Bt,[["__scopeId","data-v-0947d1e3"]]);class Ye{loadingToast;el;options;visible=e.ref(!1);animateDuration=300;constructor(n){this.options={...n,visible:this.visible},this.options.duration==null&&(this.options.duration=60*10*1e3),this.el=document.createElement("div"),this.loadingToast=Qt}async show(){const n=this.options,l={...n,onClose:()=>{this.close(),n?.onClose?.()}},s=e.createVNode(this.loadingToast,l);e.render(s,this.el),document.body.insertBefore(this.el,document.body.firstChild),this.visible.value=!0,n.duration!==0&&setTimeout(()=>{this.destory()},n.duration),await Le(n.duration+this.animateDuration)}async destory(){!this.visible.value||(this.visible.value=!1,await new Promise(n=>{setTimeout(()=>{if(!this.el){n();return}document.body.removeChild(this.el),n()},this.animateDuration-10)}))}close(){document.querySelector("#lzc-loading-toast")?.remove()}}function Yt(t,n){const o=!!n?.debug,l=n?.printErrorLog!==!1,s=n?.loading!==!1,a=n?.autoClose!==!1,i=n?.delay!==void 0?n.delay:300,f=n?.hook!==void 0?n.hook:!0,r={...n,showIcon:n?.showIcon!==!1,captureEventP:n?.captureEventP===!0};o&&console.log("useDelayAsync - loading: %s autoClose: %s delay: %s loadingToastOptions: %o",s,a,i,r);const u=e.ref(!1);let M=null;const d=new Ye(r);async function h(...c){if(o&&console.log(`useDelayAsync - handler - processing: ${u.value}`),!u.value){u.value=!0,M=setTimeout(()=>{o&&console.log("useDelayAsync - handler - setTimeout - loading: %s processing: %s",s,u.value),s&&(!u.value||d.show())},i);try{o&&console.time("useDelayAsync - handler-execute-time");const m=await t(...c);return o&&console.log("useDelayAsync - execute res: ",m),o&&console.timeEnd("useDelayAsync - handler-execute-time"),await g(a),await n?.onSuccess?.(m,[...c]),m}catch(m){o&&console.timeEnd("useDelayAsync - handler-execute-time"),l&&console.error(m),await g(a),await n?.onError?.(m,[...c])}}}async function g(c=!0){o&&console.log("useDelayAsync - close - closeLoading: ",c),u.value=!1,M&&clearTimeout(M),M=null,c&&await d.destory()}return f&&e.onBeforeUnmount(()=>{o&&console.log("useDelayAsync - onBeforeUnmount - close"),g()}),{processing:u,handler:h,close:g}}function Ut(t,n){return t>n?"horizontal":n>t?"vertical":""}function Rt(){const t=e.ref(0),n=e.ref(0),o=e.ref(0),l=e.ref(0),s=e.ref(0),a=e.ref(0),i=e.ref(""),f=()=>i.value==="vertical",r=()=>i.value==="horizontal",u=()=>{o.value=0,l.value=0,s.value=0,a.value=0,i.value=""};function M(h,g){u(),t.value=h,n.value=g}function d(h,g){o.value=(h<0?0:h)-t.value,l.value=g-n.value,s.value=Math.abs(o.value),a.value=Math.abs(l.value);const c=10;(!i.value||s.value<c&&a.value<c)&&(i.value=Ut(s.value,a.value))}return{move:d,start:M,reset:u,startX:t,startY:n,deltaX:o,deltaY:l,offsetX:s,offsetY:a,direction:i,isVertical:f,isHorizontal:r}}const Ue=250,Re=5,Pt=500;function $t(t){const{isDouble:n=!0}=t;let o,l;function s(){o=Date.now()}async function a(i,f){const r=Date.now()-o;i<Re&&f<Re&&(r<Ue?n?l?(clearTimeout(l),l=null,t.onDoubleTap?.()):l=setTimeout(async()=>{t.onTap?.(),l=null},Ue):t.onTap?.():r>Pt&&t.onLongPress?.())}return{startTap:s,checkTap:a}}function Ht(t,n){const o=e.ref(!1);function l(){o.value||(o.value=!0,e.unref(t)?.addEventListener("transitionend",s))}function s(){e.unref(t)?.removeEventListener("transitionend",s),o.value=!1,n.onComplate?.()}return{transitioning:o,startTransition:l}}function Ft(t,n,o,l){var s=Math.min(o/t,l/n),a=t*s,i=n*s;return{width:Z(a),height:Z(i)}}function Vt(t){return t<3?"444ms":t<6?"555ms":"666ms"}function Ce(t,n,o){return Math.min(Math.max(t,n),o)}function Z(t,n=2){return parseFloat(t.toFixed(n))}function me(t,n,o){return t=Z(t),n=Z(n),`translate3d(${t}px, ${n}px, 0) scale3d(${o},${o},${o})`}function Pe(t){return Math.sqrt((t[0].clientX-t[1].clientX)**2+(t[0].clientY-t[1].clientY)**2)}function Wt(t){return{x:(t[0].clientX+t[1].clientX)/2,y:(t[0].clientY+t[1].clientY)/2}}function $e(t){const n=e.ref(!1),o=e.ref(1),l=e.ref(9),s=e.ref(),a=e.ref(),i=e.ref({width:0,height:0}),f=e.ref({width:0,height:0}),r=e.reactive({level:1,offsetX:0,offsetY:0,zooming:!1,preview:!0,lastCenter:{x:0,y:0}}),u=e.ref({}),M=Rt(),d=Ht(a,{onComplate(){r.preview||y()}}),h=$t({onTap(){t.onTap?.()},onDoubleTap(){t.onDoubleTap?.()},onLongPress(){t.onLongPress?.()}});we(a,D=>g(D)),e.watch([s,a],([D,E])=>{c(D,E)},{immediate:!0});async function g(D){const[E]=D;E.contentRect.width==f.value.width&&E.contentRect.height==f.value.height||(await c(s.value),await y(r.level,!0))}async function c(D,E){await C(D,E),D&&B()}async function m(D){if(!r.preview)return;r.preview=!1,D=D??r.level;const E=a.value;if(!E)return;const{scrollTop:x,scrollLeft:b}=E,{width:_,height:I}=i.value,{scaleW:A,scaleH:Q}=j(D),{top:Y,left:k}=w(A,Q),R=k!=0?k:b*-1,F=Y!=0?Y:x*-1;E.scrollTop=0,E.scrollLeft=0;const{value:H}=u;H.width=`${_}px`,H.height=`${I}px`,H.maxHeight="none",H.transitionDuration="0s",H.transform=me(R,F,D),u.value=H,await e.nextTick(),r.offsetX=R,r.offsetY=F,await Le(20)}async function y(D,E){if(!E&&r.preview)return;r.preview=!0,D=D??r.level;const{value:x}=u,{scaleW:b,scaleH:_}=j(D),{left:I,top:A}=w(b,_);D===1&&(x.maxHeight="100%"),x.width=`${b}px`,x.height=`${_}px`,x.transitionDuration="0s",x.transform=me(I,A,1),u.value=x,await e.nextTick();const Q=a.value;if(!Q)return;const{offsetX:Y,offsetY:k}=r;Y<0&&(Q.scrollLeft=Math.abs(Y)),k<0&&(Q.scrollTop=Math.abs(k))}async function N(D,E,x){if(n.value||(D=Z(D),D=Ce(D,o.value-o.value*.5,l.value+l.value*.5),D==r.level))return;r.preview&&await m(),E||(E={x:M.startX.value,y:M.startY.value});const{value:b}=u,{width:_,height:I}=i.value,{scaleW:A,scaleH:Q}=j(D),{top:Y,left:k}=w(A,Q),R=D/r.level,F={left:Math.abs(_*D-f.value.width)*-1,top:Math.abs(I*D-f.value.height)*-1,right:k,bottom:Y};let H=k!=0?k:(r.offsetX-E.x)*R+E.x,G=Y!=0?Y:(r.offsetY-E.y)*R+E.y;H=Z(Ce(H,F.left,F.right)),G=Z(Ce(G,F.top,F.bottom)),b.width=`${_}px`,b.height=`${I}px`,b.transitionDuration=x?Vt(D):"0s",b.transform=me(H,G,D),r.offsetX=H,r.offsetY=G,r.level=D,u.value=b,await e.nextTick(),x&&d.startTransition(),t.onScale?.(D)}function v(){const D=r.level>1?1:O();N(D,void 0,!0)}function p(D,E){if(!r.preview)return;const x=a.value;!x||x.scrollTo({left:r.offsetX-D,top:r.offsetY-E})}async function T(){r.level>=o.value&&r.level<=l.value?r.zooming&&await y():r.level<o.value?await N(o.value,void 0,!0):r.level>l.value&&await N(l.value,r.lastCenter,!0),r.zooming=!1}function O(){const{width:D,height:E}=i.value,{width:x,height:b}=f.value,_=2.5;let I;return E==b?(I=x/D,I-1<.1&&(I=_)):I=Math.max(_,x/D,b/E),I}function j(D){const{width:E,height:x}=i.value;return{scaleW:Z(D*E),scaleH:Z(D*x)}}function w(D,E){const{width:x,height:b}=f.value,_=Math.max(0,(b-E)*.5),I=Math.max(0,(x-D)*.5);return{top:_,left:I}}async function C(D,E){if(D=D??s.value,E=E??a.value,!E)return;let x,{clientWidth:b=0,clientHeight:_=0}=D||{};const{clientWidth:I,clientHeight:A}=E;if(D instanceof HTMLImageElement?x={width:D.naturalWidth,height:D.naturalHeight}:D instanceof HTMLVideoElement&&(x={width:D.videoWidth,height:D.videoHeight}),x){const Q=Ft(x.width,x.height,I,A);b=Q.width,_=Q.height}(b===0||_===0)&&(b=i.value.width||I,_=i.value.height||A),i.value={width:Math.min(b,I),height:Math.min(_,A)},f.value={width:I,height:A},y(void 0,!0)}function B(){const D=O();l.value=Math.max(l.value,D*2)}function $(D){n.value=D}return{touch:M,state:r,style:u,gesture:h,transition:d,imageRef:s,containerRef:a,switchToZoom:m,switchToPreview:y,panTo:p,zoomTo:N,zoomFinished:T,toggleZoom:v,setDisableZoom:$}}function He(t,n){const{state:o,touch:l,transition:s,containerRef:a}=t,i=ft(a);let f,r;function u(h){f=h}function M(h){return f==h}function d(h,g,c,m){i.measure();const{top:y,left:N,right:v,bottom:p}=i.arrivedState;if(h=="start")r=y||N||v||p;else if(f==2)r=!1;else if(r){if(l.direction.value=="vertical")if(o.level!=1)r=!1;else{const T=l.startY.value<c;r=y&&T||p&&!T}else if(l.direction.value=="horizontal"){const T=l.startX.value<g;r=N&&T||v&&!T}}r&&s.transitioning.value&&(r=!1,m?.preventDefault()),h=="end"&&!r&&(g=l.startX.value,c=l.startY.value,r=!0),(h!="move"||r)&&n?.(h,l.direction.value,g,c,m)}return{onSwipeEdge:d,setFingerNum:u,isEqualFingerNum:M}}function Xt(t){const n=$e({onDoubleTap(){n.toggleZoom()},...t}),{state:o,touch:l,gesture:s,transition:a}=n;let i=!1,f=null;const r={top:0,left:0},u=oe(y,150),{onSwipeEdge:M}=He(n,t.onSwipeEdge),d=e.ref({top:0,left:0});se("keyup",v),se("keydown",N);function h(p){const T=n.containerRef.value;if(!T)return;const{left:O,top:j}=T.getBoundingClientRect();d.value.left=O,d.value.top=j,s.startTap();let w=p.clientX-O,C=p.clientY-j;l.start(w,C),M("start",w,C,p),a.transitioning.value||(i=!0,r.left=O,r.top=j,o.offsetX=T.scrollLeft,o.offsetY=T.scrollTop),window.addEventListener("pointermove",g),window.addEventListener("pointerup",c)}function g(p){if(!i)return;let T=p.clientX,O=p.clientY;l.move(T,O),M("move",T-d.value.left,O-d.value.top,p),o.level!==1&&n.panTo(l.deltaX.value-r.left,l.deltaY.value-r.top)}function c(p){M("end",l.offsetX.value,l.offsetY.value,p),s.checkTap(l.offsetX.value,l.offsetY.value),l.reset(),i=!1,window.removeEventListener("pointermove",g),window.removeEventListener("pointerup",c)}function m(p){if(!p.ctrlKey)return;o.zooming||(o.zooming=!0,f=="Control"&&window.addEventListener("keyup",y)),p.preventDefault();let T=-p.deltaY;p.deltaMode===1?T*=.05:T*=p.deltaMode?1:.002,f!="Control"&&(T*=10),T=2**T;const O=o.level*T;o.lastCenter={x:p.clientX-d.value.left,y:p.clientY-d.value.top},n.zoomTo(O,o.lastCenter),f!="Control"&&u()}function y(){n.zoomFinished(),window.removeEventListener("keyup",y)}function N(p){f=p.key}function v(){f=null}return{core:n,onPointerDown:h,onWheel:m}}function Kt(t){const n=$e({onDoubleTap(){n.toggleZoom()},...t}),{state:o,touch:l,gesture:s}=n,{setFingerNum:a,onSwipeEdge:i,isEqualFingerNum:f}=He(n,t.onSwipeEdge);let r,u;async function M(g){const{touches:c}=g;a(c.length),o.zooming=f(2),s.startTap();const{clientX:m,clientY:y}=c[0];l.start(m,y),i("start",m,y,g),o.zooming&&(g.preventDefault(),r=o.level,u=Pe(c),await n.switchToZoom(),o.lastCenter=Wt(c))}async function d(g){const{touches:c}=g;a(c.length);const{clientX:m,clientY:y}=c[0];if(l.move(m,y),i("move",m,y,g),o.zooming&&f(2)){g.preventDefault();const N=Pe(c),v=r*N/u;n.zoomTo(v,o.lastCenter)}}async function h(g){if(g.touches.length)return;const{clientX:c,clientY:m}=g.changedTouches[0];i("end",c,m,g),s.checkTap(l.offsetX.value,l.offsetY.value),n.zoomFinished(),l.reset()}return{core:n,onTouchStart:M,onTouchMove:d,onTouchEnd:h}}function Zt(){const t=e.reactive({scale:1,startX:0,startY:0,offsetX:0,offsetY:0,dragging:!1,started:!1});function n(s,a){t.startX=s,t.startY=a,t.scale=1}function o(s,a){t.started=!0,t.dragging=!0,t.offsetX=s-t.startX,t.offsetY=a-t.startY,t.scale=1-Math.abs(t.offsetY/a*.4)}function l(){!t.dragging||(Math.abs(t.offsetY)>window.innerHeight*.14?t.scale=.3:t.scale=1,t.dragging=!1,t.offsetX=0,t.offsetY=0)}return{state:t,dragStart:n,dragMove:o,dragEnd:l}}function Fe(){const t=e.ref(!1),n=e.ref(!1);return e.onActivated(()=>{!n.value||(t.value=!0)}),e.onMounted(()=>{n.value=!1,setTimeout(()=>{n.value=!0})}),{isActivated:t}}function Ve(t){let n=!1;return()=>{n||(t(),n=!0)}}function Gt(t){let n=null;const{isActivated:o}=Fe(),l=Ve(()=>n=window.onBackPress);function s(){l(),window.onBackPress=()=>t()}function a(){window.onBackPress=n}return e.onActivated(()=>{!o.value||s()}),e.onBeforeMount(()=>{s()}),e.onBeforeUnmount(()=>{a()}),e.onDeactivated(()=>{a()}),{register:s,unregister:a}}const qt=["onClick"],Jt=e.defineComponent({__name:"Toast",props:{message:null,position:null,buttonClickEvent:null},setup(t){const n=t,o=e.ref(),l=e.ref(),s=e.ref(),a=e.computed(()=>{switch(n.position){case"top":return 10;case"middle":return 50;case"bottom":return 85}}),i=e.computed(()=>({position:"absolute",borderRadius:"10px",backgroundColor:"rgba(0, 0, 0, 0.8)",padding:"14px 19px",top:`calc(${a.value}% - ${s.value}px)`,left:`calc(50% - ${l.value}px)`})),f=e.computed(()=>({width:"fit-content",display:"flex",justifyContent:"center",alignItems:"center",color:"white",fontSize:"14px"}));function r(){!n.buttonClickEvent||n.buttonClickEvent()}return e.nextTick(()=>{l.value=o.value.offsetWidth/2,s.value=o.value.offsetHeight/2}),(u,M)=>(e.openBlock(),e.createElementBlock("div",{onClick:e.withModifiers(r,["stop"]),id:"toastWrapper",ref_key:"toastWrapper",ref:o,class:"toastWrapper",style:e.normalizeStyle([e.unref(i),{zIndex:9999999}])},[e.createElementVNode("div",{style:e.normalizeStyle(e.unref(f))},[e.createElementVNode("span",null,e.toDisplayString(t.message),1)],4)],12,qt))}}),no="",en=W(Jt,[["__scopeId","data-v-25d39b90"]]),We={message:"\u61D2\u732B\u4E91 Yes!!!",position:"middle",duration:1500,buttonClickEvent:()=>{}};class tn{options;container;constructor(n){this.options=n,this.container=document.createElement("div")}present(){const n=e.h(e.h(en),{...We,...this.options});e.render(n,this.container),document.body.insertBefore(this.container,document.body.firstChild);const o=this.options.duration||We.duration;setTimeout(()=>{this.dismiss()},o)}dismiss(){if(this.container){const n=this.container.querySelector("#toastWrapper");n.style.opacity="0",n.style.transition="opacity 0.4s ease-in",setTimeout(()=>{this.container&&(e.render(null,this.container),document.body.removeChild(this.container))},500)}}}const nn=["xlink:href","fill","color"],te=e.defineComponent({__name:"SvgIcon",props:{name:null,prefix:{default:"icon"},color:{default:"#FFF"},width:null,height:null},setup(t){const n=t,o=e.computed(()=>`#${n.prefix}-${n.name}`),l=e.computed(()=>({width:`${n.width??n.height}px`,height:`${n.height??n.width}px`,aspectRatio:n.width&&n.height?void 0:"1/1"}));function s(a){const{style:i}=a;return typeof i=="object"?i:{}}return(a,i)=>(e.openBlock(),e.createElementBlock("svg",{"aria-hidden":"",style:e.normalizeStyle({...e.unref(l),...s(a.$attrs)})},[e.createElementVNode("use",{"xlink:href":e.unref(o),fill:t.color,color:t.color},null,8,nn)],4))}});function on(t){const{containerEl:n,sliderEl:o,autoHeight:l,performance:s={},maxHeightRatio:a=.9,observeMethod:i="classList"}=t,f=e.ref(!0),r=oe($,100);let u,M="";const d=e.ref(0),h=e.ref(0),g=e.ref(0),c=e.ref({top:0,scrollTop:0,scrollHeight:0,clientHeight:0}),m=e.ref({clientHeight:0}),y=e.computed(()=>!!h.value),N=e.computed(()=>c.value.scrollHeight>c.value.clientHeight),v=e.computed(()=>l?c.value.clientHeight-O.value:c.value.clientHeight-m.value.clientHeight),p=e.computed(()=>c.value.scrollHeight-c.value.clientHeight),T=e.computed(()=>!c.value.clientHeight&&!c.value.scrollHeight?1:Math.max(c.value.clientHeight/c.value.scrollHeight,.05)),O=e.computed(()=>T.value>a?0:T.value*c.value.clientHeight),j=e.computed(()=>({willChange:"transform",transform:`translate3d(0,${g.value}px,0)`,height:l?`${O.value}px`:void 0}));we(n,()=>A());function w(k){B(),h.value=k.clientY-o.value.getBoundingClientRect().top||1,M=getComputedStyle(n.value).scrollBehavior,M==="smooth"&&(n.value.style.scrollBehavior="unset")}function C(){n.value.style.scrollBehavior=M,h.value=0,r()}function B(){f.value=!1}function $(){y.value||(f.value=!0)}function D(k){if(!y.value)return;let R=k.clientY-c.value.top-h.value;R<0?g.value=0:R>=v.value?g.value=v.value:g.value=R,n.value.scrollTo({top:g.value/v.value*p.value})}function E(){y.value||x()}function x(){cancelAnimationFrame(u),u=requestAnimationFrame(b)}function b(){n.value&&(d.value=s.scrollTop?.value??n.value.scrollTop,g.value=d.value/p.value*v.value)}function _(k){let R="addEventListener";k==="add"?R="addEventListener":R="removeEventListener",o.value?.[R]("pointerdown",w,{passive:!0}),window[R]("pointermove",D,{passive:!0}),window[R]("pointerup",C,{passive:!0})}const I=new MutationObserver(k=>{(i=="classList"||k.map(F=>F.oldValue).join().includes("height"))&&A()});function A(){c.value.top=n.value?.getBoundingClientRect().top??0;const{scrollHeight:k=0,clientHeight:R=0}=n.value||{},{scrollHeight:F,clientHeight:H}=c.value;k!=F&&(c.value.scrollHeight=k,b()),R!=H&&(c.value.clientHeight=R,b());const{clientHeight:G=0}=o.value||{};G!=m.value.clientHeight&&(m.value.clientHeight=G)}function Q(){B(),setTimeout(()=>{m.value.clientHeight=o.value?.clientHeight??0,$()},150)}function Y(){if(n.value&&o.value){n.value.classList.add("hide-scrollbar"),n.value.addEventListener("scroll",E,{passive:!0}),_("add");const k={};i==="classList"?Object.assign(k,{subtree:!0,childList:!0}):Object.assign(k,{subtree:!0,attributeOldValue:!0,attributeFilter:["style"]}),I.observe(n.value,k),setTimeout(()=>{A()},100),Q()}else console.error("useScrollBar:","\u521D\u59CB\u5316\u5931\u8D25!",{containerEl:n,sliderEl:o})}return e.watch(d,()=>{B(),r()}),{isScrollEnd:f,isDragSlider:y,offsetTop:g,scrollTop:d,scrollable:N,sliderPos:j,init:Y,modifySliderEventListener:_,heightRatio:T}}const ln=(t=>(e.pushScopeId("data-v-7fd39e51"),t=t(),e.popScopeId(),t))(()=>e.createElementVNode("div",{class:"default-slider"},null,-1)),sn=e.defineComponent({__name:"ScrollBar",props:{containerEl:null,autoHide:{type:Boolean},autoHeight:{type:Boolean},observeMethod:null,performance:null,maxHeightRatio:{default:.9}},setup(t,{expose:n}){const o=t,l=!!e.useSlots().default,s=e.ref(null),a=e.computed(()=>o.containerEl),i=on({containerEl:a,sliderEl:s,autoHeight:l?o.autoHeight:!0,performance:o.performance,observeMethod:o.observeMethod}),{scrollable:f,isScrollEnd:r,sliderPos:u,heightRatio:M}=i,d=e.ref(!1),h=o.autoHide?e.computed(()=>o.maxHeightRatio<M.value?!1:d.value||!r.value):e.computed(()=>o.maxHeightRatio<M.value?!1:f.value),{load:g}=ve(`.hide-scrollbar {
14
+ }`),{LoadingComp:e.defineComponent({setup(){const f=ut();return e.onMounted(()=>{f.value?.classList?.add(s)}),()=>e.h(t,n)}})}}function vt({component:t,componentProps:n,delay:o=300}){const{LoadingComp:l}=Ae({component:t,componentProps:n,delay:o}),s=e.ref(!1);function a(){s.value=!0}function i(){s.value=!1}return{LoadingComp:l,loading:s,load:a,unload:i}}const Et=[(t=>(e.pushScopeId("data-v-92a1804d"),t=t(),e.popScopeId(),t))(()=>e.createElementVNode("div",{class:"ldio-mm5gwljcryb"},[e.createElementVNode("div")],-1))],It=e.defineComponent({__name:"DefaultLoading",props:{width:{default:24},height:{default:24}},setup(t){return e.useCssVars(n=>({"4e4a9ce4":t.width+"px",e56fe5c2:t.height+"px"})),(n,o)=>(e.openBlock(),e.createElementBlock("div",e.normalizeProps(e.guardReactiveProps(n.$attrs)),Et,16))}}),qn="",Qe=W(It,[["__scopeId","data-v-92a1804d"]]),zt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAsCAQAAAC0jZKKAAAAAnNCSVQICFXsRgQAAAABc1JHQgCuzhzpAAAEMklEQVRIx62XzW9VZRDGn2fmPff23qYtlvIRqVVQICgGoS21wYUGEA0x0YUYE/8BNTHujBsNiS5cGBeujAtXLiTGjUnFjRKNQWgJVoqxC/m2RMp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tuTjyFJ10gLlTSleKzPMXx7FL75OUSUCjm11TW6yMYRBfpAURwUZroxzs+rOuaRnb4C1Ks/ZoFCNUFAZTg4oFiQeiJi4gJlOJKasnf6T38v3ZspAsv2hYq6YFCqZXFEsyDhAguVK/FiuPxvZ0X79DnDW/nM94DodRu/G+wEOriAQIlqfjNP+n7dokGcnirPma93jJf73ALWF00xVE/3HdsGc605vk6Nydb0GN38y4UqV7BjE/ggv48NfZE3UH2F3Kp4Zn6aTweAAAAAElFTkSuQmCC",At={class:"loading-wrap"},Lt=["src"],Ct=e.defineComponent({__name:"PageLoading",props:{delay:{default:"0.15s"},size:{default:"mini"}},setup(t){const n=t;e.useCssVars(l=>({b1cf73a8:t.delay}));const o=e.computed(()=>{const l={};return n.size==="mini"?(l.width="22px",l.height="22px"):n.size==="large"&&(l.width="28px",l.height="28px"),l});return(l,s)=>(e.openBlock(),e.createElementBlock("div",At,[e.createElementVNode("img",{class:"loading-circle",src:e.unref(zt),style:e.normalizeStyle(e.unref(o))},null,12,Lt)]))}}),Jn="",jt=W(Ct,[["__scopeId","data-v-3c54972f"]]);async function Le(t){return new Promise(n=>setTimeout(()=>n(),t))}const St="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTJweCIgaGVpZ2h0PSIxMnB4IiB2aWV3Qm94PSIwIDAgMTIgMTIiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICAgIDxnIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxnIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0xMTAyLjAwMDAwMCwgLTQwNi4wMDAwMDApIiBmaWxsPSIjOTk5OTk5IiBmaWxsLXJ1bGU9Im5vbnplcm8iPgogICAgICAgIDxnIHRyYW5zZm9ybT0idHJhbnNsYXRlKDc5MC4wMDAwMDAsIDM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CA5LjMyMDIwNjksNy4yNzIxMzc5MyBMMTQuNTg2OTY1NSwxMi41Mzg4OTY2IEMxNC44NTg1ODkzLDEyLjgxMDQ2OTkgMTUuMDExMTkwMiwxMy4xNzg4MzI3IDE1LjAxMTE5MDIsMTMuNTYyOTMxIEMxNS4wMTExOTAyLDEzLjk0NzAyOTQgMTQuODU4NTg5MywxNC4zMTUzOTIyIDE0LjU4Njk2NTUsMTQuNTg2OTY1NSBDMTQuMzE1MzkyMiwxNC44NTg1ODkzIDEzLjk0NzAyOTQsMTUuMDExMTkwMiAxMy41NjI5MzEsMTUuMDExMTkwMiBDMTMuMTc4ODMyNywxNS4wMTExOTAyIDEyLjgxMDQ2OTksMTQuODU4NTg5MyAxMi41Mzg4OTY2LDE0LjU4Njk2NTUgTDcuMjcyMTM3OTMsOS4zMjAyMDY5IEM3LjAwMDUxNDE0LDkuMDQ4NjMzNTYgNi44NDc5MTMyNCw4LjY4MDI3MDc5IDYuODQ3OTEzMjQsOC4yOTYxNzI0MSBDNi44NDc5MTMyNCw3LjkxMjA3NDA0IDcuMDAwNTE0MTQsNy41NDM3MTEyNyA3LjI3MjEzNzkzLDcuMjcyMTM3OTMgWiI+PC9wYXRoPgogICAgICAgICAgICA8L2c+CiAgICAgICAgPC9nPgogICAgICAgIDwvZz4KICAgIDwvZz4KPC9zdmc+",_t=["onClick"],Ot=["onClick"],kt=["src"],bt=["src"],Bt=e.defineComponent({__name:"index",props:{visible:null,message:{default:""},duration:{default:2e3},width:{default:void 0},maxWidth:{default:void 0},showIcon:{type:Boolean,default:!1},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},captureEventP:{type:Boolean,default:!0}},emits:["close"],setup(t,{emit:n}){const o=t,l="lzc-loading-toast",s=e.computed(()=>{let u={};return o.captureEventP&&(u.pointerEvents="none"),u}),a=e.computed(()=>{let u={padding:"12px"};return(o.icon||o.showIcon)&&(u.padding="20px"),o.width&&(u.width=o.width),o.maxWidth&&(u.maxWidth=o.maxWidth),o.overlayContentStyle&&(u={...u,...o.overlayContentStyle}),u}),i=e.computed(()=>{let u={};return o.showClose&&!o.icon&&(u.paddingRight="16px"),u});function f(){o.closeOnClickOverlay&&n("close")}function r(){o.closeOnClick&&n("close")}return(u,M)=>(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} ${t.className}`),onClick:e.withModifiers(f,["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(a))},[t.showClose?(e.openBlock(),e.createElementBlock("img",{key:0,onClick:M[0]||(M[0]=e.withModifiers(d=>n("close"),["stop"])),src:e.unref(St),class:e.normalizeClass(`${l}-close`)},null,10,kt)):e.createCommentVNode("",!0),t.showIcon?(e.openBlock(),e.createElementBlock("img",{key:1,src:t.icon||e.unref(xt),class:e.normalizeClass(`${l}-icon`)},null,10,bt)):e.createCommentVNode("",!0),t.message?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(`${l}-message`),style:e.normalizeStyle(e.unref(i))},e.toDisplayString(t.message),7)):e.createCommentVNode("",!0)],6)],10,Ot)],10,_t),[[e.vShow,t.visible]])],4)]),_:1}))}}),eo="",to="",Qt=W(Bt,[["__scopeId","data-v-0947d1e3"]]);class Ye{loadingToast;el;options;visible=e.ref(!1);animateDuration=300;constructor(n){this.options={...n,visible:this.visible},this.options.duration==null&&(this.options.duration=60*10*1e3),this.el=document.createElement("div"),this.loadingToast=Qt}async show(){const n=this.options,l={...n,onClose:()=>{this.close(),n?.onClose?.()}},s=e.createVNode(this.loadingToast,l);e.render(s,this.el),document.body.insertBefore(this.el,document.body.firstChild),this.visible.value=!0,n.duration!==0&&setTimeout(()=>{this.destory()},n.duration),await Le(n.duration+this.animateDuration)}async destory(){!this.visible.value||(this.visible.value=!1,await new Promise(n=>{setTimeout(()=>{if(!this.el){n();return}document.body.removeChild(this.el),n()},this.animateDuration-10)}))}close(){document.querySelector("#lzc-loading-toast")?.remove()}}function Yt(t,n){const o=!!n?.debug,l=n?.printErrorLog!==!1,s=n?.loading!==!1,a=n?.autoClose!==!1,i=n?.delay!==void 0?n.delay:300,f=n?.hook!==void 0?n.hook:!0,r={...n,showIcon:n?.showIcon!==!1,captureEventP:n?.captureEventP===!0};o&&console.log("useDelayAsync - loading: %s autoClose: %s delay: %s loadingToastOptions: %o",s,a,i,r);const u=e.ref(!1);let M=null;const d=new Ye(r);async function h(...c){if(o&&console.log(`useDelayAsync - handler - processing: ${u.value}`),!u.value){u.value=!0,M=setTimeout(()=>{o&&console.log("useDelayAsync - handler - setTimeout - loading: %s processing: %s",s,u.value),s&&(!u.value||d.show())},i);try{o&&console.time("useDelayAsync - handler-execute-time");const m=await t(...c);return o&&console.log("useDelayAsync - execute res: ",m),o&&console.timeEnd("useDelayAsync - handler-execute-time"),await g(a),await n?.onSuccess?.(m,[...c]),m}catch(m){o&&console.timeEnd("useDelayAsync - handler-execute-time"),l&&console.error(m),await g(a),await n?.onError?.(m,[...c])}}}async function g(c=!0){o&&console.log("useDelayAsync - close - closeLoading: ",c),u.value=!1,M&&clearTimeout(M),M=null,c&&await d.destory()}return f&&e.onBeforeUnmount(()=>{o&&console.log("useDelayAsync - onBeforeUnmount - close"),g()}),{processing:u,handler:h,close:g}}function Ut(t,n){return t>n?"horizontal":n>t?"vertical":""}function Rt(){const t=e.ref(0),n=e.ref(0),o=e.ref(0),l=e.ref(0),s=e.ref(0),a=e.ref(0),i=e.ref(""),f=()=>i.value==="vertical",r=()=>i.value==="horizontal",u=()=>{o.value=0,l.value=0,s.value=0,a.value=0,i.value=""};function M(h,g){u(),t.value=h,n.value=g}function d(h,g){o.value=(h<0?0:h)-t.value,l.value=g-n.value,s.value=Math.abs(o.value),a.value=Math.abs(l.value);const c=10;(!i.value||s.value<c&&a.value<c)&&(i.value=Ut(s.value,a.value))}return{move:d,start:M,reset:u,startX:t,startY:n,deltaX:o,deltaY:l,offsetX:s,offsetY:a,direction:i,isVertical:f,isHorizontal:r}}const Ue=250,Re=5,Pt=500;function $t(t){const{isDouble:n=!0}=t;let o,l;function s(){o=Date.now()}async function a(i,f){const r=Date.now()-o;i<Re&&f<Re&&(r<Ue?n?l?(clearTimeout(l),l=null,t.onDoubleTap?.()):l=setTimeout(async()=>{t.onTap?.(),l=null},Ue):t.onTap?.():r>Pt&&t.onLongPress?.())}return{startTap:s,checkTap:a}}function Ht(t,n){const o=e.ref(!1);function l(){o.value||(o.value=!0,e.unref(t)?.addEventListener("transitionend",s))}function s(){e.unref(t)?.removeEventListener("transitionend",s),o.value=!1,n.onComplate?.()}return{transitioning:o,startTransition:l}}function Ft(t,n,o,l){var s=Math.min(o/t,l/n),a=t*s,i=n*s;return{width:Z(a),height:Z(i)}}function Vt(t){return t<3?"444ms":t<6?"555ms":"666ms"}function Ce(t,n,o){return Math.min(Math.max(t,n),o)}function Z(t,n=2){return parseFloat(t.toFixed(n))}function me(t,n,o){return t=Z(t),n=Z(n),`translate3d(${t}px, ${n}px, 0) scale3d(${o},${o},${o})`}function Pe(t){return Math.sqrt((t[0].clientX-t[1].clientX)**2+(t[0].clientY-t[1].clientY)**2)}function Wt(t){return{x:(t[0].clientX+t[1].clientX)/2,y:(t[0].clientY+t[1].clientY)/2}}function $e(t){const n=e.ref(!1),o=e.ref(1),l=e.ref(9),s=e.ref(),a=e.ref(),i=e.ref({width:0,height:0}),f=e.ref({width:0,height:0}),r=e.reactive({level:1,offsetX:0,offsetY:0,zooming:!1,preview:!0,lastCenter:{x:0,y:0}}),u=e.ref({}),M=Rt(),d=Ht(a,{onComplate(){r.preview||y()}}),h=$t({onTap(){t.onTap?.()},onDoubleTap(){t.onDoubleTap?.()},onLongPress(){t.onLongPress?.()}});we(a,D=>g(D)),e.watch([s,a],([D,E])=>{c(D,E)},{immediate:!0});async function g(D){const[E]=D;E.contentRect.width==f.value.width&&E.contentRect.height==f.value.height||(await c(s.value),await y(r.level,!0))}async function c(D,E){await C(D,E),D&&B()}async function m(D){if(!r.preview)return;r.preview=!1,D=D??r.level;const E=a.value;if(!E)return;const{scrollTop:S,scrollLeft:b}=E,{width:x,height:I}=i.value,{scaleW:A,scaleH:Q}=_(D),{top:Y,left:k}=w(A,Q),R=k!=0?k:b*-1,F=Y!=0?Y:S*-1;E.scrollTop=0,E.scrollLeft=0;const{value:H}=u;H.width=`${x}px`,H.height=`${I}px`,H.maxHeight="none",H.transitionDuration="0s",H.transform=me(R,F,D),u.value=H,await e.nextTick(),r.offsetX=R,r.offsetY=F,await Le(20)}async function y(D,E){if(!E&&r.preview)return;r.preview=!0,D=D??r.level;const{value:S}=u,{scaleW:b,scaleH:x}=_(D),{left:I,top:A}=w(b,x);D===1&&(S.maxHeight="100%"),S.width=`${b}px`,S.height=`${x}px`,S.transitionDuration="0s",S.transform=me(I,A,1),u.value=S,await e.nextTick();const Q=a.value;if(!Q)return;const{offsetX:Y,offsetY:k}=r;Y<0&&(Q.scrollLeft=Math.abs(Y)),k<0&&(Q.scrollTop=Math.abs(k))}async function N(D,E,S){if(n.value||(D=Z(D),D=Ce(D,o.value-o.value*.5,l.value+l.value*.5),D==r.level))return;r.preview&&await m(),E||(E={x:M.startX.value,y:M.startY.value});const{value:b}=u,{width:x,height:I}=i.value,{scaleW:A,scaleH:Q}=_(D),{top:Y,left:k}=w(A,Q),R=D/r.level,F={left:Math.abs(x*D-f.value.width)*-1,top:Math.abs(I*D-f.value.height)*-1,right:k,bottom:Y};let H=k!=0?k:(r.offsetX-E.x)*R+E.x,G=Y!=0?Y:(r.offsetY-E.y)*R+E.y;H=Z(Ce(H,F.left,F.right)),G=Z(Ce(G,F.top,F.bottom)),b.width=`${x}px`,b.height=`${I}px`,b.transitionDuration=S?Vt(D):"0s",b.transform=me(H,G,D),r.offsetX=H,r.offsetY=G,r.level=D,u.value=b,await e.nextTick(),S&&d.startTransition(),t.onScale?.(D)}function v(){const D=r.level>1?1:O();N(D,void 0,!0)}function p(D,E){if(!r.preview)return;const S=a.value;!S||S.scrollTo({left:r.offsetX-D,top:r.offsetY-E})}async function T(){r.level>=o.value&&r.level<=l.value?r.zooming&&await y():r.level<o.value?await N(o.value,void 0,!0):r.level>l.value&&await N(l.value,r.lastCenter,!0),r.zooming=!1}function O(){const{width:D,height:E}=i.value,{width:S,height:b}=f.value,x=2.5;let I;return E==b?(I=S/D,I-1<.1&&(I=x)):I=Math.max(x,S/D,b/E),I}function _(D){const{width:E,height:S}=i.value;return{scaleW:Z(D*E),scaleH:Z(D*S)}}function w(D,E){const{width:S,height:b}=f.value,x=Math.max(0,(b-E)*.5),I=Math.max(0,(S-D)*.5);return{top:x,left:I}}async function C(D,E){if(D=D??s.value,E=E??a.value,!E)return;let S,{clientWidth:b=0,clientHeight:x=0}=D||{};const{clientWidth:I,clientHeight:A}=E;if(D instanceof HTMLImageElement?S={width:D.naturalWidth,height:D.naturalHeight}:D instanceof HTMLVideoElement&&(S={width:D.videoWidth,height:D.videoHeight}),S){const Q=Ft(S.width,S.height,I,A);b=Q.width,x=Q.height}(b===0||x===0)&&(b=i.value.width||I,x=i.value.height||A),i.value={width:Math.min(b,I),height:Math.min(x,A)},f.value={width:I,height:A},y(void 0,!0)}function B(){const D=O();l.value=Math.max(l.value,D*2)}function $(D){n.value=D}return{touch:M,state:r,style:u,gesture:h,transition:d,imageRef:s,containerRef:a,switchToZoom:m,switchToPreview:y,panTo:p,zoomTo:N,zoomFinished:T,toggleZoom:v,setDisableZoom:$}}function He(t,n){const{state:o,touch:l,transition:s,containerRef:a}=t,i=ft(a);let f,r;function u(h){f=h}function M(h){return f==h}function d(h,g,c,m){i.measure();const{top:y,left:N,right:v,bottom:p}=i.arrivedState;if(h=="start")r=y||N||v||p;else if(f==2)r=!1;else if(r){if(l.direction.value=="vertical")if(o.level!=1)r=!1;else{const T=l.startY.value<c;r=y&&T||p&&!T}else if(l.direction.value=="horizontal"){const T=l.startX.value<g;r=N&&T||v&&!T}}r&&s.transitioning.value&&(r=!1,m?.preventDefault()),h=="end"&&!r&&(g=l.startX.value,c=l.startY.value,r=!0),(h!="move"||r)&&n?.(h,l.direction.value,g,c,m)}return{onSwipeEdge:d,setFingerNum:u,isEqualFingerNum:M}}function Xt(t){const n=$e({onDoubleTap(){n.toggleZoom()},...t}),{state:o,touch:l,gesture:s,transition:a}=n;let i=!1,f=null;const r={top:0,left:0},u=oe(y,150),{onSwipeEdge:M}=He(n,t.onSwipeEdge),d=e.ref({top:0,left:0});se("keyup",v),se("keydown",N);function h(p){const T=n.containerRef.value;if(!T)return;const{left:O,top:_}=T.getBoundingClientRect();d.value.left=O,d.value.top=_,s.startTap();let w=p.clientX-O,C=p.clientY-_;l.start(w,C),M("start",w,C,p),a.transitioning.value||(i=!0,r.left=O,r.top=_,o.offsetX=T.scrollLeft,o.offsetY=T.scrollTop),window.addEventListener("pointermove",g),window.addEventListener("pointerup",c)}function g(p){if(!i)return;let T=p.clientX,O=p.clientY;l.move(T,O),M("move",T-d.value.left,O-d.value.top,p),o.level!==1&&n.panTo(l.deltaX.value-r.left,l.deltaY.value-r.top)}function c(p){M("end",l.offsetX.value,l.offsetY.value,p),s.checkTap(l.offsetX.value,l.offsetY.value),l.reset(),i=!1,window.removeEventListener("pointermove",g),window.removeEventListener("pointerup",c)}function m(p){if(!p.ctrlKey)return;o.zooming||(o.zooming=!0,f=="Control"&&window.addEventListener("keyup",y)),p.preventDefault();let T=-p.deltaY;p.deltaMode===1?T*=.05:T*=p.deltaMode?1:.002,f!="Control"&&(T*=10),T=2**T;const O=o.level*T;o.lastCenter={x:p.clientX-d.value.left,y:p.clientY-d.value.top},n.zoomTo(O,o.lastCenter),f!="Control"&&u()}function y(){n.zoomFinished(),window.removeEventListener("keyup",y)}function N(p){f=p.key}function v(){f=null}return{core:n,onPointerDown:h,onWheel:m}}function Kt(t){const n=$e({onDoubleTap(){n.toggleZoom()},...t}),{state:o,touch:l,gesture:s}=n,{setFingerNum:a,onSwipeEdge:i,isEqualFingerNum:f}=He(n,t.onSwipeEdge);let r,u;async function M(g){const{touches:c}=g;a(c.length),o.zooming=f(2),s.startTap();const{clientX:m,clientY:y}=c[0];l.start(m,y),i("start",m,y,g),o.zooming&&(g.preventDefault(),r=o.level,u=Pe(c),await n.switchToZoom(),o.lastCenter=Wt(c))}async function d(g){const{touches:c}=g;a(c.length);const{clientX:m,clientY:y}=c[0];if(l.move(m,y),i("move",m,y,g),o.zooming&&f(2)){g.preventDefault();const N=Pe(c),v=r*N/u;n.zoomTo(v,o.lastCenter)}}async function h(g){if(g.touches.length)return;const{clientX:c,clientY:m}=g.changedTouches[0];i("end",c,m,g),s.checkTap(l.offsetX.value,l.offsetY.value),n.zoomFinished(),l.reset()}return{core:n,onTouchStart:M,onTouchMove:d,onTouchEnd:h}}function Zt(){const t=e.reactive({scale:1,startX:0,startY:0,offsetX:0,offsetY:0,dragging:!1,started:!1});function n(s,a){t.startX=s,t.startY=a,t.scale=1}function o(s,a){t.started=!0,t.dragging=!0,t.offsetX=s-t.startX,t.offsetY=a-t.startY,t.scale=1-Math.abs(t.offsetY/a*.4)}function l(){!t.dragging||(Math.abs(t.offsetY)>window.innerHeight*.14?t.scale=.3:t.scale=1,t.dragging=!1,t.offsetX=0,t.offsetY=0)}return{state:t,dragStart:n,dragMove:o,dragEnd:l}}function Fe(){const t=e.ref(!1),n=e.ref(!1);return e.onActivated(()=>{!n.value||(t.value=!0)}),e.onMounted(()=>{n.value=!1,setTimeout(()=>{n.value=!0})}),{isActivated:t}}function Ve(t){let n=!1;return()=>{n||(t(),n=!0)}}function Gt(t){let n=null;const{isActivated:o}=Fe(),l=Ve(()=>n=window.onBackPress);function s(){l(),window.onBackPress=()=>t()}function a(){window.onBackPress=n}return e.onActivated(()=>{!o.value||s()}),e.onBeforeMount(()=>{s()}),e.onBeforeUnmount(()=>{a()}),e.onDeactivated(()=>{a()}),{register:s,unregister:a}}const qt=["onClick"],Jt=e.defineComponent({__name:"Toast",props:{message:null,position:null,buttonClickEvent:null},setup(t){const n=t,o=e.ref(),l=e.ref(),s=e.ref(),a=e.computed(()=>{switch(n.position){case"top":return 10;case"middle":return 50;case"bottom":return 85}}),i=e.computed(()=>({position:"absolute",borderRadius:"10px",backgroundColor:"rgba(0, 0, 0, 0.8)",padding:"14px 19px",top:`calc(${a.value}% - ${s.value}px)`,left:`calc(50% - ${l.value}px)`})),f=e.computed(()=>({width:"fit-content",display:"flex",justifyContent:"center",alignItems:"center",color:"white",fontSize:"14px"}));function r(){!n.buttonClickEvent||n.buttonClickEvent()}return e.nextTick(()=>{l.value=o.value.offsetWidth/2,s.value=o.value.offsetHeight/2}),(u,M)=>(e.openBlock(),e.createElementBlock("div",{onClick:e.withModifiers(r,["stop"]),id:"toastWrapper",ref_key:"toastWrapper",ref:o,class:"toastWrapper",style:e.normalizeStyle([e.unref(i),{zIndex:9999999}])},[e.createElementVNode("div",{style:e.normalizeStyle(e.unref(f))},[e.createElementVNode("span",null,e.toDisplayString(t.message),1)],4)],12,qt))}}),no="",en=W(Jt,[["__scopeId","data-v-25d39b90"]]),We={message:"\u61D2\u732B\u4E91 Yes!!!",position:"middle",duration:1500,buttonClickEvent:()=>{}};class tn{options;container;constructor(n){this.options=n,this.container=document.createElement("div")}present(){const n=e.h(e.h(en),{...We,...this.options});e.render(n,this.container),document.body.insertBefore(this.container,document.body.firstChild);const o=this.options.duration||We.duration;setTimeout(()=>{this.dismiss()},o)}dismiss(){if(this.container){const n=this.container.querySelector("#toastWrapper");n.style.opacity="0",n.style.transition="opacity 0.4s ease-in",setTimeout(()=>{this.container&&(e.render(null,this.container),document.body.removeChild(this.container))},500)}}}const nn=["xlink:href","fill","color"],te=e.defineComponent({__name:"SvgIcon",props:{name:null,prefix:{default:"icon"},color:{default:"#FFF"},width:null,height:null},setup(t){const n=t,o=e.computed(()=>`#${n.prefix}-${n.name}`),l=e.computed(()=>({width:`${n.width??n.height}px`,height:`${n.height??n.width}px`,aspectRatio:n.width&&n.height?void 0:"1/1"}));function s(a){const{style:i}=a;return typeof i=="object"?i:{}}return(a,i)=>(e.openBlock(),e.createElementBlock("svg",{"aria-hidden":"",style:e.normalizeStyle({...e.unref(l),...s(a.$attrs)})},[e.createElementVNode("use",{"xlink:href":e.unref(o),fill:t.color,color:t.color},null,8,nn)],4))}});function on(t){const{containerEl:n,sliderEl:o,autoHeight:l,performance:s={},maxHeightRatio:a=.9,observeMethod:i="classList"}=t,f=e.ref(!0),r=oe($,100);let u,M="";const d=e.ref(0),h=e.ref(0),g=e.ref(0),c=e.ref({top:0,scrollTop:0,scrollHeight:0,clientHeight:0}),m=e.ref({clientHeight:0}),y=e.computed(()=>!!h.value),N=e.computed(()=>c.value.scrollHeight>c.value.clientHeight),v=e.computed(()=>l?c.value.clientHeight-O.value:c.value.clientHeight-m.value.clientHeight),p=e.computed(()=>c.value.scrollHeight-c.value.clientHeight),T=e.computed(()=>!c.value.clientHeight&&!c.value.scrollHeight?1:Math.max(c.value.clientHeight/c.value.scrollHeight,.05)),O=e.computed(()=>T.value>a?0:T.value*c.value.clientHeight),_=e.computed(()=>({willChange:"transform",transform:`translate3d(0,${g.value}px,0)`,height:l?`${O.value}px`:void 0}));we(n,()=>A());function w(k){B(),h.value=k.clientY-o.value.getBoundingClientRect().top||1,M=getComputedStyle(n.value).scrollBehavior,M==="smooth"&&(n.value.style.scrollBehavior="unset")}function C(){n.value.style.scrollBehavior=M,h.value=0,r()}function B(){f.value=!1}function $(){y.value||(f.value=!0)}function D(k){if(!y.value)return;let R=k.clientY-c.value.top-h.value;R<0?g.value=0:R>=v.value?g.value=v.value:g.value=R,n.value.scrollTo({top:g.value/v.value*p.value})}function E(){y.value||S()}function S(){cancelAnimationFrame(u),u=requestAnimationFrame(b)}function b(){n.value&&(d.value=s.scrollTop?.value??n.value.scrollTop,g.value=d.value/p.value*v.value)}function x(k){let R="addEventListener";k==="add"?R="addEventListener":R="removeEventListener",o.value?.[R]("pointerdown",w,{passive:!0}),window[R]("pointermove",D,{passive:!0}),window[R]("pointerup",C,{passive:!0})}const I=new MutationObserver(k=>{(i=="classList"||k.map(F=>F.oldValue).join().includes("height"))&&A()});function A(){c.value.top=n.value?.getBoundingClientRect().top??0;const{scrollHeight:k=0,clientHeight:R=0}=n.value||{},{scrollHeight:F,clientHeight:H}=c.value;k!=F&&(c.value.scrollHeight=k,b()),R!=H&&(c.value.clientHeight=R,b());const{clientHeight:G=0}=o.value||{};G!=m.value.clientHeight&&(m.value.clientHeight=G)}function Q(){B(),setTimeout(()=>{m.value.clientHeight=o.value?.clientHeight??0,$()},150)}function Y(){if(n.value&&o.value){n.value.classList.add("hide-scrollbar"),n.value.addEventListener("scroll",E,{passive:!0}),x("add");const k={};i==="classList"?Object.assign(k,{subtree:!0,childList:!0}):Object.assign(k,{subtree:!0,attributeOldValue:!0,attributeFilter:["style"]}),I.observe(n.value,k),setTimeout(()=>{A()},100),Q()}else console.error("useScrollBar:","\u521D\u59CB\u5316\u5931\u8D25!",{containerEl:n,sliderEl:o})}return e.watch(d,()=>{B(),r()}),{isScrollEnd:f,isDragSlider:y,offsetTop:g,scrollTop:d,scrollable:N,sliderPos:_,init:Y,modifySliderEventListener:x,heightRatio:T}}const ln=(t=>(e.pushScopeId("data-v-7fd39e51"),t=t(),e.popScopeId(),t))(()=>e.createElementVNode("div",{class:"default-slider"},null,-1)),sn=e.defineComponent({__name:"ScrollBar",props:{containerEl:null,autoHide:{type:Boolean},autoHeight:{type:Boolean},observeMethod:null,performance:null,maxHeightRatio:{default:.9}},setup(t,{expose:n}){const o=t,l=!!e.useSlots().default,s=e.ref(null),a=e.computed(()=>o.containerEl),i=on({containerEl:a,sliderEl:s,autoHeight:l?o.autoHeight:!0,performance:o.performance,observeMethod:o.observeMethod}),{scrollable:f,isScrollEnd:r,sliderPos:u,heightRatio:M}=i,d=e.ref(!1),h=o.autoHide?e.computed(()=>o.maxHeightRatio<M.value?!1:d.value||!r.value):e.computed(()=>o.maxHeightRatio<M.value?!1:f.value),{load:g}=ve(`.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(()=>{g(),e.nextTick(()=>{i.init()})}),e.onUnmounted(()=>{i.modifySliderEventListener("remove")});function c(){d.value=!0}function m(){d.value=!1}return n({uScrollBarReturn:i}),(y,N)=>(e.openBlock(),e.createBlock(e.Transition,null,{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{ref_key:"sliderRef",ref:s,class:"slider-wrapper",onMouseenter:c,onMouseleave:m,style:e.normalizeStyle(e.unref(u))},[e.renderSlot(y.$slots,"default",{},()=>[ln],!0)],36),[[e.vShow,e.unref(h)]])]),_:3}))}}),lo="",an=W(sn,[["__scopeId","data-v-7fd39e51"]]),rn=t=>(e.pushScopeId("data-v-df5da876"),t=t(),e.popScopeId(),t),cn={class:"pull-refresh"},un={key:0,class:"pull-arrow-circle"},dn={key:0,class:"box-load"},fn={class:"left-load"},Mn={class:"right-load"},gn=rn(()=>e.createElementVNode("div",{class:"among-load"},null,-1)),mn={class:"pull-arrow"},hn={key:1},pn=e.defineComponent({__name:"PullRefresh",props:{refresh:null,refreshOff:{type:Boolean,default:!1},scrollTop:null,pullRefreshContainer:null},setup(t){const n=t,o=.7,l="#2EC1CC",s=e.ref(-999),a=e.ref(1),i=e.ref(0),f=e.ref(.3),r=e.ref(!1),u=e.ref(0),M=e.ref(0),d=e.ref(0),h=e.ref(0),g=e.ref(0),c=e.ref(),m=e.computed(()=>n.scrollTop),y=e.computed(()=>({transition:`${h.value}ms`,transform:`translate3d(0,${s.value}px, 0) scale(${a.value})`})),N=e.computed(()=>({borderColor:l,transition:h.value,transform:`rotate(${100+i.value}deg)`,opacity:f.value}));e.watch(g,w=>{w===0&&(s.value=-50,f.value=.3)}),e.watch(M,w=>{if(g.value===2)return;const C=Math.pow(w,o);C===0&&(s.value=-50),C<=50&&C>0&&(s.value=C-45,i.value=Math.pow(C,1.5),C>15?r.value=!0:r.value=!1),C>50&&(s.value=5,f.value=1,g.value)});const v=e.ref(0),p=w=>{v.value=w.touches[0].pageY},T=w=>{const C=w.touches[0].pageY-v.value;v.value=w.touches[0].pageY,!n.refreshOff&&(!n?.refresh||g.value!==2&&m.value===0&&(u.value===0&&(u.value=w.touches[0].pageY),d.value=0,j.value.style.transition=`${d.value}ms`,h.value=0,M.value=w.touches[0].pageY-u.value,j.value.style.transform=`translate3d(0, ${Math.pow(M.value,o)}px, 0)`,C>0&&w.preventDefault()))},O=()=>{if(n.refreshOff||!n?.refresh||g.value===2)return;u.value=0,d.value=300;const w=Math.pow(M.value,o);j.value.style.transition=`${d.value}ms`,w>50?(g.value=2,M.value=Math.pow(50,1/o),j.value.style.transform=`translate3d(0, ${Math.pow(M.value,o)}px, 0)`,h.value=300,n?.refresh&&n?.refresh().then(()=>{c.value="\u5237\u65B0\u6210\u529F"}).catch(()=>{c.value="\u5237\u65B0\u5931\u8D25"}).finally(()=>{setTimeout(()=>{g.value=0,M.value=0,j.value.style.transform=`translate3d(0, ${Math.pow(M.value,o)}px, 0)`,setTimeout(()=>{c.value=void 0},h.value)},600)})):(M.value=0,j.value.style.transform=`translate3d(0, ${Math.pow(M.value,o)}px, 0)`)},j=e.ref(null);return e.onMounted(()=>{n?.refreshOff||(j.value=document.querySelector(n.pullRefreshContainer),j.value?.addEventListener("touchstart",p),j.value?.addEventListener("touchmove",T),j.value?.addEventListener("touchend",O))}),(w,C)=>(e.openBlock(),e.createElementBlock("div",cn,[e.createElementVNode("div",{class:"pull-refresh-box",style:e.normalizeStyle(e.unref(y))},[c.value?(e.openBlock(),e.createElementBlock("div",hn,e.toDisplayString(c.value),1)):(e.openBlock(),e.createElementBlock("div",un,[g.value==2?(e.openBlock(),e.createElementBlock("div",dn,[e.createElementVNode("div",fn,[e.createElementVNode("div",{class:"left-circle",style:e.normalizeStyle({backgroundColor:l})},null,4)]),e.createElementVNode("div",Mn,[e.createElementVNode("div",{class:"right-circle",style:e.normalizeStyle({backgroundColor:l})},null,4)]),gn])):(e.openBlock(),e.createElementBlock("div",{key:1,class:"pull-circle-line",style:e.normalizeStyle(e.unref(N))},[e.createElementVNode("div",mn,[e.createElementVNode("div",{class:e.normalizeClass(["arrows",{opacity:r.value}]),style:e.normalizeStyle({borderBottomColor:l})},null,6)])],4))]))],4)]))}}),so="",Xe=W(pn,[["__scopeId","data-v-df5da876"]]),yn=["data-key"],Dn={inheritAttrs:!1},Tn=e.defineComponent({...Dn,__name:"VirtualList",props:{data:null,getItemKey:null,itemHeight:null,overscan:{default:10},refresh:null,refreshOff:{type:Boolean,default:!1}},emits:["scrollEnd"],setup(t,{expose:n,emit:o}){const l=t,s=be(e.toRef(l,"data"),{itemHeight:g=>l.itemHeight(l.data[g]),overscan:l.overscan,scrollEndHook:()=>{o("scrollEnd")}}),{list:a,containerProps:i,wrapperProps:f,innerProps:r,getItemHeightData:u,scrollTop:M}=s;n({vListReturn:s});const d="virtualListWrapper"+new Date().getTime();function h(g,c){return l.getItemKey?l.getItemKey(g,c):`${c}`}return(g,c)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(Xe,{refresh:t.refresh,refreshOff:t.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:c[0]||(c[0]=(...m)=>e.unref(i).onScroll&&e.unref(i).onScroll(...m)),ref:e.unref(i).ref,class:"virtualList"},g.$attrs),[e.createElementVNode("div",e.normalizeProps(e.guardReactiveProps(e.unref(f))),[e.createElementVNode("div",e.normalizeProps(e.guardReactiveProps(e.unref(r))),[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(a),({data:m,index:y})=>(e.openBlock(),e.createElementBlock("div",{key:h(m,y),"data-key":h(m,y),style:e.normalizeStyle({height:`${e.unref(u)(y).height}px`,display:"flex"})},[e.renderSlot(g.$slots,"default",{data:m,index:y},void 0,!0)],12,yn))),128))],16)],16)],16)])],64))}}),ao="",Nn=W(Tn,[["__scopeId","data-v-dfe60586"]]),je=t=>(e.pushScopeId("data-v-33519afd"),t=t(),e.popScopeId(),t),wn={style:{position:"absolute"}},vn=je(()=>e.createElementVNode("div",{class:"wrapper"},null,-1)),En=["width","height"],In=[je(()=>e.createElementVNode("title",null,"logo",-1)),je(()=>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))],zn=e.defineComponent({__name:"Loading",props:{width:{default:"90"},height:{default:"90"},duration:{default:1300}},setup(t){const n=t;e.useCssVars(l=>({"312487ac":o}));const o=`${n.duration}ms`;return(l,s)=>(e.openBlock(),e.createElementBlock("div",wn,[vn,(e.openBlock(),e.createElementBlock("svg",{style:{position:"relative"},width:t.width,height:t.height,viewBox:"0 0 260 260",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},In,8,En))]))}}),co="",An=W(zn,[["__scopeId","data-v-33519afd"]]),Ln=["image/vnd.adobe.photoshop","image/x-photoshop","image/jp2","image/pcx"];function Ke(t,n){const o=e.ref(t?.value),l=e.computed(()=>o.value?.startsWith("/_lzc")),s=e.ref(!1),a=e.computed(()=>s.value),i=e.computed(()=>{const r=n?.value;return!r||r.startsWith("video/")?!0:r.startsWith("image/")?l.value?!0:!Ln.includes(r):!1});t&&e.watch(t,r=>{o.value=r,s.value=!1});function f(){s.value=!0}return{imgSrc:o,isError:s,hasError:a,isSupport:i,handleError:f}}function Ze(){return{vImageCancel:{beforeUnmount(n){!n||(n.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7")}}}}const Cn=["title"],jn={class:"tip"},Sn=[e.createTextVNode("\u5F53\u524D\u683C\u5F0F\u4E0D\u652F\u6301")],xn=["src"],_n=["src"],On=["title"],kn={inheritAttrs:!1},bn=e.defineComponent({...kn,__name:"Image",props:{src:null,mime:null,thumbnail:null,isShowSrc:{type:Boolean},autoRemoveThumbnail:{type:Boolean},noSupportIconName:{default:"\u4E0D\u652F\u6301\u663E\u793A"},badImageIconName:{default:"\u56FE\u7247\u635F\u574F"}},emits:["load","noSupport","loadError"],setup(t,{emit:n}){const o=t,l=e.ref(),s=e.ref(),a=e.ref(!1),i=e.ref(!1),f=e.ref(!1),{src:r,mime:u}=e.toRefs(o),{imgSrc:M,isSupport:d,hasError:h,handleError:g}=Ke(r,u),{vImageCancel:c}=Ze(),{LoadingComp:m}=Ae({component:Qe,delay:300}),y=et(()=>f.value&&o.autoRemoveThumbnail?!1:o.thumbnail&&!f.value);function N(){i.value=!0}function v(){i.value&&(f.value=!0)}async function p(){N(),y.value?(l.value?.addEventListener("animationend",T),l.value?.classList.add("showing"),await Le(10)):l.value&&n("load",l.value),l.value?.classList.remove("src-class")}function T(){l.value?.removeEventListener("animationend",T),l.value?.classList.remove("showing"),l.value&&n("load",l.value),v()}async function O(C){C?p():s.value&&n("load",s.value),a.value=!0}function j(C){C?(g(),n("loadError")):N(),a.value=!0}function w(){n("noSupport")}return(C,B)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.unref(d)&&!a.value?(e.openBlock(),e.createBlock(e.unref(m),{key:0})):e.createCommentVNode("",!0),e.unref(d)?e.unref(h)?(e.openBlock(),e.createElementBlock("div",e.mergeProps({key:3},C.$attrs,{title:e.unref(M),class:"tip-wrap"}),[e.createVNode(te,{class:"bad-image",name:t.badImageIconName},null,8,["name"])],16,On)):e.renderSlot(C.$slots,"default",{key:2,src:e.unref(M),onLoad:O,onError:j,vImageCancel:e.unref(c)},()=>[e.unref(y)?e.withDirectives((e.openBlock(),e.createElementBlock("img",e.mergeProps({key:0},C.$attrs,{ref_key:"thumbnailRef",ref:s,onLoad:B[0]||(B[0]=$=>O()),onError:B[1]||(B[1]=$=>j()),src:t.thumbnail}),null,16,xn)),[[e.unref(c)]]):e.createCommentVNode("",!0),t.isShowSrc||i.value?e.withDirectives((e.openBlock(),e.createElementBlock("img",e.mergeProps({key:1},C.$attrs,{ref_key:"srcRef",ref:l,class:"src-class",onLoad:B[2]||(B[2]=$=>O(!0)),onError:B[3]||(B[3]=$=>j(!0)),src:e.unref(M)}),null,16,_n)),[[e.unref(c)],[e.vShow,i.value]]):e.createCommentVNode("",!0)],!0):(e.openBlock(),e.createElementBlock("div",e.mergeProps({key:1},C.$attrs,{title:e.unref(M),class:"tip-wrap"}),[e.createVNode(te,{class:"no-support-icon",name:t.noSupportIconName},null,8,["name"]),e.withDirectives((e.openBlock(),e.createElementBlock("span",jn,Sn)),[[e.unref(ye),w]])],16,Cn))],64))}}),fo="",Bn=W(bn,[["__scopeId","data-v-bfec1a6b"]]),Qn=["title"],Yn=["src"],Un=["title"],Rn=e.defineComponent({__name:"Thumbnail",props:{src:null,mime:null},emits:["noSupport"],setup(t,{emit:n}){const o=t,l=e.ref(!1),{src:s,mime:a}=e.toRefs(o),{imgSrc:i,hasError:f,isSupport:r,handleError:u}=Ke(s,a),{vImageCancel:M}=Ze();function d(){n("noSupport")}return(h,g)=>e.unref(r)?e.unref(f)?(e.openBlock(),e.createElementBlock("div",{key:2,title:e.unref(i),class:"icon-wrap"},[e.createVNode(te,{class:"icon",name:"\u56FE\u7247\u635F\u574F"})],8,Un)):e.withDirectives((e.openBlock(),e.createElementBlock("img",{key:1,fetchpriority:"high",onLoad:g[0]||(g[0]=c=>l.value=!0),onError:g[1]||(g[1]=(...c)=>e.unref(u)&&e.unref(u)(...c)),src:e.unref(i)},null,40,Yn)),[[e.unref(M)],[e.vShow,l.value]]):(e.openBlock(),e.createElementBlock("div",{key:0,title:e.unref(i),class:"icon-wrap"},[e.withDirectives(e.createVNode(te,{class:"icon",name:"\u672A\u77E5\u7C7B\u578B"},null,512),[[e.unref(ye),d]])],8,Qn))}}),Mo="",Pn=W(Rn,[["__scopeId","data-v-2f606efa"]]);z.DefaultLoading=Qe,z.Image=Bn,z.Loading=An,z.LoadingToast=Ye,z.PageLoading=jt,z.PullRefresh=Xe,z.ScrollBar=an,z.SvgIcon=te,z.Thumbnail=Pn,z.ToastCreator=tn,z.VirtualList=Nn,z.allSelectedKey=ce,z.closeDialogKey=Be,z.dialogController=wt,z.getTransform=me,z.isAllSelectedKey=Me,z.isSelectedKey=re,z.itemKeyKey=Ee,z.once=Ve,z.selectAllKey=de,z.selectKey=ue,z.selectedCountKey=ge,z.toggleAllKey=ae,z.toggleKey=ie,z.unselectAllKey=ee,z.unselectKey=fe,z.useBackPress=Gt,z.useDelayAsync=Yt,z.useDelayLoad=vt,z.useDelayLoadComp=Ae,z.useDownDrag=Zt,z.useDragSelect=ze,z.useDragSelectByMobile=Dt,z.useDragSelectByPc=yt,z.useRouterActivated=Fe,z.useScaleImageByMobile=Kt,z.useScaleImageByPc=Xt,z.useSelectable=ht,z.useSelectableByBase=pt,z.useSelectableInjectors=mt,z.useVirtualList=be,z.vDebounceClick=Je,z.vEnter=ye,z.vSingleClick=xe,Object.defineProperties(z,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
20
+ }`,{id:"styletag_lzc_scrollbar",manual:!0});e.onMounted(()=>{g(),e.nextTick(()=>{i.init()})}),e.onUnmounted(()=>{i.modifySliderEventListener("remove")});function c(){d.value=!0}function m(){d.value=!1}return n({uScrollBarReturn:i}),(y,N)=>(e.openBlock(),e.createBlock(e.Transition,null,{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{ref_key:"sliderRef",ref:s,class:"slider-wrapper",onMouseenter:c,onMouseleave:m,style:e.normalizeStyle(e.unref(u))},[e.renderSlot(y.$slots,"default",{},()=>[ln],!0)],36),[[e.vShow,e.unref(h)]])]),_:3}))}}),lo="",an=W(sn,[["__scopeId","data-v-7fd39e51"]]),rn=t=>(e.pushScopeId("data-v-df5da876"),t=t(),e.popScopeId(),t),cn={class:"pull-refresh"},un={key:0,class:"pull-arrow-circle"},dn={key:0,class:"box-load"},fn={class:"left-load"},Mn={class:"right-load"},gn=rn(()=>e.createElementVNode("div",{class:"among-load"},null,-1)),mn={class:"pull-arrow"},hn={key:1},pn=e.defineComponent({__name:"PullRefresh",props:{refresh:null,refreshOff:{type:Boolean,default:!1},scrollTop:null,pullRefreshContainer:null},setup(t){const n=t,o=.7,l="#2EC1CC",s=e.ref(-999),a=e.ref(1),i=e.ref(0),f=e.ref(.3),r=e.ref(!1),u=e.ref(0),M=e.ref(0),d=e.ref(0),h=e.ref(0),g=e.ref(0),c=e.ref(),m=e.computed(()=>n.scrollTop),y=e.computed(()=>({transition:`${h.value}ms`,transform:`translate3d(0,${s.value}px, 0) scale(${a.value})`})),N=e.computed(()=>({borderColor:l,transition:h.value,transform:`rotate(${100+i.value}deg)`,opacity:f.value}));e.watch(g,w=>{w===0&&(s.value=-50,f.value=.3)}),e.watch(M,w=>{if(g.value===2)return;const C=Math.pow(w,o);C===0&&(s.value=-50),C<=50&&C>0&&(s.value=C-45,i.value=Math.pow(C,1.5),C>15?r.value=!0:r.value=!1),C>50&&(s.value=5,f.value=1,g.value)});const v=e.ref(0),p=w=>{v.value=w.touches[0].pageY},T=w=>{const C=w.touches[0].pageY-v.value;v.value=w.touches[0].pageY,!n.refreshOff&&(!n?.refresh||g.value!==2&&m.value===0&&(u.value===0&&(u.value=w.touches[0].pageY),d.value=0,_.value.style.transition=`${d.value}ms`,h.value=0,M.value=w.touches[0].pageY-u.value,_.value.style.transform=`translate3d(0, ${Math.pow(M.value,o)}px, 0)`,C>0&&w.preventDefault()))},O=()=>{if(n.refreshOff||!n?.refresh||g.value===2)return;u.value=0,d.value=300;const w=Math.pow(M.value,o);_.value.style.transition=`${d.value}ms`,w>50?(g.value=2,M.value=Math.pow(50,1/o),_.value.style.transform=`translate3d(0, ${Math.pow(M.value,o)}px, 0)`,h.value=300,n?.refresh&&n?.refresh().then(()=>{c.value="\u5237\u65B0\u6210\u529F"}).catch(()=>{c.value="\u5237\u65B0\u5931\u8D25"}).finally(()=>{setTimeout(()=>{g.value=0,M.value=0,_.value.style.transform=`translate3d(0, ${Math.pow(M.value,o)}px, 0)`,setTimeout(()=>{c.value=void 0},h.value)},600)})):(M.value=0,_.value.style.transform=`translate3d(0, ${Math.pow(M.value,o)}px, 0)`)},_=e.ref(null);return e.onMounted(()=>{n?.refreshOff||(_.value=document.querySelector(n.pullRefreshContainer),_.value?.addEventListener("touchstart",p),_.value?.addEventListener("touchmove",T),_.value?.addEventListener("touchend",O))}),(w,C)=>(e.openBlock(),e.createElementBlock("div",cn,[e.createElementVNode("div",{class:"pull-refresh-box",style:e.normalizeStyle(e.unref(y))},[c.value?(e.openBlock(),e.createElementBlock("div",hn,e.toDisplayString(c.value),1)):(e.openBlock(),e.createElementBlock("div",un,[g.value==2?(e.openBlock(),e.createElementBlock("div",dn,[e.createElementVNode("div",fn,[e.createElementVNode("div",{class:"left-circle",style:e.normalizeStyle({backgroundColor:l})},null,4)]),e.createElementVNode("div",Mn,[e.createElementVNode("div",{class:"right-circle",style:e.normalizeStyle({backgroundColor:l})},null,4)]),gn])):(e.openBlock(),e.createElementBlock("div",{key:1,class:"pull-circle-line",style:e.normalizeStyle(e.unref(N))},[e.createElementVNode("div",mn,[e.createElementVNode("div",{class:e.normalizeClass(["arrows",{opacity:r.value}]),style:e.normalizeStyle({borderBottomColor:l})},null,6)])],4))]))],4)]))}}),so="",Xe=W(pn,[["__scopeId","data-v-df5da876"]]),yn=["data-key"],Dn={inheritAttrs:!1},Tn=e.defineComponent({...Dn,__name:"VirtualList",props:{data:null,getItemKey:null,itemHeight:null,overscan:{default:10},refresh:null,refreshOff:{type:Boolean,default:!1}},emits:["scrollEnd"],setup(t,{expose:n,emit:o}){const l=t,s=be(e.toRef(l,"data"),{itemHeight:g=>l.itemHeight(l.data[g]),overscan:l.overscan,scrollEndHook:()=>{o("scrollEnd")}}),{list:a,containerProps:i,wrapperProps:f,innerProps:r,getItemHeightData:u,scrollTop:M}=s;n({vListReturn:s});const d="virtualListWrapper"+new Date().getTime();function h(g,c){return l.getItemKey?l.getItemKey(g,c):`${c}`}return(g,c)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(Xe,{refresh:t.refresh,refreshOff:t.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:c[0]||(c[0]=(...m)=>e.unref(i).onScroll&&e.unref(i).onScroll(...m)),ref:e.unref(i).ref,class:"virtualList"},g.$attrs),[e.createElementVNode("div",e.normalizeProps(e.guardReactiveProps(e.unref(f))),[e.createElementVNode("div",e.normalizeProps(e.guardReactiveProps(e.unref(r))),[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(a),({data:m,index:y})=>(e.openBlock(),e.createElementBlock("div",{key:h(m,y),"data-key":h(m,y),style:e.normalizeStyle({height:`${e.unref(u)(y).height}px`,display:"flex"})},[e.renderSlot(g.$slots,"default",{data:m,index:y},void 0,!0)],12,yn))),128))],16)],16)],16)])],64))}}),ao="",Nn=W(Tn,[["__scopeId","data-v-dfe60586"]]),je=t=>(e.pushScopeId("data-v-33519afd"),t=t(),e.popScopeId(),t),wn={style:{position:"absolute"}},vn=je(()=>e.createElementVNode("div",{class:"wrapper"},null,-1)),En=["width","height"],In=[je(()=>e.createElementVNode("title",null,"logo",-1)),je(()=>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))],zn=e.defineComponent({__name:"Loading",props:{width:{default:"90"},height:{default:"90"},duration:{default:1300}},setup(t){const n=t;e.useCssVars(l=>({"312487ac":o}));const o=`${n.duration}ms`;return(l,s)=>(e.openBlock(),e.createElementBlock("div",wn,[vn,(e.openBlock(),e.createElementBlock("svg",{style:{position:"relative"},width:t.width,height:t.height,viewBox:"0 0 260 260",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},In,8,En))]))}}),co="",An=W(zn,[["__scopeId","data-v-33519afd"]]),Ln=["image/vnd.adobe.photoshop","image/x-photoshop","image/jp2","image/pcx"];function Ke(t,n){const o=e.ref(t?.value),l=e.computed(()=>o.value?.startsWith("/_lzc")),s=e.ref(!1),a=e.computed(()=>s.value),i=e.computed(()=>{const r=n?.value;return!r||r.startsWith("video/")?!0:r.startsWith("image/")?l.value?!0:!Ln.includes(r):!1});t&&e.watch(t,r=>{o.value=r,s.value=!1});function f(){s.value=!0}return{imgSrc:o,isError:s,hasError:a,isSupport:i,handleError:f}}function Ze(){return{vImageCancel:{beforeUnmount(n){!n||(n.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7")}}}}const Cn=["title"],jn={class:"tip"},Sn=[e.createTextVNode("\u5F53\u524D\u683C\u5F0F\u4E0D\u652F\u6301")],xn=["src"],_n=["src"],On=["title"],kn={inheritAttrs:!1},bn=e.defineComponent({...kn,__name:"Image",props:{src:null,mime:null,thumbnail:null,isShowSrc:{type:Boolean},autoRemoveThumbnail:{type:Boolean},noSupportIconName:{default:"\u4E0D\u652F\u6301\u663E\u793A"},badImageIconName:{default:"\u56FE\u7247\u635F\u574F"}},emits:["load","noSupport","loadError"],setup(t,{emit:n}){const o=t,l=e.ref(),s=e.ref(),a=e.ref(!1),i=e.ref(!1),f=e.ref(!1),{src:r,mime:u}=e.toRefs(o),{imgSrc:M,isSupport:d,hasError:h,handleError:g}=Ke(r,u),{vImageCancel:c}=Ze(),{LoadingComp:m}=Ae({component:Qe,delay:300}),y=et(()=>f.value&&o.autoRemoveThumbnail?!1:o.thumbnail&&!f.value);function N(){i.value=!0}function v(){i.value&&(f.value=!0)}async function p(){N(),y.value?(l.value?.addEventListener("animationend",T),l.value?.classList.add("showing"),await Le(10)):l.value&&n("load",l.value),l.value?.classList.remove("src-class")}function T(){l.value?.removeEventListener("animationend",T),l.value?.classList.remove("showing"),l.value&&n("load",l.value),v()}async function O(C){C?p():s.value&&n("load",s.value),a.value=!0}function _(C){C?(g(),n("loadError")):N(),a.value=!0}function w(){n("noSupport")}return(C,B)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.unref(d)&&!a.value?(e.openBlock(),e.createBlock(e.unref(m),{key:0})):e.createCommentVNode("",!0),e.unref(d)?e.unref(h)?(e.openBlock(),e.createElementBlock("div",e.mergeProps({key:3},C.$attrs,{title:e.unref(M),class:"tip-wrap"}),[e.createVNode(te,{class:"bad-image",name:t.badImageIconName},null,8,["name"])],16,On)):e.renderSlot(C.$slots,"default",{key:2,src:e.unref(M),onLoad:O,onError:_,vImageCancel:e.unref(c)},()=>[e.unref(y)?e.withDirectives((e.openBlock(),e.createElementBlock("img",e.mergeProps({key:0},C.$attrs,{ref_key:"thumbnailRef",ref:s,onLoad:B[0]||(B[0]=$=>O()),onError:B[1]||(B[1]=$=>_()),src:t.thumbnail}),null,16,xn)),[[e.unref(c)]]):e.createCommentVNode("",!0),t.isShowSrc||i.value?e.withDirectives((e.openBlock(),e.createElementBlock("img",e.mergeProps({key:1},C.$attrs,{ref_key:"srcRef",ref:l,class:"src-class",onLoad:B[2]||(B[2]=$=>O(!0)),onError:B[3]||(B[3]=$=>_(!0)),src:e.unref(M)}),null,16,_n)),[[e.unref(c)],[e.vShow,i.value]]):e.createCommentVNode("",!0)],!0):(e.openBlock(),e.createElementBlock("div",e.mergeProps({key:1},C.$attrs,{title:e.unref(M),class:"tip-wrap"}),[e.createVNode(te,{class:"no-support-icon",name:t.noSupportIconName},null,8,["name"]),e.withDirectives((e.openBlock(),e.createElementBlock("span",jn,Sn)),[[e.unref(ye),w]])],16,Cn))],64))}}),fo="",Bn=W(bn,[["__scopeId","data-v-bfec1a6b"]]),Qn=["title"],Yn=["src"],Un=["title"],Rn=e.defineComponent({__name:"Thumbnail",props:{src:null,mime:null},emits:["noSupport"],setup(t,{emit:n}){const o=t,l=e.ref(!1),{src:s,mime:a}=e.toRefs(o),{imgSrc:i,hasError:f,isSupport:r,handleError:u}=Ke(s,a),{vImageCancel:M}=Ze();function d(){n("noSupport")}return(h,g)=>e.unref(r)?e.unref(f)?(e.openBlock(),e.createElementBlock("div",{key:2,title:e.unref(i),class:"icon-wrap"},[e.createVNode(te,{class:"icon",name:"\u56FE\u7247\u635F\u574F"})],8,Un)):e.withDirectives((e.openBlock(),e.createElementBlock("img",{key:1,fetchpriority:"high",onLoad:g[0]||(g[0]=c=>l.value=!0),onError:g[1]||(g[1]=(...c)=>e.unref(u)&&e.unref(u)(...c)),src:e.unref(i)},null,40,Yn)),[[e.unref(M)],[e.vShow,l.value]]):(e.openBlock(),e.createElementBlock("div",{key:0,title:e.unref(i),class:"icon-wrap"},[e.withDirectives(e.createVNode(te,{class:"icon",name:"\u672A\u77E5\u7C7B\u578B"},null,512),[[e.unref(ye),d]])],8,Qn))}}),Mo="",Pn=W(Rn,[["__scopeId","data-v-2f606efa"]]);z.DefaultLoading=Qe,z.Image=Bn,z.Loading=An,z.LoadingToast=Ye,z.PageLoading=jt,z.PullRefresh=Xe,z.ScrollBar=an,z.SvgIcon=te,z.Thumbnail=Pn,z.ToastCreator=tn,z.VirtualList=Nn,z.allSelectedKey=ce,z.closeDialogKey=Be,z.dialogController=wt,z.getTransform=me,z.isAllSelectedKey=Me,z.isSelectedKey=re,z.itemKeyKey=Ee,z.once=Ve,z.selectAllKey=de,z.selectKey=ue,z.selectedCountKey=ge,z.toggleAllKey=ae,z.toggleKey=ie,z.unselectAllKey=ee,z.unselectKey=fe,z.useBackPress=Gt,z.useDelayAsync=Yt,z.useDelayLoad=vt,z.useDelayLoadComp=Ae,z.useDownDrag=Zt,z.useDragSelect=ze,z.useDragSelectByMobile=Dt,z.useDragSelectByPc=yt,z.useRouterActivated=Fe,z.useScaleImageByMobile=Kt,z.useScaleImageByPc=Xt,z.useSelectable=ht,z.useSelectableByBase=pt,z.useSelectableInjectors=mt,z.useVirtualList=be,z.vDebounceClick=Je,z.vEnter=ye,z.vSingleClick=xe,Object.defineProperties(z,{__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.200",
3
+ "version": "0.0.201",
4
4
  "description": "lazycat ui toolkits",
5
5
  "main": "./dist/index.umd.js",
6
6
  "module": "./dist/index.es.js",