@gonsin/gview 2.0.14 → 2.0.15

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.
@@ -1,19 +1,19 @@
1
1
  var fo = Object.defineProperty;
2
2
  var ho = (e, n, t) => n in e ? fo(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t;
3
3
  var dt = (e, n, t) => (ho(e, typeof n != "symbol" ? n + "" : n, t), t);
4
- import { defineComponent as te, ref as Q, computed as F, resolveComponent as j, openBlock as p, createBlock as _, normalizeClass as Y, unref as m, withCtx as T, createElementBlock as Z, Fragment as ge, renderList as Ce, createVNode as x, createTextVNode as X, createCommentVNode as G, toDisplayString as be, nextTick as po, createElementVNode as ae, normalizeStyle as Ct, renderSlot as Be, isRef as kn, onMounted as nt, mergeProps as Ht, createSlots as kt, normalizeProps as In, guardReactiveProps as Ln, watch as ve, onBeforeUnmount as et, onBeforeMount as vt, shallowRef as go, defineAsyncComponent as vo, Transition as yo, withModifiers as on } from "vue";
4
+ import { defineComponent as te, ref as Q, computed as F, resolveComponent as U, openBlock as p, createBlock as _, normalizeClass as Y, unref as m, withCtx as T, createElementBlock as Z, Fragment as ge, renderList as Ce, createVNode as x, createTextVNode as X, createCommentVNode as $, toDisplayString as be, nextTick as po, createElementVNode as ae, normalizeStyle as Ct, renderSlot as Oe, isRef as kn, onMounted as nt, mergeProps as Ht, createSlots as kt, normalizeProps as In, guardReactiveProps as Ln, watch as ve, onBeforeUnmount as et, onBeforeMount as vt, shallowRef as go, defineAsyncComponent as vo, Transition as yo, withModifiers as on } from "vue";
5
5
  import { useRouter as st, useRoute as ut } from "vue-router";
6
6
  import { defineStore as It } from "pinia";
7
7
  import { MessagePlugin as ee, DialogPlugin as Tt, Message as bo } from "tdesign-vue-next";
8
8
  import wo from "axios";
9
9
  import { customAlphabet as Mo } from "nanoid";
10
- import { get as oe, set as $e, cloneDeep as pt } from "lodash-es";
10
+ import { get as oe, set as Ge, cloneDeep as pt } from "lodash-es";
11
11
  import lt from "dayjs";
12
12
  import { Toolbar as To, Editor as Co } from "@wangeditor/editor-for-vue";
13
13
  import Ze from "mustache";
14
14
  import ko from "he";
15
15
  import Io from "nprogress";
16
- const gt = "config", an = "themeConfig", Lo = "user", Nr = "menu", ln = "initTabMenuList", rn = "tabMenu", Et = "sideMenuConfig", _r = "token", Sr = "tokenExpiredTime", xr = "dataId", sn = "sessionId", No = {
16
+ const gt = "config", an = "themeConfig", Lo = "user", Bi = "menu", ln = "initTabMenuList", rn = "tabMenu", Et = "sideMenuConfig", Fi = "token", ji = "tokenExpiredTime", Ui = "dataId", sn = "sessionId", No = {
17
17
  brandTheme: "default",
18
18
  // 主题色
19
19
  displayMode: "light"
@@ -40,12 +40,12 @@ const un = (e) => {
40
40
  const n = [];
41
41
  function t(o, a) {
42
42
  o.forEach((l) => {
43
- const { edificeKey: r, name: s, title: i, url: u, icon: c } = l;
43
+ const { edificeKey: i, name: s, title: r, url: u, icon: c } = l;
44
44
  n.push({
45
- edificeKey: r,
45
+ edificeKey: i,
46
46
  name: s,
47
47
  parent: a,
48
- title: i,
48
+ title: r,
49
49
  url: u,
50
50
  icon: c
51
51
  }), l.children && l.children.length > 0 && t(l.children, s);
@@ -290,36 +290,36 @@ function cn(e) {
290
290
  return Ke(e, "Function");
291
291
  }
292
292
  const Vo = (e) => typeof e < "u", Dn = (e) => !Vo(e), Vn = (e) => e !== null && Ke(e, "Object");
293
- function Dr(e) {
293
+ function Ri(e) {
294
294
  return Ke(e, "Date");
295
295
  }
296
- function Vr(e) {
296
+ function zi(e) {
297
297
  return Ke(e, "Number");
298
298
  }
299
- function Ar(e) {
299
+ function $i(e) {
300
300
  return Ke(e, "AsyncFunction");
301
301
  }
302
- function Er(e) {
302
+ function Gi(e) {
303
303
  return Ke(e, "Promise") && Vn(e) && cn(e.then) && cn(e.catch);
304
304
  }
305
- function Pr(e) {
305
+ function Ki(e) {
306
306
  return Ke(e, "String");
307
307
  }
308
- function Br(e) {
308
+ function Wi(e) {
309
309
  return Ke(e, "Boolean");
310
310
  }
311
- function Or(e) {
311
+ function Hi(e) {
312
312
  return e && Array.isArray(e);
313
313
  }
314
- const Fr = () => typeof window < "u", Ur = (e) => typeof window < "u" && Ke(e, "Window"), jr = (e) => Vn(e) && !!e.tagName, Rr = typeof window > "u";
315
- function rt(e) {
314
+ const Qi = () => typeof window < "u", qi = (e) => typeof window < "u" && Ke(e, "Window"), Xi = (e) => Vn(e) && !!e.tagName, Yi = typeof window > "u";
315
+ function it(e) {
316
316
  return e === null;
317
317
  }
318
318
  function dn(e) {
319
- return Dn(e) && rt(e);
319
+ return Dn(e) && it(e);
320
320
  }
321
321
  function xe(e) {
322
- return Dn(e) || rt(e);
322
+ return Dn(e) || it(e);
323
323
  }
324
324
  function An(e) {
325
325
  return xe(e) || (e + "").trim() == "";
@@ -409,8 +409,8 @@ function Xt(e) {
409
409
  const Ao = /* @__PURE__ */ te({
410
410
  __name: "GLayoutHeaderTab",
411
411
  setup(e) {
412
- const n = st(), t = ut(), o = Q(""), a = Lt(), l = Pe(), r = F(() => a.tabMenuList), s = F(() => l.homeUrl);
413
- function i(C, h, M) {
412
+ const n = st(), t = ut(), o = Q(""), a = Lt(), l = Pe(), i = F(() => a.tabMenuList), s = F(() => l.homeUrl);
413
+ function r(C, h, M) {
414
414
  h.trigger === "document" && (o.value = null), C && (o.value = M);
415
415
  }
416
416
  function u(C) {
@@ -443,7 +443,7 @@ const Ao = /* @__PURE__ */ te({
443
443
  a.subtractTabMenuItemBehind({ path: C, itemIdx: h }), P("behind", h);
444
444
  }
445
445
  function L(C, h) {
446
- r.value.length > 2 && (a.subtractTabMenuItemOther({ path: C, itemIdx: h }), P("other", h));
446
+ i.value.length > 2 && (a.subtractTabMenuItemOther({ path: C, itemIdx: h }), P("other", h));
447
447
  }
448
448
  function P(C, h) {
449
449
  const M = t.fullPath, { tabMenuList: S } = a, g = S.findIndex((v) => v.path === M);
@@ -457,7 +457,7 @@ const Ao = /* @__PURE__ */ te({
457
457
  o.value = null;
458
458
  }
459
459
  return (C, h) => {
460
- const M = j("t-icon"), S = j("t-dropdown-item"), g = j("t-dropdown-menu"), b = j("t-dropdown"), v = j("t-tab-panel"), f = j("t-tabs");
460
+ const M = U("t-icon"), S = U("t-dropdown-item"), g = U("t-dropdown-menu"), b = U("t-dropdown"), v = U("t-tab-panel"), f = U("t-tabs");
461
461
  return p(), _(f, {
462
462
  class: Y(`${m(J)}__header-tabs`),
463
463
  size: "large",
@@ -466,7 +466,7 @@ const Ao = /* @__PURE__ */ te({
466
466
  onRemove: c
467
467
  }, {
468
468
  default: T(() => [
469
- (p(!0), Z(ge, null, Ce(m(r), (w, E) => (p(), _(v, {
469
+ (p(!0), Z(ge, null, Ce(m(i), (w, E) => (p(), _(v, {
470
470
  key: w.path,
471
471
  value: w.path,
472
472
  removable: !w.isHome
@@ -475,7 +475,7 @@ const Ao = /* @__PURE__ */ te({
475
475
  x(b, {
476
476
  trigger: "context-menu",
477
477
  "popup-props": {
478
- onVisibleChange: (R, I) => i(R, I, w.path),
478
+ onVisibleChange: (R, I) => r(R, I, w.path),
479
479
  visible: o.value != "" ? o.value === w.path : !1
480
480
  }
481
481
  }, {
@@ -491,8 +491,8 @@ const Ao = /* @__PURE__ */ te({
491
491
  X("前往首页 ")
492
492
  ]),
493
493
  _: 2
494
- }, 1032, ["onClick"])) : G("", !0),
495
- w.isHome ? G("", !0) : (p(), _(S, {
494
+ }, 1032, ["onClick"])) : $("", !0),
495
+ w.isHome ? $("", !0) : (p(), _(S, {
496
496
  key: 1,
497
497
  onClick: () => d(w)
498
498
  }, {
@@ -511,8 +511,8 @@ const Ao = /* @__PURE__ */ te({
511
511
  X("关闭左侧 ")
512
512
  ]),
513
513
  _: 2
514
- }, 1032, ["onClick"])) : G("", !0),
515
- E > 0 && E < m(r).length - 1 ? (p(), _(S, {
514
+ }, 1032, ["onClick"])) : $("", !0),
515
+ E > 0 && E < m(i).length - 1 ? (p(), _(S, {
516
516
  key: 3,
517
517
  onClick: () => k(w.path, E)
518
518
  }, {
@@ -521,8 +521,8 @@ const Ao = /* @__PURE__ */ te({
521
521
  X("关闭右侧 ")
522
522
  ]),
523
523
  _: 2
524
- }, 1032, ["onClick"])) : G("", !0),
525
- E > 0 && m(r).length > 2 ? (p(), _(S, {
524
+ }, 1032, ["onClick"])) : $("", !0),
525
+ E > 0 && m(i).length > 2 ? (p(), _(S, {
526
526
  key: 4,
527
527
  onClick: () => L(w.path, E)
528
528
  }, {
@@ -531,7 +531,7 @@ const Ao = /* @__PURE__ */ te({
531
531
  X("关闭其他 ")
532
532
  ]),
533
533
  _: 2
534
- }, 1032, ["onClick"])) : G("", !0)
534
+ }, 1032, ["onClick"])) : $("", !0)
535
535
  ]),
536
536
  _: 2
537
537
  }, 1024)
@@ -557,14 +557,14 @@ const Eo = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAToAAAAyCAYAAADMZheFAA
557
557
  function l() {
558
558
  t.toggleSideMenuCollapse();
559
559
  }
560
- function r() {
560
+ function i() {
561
561
  t.toggleSettingPanel();
562
562
  }
563
563
  function s() {
564
564
  t.userLogout(), n.push({ name: "login" });
565
565
  }
566
- return (i, u) => {
567
- const c = j("t-icon"), d = j("t-button"), y = j("t-dropdown-item"), k = j("t-dropdown-menu"), L = j("t-dropdown"), P = j("t-tooltip"), C = j("t-head-menu"), h = j("t-header");
566
+ return (r, u) => {
567
+ const c = U("t-icon"), d = U("t-button"), y = U("t-dropdown-item"), k = U("t-dropdown-menu"), L = U("t-dropdown"), P = U("t-tooltip"), C = U("t-head-menu"), h = U("t-header");
568
568
  return p(), _(h, {
569
569
  class: Y(`${m(J)}__header`)
570
570
  }, {
@@ -645,7 +645,7 @@ const Eo = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAToAAAAyCAYAAADMZheFAA
645
645
  theme: "default",
646
646
  shape: "square",
647
647
  variant: "text",
648
- onClick: r
648
+ onClick: i
649
649
  }, {
650
650
  default: T(() => [
651
651
  x(c, { name: "setting" })
@@ -668,11 +668,11 @@ const Eo = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAToAAAAyCAYAAADMZheFAA
668
668
  };
669
669
  }
670
670
  });
671
- const Bo = /* @__PURE__ */ te({
671
+ const Oo = /* @__PURE__ */ te({
672
672
  __name: "GLayoutContent",
673
673
  setup(e) {
674
674
  return (n, t) => {
675
- const o = j("t-content"), a = j("t-layout");
675
+ const o = U("t-content"), a = U("t-layout");
676
676
  return p(), _(a, {
677
677
  class: Y(`${m(J)}__content-layout`)
678
678
  }, {
@@ -681,7 +681,7 @@ const Bo = /* @__PURE__ */ te({
681
681
  class: Y(`${m(J)}__content`)
682
682
  }, {
683
683
  default: T(() => [
684
- Be(n.$slots, "default")
684
+ Oe(n.$slots, "default")
685
685
  ]),
686
686
  _: 3
687
687
  }, 8, ["class"])
@@ -691,7 +691,7 @@ const Bo = /* @__PURE__ */ te({
691
691
  };
692
692
  }
693
693
  });
694
- const zr = [
694
+ const Zi = [
695
695
  "#0052d9",
696
696
  "#0594fa",
697
697
  "#00a870",
@@ -700,7 +700,7 @@ const zr = [
700
700
  "#e34d59",
701
701
  "#ed49b4",
702
702
  "#834ec2"
703
- ], Gr = [
703
+ ], Ji = [
704
704
  "#4582e6",
705
705
  "#29a4fb",
706
706
  "#03a56f",
@@ -709,7 +709,7 @@ const zr = [
709
709
  "#ea7b84",
710
710
  "#f172c5",
711
711
  "#ab87d5"
712
- ], Oo = {
712
+ ], Bo = {
713
713
  DEFAULT: {
714
714
  "--td-brand-color": "#0052d9",
715
715
  "--td-brand-color-1": "#f2f3ff",
@@ -818,11 +818,11 @@ const zr = [
818
818
  function Fo(e) {
819
819
  return e.replace(/([A-Z])/g, "_$1").toUpperCase();
820
820
  }
821
- function Uo(e, n) {
821
+ function jo(e, n) {
822
822
  const t = /^#[A-F\d]{6}$/i.test(e) ? e : Fo(e);
823
823
  return n[t || "DEFAULT"];
824
824
  }
825
- function jo(e, n) {
825
+ function Uo(e, n) {
826
826
  return `
827
827
  return function (context) {
828
828
  "use strict";
@@ -832,7 +832,7 @@ function jo(e, n) {
832
832
  `;
833
833
  }
834
834
  function Ro(e, n) {
835
- let t = jo(e, n);
835
+ let t = Uo(e, n);
836
836
  return Function(t)();
837
837
  }
838
838
  function zt(e, n = {}) {
@@ -842,7 +842,7 @@ function zo(e) {
842
842
  return e === void 0 || e === null || e === "" ? "" : e === 0 ? 0 : e === "0" ? "0" : e;
843
843
  }
844
844
  window.v = zo;
845
- function Go(e) {
845
+ function $o(e) {
846
846
  let n = [];
847
847
  return n.push({
848
848
  colKey: "row-select",
@@ -854,7 +854,7 @@ function Go(e) {
854
854
  }
855
855
  }
856
856
  }), e.forEach((t, o, a) => {
857
- var r;
857
+ var i;
858
858
  let l = {
859
859
  colKey: t.keyName !== "" ? t.keyName : t.name,
860
860
  title: t.name,
@@ -871,7 +871,7 @@ function Go(e) {
871
871
  maxWidth: `calc(${fn(1, a.length)} * 100vw - 32px)`
872
872
  }
873
873
  }), t.columnType == "BUTTONS") {
874
- const s = ((r = t.buttons) == null ? void 0 : r.length) || 1;
874
+ const s = ((i = t.buttons) == null ? void 0 : i.length) || 1;
875
875
  l.ellipsis = void 0, l.attrs = {
876
876
  style: {
877
877
  minWidth: s * 90 + "px"
@@ -890,7 +890,7 @@ function ot(e, n, t) {
890
890
  a.component(n || l || o.name, e), t && a.directive(t.name, t.comp);
891
891
  }, o;
892
892
  }
893
- const $o = /* @__PURE__ */ te({
893
+ const Go = /* @__PURE__ */ te({
894
894
  __name: "GLayoutSideMenuContent",
895
895
  props: {
896
896
  sideMenuTree: null
@@ -898,19 +898,19 @@ const $o = /* @__PURE__ */ te({
898
898
  setup(e) {
899
899
  const n = Pe(), t = st(), o = (a) => {
900
900
  if (Xt(a)) {
901
- const r = Rt(a, { token: n.token });
902
- window.open(r, "_blank");
901
+ const i = Rt(a, { token: n.token, _venuServType: 2 });
902
+ window.open(i, "_blank");
903
903
  } else if (a.startsWith(":")) {
904
- const r = Rt(
904
+ const i = Rt(
905
905
  `${window.location.protocol}//${window.location.hostname}${a}`,
906
906
  { token: n.token, _venuServType: 2 }
907
907
  );
908
- window.open(r, "_blank");
908
+ window.open(i, "_blank");
909
909
  } else
910
910
  t.push(a), n.toggleSideMenuCollapse();
911
911
  };
912
912
  return (a, l) => {
913
- const r = j("t-icon"), s = j("t-menu-item"), i = j("GLayoutSideMenuContent", !0), u = j("t-submenu");
913
+ const i = U("t-icon"), s = U("t-menu-item"), r = U("GLayoutSideMenuContent", !0), u = U("t-submenu");
914
914
  return p(!0), Z(ge, null, Ce(e.sideMenuTree, (c, d) => (p(), Z("div", {
915
915
  class: Y(`${m(J)}__side-menu-content`),
916
916
  key: d
@@ -924,16 +924,16 @@ const $o = /* @__PURE__ */ te({
924
924
  }, {
925
925
  icon: T(() => [
926
926
  c.level == 1 ? (p(), Z(ge, { key: 0 }, [
927
- c.icon ? (p(), _(r, {
927
+ c.icon ? (p(), _(i, {
928
928
  key: 0,
929
929
  name: c.icon,
930
930
  size: "large"
931
- }, null, 8, ["name"])) : (p(), _(r, {
931
+ }, null, 8, ["name"])) : (p(), _(i, {
932
932
  key: 1,
933
933
  name: "app",
934
934
  size: "large"
935
935
  }))
936
- ], 64)) : G("", !0)
936
+ ], 64)) : $("", !0)
937
937
  ]),
938
938
  default: T(() => [
939
939
  X(" " + be(c.title), 1)
@@ -948,22 +948,22 @@ const $o = /* @__PURE__ */ te({
948
948
  }, {
949
949
  icon: T(() => [
950
950
  c.level == 1 ? (p(), Z(ge, { key: 0 }, [
951
- c.icon ? (p(), _(r, {
951
+ c.icon ? (p(), _(i, {
952
952
  key: 0,
953
953
  name: c.icon,
954
954
  size: "large"
955
- }, null, 8, ["name"])) : (p(), _(r, {
955
+ }, null, 8, ["name"])) : (p(), _(i, {
956
956
  key: 1,
957
957
  name: "app",
958
958
  size: "large"
959
959
  }))
960
- ], 64)) : G("", !0)
960
+ ], 64)) : $("", !0)
961
961
  ]),
962
962
  default: T(() => [
963
- c.children ? (p(), _(i, {
963
+ c.children ? (p(), _(r, {
964
964
  key: 0,
965
965
  sideMenuTree: c.children
966
- }, null, 8, ["sideMenuTree"])) : G("", !0)
966
+ }, null, 8, ["sideMenuTree"])) : $("", !0)
967
967
  ]),
968
968
  _: 2
969
969
  }, 1032, ["class", "name", "value", "title"]))
@@ -976,7 +976,7 @@ const Xe = (e, n) => {
976
976
  for (const [o, a] of n)
977
977
  t[o] = a;
978
978
  return t;
979
- }, Ko = /* @__PURE__ */ Xe($o, [["__scopeId", "data-v-652be55f"]]), Wo = /* @__PURE__ */ te({
979
+ }, Ko = /* @__PURE__ */ Xe(Go, [["__scopeId", "data-v-db9b7cab"]]), Wo = /* @__PURE__ */ te({
980
980
  __name: "GLayoutSideMenu",
981
981
  setup(e) {
982
982
  st();
@@ -987,17 +987,17 @@ const Xe = (e, n) => {
987
987
  set() {
988
988
  t.toggleSideMenuCollapse();
989
989
  }
990
- }), r = F(() => {
991
- const i = n.fullPath.split("/").length;
992
- return n.fullPath.split("/")[i - 1];
993
- }), s = F(() => (o.value.forEach((i) => {
994
- i.children && i.children.forEach((u) => {
995
- if (u.path == r.value)
996
- return [i.name];
990
+ }), i = F(() => {
991
+ const r = n.fullPath.split("/").length;
992
+ return n.fullPath.split("/")[r - 1];
993
+ }), s = F(() => (o.value.forEach((r) => {
994
+ r.children && r.children.forEach((u) => {
995
+ if (u.path == i.value)
996
+ return [r.name];
997
997
  });
998
998
  }), []));
999
- return (i, u) => {
1000
- const c = j("t-menu"), d = j("t-drawer");
999
+ return (r, u) => {
1000
+ const c = U("t-menu"), d = U("t-drawer");
1001
1001
  return p(), _(d, {
1002
1002
  class: Y(`${m(J)}__drawer`),
1003
1003
  size: "232px",
@@ -1013,7 +1013,7 @@ const Xe = (e, n) => {
1013
1013
  x(c, {
1014
1014
  width: "210px",
1015
1015
  theme: m(a),
1016
- value: m(r),
1016
+ value: m(i),
1017
1017
  defaultExpanded: m(s)
1018
1018
  }, {
1019
1019
  default: T(() => [
@@ -1034,7 +1034,7 @@ const Ho = /* @__PURE__ */ te({
1034
1034
  },
1035
1035
  setup(e) {
1036
1036
  const n = e, t = F(() => ({
1037
- background: Uo(n.value, Oo)["--td-brand-color"]
1037
+ background: jo(n.value, Bo)["--td-brand-color"]
1038
1038
  }));
1039
1039
  return (o, a) => (p(), Z("div", {
1040
1040
  style: Ct(m(t)),
@@ -1066,15 +1066,15 @@ const Qo = /* @__PURE__ */ te({
1066
1066
  set() {
1067
1067
  n.toggleSettingPanel();
1068
1068
  }
1069
- }), r = () => {
1069
+ }), i = () => {
1070
1070
  n.changeTheme(a.value);
1071
1071
  };
1072
- return (s, i) => {
1073
- const u = j("t-icon"), c = j("t-radio-button"), d = j("t-radio-group"), y = j("t-drawer");
1072
+ return (s, r) => {
1073
+ const u = U("t-icon"), c = U("t-radio-button"), d = U("t-radio-group"), y = U("t-drawer");
1074
1074
  return p(), _(y, {
1075
1075
  class: Y(`${m(J)}__setting-panel`),
1076
1076
  visible: m(l),
1077
- "onUpdate:visible": i[2] || (i[2] = (k) => kn(l) ? l.value = k : null),
1077
+ "onUpdate:visible": r[2] || (r[2] = (k) => kn(l) ? l.value = k : null),
1078
1078
  footer: !1
1079
1079
  }, {
1080
1080
  header: T(() => [
@@ -1090,8 +1090,8 @@ const Qo = /* @__PURE__ */ te({
1090
1090
  }, "主题色", 2),
1091
1091
  x(d, {
1092
1092
  modelValue: m(a).brandTheme,
1093
- "onUpdate:modelValue": i[0] || (i[0] = (k) => m(a).brandTheme = k),
1094
- onChange: r
1093
+ "onUpdate:modelValue": r[0] || (r[0] = (k) => m(a).brandTheme = k),
1094
+ onChange: i
1095
1095
  }, {
1096
1096
  default: T(() => [
1097
1097
  (p(!0), Z(ge, null, Ce(t.slice(0, t.length - 1), (k, L) => (p(), Z("div", { key: L }, [
@@ -1114,9 +1114,9 @@ const Qo = /* @__PURE__ */ te({
1114
1114
  }, "主题模式", 2),
1115
1115
  x(d, {
1116
1116
  modelValue: m(a).displayMode,
1117
- "onUpdate:modelValue": i[1] || (i[1] = (k) => m(a).displayMode = k),
1117
+ "onUpdate:modelValue": r[1] || (r[1] = (k) => m(a).displayMode = k),
1118
1118
  variant: "default-filled",
1119
- onChange: r
1119
+ onChange: i
1120
1120
  }, {
1121
1121
  default: T(() => [
1122
1122
  (p(), Z(ge, null, Ce(o, (k, L) => ae("div", { key: L }, [
@@ -1150,7 +1150,7 @@ const qo = /* @__PURE__ */ te({
1150
1150
  },
1151
1151
  setup(e) {
1152
1152
  return (n, t) => {
1153
- const o = j("t-card"), a = j("t-content"), l = j("t-layout");
1153
+ const o = U("t-card"), a = U("t-content"), l = U("t-layout");
1154
1154
  return p(), Z("div", {
1155
1155
  class: Y(`${m(J)}__layout-main`)
1156
1156
  }, [
@@ -1159,7 +1159,7 @@ const qo = /* @__PURE__ */ te({
1159
1159
  x(Po),
1160
1160
  x(a, null, {
1161
1161
  default: T(() => [
1162
- x(Bo, null, {
1162
+ x(Oo, null, {
1163
1163
  default: T(() => [
1164
1164
  x(o, {
1165
1165
  class: Y(`${m(J)}__card`),
@@ -1167,7 +1167,7 @@ const qo = /* @__PURE__ */ te({
1167
1167
  title: e.title
1168
1168
  }, {
1169
1169
  default: T(() => [
1170
- Be(n.$slots, "default")
1170
+ Oe(n.$slots, "default")
1171
1171
  ]),
1172
1172
  _: 3
1173
1173
  }, 8, ["class", "title"])
@@ -1197,7 +1197,7 @@ const En = /* @__PURE__ */ te({
1197
1197
  n.loadLocalThemeConfig();
1198
1198
  }), (t, o) => (p(), _(qo, { title: e.title }, {
1199
1199
  default: T(() => [
1200
- Be(t.$slots, "default")
1200
+ Oe(t.$slots, "default")
1201
1201
  ]),
1202
1202
  _: 3
1203
1203
  }, 8, ["title"]));
@@ -1209,22 +1209,22 @@ const En = /* @__PURE__ */ te({
1209
1209
  },
1210
1210
  setup(e) {
1211
1211
  return (n, t) => {
1212
- const o = j("t-dialog");
1212
+ const o = U("t-dialog");
1213
1213
  return p(), _(o, Ht({
1214
1214
  class: `${m(J)}__common-dialog`,
1215
1215
  placement: "center"
1216
1216
  }, e.commonDialogProps), kt({ _: 2 }, [
1217
1217
  Ce(n.$slots, (a, l) => ({
1218
1218
  name: l,
1219
- fn: T((r) => [
1220
- Be(n.$slots, l, In(Ln({ ...r })))
1219
+ fn: T((i) => [
1220
+ Oe(n.$slots, l, In(Ln({ ...i })))
1221
1221
  ])
1222
1222
  }))
1223
1223
  ]), 1040, ["class"]);
1224
1224
  };
1225
1225
  }
1226
1226
  });
1227
- const Pn = ot(Xo), Bn = /* @__PURE__ */ te({
1227
+ const Pn = ot(Xo), On = /* @__PURE__ */ te({
1228
1228
  __name: "index",
1229
1229
  props: {
1230
1230
  commonFormProps: null
@@ -1235,7 +1235,7 @@ const Pn = ot(Xo), Bn = /* @__PURE__ */ te({
1235
1235
  return n({
1236
1236
  tFormRef: t
1237
1237
  }), (o, a) => {
1238
- const l = j("t-form");
1238
+ const l = U("t-form");
1239
1239
  return p(), Z("div", {
1240
1240
  class: Y(`${m(J)}__common-form`)
1241
1241
  }, [
@@ -1249,7 +1249,7 @@ const Pn = ot(Xo), Bn = /* @__PURE__ */ te({
1249
1249
  class: Y(`${m(J)}__common-form-main--body`),
1250
1250
  ref: "commonFormBodyRef"
1251
1251
  }, [
1252
- Be(o.$slots, "body")
1252
+ Oe(o.$slots, "body")
1253
1253
  ], 2)
1254
1254
  ]),
1255
1255
  _: 3
@@ -1257,17 +1257,17 @@ const Pn = ot(Xo), Bn = /* @__PURE__ */ te({
1257
1257
  ae("div", {
1258
1258
  class: Y(`${m(J)}__common-form-footer`)
1259
1259
  }, [
1260
- Be(o.$slots, "footer")
1260
+ Oe(o.$slots, "footer")
1261
1261
  ], 2)
1262
1262
  ], 2);
1263
1263
  };
1264
1264
  }
1265
1265
  });
1266
- const Yo = ot(Bn), Zo = /* @__PURE__ */ te({
1266
+ const Yo = ot(On), Zo = /* @__PURE__ */ te({
1267
1267
  __name: "index",
1268
1268
  setup(e) {
1269
1269
  return (n, t) => {
1270
- const o = j("t-row");
1270
+ const o = U("t-row");
1271
1271
  return p(), Z("div", {
1272
1272
  class: Y(`${m(J)}__common-header`)
1273
1273
  }, [
@@ -1280,7 +1280,7 @@ const Yo = ot(Bn), Zo = /* @__PURE__ */ te({
1280
1280
  class: Y(`${m(J)}__common-header--left-row`)
1281
1281
  }, {
1282
1282
  default: T(() => [
1283
- Be(n.$slots, "left-operations")
1283
+ Oe(n.$slots, "left-operations")
1284
1284
  ]),
1285
1285
  _: 3
1286
1286
  }, 8, ["class"])
@@ -1288,7 +1288,7 @@ const Yo = ot(Bn), Zo = /* @__PURE__ */ te({
1288
1288
  ae("div", {
1289
1289
  class: Y(`${m(J)}__common-header--right`)
1290
1290
  }, [
1291
- Be(n.$slots, "right-operations")
1291
+ Oe(n.$slots, "right-operations")
1292
1292
  ], 2)
1293
1293
  ]),
1294
1294
  _: 3
@@ -1297,7 +1297,7 @@ const Yo = ot(Bn), Zo = /* @__PURE__ */ te({
1297
1297
  };
1298
1298
  }
1299
1299
  });
1300
- const On = ot(Zo), Jo = /* @__PURE__ */ te({
1300
+ const Bn = ot(Zo), Jo = /* @__PURE__ */ te({
1301
1301
  __name: "index",
1302
1302
  props: {
1303
1303
  commonTableProps: null
@@ -1307,7 +1307,7 @@ const On = ot(Zo), Jo = /* @__PURE__ */ te({
1307
1307
  return n({
1308
1308
  tTableRef: t
1309
1309
  }), (o, a) => {
1310
- const l = j("t-enhanced-table");
1310
+ const l = U("t-enhanced-table");
1311
1311
  return p(), Z("div", {
1312
1312
  class: Y(`${m(J)}__common-table`)
1313
1313
  }, [
@@ -1321,10 +1321,10 @@ const On = ot(Zo), Jo = /* @__PURE__ */ te({
1321
1321
  bordered: !0,
1322
1322
  tableLayout: "auto"
1323
1323
  }), kt({ _: 2 }, [
1324
- Ce(o.$slots, (r, s) => ({
1324
+ Ce(o.$slots, (i, s) => ({
1325
1325
  name: s,
1326
- fn: T((i) => [
1327
- Be(o.$slots, s, In(Ln({ ...i })))
1326
+ fn: T((r) => [
1327
+ Oe(o.$slots, s, In(Ln({ ...r })))
1328
1328
  ])
1329
1329
  }))
1330
1330
  ]), 1040)
@@ -1360,13 +1360,13 @@ class oa {
1360
1360
  dt(this, "router");
1361
1361
  this.sessionId = na, this.service = wo.create(n), this.router = null, this.service.interceptors.request.use(
1362
1362
  (t) => {
1363
- var l, r, s;
1364
- const o = (l = JSON.parse(localStorage.getItem(gt))) == null ? void 0 : l.userInfo, a = ((s = (r = JSON.parse(localStorage.getItem(gt))) == null ? void 0 : r.userInfo) == null ? void 0 : s.language) || "zh-CN";
1363
+ var l, i, s;
1364
+ const o = (l = JSON.parse(localStorage.getItem(gt))) == null ? void 0 : l.userInfo, a = ((s = (i = JSON.parse(localStorage.getItem(gt))) == null ? void 0 : i.userInfo) == null ? void 0 : s.language) || "zh-CN";
1365
1365
  if (o) {
1366
- const { token: i, tokenExpiredTime: u } = o;
1366
+ const { token: r, tokenExpiredTime: u } = o;
1367
1367
  t.headers = {
1368
1368
  ...t == null ? void 0 : t.headers,
1369
- token: i,
1369
+ token: r,
1370
1370
  lang: a
1371
1371
  };
1372
1372
  }
@@ -1379,14 +1379,14 @@ class oa {
1379
1379
  (t) => {
1380
1380
  const { data: o } = t, { state: a } = o;
1381
1381
  if (a == "-409") {
1382
- const { device: l, uuid: r } = o.data;
1383
- if (l && r) {
1382
+ const { device: l, uuid: i } = o.data;
1383
+ if (l && i) {
1384
1384
  if (this.router) {
1385
1385
  this.router.push({
1386
1386
  name: "license",
1387
1387
  query: {
1388
1388
  device: l,
1389
- uuid: r
1389
+ uuid: i
1390
1390
  }
1391
1391
  });
1392
1392
  return;
@@ -1433,7 +1433,7 @@ const We = new oa(ea), ct = {
1433
1433
  confirm: "/restapi/s09/gview/active/confirm",
1434
1434
  // 触发 - 触发批量操作事件 POST
1435
1435
  batch: "/restapi/s09/gview/active/batch"
1436
- }, Un = (e) => We.get(ct.getOneView, e), Nt = (e) => We.post(ct.getBoardData, e), aa = (e) => We.post(ct.confirm, e), la = (e) => We.post(ct.batch, e), ra = (e) => We.post(ct.activeFile, e), ia = (e) => We.post(ct.downloadFile, e), sa = /* @__PURE__ */ te({
1436
+ }, jn = (e) => We.get(ct.getOneView, e), Nt = (e) => We.post(ct.getBoardData, e), aa = (e) => We.post(ct.confirm, e), la = (e) => We.post(ct.batch, e), ia = (e) => We.post(ct.activeFile, e), ra = (e) => We.post(ct.downloadFile, e), sa = /* @__PURE__ */ te({
1437
1437
  __name: "GHeaderUpload",
1438
1438
  props: {
1439
1439
  formItem: null,
@@ -1443,30 +1443,30 @@ const We = new oa(ea), ct = {
1443
1443
  const n = e, t = Pe(), o = F(() => t.uploadApi);
1444
1444
  function a(s) {
1445
1445
  var u;
1446
- const { response: i } = s;
1447
- i.state == 200 ? (u = i.data) != null && u.length && (ee.success("上传成功"), l(i.data[0])) : (console.log(i), ee.error(`上传失败:${i.message}`));
1446
+ const { response: r } = s;
1447
+ r.state == 200 ? (u = r.data) != null && u.length && (ee.success("上传成功"), l(r.data[0])) : (console.log(r), ee.error(`上传失败:${r.message}`));
1448
1448
  }
1449
1449
  function l(s) {
1450
- let i = [];
1451
- i.push(s), ra({
1450
+ let r = [];
1451
+ r.push(s), ia({
1452
1452
  boardName: n.viewName,
1453
1453
  buttonId: n.formItem.buttonId,
1454
1454
  props: {},
1455
- fileUrls: i
1455
+ fileUrls: r
1456
1456
  }).then((u) => {
1457
1457
  u.state == 200 ? ee.success("导入成功") : ee.error(`导入失败 ${u.message}`);
1458
1458
  });
1459
1459
  }
1460
- function r(s) {
1460
+ function i(s) {
1461
1461
  ee.error(`上传失败:${s}`);
1462
1462
  }
1463
- return (s, i) => {
1464
- const u = j("t-icon"), c = j("t-button"), d = j("t-upload");
1463
+ return (s, r) => {
1464
+ const u = U("t-icon"), c = U("t-button"), d = U("t-upload");
1465
1465
  return p(), _(d, {
1466
1466
  class: "HeaderUpload",
1467
1467
  action: m(o),
1468
1468
  onSuccess: a,
1469
- onFail: r,
1469
+ onFail: i,
1470
1470
  style: { padding: "0 8px 0 0" }
1471
1471
  }, {
1472
1472
  default: T(() => [
@@ -1485,14 +1485,14 @@ const We = new oa(ea), ct = {
1485
1485
  };
1486
1486
  }
1487
1487
  });
1488
- const ua = /* @__PURE__ */ Xe(sa, [["__scopeId", "data-v-15e7203e"]]), jn = /* @__PURE__ */ te({
1488
+ const ua = /* @__PURE__ */ Xe(sa, [["__scopeId", "data-v-15e7203e"]]), Un = /* @__PURE__ */ te({
1489
1489
  __name: "GFormLabel",
1490
1490
  props: {
1491
1491
  modelValue: null
1492
1492
  },
1493
1493
  setup(e) {
1494
1494
  return (n, t) => {
1495
- const o = j("t-tag");
1495
+ const o = U("t-tag");
1496
1496
  return p(), _(o, null, {
1497
1497
  default: T(() => [
1498
1498
  X(be(e.modelValue), 1)
@@ -1523,7 +1523,7 @@ function Yt(e, n) {
1523
1523
  if (!xe(n) && n.length) {
1524
1524
  if (Object.keys(e).length)
1525
1525
  return n.forEach((t) => {
1526
- t.keyName && An(oe(e, t.keyName)) && (t.itemType === "check_box" || t.itemType === "switch") && $e(
1526
+ t.keyName && An(oe(e, t.keyName)) && (t.itemType === "check_box" || t.itemType === "switch") && Ge(
1527
1527
  e,
1528
1528
  t.keyName,
1529
1529
  Ie(t.itemType)
@@ -1532,7 +1532,7 @@ function Yt(e, n) {
1532
1532
  {
1533
1533
  let t = {};
1534
1534
  return n.forEach((o) => {
1535
- xe(o.keyName) || $e(
1535
+ xe(o.keyName) || Ge(
1536
1536
  t,
1537
1537
  o.keyName,
1538
1538
  Ie(o.itemType)
@@ -1542,10 +1542,10 @@ function Yt(e, n) {
1542
1542
  }
1543
1543
  }
1544
1544
  function Rn(e) {
1545
- const { list: n, keyName: t, valueName: o, titleName: a, parentKey: l, parentKeyName: r } = e, s = (i, u) => {
1545
+ const { list: n, keyName: t, valueName: o, titleName: a, parentKey: l, parentKeyName: i } = e, s = (r, u) => {
1546
1546
  const c = [];
1547
1547
  return u.forEach((d) => {
1548
- if (d[r] == i) {
1548
+ if (d[i] == r) {
1549
1549
  const y = s(d[t], n), k = {
1550
1550
  key: d[t],
1551
1551
  label: d[a],
@@ -1558,7 +1558,7 @@ function Rn(e) {
1558
1558
  };
1559
1559
  return s(l, n);
1560
1560
  }
1561
- const Gt = /* @__PURE__ */ te({
1561
+ const $t = /* @__PURE__ */ te({
1562
1562
  __name: "GFormInput",
1563
1563
  props: {
1564
1564
  inputType: null,
@@ -1571,8 +1571,8 @@ const Gt = /* @__PURE__ */ te({
1571
1571
  emits: ["update:modelValue", "blur:modelValue"],
1572
1572
  setup(e, { emit: n }) {
1573
1573
  const t = e, o = F(() => {
1574
- var i;
1575
- return (i = t.formItem) == null ? void 0 : i.itemType;
1574
+ var r;
1575
+ return (r = t.formItem) == null ? void 0 : r.itemType;
1576
1576
  }), a = F(() => t.inputType == "re_password" ? "password" : t.inputType), l = Q(t.modelValue);
1577
1577
  ve(
1578
1578
  () => t.modelValue,
@@ -1584,22 +1584,22 @@ const Gt = /* @__PURE__ */ te({
1584
1584
  immediate: !0
1585
1585
  }
1586
1586
  );
1587
- function r(i) {
1588
- n("update:modelValue", i);
1587
+ function i(r) {
1588
+ n("update:modelValue", r);
1589
1589
  }
1590
- function s(i) {
1591
- t.originValue && t.originValue != i && n("blur:modelValue", i);
1590
+ function s(r) {
1591
+ t.originValue && t.originValue != r && n("blur:modelValue", r);
1592
1592
  }
1593
1593
  return et(() => {
1594
- r(Ie(o.value));
1595
- }), (i, u) => {
1596
- const c = j("t-input");
1594
+ i(Ie(o.value));
1595
+ }), (r, u) => {
1596
+ const c = U("t-input");
1597
1597
  return p(), _(c, {
1598
1598
  modelValue: l.value,
1599
1599
  "onUpdate:modelValue": u[0] || (u[0] = (d) => l.value = d),
1600
1600
  type: m(a),
1601
1601
  placeholder: e.placeholder,
1602
- onChange: r,
1602
+ onChange: i,
1603
1603
  onBlur: s,
1604
1604
  disabled: e.disabled,
1605
1605
  clearable: ""
@@ -1629,16 +1629,16 @@ const Gt = /* @__PURE__ */ te({
1629
1629
  function a(l) {
1630
1630
  n("update:modelValue", l), t.originValue != l && n("blur:modelValue", l);
1631
1631
  }
1632
- return (l, r) => {
1633
- const s = j("t-checkbox");
1632
+ return (l, i) => {
1633
+ const s = U("t-checkbox");
1634
1634
  return p(), _(s, {
1635
1635
  modelValue: o.value,
1636
- "onUpdate:modelValue": r[0] || (r[0] = (i) => o.value = i),
1636
+ "onUpdate:modelValue": i[0] || (i[0] = (r) => o.value = r),
1637
1637
  onChange: a
1638
1638
  }, null, 8, ["modelValue"]);
1639
1639
  };
1640
1640
  }
1641
- }), Gn = /* @__PURE__ */ te({
1641
+ }), $n = /* @__PURE__ */ te({
1642
1642
  __name: "GFormSwitch",
1643
1643
  props: {
1644
1644
  modelValue: null,
@@ -1650,8 +1650,8 @@ const Gt = /* @__PURE__ */ te({
1650
1650
  emits: ["update:modelValue", "blur:modelValue"],
1651
1651
  setup(e, { emit: n }) {
1652
1652
  const t = e, o = F(() => {
1653
- var r;
1654
- return (r = t.formItem) == null ? void 0 : r.itemType;
1653
+ var i;
1654
+ return (i = t.formItem) == null ? void 0 : i.itemType;
1655
1655
  }), a = Q(t.modelValue);
1656
1656
  ve(
1657
1657
  () => t.modelValue,
@@ -1659,8 +1659,8 @@ const Gt = /* @__PURE__ */ te({
1659
1659
  a.value = t.modelValue;
1660
1660
  }
1661
1661
  );
1662
- function l(r) {
1663
- n("update:modelValue", r), t.originValue != r && n("blur:modelValue", r);
1662
+ function l(i) {
1663
+ n("update:modelValue", i), t.originValue != i && n("blur:modelValue", i);
1664
1664
  }
1665
1665
  return ve(
1666
1666
  () => t.disabled,
@@ -1669,9 +1669,9 @@ const Gt = /* @__PURE__ */ te({
1669
1669
  }
1670
1670
  ), vt(() => {
1671
1671
  n("update:modelValue", Ie(o.value));
1672
- }), (r, s) => {
1673
- const i = j("t-switch");
1674
- return p(), _(i, {
1672
+ }), (i, s) => {
1673
+ const r = U("t-switch");
1674
+ return p(), _(r, {
1675
1675
  modelValue: a.value,
1676
1676
  "onUpdate:modelValue": s[0] || (s[0] = (u) => a.value = u),
1677
1677
  onChange: l,
@@ -1729,14 +1729,14 @@ async function ma(e, n, t, o) {
1729
1729
  if (a.state === 200) {
1730
1730
  let l = a.data;
1731
1731
  if (!xe(l) && l.length) {
1732
- let r = [];
1732
+ let i = [];
1733
1733
  return l.forEach((s) => {
1734
- xe(s) || r.push({
1734
+ xe(s) || i.push({
1735
1735
  key: s[e == null ? void 0 : e.keyName],
1736
1736
  label: s[e == null ? void 0 : e.titleName],
1737
1737
  value: s[e == null ? void 0 : e.valueName]
1738
1738
  });
1739
- }), r;
1739
+ }), i;
1740
1740
  }
1741
1741
  } else
1742
1742
  ee.error(`获取数据失败:${a.message}`);
@@ -1746,8 +1746,8 @@ function _t(e) {
1746
1746
  if (xe(t.query))
1747
1747
  return {};
1748
1748
  {
1749
- const { viewName: l, ...r } = t.query;
1750
- return r;
1749
+ const { viewName: l, ...i } = t.query;
1750
+ return i;
1751
1751
  }
1752
1752
  }), a = F(() => {
1753
1753
  let l = {};
@@ -1756,10 +1756,10 @@ function _t(e) {
1756
1756
  return vt(async () => {
1757
1757
  switch (e.itemType) {
1758
1758
  case "tree_check_box": {
1759
- const { treeData: l, viewName: r, dataId: s } = e;
1759
+ const { treeData: l, viewName: i, dataId: s } = e;
1760
1760
  n.value = await da(
1761
1761
  l,
1762
- r,
1762
+ i,
1763
1763
  s,
1764
1764
  a.value
1765
1765
  );
@@ -1767,10 +1767,10 @@ function _t(e) {
1767
1767
  }
1768
1768
  case "multi_tree_selector":
1769
1769
  case "tree_selector": {
1770
- const { treeData: l, viewName: r, dataId: s } = e;
1770
+ const { treeData: l, viewName: i, dataId: s } = e;
1771
1771
  n.value = await ca(
1772
1772
  l,
1773
- r,
1773
+ i,
1774
1774
  s,
1775
1775
  a.value
1776
1776
  );
@@ -1779,10 +1779,10 @@ function _t(e) {
1779
1779
  case "selector":
1780
1780
  case "multi_selector":
1781
1781
  case "radio": {
1782
- const { listData: l, viewName: r, dataId: s } = e;
1782
+ const { listData: l, viewName: i, dataId: s } = e;
1783
1783
  n.value = await ma(
1784
1784
  l,
1785
- r,
1785
+ i,
1786
1786
  s,
1787
1787
  a.value
1788
1788
  );
@@ -1793,7 +1793,7 @@ function _t(e) {
1793
1793
  options: n
1794
1794
  };
1795
1795
  }
1796
- const $n = /* @__PURE__ */ te({
1796
+ const Gn = /* @__PURE__ */ te({
1797
1797
  __name: "GFormRadio",
1798
1798
  props: {
1799
1799
  modelValue: null,
@@ -1813,7 +1813,7 @@ const $n = /* @__PURE__ */ te({
1813
1813
  }), l = F(() => {
1814
1814
  var u;
1815
1815
  return (u = t.formItem) == null ? void 0 : u.listData.dataId;
1816
- }), { options: r } = _t({
1816
+ }), { options: i } = _t({
1817
1817
  itemType: o.value,
1818
1818
  viewName: t.viewName,
1819
1819
  listData: a.value,
@@ -1829,7 +1829,7 @@ const $n = /* @__PURE__ */ te({
1829
1829
  immediate: !0
1830
1830
  }
1831
1831
  );
1832
- function i(u) {
1832
+ function r(u) {
1833
1833
  n("update:modelValue", u);
1834
1834
  }
1835
1835
  return ve(
@@ -1840,15 +1840,15 @@ const $n = /* @__PURE__ */ te({
1840
1840
  ), vt(() => {
1841
1841
  n("update:modelValue", Ie(o.value));
1842
1842
  }), (u, c) => {
1843
- const d = j("t-radio"), y = j("t-radio-group");
1843
+ const d = U("t-radio"), y = U("t-radio-group");
1844
1844
  return p(), _(y, {
1845
1845
  modelValue: s.value,
1846
1846
  "onUpdate:modelValue": c[0] || (c[0] = (k) => s.value = k),
1847
- onChange: i,
1847
+ onChange: r,
1848
1848
  disabled: e.disabled
1849
1849
  }, {
1850
1850
  default: T(() => [
1851
- (p(!0), Z(ge, null, Ce(m(r), (k) => (p(), _(d, {
1851
+ (p(!0), Z(ge, null, Ce(m(i), (k) => (p(), _(d, {
1852
1852
  key: k.key,
1853
1853
  value: k.value
1854
1854
  }, {
@@ -1883,7 +1883,7 @@ const $n = /* @__PURE__ */ te({
1883
1883
  }), l = F(() => {
1884
1884
  var c;
1885
1885
  return (c = t.formItem) == null ? void 0 : c.listData.dataId;
1886
- }), { options: r } = _t({
1886
+ }), { options: i } = _t({
1887
1887
  itemType: o.value,
1888
1888
  viewName: t.viewName,
1889
1889
  listData: a.value,
@@ -1899,7 +1899,7 @@ const $n = /* @__PURE__ */ te({
1899
1899
  immediate: !0
1900
1900
  }
1901
1901
  );
1902
- function i(c) {
1902
+ function r(c) {
1903
1903
  n("update:modelValue", c);
1904
1904
  }
1905
1905
  function u(c) {
@@ -1908,23 +1908,23 @@ const $n = /* @__PURE__ */ te({
1908
1908
  return ve(
1909
1909
  () => t.disabled,
1910
1910
  () => {
1911
- t.disabled || i(Ie(o.value));
1911
+ t.disabled || r(Ie(o.value));
1912
1912
  }
1913
1913
  ), et(() => {
1914
- i(Ie(o.value));
1914
+ r(Ie(o.value));
1915
1915
  }), (c, d) => {
1916
1916
  var k;
1917
- const y = j("t-select");
1917
+ const y = U("t-select");
1918
1918
  return p(), _(y, {
1919
1919
  modelValue: s.value,
1920
1920
  "onUpdate:modelValue": d[0] || (d[0] = (L) => s.value = L),
1921
1921
  placeholder: `请选择${(k = e.formItem) == null ? void 0 : k.name}`,
1922
- options: m(r),
1922
+ options: m(i),
1923
1923
  multiple: e.multiple,
1924
1924
  "min-collapsed-num": 2,
1925
1925
  disabled: e.disabled,
1926
1926
  clearable: !0,
1927
- onChange: i,
1927
+ onChange: r,
1928
1928
  onBlur: u
1929
1929
  }, null, 8, ["modelValue", "placeholder", "options", "multiple", "disabled"]);
1930
1930
  };
@@ -1948,7 +1948,7 @@ const $n = /* @__PURE__ */ te({
1948
1948
  () => t.modelValue,
1949
1949
  () => {
1950
1950
  var s;
1951
- if (t.modelValue == 0 || rt(t.modelValue))
1951
+ if (t.modelValue == 0 || it(t.modelValue))
1952
1952
  return "";
1953
1953
  t.modelValue && ((s = t.formItem) == null ? void 0 : s.itemType) == "time_selector" ? a.value = lt(t.modelValue).format("HH:mm:ss") : a.value = t.modelValue;
1954
1954
  },
@@ -1960,7 +1960,7 @@ const $n = /* @__PURE__ */ te({
1960
1960
  function l(s) {
1961
1961
  n("update:modelValue", s);
1962
1962
  }
1963
- function r(s) {
1963
+ function i(s) {
1964
1964
  t.originValue != s && n("blur:modelValue", s);
1965
1965
  }
1966
1966
  return ve(
@@ -1968,34 +1968,34 @@ const $n = /* @__PURE__ */ te({
1968
1968
  () => {
1969
1969
  t.disabled && n("update:modelValue", Ie(o.value));
1970
1970
  }
1971
- ), (s, i) => {
1971
+ ), (s, r) => {
1972
1972
  var d, y, k, L, P, C, h;
1973
- const u = j("t-date-picker"), c = j("t-time-picker");
1973
+ const u = U("t-date-picker"), c = U("t-time-picker");
1974
1974
  return p(), Z(ge, null, [
1975
1975
  ((d = e.formItem) == null ? void 0 : d.itemType) === "date_selector" || ((y = e.formItem) == null ? void 0 : y.itemType) === "date_time_selector" ? (p(), _(u, {
1976
1976
  key: 0,
1977
1977
  "enable-time-picker": ((k = e.formItem) == null ? void 0 : k.itemType) === "date_time_selector",
1978
1978
  placeholder: (L = e.formItem) == null ? void 0 : L.placeholder,
1979
1979
  modelValue: a.value,
1980
- "onUpdate:modelValue": i[0] || (i[0] = (M) => a.value = M),
1980
+ "onUpdate:modelValue": r[0] || (r[0] = (M) => a.value = M),
1981
1981
  format: e.formItem.format || "YYYY-MM-DD HH:mm:ss",
1982
1982
  valueType: "time-stamp",
1983
1983
  disabled: e.disabled,
1984
1984
  onChange: l,
1985
- onBlur: r,
1985
+ onBlur: i,
1986
1986
  clearable: ""
1987
- }, null, 8, ["enable-time-picker", "placeholder", "modelValue", "format", "disabled"])) : G("", !0),
1987
+ }, null, 8, ["enable-time-picker", "placeholder", "modelValue", "format", "disabled"])) : $("", !0),
1988
1988
  ((P = e.formItem) == null ? void 0 : P.itemType) === "time_selector" ? (p(), _(c, {
1989
1989
  key: 1,
1990
1990
  placeholder: (C = e.formItem) == null ? void 0 : C.placeholder,
1991
1991
  modelValue: a.value,
1992
- "onUpdate:modelValue": i[1] || (i[1] = (M) => a.value = M),
1992
+ "onUpdate:modelValue": r[1] || (r[1] = (M) => a.value = M),
1993
1993
  onChange: l,
1994
- onBlur: r,
1994
+ onBlur: i,
1995
1995
  format: ((h = e.formItem) == null ? void 0 : h.format) || "HH:mm:ss",
1996
1996
  clearable: "",
1997
1997
  allowInput: ""
1998
- }, null, 8, ["placeholder", "modelValue", "format"])) : G("", !0)
1998
+ }, null, 8, ["placeholder", "modelValue", "format"])) : $("", !0)
1999
1999
  ], 64);
2000
2000
  };
2001
2001
  }
@@ -2028,16 +2028,16 @@ const $n = /* @__PURE__ */ te({
2028
2028
  }), l = F(() => {
2029
2029
  var c;
2030
2030
  return (c = t.formItem) == null ? void 0 : c.treeData;
2031
- }), r = F(() => {
2031
+ }), i = F(() => {
2032
2032
  var c;
2033
2033
  return (c = t.formItem) == null ? void 0 : c.treeData.dataId;
2034
2034
  }), { options: s } = _t({
2035
2035
  itemType: a.value,
2036
2036
  viewName: t.viewName,
2037
2037
  treeData: l.value,
2038
- dataId: r.value
2038
+ dataId: i.value
2039
2039
  });
2040
- function i(c) {
2040
+ function r(c) {
2041
2041
  n("update:modelValue", c);
2042
2042
  }
2043
2043
  function u(c) {
@@ -2046,13 +2046,13 @@ const $n = /* @__PURE__ */ te({
2046
2046
  return ve(
2047
2047
  () => t.disabled,
2048
2048
  () => {
2049
- t.disabled || i(Ie(a.value));
2049
+ t.disabled || r(Ie(a.value));
2050
2050
  }
2051
2051
  ), et(() => {
2052
- i(Ie(a.value));
2052
+ r(Ie(a.value));
2053
2053
  }), (c, d) => {
2054
2054
  var k;
2055
- const y = j("t-tree-select");
2055
+ const y = U("t-tree-select");
2056
2056
  return p(), _(y, {
2057
2057
  modelValue: o.value,
2058
2058
  "onUpdate:modelValue": d[0] || (d[0] = (L) => o.value = L),
@@ -2063,7 +2063,7 @@ const $n = /* @__PURE__ */ te({
2063
2063
  treeProps: { valueMode: "all" },
2064
2064
  disabled: e.disabled,
2065
2065
  clearable: !0,
2066
- onChange: i,
2066
+ onChange: r,
2067
2067
  onBlur: u
2068
2068
  }, null, 8, ["modelValue", "data", "placeholder", "multiple", "disabled"]);
2069
2069
  };
@@ -2089,7 +2089,7 @@ const $n = /* @__PURE__ */ te({
2089
2089
  }), l = F(() => {
2090
2090
  var c;
2091
2091
  return (c = t.formItem) == null ? void 0 : c.treeData.dataId;
2092
- }), { options: r } = _t({
2092
+ }), { options: i } = _t({
2093
2093
  itemType: o.value,
2094
2094
  viewName: t.viewName,
2095
2095
  treeData: a.value,
@@ -2105,7 +2105,7 @@ const $n = /* @__PURE__ */ te({
2105
2105
  immediate: !0
2106
2106
  }
2107
2107
  );
2108
- function i(c) {
2108
+ function r(c) {
2109
2109
  n("update:modelValue", c);
2110
2110
  }
2111
2111
  function u(c) {
@@ -2114,21 +2114,21 @@ const $n = /* @__PURE__ */ te({
2114
2114
  return ve(
2115
2115
  () => t.disabled,
2116
2116
  () => {
2117
- t.disabled || i(Ie(o.value));
2117
+ t.disabled || r(Ie(o.value));
2118
2118
  }
2119
2119
  ), et(() => {
2120
- i(Ie(o.value));
2120
+ r(Ie(o.value));
2121
2121
  }), (c, d) => {
2122
- const y = j("t-cascader");
2122
+ const y = U("t-cascader");
2123
2123
  return p(), _(y, {
2124
2124
  modelValue: s.value,
2125
2125
  "onUpdate:modelValue": d[0] || (d[0] = (k) => s.value = k),
2126
- options: m(r),
2126
+ options: m(i),
2127
2127
  multiple: e.multiple,
2128
2128
  disabled: e.disabled,
2129
2129
  clearable: !0,
2130
2130
  "min-collapsed-num": 2,
2131
- onChange: i,
2131
+ onChange: r,
2132
2132
  onBlur: u
2133
2133
  }, null, 8, ["modelValue", "options", "multiple", "disabled"]);
2134
2134
  };
@@ -2145,7 +2145,7 @@ const $n = /* @__PURE__ */ te({
2145
2145
  emits: ["update:modelValue", "blur:modelValue", "update:fileName"],
2146
2146
  setup(e, { emit: n }) {
2147
2147
  const t = e, o = F(() => t.fileName && t.modelValue ? [{ name: t.fileName, url: t.modelValue }] : []), a = Pe(), l = F(() => a.uploadApi);
2148
- function r(u) {
2148
+ function i(u) {
2149
2149
  if (u.length) {
2150
2150
  const { name: c, response: d } = u[0];
2151
2151
  d.data.length ? (n("update:modelValue", d.data[0]), n("blur:modelValue", d.data[0]), n("update:fileName", c), ee.success("上传成功")) : (ee.success(`上传失败 ${d == null ? void 0 : d.message}`), n("update:fileName", ""), n("update:modelValue", ""), n("blur:modelValue", ""));
@@ -2154,12 +2154,12 @@ const $n = /* @__PURE__ */ te({
2154
2154
  function s(u) {
2155
2155
  n("update:fileName", ""), n("update:modelValue", ""), n("blur:modelValue", "");
2156
2156
  }
2157
- function i(u) {
2157
+ function r(u) {
2158
2158
  ee.error(`上传失败:${u}`);
2159
2159
  }
2160
2160
  return (u, c) => {
2161
2161
  var y, k, L;
2162
- const d = j("t-upload");
2162
+ const d = U("t-upload");
2163
2163
  return p(), _(d, {
2164
2164
  ref: "uploadRef",
2165
2165
  theme: "file",
@@ -2172,25 +2172,25 @@ const $n = /* @__PURE__ */ te({
2172
2172
  disabled: e.disabled,
2173
2173
  "is-batch-upload": !0,
2174
2174
  onRemove: s,
2175
- onChange: r,
2176
- onFail: i
2175
+ onChange: i,
2176
+ onFail: r
2177
2177
  }, null, 8, ["files", "tips", "action", "accept", "max", "size", "disabled"]);
2178
2178
  };
2179
2179
  }
2180
2180
  });
2181
- var fa = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, $t = {}, ha = {
2181
+ var fa = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Gt = {}, ha = {
2182
2182
  get exports() {
2183
- return $t;
2183
+ return Gt;
2184
2184
  },
2185
2185
  set exports(e) {
2186
- $t = e;
2186
+ Gt = e;
2187
2187
  }
2188
2188
  };
2189
2189
  (function(e, n) {
2190
2190
  (function(t, o) {
2191
2191
  e.exports = o();
2192
2192
  })(fa, function() {
2193
- var t, o, a = 1e3, l = 6e4, r = 36e5, s = 864e5, i = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, u = 31536e6, c = 2592e6, d = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/, y = { years: u, months: c, days: s, hours: r, minutes: l, seconds: a, milliseconds: 1, weeks: 6048e5 }, k = function(b) {
2193
+ var t, o, a = 1e3, l = 6e4, i = 36e5, s = 864e5, r = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, u = 31536e6, c = 2592e6, d = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/, y = { years: u, months: c, days: s, hours: i, minutes: l, seconds: a, milliseconds: 1, weeks: 6048e5 }, k = function(b) {
2194
2194
  return b instanceof g;
2195
2195
  }, L = function(b, v, f) {
2196
2196
  return new g(b, f, v.$l);
@@ -2212,14 +2212,14 @@ var fa = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
2212
2212
  if (typeof f == "number")
2213
2213
  return this.$ms = f, this.parseFromMilliseconds(), this;
2214
2214
  if (typeof f == "object")
2215
- return Object.keys(f).forEach(function(U) {
2216
- R.$d[P(U)] = f[U];
2215
+ return Object.keys(f).forEach(function(j) {
2216
+ R.$d[P(j)] = f[j];
2217
2217
  }), this.calMilliseconds(), this;
2218
2218
  if (typeof f == "string") {
2219
2219
  var I = f.match(d);
2220
2220
  if (I) {
2221
- var H = I.slice(2).map(function(U) {
2222
- return U != null ? Number(U) : 0;
2221
+ var H = I.slice(2).map(function(j) {
2222
+ return j != null ? Number(j) : 0;
2223
2223
  });
2224
2224
  return this.$d.years = H[0], this.$d.months = H[1], this.$d.weeks = H[2], this.$d.days = H[3], this.$d.hours = H[4], this.$d.minutes = H[5], this.$d.seconds = H[6], this.calMilliseconds(), this;
2225
2225
  }
@@ -2234,19 +2234,19 @@ var fa = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
2234
2234
  }, 0);
2235
2235
  }, v.parseFromMilliseconds = function() {
2236
2236
  var f = this.$ms;
2237
- this.$d.years = h(f / u), f %= u, this.$d.months = h(f / c), f %= c, this.$d.days = h(f / s), f %= s, this.$d.hours = h(f / r), f %= r, this.$d.minutes = h(f / l), f %= l, this.$d.seconds = h(f / a), f %= a, this.$d.milliseconds = f;
2237
+ this.$d.years = h(f / u), f %= u, this.$d.months = h(f / c), f %= c, this.$d.days = h(f / s), f %= s, this.$d.hours = h(f / i), f %= i, this.$d.minutes = h(f / l), f %= l, this.$d.seconds = h(f / a), f %= a, this.$d.milliseconds = f;
2238
2238
  }, v.toISOString = function() {
2239
2239
  var f = S(this.$d.years, "Y"), w = S(this.$d.months, "M"), E = +this.$d.days || 0;
2240
2240
  this.$d.weeks && (E += 7 * this.$d.weeks);
2241
- var R = S(E, "D"), I = S(this.$d.hours, "H"), H = S(this.$d.minutes, "M"), U = this.$d.seconds || 0;
2242
- this.$d.milliseconds && (U += this.$d.milliseconds / 1e3);
2243
- var le = S(U, "S"), B = f.negative || w.negative || R.negative || I.negative || H.negative || le.negative, De = I.format || H.format || le.format ? "T" : "", ie = (B ? "-" : "") + "P" + f.format + w.format + R.format + De + I.format + H.format + le.format;
2244
- return ie === "P" || ie === "-P" ? "P0D" : ie;
2241
+ var R = S(E, "D"), I = S(this.$d.hours, "H"), H = S(this.$d.minutes, "M"), j = this.$d.seconds || 0;
2242
+ this.$d.milliseconds && (j += this.$d.milliseconds / 1e3);
2243
+ var le = S(j, "S"), O = f.negative || w.negative || R.negative || I.negative || H.negative || le.negative, De = I.format || H.format || le.format ? "T" : "", re = (O ? "-" : "") + "P" + f.format + w.format + R.format + De + I.format + H.format + le.format;
2244
+ return re === "P" || re === "-P" ? "P0D" : re;
2245
2245
  }, v.toJSON = function() {
2246
2246
  return this.toISOString();
2247
2247
  }, v.format = function(f) {
2248
2248
  var w = f || "YYYY-MM-DDTHH:mm:ss", E = { Y: this.$d.years, YY: o.s(this.$d.years, 2, "0"), YYYY: o.s(this.$d.years, 4, "0"), M: this.$d.months, MM: o.s(this.$d.months, 2, "0"), D: this.$d.days, DD: o.s(this.$d.days, 2, "0"), H: this.$d.hours, HH: o.s(this.$d.hours, 2, "0"), m: this.$d.minutes, mm: o.s(this.$d.minutes, 2, "0"), s: this.$d.seconds, ss: o.s(this.$d.seconds, 2, "0"), SSS: o.s(this.$d.milliseconds, 3, "0") };
2249
- return w.replace(i, function(R, I) {
2249
+ return w.replace(r, function(R, I) {
2250
2250
  return I || String(E[R]);
2251
2251
  });
2252
2252
  }, v.as = function(f) {
@@ -2314,7 +2314,7 @@ var fa = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
2314
2314
  };
2315
2315
  });
2316
2316
  })(ha);
2317
- const pa = $t, ga = /* @__PURE__ */ te({
2317
+ const pa = Gt, ga = /* @__PURE__ */ te({
2318
2318
  __name: "GFormSelectDelay",
2319
2319
  props: {
2320
2320
  modelValue: null,
@@ -2334,12 +2334,12 @@ const pa = $t, ga = /* @__PURE__ */ te({
2334
2334
  ve(
2335
2335
  () => t.modelValue,
2336
2336
  () => {
2337
- t.modelValue == 0 || rt(t.modelValue) ? a.value = "" : a.value = lt.duration(t.modelValue).format("HH:mm:ss");
2337
+ t.modelValue == 0 || it(t.modelValue) ? a.value = "" : a.value = lt.duration(t.modelValue).format("HH:mm:ss");
2338
2338
  }
2339
2339
  );
2340
2340
  function l(s) {
2341
2341
  if (s) {
2342
- const i = s.split(":"), [u, c, d] = i, y = lt.duration({
2342
+ const r = s.split(":"), [u, c, d] = r, y = lt.duration({
2343
2343
  hours: u,
2344
2344
  minutes: c,
2345
2345
  seconds: d
@@ -2348,8 +2348,8 @@ const pa = $t, ga = /* @__PURE__ */ te({
2348
2348
  } else
2349
2349
  n("update:modelValue", "");
2350
2350
  }
2351
- function r(s) {
2352
- const { value: i } = s, u = i.split(":"), [c, d, y] = u, k = lt.duration({
2351
+ function i(s) {
2352
+ const { value: r } = s, u = r.split(":"), [c, d, y] = u, k = lt.duration({
2353
2353
  hours: c,
2354
2354
  minutes: d,
2355
2355
  seconds: y
@@ -2361,15 +2361,15 @@ const pa = $t, ga = /* @__PURE__ */ te({
2361
2361
  () => {
2362
2362
  t.disabled && n("update:modelValue", Ie(o.value));
2363
2363
  }
2364
- ), (s, i) => {
2364
+ ), (s, r) => {
2365
2365
  var c;
2366
- const u = j("t-time-picker");
2366
+ const u = U("t-time-picker");
2367
2367
  return p(), _(u, {
2368
2368
  placeholder: (c = e.formItem) == null ? void 0 : c.placeholder,
2369
2369
  modelValue: a.value,
2370
- "onUpdate:modelValue": i[0] || (i[0] = (d) => a.value = d),
2370
+ "onUpdate:modelValue": r[0] || (r[0] = (d) => a.value = d),
2371
2371
  onChange: l,
2372
- onBlur: r,
2372
+ onBlur: i,
2373
2373
  clearable: "",
2374
2374
  allowInput: ""
2375
2375
  }, null, 8, ["placeholder", "modelValue"]);
@@ -2406,7 +2406,7 @@ const va = /* @__PURE__ */ te({
2406
2406
  const a = Q("simple"), l = go();
2407
2407
  nt(() => {
2408
2408
  });
2409
- const r = {
2409
+ const i = {
2410
2410
  excludeKeys: ["insertLink", "group-image", "group-video", "fullScreen"]
2411
2411
  }, s = {
2412
2412
  placeholder: "请输入内容..."
@@ -2415,7 +2415,7 @@ const va = /* @__PURE__ */ te({
2415
2415
  const C = l.value;
2416
2416
  C != null && C.destroy();
2417
2417
  });
2418
- const i = (C) => {
2418
+ const r = (C) => {
2419
2419
  l.value = C;
2420
2420
  }, u = (C) => {
2421
2421
  n("update:modelValue", C.getHtml());
@@ -2444,7 +2444,7 @@ const va = /* @__PURE__ */ te({
2444
2444
  x(m(To), {
2445
2445
  class: "editor__toolbar",
2446
2446
  editor: m(l),
2447
- defaultConfig: r,
2447
+ defaultConfig: i,
2448
2448
  mode: a.value
2449
2449
  }, null, 8, ["editor", "mode"]),
2450
2450
  x(m(Co), {
@@ -2454,7 +2454,7 @@ const va = /* @__PURE__ */ te({
2454
2454
  mode: a.value,
2455
2455
  modelValue: o.value,
2456
2456
  "onUpdate:modelValue": h[0] || (h[0] = (M) => o.value = M),
2457
- onOnCreated: i,
2457
+ onOnCreated: r,
2458
2458
  onOnChange: u,
2459
2459
  onOnDestroyed: c,
2460
2460
  onOnFocus: y,
@@ -2467,9 +2467,9 @@ const ya = /* @__PURE__ */ Xe(va, [["__scopeId", "data-v-9a205ae7"]]);
2467
2467
  function Xn(e = {}) {
2468
2468
  function n(o, a = {}) {
2469
2469
  if (!xe(o) && o !== 1) {
2470
- let l, r;
2470
+ let l, i;
2471
2471
  try {
2472
- return l = Ze.render(o, { form: e.formModel.value }), r = zt(l, { form: e.formModel.value }), r;
2472
+ return l = Ze.render(o, { form: e.formModel.value }), i = zt(l, { form: e.formModel.value }), i;
2473
2473
  } catch (s) {
2474
2474
  console.error(o, s.message);
2475
2475
  }
@@ -2478,13 +2478,13 @@ function Xn(e = {}) {
2478
2478
  }
2479
2479
  function t(o, a = {}) {
2480
2480
  if (!xe(o) && o !== 0) {
2481
- let l, r;
2481
+ let l, i;
2482
2482
  try {
2483
- l = Ze.render(o, { form: e.formModel.value }), r = zt(l, { form: e.formModel.value });
2483
+ l = Ze.render(o, { form: e.formModel.value }), i = zt(l, { form: e.formModel.value });
2484
2484
  } catch (s) {
2485
2485
  console.error(o, s.message);
2486
2486
  }
2487
- return Boolean(r);
2487
+ return Boolean(i);
2488
2488
  } else
2489
2489
  return !1;
2490
2490
  }
@@ -2522,13 +2522,13 @@ const ba = /* @__PURE__ */ te({
2522
2522
  function l(c) {
2523
2523
  n("update:modelValue", c);
2524
2524
  }
2525
- function r() {
2525
+ function i() {
2526
2526
  a.value.push("");
2527
2527
  }
2528
2528
  function s(c, d) {
2529
2529
  a.value[d] = c, l(a.value.filter((y) => y != ""));
2530
2530
  }
2531
- function i(c) {
2531
+ function r(c) {
2532
2532
  a.value.splice(c, 1);
2533
2533
  }
2534
2534
  function u() {
@@ -2537,12 +2537,12 @@ const ba = /* @__PURE__ */ te({
2537
2537
  return et(() => {
2538
2538
  l(Ie(o.value));
2539
2539
  }), (c, d) => {
2540
- const y = j("t-button"), k = j("t-input"), L = j("t-input-group"), P = j("t-space");
2540
+ const y = U("t-button"), k = U("t-input"), L = U("t-input-group"), P = U("t-space");
2541
2541
  return p(), _(P, null, {
2542
2542
  default: T(() => [
2543
2543
  e.modelValue.length == 0 ? (p(), _(y, {
2544
2544
  key: 0,
2545
- onClick: r,
2545
+ onClick: i,
2546
2546
  variant: "outline"
2547
2547
  }, {
2548
2548
  default: T(() => [
@@ -2566,7 +2566,7 @@ const ba = /* @__PURE__ */ te({
2566
2566
  x(y, {
2567
2567
  variant: "outline",
2568
2568
  theme: "default",
2569
- onClick: (M) => i(h)
2569
+ onClick: (M) => r(h)
2570
2570
  }, {
2571
2571
  default: T(() => [
2572
2572
  X("- ")
@@ -2577,13 +2577,13 @@ const ba = /* @__PURE__ */ te({
2577
2577
  key: 0,
2578
2578
  variant: "outline",
2579
2579
  theme: "default",
2580
- onClick: r
2580
+ onClick: i
2581
2581
  }, {
2582
2582
  default: T(() => [
2583
2583
  X("+ ")
2584
2584
  ]),
2585
2585
  _: 1
2586
- })) : G("", !0)
2586
+ })) : $("", !0)
2587
2587
  ]),
2588
2588
  _: 2
2589
2589
  }, 1024))), 128))
@@ -2605,13 +2605,13 @@ const ba = /* @__PURE__ */ te({
2605
2605
  },
2606
2606
  emits: ["after-update-value"],
2607
2607
  setup(e, { expose: n, emit: t }) {
2608
- const o = e, a = F(() => o.formModel), { handleItemShowIf: l, handleItemDisableIf: r } = Xn({ formModel: a });
2608
+ const o = e, a = F(() => o.formModel), { handleItemShowIf: l, handleItemDisableIf: i } = Xn({ formModel: a });
2609
2609
  function s(k, L) {
2610
2610
  t("after-update-value", k, L);
2611
2611
  }
2612
- const i = F(() => o.formItem.disableIf ? r(o.formItem.disableIf, o.formItem) : !1), u = Q(!0);
2612
+ const r = F(() => o.formItem.disableIf ? i(o.formItem.disableIf, o.formItem) : !1), u = Q(!0);
2613
2613
  function c() {
2614
- return i.value;
2614
+ return r.value;
2615
2615
  }
2616
2616
  function d(k) {
2617
2617
  u.value = k;
@@ -2625,7 +2625,7 @@ const ba = /* @__PURE__ */ te({
2625
2625
  getDisableFlag: c,
2626
2626
  setBlockShowFlag: d
2627
2627
  }), (k, L) => {
2628
- const P = j("t-divider"), C = j("t-form-item");
2628
+ const P = U("t-divider"), C = U("t-form-item");
2629
2629
  return p(), Z("div", {
2630
2630
  ref: "formItemRef",
2631
2631
  class: Y(`${m(J)}__form-item`),
@@ -2644,7 +2644,7 @@ const ba = /* @__PURE__ */ te({
2644
2644
  key: 1,
2645
2645
  ref: `item_${e.formItem.keyName}`,
2646
2646
  id: e.formItem.keyName,
2647
- requiredMark: e.formItem.required && !m(i),
2647
+ requiredMark: e.formItem.required && !m(r),
2648
2648
  label: e.formItem.name,
2649
2649
  name: e.formItem.inputType != "RE_PASSWORD" ? e.formItem.keyName : "rePassword",
2650
2650
  class: Y([`${e.isLabelNameShow ? "" : "form-item__label--hidden"}`])
@@ -2652,123 +2652,123 @@ const ba = /* @__PURE__ */ te({
2652
2652
  default: T(() => {
2653
2653
  var h, M, S;
2654
2654
  return [
2655
- e.formItem.itemType === "label" ? (p(), _(jn, {
2655
+ e.formItem.itemType === "label" ? (p(), _(Un, {
2656
2656
  key: 0,
2657
2657
  modelValue: m(oe)(m(a), e.formItem.keyName)
2658
- }, null, 8, ["modelValue"])) : G("", !0),
2659
- e.formItem.itemType === "text_input" && e.formItem.inputType != "RE_PASSWORD" ? (p(), _(Gt, {
2658
+ }, null, 8, ["modelValue"])) : $("", !0),
2659
+ e.formItem.itemType === "text_input" && e.formItem.inputType != "RE_PASSWORD" ? (p(), _($t, {
2660
2660
  key: 1,
2661
2661
  formItem: e.formItem,
2662
2662
  inputType: (M = (h = e.formItem) == null ? void 0 : h.inputType) == null ? void 0 : M.toLowerCase(),
2663
2663
  modelValue: m(oe)(m(a), e.formItem.keyName),
2664
2664
  placeholder: e.formItem.placeholder,
2665
- disabled: m(i),
2665
+ disabled: m(r),
2666
2666
  "onUpdate:modelValue": L[0] || (L[0] = (g) => s(e.formItem.keyName, g))
2667
- }, null, 8, ["formItem", "inputType", "modelValue", "placeholder", "disabled"])) : G("", !0),
2668
- e.formItem.itemType === "text_input" && e.formItem.inputType == "RE_PASSWORD" ? (p(), _(Gt, {
2667
+ }, null, 8, ["formItem", "inputType", "modelValue", "placeholder", "disabled"])) : $("", !0),
2668
+ e.formItem.itemType === "text_input" && e.formItem.inputType == "RE_PASSWORD" ? (p(), _($t, {
2669
2669
  key: 2,
2670
2670
  formItem: e.formItem,
2671
2671
  inputType: e.formItem.inputType.toLowerCase(),
2672
2672
  modelValue: m(oe)(m(a), "rePassword"),
2673
2673
  placeholder: e.formItem.placeholder,
2674
- disabled: m(i),
2674
+ disabled: m(r),
2675
2675
  "onUpdate:modelValue": L[1] || (L[1] = (g) => s("rePassword", g))
2676
- }, null, 8, ["formItem", "inputType", "modelValue", "placeholder", "disabled"])) : G("", !0),
2676
+ }, null, 8, ["formItem", "inputType", "modelValue", "placeholder", "disabled"])) : $("", !0),
2677
2677
  e.formItem.itemType === "check_box" ? (p(), _(zn, {
2678
2678
  key: 3,
2679
2679
  modelValue: m(oe)(m(a), e.formItem.keyName, !1),
2680
- disabled: m(i),
2680
+ disabled: m(r),
2681
2681
  "onUpdate:modelValue": L[2] || (L[2] = (g) => s(e.formItem.keyName, g))
2682
- }, null, 8, ["modelValue", "disabled"])) : G("", !0),
2683
- e.formItem.itemType === "switch" ? (p(), _(Gn, {
2682
+ }, null, 8, ["modelValue", "disabled"])) : $("", !0),
2683
+ e.formItem.itemType === "switch" ? (p(), _($n, {
2684
2684
  key: 4,
2685
2685
  formItem: e.formItem,
2686
2686
  viewName: e.viewName,
2687
2687
  modelValue: m(oe)(m(a), e.formItem.keyName, !1),
2688
- disabled: m(i),
2688
+ disabled: m(r),
2689
2689
  "onUpdate:modelValue": L[3] || (L[3] = (g) => s(e.formItem.keyName, g))
2690
- }, null, 8, ["formItem", "viewName", "modelValue", "disabled"])) : G("", !0),
2691
- e.formItem.itemType === "radio" ? (p(), _($n, {
2690
+ }, null, 8, ["formItem", "viewName", "modelValue", "disabled"])) : $("", !0),
2691
+ e.formItem.itemType === "radio" ? (p(), _(Gn, {
2692
2692
  key: 5,
2693
2693
  modelValue: m(oe)(m(a), e.formItem.keyName),
2694
2694
  formItem: e.formItem,
2695
2695
  viewName: e.viewName,
2696
- disabled: m(i),
2696
+ disabled: m(r),
2697
2697
  "onUpdate:modelValue": L[4] || (L[4] = (g) => s(e.formItem.keyName, g))
2698
- }, null, 8, ["modelValue", "formItem", "viewName", "disabled"])) : G("", !0),
2698
+ }, null, 8, ["modelValue", "formItem", "viewName", "disabled"])) : $("", !0),
2699
2699
  e.formItem.itemType === "selector" || e.formItem.itemType === "multi_selector" ? (p(), _(Kn, {
2700
2700
  key: e.formItem.listData.dataId,
2701
2701
  modelValue: m(oe)(m(a), e.formItem.keyName),
2702
2702
  formItem: e.formItem,
2703
2703
  viewName: e.viewName,
2704
2704
  multiple: e.formItem.itemType === "multi_selector",
2705
- disabled: m(i),
2705
+ disabled: m(r),
2706
2706
  "onUpdate:modelValue": L[5] || (L[5] = (g) => s(e.formItem.keyName, g))
2707
- }, null, 8, ["modelValue", "formItem", "viewName", "multiple", "disabled"])) : G("", !0),
2707
+ }, null, 8, ["modelValue", "formItem", "viewName", "multiple", "disabled"])) : $("", !0),
2708
2708
  e.formItem.itemType === "date_selector" || e.formItem.itemType === "time_selector" || e.formItem.itemType === "date_time_selector" ? (p(), _(Wn, {
2709
2709
  key: 7,
2710
2710
  modelValue: m(oe)(m(a), e.formItem.keyName),
2711
2711
  formItem: e.formItem,
2712
2712
  viewName: e.viewName,
2713
- disabled: m(i),
2713
+ disabled: m(r),
2714
2714
  "onUpdate:modelValue": L[6] || (L[6] = (g) => s(e.formItem.keyName, g))
2715
- }, null, 8, ["modelValue", "formItem", "viewName", "disabled"])) : G("", !0),
2715
+ }, null, 8, ["modelValue", "formItem", "viewName", "disabled"])) : $("", !0),
2716
2716
  e.formItem.itemType == "delay_selector" ? (p(), _(ga, {
2717
2717
  key: 8,
2718
2718
  modelValue: m(oe)(m(a), e.formItem.keyName),
2719
2719
  formItem: e.formItem,
2720
2720
  viewName: e.viewName,
2721
- disabled: m(i),
2721
+ disabled: m(r),
2722
2722
  "onUpdate:modelValue": L[7] || (L[7] = (g) => s(e.formItem.keyName, g))
2723
- }, null, 8, ["modelValue", "formItem", "viewName", "disabled"])) : G("", !0),
2723
+ }, null, 8, ["modelValue", "formItem", "viewName", "disabled"])) : $("", !0),
2724
2724
  e.formItem.itemType === "tree_check_box" ? (p(), _(Hn, {
2725
2725
  key: 9,
2726
2726
  modelValue: m(oe)(m(a), e.formItem.keyName),
2727
2727
  formItem: e.formItem,
2728
2728
  viewName: e.viewName,
2729
- disabled: m(i),
2729
+ disabled: m(r),
2730
2730
  "onUpdate:modelValue": L[8] || (L[8] = (g) => s(e.formItem.keyName, g))
2731
- }, null, 8, ["modelValue", "formItem", "viewName", "disabled"])) : G("", !0),
2731
+ }, null, 8, ["modelValue", "formItem", "viewName", "disabled"])) : $("", !0),
2732
2732
  e.formItem.itemType === "multi_tree_selector" || e.formItem.itemType === "tree_selector" ? (p(), _(Qn, {
2733
2733
  key: 10,
2734
2734
  modelValue: m(oe)(m(a), e.formItem.keyName),
2735
2735
  formItem: e.formItem,
2736
2736
  viewName: e.viewName,
2737
2737
  multiple: e.formItem.itemType === "multi_tree_selector",
2738
- disabled: m(i),
2738
+ disabled: m(r),
2739
2739
  "onUpdate:modelValue": L[9] || (L[9] = (g) => s(e.formItem.keyName, g))
2740
- }, null, 8, ["modelValue", "formItem", "viewName", "multiple", "disabled"])) : G("", !0),
2740
+ }, null, 8, ["modelValue", "formItem", "viewName", "multiple", "disabled"])) : $("", !0),
2741
2741
  e.formItem.itemType === "file" ? (p(), _(qn, {
2742
2742
  key: 11,
2743
2743
  modelValue: m(oe)(m(a), e.formItem.keyName),
2744
2744
  formItem: e.formItem,
2745
2745
  viewName: e.viewName,
2746
- disabled: m(i),
2746
+ disabled: m(r),
2747
2747
  fileName: m(oe)(m(a), e.formItem.filenameKeyName) || ((S = m(oe)(m(a), e.formItem.keyName)) == null ? void 0 : S.split("/").slice(-1)[0]),
2748
2748
  "onUpdate:fileName": L[10] || (L[10] = (g) => e.formItem.filenameKeyName && s(e.formItem.filenameKeyName, g)),
2749
2749
  "onUpdate:modelValue": L[11] || (L[11] = (g) => s(e.formItem.keyName, g))
2750
- }, null, 8, ["modelValue", "formItem", "viewName", "disabled", "fileName"])) : G("", !0),
2750
+ }, null, 8, ["modelValue", "formItem", "viewName", "disabled", "fileName"])) : $("", !0),
2751
2751
  e.formItem.itemType === "tag" ? (p(), _(ba, {
2752
2752
  key: 12,
2753
2753
  modelValue: m(oe)(m(a), e.formItem.keyName),
2754
2754
  formItem: e.formItem,
2755
2755
  viewName: e.viewName,
2756
- disabled: m(i),
2756
+ disabled: m(r),
2757
2757
  "onUpdate:modelValue": L[12] || (L[12] = (g) => s(e.formItem.keyName, g))
2758
- }, null, 8, ["modelValue", "formItem", "viewName", "disabled"])) : G("", !0),
2758
+ }, null, 8, ["modelValue", "formItem", "viewName", "disabled"])) : $("", !0),
2759
2759
  e.formItem.itemType === "rich_text" ? (p(), _(ya, {
2760
2760
  key: 13,
2761
2761
  modelValue: m(oe)(m(a), e.formItem.keyName),
2762
2762
  formItem: e.formItem,
2763
2763
  viewName: e.viewName,
2764
- disabled: m(i),
2764
+ disabled: m(r),
2765
2765
  "onUpdate:modelValue": L[13] || (L[13] = (g) => s(e.formItem.keyName, g))
2766
- }, null, 8, ["modelValue", "formItem", "viewName", "disabled"])) : G("", !0)
2766
+ }, null, 8, ["modelValue", "formItem", "viewName", "disabled"])) : $("", !0)
2767
2767
  ];
2768
2768
  }),
2769
2769
  _: 1
2770
- }, 8, ["id", "requiredMark", "label", "name", "class"])) : G("", !0)
2771
- ], 64)) : G("", !0)
2770
+ }, 8, ["id", "requiredMark", "label", "name", "class"])) : $("", !0)
2771
+ ], 64)) : $("", !0)
2772
2772
  ], 10, wa);
2773
2773
  };
2774
2774
  }
@@ -2791,18 +2791,18 @@ const Yn = /* @__PURE__ */ Xe(Ma, [["__scopeId", "data-v-bce49a72"]]), Ta = /* @
2791
2791
  const l = F(() => {
2792
2792
  var u;
2793
2793
  return (u = t.headerInfo.searchBar) == null ? void 0 : u.filters;
2794
- }), r = F(() => Yt({}, l.value));
2794
+ }), i = F(() => Yt({}, l.value));
2795
2795
  let s = Q(0);
2796
- function i(u, c) {
2797
- $e(r.value, u, c), s.value && clearTimeout(s.value), s.value = setTimeout(() => {
2798
- Object.keys(r.value).forEach((d) => {
2799
- (r.value[d] ?? "") == "" && delete r.value[d];
2800
- }), n("header-filter-change", r.value);
2796
+ function r(u, c) {
2797
+ Ge(i.value, u, c), s.value && clearTimeout(s.value), s.value = setTimeout(() => {
2798
+ Object.keys(i.value).forEach((d) => {
2799
+ (i.value[d] ?? "") == "" && delete i.value[d];
2800
+ }), n("header-filter-change", i.value);
2801
2801
  }, 500);
2802
2802
  }
2803
2803
  return (u, c) => {
2804
- const d = j("t-button");
2805
- return p(), _(m(On), null, kt({
2804
+ const d = U("t-button");
2805
+ return p(), _(m(Bn), null, kt({
2806
2806
  "left-operations": T(() => [
2807
2807
  (p(!0), Z(ge, null, Ce(m(o), (y) => (p(), Z(ge, {
2808
2808
  key: y.buttonId
@@ -2834,9 +2834,9 @@ const Yn = /* @__PURE__ */ Xe(Ma, [["__scopeId", "data-v-bce49a72"]]), Ta = /* @
2834
2834
  }, [
2835
2835
  x(Yn, {
2836
2836
  formItem: y,
2837
- formModel: m(r),
2837
+ formModel: m(i),
2838
2838
  viewName: e.viewName,
2839
- onAfterUpdateValue: i,
2839
+ onAfterUpdateValue: r,
2840
2840
  isLabelNameShow: !1
2841
2841
  }, null, 8, ["formItem", "formModel", "viewName"])
2842
2842
  ]))), 128))
@@ -2861,25 +2861,25 @@ const Ca = /* @__PURE__ */ Xe(Ta, [["__scopeId", "data-v-db9f8677"]]), ka = ["id
2861
2861
  o.value = t.blockType == "block_start" && !t.showIf ? `block_NotShow_start_${t.name}` : t.blockType == "block_start" && t.showIf ? `block_Show_${t.name}` : `block_end_${t.name}`;
2862
2862
  }
2863
2863
  const l = Q();
2864
- function r() {
2865
- const s = l.value, i = !!(t.blockType == "block_start" && t.showIf);
2864
+ function i() {
2865
+ const s = l.value, r = !!(t.blockType == "block_start" && t.showIf);
2866
2866
  let u = [];
2867
2867
  if (t.blockType == "block_start") {
2868
2868
  for (let c = s; c && (c.classList.add(`${t.name}`), c.id && u.push(c.id), !c.matches(`#block_end_${t.name}`)); c = c.nextElementSibling)
2869
2869
  ;
2870
- u.length && n("block-show-if-change", t.name, u, i);
2870
+ u.length && n("block-show-if-change", t.name, u, r);
2871
2871
  }
2872
2872
  }
2873
2873
  return vt(() => {
2874
2874
  a();
2875
2875
  }), nt(() => {
2876
- r();
2876
+ i();
2877
2877
  }), ve(
2878
2878
  () => t.showIf,
2879
2879
  () => {
2880
- a(), r();
2880
+ a(), i();
2881
2881
  }
2882
- ), (s, i) => (p(), Z("div", {
2882
+ ), (s, r) => (p(), Z("div", {
2883
2883
  id: o.value,
2884
2884
  ref_key: "blockRef",
2885
2885
  ref: l
@@ -2908,10 +2908,10 @@ const Ca = /* @__PURE__ */ Xe(Ta, [["__scopeId", "data-v-db9f8677"]]), ka = ["id
2908
2908
  deep: !0
2909
2909
  }
2910
2910
  );
2911
- const r = Q(), s = F(() => {
2911
+ const i = Q(), s = F(() => {
2912
2912
  var b;
2913
- return (b = r.value) == null ? void 0 : b.tFormRef;
2914
- }), i = Q({}), u = ["userInfoNameEn", "cardNum", "attend", "userInfoRoleKey"];
2913
+ return (b = i.value) == null ? void 0 : b.tFormRef;
2914
+ }), r = Q({}), u = ["userInfoNameEn", "cardNum", "attend", "userInfoRoleKey"];
2915
2915
  async function c() {
2916
2916
  let b = [];
2917
2917
  return d.value && (b = d == null ? void 0 : d.value.map((v) => {
@@ -2949,10 +2949,10 @@ const Ca = /* @__PURE__ */ Xe(Ta, [["__scopeId", "data-v-db9f8677"]]), ka = ["id
2949
2949
  });
2950
2950
  }
2951
2951
  nt(async () => {
2952
- i.value = await c();
2952
+ r.value = await c();
2953
2953
  });
2954
2954
  function L(b, v) {
2955
- $e(a.value, b, v), s.value && P([b]);
2955
+ Ge(a.value, b, v), s.value && P([b]);
2956
2956
  }
2957
2957
  async function P(b = []) {
2958
2958
  var w;
@@ -3017,13 +3017,13 @@ const Ca = /* @__PURE__ */ Xe(Ta, [["__scopeId", "data-v-db9f8677"]]), ka = ["id
3017
3017
  }
3018
3018
  }
3019
3019
  return (b, v) => {
3020
- const f = j("t-button");
3021
- return p(), _(Bn, {
3020
+ const f = U("t-button");
3021
+ return p(), _(On, {
3022
3022
  ref_key: "commonFormRef",
3023
- ref: r,
3023
+ ref: i,
3024
3024
  commonFormProps: {
3025
3025
  data: a.value,
3026
- rules: i.value,
3026
+ rules: r.value,
3027
3027
  labelAlign: "right",
3028
3028
  labelWidth: "205px"
3029
3029
  }
@@ -3068,7 +3068,7 @@ const Ca = /* @__PURE__ */ Xe(Ta, [["__scopeId", "data-v-db9f8677"]]), ka = ["id
3068
3068
  ];
3069
3069
  }),
3070
3070
  _: 1
3071
- })) : G("", !0),
3071
+ })) : $("", !0),
3072
3072
  m(h) && ((E = m(h)) == null ? void 0 : E.name) !== "" ? (p(), _(f, {
3073
3073
  key: 1,
3074
3074
  theme: "primary",
@@ -3081,7 +3081,7 @@ const Ca = /* @__PURE__ */ Xe(Ta, [["__scopeId", "data-v-db9f8677"]]), ka = ["id
3081
3081
  ];
3082
3082
  }),
3083
3083
  _: 1
3084
- })) : G("", !0)
3084
+ })) : $("", !0)
3085
3085
  ];
3086
3086
  }),
3087
3087
  _: 1
@@ -3101,13 +3101,13 @@ const Ca = /* @__PURE__ */ Xe(Ta, [["__scopeId", "data-v-db9f8677"]]), ka = ["id
3101
3101
  var s;
3102
3102
  return (s = t.col) == null ? void 0 : s.formItems;
3103
3103
  }), a = F(() => Yt(t.row, o.value));
3104
- function l(s, i) {
3105
- $e(a.value, s, i);
3104
+ function l(s, r) {
3105
+ Ge(a.value, s, r);
3106
3106
  }
3107
- function r(s, i) {
3107
+ function i(s, r) {
3108
3108
  n("blur", s, a.value);
3109
3109
  }
3110
- return (s, i) => (p(), Z("div", {
3110
+ return (s, r) => (p(), Z("div", {
3111
3111
  class: Y(`${m(J)}__table-form`)
3112
3112
  }, [
3113
3113
  (p(!0), Z(ge, null, Ce(m(o), (u) => {
@@ -3115,47 +3115,47 @@ const Ca = /* @__PURE__ */ Xe(Ta, [["__scopeId", "data-v-db9f8677"]]), ka = ["id
3115
3115
  return p(), Z("div", {
3116
3116
  key: u.keyName
3117
3117
  }, [
3118
- u.itemType === "label" ? (p(), _(jn, {
3118
+ u.itemType === "label" ? (p(), _(Un, {
3119
3119
  key: 0,
3120
3120
  modelValue: m(oe)(m(a), e.col.colKey)
3121
- }, null, 8, ["modelValue"])) : G("", !0),
3122
- u.itemType == "text_input" ? (p(), _(Gt, {
3121
+ }, null, 8, ["modelValue"])) : $("", !0),
3122
+ u.itemType == "text_input" ? (p(), _($t, {
3123
3123
  key: 1,
3124
3124
  formItem: u,
3125
3125
  viewName: e.viewName,
3126
3126
  inputType: (c = u.inputType) == null ? void 0 : c.toLowerCase(),
3127
3127
  originValue: m(oe)(e.row, e.col.colKey),
3128
3128
  modelValue: m(oe)(m(a), e.col.colKey),
3129
- "onUpdate:modelValue": i[0] || (i[0] = (d) => e.col.colKey && l(e.col.colKey, d)),
3130
- "onBlur:modelValue": (d) => r(u)
3131
- }, null, 8, ["formItem", "viewName", "inputType", "originValue", "modelValue", "onBlur:modelValue"])) : G("", !0),
3129
+ "onUpdate:modelValue": r[0] || (r[0] = (d) => e.col.colKey && l(e.col.colKey, d)),
3130
+ "onBlur:modelValue": (d) => i(u)
3131
+ }, null, 8, ["formItem", "viewName", "inputType", "originValue", "modelValue", "onBlur:modelValue"])) : $("", !0),
3132
3132
  u.itemType === "check_box" ? (p(), _(zn, {
3133
3133
  key: 2,
3134
3134
  formItem: u,
3135
3135
  viewName: e.viewName,
3136
3136
  originValue: m(oe)(e.row, e.col.colKey),
3137
3137
  modelValue: m(oe)(m(a), e.col.colKey),
3138
- "onUpdate:modelValue": i[1] || (i[1] = (d) => e.col.colKey && l(e.col.colKey, d)),
3139
- "onBlur:modelValue": (d) => r(u)
3140
- }, null, 8, ["formItem", "viewName", "originValue", "modelValue", "onBlur:modelValue"])) : G("", !0),
3141
- u.itemType === "switch" ? (p(), _(Gn, {
3138
+ "onUpdate:modelValue": r[1] || (r[1] = (d) => e.col.colKey && l(e.col.colKey, d)),
3139
+ "onBlur:modelValue": (d) => i(u)
3140
+ }, null, 8, ["formItem", "viewName", "originValue", "modelValue", "onBlur:modelValue"])) : $("", !0),
3141
+ u.itemType === "switch" ? (p(), _($n, {
3142
3142
  key: 3,
3143
3143
  formItem: u,
3144
3144
  viewName: e.viewName,
3145
3145
  originValue: m(oe)(e.row, e.col.colKey),
3146
3146
  modelValue: m(oe)(m(a), e.col.colKey),
3147
- "onUpdate:modelValue": i[2] || (i[2] = (d) => e.col.colKey && l(e.col.colKey, d)),
3148
- "onBlur:modelValue": (d) => r(u)
3149
- }, null, 8, ["formItem", "viewName", "originValue", "modelValue", "onBlur:modelValue"])) : G("", !0),
3150
- u.itemType === "radio" ? (p(), _($n, {
3147
+ "onUpdate:modelValue": r[2] || (r[2] = (d) => e.col.colKey && l(e.col.colKey, d)),
3148
+ "onBlur:modelValue": (d) => i(u)
3149
+ }, null, 8, ["formItem", "viewName", "originValue", "modelValue", "onBlur:modelValue"])) : $("", !0),
3150
+ u.itemType === "radio" ? (p(), _(Gn, {
3151
3151
  key: 4,
3152
3152
  originValue: m(oe)(e.row, e.col.colKey),
3153
3153
  modelValue: m(oe)(m(a), e.col.colKey),
3154
3154
  formItem: u,
3155
3155
  viewName: e.viewName,
3156
- "onUpdate:modelValue": i[3] || (i[3] = (d) => e.col.colKey && l(e.col.colKey, d)),
3157
- "onBlur:modelValue": (d) => r(u)
3158
- }, null, 8, ["originValue", "modelValue", "formItem", "viewName", "onBlur:modelValue"])) : G("", !0),
3156
+ "onUpdate:modelValue": r[3] || (r[3] = (d) => e.col.colKey && l(e.col.colKey, d)),
3157
+ "onBlur:modelValue": (d) => i(u)
3158
+ }, null, 8, ["originValue", "modelValue", "formItem", "viewName", "onBlur:modelValue"])) : $("", !0),
3159
3159
  u.itemType === "selector" || u.itemType === "multi_selector" ? (p(), _(Kn, {
3160
3160
  key: 5,
3161
3161
  originValue: m(oe)(e.row, e.col.colKey),
@@ -3163,27 +3163,27 @@ const Ca = /* @__PURE__ */ Xe(Ta, [["__scopeId", "data-v-db9f8677"]]), ka = ["id
3163
3163
  formItem: u,
3164
3164
  viewName: e.viewName,
3165
3165
  multiple: u.itemType === "multi_selector",
3166
- "onUpdate:modelValue": i[4] || (i[4] = (d) => e.col.colKey && l(e.col.colKey, d)),
3167
- "onBlur:modelValue": (d) => r(u)
3168
- }, null, 8, ["originValue", "modelValue", "formItem", "viewName", "multiple", "onBlur:modelValue"])) : G("", !0),
3166
+ "onUpdate:modelValue": r[4] || (r[4] = (d) => e.col.colKey && l(e.col.colKey, d)),
3167
+ "onBlur:modelValue": (d) => i(u)
3168
+ }, null, 8, ["originValue", "modelValue", "formItem", "viewName", "multiple", "onBlur:modelValue"])) : $("", !0),
3169
3169
  u.itemType === "date_selector" || u.itemType === "time_selector" || u.itemType === "date_time_selector" ? (p(), _(Wn, {
3170
3170
  key: 6,
3171
3171
  originValue: m(oe)(e.row, e.col.colKey),
3172
3172
  modelValue: m(oe)(m(a), e.col.colKey),
3173
3173
  formItem: u,
3174
3174
  viewName: e.viewName,
3175
- "onUpdate:modelValue": i[5] || (i[5] = (d) => e.col.colKey && l(e.col.colKey, d)),
3176
- "onBlur:modelValue": (d) => r(u)
3177
- }, null, 8, ["originValue", "modelValue", "formItem", "viewName", "onBlur:modelValue"])) : G("", !0),
3175
+ "onUpdate:modelValue": r[5] || (r[5] = (d) => e.col.colKey && l(e.col.colKey, d)),
3176
+ "onBlur:modelValue": (d) => i(u)
3177
+ }, null, 8, ["originValue", "modelValue", "formItem", "viewName", "onBlur:modelValue"])) : $("", !0),
3178
3178
  u.itemType === "tree_check_box" ? (p(), _(Hn, {
3179
3179
  key: 7,
3180
3180
  originValue: m(oe)(e.row, e.col.colKey),
3181
3181
  modelValue: m(oe)(m(a), e.col.colKey),
3182
3182
  formItem: u,
3183
3183
  viewName: e.viewName,
3184
- "onUpdate:modelValue": i[6] || (i[6] = (d) => e.col.colKey && l(e.col.colKey, d)),
3185
- "onBlur:modelValue": (d) => r(u)
3186
- }, null, 8, ["originValue", "modelValue", "formItem", "viewName", "onBlur:modelValue"])) : G("", !0),
3184
+ "onUpdate:modelValue": r[6] || (r[6] = (d) => e.col.colKey && l(e.col.colKey, d)),
3185
+ "onBlur:modelValue": (d) => i(u)
3186
+ }, null, 8, ["originValue", "modelValue", "formItem", "viewName", "onBlur:modelValue"])) : $("", !0),
3187
3187
  u.itemType === "multi_tree_selector" || u.itemType === "tree_selector" ? (p(), _(Qn, {
3188
3188
  key: 8,
3189
3189
  originValue: m(oe)(e.row, e.col.colKey),
@@ -3191,18 +3191,18 @@ const Ca = /* @__PURE__ */ Xe(Ta, [["__scopeId", "data-v-db9f8677"]]), ka = ["id
3191
3191
  formItem: u,
3192
3192
  viewName: e.viewName,
3193
3193
  multiple: u.itemType === "multi_tree_selector",
3194
- "onUpdate:modelValue": i[7] || (i[7] = (d) => e.col.colKey && l(e.col.colKey, d)),
3195
- "onBlur:modelValue": (d) => r(u)
3196
- }, null, 8, ["originValue", "modelValue", "formItem", "viewName", "multiple", "onBlur:modelValue"])) : G("", !0),
3194
+ "onUpdate:modelValue": r[7] || (r[7] = (d) => e.col.colKey && l(e.col.colKey, d)),
3195
+ "onBlur:modelValue": (d) => i(u)
3196
+ }, null, 8, ["originValue", "modelValue", "formItem", "viewName", "multiple", "onBlur:modelValue"])) : $("", !0),
3197
3197
  u.itemType === "file" ? (p(), _(qn, {
3198
3198
  key: 9,
3199
3199
  modelValue: m(oe)(m(a), e.col.colKey),
3200
3200
  formItem: u,
3201
3201
  viewName: e.viewName,
3202
3202
  tips: u.placeholder || "请选择上传文件",
3203
- "onUpdate:modelValue": i[8] || (i[8] = (d) => e.col.colKey && l(e.col.colKey, d)),
3204
- "onBlur:modelValue": (d) => r(u)
3205
- }, null, 8, ["modelValue", "formItem", "viewName", "tips", "onBlur:modelValue"])) : G("", !0)
3203
+ "onUpdate:modelValue": r[8] || (r[8] = (d) => e.col.colKey && l(e.col.colKey, d)),
3204
+ "onBlur:modelValue": (d) => i(u)
3205
+ }, null, 8, ["modelValue", "formItem", "viewName", "tips", "onBlur:modelValue"])) : $("", !0)
3206
3206
  ]);
3207
3207
  }), 128))
3208
3208
  ], 2));
@@ -3219,7 +3219,7 @@ function Zn(e = {}) {
3219
3219
  }
3220
3220
  };
3221
3221
  }
3222
- function Bt(e) {
3222
+ function Ot(e) {
3223
3223
  return e === "" ? e : e === "true" || e == "1";
3224
3224
  }
3225
3225
  function _a(e, n) {
@@ -3233,27 +3233,27 @@ function _a(e, n) {
3233
3233
  }, a.open("GET", e), a.send();
3234
3234
  });
3235
3235
  }
3236
- function Oe(e) {
3236
+ function Be(e) {
3237
3237
  if (typeof e != "string")
3238
3238
  throw new TypeError("Path must be a string. Received " + JSON.stringify(e));
3239
3239
  }
3240
3240
  function hn(e, n) {
3241
- for (var t = "", o = 0, a = -1, l = 0, r, s = 0; s <= e.length; ++s) {
3241
+ for (var t = "", o = 0, a = -1, l = 0, i, s = 0; s <= e.length; ++s) {
3242
3242
  if (s < e.length)
3243
- r = e.charCodeAt(s);
3243
+ i = e.charCodeAt(s);
3244
3244
  else {
3245
- if (r === 47)
3245
+ if (i === 47)
3246
3246
  break;
3247
- r = 47;
3247
+ i = 47;
3248
3248
  }
3249
- if (r === 47) {
3249
+ if (i === 47) {
3250
3250
  if (!(a === s - 1 || l === 1))
3251
3251
  if (a !== s - 1 && l === 2) {
3252
3252
  if (t.length < 2 || o !== 2 || t.charCodeAt(t.length - 1) !== 46 || t.charCodeAt(t.length - 2) !== 46) {
3253
3253
  if (t.length > 2) {
3254
- var i = t.lastIndexOf("/");
3255
- if (i !== t.length - 1) {
3256
- i === -1 ? (t = "", o = 0) : (t = t.slice(0, i), o = t.length - 1 - t.lastIndexOf("/")), a = s, l = 0;
3254
+ var r = t.lastIndexOf("/");
3255
+ if (r !== t.length - 1) {
3256
+ r === -1 ? (t = "", o = 0) : (t = t.slice(0, r), o = t.length - 1 - t.lastIndexOf("/")), a = s, l = 0;
3257
3257
  continue;
3258
3258
  }
3259
3259
  } else if (t.length === 2 || t.length === 1) {
@@ -3266,7 +3266,7 @@ function hn(e, n) {
3266
3266
  t.length > 0 ? t += "/" + e.slice(a + 1, s) : t = e.slice(a + 1, s), o = s - a - 1;
3267
3267
  a = s, l = 0;
3268
3268
  } else
3269
- r === 46 && l !== -1 ? ++l : l = -1;
3269
+ i === 46 && l !== -1 ? ++l : l = -1;
3270
3270
  }
3271
3271
  return t;
3272
3272
  }
@@ -3279,47 +3279,47 @@ var Je = {
3279
3279
  resolve: function() {
3280
3280
  for (var n = "", t = !1, o, a = arguments.length - 1; a >= -1 && !t; a--) {
3281
3281
  var l;
3282
- a >= 0 ? l = arguments[a] : (o === void 0 && (o = process.cwd()), l = o), Oe(l), l.length !== 0 && (n = l + "/" + n, t = l.charCodeAt(0) === 47);
3282
+ a >= 0 ? l = arguments[a] : (o === void 0 && (o = process.cwd()), l = o), Be(l), l.length !== 0 && (n = l + "/" + n, t = l.charCodeAt(0) === 47);
3283
3283
  }
3284
3284
  return n = hn(n, !t), t ? n.length > 0 ? "/" + n : "/" : n.length > 0 ? n : ".";
3285
3285
  },
3286
3286
  normalize: function(n) {
3287
- if (Oe(n), n.length === 0)
3287
+ if (Be(n), n.length === 0)
3288
3288
  return ".";
3289
3289
  var t = n.charCodeAt(0) === 47, o = n.charCodeAt(n.length - 1) === 47;
3290
3290
  return n = hn(n, !t), n.length === 0 && !t && (n = "."), n.length > 0 && o && (n += "/"), t ? "/" + n : n;
3291
3291
  },
3292
3292
  isAbsolute: function(n) {
3293
- return Oe(n), n.length > 0 && n.charCodeAt(0) === 47;
3293
+ return Be(n), n.length > 0 && n.charCodeAt(0) === 47;
3294
3294
  },
3295
3295
  join: function() {
3296
3296
  if (arguments.length === 0)
3297
3297
  return ".";
3298
3298
  for (var n, t = 0; t < arguments.length; ++t) {
3299
3299
  var o = arguments[t];
3300
- Oe(o), o.length > 0 && (n === void 0 ? n = o : n += "/" + o);
3300
+ Be(o), o.length > 0 && (n === void 0 ? n = o : n += "/" + o);
3301
3301
  }
3302
3302
  return n === void 0 ? "." : Je.normalize(n);
3303
3303
  },
3304
3304
  relative: function(n, t) {
3305
- if (Oe(n), Oe(t), n === t || (n = Je.resolve(n), t = Je.resolve(t), n === t))
3305
+ if (Be(n), Be(t), n === t || (n = Je.resolve(n), t = Je.resolve(t), n === t))
3306
3306
  return "";
3307
3307
  for (var o = 1; o < n.length && n.charCodeAt(o) === 47; ++o)
3308
3308
  ;
3309
- for (var a = n.length, l = a - o, r = 1; r < t.length && t.charCodeAt(r) === 47; ++r)
3309
+ for (var a = n.length, l = a - o, i = 1; i < t.length && t.charCodeAt(i) === 47; ++i)
3310
3310
  ;
3311
- for (var s = t.length, i = s - r, u = l < i ? l : i, c = -1, d = 0; d <= u; ++d) {
3311
+ for (var s = t.length, r = s - i, u = l < r ? l : r, c = -1, d = 0; d <= u; ++d) {
3312
3312
  if (d === u) {
3313
- if (i > u) {
3314
- if (t.charCodeAt(r + d) === 47)
3315
- return t.slice(r + d + 1);
3313
+ if (r > u) {
3314
+ if (t.charCodeAt(i + d) === 47)
3315
+ return t.slice(i + d + 1);
3316
3316
  if (d === 0)
3317
- return t.slice(r + d);
3317
+ return t.slice(i + d);
3318
3318
  } else
3319
3319
  l > u && (n.charCodeAt(o + d) === 47 ? c = d : d === 0 && (c = 0));
3320
3320
  break;
3321
3321
  }
3322
- var y = n.charCodeAt(o + d), k = t.charCodeAt(r + d);
3322
+ var y = n.charCodeAt(o + d), k = t.charCodeAt(i + d);
3323
3323
  if (y !== k)
3324
3324
  break;
3325
3325
  y === 47 && (c = d);
@@ -3327,18 +3327,18 @@ var Je = {
3327
3327
  var L = "";
3328
3328
  for (d = o + c + 1; d <= a; ++d)
3329
3329
  (d === a || n.charCodeAt(d) === 47) && (L.length === 0 ? L += ".." : L += "/..");
3330
- return L.length > 0 ? L + t.slice(r + c) : (r += c, t.charCodeAt(r) === 47 && ++r, t.slice(r));
3330
+ return L.length > 0 ? L + t.slice(i + c) : (i += c, t.charCodeAt(i) === 47 && ++i, t.slice(i));
3331
3331
  },
3332
3332
  _makeLong: function(n) {
3333
3333
  return n;
3334
3334
  },
3335
3335
  dirname: function(n) {
3336
- if (Oe(n), n.length === 0)
3336
+ if (Be(n), n.length === 0)
3337
3337
  return ".";
3338
- for (var t = n.charCodeAt(0), o = t === 47, a = -1, l = !0, r = n.length - 1; r >= 1; --r)
3339
- if (t = n.charCodeAt(r), t === 47) {
3338
+ for (var t = n.charCodeAt(0), o = t === 47, a = -1, l = !0, i = n.length - 1; i >= 1; --i)
3339
+ if (t = n.charCodeAt(i), t === 47) {
3340
3340
  if (!l) {
3341
- a = r;
3341
+ a = i;
3342
3342
  break;
3343
3343
  }
3344
3344
  } else
@@ -3348,51 +3348,51 @@ var Je = {
3348
3348
  basename: function(n, t) {
3349
3349
  if (t !== void 0 && typeof t != "string")
3350
3350
  throw new TypeError('"ext" argument must be a string');
3351
- Oe(n);
3352
- var o = 0, a = -1, l = !0, r;
3351
+ Be(n);
3352
+ var o = 0, a = -1, l = !0, i;
3353
3353
  if (t !== void 0 && t.length > 0 && t.length <= n.length) {
3354
3354
  if (t.length === n.length && t === n)
3355
3355
  return "";
3356
- var s = t.length - 1, i = -1;
3357
- for (r = n.length - 1; r >= 0; --r) {
3358
- var u = n.charCodeAt(r);
3356
+ var s = t.length - 1, r = -1;
3357
+ for (i = n.length - 1; i >= 0; --i) {
3358
+ var u = n.charCodeAt(i);
3359
3359
  if (u === 47) {
3360
3360
  if (!l) {
3361
- o = r + 1;
3361
+ o = i + 1;
3362
3362
  break;
3363
3363
  }
3364
3364
  } else
3365
- i === -1 && (l = !1, i = r + 1), s >= 0 && (u === t.charCodeAt(s) ? --s === -1 && (a = r) : (s = -1, a = i));
3365
+ r === -1 && (l = !1, r = i + 1), s >= 0 && (u === t.charCodeAt(s) ? --s === -1 && (a = i) : (s = -1, a = r));
3366
3366
  }
3367
- return o === a ? a = i : a === -1 && (a = n.length), n.slice(o, a);
3367
+ return o === a ? a = r : a === -1 && (a = n.length), n.slice(o, a);
3368
3368
  } else {
3369
- for (r = n.length - 1; r >= 0; --r)
3370
- if (n.charCodeAt(r) === 47) {
3369
+ for (i = n.length - 1; i >= 0; --i)
3370
+ if (n.charCodeAt(i) === 47) {
3371
3371
  if (!l) {
3372
- o = r + 1;
3372
+ o = i + 1;
3373
3373
  break;
3374
3374
  }
3375
3375
  } else
3376
- a === -1 && (l = !1, a = r + 1);
3376
+ a === -1 && (l = !1, a = i + 1);
3377
3377
  return a === -1 ? "" : n.slice(o, a);
3378
3378
  }
3379
3379
  },
3380
3380
  extname: function(n) {
3381
- Oe(n);
3382
- for (var t = -1, o = 0, a = -1, l = !0, r = 0, s = n.length - 1; s >= 0; --s) {
3383
- var i = n.charCodeAt(s);
3384
- if (i === 47) {
3381
+ Be(n);
3382
+ for (var t = -1, o = 0, a = -1, l = !0, i = 0, s = n.length - 1; s >= 0; --s) {
3383
+ var r = n.charCodeAt(s);
3384
+ if (r === 47) {
3385
3385
  if (!l) {
3386
3386
  o = s + 1;
3387
3387
  break;
3388
3388
  }
3389
3389
  continue;
3390
3390
  }
3391
- a === -1 && (l = !1, a = s + 1), i === 46 ? t === -1 ? t = s : r !== 1 && (r = 1) : t !== -1 && (r = -1);
3391
+ a === -1 && (l = !1, a = s + 1), r === 46 ? t === -1 ? t = s : i !== 1 && (i = 1) : t !== -1 && (i = -1);
3392
3392
  }
3393
3393
  return t === -1 || a === -1 || // We saw a non-dot character immediately before the dot
3394
- r === 0 || // The (right-most) trimmed path component is exactly '..'
3395
- r === 1 && t === a - 1 && t === o + 1 ? "" : n.slice(t, a);
3394
+ i === 0 || // The (right-most) trimmed path component is exactly '..'
3395
+ i === 1 && t === a - 1 && t === o + 1 ? "" : n.slice(t, a);
3396
3396
  },
3397
3397
  format: function(n) {
3398
3398
  if (n === null || typeof n != "object")
@@ -3400,13 +3400,13 @@ var Je = {
3400
3400
  return Sa("/", n);
3401
3401
  },
3402
3402
  parse: function(n) {
3403
- Oe(n);
3403
+ Be(n);
3404
3404
  var t = { root: "", dir: "", base: "", ext: "", name: "" };
3405
3405
  if (n.length === 0)
3406
3406
  return t;
3407
3407
  var o = n.charCodeAt(0), a = o === 47, l;
3408
3408
  a ? (t.root = "/", l = 1) : l = 0;
3409
- for (var r = -1, s = 0, i = -1, u = !0, c = n.length - 1, d = 0; c >= l; --c) {
3409
+ for (var i = -1, s = 0, r = -1, u = !0, c = n.length - 1, d = 0; c >= l; --c) {
3410
3410
  if (o = n.charCodeAt(c), o === 47) {
3411
3411
  if (!u) {
3412
3412
  s = c + 1;
@@ -3414,11 +3414,11 @@ var Je = {
3414
3414
  }
3415
3415
  continue;
3416
3416
  }
3417
- i === -1 && (u = !1, i = c + 1), o === 46 ? r === -1 ? r = c : d !== 1 && (d = 1) : r !== -1 && (d = -1);
3417
+ r === -1 && (u = !1, r = c + 1), o === 46 ? i === -1 ? i = c : d !== 1 && (d = 1) : i !== -1 && (d = -1);
3418
3418
  }
3419
- return r === -1 || i === -1 || // We saw a non-dot character immediately before the dot
3419
+ return i === -1 || r === -1 || // We saw a non-dot character immediately before the dot
3420
3420
  d === 0 || // The (right-most) trimmed path component is exactly '..'
3421
- d === 1 && r === i - 1 && r === s + 1 ? i !== -1 && (s === 0 && a ? t.base = t.name = n.slice(1, i) : t.base = t.name = n.slice(s, i)) : (s === 0 && a ? (t.name = n.slice(1, r), t.base = n.slice(1, i)) : (t.name = n.slice(s, r), t.base = n.slice(s, i)), t.ext = n.slice(r, i)), s > 0 ? t.dir = n.slice(0, s - 1) : a && (t.dir = "/"), t;
3421
+ d === 1 && i === r - 1 && i === s + 1 ? r !== -1 && (s === 0 && a ? t.base = t.name = n.slice(1, r) : t.base = t.name = n.slice(s, r)) : (s === 0 && a ? (t.name = n.slice(1, i), t.base = n.slice(1, r)) : (t.name = n.slice(s, i), t.base = n.slice(s, r)), t.ext = n.slice(i, r)), s > 0 ? t.dir = n.slice(0, s - 1) : a && (t.dir = "/"), t;
3422
3422
  },
3423
3423
  sep: "/",
3424
3424
  delimiter: ":",
@@ -3429,13 +3429,13 @@ Je.posix = Je;
3429
3429
  const xa = Je.extname, Jn = Je.basename;
3430
3430
  class Da {
3431
3431
  constructor() {
3432
- let n = (() => typeof global > "u")(), t = "image/png", o = "image/jpeg", a = "image/jpeg", l = "image/webp", r = "application/pdf", s = "image/svg+xml";
3432
+ let n = (() => typeof global > "u")(), t = "image/png", o = "image/jpeg", a = "image/jpeg", l = "image/webp", i = "application/pdf", s = "image/svg+xml";
3433
3433
  Object.assign(this, {
3434
3434
  toMime: this.toMime.bind(this),
3435
3435
  fromMime: this.fromMime.bind(this),
3436
3436
  expected: n ? '"png", "jpg", or "webp"' : '"png", "jpg", "pdf", or "svg"',
3437
- formats: n ? { png: t, jpg: o, jpeg: a, webp: l } : { png: t, jpg: o, jpeg: a, pdf: r, svg: s },
3438
- mimes: n ? { [t]: "png", [o]: "jpg", [l]: "webp" } : { [t]: "png", [o]: "jpg", [r]: "pdf", [s]: "svg" }
3437
+ formats: n ? { png: t, jpg: o, jpeg: a, webp: l } : { png: t, jpg: o, jpeg: a, pdf: i, svg: s },
3438
+ mimes: n ? { [t]: "png", [o]: "jpg", [l]: "webp" } : { [t]: "png", [o]: "jpg", [i]: "pdf", [s]: "svg" }
3439
3439
  });
3440
3440
  }
3441
3441
  toMime(n) {
@@ -3451,9 +3451,9 @@ function Va(e, {
3451
3451
  format: P,
3452
3452
  page: a,
3453
3453
  quality: l,
3454
- matte: r,
3454
+ matte: i,
3455
3455
  density: s,
3456
- outline: i,
3456
+ outline: r,
3457
3457
  archive: k
3458
3458
  } = {}) {
3459
3459
  var { fromMime: c, toMime: d, expected: y } = new Da(), k = k || "canvas", L = P || t.replace(/@\d+x$/i, "") || xa(n), P = c(d(L) || L), C = d(P), h = e.length;
@@ -3483,7 +3483,7 @@ function Va(e, {
3483
3483
  s = v ? parseInt(v[1], 10) : 1;
3484
3484
  } else if (typeof s != "number" || !Number.isInteger(s) || s < 1)
3485
3485
  throw new TypeError("The density option must be a non-negative integer");
3486
- return i === void 0 ? i = !0 : P == "svg" && (i = !!i), {
3486
+ return r === void 0 ? r = !0 : P == "svg" && (r = !!r), {
3487
3487
  filename: n,
3488
3488
  pattern: g,
3489
3489
  format: P,
@@ -3491,9 +3491,9 @@ function Va(e, {
3491
3491
  pages: e,
3492
3492
  padding: M,
3493
3493
  quality: l,
3494
- matte: r,
3494
+ matte: i,
3495
3495
  density: s,
3496
- outline: i,
3496
+ outline: r,
3497
3497
  archive: k
3498
3498
  };
3499
3499
  }
@@ -3522,7 +3522,7 @@ St.prototype.table = (() => {
3522
3522
  }
3523
3523
  return o;
3524
3524
  })();
3525
- function Ot(e) {
3525
+ function Bt(e) {
3526
3526
  let n = new Uint8Array(e), t = new DataView(n.buffer), o = {
3527
3527
  array: n,
3528
3528
  view: t,
@@ -3554,23 +3554,23 @@ class xt {
3554
3554
  }), this.add(n);
3555
3555
  }
3556
3556
  async add(n, t) {
3557
- let o = !t, a = xt.encoder.encode(`${this.directory}/${o ? "" : n}`), l = new Uint8Array(o ? 0 : await t.arrayBuffer()), r = 30 + a.length, s = r + l.length, i = 16, { offset: u } = this, c = Ot(26).set32(0, 134742036).set16(6, this.time).set16(8, this.date).set32(10, St.for(l)).set32(14, l.length).set32(18, l.length).set16(22, a.length);
3558
- u += r;
3559
- let d = Ot(r + l.length + i).set32(0, 67324752).bytes(4, c.array).bytes(30, a).bytes(r, l);
3560
- u += l.length, d.set32(s, 134695760).bytes(s + 4, c.array.slice(10, 22)), u += i, this.files.push({ offset: u, folder: o, name: a, header: c, payload: d }), this.offset = u;
3557
+ let o = !t, a = xt.encoder.encode(`${this.directory}/${o ? "" : n}`), l = new Uint8Array(o ? 0 : await t.arrayBuffer()), i = 30 + a.length, s = i + l.length, r = 16, { offset: u } = this, c = Bt(26).set32(0, 134742036).set16(6, this.time).set16(8, this.date).set32(10, St.for(l)).set32(14, l.length).set32(18, l.length).set16(22, a.length);
3558
+ u += i;
3559
+ let d = Bt(i + l.length + r).set32(0, 67324752).bytes(4, c.array).bytes(30, a).bytes(i, l);
3560
+ u += l.length, d.set32(s, 134695760).bytes(s + 4, c.array.slice(10, 22)), u += r, this.files.push({ offset: u, folder: o, name: a, header: c, payload: d }), this.offset = u;
3561
3561
  }
3562
3562
  toBuffer() {
3563
3563
  let n = this.files.reduce(
3564
3564
  (d, { name: y }) => 46 + y.length + d,
3565
3565
  0
3566
- ), t = Ot(n + 22), o = 0;
3567
- for (var { offset: a, name: l, header: r, folder: s } of this.files)
3568
- t.set32(o, 33639248).set16(o + 4, 20).bytes(o + 6, r.array).set8(o + 38, s ? 16 : 0).set32(o + 42, a).bytes(o + 46, l), o += 46 + l.length;
3566
+ ), t = Bt(n + 22), o = 0;
3567
+ for (var { offset: a, name: l, header: i, folder: s } of this.files)
3568
+ t.set32(o, 33639248).set16(o + 4, 20).bytes(o + 6, i.array).set8(o + 38, s ? 16 : 0).set32(o + 42, a).bytes(o + 46, l), o += 46 + l.length;
3569
3569
  t.set32(o, 101010256).set16(o + 8, this.files.length).set16(o + 10, this.files.length).set32(o + 12, n).set32(o + 16, this.offset);
3570
- let i = new Uint8Array(this.offset + t.size), u = 0;
3570
+ let r = new Uint8Array(this.offset + t.size), u = 0;
3571
3571
  for (var { payload: c } of this.files)
3572
- i.set(c.array, u), u += c.size;
3573
- return i.set(t.array, u), i;
3572
+ r.set(c.array, u), u += c.size;
3573
+ return r.set(t.array, u), r;
3574
3574
  }
3575
3575
  get blob() {
3576
3576
  return new Blob([this.toBuffer()], { type: "application/zip" });
@@ -3579,29 +3579,29 @@ class xt {
3579
3579
  xt.encoder = new TextEncoder();
3580
3580
  const Zt = (e, n, t, o) => {
3581
3581
  if (o) {
3582
- let { width: a, height: l } = e, r = Object.assign(document.createElement("canvas"), { width: a, height: l }), s = r.getContext("2d");
3583
- s.fillStyle = o, s.fillRect(0, 0, a, l), s.drawImage(e, 0, 0), e = r;
3582
+ let { width: a, height: l } = e, i = Object.assign(document.createElement("canvas"), { width: a, height: l }), s = i.getContext("2d");
3583
+ s.fillStyle = o, s.fillRect(0, 0, a, l), s.drawImage(e, 0, 0), e = i;
3584
3584
  }
3585
3585
  return new Promise((a, l) => e.toBlob(a, n, t));
3586
3586
  }, Aa = (...e) => Zt(...e).then((n) => n.arrayBuffer()), Ea = async (e, n, t, o, a) => {
3587
3587
  eo(a, await Zt(e, n, t, o));
3588
- }, Pa = async (e, n, t, o, a, l, r) => {
3589
- let s = (c) => l.replace("{}", String(c + 1).padStart(r, "0")), i = Jn(a, ".zip") || "archive", u = new xt(i);
3588
+ }, Pa = async (e, n, t, o, a, l, i) => {
3589
+ let s = (c) => l.replace("{}", String(c + 1).padStart(i, "0")), r = Jn(a, ".zip") || "archive", u = new xt(r);
3590
3590
  await Promise.all(
3591
3591
  e.map(async (c, d) => {
3592
3592
  let y = s(d);
3593
3593
  await u.add(y, await Zt(c, n, t, o));
3594
3594
  })
3595
- ), eo(`${i}.zip`, u.blob);
3595
+ ), eo(`${r}.zip`, u.blob);
3596
3596
  }, eo = (e, n) => {
3597
3597
  const t = window.URL.createObjectURL(n), o = document.createElement("a");
3598
3598
  o.style.display = "none", o.href = t, o.setAttribute("download", e), typeof o.download > "u" && o.setAttribute("target", "_blank"), document.body.appendChild(o), o.click(), document.body.removeChild(o), setTimeout(() => window.URL.revokeObjectURL(t), 100);
3599
- }, Ba = (e, n, t) => e.map((o) => {
3599
+ }, Oa = (e, n, t) => e.map((o) => {
3600
3600
  if (n == 1 && !t)
3601
3601
  return o.canvas;
3602
- let a = document.createElement("canvas"), l = a.getContext("2d"), r = o.canvas ? o.canvas : o;
3603
- return a.width = r.width * n, a.height = r.height * n, t && (l.fillStyle = t, l.fillRect(0, 0, a.width, a.height)), l.scale(n, n), l.drawImage(r, 0, 0), a;
3604
- }), Oa = { asBuffer: Aa, asDownload: Ea, asZipDownload: Pa, atScale: Ba, options: Va }, { asBuffer: Ft, asDownload: Fa, asZipDownload: Ua, atScale: Ut, options: jt } = Oa, pn = Symbol.for("toDataURL"), ja = (e) => new Promise(
3602
+ let a = document.createElement("canvas"), l = a.getContext("2d"), i = o.canvas ? o.canvas : o;
3603
+ return a.width = i.width * n, a.height = i.height * n, t && (l.fillStyle = t, l.fillRect(0, 0, a.width, a.height)), l.scale(n, n), l.drawImage(i, 0, 0), a;
3604
+ }), Ba = { asBuffer: Aa, asDownload: Ea, asZipDownload: Pa, atScale: Oa, options: Va }, { asBuffer: Ft, asDownload: Fa, asZipDownload: ja, atScale: jt, options: Ut } = Ba, pn = Symbol.for("toDataURL"), Ua = (e) => new Promise(
3605
3605
  (n, t) => Object.assign(new to(), {
3606
3606
  crossOrigin: "Anonymous",
3607
3607
  onload: n,
@@ -3617,28 +3617,28 @@ let Ra = class {
3617
3617
  writable: !1,
3618
3618
  enumerable: !0
3619
3619
  });
3620
- for (var [l, r] of Object.entries({
3620
+ for (var [l, i] of Object.entries({
3621
3621
  png: () => Ft(o, "image/png"),
3622
3622
  jpg: () => Ft(o, "image/jpeg"),
3623
3623
  pages: () => a.concat(o).map((s) => s.getContext("2d"))
3624
3624
  }))
3625
- Object.defineProperty(o, l, { get: r });
3625
+ Object.defineProperty(o, l, { get: i });
3626
3626
  return Object.assign(o, {
3627
3627
  width: n,
3628
3628
  height: t,
3629
3629
  newPage(...s) {
3630
- var { width: u, height: c } = o, i = Object.assign(document.createElement("canvas"), {
3630
+ var { width: u, height: c } = o, r = Object.assign(document.createElement("canvas"), {
3631
3631
  width: u,
3632
3632
  height: c
3633
3633
  });
3634
- i.getContext("2d").drawImage(o, 0, 0), a.push(i);
3634
+ r.getContext("2d").drawImage(o, 0, 0), a.push(r);
3635
3635
  var [u, c] = s.length ? s : [u, c];
3636
3636
  return Object.assign(o, { width: u, height: c }).getContext("2d");
3637
3637
  },
3638
- saveAs(s, i) {
3639
- i = typeof i == "number" ? { quality: i } : i;
3640
- let u = jt(this.pages, { filename: s, ...i }), { pattern: c, padding: d, mime: y, quality: k, matte: L, density: P, archive: C } = u, h = Ut(u.pages, P);
3641
- return d == null ? Fa(h[0], y, k, L, s) : Ua(
3638
+ saveAs(s, r) {
3639
+ r = typeof r == "number" ? { quality: r } : r;
3640
+ let u = Ut(this.pages, { filename: s, ...r }), { pattern: c, padding: d, mime: y, quality: k, matte: L, density: P, archive: C } = u, h = jt(u.pages, P);
3641
+ return d == null ? Fa(h[0], y, k, L, s) : ja(
3642
3642
  h,
3643
3643
  y,
3644
3644
  k,
@@ -3648,15 +3648,15 @@ let Ra = class {
3648
3648
  d
3649
3649
  );
3650
3650
  },
3651
- toBuffer(s = "png", i = {}) {
3652
- i = typeof i == "number" ? { quality: i } : i;
3653
- let u = jt(this.pages, { extension: s, ...i }), { mime: c, quality: d, matte: y, pages: k, density: L } = u, P = Ut(k, L, y)[0];
3651
+ toBuffer(s = "png", r = {}) {
3652
+ r = typeof r == "number" ? { quality: r } : r;
3653
+ let u = Ut(this.pages, { extension: s, ...r }), { mime: c, quality: d, matte: y, pages: k, density: L } = u, P = jt(k, L, y)[0];
3654
3654
  return Ft(P, c, d, y);
3655
3655
  },
3656
3656
  [pn]: o.toDataURL.bind(o),
3657
- toDataURL(s = "png", i = {}) {
3658
- i = typeof i == "number" ? { quality: i } : i;
3659
- let u = jt(this.pages, { extension: s, ...i }), { mime: c, quality: d, matte: y, pages: k, density: L } = u, P = Ut(k, L, y)[0], C = P[P === o ? pn : "toDataURL"](c, d);
3657
+ toDataURL(s = "png", r = {}) {
3658
+ r = typeof r == "number" ? { quality: r } : r;
3659
+ let u = Ut(this.pages, { extension: s, ...r }), { mime: c, quality: d, matte: y, pages: k, density: L } = u, P = jt(k, L, y)[0], C = P[P === o ? pn : "toDataURL"](c, d);
3660
3660
  return Promise.resolve(C);
3661
3661
  }
3662
3662
  });
@@ -3664,8 +3664,8 @@ let Ra = class {
3664
3664
  };
3665
3665
  const {
3666
3666
  CanvasRenderingContext2D: za,
3667
- CanvasGradient: Ga,
3668
- CanvasPattern: $a,
3667
+ CanvasGradient: $a,
3668
+ CanvasPattern: Ga,
3669
3669
  Image: to,
3670
3670
  ImageData: Ka,
3671
3671
  Path2D: Wa,
@@ -3674,10 +3674,10 @@ const {
3674
3674
  DOMPoint: qa
3675
3675
  } = window, Xa = {
3676
3676
  Canvas: Ra,
3677
- loadImage: ja,
3677
+ loadImage: Ua,
3678
3678
  CanvasRenderingContext2D: za,
3679
- CanvasGradient: Ga,
3680
- CanvasPattern: $a,
3679
+ CanvasGradient: $a,
3680
+ CanvasPattern: Ga,
3681
3681
  Image: to,
3682
3682
  ImageData: Ka,
3683
3683
  Path2D: Wa,
@@ -3697,25 +3697,25 @@ const {
3697
3697
  }, tt = (e, n) => (t, o, a, l) => {
3698
3698
  n(t, o, a) && l(t, e, o, a);
3699
3699
  }, Ya = (e, n) => (t, o, a, l) => {
3700
- const r = [];
3700
+ const i = [];
3701
3701
  let s = t.pos;
3702
3702
  for (; n(t, o, a); ) {
3703
- const i = {};
3704
- if (l(t, e, o, i), t.pos === s)
3703
+ const r = {};
3704
+ if (l(t, e, o, r), t.pos === s)
3705
3705
  break;
3706
- s = t.pos, r.push(i);
3706
+ s = t.pos, i.push(r);
3707
3707
  }
3708
- return r;
3708
+ return i;
3709
3709
  }, Za = (e) => ({
3710
3710
  data: e,
3711
3711
  pos: 0
3712
- }), Ee = () => (e) => e.data[e.pos++], no = (e = 0) => (n) => n.data[n.pos + e], Ue = (e) => (n) => n.data.subarray(n.pos, n.pos += e), Dt = (e) => (n) => n.data.subarray(n.pos, n.pos + e), Kt = (e) => (n) => Array.from(Ue(e)(n)).map((t) => String.fromCharCode(t)).join(""), Ye = (e) => (n) => {
3713
- const t = Ue(2)(n);
3712
+ }), Ee = () => (e) => e.data[e.pos++], no = (e = 0) => (n) => n.data[n.pos + e], je = (e) => (n) => n.data.subarray(n.pos, n.pos += e), Dt = (e) => (n) => n.data.subarray(n.pos, n.pos + e), Kt = (e) => (n) => Array.from(je(e)(n)).map((t) => String.fromCharCode(t)).join(""), Ye = (e) => (n) => {
3713
+ const t = je(2)(n);
3714
3714
  return e ? (t[1] << 8) + t[0] : (t[0] << 8) + t[1];
3715
3715
  }, oo = (e, n) => (t, o, a) => {
3716
- const l = typeof n == "function" ? n(t, o, a) : n, r = Ue(e), s = new Array(l);
3717
- for (var i = 0; i < l; i++)
3718
- s[i] = r(t);
3716
+ const l = typeof n == "function" ? n(t, o, a) : n, i = je(e), s = new Array(l);
3717
+ for (var r = 0; r < l; r++)
3718
+ s[r] = i(t);
3719
3719
  return s;
3720
3720
  }, Ja = (e, n, t) => {
3721
3721
  for (var o = 0, a = 0; a < t; a++)
@@ -3725,9 +3725,9 @@ const {
3725
3725
  const t = Ee()(n), o = new Array(8);
3726
3726
  for (var a = 0; a < 8; a++)
3727
3727
  o[7 - a] = !!(t & 1 << a);
3728
- return Object.keys(e).reduce((l, r) => {
3729
- const s = e[r];
3730
- return s.length ? l[r] = Ja(o, s.index, s.length) : l[r] = o[s.index], l;
3728
+ return Object.keys(e).reduce((l, i) => {
3729
+ const s = e[i];
3730
+ return s.length ? l[i] = Ja(o, s.index, s.length) : l[i] = o[s.index], l;
3731
3731
  }, {});
3732
3732
  };
3733
3733
  var Vt = {
@@ -3736,21 +3736,21 @@ var Vt = {
3736
3736
  for (var a = 0, l = Ee()(e); l !== 0 && l; l = Ee()(e)) {
3737
3737
  if (e.pos + l >= o) {
3738
3738
  const u = o - e.pos;
3739
- t.push(Ue(u)(e)), a += u;
3739
+ t.push(je(u)(e)), a += u;
3740
3740
  break;
3741
3741
  }
3742
- t.push(Ue(l)(e)), a += l;
3742
+ t.push(je(l)(e)), a += l;
3743
3743
  }
3744
- const r = new Uint8Array(a);
3745
- for (var s = 0, i = 0; i < t.length; i++)
3746
- r.set(t[i], s), s += t[i].length;
3747
- return r;
3744
+ const i = new Uint8Array(a);
3745
+ for (var s = 0, r = 0; r < t.length; r++)
3746
+ i.set(t[r], s), s += t[r].length;
3747
+ return i;
3748
3748
  }
3749
3749
  };
3750
3750
  const el = tt(
3751
3751
  {
3752
3752
  gce: [
3753
- { codes: Ue(2) },
3753
+ { codes: je(2) },
3754
3754
  { byteSize: Ee() },
3755
3755
  {
3756
3756
  extras: Jt({
@@ -3803,10 +3803,10 @@ const el = tt(
3803
3803
  ), nl = tt(
3804
3804
  {
3805
3805
  text: [
3806
- { codes: Ue(2) },
3806
+ { codes: je(2) },
3807
3807
  { blockSize: Ee() },
3808
3808
  {
3809
- preData: (e, n, t) => Ue(t.text.blockSize)(e)
3809
+ preData: (e, n, t) => je(t.text.blockSize)(e)
3810
3810
  },
3811
3811
  Vt
3812
3812
  ]
@@ -3818,7 +3818,7 @@ const el = tt(
3818
3818
  ), ol = tt(
3819
3819
  {
3820
3820
  application: [
3821
- { codes: Ue(2) },
3821
+ { codes: je(2) },
3822
3822
  { blockSize: Ee() },
3823
3823
  { id: (e, n, t) => Kt(t.blockSize)(e) },
3824
3824
  Vt
@@ -3830,7 +3830,7 @@ const el = tt(
3830
3830
  }
3831
3831
  ), al = tt(
3832
3832
  {
3833
- comment: [{ codes: Ue(2) }, Vt]
3833
+ comment: [{ codes: je(2) }, Vt]
3834
3834
  },
3835
3835
  (e) => {
3836
3836
  var n = Dt(2)(e);
@@ -3873,20 +3873,20 @@ const el = tt(
3873
3873
  }
3874
3874
  )
3875
3875
  }
3876
- ], rl = (e, n) => {
3876
+ ], il = (e, n) => {
3877
3877
  const t = new Array(e.length), o = e.length / n, a = function(c, d) {
3878
3878
  const y = e.slice(d * n, (d + 1) * n);
3879
3879
  t.splice.apply(t, [c * n, n].concat(y));
3880
- }, l = [0, 4, 2, 1], r = [8, 8, 4, 2];
3881
- for (var s = 0, i = 0; i < 4; i++)
3882
- for (var u = l[i]; u < o; u += r[i])
3880
+ }, l = [0, 4, 2, 1], i = [8, 8, 4, 2];
3881
+ for (var s = 0, r = 0; r < 4; r++)
3882
+ for (var u = l[r]; u < o; u += i[r])
3883
3883
  a(u, s), s++;
3884
3884
  return t;
3885
- }, il = (e, n, t) => {
3885
+ }, rl = (e, n, t) => {
3886
3886
  const l = t;
3887
- var r, s, i, u, c, d, y, b, k, L, g, P, v, f, E, w;
3887
+ var i, s, r, u, c, d, y, b, k, L, g, P, v, f, E, w;
3888
3888
  const C = new Array(t), h = new Array(4096), M = new Array(4096), S = new Array(4096 + 1);
3889
- for (P = e, s = 1 << P, c = s + 1, r = s + 2, y = -1, u = P + 1, i = (1 << u) - 1, k = 0; k < s; k++)
3889
+ for (P = e, s = 1 << P, c = s + 1, i = s + 2, y = -1, u = P + 1, r = (1 << u) - 1, k = 0; k < s; k++)
3890
3890
  h[k] = 0, M[k] = k;
3891
3891
  var g, b, v, f, w, E;
3892
3892
  for (g = b = v = f = w = E = 0, L = 0; L < l; ) {
@@ -3895,19 +3895,19 @@ const el = tt(
3895
3895
  g += n[E] << b, b += 8, E++;
3896
3896
  continue;
3897
3897
  }
3898
- if (k = g & i, g >>= u, b -= u, k > r || k == c)
3898
+ if (k = g & r, g >>= u, b -= u, k > i || k == c)
3899
3899
  break;
3900
3900
  if (k == s) {
3901
- u = P + 1, i = (1 << u) - 1, r = s + 2, y = -1;
3901
+ u = P + 1, r = (1 << u) - 1, i = s + 2, y = -1;
3902
3902
  continue;
3903
3903
  }
3904
3904
  if (y == -1) {
3905
3905
  S[f++] = M[k], y = k, v = k;
3906
3906
  continue;
3907
3907
  }
3908
- for (d = k, k == r && (S[f++] = v, k = y); k > s; )
3908
+ for (d = k, k == i && (S[f++] = v, k = y); k > s; )
3909
3909
  S[f++] = M[k], k = h[k];
3910
- v = M[k] & 255, S[f++] = v, r < 4096 && (h[r] = y, M[r] = v, r++, !(r & i) && r < 4096 && (u++, i += r)), y = d;
3910
+ v = M[k] & 255, S[f++] = v, i < 4096 && (h[i] = y, M[i] = v, i++, !(i & r) && i < 4096 && (u++, r += i)), y = d;
3911
3911
  }
3912
3912
  f--, C[w++] = S[f], L++;
3913
3913
  }
@@ -3920,8 +3920,8 @@ const el = tt(
3920
3920
  }, ul = (e) => {
3921
3921
  const n = e.pixels.length, t = new Uint8ClampedArray(n * 4);
3922
3922
  for (var o = 0; o < n; o++) {
3923
- const a = o * 4, l = e.pixels[o], r = e.colorTable[l];
3924
- t[a] = r[0], t[a + 1] = r[1], t[a + 2] = r[2], t[a + 3] = l !== e.transparentIndex ? 255 : 0;
3923
+ const a = o * 4, l = e.pixels[o], i = e.colorTable[l];
3924
+ t[a] = i[0], t[a + 1] = i[1], t[a + 2] = i[2], t[a + 3] = l !== e.transparentIndex ? 255 : 0;
3925
3925
  }
3926
3926
  return t;
3927
3927
  }, cl = (e, n, t) => {
@@ -3930,9 +3930,9 @@ const el = tt(
3930
3930
  return;
3931
3931
  }
3932
3932
  const { image: o } = e, a = o.descriptor.width * o.descriptor.height;
3933
- var l = il(o.data.minCodeSize, o.data.blocks, a);
3934
- o.descriptor.lct.interlaced && (l = rl(l, o.descriptor.width));
3935
- const r = {
3933
+ var l = rl(o.data.minCodeSize, o.data.blocks, a);
3934
+ o.descriptor.lct.interlaced && (l = il(l, o.descriptor.width));
3935
+ const i = {
3936
3936
  pixels: l,
3937
3937
  dims: {
3938
3938
  top: e.image.descriptor.top,
@@ -3941,7 +3941,7 @@ const el = tt(
3941
3941
  height: e.image.descriptor.height
3942
3942
  }
3943
3943
  };
3944
- return o.descriptor.lct && o.descriptor.lct.exists ? r.colorTable = o.lct : r.colorTable = n, e.gce && (r.delay = (e.gce.delay || 10) * 10, r.disposalType = e.gce.extras.disposal, e.gce.extras.transparentColorGiven && (r.transparentIndex = e.gce.transparentColorIndex)), t && (r.patch = ul(r)), r;
3944
+ return o.descriptor.lct && o.descriptor.lct.exists ? i.colorTable = o.lct : i.colorTable = n, e.gce && (i.delay = (e.gce.delay || 10) * 10, i.disposalType = e.gce.extras.disposal, e.gce.extras.transparentColorGiven && (i.transparentIndex = e.gce.transparentColorIndex)), t && (i.patch = ul(i)), i;
3945
3945
  }, dl = (e, n) => e.frames.filter((t) => t.image).map((t) => cl(t, e.gct, n));
3946
3946
  function ml(e, n, t) {
3947
3947
  const o = ao(n), a = e - 1;
@@ -3964,22 +3964,22 @@ function ml(e, n, t) {
3964
3964
  }
3965
3965
  function fl(e, n) {
3966
3966
  for (var t = 1, o = ao(e), a = 0, l = Fe.length; a < l; a++) {
3967
- var r = 0;
3967
+ var i = 0;
3968
3968
  switch (n) {
3969
3969
  case Se.L:
3970
- r = Fe[a][0];
3970
+ i = Fe[a][0];
3971
3971
  break;
3972
3972
  case Se.M:
3973
- r = Fe[a][1];
3973
+ i = Fe[a][1];
3974
3974
  break;
3975
3975
  case Se.Q:
3976
- r = Fe[a][2];
3976
+ i = Fe[a][2];
3977
3977
  break;
3978
3978
  case Se.H:
3979
- r = Fe[a][3];
3979
+ i = Fe[a][3];
3980
3980
  break;
3981
3981
  }
3982
- if (o <= r)
3982
+ if (o <= i)
3983
3983
  break;
3984
3984
  t++;
3985
3985
  }
@@ -3996,8 +3996,8 @@ class hl {
3996
3996
  this.mode = Ae.MODE_8BIT_BYTE, this.parsedData = [], this.data = n;
3997
3997
  const t = [];
3998
3998
  for (let o = 0, a = this.data.length; o < a; o++) {
3999
- const l = [], r = this.data.charCodeAt(o);
4000
- r > 65536 ? (l[0] = 240 | (r & 1835008) >>> 18, l[1] = 128 | (r & 258048) >>> 12, l[2] = 128 | (r & 4032) >>> 6, l[3] = 128 | r & 63) : r > 2048 ? (l[0] = 224 | (r & 61440) >>> 12, l[1] = 128 | (r & 4032) >>> 6, l[2] = 128 | r & 63) : r > 128 ? (l[0] = 192 | (r & 1984) >>> 6, l[1] = 128 | r & 63) : l[0] = r, t.push(l);
3999
+ const l = [], i = this.data.charCodeAt(o);
4000
+ i > 65536 ? (l[0] = 240 | (i & 1835008) >>> 18, l[1] = 128 | (i & 258048) >>> 12, l[2] = 128 | (i & 4032) >>> 6, l[3] = 128 | i & 63) : i > 2048 ? (l[0] = 224 | (i & 61440) >>> 12, l[1] = 128 | (i & 4032) >>> 6, l[2] = 128 | i & 63) : i > 128 ? (l[0] = 192 | (i & 1984) >>> 6, l[1] = 128 | i & 63) : l[0] = i, t.push(l);
4001
4001
  }
4002
4002
  this.parsedData = Array.prototype.concat.apply([], t), this.parsedData.length != this.data.length && (this.parsedData.unshift(191), this.parsedData.unshift(187), this.parsedData.unshift(239));
4003
4003
  }
@@ -4074,9 +4074,9 @@ class qe {
4074
4074
  for (let o = 0; o < n.length; o++) {
4075
4075
  const a = n[t], l = n[o];
4076
4076
  if (this.modules[a][l] == null)
4077
- for (let r = -2; r <= 2; r++)
4077
+ for (let i = -2; i <= 2; i++)
4078
4078
  for (let s = -2; s <= 2; s++)
4079
- r == -2 || r == 2 || s == -2 || s == 2 || r == 0 && s == 0 ? this.modules[a + r][l + s] = !0 : this.modules[a + r][l + s] = !1;
4079
+ i == -2 || i == 2 || s == -2 || s == 2 || i == 0 && s == 0 ? this.modules[a + i][l + s] = !0 : this.modules[a + i][l + s] = !1;
4080
4080
  }
4081
4081
  }
4082
4082
  setupTypeNumber(n) {
@@ -4093,23 +4093,23 @@ class qe {
4093
4093
  setupTypeInfo(n, t) {
4094
4094
  const o = this.errorCorrectLevel << 3 | t, a = ue.getBCHTypeInfo(o);
4095
4095
  for (var l = 0; l < 15; l++) {
4096
- var r = !n && (a >> l & 1) == 1;
4097
- l < 6 ? this.modules[l][8] = r : l < 8 ? this.modules[l + 1][8] = r : this.modules[this.moduleCount - 15 + l][8] = r;
4096
+ var i = !n && (a >> l & 1) == 1;
4097
+ l < 6 ? this.modules[l][8] = i : l < 8 ? this.modules[l + 1][8] = i : this.modules[this.moduleCount - 15 + l][8] = i;
4098
4098
  }
4099
4099
  for (var l = 0; l < 15; l++) {
4100
- var r = !n && (a >> l & 1) == 1;
4101
- l < 8 ? this.modules[8][this.moduleCount - l - 1] = r : l < 9 ? this.modules[8][15 - l - 1 + 1] = r : this.modules[8][15 - l - 1] = r;
4100
+ var i = !n && (a >> l & 1) == 1;
4101
+ l < 8 ? this.modules[8][this.moduleCount - l - 1] = i : l < 9 ? this.modules[8][15 - l - 1 + 1] = i : this.modules[8][15 - l - 1] = i;
4102
4102
  }
4103
4103
  this.modules[this.moduleCount - 8][8] = !n;
4104
4104
  }
4105
4105
  mapData(n, t) {
4106
- let o = -1, a = this.moduleCount - 1, l = 7, r = 0;
4106
+ let o = -1, a = this.moduleCount - 1, l = 7, i = 0;
4107
4107
  for (let s = this.moduleCount - 1; s > 0; s -= 2)
4108
4108
  for (s == 6 && s--; ; ) {
4109
- for (let i = 0; i < 2; i++)
4110
- if (this.modules[a][s - i] == null) {
4109
+ for (let r = 0; r < 2; r++)
4110
+ if (this.modules[a][s - r] == null) {
4111
4111
  let u = !1;
4112
- r < n.length && (u = (n[r] >>> l & 1) == 1), ue.getMask(t, a, s - i) && (u = !u), this.modules[a][s - i] = u, l--, l == -1 && (r++, l = 7);
4112
+ i < n.length && (u = (n[i] >>> l & 1) == 1), ue.getMask(t, a, s - r) && (u = !u), this.modules[a][s - r] = u, l--, l == -1 && (i++, l = 7);
4113
4113
  }
4114
4114
  if (a += o, a < 0 || this.moduleCount <= a) {
4115
4115
  a -= o, o = -o;
@@ -4118,14 +4118,14 @@ class qe {
4118
4118
  }
4119
4119
  }
4120
4120
  static createData(n, t, o) {
4121
- const a = Ge.getRSBlocks(n, t), l = new pl();
4122
- for (var r = 0; r < o.length; r++) {
4123
- const i = o[r];
4124
- l.put(i.mode, 4), l.put(i.getLength(), ue.getLengthInBits(i.mode, n)), i.write(l);
4121
+ const a = $e.getRSBlocks(n, t), l = new pl();
4122
+ for (var i = 0; i < o.length; i++) {
4123
+ const r = o[i];
4124
+ l.put(r.mode, 4), l.put(r.getLength(), ue.getLengthInBits(r.mode, n)), r.write(l);
4125
4125
  }
4126
4126
  let s = 0;
4127
- for (var r = 0; r < a.length; r++)
4128
- s += a[r].dataCount;
4127
+ for (var i = 0; i < a.length; i++)
4128
+ s += a[i].dataCount;
4129
4129
  if (l.getLengthInBits() > s * 8)
4130
4130
  throw new Error(`code length overflow. (${l.getLengthInBits()}>${s * 8})`);
4131
4131
  for (l.getLengthInBits() + 4 <= s * 8 && l.put(0, 4); l.getLengthInBits() % 8 != 0; )
@@ -4136,18 +4136,18 @@ class qe {
4136
4136
  }
4137
4137
  static createBytes(n, t) {
4138
4138
  let o = 0, a = 0, l = 0;
4139
- const r = new Array(t.length), s = new Array(t.length);
4140
- for (var i = 0; i < t.length; i++) {
4141
- const k = t[i].dataCount, L = t[i].totalCount - k;
4142
- a = Math.max(a, k), l = Math.max(l, L), r[i] = new Array(k);
4143
- for (var u = 0; u < r[i].length; u++)
4144
- r[i][u] = 255 & n.buffer[u + o];
4139
+ const i = new Array(t.length), s = new Array(t.length);
4140
+ for (var r = 0; r < t.length; r++) {
4141
+ const k = t[r].dataCount, L = t[r].totalCount - k;
4142
+ a = Math.max(a, k), l = Math.max(l, L), i[r] = new Array(k);
4143
+ for (var u = 0; u < i[r].length; u++)
4144
+ i[r][u] = 255 & n.buffer[u + o];
4145
4145
  o += k;
4146
- const P = ue.getErrorCorrectPolynomial(L), h = new it(r[i], P.getLength() - 1).mod(P);
4147
- s[i] = new Array(P.getLength() - 1);
4148
- for (var u = 0; u < s[i].length; u++) {
4149
- const S = u + h.getLength() - s[i].length;
4150
- s[i][u] = S >= 0 ? h.get(S) : 0;
4146
+ const P = ue.getErrorCorrectPolynomial(L), h = new rt(i[r], P.getLength() - 1).mod(P);
4147
+ s[r] = new Array(P.getLength() - 1);
4148
+ for (var u = 0; u < s[r].length; u++) {
4149
+ const S = u + h.getLength() - s[r].length;
4150
+ s[r][u] = S >= 0 ? h.get(S) : 0;
4151
4151
  }
4152
4152
  }
4153
4153
  let c = 0;
@@ -4156,11 +4156,11 @@ class qe {
4156
4156
  const d = new Array(c);
4157
4157
  let y = 0;
4158
4158
  for (var u = 0; u < a; u++)
4159
- for (var i = 0; i < t.length; i++)
4160
- u < r[i].length && (d[y++] = r[i][u]);
4159
+ for (var r = 0; r < t.length; r++)
4160
+ u < i[r].length && (d[y++] = i[r][u]);
4161
4161
  for (var u = 0; u < l; u++)
4162
- for (var i = 0; i < t.length; i++)
4163
- u < s[i].length && (d[y++] = s[i][u]);
4162
+ for (var r = 0; r < t.length; r++)
4163
+ u < s[r].length && (d[y++] = s[r][u]);
4164
4164
  return d;
4165
4165
  }
4166
4166
  }
@@ -4221,9 +4221,9 @@ class ue {
4221
4221
  }
4222
4222
  }
4223
4223
  static getErrorCorrectPolynomial(n) {
4224
- let t = new it([1], 0);
4224
+ let t = new rt([1], 0);
4225
4225
  for (let o = 0; o < n; o++)
4226
- t = t.multiply(new it([1, ye.gexp(o)], 0));
4226
+ t = t.multiply(new rt([1, ye.gexp(o)], 0));
4227
4227
  return t;
4228
4228
  }
4229
4229
  static getLengthInBits(n, t) {
@@ -4274,13 +4274,13 @@ class ue {
4274
4274
  let o = 0;
4275
4275
  for (var a = 0; a < t; a++)
4276
4276
  for (var l = 0; l < t; l++) {
4277
- let i = 0;
4277
+ let r = 0;
4278
4278
  const u = n.isDark(a, l);
4279
4279
  for (let c = -1; c <= 1; c++)
4280
4280
  if (!(a + c < 0 || t <= a + c))
4281
4281
  for (let d = -1; d <= 1; d++)
4282
- l + d < 0 || t <= l + d || c == 0 && d == 0 || u == n.isDark(a + c, l + d) && i++;
4283
- i > 5 && (o += 3 + i - 5);
4282
+ l + d < 0 || t <= l + d || c == 0 && d == 0 || u == n.isDark(a + c, l + d) && r++;
4283
+ r > 5 && (o += 3 + r - 5);
4284
4284
  }
4285
4285
  for (var a = 0; a < t - 1; a++)
4286
4286
  for (var l = 0; l < t - 1; l++) {
@@ -4293,11 +4293,11 @@ class ue {
4293
4293
  for (var l = 0; l < t; l++)
4294
4294
  for (var a = 0; a < t - 6; a++)
4295
4295
  n.isDark(a, l) && !n.isDark(a + 1, l) && n.isDark(a + 2, l) && n.isDark(a + 3, l) && n.isDark(a + 4, l) && !n.isDark(a + 5, l) && n.isDark(a + 6, l) && (o += 40);
4296
- let r = 0;
4296
+ let i = 0;
4297
4297
  for (var l = 0; l < t; l++)
4298
4298
  for (var a = 0; a < t; a++)
4299
- n.isDark(a, l) && r++;
4300
- const s = Math.abs(100 * r / t / t - 50) / 5;
4299
+ n.isDark(a, l) && i++;
4300
+ const s = Math.abs(100 * i / t / t - 50) / 5;
4301
4301
  return o += s * 10, o;
4302
4302
  }
4303
4303
  }
@@ -4370,7 +4370,7 @@ ye._constructor = function() {
4370
4370
  for (var e = 0; e < 255; e++)
4371
4371
  ye.LOG_TABLE[ye.EXP_TABLE[e]] = e;
4372
4372
  }();
4373
- class it {
4373
+ class rt {
4374
4374
  constructor(n, t) {
4375
4375
  if (n.length == null)
4376
4376
  throw new Error(`${n.length}/${t}`);
@@ -4392,7 +4392,7 @@ class it {
4392
4392
  for (let o = 0; o < this.getLength(); o++)
4393
4393
  for (let a = 0; a < n.getLength(); a++)
4394
4394
  t[o + a] ^= ye.gexp(ye.glog(this.get(o)) + ye.glog(n.get(a)));
4395
- return new it(t, 0);
4395
+ return new rt(t, 0);
4396
4396
  }
4397
4397
  mod(n) {
4398
4398
  if (this.getLength() - n.getLength() < 0)
@@ -4402,41 +4402,41 @@ class it {
4402
4402
  o[a] = this.get(a);
4403
4403
  for (var a = 0; a < n.getLength(); a++)
4404
4404
  o[a] ^= ye.gexp(ye.glog(n.get(a)) + t);
4405
- return new it(o, 0).mod(n);
4405
+ return new rt(o, 0).mod(n);
4406
4406
  }
4407
4407
  }
4408
- class Ge {
4408
+ class $e {
4409
4409
  constructor(n, t) {
4410
4410
  this.totalCount = n, this.dataCount = t;
4411
4411
  }
4412
4412
  static getRSBlocks(n, t) {
4413
- const o = Ge.getRsBlockTable(n, t);
4413
+ const o = $e.getRsBlockTable(n, t);
4414
4414
  if (o == null)
4415
4415
  throw new Error(`bad rs block @ typeNumber:${n}/errorCorrectLevel:${t}`);
4416
4416
  const a = o.length / 3, l = [];
4417
- for (let r = 0; r < a; r++) {
4418
- const s = o[r * 3 + 0], i = o[r * 3 + 1], u = o[r * 3 + 2];
4417
+ for (let i = 0; i < a; i++) {
4418
+ const s = o[i * 3 + 0], r = o[i * 3 + 1], u = o[i * 3 + 2];
4419
4419
  for (let c = 0; c < s; c++)
4420
- l.push(new Ge(i, u));
4420
+ l.push(new $e(r, u));
4421
4421
  }
4422
4422
  return l;
4423
4423
  }
4424
4424
  static getRsBlockTable(n, t) {
4425
4425
  switch (t) {
4426
4426
  case Se.L:
4427
- return Ge.RS_BLOCK_TABLE[(n - 1) * 4 + 0];
4427
+ return $e.RS_BLOCK_TABLE[(n - 1) * 4 + 0];
4428
4428
  case Se.M:
4429
- return Ge.RS_BLOCK_TABLE[(n - 1) * 4 + 1];
4429
+ return $e.RS_BLOCK_TABLE[(n - 1) * 4 + 1];
4430
4430
  case Se.Q:
4431
- return Ge.RS_BLOCK_TABLE[(n - 1) * 4 + 2];
4431
+ return $e.RS_BLOCK_TABLE[(n - 1) * 4 + 2];
4432
4432
  case Se.H:
4433
- return Ge.RS_BLOCK_TABLE[(n - 1) * 4 + 3];
4433
+ return $e.RS_BLOCK_TABLE[(n - 1) * 4 + 3];
4434
4434
  default:
4435
4435
  return;
4436
4436
  }
4437
4437
  }
4438
4438
  }
4439
- Ge.RS_BLOCK_TABLE = [
4439
+ $e.RS_BLOCK_TABLE = [
4440
4440
  [1, 26, 19],
4441
4441
  [1, 26, 16],
4442
4442
  [1, 26, 13],
@@ -4660,16 +4660,16 @@ const Fe = [
4660
4660
  [2809, 2213, 1579, 1219],
4661
4661
  [2953, 2331, 1663, 1273]
4662
4662
  ];
4663
- var gl = 100, Te = 256, gn = Te - 1, Qe = 4, lo = 16, en = 1 << lo, ro = 10, tn = 10, vl = en >> tn, yl = en << ro - tn, bl = Te >> 3, Wt = 6, wl = 1 << Wt, Ml = bl * wl, Tl = 30, io = 10, yt = 1 << io, so = 8, vn = 1 << so, Cl = io + so, at = 1 << Cl, yn = 499, bn = 491, wn = 487, uo = 503, kl = 3 * uo;
4663
+ var gl = 100, Te = 256, gn = Te - 1, Qe = 4, lo = 16, en = 1 << lo, io = 10, tn = 10, vl = en >> tn, yl = en << io - tn, bl = Te >> 3, Wt = 6, wl = 1 << Wt, Ml = bl * wl, Tl = 30, ro = 10, yt = 1 << ro, so = 8, vn = 1 << so, Cl = ro + so, at = 1 << Cl, yn = 499, bn = 491, wn = 487, uo = 503, kl = 3 * uo;
4664
4664
  function Il(e, n) {
4665
- var t, o, a, l, r;
4665
+ var t, o, a, l, i;
4666
4666
  function s() {
4667
- t = [], o = new Int32Array(256), a = new Int32Array(Te), l = new Int32Array(Te), r = new Int32Array(Te >> 3);
4667
+ t = [], o = new Int32Array(256), a = new Int32Array(Te), l = new Int32Array(Te), i = new Int32Array(Te >> 3);
4668
4668
  var h, M;
4669
4669
  for (h = 0; h < Te; h++)
4670
4670
  M = (h << Qe + 8) / Te, t[h] = new Float64Array([M, M, M, 0]), l[h] = en / Te, a[h] = 0;
4671
4671
  }
4672
- function i() {
4672
+ function r() {
4673
4673
  for (var h = 0; h < Te; h++)
4674
4674
  t[h][0] >>= Qe, t[h][1] >>= Qe, t[h][2] >>= Qe, t[h][3] = h;
4675
4675
  }
@@ -4678,12 +4678,12 @@ function Il(e, n) {
4678
4678
  }
4679
4679
  function c(h, M, S, g, b) {
4680
4680
  for (var v = Math.abs(M - h), f = Math.min(M + h, Te), w = M + 1, E = M - 1, R = 1, I, H; w < f || E > v; )
4681
- H = r[R++], w < f && (I = t[w++], I[0] -= H * (I[0] - S) / at, I[1] -= H * (I[1] - g) / at, I[2] -= H * (I[2] - b) / at), E > v && (I = t[E--], I[0] -= H * (I[0] - S) / at, I[1] -= H * (I[1] - g) / at, I[2] -= H * (I[2] - b) / at);
4681
+ H = i[R++], w < f && (I = t[w++], I[0] -= H * (I[0] - S) / at, I[1] -= H * (I[1] - g) / at, I[2] -= H * (I[2] - b) / at), E > v && (I = t[E--], I[0] -= H * (I[0] - S) / at, I[1] -= H * (I[1] - g) / at, I[2] -= H * (I[2] - b) / at);
4682
4682
  }
4683
4683
  function d(h, M, S) {
4684
4684
  var g = 2147483647, b = g, v = -1, f = v, w, E, R, I, H;
4685
4685
  for (w = 0; w < Te; w++)
4686
- E = t[w], R = Math.abs(E[0] - h) + Math.abs(E[1] - M) + Math.abs(E[2] - S), R < g && (g = R, v = w), I = R - (a[w] >> lo - Qe), I < b && (b = I, f = w), H = l[w] >> tn, l[w] -= H, a[w] += H << ro;
4686
+ E = t[w], R = Math.abs(E[0] - h) + Math.abs(E[1] - M) + Math.abs(E[2] - S), R < g && (g = R, v = w), I = R - (a[w] >> lo - Qe), I < b && (b = I, f = w), H = l[w] >> tn, l[w] -= H, a[w] += H << io;
4687
4687
  return l[v] += vl, a[v] -= yl, f;
4688
4688
  }
4689
4689
  function y() {
@@ -4708,17 +4708,17 @@ function Il(e, n) {
4708
4708
  function L() {
4709
4709
  var h, M = e.length, S = 30 + (n - 1) / 3, g = M / (3 * n), b = ~~(g / gl), v = yt, f = Ml, w = f >> Wt;
4710
4710
  for (w <= 1 && (w = 0), h = 0; h < w; h++)
4711
- r[h] = v * ((w * w - h * h) * vn / (w * w));
4711
+ i[h] = v * ((w * w - h * h) * vn / (w * w));
4712
4712
  var E;
4713
4713
  M < kl ? (n = 1, E = 3) : M % yn !== 0 ? E = 3 * yn : M % bn !== 0 ? E = 3 * bn : M % wn !== 0 ? E = 3 * wn : E = 3 * uo;
4714
- var R, I, H, U, le = 0;
4714
+ var R, I, H, j, le = 0;
4715
4715
  for (h = 0; h < g; )
4716
- if (R = (e[le] & 255) << Qe, I = (e[le + 1] & 255) << Qe, H = (e[le + 2] & 255) << Qe, U = d(R, I, H), u(v, U, R, I, H), w !== 0 && c(w, U, R, I, H), le += E, le >= M && (le -= M), h++, b === 0 && (b = 1), h % b === 0)
4717
- for (v -= v / S, f -= f / Tl, w = f >> Wt, w <= 1 && (w = 0), U = 0; U < w; U++)
4718
- r[U] = v * ((w * w - U * U) * vn / (w * w));
4716
+ if (R = (e[le] & 255) << Qe, I = (e[le + 1] & 255) << Qe, H = (e[le + 2] & 255) << Qe, j = d(R, I, H), u(v, j, R, I, H), w !== 0 && c(w, j, R, I, H), le += E, le >= M && (le -= M), h++, b === 0 && (b = 1), h % b === 0)
4717
+ for (v -= v / S, f -= f / Tl, w = f >> Wt, w <= 1 && (w = 0), j = 0; j < w; j++)
4718
+ i[j] = v * ((w * w - j * j) * vn / (w * w));
4719
4719
  }
4720
4720
  function P() {
4721
- s(), L(), i(), y();
4721
+ s(), L(), r(), y();
4722
4722
  }
4723
4723
  this.buildColormap = P;
4724
4724
  function C() {
@@ -4752,62 +4752,62 @@ var Mn = -1, bt = 12, mt = 5003, Ll = [
4752
4752
  65535
4753
4753
  ];
4754
4754
  function Nl(e, n, t, o) {
4755
- var a = Math.max(2, o), l = new Uint8Array(256), r = new Int32Array(mt), s = new Int32Array(mt), i, u = 0, c, d = 0, y, k = !1, L, P, C, h, M, S;
4756
- function g(U, le) {
4757
- l[c++] = U, c >= 254 && E(le);
4755
+ var a = Math.max(2, o), l = new Uint8Array(256), i = new Int32Array(mt), s = new Int32Array(mt), r, u = 0, c, d = 0, y, k = !1, L, P, C, h, M, S;
4756
+ function g(j, le) {
4757
+ l[c++] = j, c >= 254 && E(le);
4758
4758
  }
4759
- function b(U) {
4760
- v(mt), d = P + 2, k = !0, H(P, U);
4759
+ function b(j) {
4760
+ v(mt), d = P + 2, k = !0, H(P, j);
4761
4761
  }
4762
- function v(U) {
4763
- for (var le = 0; le < U; ++le)
4764
- r[le] = -1;
4762
+ function v(j) {
4763
+ for (var le = 0; le < j; ++le)
4764
+ i[le] = -1;
4765
4765
  }
4766
- function f(U, le) {
4767
- var B, De, ie, Le, Ne, fe, ke;
4768
- for (L = U, k = !1, S = L, y = R(S), P = 1 << U - 1, C = P + 1, d = P + 2, c = 0, Le = I(), ke = 0, B = mt; B < 65536; B *= 2)
4766
+ function f(j, le) {
4767
+ var O, De, re, Le, Ne, fe, ke;
4768
+ for (L = j, k = !1, S = L, y = R(S), P = 1 << j - 1, C = P + 1, d = P + 2, c = 0, Le = I(), ke = 0, O = mt; O < 65536; O *= 2)
4769
4769
  ++ke;
4770
4770
  ke = 8 - ke, fe = mt, v(fe), H(P, le);
4771
4771
  e:
4772
4772
  for (; (De = I()) != Mn; ) {
4773
- if (B = (De << bt) + Le, ie = De << ke ^ Le, r[ie] === B) {
4774
- Le = s[ie];
4773
+ if (O = (De << bt) + Le, re = De << ke ^ Le, i[re] === O) {
4774
+ Le = s[re];
4775
4775
  continue;
4776
- } else if (r[ie] >= 0) {
4777
- Ne = fe - ie, ie === 0 && (Ne = 1);
4776
+ } else if (i[re] >= 0) {
4777
+ Ne = fe - re, re === 0 && (Ne = 1);
4778
4778
  do
4779
- if ((ie -= Ne) < 0 && (ie += fe), r[ie] === B) {
4780
- Le = s[ie];
4779
+ if ((re -= Ne) < 0 && (re += fe), i[re] === O) {
4780
+ Le = s[re];
4781
4781
  continue e;
4782
4782
  }
4783
- while (r[ie] >= 0);
4783
+ while (i[re] >= 0);
4784
4784
  }
4785
- H(Le, le), Le = De, d < 1 << bt ? (s[ie] = d++, r[ie] = B) : b(le);
4785
+ H(Le, le), Le = De, d < 1 << bt ? (s[re] = d++, i[re] = O) : b(le);
4786
4786
  }
4787
4787
  H(Le, le), H(C, le);
4788
4788
  }
4789
- function w(U) {
4790
- U.writeByte(a), h = e * n, M = 0, f(a + 1, U), U.writeByte(0);
4789
+ function w(j) {
4790
+ j.writeByte(a), h = e * n, M = 0, f(a + 1, j), j.writeByte(0);
4791
4791
  }
4792
- function E(U) {
4793
- c > 0 && (U.writeByte(c), U.writeBytes(l, 0, c), c = 0);
4792
+ function E(j) {
4793
+ c > 0 && (j.writeByte(c), j.writeBytes(l, 0, c), c = 0);
4794
4794
  }
4795
- function R(U) {
4796
- return (1 << U) - 1;
4795
+ function R(j) {
4796
+ return (1 << j) - 1;
4797
4797
  }
4798
4798
  function I() {
4799
4799
  if (h === 0)
4800
4800
  return Mn;
4801
4801
  --h;
4802
- var U = t[M++];
4803
- return U & 255;
4802
+ var j = t[M++];
4803
+ return j & 255;
4804
4804
  }
4805
- function H(U, le) {
4806
- for (i &= Ll[u], u > 0 ? i |= U << u : i = U, u += S; u >= 8; )
4807
- g(i & 255, le), i >>= 8, u -= 8;
4808
- if ((d > y || k) && (k ? (y = R(S = L), k = !1) : (++S, S == bt ? y = 1 << bt : y = R(S))), U == C) {
4805
+ function H(j, le) {
4806
+ for (r &= Ll[u], u > 0 ? r |= j << u : r = j, u += S; u >= 8; )
4807
+ g(r & 255, le), r >>= 8, u -= 8;
4808
+ if ((d > y || k) && (k ? (y = R(S = L), k = !1) : (++S, S == bt ? y = 1 << bt : y = R(S))), j == C) {
4809
4809
  for (; u > 0; )
4810
- g(i & 255, le), i >>= 8, u -= 8;
4810
+ g(r & 255, le), r >>= 8, u -= 8;
4811
4811
  E(le);
4812
4812
  }
4813
4813
  }
@@ -4939,19 +4939,19 @@ de.prototype.ditherPixels = function(e, n) {
4939
4939
  };
4940
4940
  if (!e || !t[e])
4941
4941
  throw "Unknown dithering kernel: " + e;
4942
- var o = t[e], a = 0, l = this.height, r = this.width, s = this.pixels, i = n ? -1 : 1;
4942
+ var o = t[e], a = 0, l = this.height, i = this.width, s = this.pixels, r = n ? -1 : 1;
4943
4943
  this.indexedPixels = new Uint8Array(this.pixels.length / 3);
4944
4944
  for (var u = 0; u < l; u++) {
4945
- n && (i = i * -1);
4946
- for (var c = i == 1 ? 0 : r - 1, d = i == 1 ? r : 0; c !== d; c += i) {
4947
- a = u * r + c;
4945
+ n && (r = r * -1);
4946
+ for (var c = r == 1 ? 0 : i - 1, d = r == 1 ? i : 0; c !== d; c += r) {
4947
+ a = u * i + c;
4948
4948
  var y = a * 3, k = s[y], L = s[y + 1], P = s[y + 2];
4949
4949
  y = this.findClosestRGB(k, L, P), this.usedEntry[y] = !0, this.indexedPixels[a] = y, y *= 3;
4950
- for (var C = this.colorTab[y], h = this.colorTab[y + 1], M = this.colorTab[y + 2], S = k - C, g = L - h, b = P - M, v = i == 1 ? 0 : o.length - 1, f = i == 1 ? o.length : 0; v !== f; v += i) {
4950
+ for (var C = this.colorTab[y], h = this.colorTab[y + 1], M = this.colorTab[y + 2], S = k - C, g = L - h, b = P - M, v = r == 1 ? 0 : o.length - 1, f = r == 1 ? o.length : 0; v !== f; v += r) {
4951
4951
  var w = o[v][1], E = o[v][2];
4952
- if (w + c >= 0 && w + c < r && E + u >= 0 && E + u < l) {
4952
+ if (w + c >= 0 && w + c < i && E + u >= 0 && E + u < l) {
4953
4953
  var R = o[v][0];
4954
- y = a + w + E * r, y *= 3, s[y] = Math.max(0, Math.min(255, s[y] + S * R)), s[y + 1] = Math.max(0, Math.min(255, s[y + 1] + g * R)), s[y + 2] = Math.max(0, Math.min(255, s[y + 2] + b * R));
4954
+ y = a + w + E * i, y *= 3, s[y] = Math.max(0, Math.min(255, s[y] + S * R)), s[y + 1] = Math.max(0, Math.min(255, s[y + 1] + g * R)), s[y + 2] = Math.max(0, Math.min(255, s[y + 2] + b * R));
4955
4955
  }
4956
4956
  }
4957
4957
  }
@@ -4965,9 +4965,9 @@ de.prototype.findClosestRGB = function(e, n, t, o) {
4965
4965
  return -1;
4966
4966
  if (this.neuQuant && !o)
4967
4967
  return this.neuQuant.lookupRGB(e, n, t);
4968
- for (var a = 0, l = 256 * 256 * 256, r = this.colorTab.length, s = 0, i = 0; s < r; i++) {
4968
+ for (var a = 0, l = 256 * 256 * 256, i = this.colorTab.length, s = 0, r = 0; s < i; r++) {
4969
4969
  var u = e - (this.colorTab[s++] & 255), c = n - (this.colorTab[s++] & 255), d = t - (this.colorTab[s++] & 255), y = u * u + c * c + d * d;
4970
- (!o || this.usedEntry[i]) && y < l && (l = y, a = i);
4970
+ (!o || this.usedEntry[r]) && y < l && (l = y, a = r);
4971
4971
  }
4972
4972
  return a;
4973
4973
  };
@@ -4975,7 +4975,7 @@ de.prototype.getImagePixels = function() {
4975
4975
  var e = this.width, n = this.height;
4976
4976
  this.pixels = new Uint8Array(e * n * 3);
4977
4977
  for (var t = this.image, o = 0, a = 0, l = 0; l < n; l++)
4978
- for (var r = 0; r < e; r++)
4978
+ for (var i = 0; i < e; i++)
4979
4979
  this.pixels[a++] = t[o++], this.pixels[a++] = t[o++], this.pixels[a++] = t[o++], o++;
4980
4980
  };
4981
4981
  de.prototype.writeGraphicCtrlExt = function() {
@@ -5023,27 +5023,27 @@ de.prototype.stream = function() {
5023
5023
  };
5024
5024
  var _l = globalThis && globalThis.__awaiter || function(e, n, t, o) {
5025
5025
  function a(l) {
5026
- return l instanceof t ? l : new t(function(r) {
5027
- r(l);
5026
+ return l instanceof t ? l : new t(function(i) {
5027
+ i(l);
5028
5028
  });
5029
5029
  }
5030
- return new (t || (t = Promise))(function(l, r) {
5030
+ return new (t || (t = Promise))(function(l, i) {
5031
5031
  function s(c) {
5032
5032
  try {
5033
5033
  u(o.next(c));
5034
5034
  } catch (d) {
5035
- r(d);
5035
+ i(d);
5036
5036
  }
5037
5037
  }
5038
- function i(c) {
5038
+ function r(c) {
5039
5039
  try {
5040
5040
  u(o.throw(c));
5041
5041
  } catch (d) {
5042
- r(d);
5042
+ i(d);
5043
5043
  }
5044
5044
  }
5045
5045
  function u(c) {
5046
- c.done ? l(c.value) : a(c.value).then(s, i);
5046
+ c.done ? l(c.value) : a(c.value).then(s, r);
5047
5047
  }
5048
5048
  u((o = o.apply(e, n || [])).next());
5049
5049
  });
@@ -5101,8 +5101,8 @@ class se {
5101
5101
  _clear() {
5102
5102
  this.canvasContext.clearRect(0, 0, this.canvas.width, this.canvas.height);
5103
5103
  }
5104
- static _prepareRoundedCornerClip(n, t, o, a, l, r) {
5105
- n.beginPath(), n.moveTo(t, o), n.arcTo(t + a, o, t + a, o + l, r), n.arcTo(t + a, o + l, t, o + l, r), n.arcTo(t, o + l, t, o, r), n.arcTo(t, o, t + a, o, r), n.closePath();
5104
+ static _prepareRoundedCornerClip(n, t, o, a, l, i) {
5105
+ n.beginPath(), n.moveTo(t, o), n.arcTo(t + a, o, t + a, o + l, i), n.arcTo(t + a, o + l, t, o + l, i), n.arcTo(t, o + l, t, o, i), n.arcTo(t, o, t + a, o, i), n.closePath();
5106
5106
  }
5107
5107
  static _getAverageRGB(n) {
5108
5108
  const o = {
@@ -5110,13 +5110,13 @@ class se {
5110
5110
  g: 0,
5111
5111
  b: 0
5112
5112
  };
5113
- let a, l, r = -4;
5113
+ let a, l, i = -4;
5114
5114
  const s = {
5115
5115
  r: 0,
5116
5116
  g: 0,
5117
5117
  b: 0
5118
5118
  };
5119
- let i = 0;
5119
+ let r = 0;
5120
5120
  l = n.naturalHeight || n.height, a = n.naturalWidth || n.width;
5121
5121
  const c = new Re(a, l).getContext("2d");
5122
5122
  if (!c)
@@ -5128,43 +5128,43 @@ class se {
5128
5128
  } catch {
5129
5129
  return o;
5130
5130
  }
5131
- for (; (r += 5 * 4) < d.data.length; )
5132
- d.data[r] > 200 || d.data[r + 1] > 200 || d.data[r + 2] > 200 || (++i, s.r += d.data[r], s.g += d.data[r + 1], s.b += d.data[r + 2]);
5133
- return s.r = ~~(s.r / i), s.g = ~~(s.g / i), s.b = ~~(s.b / i), s;
5131
+ for (; (i += 5 * 4) < d.data.length; )
5132
+ d.data[i] > 200 || d.data[i + 1] > 200 || d.data[i + 2] > 200 || (++r, s.r += d.data[i], s.g += d.data[i + 1], s.b += d.data[i + 2]);
5133
+ return s.r = ~~(s.r / r), s.g = ~~(s.g / r), s.b = ~~(s.b / r), s;
5134
5134
  }
5135
- static _drawDot(n, t, o, a, l = 0, r = 1) {
5136
- n.fillRect((t + l) * a, (o + l) * a, r * a, r * a);
5135
+ static _drawDot(n, t, o, a, l = 0, i = 1) {
5136
+ n.fillRect((t + l) * a, (o + l) * a, i * a, i * a);
5137
5137
  }
5138
5138
  static _drawAlignProtector(n, t, o, a) {
5139
5139
  n.clearRect((t - 2) * a, (o - 2) * a, 5 * a, 5 * a), n.fillRect((t - 2) * a, (o - 2) * a, 5 * a, 5 * a);
5140
5140
  }
5141
- static _drawAlign(n, t, o, a, l = 0, r = 1, s, i) {
5141
+ static _drawAlign(n, t, o, a, l = 0, i = 1, s, r) {
5142
5142
  const u = n.fillStyle;
5143
5143
  n.fillStyle = s, new Array(4).fill(0).map((c, d) => {
5144
- se._drawDot(n, t - 2 + d, o - 2, a, l, r), se._drawDot(n, t + 2, o - 2 + d, a, l, r), se._drawDot(n, t + 2 - d, o + 2, a, l, r), se._drawDot(n, t - 2, o + 2 - d, a, l, r);
5145
- }), se._drawDot(n, t, o, a, l, r), i || (n.fillStyle = "rgba(255, 255, 255, 0.6)", new Array(2).fill(0).map((c, d) => {
5146
- se._drawDot(n, t - 1 + d, o - 1, a, l, r), se._drawDot(n, t + 1, o - 1 + d, a, l, r), se._drawDot(n, t + 1 - d, o + 1, a, l, r), se._drawDot(n, t - 1, o + 1 - d, a, l, r);
5144
+ se._drawDot(n, t - 2 + d, o - 2, a, l, i), se._drawDot(n, t + 2, o - 2 + d, a, l, i), se._drawDot(n, t + 2 - d, o + 2, a, l, i), se._drawDot(n, t - 2, o + 2 - d, a, l, i);
5145
+ }), se._drawDot(n, t, o, a, l, i), r || (n.fillStyle = "rgba(255, 255, 255, 0.6)", new Array(2).fill(0).map((c, d) => {
5146
+ se._drawDot(n, t - 1 + d, o - 1, a, l, i), se._drawDot(n, t + 1, o - 1 + d, a, l, i), se._drawDot(n, t + 1 - d, o + 1, a, l, i), se._drawDot(n, t - 1, o + 1 - d, a, l, i);
5147
5147
  })), n.fillStyle = u;
5148
5148
  }
5149
5149
  _draw() {
5150
- var n, t, o, a, l, r, s, i, u, c, d, y, k, L, P, C, h, M, S;
5150
+ var n, t, o, a, l, i, s, r, u, c, d, y, k, L, P, C, h, M, S;
5151
5151
  return _l(this, void 0, void 0, function* () {
5152
5152
  const g = (n = this.qrCode) === null || n === void 0 ? void 0 : n.moduleCount, b = this.options.size;
5153
5153
  let v = this.options.margin;
5154
5154
  (v < 0 || v * 2 >= b) && (v = 0);
5155
- const f = Math.ceil(v), w = b - 2 * v, E = this.options.whiteMargin, R = this.options.backgroundDimming, I = Math.ceil(w / g), H = I * g, U = H + 2 * f, le = new Re(U, U), B = le.getContext("2d");
5156
- this._clear(), B.save(), B.translate(f, f);
5157
- const De = new Re(U, U), ie = De.getContext("2d");
5155
+ const f = Math.ceil(v), w = b - 2 * v, E = this.options.whiteMargin, R = this.options.backgroundDimming, I = Math.ceil(w / g), H = I * g, j = H + 2 * f, le = new Re(j, j), O = le.getContext("2d");
5156
+ this._clear(), O.save(), O.translate(f, f);
5157
+ const De = new Re(j, j), re = De.getContext("2d");
5158
5158
  let Le = null, Ne = [];
5159
5159
  if (this.options.gifBackground) {
5160
5160
  const N = sl(this.options.gifBackground);
5161
5161
  if (Le = N, Ne = dl(N, !0), this.options.autoColor) {
5162
- let V = 0, $ = 0, K = 0, W = 0;
5162
+ let V = 0, G = 0, K = 0, W = 0;
5163
5163
  for (let ne = 0; ne < Ne[0].colorTable.length; ne++) {
5164
5164
  const q = Ne[0].colorTable[ne];
5165
- q[0] > 200 || q[1] > 200 || q[2] > 200 || q[0] === 0 && q[1] === 0 && q[2] === 0 || (W++, V += q[0], $ += q[1], K += q[2]);
5165
+ q[0] > 200 || q[1] > 200 || q[2] > 200 || q[0] === 0 && q[1] === 0 && q[2] === 0 || (W++, V += q[0], G += q[1], K += q[2]);
5166
5166
  }
5167
- V = ~~(V / W), $ = ~~($ / W), K = ~~(K / W), this.options.colorDark = `rgb(${V},${$},${K})`;
5167
+ V = ~~(V / W), G = ~~(G / W), K = ~~(K / W), this.options.colorDark = `rgb(${V},${G},${K})`;
5168
5168
  }
5169
5169
  } else if (this.options.backgroundImage) {
5170
5170
  const N = yield Tn(this.options.backgroundImage);
@@ -5172,87 +5172,87 @@ class se {
5172
5172
  const V = se._getAverageRGB(N);
5173
5173
  this.options.colorDark = `rgb(${V.r},${V.g},${V.b})`;
5174
5174
  }
5175
- ie.drawImage(N, 0, 0, N.width, N.height, 0, 0, U, U), ie.rect(0, 0, U, U), ie.fillStyle = R, ie.fill();
5175
+ re.drawImage(N, 0, 0, N.width, N.height, 0, 0, j, j), re.rect(0, 0, j, j), re.fillStyle = R, re.fill();
5176
5176
  } else
5177
- ie.rect(0, 0, U, U), ie.fillStyle = this.options.colorLight, ie.fill();
5177
+ re.rect(0, 0, j, j), re.fillStyle = this.options.colorLight, re.fill();
5178
5178
  const fe = ue.getPatternPosition(this.qrCode.typeNumber), ke = ((o = (t = this.options.components) === null || t === void 0 ? void 0 : t.data) === null || o === void 0 ? void 0 : o.scale) || Mt, A = (1 - ke) * 0.5;
5179
5179
  for (let N = 0; N < g; N++)
5180
5180
  for (let V = 0; V < g; V++) {
5181
- const $ = this.qrCode.isDark(N, V), K = V < 8 && (N < 8 || N >= g - 8) || V >= g - 8 && N < 8, W = N == 6 && V >= 8 && V <= g - 8 || V == 6 && N >= 8 && N <= g - 8;
5181
+ const G = this.qrCode.isDark(N, V), K = V < 8 && (N < 8 || N >= g - 8) || V >= g - 8 && N < 8, W = N == 6 && V >= 8 && V <= g - 8 || V == 6 && N >= 8 && N <= g - 8;
5182
5182
  let ne = K || W;
5183
- for (let O = 1; O < fe.length - 1; O++)
5184
- ne = ne || N >= fe[O] - 2 && N <= fe[O] + 2 && V >= fe[O] - 2 && V <= fe[O] + 2;
5183
+ for (let B = 1; B < fe.length - 1; B++)
5184
+ ne = ne || N >= fe[B] - 2 && N <= fe[B] + 2 && V >= fe[B] - 2 && V <= fe[B] + 2;
5185
5185
  const q = V * I + (ne ? 0 : A * I), ce = N * I + (ne ? 0 : A * I);
5186
- if (B.strokeStyle = $ ? this.options.colorDark : this.options.colorLight, B.lineWidth = 0.5, B.fillStyle = $ ? this.options.colorDark : this.options.colorLight, fe.length === 0)
5187
- ne || B.fillRect(q, ce, (ne ? 1 : ke) * I, (ne ? 1 : ke) * I);
5186
+ if (O.strokeStyle = G ? this.options.colorDark : this.options.colorLight, O.lineWidth = 0.5, O.fillStyle = G ? this.options.colorDark : this.options.colorLight, fe.length === 0)
5187
+ ne || O.fillRect(q, ce, (ne ? 1 : ke) * I, (ne ? 1 : ke) * I);
5188
5188
  else {
5189
- const O = V < g - 4 && V >= g - 4 - 5 && N < g - 4 && N >= g - 4 - 5;
5190
- !ne && !O && B.fillRect(q, ce, (ne ? 1 : ke) * I, (ne ? 1 : ke) * I);
5189
+ const B = V < g - 4 && V >= g - 4 - 5 && N < g - 4 && N >= g - 4 - 5;
5190
+ !ne && !B && O.fillRect(q, ce, (ne ? 1 : ke) * I, (ne ? 1 : ke) * I);
5191
5191
  }
5192
5192
  }
5193
- const z = fe[fe.length - 1], re = this.options.colorLight;
5194
- if (B.fillStyle = re, B.fillRect(0, 0, 8 * I, 8 * I), B.fillRect(0, (g - 8) * I, 8 * I, 8 * I), B.fillRect((g - 8) * I, 0, 8 * I, 8 * I), !((l = (a = this.options.components) === null || a === void 0 ? void 0 : a.timing) === null || l === void 0) && l.protectors && (B.fillRect(8 * I, 6 * I, (g - 8 - 8) * I, I), B.fillRect(6 * I, 8 * I, I, (g - 8 - 8) * I)), !((s = (r = this.options.components) === null || r === void 0 ? void 0 : r.cornerAlignment) === null || s === void 0) && s.protectors && se._drawAlignProtector(B, z, z, I), !((u = (i = this.options.components) === null || i === void 0 ? void 0 : i.alignment) === null || u === void 0) && u.protectors)
5193
+ const z = fe[fe.length - 1], ie = this.options.colorLight;
5194
+ if (O.fillStyle = ie, O.fillRect(0, 0, 8 * I, 8 * I), O.fillRect(0, (g - 8) * I, 8 * I, 8 * I), O.fillRect((g - 8) * I, 0, 8 * I, 8 * I), !((l = (a = this.options.components) === null || a === void 0 ? void 0 : a.timing) === null || l === void 0) && l.protectors && (O.fillRect(8 * I, 6 * I, (g - 8 - 8) * I, I), O.fillRect(6 * I, 8 * I, I, (g - 8 - 8) * I)), !((s = (i = this.options.components) === null || i === void 0 ? void 0 : i.cornerAlignment) === null || s === void 0) && s.protectors && se._drawAlignProtector(O, z, z, I), !((u = (r = this.options.components) === null || r === void 0 ? void 0 : r.alignment) === null || u === void 0) && u.protectors)
5195
5195
  for (let N = 0; N < fe.length; N++)
5196
5196
  for (let V = 0; V < fe.length; V++) {
5197
- const $ = fe[V], K = fe[N];
5198
- if (!($ === 6 && (K === 6 || K === z))) {
5199
- if (K === 6 && ($ === 6 || $ === z))
5197
+ const G = fe[V], K = fe[N];
5198
+ if (!(G === 6 && (K === 6 || K === z))) {
5199
+ if (K === 6 && (G === 6 || G === z))
5200
5200
  continue;
5201
- if ($ === z && K === z)
5201
+ if (G === z && K === z)
5202
5202
  continue;
5203
- se._drawAlignProtector(B, $, K, I);
5203
+ se._drawAlignProtector(O, G, K, I);
5204
5204
  }
5205
5205
  }
5206
- B.fillStyle = this.options.colorDark, B.fillRect(0, 0, 7 * I, I), B.fillRect((g - 7) * I, 0, 7 * I, I), B.fillRect(0, 6 * I, 7 * I, I), B.fillRect((g - 7) * I, 6 * I, 7 * I, I), B.fillRect(0, (g - 7) * I, 7 * I, I), B.fillRect(0, (g - 7 + 6) * I, 7 * I, I), B.fillRect(0, 0, I, 7 * I), B.fillRect(6 * I, 0, I, 7 * I), B.fillRect((g - 7) * I, 0, I, 7 * I), B.fillRect((g - 7 + 6) * I, 0, I, 7 * I), B.fillRect(0, (g - 7) * I, I, 7 * I), B.fillRect(6 * I, (g - 7) * I, I, 7 * I), B.fillRect(2 * I, 2 * I, 3 * I, 3 * I), B.fillRect((g - 7 + 2) * I, 2 * I, 3 * I, 3 * I), B.fillRect(2 * I, (g - 7 + 2) * I, 3 * I, 3 * I);
5207
- const we = ((d = (c = this.options.components) === null || c === void 0 ? void 0 : c.timing) === null || d === void 0 ? void 0 : d.scale) || Mt, je = (1 - we) * 0.5;
5206
+ O.fillStyle = this.options.colorDark, O.fillRect(0, 0, 7 * I, I), O.fillRect((g - 7) * I, 0, 7 * I, I), O.fillRect(0, 6 * I, 7 * I, I), O.fillRect((g - 7) * I, 6 * I, 7 * I, I), O.fillRect(0, (g - 7) * I, 7 * I, I), O.fillRect(0, (g - 7 + 6) * I, 7 * I, I), O.fillRect(0, 0, I, 7 * I), O.fillRect(6 * I, 0, I, 7 * I), O.fillRect((g - 7) * I, 0, I, 7 * I), O.fillRect((g - 7 + 6) * I, 0, I, 7 * I), O.fillRect(0, (g - 7) * I, I, 7 * I), O.fillRect(6 * I, (g - 7) * I, I, 7 * I), O.fillRect(2 * I, 2 * I, 3 * I, 3 * I), O.fillRect((g - 7 + 2) * I, 2 * I, 3 * I, 3 * I), O.fillRect(2 * I, (g - 7 + 2) * I, 3 * I, 3 * I);
5207
+ const we = ((d = (c = this.options.components) === null || c === void 0 ? void 0 : c.timing) === null || d === void 0 ? void 0 : d.scale) || Mt, Ue = (1 - we) * 0.5;
5208
5208
  for (let N = 0; N < g - 8; N += 2)
5209
- se._drawDot(B, 8 + N, 6, I, je, we), se._drawDot(B, 6, 8 + N, I, je, we);
5209
+ se._drawDot(O, 8 + N, 6, I, Ue, we), se._drawDot(O, 6, 8 + N, I, Ue, we);
5210
5210
  const he = ((k = (y = this.options.components) === null || y === void 0 ? void 0 : y.cornerAlignment) === null || k === void 0 ? void 0 : k.scale) || Mt, me = (1 - he) * 0.5;
5211
- se._drawAlign(B, z, z, I, me, he, this.options.colorDark, ((P = (L = this.options.components) === null || L === void 0 ? void 0 : L.cornerAlignment) === null || P === void 0 ? void 0 : P.protectors) || !1);
5211
+ se._drawAlign(O, z, z, I, me, he, this.options.colorDark, ((P = (L = this.options.components) === null || L === void 0 ? void 0 : L.cornerAlignment) === null || P === void 0 ? void 0 : P.protectors) || !1);
5212
5212
  const Me = ((h = (C = this.options.components) === null || C === void 0 ? void 0 : C.alignment) === null || h === void 0 ? void 0 : h.scale) || Mt, D = (1 - Me) * 0.5;
5213
5213
  for (let N = 0; N < fe.length; N++)
5214
5214
  for (let V = 0; V < fe.length; V++) {
5215
- const $ = fe[V], K = fe[N];
5216
- if (!($ === 6 && (K === 6 || K === z))) {
5217
- if (K === 6 && ($ === 6 || $ === z))
5215
+ const G = fe[V], K = fe[N];
5216
+ if (!(G === 6 && (K === 6 || K === z))) {
5217
+ if (K === 6 && (G === 6 || G === z))
5218
5218
  continue;
5219
- if ($ === z && K === z)
5219
+ if (G === z && K === z)
5220
5220
  continue;
5221
- se._drawAlign(B, $, K, I, D, Me, this.options.colorDark, ((S = (M = this.options.components) === null || M === void 0 ? void 0 : M.alignment) === null || S === void 0 ? void 0 : S.protectors) || !1);
5221
+ se._drawAlign(O, G, K, I, D, Me, this.options.colorDark, ((S = (M = this.options.components) === null || M === void 0 ? void 0 : M.alignment) === null || S === void 0 ? void 0 : S.protectors) || !1);
5222
5222
  }
5223
5223
  }
5224
- if (E && (B.fillStyle = this.options.backgroundColor, B.fillRect(-f, -f, U, f), B.fillRect(-f, H, U, f), B.fillRect(H, -f, f, U), B.fillRect(-f, -f, f, U)), this.options.logoImage) {
5224
+ if (E && (O.fillStyle = this.options.backgroundColor, O.fillRect(-f, -f, j, f), O.fillRect(-f, H, j, f), O.fillRect(H, -f, f, j), O.fillRect(-f, -f, f, j)), this.options.logoImage) {
5225
5225
  const N = yield Tn(this.options.logoImage);
5226
- let V = this.options.logoScale, $ = this.options.logoMargin, K = this.options.logoCornerRadius;
5227
- (V <= 0 || V >= 1) && (V = 0.2), $ < 0 && ($ = 0), K < 0 && (K = 0);
5228
- const W = H * V, ne = 0.5 * (U - W), q = ne;
5229
- B.restore(), B.fillStyle = this.options.logoBackgroundColor, B.save(), se._prepareRoundedCornerClip(B, ne - $, q - $, W + 2 * $, W + 2 * $, K + $), B.clip();
5230
- const ce = B.globalCompositeOperation;
5231
- B.globalCompositeOperation = "destination-out", B.fill(), B.globalCompositeOperation = ce, B.restore(), B.save(), se._prepareRoundedCornerClip(B, ne, q, W, W, K), B.clip(), B.drawImage(N, ne, q, W, W), B.restore(), B.save(), B.translate(f, f);
5226
+ let V = this.options.logoScale, G = this.options.logoMargin, K = this.options.logoCornerRadius;
5227
+ (V <= 0 || V >= 1) && (V = 0.2), G < 0 && (G = 0), K < 0 && (K = 0);
5228
+ const W = H * V, ne = 0.5 * (j - W), q = ne;
5229
+ O.restore(), O.fillStyle = this.options.logoBackgroundColor, O.save(), se._prepareRoundedCornerClip(O, ne - G, q - G, W + 2 * G, W + 2 * G, K + G), O.clip();
5230
+ const ce = O.globalCompositeOperation;
5231
+ O.globalCompositeOperation = "destination-out", O.fill(), O.globalCompositeOperation = ce, O.restore(), O.save(), se._prepareRoundedCornerClip(O, ne, q, W, W, K), O.clip(), O.drawImage(N, ne, q, W, W), O.restore(), O.save(), O.translate(f, f);
5232
5232
  }
5233
5233
  if (Le) {
5234
- let N, V, $, K, W, ne;
5234
+ let N, V, G, K, W, ne;
5235
5235
  if (Ne.forEach(function(q) {
5236
5236
  N || (N = new de(b, b), N.setDelay(q.delay), N.setRepeat(0));
5237
- const { width: ce, height: O } = q.dims;
5238
- V || (V = new Re(ce, O), $ = V.getContext("2d"), $.rect(0, 0, V.width, V.height), $.fillStyle = "#ffffff", $.fill()), (!K || !ne || ce !== K.width || O !== K.height) && (K = new Re(ce, O), W = K.getContext("2d"), ne = W.createImageData(ce, O)), ne.data.set(q.patch), W.putImageData(ne, 0, 0), $.drawImage(K.getContext("2d").canvas, q.dims.left, q.dims.top);
5239
- const pe = new Re(U, U), _e = pe.getContext("2d");
5240
- _e.drawImage(V.getContext("2d").canvas, 0, 0, U, U), _e.rect(0, 0, U, U), _e.fillStyle = R, _e.fill(), _e.drawImage(le.getContext("2d").canvas, 0, 0, U, U);
5237
+ const { width: ce, height: B } = q.dims;
5238
+ V || (V = new Re(ce, B), G = V.getContext("2d"), G.rect(0, 0, V.width, V.height), G.fillStyle = "#ffffff", G.fill()), (!K || !ne || ce !== K.width || B !== K.height) && (K = new Re(ce, B), W = K.getContext("2d"), ne = W.createImageData(ce, B)), ne.data.set(q.patch), W.putImageData(ne, 0, 0), G.drawImage(K.getContext("2d").canvas, q.dims.left, q.dims.top);
5239
+ const pe = new Re(j, j), _e = pe.getContext("2d");
5240
+ _e.drawImage(V.getContext("2d").canvas, 0, 0, j, j), _e.rect(0, 0, j, j), _e.fillStyle = R, _e.fill(), _e.drawImage(le.getContext("2d").canvas, 0, 0, j, j);
5241
5241
  const At = new Re(b, b), nn = At.getContext("2d");
5242
5242
  nn.drawImage(pe.getContext("2d").canvas, 0, 0, b, b), N.addFrame(nn.getImageData(0, 0, At.width, At.height).data);
5243
5243
  }), !N)
5244
5244
  throw new Error("No frames.");
5245
5245
  if (N.finish(), Cn(this.canvas)) {
5246
- const ce = N.stream().toFlattenUint8Array().reduce((O, pe) => O + String.fromCharCode(pe), "");
5246
+ const ce = N.stream().toFlattenUint8Array().reduce((B, pe) => B + String.fromCharCode(pe), "");
5247
5247
  return Promise.resolve(`data:image/gif;base64,${window.btoa(ce)}`);
5248
5248
  }
5249
5249
  return Promise.resolve(Buffer.from(N.stream().toFlattenUint8Array()));
5250
5250
  } else {
5251
- ie.drawImage(le.getContext("2d").canvas, 0, 0, U, U), B.drawImage(De.getContext("2d").canvas, -f, -f, U, U);
5251
+ re.drawImage(le.getContext("2d").canvas, 0, 0, j, j), O.drawImage(De.getContext("2d").canvas, -f, -f, j, j);
5252
5252
  const N = new Re(b, b);
5253
5253
  N.getContext("2d").drawImage(le.getContext("2d").canvas, 0, 0, b, b), this.canvas = N;
5254
- const $ = this.options.gifBackground ? "gif" : "png";
5255
- return Cn(this.canvas) ? Promise.resolve(this.canvas.toDataURL($)) : Promise.resolve(this.canvas.toBuffer($));
5254
+ const G = this.options.gifBackground ? "gif" : "png";
5255
+ return Cn(this.canvas) ? Promise.resolve(this.canvas.toDataURL(G)) : Promise.resolve(this.canvas.toBuffer(G));
5256
5256
  }
5257
5257
  });
5258
5258
  }
@@ -5466,10 +5466,10 @@ const Sl = {
5466
5466
  correctLevel: o.correctLevel,
5467
5467
  logoMargin: o.logoMargin,
5468
5468
  logoCornerRadius: o.logoCornerRadius,
5469
- whiteMargin: Bt(o.whiteMargin),
5469
+ whiteMargin: Ot(o.whiteMargin),
5470
5470
  dotScale: o.dotScale,
5471
- autoColor: Bt(o.autoColor),
5472
- binarize: Bt(o.binarize),
5471
+ autoColor: Ot(o.autoColor),
5472
+ binarize: Ot(o.binarize),
5473
5473
  binarizeThreshold: o.binarizeThreshold,
5474
5474
  components: o.components
5475
5475
  }).draw().then((a) => {
@@ -5483,9 +5483,9 @@ function Dl(e, n, t, o, a, l) {
5483
5483
  key: 0,
5484
5484
  style: { display: "inline-block" },
5485
5485
  src: a.imgUrl
5486
- }, null, 8, xl)) : G("", !0);
5486
+ }, null, 8, xl)) : $("", !0);
5487
5487
  }
5488
- const Vl = /* @__PURE__ */ Xe(Sl, [["render", Dl]]), Al = ["innerHTML"], El = { style: { "text-align": "center" } }, Pl = { class: "ImageViewer" }, Bl = { class: "ImageViewer__image" }, Ol = ["onClick"], Fl = /* @__PURE__ */ te({
5488
+ const Vl = /* @__PURE__ */ Xe(Sl, [["render", Dl]]), Al = ["innerHTML"], El = { style: { "text-align": "center" } }, Pl = { class: "ImageViewer" }, Ol = { class: "ImageViewer__image" }, Bl = ["onClick"], Fl = /* @__PURE__ */ te({
5489
5489
  __name: "index",
5490
5490
  props: {
5491
5491
  viewName: null,
@@ -5503,11 +5503,11 @@ const Vl = /* @__PURE__ */ Xe(Sl, [["render", Dl]]), Al = ["innerHTML"], El = {
5503
5503
  const t = e, { reload: o, reloadFlag: a } = Zn(), l = F(() => {
5504
5504
  var C, h;
5505
5505
  return (h = (C = t.board) == null ? void 0 : C.tableData) == null ? void 0 : h.keyName;
5506
- }), r = F(() => {
5506
+ }), i = F(() => {
5507
5507
  var C;
5508
- return Go((C = t.board) == null ? void 0 : C.columns);
5508
+ return $o((C = t.board) == null ? void 0 : C.columns);
5509
5509
  }), s = Q([]);
5510
- function i(C) {
5510
+ function r(C) {
5511
5511
  s.value = C, n("return-selected-key", s.value);
5512
5512
  }
5513
5513
  const u = F(() => ({
@@ -5563,16 +5563,16 @@ const Vl = /* @__PURE__ */ Xe(Sl, [["render", Dl]]), Al = ["innerHTML"], El = {
5563
5563
  () => o(),
5564
5564
  { deep: !0 }
5565
5565
  ), (C, h) => {
5566
- const M = j("t-button"), S = j("t-popup"), g = j("t-icon"), b = j("t-image"), v = j("t-image-viewer");
5567
- return m(a) ? G("", !0) : (p(), _(m(Fn), {
5566
+ const M = U("t-button"), S = U("t-popup"), g = U("t-icon"), b = U("t-image"), v = U("t-image-viewer");
5567
+ return m(a) ? $("", !0) : (p(), _(m(Fn), {
5568
5568
  key: 0,
5569
5569
  commonTableProps: {
5570
5570
  data: e.tableData,
5571
5571
  rowKey: m(l),
5572
- columns: m(r),
5572
+ columns: m(i),
5573
5573
  pagination: m(u),
5574
5574
  selectedRowKeys: s.value,
5575
- onSelectChange: i
5575
+ onSelectChange: r
5576
5576
  }
5577
5577
  }, {
5578
5578
  TEXT: T(({ col: f, row: w }) => [
@@ -5624,7 +5624,7 @@ const Vl = /* @__PURE__ */ Xe(Sl, [["render", Dl]]), Al = ["innerHTML"], El = {
5624
5624
  images: [c(f, w)]
5625
5625
  }, {
5626
5626
  trigger: T(({ open: E }) => [
5627
- ae("div", Bl, [
5627
+ ae("div", Ol, [
5628
5628
  x(b, {
5629
5629
  class: "ImageViewer__image--img",
5630
5630
  src: c(f, w),
@@ -5663,7 +5663,7 @@ const Vl = /* @__PURE__ */ Xe(Sl, [["render", Dl]]), Al = ["innerHTML"], El = {
5663
5663
  }),
5664
5664
  X(" 预览")
5665
5665
  ])
5666
- ], 8, Ol)
5666
+ ], 8, Bl)
5667
5667
  ])
5668
5668
  ]),
5669
5669
  _: 2
@@ -5688,26 +5688,26 @@ const Vl = /* @__PURE__ */ Xe(Sl, [["render", Dl]]), Al = ["innerHTML"], El = {
5688
5688
  };
5689
5689
  }
5690
5690
  });
5691
- const Ul = /* @__PURE__ */ Xe(Fl, [["__scopeId", "data-v-78e0f314"]]), jl = /* @__PURE__ */ te({
5691
+ const jl = /* @__PURE__ */ Xe(Fl, [["__scopeId", "data-v-78e0f314"]]), Ul = /* @__PURE__ */ te({
5692
5692
  __name: "index",
5693
5693
  props: {
5694
5694
  viewName: null,
5695
5695
  board: null
5696
5696
  },
5697
5697
  setup(e) {
5698
- var r, s;
5698
+ var i, s;
5699
5699
  const n = e, t = F(() => {
5700
- var i;
5701
- return (i = n == null ? void 0 : n.board) == null ? void 0 : i.tabs;
5702
- }), o = Q((s = (r = t.value) == null ? void 0 : r[0]) == null ? void 0 : s.title);
5703
- function a(i) {
5704
- o.value = i;
5700
+ var r;
5701
+ return (r = n == null ? void 0 : n.board) == null ? void 0 : r.tabs;
5702
+ }), o = Q((s = (i = t.value) == null ? void 0 : i[0]) == null ? void 0 : s.title);
5703
+ function a(r) {
5704
+ o.value = r;
5705
5705
  }
5706
5706
  function l() {
5707
5707
  window.history.go(-1);
5708
5708
  }
5709
- return (i, u) => {
5710
- const c = j("t-card"), d = j("t-tab-panel"), y = j("t-tabs");
5709
+ return (r, u) => {
5710
+ const c = U("t-card"), d = U("t-tab-panel"), y = U("t-tabs");
5711
5711
  return p(), _(y, {
5712
5712
  class: Y(`${m(J)}__tab`),
5713
5713
  placement: "left",
@@ -5728,7 +5728,7 @@ const Ul = /* @__PURE__ */ Xe(Fl, [["__scopeId", "data-v-78e0f314"]]), jl = /* @
5728
5728
  viewName: e.viewName,
5729
5729
  board: k.board,
5730
5730
  onCloseDialog: l
5731
- }, null, 8, ["viewName", "board"])) : G("", !0)
5731
+ }, null, 8, ["viewName", "board"])) : $("", !0)
5732
5732
  ]),
5733
5733
  _: 2
5734
5734
  }, 1024)
@@ -5752,10 +5752,10 @@ const Rl = /* @__PURE__ */ te({
5752
5752
  },
5753
5753
  emits: ["update:isDialogVisible", "close-dialog"],
5754
5754
  setup(e, { emit: n }) {
5755
- const t = e, o = vo(() => import("./index-6cabfefb.mjs")), a = qt(), l = F(() => t.dialogViewInfo.view), r = F(() => t.dialogViewInfo.name), s = F(() => {
5755
+ const t = e, o = vo(() => import("./index-6f529537.mjs")), a = qt(), l = F(() => t.dialogViewInfo.view), i = F(() => t.dialogViewInfo.name), s = F(() => {
5756
5756
  var y;
5757
5757
  return (y = t.dialogViewBoard) == null ? void 0 : y.boardType;
5758
- }), i = F(() => {
5758
+ }), r = F(() => {
5759
5759
  switch (s.value) {
5760
5760
  case "table":
5761
5761
  return "1200px";
@@ -5776,8 +5776,8 @@ const Rl = /* @__PURE__ */ te({
5776
5776
  return (y, k) => (p(), _(m(Pn), {
5777
5777
  commonDialogProps: {
5778
5778
  visible: e.isDialogVisible,
5779
- width: m(i),
5780
- header: m(r),
5779
+ width: m(r),
5780
+ header: m(i),
5781
5781
  footer: !1,
5782
5782
  onClose: () => c(!1),
5783
5783
  destroyOnClose: !0
@@ -5804,14 +5804,14 @@ const Rl = /* @__PURE__ */ te({
5804
5804
  },
5805
5805
  emits: ["close-dialog"],
5806
5806
  setup(e, { emit: n }) {
5807
- const t = e, o = st(), a = ut(), l = Pe(), r = Qt(), s = qt();
5807
+ const t = e, o = st(), a = ut(), l = Pe(), i = Qt(), s = qt();
5808
5808
  Zn();
5809
- const i = F(() => {
5809
+ const r = F(() => {
5810
5810
  var A;
5811
5811
  return (A = t.board) == null ? void 0 : A.boardType;
5812
5812
  }), u = F(() => {
5813
- var A, z, re;
5814
- return (A = t.board) != null && A.data ? (z = t.board) == null ? void 0 : z.data.dataId : (re = t.board) != null && re.tableData ? t.board.tableData.dataId : null;
5813
+ var A, z, ie;
5814
+ return (A = t.board) != null && A.data ? (z = t.board) == null ? void 0 : z.data.dataId : (ie = t.board) != null && ie.tableData ? t.board.tableData.dataId : null;
5815
5815
  }), c = Q([]), d = Q({}), y = F(() => {
5816
5816
  var A;
5817
5817
  return (A = t.board) == null ? void 0 : A.header;
@@ -5831,25 +5831,25 @@ const Rl = /* @__PURE__ */ te({
5831
5831
  var A;
5832
5832
  {
5833
5833
  let z = {};
5834
- return y.value && k.value && Object.assign(z, k.value), t.dialogProps && ((A = Object.keys(t.dialogProps)) != null && A.length) && Object.assign(z, t.dialogProps), i.value === "table" && Object.assign(z, P.value), Object.assign(z, L.value), z;
5834
+ return y.value && k.value && Object.assign(z, k.value), t.dialogProps && ((A = Object.keys(t.dialogProps)) != null && A.length) && Object.assign(z, t.dialogProps), r.value === "table" && Object.assign(z, P.value), Object.assign(z, L.value), z;
5835
5835
  }
5836
5836
  });
5837
5837
  async function h() {
5838
5838
  var A;
5839
5839
  try {
5840
- if (!rt(u.value) && !rt(t.viewName)) {
5840
+ if (!it(u.value) && !it(t.viewName)) {
5841
5841
  const z = await Nt({
5842
5842
  dataId: u.value,
5843
5843
  viewName: t.viewName,
5844
5844
  props: C.value
5845
5845
  });
5846
- if (r.sendRegisterMessage(u.value), z.state === 200 && z.data)
5847
- i.value == "table" && (P.value = {
5846
+ if (i.sendRegisterMessage(u.value), z.state === 200 && z.data)
5847
+ r.value == "table" && (P.value = {
5848
5848
  count: z.data.count,
5849
5849
  page: z.data.page,
5850
5850
  pageCount: z.data.pageCount,
5851
5851
  totalCount: z.data.totalCount
5852
- }, c.value = (A = z.data) == null ? void 0 : A.data), i.value == "form" && (d.value = z.data);
5852
+ }, c.value = (A = z.data) == null ? void 0 : A.data), r.value == "form" && (d.value = z.data);
5853
5853
  else
5854
5854
  throw z;
5855
5855
  }
@@ -5859,8 +5859,8 @@ const Rl = /* @__PURE__ */ te({
5859
5859
  }
5860
5860
  nt(() => {
5861
5861
  h(), window.addEventListener("onUpdateMessage", (A) => {
5862
- var re;
5863
- const z = (re = A == null ? void 0 : A.detail) == null ? void 0 : re.args.dataId;
5862
+ var ie;
5863
+ const z = (ie = A == null ? void 0 : A.detail) == null ? void 0 : ie.args.dataId;
5864
5864
  u.value === z && h();
5865
5865
  });
5866
5866
  }), ve(
@@ -5876,15 +5876,15 @@ const Rl = /* @__PURE__ */ te({
5876
5876
  async function w(A, z = {}) {
5877
5877
  if ((A ?? "") != "") {
5878
5878
  z.viewName = A;
5879
- const re = await Un(z);
5880
- re.state === 200 && (v.value = re.data.boards[0], f.value = re.data.props);
5879
+ const ie = await jn(z);
5880
+ ie.state === 200 && (v.value = ie.data.boards[0], f.value = ie.data.props);
5881
5881
  }
5882
5882
  }
5883
5883
  async function E(A) {
5884
5884
  M.value = A;
5885
5885
  }
5886
5886
  async function R(A, z = {}) {
5887
- var re, we, je;
5887
+ var ie, we, Ue;
5888
5888
  try {
5889
5889
  switch (A.action) {
5890
5890
  case "VIEW_BY_DIALOG": {
@@ -5893,7 +5893,7 @@ const Rl = /* @__PURE__ */ te({
5893
5893
  }
5894
5894
  case "VIEW": {
5895
5895
  let he = {};
5896
- (re = A == null ? void 0 : A.props) == null || re.forEach((me) => {
5896
+ (ie = A == null ? void 0 : A.props) == null || ie.forEach((me) => {
5897
5897
  me.keyName && (z[me.keyName] ?? "") != "" && (he[me.keyName] = z[me.keyName]);
5898
5898
  }), o.push({
5899
5899
  path: "/view",
@@ -5916,7 +5916,7 @@ const Rl = /* @__PURE__ */ te({
5916
5916
  header: A.name,
5917
5917
  body: he,
5918
5918
  onConfirm: () => {
5919
- A.buttonId && B(me, A.buttonId), Me.destroy();
5919
+ A.buttonId && O(me, A.buttonId), Me.destroy();
5920
5920
  },
5921
5921
  onCancel: () => {
5922
5922
  ee.info(`已取消${A.name}`);
@@ -5930,7 +5930,7 @@ const Rl = /* @__PURE__ */ te({
5930
5930
  header: A.name,
5931
5931
  body: `此操作将${A.name},是否继续`,
5932
5932
  onConfirm: () => {
5933
- H.value.length == 0 ? ee.error("请选择批量操作对象!") : ie(A, H.value), he.destroy();
5933
+ H.value.length == 0 ? ee.error("请选择批量操作对象!") : re(A, H.value), he.destroy();
5934
5934
  },
5935
5935
  onCancel: () => {
5936
5936
  ee.info(`已取消${A.name}`);
@@ -5960,7 +5960,7 @@ const Rl = /* @__PURE__ */ te({
5960
5960
  }
5961
5961
  case "DOWNLOAD": {
5962
5962
  let he = {};
5963
- if ((je = A == null ? void 0 : A.props) == null || je.forEach((me) => {
5963
+ if ((Ue = A == null ? void 0 : A.props) == null || Ue.forEach((me) => {
5964
5964
  me.keyName && (z[me.keyName] ?? "") != "" && (he[me.keyName] = z[me.keyName]);
5965
5965
  }), (A.buttonId ?? "") != "") {
5966
5966
  const me = await Le(
@@ -6000,7 +6000,7 @@ const Rl = /* @__PURE__ */ te({
6000
6000
  }, h();
6001
6001
  }
6002
6002
  const H = Q([]);
6003
- function U(A) {
6003
+ function j(A) {
6004
6004
  H.value = A;
6005
6005
  }
6006
6006
  function le(A) {
@@ -6009,53 +6009,53 @@ const Rl = /* @__PURE__ */ te({
6009
6009
  count: A.pageSize
6010
6010
  }), h();
6011
6011
  }
6012
- async function B(A, z) {
6013
- let re = {};
6014
- Object.keys(C.value).length && Object.assign(re, C.value), Object.assign(re, A);
6012
+ async function O(A, z) {
6013
+ let ie = {};
6014
+ Object.keys(C.value).length && Object.assign(ie, C.value), Object.assign(ie, A);
6015
6015
  const we = await aa({
6016
6016
  buttonId: z,
6017
- props: re,
6017
+ props: ie,
6018
6018
  viewName: t.viewName
6019
6019
  });
6020
6020
  we.state === 200 ? ee.success("提交成功") : ee.error(`提交失败:${we.message}`);
6021
6021
  }
6022
6022
  function De(A, z) {
6023
6023
  if (A.itemType == "selector" || A.itemType == "time_selector" || A.itemType == "date_time_selector" || A.itemType == "tree_check_box" || A.itemType === "multi_tree_selector" || A.itemType === "tree_selector") {
6024
- const re = Tt.confirm({
6024
+ const ie = Tt.confirm({
6025
6025
  theme: "info",
6026
6026
  body: "此操作将提交该修改,是否继续?",
6027
6027
  onConfirm: () => {
6028
- B(z, A.buttonId), re.destroy();
6028
+ O(z, A.buttonId), ie.destroy();
6029
6029
  },
6030
6030
  onCancel: () => {
6031
6031
  ee.info("已取消修改。");
6032
6032
  }
6033
6033
  });
6034
6034
  } else
6035
- B(z, A.buttonId);
6035
+ O(z, A.buttonId);
6036
6036
  }
6037
- async function ie(A, z) {
6038
- let re = {};
6039
- Object.keys(C.value).length && Object.assign(re, C.value);
6037
+ async function re(A, z) {
6038
+ let ie = {};
6039
+ Object.keys(C.value).length && Object.assign(ie, C.value);
6040
6040
  const we = await la({
6041
6041
  viewName: t.viewName,
6042
6042
  buttonId: A.buttonId,
6043
- props: re,
6043
+ props: ie,
6044
6044
  keys: z
6045
6045
  });
6046
6046
  we.state == 200 ? ee.success(`${A.name} 操作成功!`) : ee.error(`提交出错:${we.message}`);
6047
6047
  }
6048
6048
  async function Le(A, z) {
6049
- let re = {};
6050
- Object.keys(C.value).length && Object.assign(re, C.value), Object.assign(re, A);
6051
- const we = await ia({
6049
+ let ie = {};
6050
+ Object.keys(C.value).length && Object.assign(ie, C.value), Object.assign(ie, A);
6051
+ const we = await ra({
6052
6052
  buttonId: z,
6053
- props: re,
6053
+ props: ie,
6054
6054
  viewName: A.viewName
6055
6055
  });
6056
6056
  if (we.state == 200) {
6057
- const je = we.data.url, he = we.data.filename;
6058
- return { url: je, filename: he };
6057
+ const Ue = we.data.url, he = we.data.filename;
6058
+ return { url: Ue, filename: he };
6059
6059
  } else
6060
6060
  console.log("下载文件请求出错", we.message);
6061
6061
  }
@@ -6065,7 +6065,7 @@ const Rl = /* @__PURE__ */ te({
6065
6065
  });
6066
6066
  }
6067
6067
  function fe(A, z) {
6068
- B(A, z), ke();
6068
+ O(A, z), ke();
6069
6069
  }
6070
6070
  function ke() {
6071
6071
  n("close-dialog");
@@ -6079,17 +6079,17 @@ const Rl = /* @__PURE__ */ te({
6079
6079
  headerInfo: m(y),
6080
6080
  onHeaderButtonAction: R,
6081
6081
  onHeaderFilterChange: I
6082
- }, null, 8, ["viewName", "headerInfo"])) : G("", !0),
6083
- m(i) === "form" ? (p(), _(La, {
6082
+ }, null, 8, ["viewName", "headerInfo"])) : $("", !0),
6083
+ m(r) === "form" ? (p(), _(La, {
6084
6084
  key: 1,
6085
6085
  viewName: e.viewName,
6086
6086
  board: e.board,
6087
6087
  formData: d.value,
6088
- onConfirmForm: B,
6088
+ onConfirmForm: O,
6089
6089
  onConfirmAndClose: fe,
6090
6090
  onCloseDialog: ke
6091
- }, null, 8, ["viewName", "board", "formData"])) : G("", !0),
6092
- m(i) === "table" ? (p(), _(Ul, {
6091
+ }, null, 8, ["viewName", "board", "formData"])) : $("", !0),
6092
+ m(r) === "table" ? (p(), _(jl, {
6093
6093
  key: 2,
6094
6094
  viewName: e.viewName,
6095
6095
  board: e.board,
@@ -6097,20 +6097,20 @@ const Rl = /* @__PURE__ */ te({
6097
6097
  paginationProps: P.value,
6098
6098
  onTableButtonAction: R,
6099
6099
  onTableFormConfirm: De,
6100
- onReturnSelectedKey: U,
6100
+ onReturnSelectedKey: j,
6101
6101
  onReturnPaginationProps: le
6102
- }, null, 8, ["viewName", "board", "tableData", "paginationProps"])) : G("", !0),
6103
- m(i) === "tab" ? (p(), _(jl, {
6102
+ }, null, 8, ["viewName", "board", "tableData", "paginationProps"])) : $("", !0),
6103
+ m(r) === "tab" ? (p(), _(Ul, {
6104
6104
  key: 3,
6105
6105
  viewName: e.viewName,
6106
6106
  board: e.board
6107
- }, null, 8, ["viewName", "board"])) : G("", !0),
6107
+ }, null, 8, ["viewName", "board"])) : $("", !0),
6108
6108
  M.value ? (p(), _(Rl, {
6109
6109
  key: 4,
6110
6110
  ref: "dialogRef",
6111
6111
  isDialogVisible: S.value,
6112
6112
  "onUpdate:isDialogVisible": [
6113
- z[0] || (z[0] = (re) => S.value = re),
6113
+ z[0] || (z[0] = (ie) => S.value = ie),
6114
6114
  Ne
6115
6115
  ],
6116
6116
  dialogViewInfo: g.value,
@@ -6118,7 +6118,7 @@ const Rl = /* @__PURE__ */ te({
6118
6118
  dialogViewBoard: v.value,
6119
6119
  dialogViewProps: f.value,
6120
6120
  onCloseDialog: Ne
6121
- }, null, 8, ["isDialogVisible", "dialogViewInfo", "dialogFormModel", "dialogViewBoard", "dialogViewProps"])) : G("", !0)
6121
+ }, null, 8, ["isDialogVisible", "dialogViewInfo", "dialogFormModel", "dialogViewBoard", "dialogViewProps"])) : $("", !0)
6122
6122
  ], 2));
6123
6123
  }
6124
6124
  });
@@ -6128,11 +6128,11 @@ const zl = /* @__PURE__ */ te({
6128
6128
  config: null
6129
6129
  },
6130
6130
  setup(e) {
6131
- const n = e, t = st(), o = ut(), a = Pe(), l = Lt(), r = Qt(), s = Q(""), i = F(() => a.isUserLogin), u = F(() => a.homeUrl);
6131
+ const n = e, t = st(), o = ut(), a = Pe(), l = Lt(), i = Qt(), s = Q(""), r = F(() => a.isUserLogin), u = F(() => a.homeUrl);
6132
6132
  vt(async () => {
6133
- i.value || (await a.initUserConfig(n.config), await l.initTabMenu(), t.push(u.value));
6133
+ r.value || (await a.initUserConfig(n.config), await l.initTabMenu(), t.push(u.value));
6134
6134
  }), nt(async () => {
6135
- r.initSocket(), window.addEventListener("onSocketReload", () => {
6135
+ i.initSocket(), window.addEventListener("onSocketReload", () => {
6136
6136
  a.toggleGlobalReload();
6137
6137
  });
6138
6138
  });
@@ -6158,7 +6158,7 @@ const zl = /* @__PURE__ */ te({
6158
6158
  var h;
6159
6159
  C.viewName = P, xe(d.value) && Object.assign(C, d.value);
6160
6160
  try {
6161
- const M = await Un(C);
6161
+ const M = await jn(C);
6162
6162
  if (M.state === 200 && M.data) {
6163
6163
  y.value = M.data, s.value = (h = M.data) == null ? void 0 : h.title;
6164
6164
  const S = decodeURIComponent(o.fullPath);
@@ -6197,13 +6197,13 @@ const zl = /* @__PURE__ */ te({
6197
6197
  }),
6198
6198
  _: 2
6199
6199
  }, 1024);
6200
- }), 128)) : G("", !0)
6200
+ }), 128)) : $("", !0)
6201
6201
  ];
6202
6202
  }),
6203
6203
  _: 1
6204
6204
  }, 8, ["title"]));
6205
6205
  }
6206
- }), Gl = ot(En), $l = /* @__PURE__ */ te({
6206
+ }), $l = ot(En), Gl = /* @__PURE__ */ te({
6207
6207
  __name: "GLoginTitle",
6208
6208
  props: {
6209
6209
  title: { default: "公信会务管理系统" },
@@ -6235,7 +6235,7 @@ const Kl = /* @__PURE__ */ ae("span", null, [
6235
6235
  return (n, t) => (p(), Z("div", {
6236
6236
  class: Y(`${m(J)}__login-form`)
6237
6237
  }, [
6238
- Be(n.$slots, "tabs"),
6238
+ Oe(n.$slots, "tabs"),
6239
6239
  ae("div", {
6240
6240
  class: Y(`${m(J)}__login-form--footer`)
6241
6241
  }, Wl, 2)
@@ -6265,7 +6265,7 @@ const Ql = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMj
6265
6265
  ], 2));
6266
6266
  }
6267
6267
  });
6268
- const Zl = ["id", "poster"], Jl = ["src"], er = ["src"], tr = /* @__PURE__ */ te({
6268
+ const Zl = ["id", "poster"], Jl = ["src"], ei = ["src"], ti = /* @__PURE__ */ te({
6269
6269
  __name: "index",
6270
6270
  props: {
6271
6271
  bgVideoMp4Src: null,
@@ -6293,7 +6293,7 @@ const Zl = ["id", "poster"], Jl = ["src"], er = ["src"], tr = /* @__PURE__ */ te
6293
6293
  ae("source", {
6294
6294
  src: e.bgVideoWebmSrc,
6295
6295
  type: "video/webm"
6296
- }, null, 8, er)
6296
+ }, null, 8, ei)
6297
6297
  ], 12, Zl),
6298
6298
  ae("div", {
6299
6299
  class: Y(`${m(J)}__login-wrapper--overlay`)
@@ -6301,13 +6301,13 @@ const Zl = ["id", "poster"], Jl = ["src"], er = ["src"], tr = /* @__PURE__ */ te
6301
6301
  ae("div", {
6302
6302
  class: Y(`${m(J)}__login-wrapper--container`)
6303
6303
  }, [
6304
- x($l, {
6304
+ x(Gl, {
6305
6305
  title: e.title,
6306
6306
  subTitle: e.subTitle
6307
6307
  }, null, 8, ["title", "subTitle"]),
6308
6308
  x(Hl, null, {
6309
6309
  tabs: T(() => [
6310
- Be(n.$slots, "tabs", {}, void 0, !0)
6310
+ Oe(n.$slots, "tabs", {}, void 0, !0)
6311
6311
  ]),
6312
6312
  _: 3
6313
6313
  })
@@ -6316,7 +6316,80 @@ const Zl = ["id", "poster"], Jl = ["src"], er = ["src"], tr = /* @__PURE__ */ te
6316
6316
  ], 2));
6317
6317
  }
6318
6318
  });
6319
- const nr = /* @__PURE__ */ Xe(tr, [["__scopeId", "data-v-b1b26512"]]), Kr = ot(nr);
6319
+ const ni = /* @__PURE__ */ Xe(ti, [["__scopeId", "data-v-b1b26512"]]), tr = ot(ni), oi = "@gonsin/gview", ai = "2.0.15", li = "dist/index.mjs", ii = "dist/types/index.d.ts", ri = [
6320
+ "dist",
6321
+ "README.md"
6322
+ ], si = {
6323
+ dev: "cd develop && vite --host",
6324
+ preview: "cd develop && vite preview",
6325
+ prebuild: "pnpm lint && pnpm format",
6326
+ build: "pnpm prebuild && run-p type-check build-only && pnpm build:tsc",
6327
+ "build:tsc": "tsc packages/index.ts --emitDeclarationOnly -d --outDir dist/types/",
6328
+ "build-only": "vite build",
6329
+ "type-check": "vue-tsc --noEmit",
6330
+ "lint:eslint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore",
6331
+ "lint:style": 'stylelint --cache --fix "**/*.{html,vue,css,scss}" --cache --cache-location node_modules/.cache/stylelint/',
6332
+ lint: "pnpm lint:eslint && pnpm lint:style",
6333
+ format: "prettier --write develop/ && prettier --write packages/"
6334
+ }, ui = {
6335
+ "@gonsin/glicense": "^1.0.2",
6336
+ "@wangeditor/editor": "^5.1.23",
6337
+ "@wangeditor/editor-for-vue": "^5.1.12",
6338
+ axios: "^1.3.4",
6339
+ dayjs: "^1.11.7",
6340
+ he: "^1.2.0",
6341
+ "lodash-es": "^4.17.21",
6342
+ mustache: "^4.2.0",
6343
+ nanoid: "^4.0.1",
6344
+ nprogress: "^0.2.0",
6345
+ pinia: "^2.0.32",
6346
+ qs: "^6.11.1",
6347
+ "tdesign-vue-next": "^1.3.2",
6348
+ vue: "^3.2.47",
6349
+ "vue-qr": "^4.0.9",
6350
+ "vue-router": "^4.1.6"
6351
+ }, ci = {
6352
+ "@rushstack/eslint-patch": "^1.2.0",
6353
+ "@types/lodash-es": "^4.17.7",
6354
+ "@types/node": "^18.14.2",
6355
+ "@typescript-eslint/parser": "^5.59.2",
6356
+ "@vitejs/plugin-vue": "^4.0.0",
6357
+ "@vitejs/plugin-vue-jsx": "^3.0.0",
6358
+ "@vue/eslint-config-prettier": "^7.1.0",
6359
+ "@vue/eslint-config-typescript": "^11.0.2",
6360
+ "@vue/tsconfig": "^0.1.3",
6361
+ eslint: "^8.34.0",
6362
+ "eslint-import-resolver-typescript": "^3.5.5",
6363
+ "eslint-plugin-import": "^2.27.5",
6364
+ "eslint-plugin-vue": "^9.9.0",
6365
+ "npm-run-all": "^4.1.5",
6366
+ postcss: "^8.4.21",
6367
+ "postcss-html": "^1.5.0",
6368
+ "postcss-scss": "^4.0.6",
6369
+ prettier: "^2.8.4",
6370
+ sass: "^1.59.2",
6371
+ stylelint: "^14.8.5",
6372
+ "stylelint-config-html": "^1.0.0",
6373
+ "stylelint-config-prettier": "^9.0.3",
6374
+ "stylelint-config-recess-order": "^3.0.0",
6375
+ "stylelint-config-recommended-scss": "^6.0.0",
6376
+ "stylelint-config-recommended-vue": "^1.4.0",
6377
+ "stylelint-config-standard": "^25.0.0",
6378
+ "stylelint-config-standard-scss": "^3.0.0",
6379
+ typescript: "~4.8.4",
6380
+ vite: "^4.1.4",
6381
+ "vite-svg-loader": "^4.0.0",
6382
+ "vue-tsc": "^1.2.0"
6383
+ }, di = {
6384
+ name: oi,
6385
+ version: ai,
6386
+ main: li,
6387
+ typings: ii,
6388
+ files: ri,
6389
+ scripts: si,
6390
+ dependencies: ui,
6391
+ devDependencies: ci
6392
+ };
6320
6393
  Io.configure({
6321
6394
  easing: "ease",
6322
6395
  // 动画方式
@@ -6330,7 +6403,7 @@ Io.configure({
6330
6403
  minimum: 0.1
6331
6404
  // 初始化时的最小百分比
6332
6405
  });
6333
- const or = [
6406
+ const mi = [
6334
6407
  {
6335
6408
  stem: "app",
6336
6409
  icon: "App"
@@ -6875,19 +6948,19 @@ const or = [
6875
6948
  getMenus: "/restapi/menus",
6876
6949
  saveMenus: "/restapi/menus"
6877
6950
  };
6878
- function ar(e) {
6951
+ function fi(e) {
6879
6952
  return We.put(mo.saveMenus, e);
6880
6953
  }
6881
- function lr() {
6954
+ function hi() {
6882
6955
  return We.post(mo.getMenus, { currentMenu: !1 });
6883
6956
  }
6884
- const rr = { class: "menu-title" }, ir = {
6957
+ const pi = { class: "menu-title" }, gi = {
6885
6958
  key: 0,
6886
6959
  class: "counts"
6887
- }, sr = { class: "operations" }, ur = { id: "icon-option" }, cr = { key: 0 }, dr = {
6960
+ }, vi = { class: "operations" }, yi = { id: "icon-option" }, bi = { key: 0 }, wi = {
6888
6961
  key: 1,
6889
6962
  style: { color: "#9f9f9f" }
6890
- }, mr = /* @__PURE__ */ te({
6963
+ }, Mi = /* @__PURE__ */ te({
6891
6964
  __name: "index",
6892
6965
  setup(e) {
6893
6966
  const n = Pe(), t = Q("菜单管理"), o = [
@@ -6908,7 +6981,7 @@ const rr = { class: "menu-title" }, ir = {
6908
6981
  colKey: "operations",
6909
6982
  cell: "operations"
6910
6983
  }
6911
- ], a = F(() => n.userEdificeKey), l = Q(!1), r = Q(""), s = Q(n.sideMenuTree), i = Q({
6984
+ ], a = F(() => n.userEdificeKey), l = Q(!1), i = Q(""), s = Q(n.sideMenuTree), r = Q({
6912
6985
  edificeKey: "",
6913
6986
  parent: null,
6914
6987
  name: "",
@@ -6947,7 +7020,7 @@ const rr = { class: "menu-title" }, ir = {
6947
7020
  var D;
6948
7021
  return (D = d.value) == null ? void 0 : D.getTreeNode();
6949
7022
  }), P = F(() => {
6950
- switch (r.value) {
7023
+ switch (i.value) {
6951
7024
  case "addGroup":
6952
7025
  return "添加组";
6953
7026
  case "editGroup":
@@ -6988,7 +7061,7 @@ const rr = { class: "menu-title" }, ir = {
6988
7061
  return b.value.length ? b.value.some((N) => N.url === D.url) : !1;
6989
7062
  }
6990
7063
  async function E() {
6991
- const D = await lr();
7064
+ const D = await hi();
6992
7065
  D.state == 200 ? b.value = v(D.data) : (console.log(D.message), ee.error(`获取内置菜单列表出错: ${D.message}`));
6993
7066
  }
6994
7067
  function R(D) {
@@ -7012,49 +7085,49 @@ const rr = { class: "menu-title" }, ir = {
7012
7085
  console.log(V);
7013
7086
  }
7014
7087
  }
7015
- function U() {
7016
- l.value = !0, r.value = "addGroup";
7088
+ function j() {
7089
+ l.value = !0, i.value = "addGroup";
7017
7090
  }
7018
7091
  function le() {
7019
- i.value.level == 1 && i.value.children && i.value.children.push({
7092
+ r.value.level == 1 && r.value.children && r.value.children.push({
7020
7093
  edificeKey: a.value,
7021
7094
  level: 2,
7022
7095
  icon: null,
7023
7096
  title: "",
7024
7097
  name: "",
7025
- parent: i.value.name,
7098
+ parent: r.value.name,
7026
7099
  path: "",
7027
7100
  isGroup: !0,
7028
7101
  children: []
7029
7102
  });
7030
7103
  }
7031
- function B(D) {
7032
- if (i.value.children) {
7033
- const N = i.value.children.indexOf(D);
7034
- N != -1 && i.value.children.splice(N, 1);
7104
+ function O(D) {
7105
+ if (r.value.children) {
7106
+ const N = r.value.children.indexOf(D);
7107
+ N != -1 && r.value.children.splice(N, 1);
7035
7108
  }
7036
7109
  }
7037
7110
  function De() {
7038
- if ((i.value.level == 1 || i.value.level == 2) && i.value.children) {
7039
- const D = i.value.level + 1;
7040
- i.value.children.push({
7111
+ if ((r.value.level == 1 || r.value.level == 2) && r.value.children) {
7112
+ const D = r.value.level + 1;
7113
+ r.value.children.push({
7041
7114
  edificeKey: a.value,
7042
7115
  level: D,
7043
7116
  icon: null,
7044
7117
  title: "",
7045
7118
  name: "",
7046
- parent: i.value.name,
7119
+ parent: r.value.name,
7047
7120
  path: "",
7048
7121
  url: "",
7049
7122
  isGroup: !1
7050
7123
  });
7051
7124
  }
7052
7125
  }
7053
- function ie(D) {
7054
- i.value = pt(D), D.isGroup ? r.value = "editGroup" : (r.value = "editItem", i.value.isInner = w(D)), l.value = !0;
7126
+ function re(D) {
7127
+ r.value = pt(D), D.isGroup ? i.value = "editGroup" : (i.value = "editItem", r.value.isInner = w(D)), l.value = !0;
7055
7128
  }
7056
7129
  function Le(D) {
7057
- i.value = pt(D), l.value = !0, r.value = "moveItemTo";
7130
+ r.value = pt(D), l.value = !0, i.value = "moveItemTo";
7058
7131
  }
7059
7132
  function Ne() {
7060
7133
  l.value = !1, setTimeout(() => {
@@ -7062,7 +7135,7 @@ const rr = { class: "menu-title" }, ir = {
7062
7135
  }, 100);
7063
7136
  }
7064
7137
  function fe() {
7065
- i.value = {
7138
+ r.value = {
7066
7139
  edificeKey: a.value,
7067
7140
  parent: null,
7068
7141
  name: "",
@@ -7077,32 +7150,32 @@ const rr = { class: "menu-title" }, ir = {
7077
7150
  function ke() {
7078
7151
  var D;
7079
7152
  (D = k.value) == null || D.validate().then((N) => {
7080
- var V, $, K, W, ne, q, ce;
7153
+ var V, G, K, W, ne, q, ce;
7081
7154
  if (!Object.keys(N).length)
7082
- r.value == "addGroup" ? (i.value.edificeKey = a.value, i.value.children && ((V = i.value.children) != null && V.length) && i.value.children.forEach((O) => {
7083
- O.parent == "" && (O.parent = i.value.name);
7084
- }), ($ = d.value) == null || $.appendTo("", i.value), ee.success("保存新增组成功!")) : r.value == "editGroup" || r.value == "editItem" ? ((K = d.value) == null || K.setData(i.value.name, i.value), i.value.isGroup ? ((ne = (W = i.value) == null ? void 0 : W.children) == null || ne.forEach((O) => {
7155
+ i.value == "addGroup" ? (r.value.edificeKey = a.value, r.value.children && ((V = r.value.children) != null && V.length) && r.value.children.forEach((B) => {
7156
+ B.parent == "" && (B.parent = r.value.name);
7157
+ }), (G = d.value) == null || G.appendTo("", r.value), ee.success("保存新增组成功!")) : i.value == "editGroup" || i.value == "editItem" ? ((K = d.value) == null || K.setData(r.value.name, r.value), r.value.isGroup ? ((ne = (W = r.value) == null ? void 0 : W.children) == null || ne.forEach((B) => {
7085
7158
  var pe;
7086
- (pe = d.value) == null || pe.setData(O.name, O);
7159
+ (pe = d.value) == null || pe.setData(B.name, B);
7087
7160
  }), ee.success("编辑组成功!")) : (A(
7088
- i.value.name,
7089
- i.value.parent
7090
- ), ee.success("编辑菜单成功!"))) : r.value == "moveItemTo" && (A(
7091
- i.value.name,
7092
- i.value.parent
7161
+ r.value.name,
7162
+ r.value.parent
7163
+ ), ee.success("编辑菜单成功!"))) : i.value == "moveItemTo" && (A(
7164
+ r.value.name,
7165
+ r.value.parent
7093
7166
  ), ee.success("转移组成功!")), H(), Ne();
7094
7167
  else {
7095
- const O = (ce = (q = Object.values(N)[0]) == null ? void 0 : q[0]) == null ? void 0 : ce.message;
7096
- ee.warning(`${O}`);
7168
+ const B = (ce = (q = Object.values(N)[0]) == null ? void 0 : q[0]) == null ? void 0 : ce.message;
7169
+ ee.warning(`${B}`);
7097
7170
  }
7098
7171
  });
7099
7172
  }
7100
7173
  function A(D, N) {
7101
7174
  if (d.value) {
7102
- const V = C.value.find(($) => $.name == D);
7175
+ const V = C.value.find((G) => G.name == D);
7103
7176
  if (V) {
7104
- const { parent: $ } = V;
7105
- N !== $ && (i.value.parent = N, d.value.remove(D), d.value.appendTo(N, i.value));
7177
+ const { parent: G } = V;
7178
+ N !== G && (r.value.parent = N, d.value.remove(D), d.value.appendTo(N, r.value));
7106
7179
  }
7107
7180
  }
7108
7181
  }
@@ -7113,10 +7186,10 @@ const rr = { class: "menu-title" }, ir = {
7113
7186
  header: "撤销组",
7114
7187
  body: `确定要撤销${D.title}吗?`,
7115
7188
  onConfirm: () => {
7116
- var $, K, W, ne;
7189
+ var G, K, W, ne;
7117
7190
  let V = [];
7118
7191
  if (D.level == 1)
7119
- ($ = D.children) == null || $.forEach((q) => {
7192
+ (G = D.children) == null || G.forEach((q) => {
7120
7193
  q.level = 1, q.parent = null, V.push(q);
7121
7194
  }), (K = d.value) == null || K.remove(D.name), V.length && V.forEach((q) => {
7122
7195
  var ce;
@@ -7127,8 +7200,8 @@ const rr = { class: "menu-title" }, ir = {
7127
7200
  (W = D.children) == null || W.forEach((ce) => {
7128
7201
  ce.level = 2, ce.parent = q, V.push(ce);
7129
7202
  }), (ne = d.value) == null || ne.remove(D.name), H(), V.forEach((ce) => {
7130
- var O;
7131
- (O = d.value) == null || O.appendTo(q, ce);
7203
+ var B;
7204
+ (B = d.value) == null || B.appendTo(q, ce);
7132
7205
  });
7133
7206
  }
7134
7207
  N.destroy(), ee.success("撤销组成功");
@@ -7142,20 +7215,20 @@ const rr = { class: "menu-title" }, ir = {
7142
7215
  }
7143
7216
  H();
7144
7217
  }
7145
- function re() {
7218
+ function ie() {
7146
7219
  var D;
7147
7220
  (D = d.value) == null || D.resetData(n.sideMenuTree), ee.success("恢复默认菜单方案成功!");
7148
7221
  }
7149
7222
  async function we() {
7150
7223
  const D = un(L.value);
7151
7224
  try {
7152
- (await ar({ menus: [...D] })).state == 200 && (n.setSideMenuConfig(L.value), s.value = L.value, ee.success("保存菜单方案成功!"));
7225
+ (await fi({ menus: [...D] })).state == 200 && (n.setSideMenuConfig(L.value), s.value = L.value, ee.success("保存菜单方案成功!"));
7153
7226
  } catch (N) {
7154
7227
  ee.error(N.message);
7155
7228
  }
7156
7229
  }
7157
- function je(D) {
7158
- const { current: N, target: V, currentIndex: $, targetIndex: K } = D, W = N.level, ne = N.parent, q = V.level, ce = V.parent;
7230
+ function Ue(D) {
7231
+ const { current: N, target: V, currentIndex: G, targetIndex: K } = D, W = N.level, ne = N.parent, q = V.level, ce = V.parent;
7159
7232
  if (W == q) {
7160
7233
  if (ne == ce)
7161
7234
  return !0;
@@ -7168,8 +7241,8 @@ const rr = { class: "menu-title" }, ir = {
7168
7241
  D.code && ee.error("不同层级的菜单项,不允许调整顺序");
7169
7242
  }
7170
7243
  function me(D, N) {
7171
- var $;
7172
- const V = ($ = d.value) == null ? void 0 : $.getData(D.name);
7244
+ var G;
7245
+ const V = (G = d.value) == null ? void 0 : G.getData(D.name);
7173
7246
  if (V) {
7174
7247
  const { parent: K } = V;
7175
7248
  if (K) {
@@ -7200,14 +7273,14 @@ const rr = { class: "menu-title" }, ir = {
7200
7273
  }
7201
7274
  }
7202
7275
  return (D, N) => {
7203
- const V = j("t-button"), $ = j("t-icon"), K = j("t-input"), W = j("t-form-item"), ne = j("t-option"), q = j("t-select"), ce = j("t-input-group");
7204
- return p(), _(m(Gl), { title: t.value }, {
7276
+ const V = U("t-button"), G = U("t-icon"), K = U("t-input"), W = U("t-form-item"), ne = U("t-option"), q = U("t-select"), ce = U("t-input-group");
7277
+ return p(), _(m($l), { title: t.value }, {
7205
7278
  default: T(() => [
7206
- x(m(On), null, {
7279
+ x(m(Bn), null, {
7207
7280
  "left-operations": T(() => [
7208
7281
  x(V, {
7209
7282
  theme: "primary",
7210
- onClick: U
7283
+ onClick: j
7211
7284
  }, {
7212
7285
  default: T(() => [
7213
7286
  X("添加组")
@@ -7216,7 +7289,7 @@ const rr = { class: "menu-title" }, ir = {
7216
7289
  }),
7217
7290
  x(V, {
7218
7291
  theme: "default",
7219
- onClick: re
7292
+ onClick: ie
7220
7293
  }, {
7221
7294
  default: T(() => [
7222
7295
  X("恢复默认")
@@ -7247,7 +7320,7 @@ const rr = { class: "menu-title" }, ir = {
7247
7320
  data: s.value,
7248
7321
  columns: o,
7249
7322
  dragSort: "row-handler",
7250
- beforeDragSort: je,
7323
+ beforeDragSort: Ue,
7251
7324
  onAbnormalDragSort: he,
7252
7325
  tree: {
7253
7326
  childrenKey: "children",
@@ -7258,47 +7331,47 @@ const rr = { class: "menu-title" }, ir = {
7258
7331
  maxHeight: "calc(100vh - 233px)"
7259
7332
  }
7260
7333
  }, {
7261
- treeExpandAndFoldIcon: T(({ type: O }) => [
7262
- O === "expand" ? (p(), _($, {
7334
+ treeExpandAndFoldIcon: T(({ type: B }) => [
7335
+ B === "expand" ? (p(), _(G, {
7263
7336
  key: 0,
7264
7337
  name: "chevron-right"
7265
- })) : (p(), _($, {
7338
+ })) : (p(), _(G, {
7266
7339
  key: 1,
7267
7340
  name: "chevron-up"
7268
7341
  }))
7269
7342
  ]),
7270
7343
  drag: T(() => [
7271
- x($, { name: "move" })
7344
+ x(G, { name: "move" })
7272
7345
  ]),
7273
- title: T(({ row: O }) => [
7274
- ae("span", rr, [
7346
+ title: T(({ row: B }) => [
7347
+ ae("span", pi, [
7275
7348
  ae("span", {
7276
- class: Y(["title", O.isGroup ? "title-bold" : "title-child"])
7349
+ class: Y(["title", B.isGroup ? "title-bold" : "title-child"])
7277
7350
  }, [
7278
- O.level == 1 && O.isGroup ? (p(), Z(ge, { key: 0 }, [
7279
- O.icon ? (p(), _($, {
7351
+ B.level == 1 && B.isGroup ? (p(), Z(ge, { key: 0 }, [
7352
+ B.icon ? (p(), _(G, {
7280
7353
  key: 0,
7281
7354
  class: "title-icon",
7282
- name: O.icon,
7355
+ name: B.icon,
7283
7356
  size: "large"
7284
- }, null, 8, ["name"])) : (p(), _($, {
7357
+ }, null, 8, ["name"])) : (p(), _(G, {
7285
7358
  key: 1,
7286
7359
  class: "title-icon",
7287
7360
  name: "app",
7288
7361
  size: "large"
7289
7362
  }))
7290
- ], 64)) : G("", !0),
7291
- X(" " + be(O.title), 1)
7363
+ ], 64)) : $("", !0),
7364
+ X(" " + be(B.title), 1)
7292
7365
  ], 2),
7293
- O.isGroup ? (p(), Z("span", ir, be(O.children.length) + "项", 1)) : G("", !0)
7366
+ B.isGroup ? (p(), Z("span", gi, be(B.children.length) + "项", 1)) : $("", !0)
7294
7367
  ])
7295
7368
  ]),
7296
- operations: T(({ row: O }) => [
7297
- ae("div", sr, [
7369
+ operations: T(({ row: B }) => [
7370
+ ae("div", vi, [
7298
7371
  x(V, {
7299
7372
  variant: "text",
7300
7373
  theme: "primary",
7301
- onClick: (pe) => ie(O)
7374
+ onClick: (pe) => re(B)
7302
7375
  }, {
7303
7376
  default: T(() => [
7304
7377
  X(" 编辑修改 ")
@@ -7308,18 +7381,18 @@ const rr = { class: "menu-title" }, ir = {
7308
7381
  x(V, {
7309
7382
  variant: "text",
7310
7383
  theme: "primary",
7311
- disabled: O.isGroup,
7312
- onClick: (pe) => Le(O)
7384
+ disabled: B.isGroup,
7385
+ onClick: (pe) => Le(B)
7313
7386
  }, {
7314
7387
  default: T(() => [
7315
- X(be(O.isGroup ? "-----" : "转移至"), 1)
7388
+ X(be(B.isGroup ? "-----" : "转移至"), 1)
7316
7389
  ]),
7317
7390
  _: 2
7318
7391
  }, 1032, ["disabled", "onClick"]),
7319
7392
  x(V, {
7320
7393
  variant: "text",
7321
7394
  theme: "primary",
7322
- onClick: (pe) => me(O, "up")
7395
+ onClick: (pe) => me(B, "up")
7323
7396
  }, {
7324
7397
  default: T(() => [
7325
7398
  X(" 上移 ")
@@ -7329,7 +7402,7 @@ const rr = { class: "menu-title" }, ir = {
7329
7402
  x(V, {
7330
7403
  variant: "text",
7331
7404
  theme: "primary",
7332
- onClick: (pe) => me(O, "down")
7405
+ onClick: (pe) => me(B, "down")
7333
7406
  }, {
7334
7407
  default: T(() => [
7335
7408
  X(" 下移 ")
@@ -7339,11 +7412,11 @@ const rr = { class: "menu-title" }, ir = {
7339
7412
  x(V, {
7340
7413
  variant: "text",
7341
7414
  theme: "primary",
7342
- disabled: !O.isGroup,
7343
- onClick: (pe) => z(O)
7415
+ disabled: !B.isGroup,
7416
+ onClick: (pe) => z(B)
7344
7417
  }, {
7345
7418
  default: T(() => [
7346
- X(be(O.isGroup ? "撤销组" : "-----"), 1)
7419
+ X(be(B.isGroup ? "撤销组" : "-----"), 1)
7347
7420
  ]),
7348
7421
  _: 2
7349
7422
  }, 1032, ["disabled", "onClick"])
@@ -7366,7 +7439,7 @@ const rr = { class: "menu-title" }, ir = {
7366
7439
  ref: y,
7367
7440
  commonFormProps: {
7368
7441
  rules: u,
7369
- data: i.value,
7442
+ data: r.value,
7370
7443
  labelAlign: "right",
7371
7444
  labelWidth: "150px"
7372
7445
  }
@@ -7390,7 +7463,7 @@ const rr = { class: "menu-title" }, ir = {
7390
7463
  ]),
7391
7464
  _: 2
7392
7465
  }, [
7393
- r.value == "addGroup" || r.value == "editGroup" || r.value == "editItem" ? {
7466
+ i.value == "addGroup" || i.value == "editGroup" || i.value == "editItem" ? {
7394
7467
  name: "body",
7395
7468
  fn: T(() => [
7396
7469
  x(W, {
@@ -7401,8 +7474,8 @@ const rr = { class: "menu-title" }, ir = {
7401
7474
  default: T(() => [
7402
7475
  x(K, {
7403
7476
  style: { width: "360px" },
7404
- modelValue: i.value.title,
7405
- "onUpdate:modelValue": N[0] || (N[0] = (O) => i.value.title = O),
7477
+ modelValue: r.value.title,
7478
+ "onUpdate:modelValue": N[0] || (N[0] = (B) => r.value.title = B),
7406
7479
  placeholder: "请输入组名称"
7407
7480
  }, null, 8, ["modelValue"])
7408
7481
  ]),
@@ -7416,46 +7489,46 @@ const rr = { class: "menu-title" }, ir = {
7416
7489
  default: T(() => [
7417
7490
  x(K, {
7418
7491
  style: { width: "360px" },
7419
- modelValue: i.value.name,
7420
- "onUpdate:modelValue": N[1] || (N[1] = (O) => i.value.name = O),
7492
+ modelValue: r.value.name,
7493
+ "onUpdate:modelValue": N[1] || (N[1] = (B) => r.value.name = B),
7421
7494
  placeholder: "输入该菜单的唯一标识,设置后不能修改",
7422
- disabled: r.value == "editGroup" || r.value == "editItem"
7495
+ disabled: i.value == "editGroup" || i.value == "editItem"
7423
7496
  }, null, 8, ["modelValue", "disabled"])
7424
7497
  ]),
7425
7498
  _: 1
7426
7499
  }),
7427
- i.value.level == 1 ? (p(), _(W, {
7500
+ r.value.level == 1 ? (p(), _(W, {
7428
7501
  key: 0,
7429
7502
  name: "icon",
7430
7503
  label: "图标标识"
7431
7504
  }, {
7432
7505
  default: T(() => [
7433
7506
  x(q, {
7434
- modelValue: i.value.icon,
7435
- "onUpdate:modelValue": N[2] || (N[2] = (O) => i.value.icon = O),
7507
+ modelValue: r.value.icon,
7508
+ "onUpdate:modelValue": N[2] || (N[2] = (B) => r.value.icon = B),
7436
7509
  placeholder: "请选择图标标识",
7437
7510
  popupProps: { overlayInnerStyle: { width: "326px" } },
7438
7511
  clearable: !0
7439
7512
  }, {
7440
7513
  valueDisplay: T(() => [
7441
- i.value.icon ? (p(), Z("span", cr, [
7442
- x($, {
7443
- name: i.value.icon,
7514
+ r.value.icon ? (p(), Z("span", bi, [
7515
+ x(G, {
7516
+ name: r.value.icon,
7444
7517
  style: { marginRight: "8px" }
7445
7518
  }, null, 8, ["name"]),
7446
- X(be(i.value.icon), 1)
7447
- ])) : (p(), Z("span", dr, "请选择图标标识"))
7519
+ X(be(r.value.icon), 1)
7520
+ ])) : (p(), Z("span", wi, "请选择图标标识"))
7448
7521
  ]),
7449
7522
  default: T(() => [
7450
- (p(!0), Z(ge, null, Ce(m(or), (O) => (p(), _(ne, {
7451
- value: O.stem,
7452
- key: O.stem,
7523
+ (p(!0), Z(ge, null, Ce(m(mi), (B) => (p(), _(ne, {
7524
+ value: B.stem,
7525
+ key: B.stem,
7453
7526
  class: "overlay-options"
7454
7527
  }, {
7455
7528
  default: T(() => [
7456
- ae("span", ur, [
7457
- x($, {
7458
- name: O.stem,
7529
+ ae("span", yi, [
7530
+ x(G, {
7531
+ name: B.stem,
7459
7532
  size: "small"
7460
7533
  }, null, 8, ["name"])
7461
7534
  ])
@@ -7467,8 +7540,8 @@ const rr = { class: "menu-title" }, ir = {
7467
7540
  }, 8, ["modelValue"])
7468
7541
  ]),
7469
7542
  _: 1
7470
- })) : G("", !0),
7471
- i.value.isGroup ? G("", !0) : (p(), _(W, {
7543
+ })) : $("", !0),
7544
+ r.value.isGroup ? $("", !0) : (p(), _(W, {
7472
7545
  key: 1,
7473
7546
  name: "parent",
7474
7547
  label: "父菜单",
@@ -7477,13 +7550,13 @@ const rr = { class: "menu-title" }, ir = {
7477
7550
  default: T(() => [
7478
7551
  x(q, {
7479
7552
  options: m(h),
7480
- modelValue: i.value.parent,
7481
- "onUpdate:modelValue": N[3] || (N[3] = (O) => i.value.parent = O)
7553
+ modelValue: r.value.parent,
7554
+ "onUpdate:modelValue": N[3] || (N[3] = (B) => r.value.parent = B)
7482
7555
  }, null, 8, ["options", "modelValue"])
7483
7556
  ]),
7484
7557
  _: 1
7485
7558
  })),
7486
- !I(i.value.children).length && i.value.level == 1 ? (p(), _(W, {
7559
+ !I(r.value.children).length && r.value.level == 1 ? (p(), _(W, {
7487
7560
  key: 2,
7488
7561
  label: "分组"
7489
7562
  }, {
@@ -7499,8 +7572,8 @@ const rr = { class: "menu-title" }, ir = {
7499
7572
  })
7500
7573
  ]),
7501
7574
  _: 1
7502
- })) : G("", !0),
7503
- (p(!0), Z(ge, null, Ce(I(i.value.children), (O, pe) => (p(), _(W, {
7575
+ })) : $("", !0),
7576
+ (p(!0), Z(ge, null, Ce(I(r.value.children), (B, pe) => (p(), _(W, {
7504
7577
  key: "group" + pe,
7505
7578
  label: pe == 0 ? "分组" : " "
7506
7579
  }, {
@@ -7509,18 +7582,18 @@ const rr = { class: "menu-title" }, ir = {
7509
7582
  default: T(() => [
7510
7583
  x(K, {
7511
7584
  placeholder: "请输入分组名称 ",
7512
- value: O.title,
7513
- onChange: (_e) => m($e)(
7514
- I(i.value.children),
7585
+ value: B.title,
7586
+ onChange: (_e) => m(Ge)(
7587
+ I(r.value.children),
7515
7588
  `[${pe}].title`,
7516
7589
  _e
7517
7590
  )
7518
7591
  }, null, 8, ["value", "onChange"]),
7519
7592
  x(K, {
7520
7593
  placeholder: "请输入分组标识 ",
7521
- value: O.name,
7522
- onChange: (_e) => m($e)(
7523
- I(i.value.children),
7594
+ value: B.name,
7595
+ onChange: (_e) => m(Ge)(
7596
+ I(r.value.children),
7524
7597
  `[${pe}].name`,
7525
7598
  _e
7526
7599
  )
@@ -7528,14 +7601,14 @@ const rr = { class: "menu-title" }, ir = {
7528
7601
  x(V, {
7529
7602
  variant: "outline",
7530
7603
  theme: "default",
7531
- onClick: (_e) => B(O)
7604
+ onClick: (_e) => O(B)
7532
7605
  }, {
7533
7606
  default: T(() => [
7534
7607
  X("- ")
7535
7608
  ]),
7536
7609
  _: 2
7537
7610
  }, 1032, ["onClick"]),
7538
- pe == I(i.value.children).length - 1 ? (p(), _(V, {
7611
+ pe == I(r.value.children).length - 1 ? (p(), _(V, {
7539
7612
  key: 0,
7540
7613
  variant: "outline",
7541
7614
  theme: "default",
@@ -7545,14 +7618,14 @@ const rr = { class: "menu-title" }, ir = {
7545
7618
  X("+ ")
7546
7619
  ]),
7547
7620
  _: 1
7548
- }, 8, ["onClick"])) : G("", !0)
7621
+ }, 8, ["onClick"])) : $("", !0)
7549
7622
  ]),
7550
7623
  _: 2
7551
7624
  }, 1024)
7552
7625
  ]),
7553
7626
  _: 2
7554
7627
  }, 1032, ["label"]))), 128)),
7555
- !R(i.value.children).length && i.value.isGroup ? (p(), _(W, {
7628
+ !R(r.value.children).length && r.value.isGroup ? (p(), _(W, {
7556
7629
  key: 3,
7557
7630
  label: "子菜单项"
7558
7631
  }, {
@@ -7568,8 +7641,8 @@ const rr = { class: "menu-title" }, ir = {
7568
7641
  })
7569
7642
  ]),
7570
7643
  _: 1
7571
- })) : G("", !0),
7572
- (p(!0), Z(ge, null, Ce(R(i.value.children), (O, pe) => (p(), _(W, {
7644
+ })) : $("", !0),
7645
+ (p(!0), Z(ge, null, Ce(R(r.value.children), (B, pe) => (p(), _(W, {
7573
7646
  key: "item" + pe,
7574
7647
  label: pe == 0 ? "子菜单项" : " "
7575
7648
  }, {
@@ -7578,18 +7651,18 @@ const rr = { class: "menu-title" }, ir = {
7578
7651
  default: T(() => [
7579
7652
  x(K, {
7580
7653
  placeholder: "请输入子菜单名称 ",
7581
- value: O.title,
7582
- onChange: (_e) => m($e)(
7583
- R(i.value.children),
7654
+ value: B.title,
7655
+ onChange: (_e) => m(Ge)(
7656
+ R(r.value.children),
7584
7657
  `[${pe}].title`,
7585
7658
  _e
7586
7659
  )
7587
7660
  }, null, 8, ["value", "onChange"]),
7588
7661
  x(K, {
7589
7662
  placeholder: "请输入子菜单标识 ",
7590
- value: O.name,
7591
- onChange: (_e) => m($e)(
7592
- R(i.value.children),
7663
+ value: B.name,
7664
+ onChange: (_e) => m(Ge)(
7665
+ R(r.value.children),
7593
7666
  `[${pe}].name`,
7594
7667
  _e
7595
7668
  )
@@ -7597,14 +7670,14 @@ const rr = { class: "menu-title" }, ir = {
7597
7670
  x(V, {
7598
7671
  variant: "outline",
7599
7672
  theme: "default",
7600
- onClick: (_e) => B(O)
7673
+ onClick: (_e) => O(B)
7601
7674
  }, {
7602
7675
  default: T(() => [
7603
7676
  X("- ")
7604
7677
  ]),
7605
7678
  _: 2
7606
7679
  }, 1032, ["onClick"]),
7607
- pe == R(i.value.children).length - 1 ? (p(), _(V, {
7680
+ pe == R(r.value.children).length - 1 ? (p(), _(V, {
7608
7681
  key: 0,
7609
7682
  variant: "outline",
7610
7683
  theme: "default",
@@ -7614,19 +7687,19 @@ const rr = { class: "menu-title" }, ir = {
7614
7687
  X("+ ")
7615
7688
  ]),
7616
7689
  _: 1
7617
- }, 8, ["onClick"])) : G("", !0)
7690
+ }, 8, ["onClick"])) : $("", !0)
7618
7691
  ]),
7619
7692
  _: 2
7620
7693
  }, 1024)
7621
7694
  ]),
7622
7695
  _: 2
7623
7696
  }, 1032, ["label"]))), 128)),
7624
- r.value == "editItem" ? (p(), Z(ge, { key: 4 }, [
7697
+ i.value == "editItem" ? (p(), Z(ge, { key: 4 }, [
7625
7698
  x(W, { label: "是否为内置菜单" }, {
7626
7699
  default: T(() => [
7627
7700
  x(q, {
7628
- modelValue: i.value.isInner,
7629
- "onUpdate:modelValue": N[4] || (N[4] = (O) => i.value.isInner = O)
7701
+ modelValue: r.value.isInner,
7702
+ "onUpdate:modelValue": N[4] || (N[4] = (B) => r.value.isInner = B)
7630
7703
  }, {
7631
7704
  default: T(() => [
7632
7705
  x(ne, {
@@ -7653,38 +7726,38 @@ const rr = { class: "menu-title" }, ir = {
7653
7726
  ]),
7654
7727
  _: 1
7655
7728
  }),
7656
- i.value.isInner ? (p(), _(W, {
7729
+ r.value.isInner ? (p(), _(W, {
7657
7730
  key: 0,
7658
7731
  label: "选择菜单"
7659
7732
  }, {
7660
7733
  default: T(() => [
7661
7734
  x(q, {
7662
- modelValue: i.value.url,
7663
- "onUpdate:modelValue": N[5] || (N[5] = (O) => i.value.url = O),
7735
+ modelValue: r.value.url,
7736
+ "onUpdate:modelValue": N[5] || (N[5] = (B) => r.value.url = B),
7664
7737
  options: m(f)
7665
7738
  }, null, 8, ["modelValue", "options"])
7666
7739
  ]),
7667
7740
  _: 1
7668
- })) : G("", !0),
7669
- i.value.isInner ? G("", !0) : (p(), _(W, {
7741
+ })) : $("", !0),
7742
+ r.value.isInner ? $("", !0) : (p(), _(W, {
7670
7743
  key: 1,
7671
7744
  label: "菜单路径"
7672
7745
  }, {
7673
7746
  default: T(() => [
7674
7747
  x(K, {
7675
- modelValue: i.value.url,
7676
- "onUpdate:modelValue": N[6] || (N[6] = (O) => i.value.url = O)
7748
+ modelValue: r.value.url,
7749
+ "onUpdate:modelValue": N[6] || (N[6] = (B) => r.value.url = B)
7677
7750
  }, null, 8, ["modelValue"])
7678
7751
  ]),
7679
7752
  _: 1
7680
7753
  }))
7681
- ], 64)) : G("", !0)
7754
+ ], 64)) : $("", !0)
7682
7755
  ]),
7683
7756
  key: "0"
7684
- } : r.value == "moveItemTo" ? {
7757
+ } : i.value == "moveItemTo" ? {
7685
7758
  name: "body",
7686
7759
  fn: T(() => [
7687
- i.value.isGroup ? G("", !0) : (p(), _(W, {
7760
+ r.value.isGroup ? $("", !0) : (p(), _(W, {
7688
7761
  key: 0,
7689
7762
  name: "parent",
7690
7763
  label: "转移至",
@@ -7693,8 +7766,8 @@ const rr = { class: "menu-title" }, ir = {
7693
7766
  default: T(() => [
7694
7767
  x(q, {
7695
7768
  options: m(h),
7696
- modelValue: i.value.parent,
7697
- "onUpdate:modelValue": N[7] || (N[7] = (O) => i.value.parent = O),
7769
+ modelValue: r.value.parent,
7770
+ "onUpdate:modelValue": N[7] || (N[7] = (B) => r.value.parent = B),
7698
7771
  autosize: ""
7699
7772
  }, null, 8, ["options", "modelValue"])
7700
7773
  ]),
@@ -7713,27 +7786,27 @@ const rr = { class: "menu-title" }, ir = {
7713
7786
  };
7714
7787
  }
7715
7788
  });
7716
- const Wr = ot(mr);
7717
- function fr(e, n) {
7718
- e.component("GView", zl);
7789
+ const nr = ot(Mi), Ti = di.version;
7790
+ function Ci(e, n) {
7791
+ console.info(`GView ${Ti}`), e.component("GView", zl);
7719
7792
  try {
7720
7793
  n && (n != null && n.router) && We.initRouter(n.router);
7721
7794
  } catch (t) {
7722
7795
  console.error("初始化GView", t);
7723
7796
  }
7724
7797
  }
7725
- function Hr(e) {
7798
+ function or(e) {
7726
7799
  Pe(e), Lt(e), qt(e), Qt(e);
7727
7800
  }
7728
- const Qr = {
7729
- install: fr
7801
+ const ar = {
7802
+ install: Ci
7730
7803
  };
7731
7804
  export {
7732
- jr as $,
7805
+ Xi as $,
7733
7806
  qt as A,
7734
- Uo as B,
7735
- Oo as C,
7736
- zr as D,
7807
+ jo as B,
7808
+ Bo as C,
7809
+ Zi as D,
7737
7810
  zt as E,
7738
7811
  zo as F,
7739
7812
  Pn as G,
@@ -7744,22 +7817,22 @@ export {
7744
7817
  gt as L,
7745
7818
  Dn as M,
7746
7819
  Vn as N,
7747
- Dr as O,
7820
+ Ri as O,
7748
7821
  J as P,
7749
- Vr as Q,
7750
- Ar as R,
7751
- Er as S,
7752
- _r as T,
7753
- Pr as U,
7754
- Br as V,
7822
+ zi as Q,
7823
+ $i as R,
7824
+ Gi as S,
7825
+ Fi as T,
7826
+ Ki as U,
7827
+ Wi as V,
7755
7828
  _o as W,
7756
- Or as X,
7757
- Fr as Y,
7758
- Ur as Z,
7829
+ Hi as X,
7830
+ Qi as Y,
7831
+ qi as Z,
7759
7832
  co as _,
7760
7833
  Yo as a,
7761
- Rr as a0,
7762
- rt as a1,
7834
+ Yi as a0,
7835
+ it as a1,
7763
7836
  dn as a2,
7764
7837
  xe as a3,
7765
7838
  An as a4,
@@ -7770,30 +7843,30 @@ export {
7770
7843
  xn as a9,
7771
7844
  ft as aa,
7772
7845
  He as ab,
7773
- Go as ac,
7846
+ $o as ac,
7774
7847
  mn as ad,
7775
7848
  Rt as ae,
7776
7849
  Xt as af,
7777
7850
  ot as ag,
7778
- Wr as ah,
7779
- On as b,
7851
+ nr as ah,
7852
+ Bn as b,
7780
7853
  Fn as c,
7781
- Gl as d,
7782
- Kr as e,
7783
- Gr as f,
7854
+ $l as d,
7855
+ tr as e,
7856
+ Ji as f,
7784
7857
  an as g,
7785
7858
  We as h,
7786
- Qr as i,
7859
+ ar as i,
7787
7860
  Lo as j,
7788
- Nr as k,
7861
+ Bi as k,
7789
7862
  ln as l,
7790
7863
  rn as m,
7791
7864
  Et as n,
7792
- Sr as o,
7793
- xr as p,
7865
+ ji as o,
7866
+ Ui as p,
7794
7867
  sn as q,
7795
7868
  No as r,
7796
- Hr as s,
7869
+ or as s,
7797
7870
  So as t,
7798
7871
  xo as u,
7799
7872
  ta as v,