ui-process-h5 2.5.49 → 2.5.51

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.
@@ -426,32 +426,32 @@ function st(t, s, e, i, a, n) {
426
426
  enumerable: !0,
427
427
  configurable: !0,
428
428
  get: function() {
429
- var v = c ? c.call(t) : e;
429
+ var A = c ? c.call(t) : e;
430
430
  return et.target && (process.env.NODE_ENV !== "production" ? r.depend({
431
431
  target: t,
432
432
  type: "get",
433
433
  key: s
434
- }) : r.depend(), h && (h.dep.depend(), I(v) && Fa(v))), nt(v) && !a ? v.value : v;
434
+ }) : r.depend(), h && (h.dep.depend(), I(A) && Fa(A))), nt(A) && !a ? A.value : A;
435
435
  },
436
- set: function(v) {
436
+ set: function(A) {
437
437
  var k = c ? c.call(t) : e;
438
- if (!!Rn(k, v)) {
438
+ if (!!Rn(k, A)) {
439
439
  if (process.env.NODE_ENV !== "production" && i && i(), u)
440
- u.call(t, v);
440
+ u.call(t, A);
441
441
  else {
442
442
  if (c)
443
443
  return;
444
- if (!a && nt(k) && !nt(v)) {
445
- k.value = v;
444
+ if (!a && nt(k) && !nt(A)) {
445
+ k.value = A;
446
446
  return;
447
447
  } else
448
- e = v;
448
+ e = A;
449
449
  }
450
- h = !a && ht(v, !1, n), process.env.NODE_ENV !== "production" ? r.notify({
450
+ h = !a && ht(A, !1, n), process.env.NODE_ENV !== "production" ? r.notify({
451
451
  type: "set",
452
452
  target: t,
453
453
  key: s,
454
- newValue: v,
454
+ newValue: A,
455
455
  oldValue: k
456
456
  }) : r.notify();
457
457
  }
@@ -714,8 +714,8 @@ function cr(t, s, e, i, a) {
714
714
  }
715
715
  var h = Ut(c), g = Rt(c);
716
716
  if (!(h in n) && !(g in n) && (n[c] = e[c], a)) {
717
- var v = t.on || (t.on = {});
718
- v["update:".concat(c)] = function(k) {
717
+ var A = t.on || (t.on = {});
718
+ A["update:".concat(c)] = function(k) {
719
719
  e[c] = k;
720
720
  };
721
721
  }
@@ -973,8 +973,8 @@ function kr(t, s) {
973
973
  return Et(i, e);
974
974
  });
975
975
  var o = function(g) {
976
- for (var v = 0, k = i.length; v < k; v++)
977
- i[v].$forceUpdate();
976
+ for (var A = 0, k = i.length; A < k; A++)
977
+ i[A].$forceUpdate();
978
978
  g && (i.length = 0, n !== null && (clearTimeout(n), n = null), r !== null && (clearTimeout(r), r = null));
979
979
  }, c = Le(function(g) {
980
980
  t.resolved = $e(g, s), a ? i.length = 0 : o(!0);
@@ -1349,9 +1349,9 @@ function Gr(t, s, e, i, a) {
1349
1349
  var g = t.$options._parentListeners;
1350
1350
  if (t._listenersProxy && Ge(t._listenersProxy, e, g || R, t, "$listeners"), t.$listeners = t.$options._parentListeners = e, Ha(t, e, g), s && t.$options.props) {
1351
1351
  Tt(!1);
1352
- for (var v = t._props, k = t.$options._propKeys || [], M = 0; M < k.length; M++) {
1352
+ for (var A = t._props, k = t.$options._propKeys || [], M = 0; M < k.length; M++) {
1353
1353
  var G = k[M], ot = t.$options.props;
1354
- v[G] = _s(G, ot, s, t);
1354
+ A[G] = _s(G, ot, s, t);
1355
1355
  }
1356
1356
  Tt(!0), t.$options.propsData = s;
1357
1357
  }
@@ -1505,11 +1505,11 @@ function Js(t, s, e, i, a) {
1505
1505
  get: function() {
1506
1506
  return oe(i, t.scopedSlots, this.slots());
1507
1507
  }
1508
- }), c && (this.$options = r, this.$slots = this.slots(), this.$scopedSlots = oe(i, t.scopedSlots, this.$slots)), r._scopeId ? this._c = function(h, g, v, k) {
1509
- var M = Je(o, h, g, v, k, u);
1508
+ }), c && (this.$options = r, this.$slots = this.slots(), this.$scopedSlots = oe(i, t.scopedSlots, this.$slots)), r._scopeId ? this._c = function(h, g, A, k) {
1509
+ var M = Je(o, h, g, A, k, u);
1510
1510
  return M && !I(M) && (M.fnScopeId = r._scopeId, M.fnContext = i), M;
1511
- } : this._c = function(h, g, v, k) {
1512
- return Je(o, h, g, v, k, u);
1511
+ } : this._c = function(h, g, A, k) {
1512
+ return Je(o, h, g, A, k, u);
1513
1513
  };
1514
1514
  }
1515
1515
  qa(Js.prototype);
@@ -1524,9 +1524,9 @@ function zr(t, s, e, i, a) {
1524
1524
  if (h instanceof j)
1525
1525
  return vi(h, e, u.parent, n, u);
1526
1526
  if (I(h)) {
1527
- for (var g = Ms(h) || [], v = new Array(g.length), k = 0; k < g.length; k++)
1528
- v[k] = vi(g[k], e, u.parent, n, u);
1529
- return v;
1527
+ for (var g = Ms(h) || [], A = new Array(g.length), k = 0; k < g.length; k++)
1528
+ A[k] = vi(g[k], e, u.parent, n, u);
1529
+ return A;
1530
1530
  }
1531
1531
  }
1532
1532
  function vi(t, s, e, i, a) {
@@ -1872,8 +1872,8 @@ function ho(t, s, e, i, a) {
1872
1872
  o.push(u.expectedType || ""), r = u.valid;
1873
1873
  }
1874
1874
  }
1875
- var h = o.some(function(v) {
1876
- return v;
1875
+ var h = o.some(function(A) {
1876
+ return A;
1877
1877
  });
1878
1878
  if (!r && h) {
1879
1879
  m(Ao(s, e, o), i);
@@ -2517,24 +2517,24 @@ function Tc(t) {
2517
2517
  })) && B.isUnknownElement(p.tag);
2518
2518
  }
2519
2519
  var h = 0;
2520
- function g(p, l, f, A, y, N, T) {
2521
- if (d(p.elm) && d(N) && (p = N[T] = ds(p)), p.isRootInsert = !y, !v(p, l, f, A)) {
2520
+ function g(p, l, f, v, y, N, T) {
2521
+ if (d(p.elm) && d(N) && (p = N[T] = ds(p)), p.isRootInsert = !y, !A(p, l, f, v)) {
2522
2522
  var b = p.data, x = p.children, w = p.tag;
2523
- d(w) ? (process.env.NODE_ENV !== "production" && (b && b.pre && h++, u(p, h) && m("Unknown custom element: <" + w + '> - did you register the component correctly? For recursive components, make sure to provide the "name" option.', p.context)), p.elm = p.ns ? n.createElementNS(p.ns, w) : n.createElement(w, p), xt(p), ot(p, x, l), d(b) && Y(p, l), G(f, p.elm, A), process.env.NODE_ENV !== "production" && b && b.pre && h--) : O(p.isComment) ? (p.elm = n.createComment(p.text), G(f, p.elm, A)) : (p.elm = n.createTextNode(p.text), G(f, p.elm, A));
2523
+ d(w) ? (process.env.NODE_ENV !== "production" && (b && b.pre && h++, u(p, h) && m("Unknown custom element: <" + w + '> - did you register the component correctly? For recursive components, make sure to provide the "name" option.', p.context)), p.elm = p.ns ? n.createElementNS(p.ns, w) : n.createElement(w, p), xt(p), ot(p, x, l), d(b) && Y(p, l), G(f, p.elm, v), process.env.NODE_ENV !== "production" && b && b.pre && h--) : O(p.isComment) ? (p.elm = n.createComment(p.text), G(f, p.elm, v)) : (p.elm = n.createTextNode(p.text), G(f, p.elm, v));
2524
2524
  }
2525
2525
  }
2526
- function v(p, l, f, A) {
2526
+ function A(p, l, f, v) {
2527
2527
  var y = p.data;
2528
2528
  if (d(y)) {
2529
2529
  var N = d(p.componentInstance) && y.keepAlive;
2530
2530
  if (d(y = y.hook) && d(y = y.init) && y(p, !1), d(p.componentInstance))
2531
- return k(p, l), G(f, p.elm, A), O(N) && M(p, l, f, A), !0;
2531
+ return k(p, l), G(f, p.elm, v), O(N) && M(p, l, f, v), !0;
2532
2532
  }
2533
2533
  }
2534
2534
  function k(p, l) {
2535
2535
  d(p.data.pendingInsert) && (l.push.apply(l, p.data.pendingInsert), p.data.pendingInsert = null), p.elm = p.componentInstance.$el, _(p) ? (Y(p, l), xt(p)) : (Wt(p), l.push(p));
2536
2536
  }
2537
- function M(p, l, f, A) {
2537
+ function M(p, l, f, v) {
2538
2538
  for (var y, N = p; N.componentInstance; )
2539
2539
  if (N = N.componentInstance._vnode, d(y = N.data) && d(y = y.transition)) {
2540
2540
  for (y = 0; y < i.activate.length; ++y)
@@ -2542,7 +2542,7 @@ function Tc(t) {
2542
2542
  l.push(N);
2543
2543
  break;
2544
2544
  }
2545
- G(f, p.elm, A);
2545
+ G(f, p.elm, v);
2546
2546
  }
2547
2547
  function G(p, l, f) {
2548
2548
  d(p) && (d(f) ? n.parentNode(f) === p && n.insertBefore(p, l, f) : n.appendChild(p, l));
@@ -2550,8 +2550,8 @@ function Tc(t) {
2550
2550
  function ot(p, l, f) {
2551
2551
  if (I(l)) {
2552
2552
  process.env.NODE_ENV !== "production" && jt(l);
2553
- for (var A = 0; A < l.length; ++A)
2554
- g(l[A], f, p.elm, null, !0, l, A);
2553
+ for (var v = 0; v < l.length; ++v)
2554
+ g(l[v], f, p.elm, null, !0, l, v);
2555
2555
  } else
2556
2556
  ft(p.text) && n.appendChild(p.elm, n.createTextNode(String(p.text)));
2557
2557
  }
@@ -2574,14 +2574,14 @@ function Tc(t) {
2574
2574
  d(l = f.context) && d(l = l.$options._scopeId) && n.setStyleScope(p.elm, l), f = f.parent;
2575
2575
  d(l = Lt) && l !== p.context && l !== p.fnContext && d(l = l.$options._scopeId) && n.setStyleScope(p.elm, l);
2576
2576
  }
2577
- function qt(p, l, f, A, y, N) {
2578
- for (; A <= y; ++A)
2579
- g(f[A], N, p, l, !1, f, A);
2577
+ function qt(p, l, f, v, y, N) {
2578
+ for (; v <= y; ++v)
2579
+ g(f[v], N, p, l, !1, f, v);
2580
2580
  }
2581
2581
  function Bt(p) {
2582
- var l, f, A = p.data;
2583
- if (d(A))
2584
- for (d(l = A.hook) && d(l = l.destroy) && l(p), l = 0; l < i.destroy.length; ++l)
2582
+ var l, f, v = p.data;
2583
+ if (d(v))
2584
+ for (d(l = v.hook) && d(l = l.destroy) && l(p), l = 0; l < i.destroy.length; ++l)
2585
2585
  i.destroy[l](p);
2586
2586
  if (d(l = p.children))
2587
2587
  for (f = 0; f < p.children.length; ++f)
@@ -2589,41 +2589,41 @@ function Tc(t) {
2589
2589
  }
2590
2590
  function ct(p, l, f) {
2591
2591
  for (; l <= f; ++l) {
2592
- var A = p[l];
2593
- d(A) && (d(A.tag) ? (tt(A), Bt(A)) : c(A.elm));
2592
+ var v = p[l];
2593
+ d(v) && (d(v.tag) ? (tt(v), Bt(v)) : c(v.elm));
2594
2594
  }
2595
2595
  }
2596
2596
  function tt(p, l) {
2597
2597
  if (d(l) || d(p.data)) {
2598
- var f, A = i.remove.length + 1;
2599
- for (d(l) ? l.listeners += A : l = o(p.elm, A), d(f = p.componentInstance) && d(f = f._vnode) && d(f.data) && tt(f, l), f = 0; f < i.remove.length; ++f)
2598
+ var f, v = i.remove.length + 1;
2599
+ for (d(l) ? l.listeners += v : l = o(p.elm, v), d(f = p.componentInstance) && d(f = f._vnode) && d(f.data) && tt(f, l), f = 0; f < i.remove.length; ++f)
2600
2600
  i.remove[f](p, l);
2601
2601
  d(f = p.data.hook) && d(f = f.remove) ? f(p, l) : l();
2602
2602
  } else
2603
2603
  c(p.elm);
2604
2604
  }
2605
- function se(p, l, f, A, y) {
2605
+ function se(p, l, f, v, y) {
2606
2606
  var N = 0, T = 0, b = l.length - 1, x = l[0], w = l[b], E = f.length - 1, F = f[0], Z = f[E], Dt, At, vt, si, Xe = !y;
2607
2607
  for (process.env.NODE_ENV !== "production" && jt(f); N <= b && T <= E; )
2608
- C(x) ? x = l[++N] : C(w) ? w = l[--b] : Ot(x, F) ? (lt(x, F, A, f, T), x = l[++N], F = f[++T]) : Ot(w, Z) ? (lt(w, Z, A, f, E), w = l[--b], Z = f[--E]) : Ot(x, Z) ? (lt(x, Z, A, f, E), Xe && n.insertBefore(p, x.elm, n.nextSibling(w.elm)), x = l[++N], Z = f[--E]) : Ot(w, F) ? (lt(w, F, A, f, T), Xe && n.insertBefore(p, w.elm, x.elm), w = l[--b], F = f[++T]) : (C(Dt) && (Dt = bc(l, N, b)), At = d(F.key) ? Dt[F.key] : Ie(F, l, N, b), C(At) ? g(F, A, p, x.elm, !1, f, T) : (vt = l[At], Ot(vt, F) ? (lt(vt, F, A, f, T), l[At] = void 0, Xe && n.insertBefore(p, vt.elm, x.elm)) : g(F, A, p, x.elm, !1, f, T)), F = f[++T]);
2609
- N > b ? (si = C(f[E + 1]) ? null : f[E + 1].elm, qt(p, si, f, T, E, A)) : T > E && ct(l, N, b);
2608
+ C(x) ? x = l[++N] : C(w) ? w = l[--b] : Ot(x, F) ? (lt(x, F, v, f, T), x = l[++N], F = f[++T]) : Ot(w, Z) ? (lt(w, Z, v, f, E), w = l[--b], Z = f[--E]) : Ot(x, Z) ? (lt(x, Z, v, f, E), Xe && n.insertBefore(p, x.elm, n.nextSibling(w.elm)), x = l[++N], Z = f[--E]) : Ot(w, F) ? (lt(w, F, v, f, T), Xe && n.insertBefore(p, w.elm, x.elm), w = l[--b], F = f[++T]) : (C(Dt) && (Dt = bc(l, N, b)), At = d(F.key) ? Dt[F.key] : Ie(F, l, N, b), C(At) ? g(F, v, p, x.elm, !1, f, T) : (vt = l[At], Ot(vt, F) ? (lt(vt, F, v, f, T), l[At] = void 0, Xe && n.insertBefore(p, vt.elm, x.elm)) : g(F, v, p, x.elm, !1, f, T)), F = f[++T]);
2609
+ N > b ? (si = C(f[E + 1]) ? null : f[E + 1].elm, qt(p, si, f, T, E, v)) : T > E && ct(l, N, b);
2610
2610
  }
2611
2611
  function jt(p) {
2612
2612
  for (var l = {}, f = 0; f < p.length; f++) {
2613
- var A = p[f], y = A.key;
2614
- d(y) && (l[y] ? m("Duplicate keys detected: '".concat(y, "'. This may cause an update error."), A.context) : l[y] = !0);
2613
+ var v = p[f], y = v.key;
2614
+ d(y) && (l[y] ? m("Duplicate keys detected: '".concat(y, "'. This may cause an update error."), v.context) : l[y] = !0);
2615
2615
  }
2616
2616
  }
2617
- function Ie(p, l, f, A) {
2618
- for (var y = f; y < A; y++) {
2617
+ function Ie(p, l, f, v) {
2618
+ for (var y = f; y < v; y++) {
2619
2619
  var N = l[y];
2620
2620
  if (d(N) && Ot(p, N))
2621
2621
  return y;
2622
2622
  }
2623
2623
  }
2624
- function lt(p, l, f, A, y, N) {
2624
+ function lt(p, l, f, v, y, N) {
2625
2625
  if (p !== l) {
2626
- d(l.elm) && d(A) && (l = A[y] = ds(l));
2626
+ d(l.elm) && d(v) && (l = v[y] = ds(l));
2627
2627
  var T = l.elm = p.elm;
2628
2628
  if (O(p.isAsyncPlaceholder)) {
2629
2629
  d(l.asyncFactory.resolved) ? gt(p.elm, l, f) : l.isAsyncPlaceholder = !0;
@@ -2648,15 +2648,15 @@ function Tc(t) {
2648
2648
  if (O(f) && d(p.parent))
2649
2649
  p.parent.data.pendingInsert = l;
2650
2650
  else
2651
- for (var A = 0; A < l.length; ++A)
2652
- l[A].data.hook.insert(l[A]);
2651
+ for (var v = 0; v < l.length; ++v)
2652
+ l[v].data.hook.insert(l[v]);
2653
2653
  }
2654
2654
  var St = !1, be = z("attrs,class,staticClass,staticStyle,key");
2655
- function gt(p, l, f, A) {
2655
+ function gt(p, l, f, v) {
2656
2656
  var y, N = l.tag, T = l.data, b = l.children;
2657
- if (A = A || T && T.pre, l.elm = p, O(l.isComment) && d(l.asyncFactory))
2657
+ if (v = v || T && T.pre, l.elm = p, O(l.isComment) && d(l.asyncFactory))
2658
2658
  return l.isAsyncPlaceholder = !0, !0;
2659
- if (process.env.NODE_ENV !== "production" && !Kt(p, l, A))
2659
+ if (process.env.NODE_ENV !== "production" && !Kt(p, l, v))
2660
2660
  return !1;
2661
2661
  if (d(T) && (d(y = T.hook) && d(y = y.init) && y(l, !0), d(y = l.componentInstance)))
2662
2662
  return k(l, f), !0;
@@ -2669,7 +2669,7 @@ function Tc(t) {
2669
2669
  return process.env.NODE_ENV !== "production" && typeof console < "u" && !St && (St = !0, console.warn("Parent: ", p), console.warn("server innerHTML: ", y), console.warn("client innerHTML: ", p.innerHTML)), !1;
2670
2670
  } else {
2671
2671
  for (var x = !0, w = p.firstChild, E = 0; E < b.length; E++) {
2672
- if (!w || !gt(w, b[E], f, A)) {
2672
+ if (!w || !gt(w, b[E], f, v)) {
2673
2673
  x = !1;
2674
2674
  break;
2675
2675
  }
@@ -2694,7 +2694,7 @@ function Tc(t) {
2694
2694
  function Kt(p, l, f) {
2695
2695
  return d(l.tag) ? l.tag.indexOf("vue-component") === 0 || !u(l, f) && l.tag.toLowerCase() === (p.tagName && p.tagName.toLowerCase()) : p.nodeType === (l.isComment ? 8 : 3);
2696
2696
  }
2697
- return function(l, f, A, y) {
2697
+ return function(l, f, v, y) {
2698
2698
  if (C(f)) {
2699
2699
  d(l) && Bt(l);
2700
2700
  return;
@@ -2708,7 +2708,7 @@ function Tc(t) {
2708
2708
  lt(l, f, T, null, null, y);
2709
2709
  else {
2710
2710
  if (b) {
2711
- if (l.nodeType === 1 && l.hasAttribute(ai) && (l.removeAttribute(ai), A = !0), O(A)) {
2711
+ if (l.nodeType === 1 && l.hasAttribute(ai) && (l.removeAttribute(ai), v = !0), O(v)) {
2712
2712
  if (gt(l, f, T))
2713
2713
  return mt(f, T, !0), l;
2714
2714
  process.env.NODE_ENV !== "production" && m("The client-side rendered virtual DOM tree is not matching server-rendered content. This is likely caused by incorrect HTML markup, for example nesting block-level elements inside <p>, or missing <tbody>. Bailing hydration and performing full client-side render.");
@@ -2758,14 +2758,14 @@ function Nc(t, s) {
2758
2758
  u = a[c], h = n[c], u ? (h.oldValue = u.value, h.oldArg = u.arg, ne(h, "update", s, t), h.def && h.def.componentUpdated && o.push(h)) : (ne(h, "bind", s, t), h.def && h.def.inserted && r.push(h));
2759
2759
  if (r.length) {
2760
2760
  var g = function() {
2761
- for (var v = 0; v < r.length; v++)
2762
- ne(r[v], "inserted", s, t);
2761
+ for (var A = 0; A < r.length; A++)
2762
+ ne(r[A], "inserted", s, t);
2763
2763
  };
2764
2764
  e ? yt(s, "insert", g) : g();
2765
2765
  }
2766
2766
  if (o.length && yt(s, "postpatch", function() {
2767
- for (var v = 0; v < o.length; v++)
2768
- ne(o[v], "componentUpdated", s, t);
2767
+ for (var A = 0; A < o.length; A++)
2768
+ ne(o[A], "componentUpdated", s, t);
2769
2769
  }), !e)
2770
2770
  for (c in a)
2771
2771
  n[c] || ne(a[c], "unbind", t, t, i);
@@ -3083,12 +3083,12 @@ var Kc = /\b(transform|all)(,|$)/;
3083
3083
  function An(t, s) {
3084
3084
  var e = window.getComputedStyle(t), i = (e[Qe + "Delay"] || "").split(", "), a = (e[Qe + "Duration"] || "").split(", "), n = Wi(i, a), r = (e[Ns + "Delay"] || "").split(", "), o = (e[Ns + "Duration"] || "").split(", "), c = Wi(r, o), u, h = 0, g = 0;
3085
3085
  s === _t ? n > 0 && (u = _t, h = n, g = a.length) : s === cs ? c > 0 && (u = cs, h = c, g = o.length) : (h = Math.max(n, c), u = h > 0 ? n > c ? _t : cs : null, g = u ? u === _t ? a.length : o.length : 0);
3086
- var v = u === _t && Kc.test(e[Qe + "Property"]);
3086
+ var A = u === _t && Kc.test(e[Qe + "Property"]);
3087
3087
  return {
3088
3088
  type: u,
3089
3089
  timeout: h,
3090
3090
  propCount: g,
3091
- hasTransform: v
3091
+ hasTransform: A
3092
3092
  };
3093
3093
  }
3094
3094
  function Wi(t, s) {
@@ -3106,18 +3106,18 @@ function ws(t, s) {
3106
3106
  d(e._leaveCb) && (e._leaveCb.cancelled = !0, e._leaveCb());
3107
3107
  var i = dn(t.data.transition);
3108
3108
  if (!C(i) && !(d(e._enterCb) || e.nodeType !== 1)) {
3109
- for (var a = i.css, n = i.type, r = i.enterClass, o = i.enterToClass, c = i.enterActiveClass, u = i.appearClass, h = i.appearToClass, g = i.appearActiveClass, v = i.beforeEnter, k = i.enter, M = i.afterEnter, G = i.enterCancelled, ot = i.beforeAppear, _ = i.appear, Y = i.afterAppear, xt = i.appearCancelled, qt = i.duration, Bt = Lt, ct = Lt.$vnode; ct && ct.parent; )
3109
+ for (var a = i.css, n = i.type, r = i.enterClass, o = i.enterToClass, c = i.enterActiveClass, u = i.appearClass, h = i.appearToClass, g = i.appearActiveClass, A = i.beforeEnter, k = i.enter, M = i.afterEnter, G = i.enterCancelled, ot = i.beforeAppear, _ = i.appear, Y = i.afterAppear, xt = i.appearCancelled, qt = i.duration, Bt = Lt, ct = Lt.$vnode; ct && ct.parent; )
3110
3110
  Bt = ct.context, ct = ct.parent;
3111
3111
  var tt = !Bt._isMounted || !t.isRootInsert;
3112
3112
  if (!(tt && !_ && _ !== "")) {
3113
- var se = tt && u ? u : r, jt = tt && g ? g : c, Ie = tt && h ? h : o, lt = tt && ot || v, mt = tt && D(_) ? _ : k, St = tt && Y || M, be = tt && xt || G, gt = ce(V(qt) ? qt.enter : qt);
3113
+ var se = tt && u ? u : r, jt = tt && g ? g : c, Ie = tt && h ? h : o, lt = tt && ot || A, mt = tt && D(_) ? _ : k, St = tt && Y || M, be = tt && xt || G, gt = ce(V(qt) ? qt.enter : qt);
3114
3114
  process.env.NODE_ENV !== "production" && gt != null && yn(gt, "enter", t);
3115
3115
  var Kt = a !== !1 && !$t, p = $s(mt), l = e._enterCb = Le(function() {
3116
3116
  Kt && (dt(e, Ie), dt(e, jt)), l.cancelled ? (Kt && dt(e, se), be && be(e)) : St && St(e), e._enterCb = null;
3117
3117
  });
3118
3118
  t.data.show || yt(t, "insert", function() {
3119
- var f = e.parentNode, A = f && f._pending && f._pending[t.key];
3120
- A && A.tag === t.tag && A.elm._leaveCb && A.elm._leaveCb(), mt && mt(e, l);
3119
+ var f = e.parentNode, v = f && f._pending && f._pending[t.key];
3120
+ v && v.tag === t.tag && v.elm._leaveCb && v.elm._leaveCb(), mt && mt(e, l);
3121
3121
  }), lt && lt(e), Kt && (Ft(e, se), Ft(e, jt), mn(function() {
3122
3122
  dt(e, se), l.cancelled || (Ft(e, Ie), p || (Cn(gt) ? setTimeout(l, gt) : gn(e, n, l)));
3123
3123
  })), t.data.show && (s && s(), mt && mt(e, l)), !Kt && !p && l();
@@ -3132,10 +3132,10 @@ function vn(t, s) {
3132
3132
  return s();
3133
3133
  if (d(e._leaveCb))
3134
3134
  return;
3135
- var a = i.css, n = i.type, r = i.leaveClass, o = i.leaveToClass, c = i.leaveActiveClass, u = i.beforeLeave, h = i.leave, g = i.afterLeave, v = i.leaveCancelled, k = i.delayLeave, M = i.duration, G = a !== !1 && !$t, ot = $s(h), _ = ce(V(M) ? M.leave : M);
3135
+ var a = i.css, n = i.type, r = i.leaveClass, o = i.leaveToClass, c = i.leaveActiveClass, u = i.beforeLeave, h = i.leave, g = i.afterLeave, A = i.leaveCancelled, k = i.delayLeave, M = i.duration, G = a !== !1 && !$t, ot = $s(h), _ = ce(V(M) ? M.leave : M);
3136
3136
  process.env.NODE_ENV !== "production" && d(_) && yn(_, "leave", t);
3137
3137
  var Y = e._leaveCb = Le(function() {
3138
- e.parentNode && e.parentNode._pending && (e.parentNode._pending[t.key] = null), G && (dt(e, o), dt(e, c)), Y.cancelled ? (G && dt(e, r), v && v(e)) : (s(), g && g(e)), e._leaveCb = null;
3138
+ e.parentNode && e.parentNode._pending && (e.parentNode._pending[t.key] = null), G && (dt(e, o), dt(e, c)), Y.cancelled ? (G && dt(e, r), A && A(e)) : (s(), g && g(e)), e._leaveCb = null;
3139
3139
  });
3140
3140
  k ? k(xt) : xt();
3141
3141
  function xt() {
@@ -3337,10 +3337,10 @@ var el = function(t) {
3337
3337
  if (i === "in-out") {
3338
3338
  if (pe(n))
3339
3339
  return c;
3340
- var g, v = function() {
3340
+ var g, A = function() {
3341
3341
  g();
3342
3342
  };
3343
- yt(o, "afterEnter", v), yt(o, "enterCancelled", v), yt(h, "delayLeave", function(k) {
3343
+ yt(o, "afterEnter", A), yt(o, "enterCancelled", A), yt(h, "delayLeave", function(k) {
3344
3344
  g = k;
3345
3345
  });
3346
3346
  }
@@ -3380,11 +3380,11 @@ var al = {
3380
3380
  }
3381
3381
  }
3382
3382
  if (i) {
3383
- for (var g = [], v = [], o = 0; o < i.length; o++) {
3383
+ for (var g = [], A = [], o = 0; o < i.length; o++) {
3384
3384
  var c = i[o];
3385
- c.data.transition = r, c.data.pos = c.elm.getBoundingClientRect(), e[c.key] ? g.push(c) : v.push(c);
3385
+ c.data.transition = r, c.data.pos = c.elm.getBoundingClientRect(), e[c.key] ? g.push(c) : A.push(c);
3386
3386
  }
3387
- this.kept = t(s, null, g), this.removed = v;
3387
+ this.kept = t(s, null, g), this.removed = A;
3388
3388
  }
3389
3389
  return t(s, null, n);
3390
3390
  },
@@ -3596,8 +3596,8 @@ function L(t, s, e, i, a, n, r, o) {
3596
3596
  var c = typeof t == "function" ? t.options : t;
3597
3597
  s && (c.render = s, c.staticRenderFns = e, c._compiled = !0), i && (c.functional = !0), n && (c._scopeId = "data-v-" + n);
3598
3598
  var u;
3599
- if (r ? (u = function(v) {
3600
- v = v || this.$vnode && this.$vnode.ssrContext || this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext, !v && typeof __VUE_SSR_CONTEXT__ < "u" && (v = __VUE_SSR_CONTEXT__), a && a.call(this, v), v && v._registeredComponents && v._registeredComponents.add(r);
3599
+ if (r ? (u = function(A) {
3600
+ A = A || this.$vnode && this.$vnode.ssrContext || this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext, !A && typeof __VUE_SSR_CONTEXT__ < "u" && (A = __VUE_SSR_CONTEXT__), a && a.call(this, A), A && A._registeredComponents && A._registeredComponents.add(r);
3601
3601
  }, c._ssrRegister = u) : a && (u = o ? function() {
3602
3602
  a.call(
3603
3603
  this,
@@ -7449,7 +7449,7 @@ const Rp = {
7449
7449
  this.currentPath.length > 0 && this.paths.push(this.currentPath), this.isDrawing = !1;
7450
7450
  },
7451
7451
  clearCanvas() {
7452
- this.$refs.canvasRef.getContext ? (this.ctx.clearRect(0, 0, this.$refs.canvasRef.width, this.$refs.canvasRef.height), this.signatureImage = "", this.paths = []) : (this.ctx.clearRect(0, 0, this.$refs.canvasRef.$el.offsetWidth, this.$refs.canvasRef.$el.offsetHeight), this.ctx.draw(!0), this.signatureImage = "", this.paths = []), this.$emit("saveSignature", "", !1);
7452
+ this.$refs.canvasRef.getContext ? (this.ctx.clearRect(0, 0, this.$refs.canvasRef.width, this.$refs.canvasRef.height), this.ctx.fillStyle = "#fff", this.ctx.fillRect(0, 0, this.$refs.canvasRef.width, this.$refs.canvasRef.height), this.signatureImage = "", this.paths = []) : (this.ctx.clearRect(0, 0, this.$refs.canvasRef.$el.offsetWidth, this.$refs.canvasRef.$el.offsetHeight), this.ctx.draw(!0), this.signatureImage = "", this.paths = []), this.$emit("saveSignature", "", !1);
7453
7453
  },
7454
7454
  saveSignature() {
7455
7455
  if (this.paths.length == 0) {
@@ -7459,11 +7459,17 @@ const Rp = {
7459
7459
  let t = this;
7460
7460
  if (this.$refs.canvasRef.getContext) {
7461
7461
  let e = 1, i = null;
7462
- i = this.$refs.canvasRef.toDataURL("image/png", e);
7463
- debugger;
7462
+ i = this.$refs.canvasRef.toDataURL("image/jpeg", e);
7464
7463
  let a = window.atob(i.split(",")[1]).length;
7465
- for (console.log("\u521D\u59CB\u957F\u5EA6", a); e >= 0 && (i = this.$refs.canvasRef.toDataURL("image/png", e), !(window.atob(i.split(",")[1]).length <= 65536)); )
7464
+ for (console.log("\u521D\u59CB\u957F\u5EA6", a); e >= 0; ) {
7465
+ const r = atob(base64String.split(",")[1]), o = new Array(r.length);
7466
+ for (let A = 0; A < r.length; A++)
7467
+ o[A] = r.charCodeAt(A);
7468
+ const c = new Uint8Array(o), h = new Blob([c]).size, g = h / 1024;
7469
+ if (console.log("Blob Size (KB):", g), h <= 65536)
7470
+ break;
7466
7471
  e -= 0.01;
7472
+ }
7467
7473
  console.log(e, "\u538B\u7F29\u8D28\u91CF"), console.log(window.atob(i.split(",")[1]).length, "\u538B\u7F29\u540E\u5927\u5C0F"), this.signatureImage = i;
7468
7474
  let n = JSON.parse(localStorage.getItem("signaturesArr")) || [];
7469
7475
  n.unshift(this.signatureImage), this.$set(this, "historyPics", n.slice(0, 3)), localStorage.setItem("signaturesArr", JSON.stringify(this.historyPics));
@@ -7503,7 +7509,7 @@ const Rp = {
7503
7509
  if (e) {
7504
7510
  let i = document.getElementById("canvas-id");
7505
7511
  const a = e.offsetWidth, n = e.offsetHeight - this.actionHeight - this.historyHeight;
7506
- i.style.width = `${a}px`, i.style.height = `${n}px`, i.width = a * window.devicePixelRatio, i.height = n * window.devicePixelRatio, this.ctx = this.$refs.canvasRef.getContext("2d"), this.ctx.scale(window.devicePixelRatio, window.devicePixelRatio);
7512
+ i.style.width = `${a}px`, i.style.height = `${n}px`, i.width = a * window.devicePixelRatio, i.height = n * window.devicePixelRatio, this.ctx = this.$refs.canvasRef.getContext("2d"), this.ctx.scale(window.devicePixelRatio, window.devicePixelRatio), this.ctx.fillStyle = "#fff", this.ctx.fillRect(0, 0, i.width, i.height);
7507
7513
  }
7508
7514
  console.log("first"), console.log(window.devicePixelRatio);
7509
7515
  } else {
@@ -7523,7 +7529,7 @@ var qp = /* @__PURE__ */ L(
7523
7529
  Jp,
7524
7530
  !1,
7525
7531
  jp,
7526
- "31e784ba",
7532
+ "cd035e92",
7527
7533
  null,
7528
7534
  null
7529
7535
  );