@form-create/iview 2.7.5 → 2.7.7

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,6 +1,6 @@
1
1
  /*!
2
2
  * FormCreate 低代码表单渲染器
3
- * @form-create/iview v2.7.5
3
+ * @form-create/iview v2.7.7
4
4
  * (c) 2018-2025 xaboy
5
5
  * Github https://github.com/xaboy/form-create
6
6
  * Site https://form-create.com/
@@ -11,7 +11,7 @@ var ir = Object.defineProperty, nr = Object.defineProperties;
11
11
  var sr = Object.getOwnPropertyDescriptors;
12
12
  var ot = Object.getOwnPropertySymbols;
13
13
  var or = Object.prototype.hasOwnProperty, ar = Object.prototype.propertyIsEnumerable;
14
- var at = (t, e, r) => e in t ? ir(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, b = (t, e) => {
14
+ var at = (t, e, r) => e in t ? ir(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, v = (t, e) => {
15
15
  for (var r in e || (e = {}))
16
16
  or.call(e, r) && at(t, r, e[r]);
17
17
  if (ot)
@@ -19,24 +19,24 @@ var at = (t, e, r) => e in t ? ir(t, e, { enumerable: !0, configurable: !0, writ
19
19
  ar.call(e, r) && at(t, r, e[r]);
20
20
  return t;
21
21
  }, U = (t, e) => nr(t, sr(e));
22
- import ye, { getCurrentInstance as lr, provide as ur, inject as fr, toRefs as lt, reactive as ie, onBeforeMount as cr, watch as L, onMounted as hr, onBeforeUnmount as dr, onUpdated as pr, nextTick as A, markRaw as me, computed as ge, toRef as De, ref as mr } from "vue";
22
+ import ye, { getCurrentInstance as lr, provide as ur, inject as fr, toRefs as lt, reactive as ie, onBeforeMount as cr, watch as B, onMounted as hr, onBeforeUnmount as dr, onUpdated as pr, nextTick as A, markRaw as me, computed as ge, toRef as De, ref as mr } from "vue";
23
23
  function gr(t) {
24
24
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
25
25
  }
26
- function Je() {
27
- return Je = Object.assign ? Object.assign.bind() : function(t) {
26
+ function ze() {
27
+ return ze = Object.assign ? Object.assign.bind() : function(t) {
28
28
  for (var e, r = 1; r < arguments.length; r++) for (var i in e = arguments[r], e) Object.prototype.hasOwnProperty.call(e, i) && (t[i] = e[i]);
29
29
  return t;
30
- }, Je.apply(this, arguments);
30
+ }, ze.apply(this, arguments);
31
31
  }
32
- var yr = ["attrs", "props", "domProps"], $r = ["class", "style", "directives"], vr = ["on", "nativeOn"], br = function(t) {
32
+ var yr = ["attrs", "props", "domProps"], $r = ["class", "style", "directives"], br = ["on", "nativeOn"], vr = function(t) {
33
33
  return t.reduce(function(e, r) {
34
34
  for (var i in r) if (!e[i]) e[i] = r[i];
35
- else if (yr.indexOf(i) !== -1) e[i] = Je({}, e[i], r[i]);
35
+ else if (yr.indexOf(i) !== -1) e[i] = ze({}, e[i], r[i]);
36
36
  else if ($r.indexOf(i) !== -1) {
37
37
  var s = e[i] instanceof Array ? e[i] : [e[i]], n = r[i] instanceof Array ? r[i] : [r[i]];
38
38
  e[i] = [].concat(s, n);
39
- } else if (vr.indexOf(i) !== -1)
39
+ } else if (br.indexOf(i) !== -1)
40
40
  for (var o in r[i]) if (e[i][o]) {
41
41
  var a = e[i][o] instanceof Array ? e[i][o] : [e[i][o]], l = r[i][o] instanceof Array ? r[i][o] : [r[i][o]];
42
42
  e[i][o] = [].concat(a, l);
@@ -49,7 +49,7 @@ var yr = ["attrs", "props", "domProps"], $r = ["class", "style", "directives"],
49
49
  return function() {
50
50
  t && t.apply(this, arguments), e && e.apply(this, arguments);
51
51
  };
52
- }, Cr = br;
52
+ }, Cr = vr;
53
53
  const I = /* @__PURE__ */ gr(Cr);
54
54
  function Ie(t, e) {
55
55
  return Object.keys(t).reduce((r, i) => ((!e || e.indexOf(i) === -1) && r.push(t[i]), r), []);
@@ -111,7 +111,7 @@ const wr = "fcCheckbox", Or = {
111
111
  input: this.onInput
112
112
  }
113
113
  }]), [this.options().map((e, r) => {
114
- const i = b({}, e);
114
+ const i = v({}, e);
115
115
  return delete i.value, t("Checkbox", I([{}, {
116
116
  props: i
117
117
  }, {
@@ -469,7 +469,7 @@ function Ot(t) {
469
469
  src: this.previewImage
470
470
  }
471
471
  })]), e("Modal", I([{}, {
472
- props: b({
472
+ props: v({
473
473
  width: s,
474
474
  title: a
475
475
  }, this.modal)
@@ -511,7 +511,7 @@ Ft.v2 = Ot({
511
511
  fileIcon: "document-text",
512
512
  fileUpIcon: "folder"
513
513
  });
514
- const Sr = "fcRadio", Rr = {
514
+ const Sr = "fcRadio", kr = {
515
515
  name: Sr,
516
516
  props: {
517
517
  formCreateInject: {
@@ -563,7 +563,7 @@ const Sr = "fcRadio", Rr = {
563
563
  input: this.onInput
564
564
  }
565
565
  }]), [this.options().map((e, r) => {
566
- const i = b({}, e);
566
+ const i = v({}, e);
567
567
  return delete i.value, t("Radio", I([{}, {
568
568
  props: i
569
569
  }, {
@@ -607,8 +607,8 @@ const Sr = "fcRadio", Rr = {
607
607
  function E(t, e) {
608
608
  return {}.hasOwnProperty.call(t, e);
609
609
  }
610
- const kr = "fcSelect", Er = {
611
- name: kr,
610
+ const Rr = "fcSelect", Er = {
611
+ name: Rr,
612
612
  functional: !0,
613
613
  props: {
614
614
  formCreateInject: {
@@ -702,7 +702,7 @@ function ut(t) {
702
702
  };
703
703
  }
704
704
  function ft(t) {
705
- return U(b({}, t), {
705
+ return U(v({}, t), {
706
706
  file: t,
707
707
  value: t
708
708
  });
@@ -907,11 +907,11 @@ function St(t) {
907
907
  }
908
908
  };
909
909
  }
910
- const Rt = St({
910
+ const kt = St({
911
911
  fileIcon: "md-document",
912
912
  imgUpIcon: "md-images"
913
913
  });
914
- Rt.v2 = St({
914
+ kt.v2 = St({
915
915
  fileIcon: "document-text",
916
916
  imgUpIcon: "image"
917
917
  });
@@ -957,10 +957,10 @@ const Vr = Object.assign || function(t) {
957
957
  function C() {
958
958
  return Vr.apply(this, arguments);
959
959
  }
960
- function We(t) {
961
- return typeof t != "object" || t === null ? t : t instanceof Array ? [...t] : b({}, t);
960
+ function Je(t) {
961
+ return typeof t != "object" || t === null ? t : t instanceof Array ? [...t] : v({}, t);
962
962
  }
963
- const Pr = "fcGroup", Br = {
963
+ const Pr = "fcGroup", Lr = {
964
964
  name: Pr,
965
965
  props: {
966
966
  field: String,
@@ -1095,7 +1095,7 @@ const Pr = "fcGroup", Br = {
1095
1095
  if (i.filter((n) => r[n].$f).length !== i.length)
1096
1096
  return;
1097
1097
  const s = i.map((n) => {
1098
- const o = t === n ? e : b({}, this.cacheRule[n].$f.form), a = this.field ? o[this.field] || null : o;
1098
+ const o = t === n ? e : v({}, this.cacheRule[n].$f.form), a = this.field ? o[this.field] || null : o;
1099
1099
  return this.cache(n, a), a;
1100
1100
  });
1101
1101
  this.input(s);
@@ -1107,7 +1107,7 @@ const Pr = "fcGroup", Br = {
1107
1107
  }), this.cacheValue[t] !== JSON.stringify(r ? e[r] : e) && (this.cache(t, e), i && i.coverValue(e || {}));
1108
1108
  },
1109
1109
  addRule(t, e) {
1110
- const r = this.formCreateInject.form.copyRules(this.formRule), i = this.options ? b({}, this.options) : {
1110
+ const r = this.formCreateInject.form.copyRules(this.formRule), i = this.options ? v({}, this.options) : {
1111
1111
  submitBtn: !1,
1112
1112
  resetBtn: !1
1113
1113
  };
@@ -1239,9 +1239,9 @@ const Pr = "fcGroup", Br = {
1239
1239
  key: o
1240
1240
  }, {
1241
1241
  on: {
1242
- "update:value": (p) => this.formData(o, p),
1243
- "emit-event": (p, ...m) => this.emitEvent(p, m, a, o),
1244
- input: (p) => this.add$f(a, o, p)
1242
+ "update:value": (d) => this.formData(o, d),
1243
+ "emit-event": (d, ...g) => this.emitEvent(d, g, a, o),
1244
+ input: (d) => this.add$f(a, o, d)
1245
1245
  }
1246
1246
  }, {}, {
1247
1247
  props: {
@@ -1265,8 +1265,8 @@ const Pr = "fcGroup", Br = {
1265
1265
  class: "_fc-group " + (s ? "_fc-group-disabled" : "")
1266
1266
  }, [n]);
1267
1267
  }
1268
- }, Lr = "fcSubForm", Tr = {
1269
- name: Lr,
1268
+ }, Br = "fcSubForm", Tr = {
1269
+ name: Br,
1270
1270
  props: {
1271
1271
  rule: Array,
1272
1272
  options: Object,
@@ -1312,7 +1312,7 @@ const Pr = "fcGroup", Br = {
1312
1312
  submitBtn: !1,
1313
1313
  resetBtn: !1
1314
1314
  };
1315
- t.formData = b({}, this.value || {}), this.cacheRule = {
1315
+ t.formData = v({}, this.value || {}), this.cacheRule = {
1316
1316
  rule: this.rule,
1317
1317
  options: t
1318
1318
  };
@@ -1351,13 +1351,13 @@ const Pr = "fcGroup", Br = {
1351
1351
  }
1352
1352
  }, Nr = [
1353
1353
  Or,
1354
- Rr,
1354
+ kr,
1355
1355
  Er,
1356
1356
  jr,
1357
1357
  Tr,
1358
1358
  Ft,
1359
- Rt,
1360
- Br
1359
+ kt,
1360
+ Lr
1361
1361
  ];
1362
1362
  function ne(t, e) {
1363
1363
  var r = null;
@@ -1365,27 +1365,27 @@ function ne(t, e) {
1365
1365
  r !== null && clearTimeout(r), r = setTimeout(() => t.call(this, ...i), e);
1366
1366
  };
1367
1367
  }
1368
- function ve(t) {
1368
+ function $e(t) {
1369
1369
  let e = t.replace(/([A-Z])/g, "-$1").toLocaleLowerCase();
1370
1370
  return e.indexOf("-") === 0 && (e = e.substr(1)), e;
1371
1371
  }
1372
- const kt = ["attrs", "props", "domProps", "scopedSlots"], Et = ["class", "style", "directives"], Dt = ["on", "nativeOn", "hook"], Y = (t, e = {}, r = {}) => {
1373
- const i = [...kt, ...r.normal || []], s = [...Et, ...r.array || []], n = [...Dt, ...r.functional || []], o = r.props || [];
1372
+ const Rt = ["attrs", "props", "domProps", "scopedSlots"], Et = ["class", "style", "directives"], Dt = ["on", "nativeOn", "hook"], x = (t, e = {}, r = {}) => {
1373
+ const i = [...Rt, ...r.normal || []], s = [...Et, ...r.array || []], n = [...Dt, ...r.functional || []], o = r.props || [];
1374
1374
  return t.reduce((a, l) => {
1375
1375
  for (const u in l)
1376
1376
  if (a[u])
1377
1377
  if (o.indexOf(u) > -1)
1378
- a[u] = Y([l[u]], a[u]);
1378
+ a[u] = x([l[u]], a[u]);
1379
1379
  else if (i.indexOf(u) > -1)
1380
- a[u] = b(b({}, a[u]), l[u]);
1380
+ a[u] = v(v({}, a[u]), l[u]);
1381
1381
  else if (s.indexOf(u) > -1) {
1382
- const f = a[u] instanceof Array ? a[u] : [a[u]], p = l[u] instanceof Array ? l[u] : [l[u]];
1383
- a[u] = [...f, ...p];
1382
+ const f = a[u] instanceof Array ? a[u] : [a[u]], d = l[u] instanceof Array ? l[u] : [l[u]];
1383
+ a[u] = [...f, ...d];
1384
1384
  } else if (n.indexOf(u) > -1)
1385
1385
  for (const f in l[u])
1386
1386
  if (a[u][f]) {
1387
- const p = a[u][f] instanceof Array ? a[u][f] : [a[u][f]], m = l[u][f] instanceof Array ? l[u][f] : [l[u][f]];
1388
- a[u][f] = [...p, ...m];
1387
+ const d = a[u][f] instanceof Array ? a[u][f] : [a[u][f]], g = l[u][f] instanceof Array ? l[u][f] : [l[u][f]];
1388
+ a[u][f] = [...d, ...g];
1389
1389
  } else
1390
1390
  a[u][f] = l[u][f];
1391
1391
  else if (u === "hook")
@@ -1394,14 +1394,14 @@ const kt = ["attrs", "props", "domProps", "scopedSlots"], Et = ["class", "style"
1394
1394
  else
1395
1395
  a[u] = l[u];
1396
1396
  else
1397
- i.indexOf(u) > -1 || n.indexOf(u) > -1 || o.indexOf(u) > -1 ? a[u] = b({}, l[u]) : s.indexOf(u) > -1 ? a[u] = l[u] instanceof Array ? [...l[u]] : typeof l[u] == "object" ? b({}, l[u]) : l[u] : a[u] = l[u];
1397
+ i.indexOf(u) > -1 || n.indexOf(u) > -1 || o.indexOf(u) > -1 ? a[u] = v({}, l[u]) : s.indexOf(u) > -1 ? a[u] = l[u] instanceof Array ? [...l[u]] : typeof l[u] == "object" ? v({}, l[u]) : l[u] : a[u] = l[u];
1398
1398
  return a;
1399
1399
  }, e);
1400
1400
  }, Mr = (t, e) => function() {
1401
1401
  t && t.apply(this, arguments), e && e.apply(this, arguments);
1402
- }, jt = ["type", "slot", "ignore", "emitPrefix", "value", "name", "native", "hidden", "display", "inject", "options", "emit", "nativeEmit", "link", "prefix", "suffix", "update", "sync", "optionsTo", "key", "slotUpdate", "computed", "preview", "component", "cache"], Ye = ["validate", "children", "control"], xe = ["effect", "deep", "renderSlots"];
1402
+ }, jt = ["type", "slot", "ignore", "emitPrefix", "value", "name", "native", "hidden", "display", "inject", "options", "emit", "nativeEmit", "link", "prefix", "suffix", "update", "sync", "optionsTo", "key", "slotUpdate", "computed", "preview", "component", "cache"], xe = ["validate", "children", "control"], Ye = ["effect", "deep", "renderSlots"];
1403
1403
  function It() {
1404
- return [...jt, ...kt, ...Et, ...Dt, ...Ye, ...xe];
1404
+ return [...jt, ...Rt, ...Et, ...Dt, ...xe, ...Ye];
1405
1405
  }
1406
1406
  function At(t, e, r) {
1407
1407
  return `[form-create ${t}]: ${e}`;
@@ -1415,8 +1415,8 @@ function Ur(t) {
1415
1415
  function qr(t) {
1416
1416
  return t == null ? "" : typeof t == "object" ? JSON.stringify(t, null, 2) : String(t);
1417
1417
  }
1418
- const ze = "[[FORM-CREATE-PREFIX-", Ke = "-FORM-CREATE-SUFFIX]]";
1419
- function be(t, e) {
1418
+ const We = "[[FORM-CREATE-PREFIX-", Ke = "-FORM-CREATE-SUFFIX]]";
1419
+ function ve(t, e) {
1420
1420
  return JSON.stringify(_e(Array.isArray(t) ? [] : {}, t, !0), function(r, i) {
1421
1421
  if (!(i && i._isVue === !0)) {
1422
1422
  if (typeof i != "function")
@@ -1424,19 +1424,19 @@ function be(t, e) {
1424
1424
  if (i.__json)
1425
1425
  return i.__json;
1426
1426
  if (i.__origin && (i = i.__origin), !i.__emit)
1427
- return ze + i + Ke;
1427
+ return We + i + Ke;
1428
1428
  }
1429
1429
  }, e);
1430
1430
  }
1431
1431
  function Te(t) {
1432
1432
  return new Function("return " + t)();
1433
1433
  }
1434
- function z(t, e) {
1434
+ function W(t, e) {
1435
1435
  if (t && h.String(t) && t.length > 4) {
1436
1436
  let r = t.trim(), i = !1;
1437
1437
  try {
1438
- if (r.indexOf(Ke) > 0 && r.indexOf(ze) === 0)
1439
- r = r.replace(Ke, "").replace(ze, ""), i = !0;
1438
+ if (r.indexOf(Ke) > 0 && r.indexOf(We) === 0)
1439
+ r = r.replace(Ke, "").replace(We, ""), i = !0;
1440
1440
  else if (r.indexOf("$FN:") === 0)
1441
1441
  r = r.substring(4), i = !0;
1442
1442
  else if (r.indexOf("$EXEC:") === 0)
@@ -1472,7 +1472,7 @@ err: ${s}`);
1472
1472
  }
1473
1473
  function Vt(t, e) {
1474
1474
  return JSON.parse(t, function(r, i) {
1475
- return h.Undef(i) || !i.indexOf ? i : z(i, e);
1475
+ return h.Undef(i) || !i.indexOf ? i : W(i, e);
1476
1476
  });
1477
1477
  }
1478
1478
  let Gr = 0;
@@ -1495,13 +1495,13 @@ function Xe(t, e) {
1495
1495
  };
1496
1496
  }
1497
1497
  function Pt(t, e) {
1498
- return Bt([t], e || !1)[0];
1498
+ return Lt([t], e || !1)[0];
1499
1499
  }
1500
- function Bt(t, e) {
1500
+ function Lt(t, e) {
1501
1501
  return _e([], [...t], e || !1);
1502
1502
  }
1503
- function x(t, e) {
1504
- return Y(Array.isArray(e) ? e : [e], t, { array: Ye, normal: xe }), t;
1503
+ function Y(t, e) {
1504
+ return x(Array.isArray(e) ? e : [e], t, { array: xe, normal: Ye }), t;
1505
1505
  }
1506
1506
  function ct(t) {
1507
1507
  const e = h.Function(t.getRule) ? t.getRule() : t;
@@ -1509,17 +1509,17 @@ function ct(t) {
1509
1509
  }
1510
1510
  function Hr(t, e) {
1511
1511
  return t ? (Object.keys(e || {}).forEach((r) => {
1512
- e[r] && (t[r] = x(t[r] || {}, e[r]));
1512
+ e[r] && (t[r] = Y(t[r] || {}, e[r]));
1513
1513
  }), t) : e;
1514
1514
  }
1515
- function Lt(t, e) {
1515
+ function Bt(t, e) {
1516
1516
  Object.defineProperties(t, Object.keys(e).reduce((r, i) => (r[i] = {
1517
1517
  get() {
1518
1518
  return e[i]();
1519
1519
  }
1520
1520
  }, r), {}));
1521
1521
  }
1522
- function Z(t) {
1522
+ function Q(t) {
1523
1523
  return t.__fc__ || (t.__origin__ ? t.__origin__.__fc__ : null);
1524
1524
  }
1525
1525
  function O(t, e) {
@@ -1530,22 +1530,22 @@ function O(t, e) {
1530
1530
  }
1531
1531
  return e;
1532
1532
  }
1533
- function Qe(t, e) {
1533
+ function Ze(t, e) {
1534
1534
  let r = null;
1535
- return h.Function(t) ? r = t() : Array.isArray(t) ? r = t.map((i) => Qe(i, e)) : r = t, r && e && H(r).forEach((i) => {
1535
+ return h.Function(t) ? r = t() : Array.isArray(t) ? r = t.map((i) => Ze(i, e)) : r = t, r && e && H(r).forEach((i) => {
1536
1536
  (Array.isArray(i) ? i : [i]).forEach((n) => {
1537
1537
  n && typeof n == "object" && (n.data || (n.data = {}), (!n.data.slot || n.data.slot === "default") && (n.data.slot = e || "default"));
1538
1538
  });
1539
1539
  }), r;
1540
1540
  }
1541
- function Jr(t, e) {
1541
+ function zr(t, e) {
1542
1542
  if (h.Object(t)) {
1543
1543
  const r = {};
1544
1544
  return Object.keys(t).forEach((i) => {
1545
- r[i] = Qe(t[i], i);
1545
+ r[i] = Ze(t[i], i);
1546
1546
  }), r;
1547
1547
  } else
1548
- return Qe(t, e);
1548
+ return Ze(t, e);
1549
1549
  }
1550
1550
  function Fe() {
1551
1551
  const t = {}, e = (r) => r || "default";
@@ -1563,7 +1563,7 @@ function Fe() {
1563
1563
  const n = s();
1564
1564
  Array.isArray(n) ? i.push(...n) : i.push(n);
1565
1565
  } else h.Undef(s) || i.push(s);
1566
- }), Jr(i, r);
1566
+ }), zr(i, r);
1567
1567
  },
1568
1568
  getSlots() {
1569
1569
  let r = [];
@@ -1621,12 +1621,12 @@ const ht = (t, e) => typeof t == "string" ? String(e) : typeof t == "number" ? N
1621
1621
  return new RegExp(e, "g").test(t);
1622
1622
  }
1623
1623
  };
1624
- function B(t, e) {
1624
+ function L(t, e) {
1625
1625
  return (Array.isArray(e) ? e : (e || "").split(".")).forEach((r) => {
1626
1626
  t != null && (t = t[r]);
1627
1627
  }), t;
1628
1628
  }
1629
- function Wr(t) {
1629
+ function Jr(t) {
1630
1630
  const e = /{{\s*(.*?)\s*}}/g;
1631
1631
  let r;
1632
1632
  const i = {};
@@ -1640,15 +1640,15 @@ function dt(t) {
1640
1640
  n === 0 ? i = s : i += "." + s, r.push(i);
1641
1641
  }), r.join(" && ");
1642
1642
  }
1643
- const ke = (t, e) => {
1643
+ const Re = (t, e) => {
1644
1644
  if (!(!t || t === e || !t.$props)) {
1645
1645
  if (t.$props.formCreateInject)
1646
1646
  return t.$props.formCreateInject;
1647
1647
  if (t.$parent)
1648
- return ke(t.$parent, e);
1648
+ return Re(t.$parent, e);
1649
1649
  }
1650
1650
  };
1651
- function zr(t, e, r) {
1651
+ function Wr(t, e, r) {
1652
1652
  const i = "FormCreate" + (t.isMobile ? "Mobile" : "");
1653
1653
  return {
1654
1654
  name: i,
@@ -1708,92 +1708,92 @@ function zr(t, e, r) {
1708
1708
  a = a.parent;
1709
1709
  else
1710
1710
  a = n;
1711
- const { rule: l, value: u, subForm: f, inFor: p } = lt(s), m = ie({
1711
+ const { rule: l, value: u, subForm: f, inFor: d } = lt(s), g = ie({
1712
1712
  ctxInject: {},
1713
1713
  destroyed: !1,
1714
1714
  isShow: !0,
1715
1715
  unique: 1,
1716
1716
  renderRule: [...l.value || []],
1717
1717
  updateValue: JSON.stringify(u.value || {})
1718
- }), g = new t(n), $ = g.api(), _ = p.value, D = () => {
1718
+ }), m = new t(n), $ = m.api(), _ = d.value, D = () => {
1719
1719
  if (o) {
1720
- const F = ke(n, o);
1720
+ const F = Re(n, o);
1721
1721
  if (F) {
1722
- let R;
1723
- _ ? (R = H(F.getSubForm()), R.push($)) : R = $, F.subForm(R);
1722
+ let k;
1723
+ _ ? (k = H(F.getSubForm()), k.push($)) : k = $, F.subForm(k);
1724
1724
  }
1725
1725
  }
1726
1726
  }, ee = () => {
1727
- const F = ke(n, o);
1727
+ const F = Re(n, o);
1728
1728
  if (F)
1729
1729
  if (_) {
1730
- const R = H(F.getSubForm()), N = R.indexOf($);
1731
- N > -1 && R.splice(N, 1);
1730
+ const k = H(F.getSubForm()), N = k.indexOf($);
1731
+ N > -1 && k.splice(N, 1);
1732
1732
  } else
1733
1733
  F.subForm();
1734
1734
  };
1735
1735
  let P = null;
1736
1736
  cr(() => {
1737
- L(() => {
1737
+ B(() => {
1738
1738
  let F = "";
1739
- const R = s.option && s.option.globalClass || {};
1740
- Object.keys(R).forEach((N) => {
1739
+ const k = s.option && s.option.globalClass || {};
1740
+ Object.keys(k).forEach((N) => {
1741
1741
  let de = "";
1742
- R[N].style && Object.keys(R[N].style).forEach((J) => {
1743
- de += ve(J) + ":" + R[N].style[J] + ";";
1744
- }), R[N].content && (de += R[N].content + ";"), de && (F += `.${N}{${de}}`);
1742
+ k[N].style && Object.keys(k[N].style).forEach((z) => {
1743
+ de += $e(z) + ":" + k[N].style[z] + ";";
1744
+ }), k[N].content && (de += k[N].content + ";"), de && (F += `.${N}{${de}}`);
1745
1745
  }), s.option && s.option.style && (F += s.option.style), P || (P = document.createElement("style"), P.type = "text/css", document.head.appendChild(P)), P.innerHTML = F || "";
1746
1746
  }, () => {
1747
1747
  });
1748
1748
  });
1749
1749
  const T = ne(() => {
1750
- g.bus.$emit("$loadData.$topForm");
1750
+ m.bus.$emit("$loadData.$topForm");
1751
1751
  }, 100), ce = ne(function() {
1752
- g.bus.$emit("$loadData.$scopeForm");
1752
+ m.bus.$emit("$loadData.$scopeForm");
1753
1753
  }, 100), Ve = ne(() => {
1754
- g.bus.$emit("$loadData.$form");
1754
+ m.bus.$emit("$loadData.$form");
1755
1755
  }, 100), he = (F) => {
1756
- g.bus.$emit("change-$form." + F);
1756
+ m.bus.$emit("change-$form." + F);
1757
1757
  };
1758
1758
  return hr(() => {
1759
- o && ($.top.bus.$on("$loadData.$form", T), $.top.bus.$on("change", he)), $ !== $.scope && $.scope.bus.$on("$loadData.$scopeForm", ce), g.mounted();
1759
+ o && ($.top.bus.$on("$loadData.$form", T), $.top.bus.$on("change", he)), $ !== $.scope && $.scope.bus.$on("$loadData.$scopeForm", ce), m.mounted();
1760
1760
  }), dr(() => {
1761
- o && ($.top.bus.$off("$loadData.$form", T), $.top.bus.$off("change", he)), $ !== $.scope && $.scope.bus.$off("$loadData.$scopeForm", ce), P && document.head.removeChild(P), ee(), m.destroyed = !0, g.unmount();
1761
+ o && ($.top.bus.$off("$loadData.$form", T), $.top.bus.$off("change", he)), $ !== $.scope && $.scope.bus.$off("$loadData.$scopeForm", ce), P && document.head.removeChild(P), ee(), g.destroyed = !0, m.unmount();
1762
1762
  }), pr(() => {
1763
- g.updated();
1764
- }), L(f, (F) => {
1763
+ m.updated();
1764
+ }), B(f, (F) => {
1765
1765
  F ? D() : ee();
1766
- }, { immediate: !0 }), L(() => s.option, () => {
1767
- g.initOptions(), $.refresh();
1768
- }, { deep: !0 }), L(() => [...l.value], (F) => {
1769
- g.$handle.isBreakWatch() || F.length === m.renderRule.length && F.every((R) => m.renderRule.indexOf(R) > -1) || (g.$handle.updateAppendData(), g.$handle.reloadRule(l.value), n.renderRule());
1770
- }), L(() => [s.disabled, s.preview], () => {
1766
+ }, { immediate: !0 }), B(() => s.option, () => {
1767
+ m.initOptions(), $.refresh();
1768
+ }, { deep: !0 }), B(() => [...l.value], (F) => {
1769
+ m.$handle.isBreakWatch() || F.length === g.renderRule.length && F.every((k) => g.renderRule.indexOf(k) > -1) || (m.$handle.updateAppendData(), m.$handle.reloadRule(l.value), n.renderRule());
1770
+ }), B(() => [s.disabled, s.preview], () => {
1771
1771
  $.refresh();
1772
- }), L(u, (F) => {
1773
- be(F || {}) !== m.updateValue && ($.config.forceCoverValue ? $.coverValue(F || {}) : $.setValue(F || {}));
1774
- }, { deep: !0, flush: "post" }), L(() => s.index, () => {
1775
- $.coverValue({}), g.$handle.updateAppendData(), A(() => {
1772
+ }), B(u, (F) => {
1773
+ ve(F || {}) !== g.updateValue && ($.config.forceCoverValue ? $.coverValue(F || {}) : $.setValue(F || {}));
1774
+ }, { deep: !0, flush: "post" }), B(() => s.index, () => {
1775
+ $.coverValue({}), m.$handle.updateAppendData(), A(() => {
1776
1776
  A(() => {
1777
1777
  $.clearValidateState();
1778
1778
  });
1779
1779
  });
1780
- }, { flush: "sync" }), U(b({
1781
- fc: me(g),
1780
+ }, { flush: "sync" }), U(v({
1781
+ fc: me(m),
1782
1782
  parent: o && me(o),
1783
1783
  top: me(a),
1784
1784
  fapi: me($)
1785
- }, lt(m)), {
1786
- getGroupInject: () => ke(n, o),
1785
+ }, lt(g)), {
1786
+ getGroupInject: () => Re(n, o),
1787
1787
  refresh() {
1788
- ++m.unique;
1788
+ ++g.unique;
1789
1789
  },
1790
1790
  renderRule() {
1791
- m.renderRule = [...l.value || []];
1791
+ g.renderRule = [...l.value || []];
1792
1792
  },
1793
1793
  updateValue(F) {
1794
- if (m.destroyed) return;
1795
- const R = be(F);
1796
- m.updateValue !== R && (m.updateValue = R, n.$emit("update:value", F), A(() => {
1794
+ if (g.destroyed) return;
1795
+ const k = ve(F);
1796
+ g.updateValue !== k && (g.updateValue = k, n.$emit("update:value", F), A(() => {
1797
1797
  Ve(), o ? f.value || ce() : (T(), ce());
1798
1798
  }));
1799
1799
  }
@@ -1840,7 +1840,7 @@ C(tt.prototype, {
1840
1840
  function Nt(t) {
1841
1841
  t.forEach((e) => {
1842
1842
  tt.prototype[e] = function(r) {
1843
- return x(this._data, { [e]: arguments.length < 2 ? r : { [r]: arguments[1] } }), this;
1843
+ return Y(this._data, { [e]: arguments.length < 2 ? r : { [r]: arguments[1] } }), this;
1844
1844
  };
1845
1845
  });
1846
1846
  }
@@ -1862,7 +1862,7 @@ function Xr() {
1862
1862
  factory: V
1863
1863
  };
1864
1864
  }
1865
- function Qr(t, e, r) {
1865
+ function Zr(t, e, r) {
1866
1866
  const i = `fail to ${t} ${r.status}'`, s = new Error(i);
1867
1867
  return s.status = r.status, s.url = t, s;
1868
1868
  }
@@ -1891,7 +1891,7 @@ function Ut(t) {
1891
1891
  t.onError(o);
1892
1892
  }, e.onload = function() {
1893
1893
  if (e.status < 200 || e.status >= 300)
1894
- return t.onError(Qr(r, t, e), mt(e));
1894
+ return t.onError(Zr(r, t, e), mt(e));
1895
1895
  t.onSuccess(mt(e));
1896
1896
  }, e.open(t.method || "get", r, !0);
1897
1897
  let i;
@@ -1905,11 +1905,11 @@ function Ut(t) {
1905
1905
  }
1906
1906
  function gt(t, e, r) {
1907
1907
  return new Promise((i, s) => {
1908
- (e || Ut)(U(b({}, t), {
1908
+ (e || Ut)(U(v({}, t), {
1909
1909
  onSuccess(n) {
1910
1910
  let o = (l) => l;
1911
- const a = z(t.parse);
1912
- h.Function(a) ? o = a : a && h.String(a) && (o = (l) => B(l, a)), i(o(n, void 0, r));
1911
+ const a = W(t.parse);
1912
+ h.Function(a) ? o = a : a && h.String(a) && (o = (l) => L(l, a)), i(o(n, void 0, r));
1913
1913
  },
1914
1914
  onError(n) {
1915
1915
  s(n);
@@ -1917,15 +1917,15 @@ function gt(t, e, r) {
1917
1917
  }));
1918
1918
  });
1919
1919
  }
1920
- function $e(t) {
1920
+ function be(t) {
1921
1921
  return G(t);
1922
1922
  }
1923
- function Zr(t) {
1923
+ function Qr(t) {
1924
1924
  function e(n) {
1925
1925
  return h.Undef(n) ? n = t.fields() : Array.isArray(n) || (n = [n]), n;
1926
1926
  }
1927
1927
  function r(n, o, a) {
1928
- h.Undef(n) ? n = Object.keys(b(b({}, t.fieldCtx), t.nameCtx)) : Array.isArray(n) || (n = [n]), n.forEach((l) => {
1928
+ h.Undef(n) ? n = Object.keys(v(v({}, t.fieldCtx), t.nameCtx)) : Array.isArray(n) || (n = [n]), n.forEach((l) => {
1929
1929
  const u = t.fieldCtx[l] || t.nameCtx[l];
1930
1930
  u && u.forEach((f) => {
1931
1931
  S(f.rule, o, a), t.$render.clearCache(f);
@@ -1997,21 +1997,24 @@ function Zr(t) {
1997
1997
  return o > -1 ? o : void 0;
1998
1998
  }
1999
1999
  },
2000
+ get formulas() {
2001
+ return v({}, t.fc.formulas);
2002
+ },
2000
2003
  formData(n) {
2001
2004
  if (n == null || typeof n == "boolean") {
2002
2005
  const o = {};
2003
2006
  return Object.keys(t.form).forEach((a) => {
2004
- (n === !0 || t.ignoreFields.indexOf(a) === -1) && (o[a] = $e(t.form[a]));
2007
+ (n === !0 || t.ignoreFields.indexOf(a) === -1) && (o[a] = be(t.form[a]));
2005
2008
  }), o;
2006
2009
  } else
2007
2010
  return e(n).reduce((o, a) => (o[a] = s.getValue(a), o), {});
2008
2011
  },
2009
2012
  getValue(n) {
2010
2013
  const o = t.getFieldCtx(n);
2011
- return o ? $e(o.rule.value) : t.options.appendValue !== !1 && E(t.appendData, n) ? $e(t.appendData[n]) : void 0;
2014
+ return o ? be(o.rule.value) : t.options.appendValue !== !1 && E(t.appendData, n) ? be(t.appendData[n]) : void 0;
2012
2015
  },
2013
2016
  coverValue(n) {
2014
- const o = b({}, n || {});
2017
+ const o = v({}, n || {});
2015
2018
  t.deferSyncValue(() => {
2016
2019
  t.appendData = {}, s.fields().forEach((a) => {
2017
2020
  const l = t.fieldCtx[a];
@@ -2045,7 +2048,7 @@ function Zr(t) {
2045
2048
  }, !0), o ? o.origin : void 0;
2046
2049
  },
2047
2050
  removeRule(n) {
2048
- const o = n && Z(n);
2051
+ const o = n && Q(n);
2049
2052
  if (o)
2050
2053
  return o.rm(), o.origin;
2051
2054
  },
@@ -2134,7 +2137,7 @@ function Zr(t) {
2134
2137
  n.forEach((a) => s.sync(a));
2135
2138
  return;
2136
2139
  }
2137
- let o = h.Object(n) ? Z(n) : t.getCtxs(n);
2140
+ let o = h.Object(n) ? Q(n) : t.getCtxs(n);
2138
2141
  o && (o = Array.isArray(o) ? o : [o], o.forEach((a) => {
2139
2142
  if (!a.deleted) {
2140
2143
  const l = t.subForm[a.id];
@@ -2171,7 +2174,7 @@ function Zr(t) {
2171
2174
  },
2172
2175
  mergeRule: (n, o) => {
2173
2176
  t.getCtxs(n).forEach((a) => {
2174
- x(a.rule, o);
2177
+ Y(a.rule, o);
2175
2178
  });
2176
2179
  },
2177
2180
  mergeRules(n) {
@@ -2218,7 +2221,7 @@ function Zr(t) {
2218
2221
  resetFields(n) {
2219
2222
  e(n).forEach((o) => {
2220
2223
  t.getCtxs(o).forEach((a) => {
2221
- t.$render.clearCache(a), a.rule.value = $e(a.defaultValue);
2224
+ t.$render.clearCache(a), a.rule.value = be(a.defaultValue);
2222
2225
  });
2223
2226
  }), A(() => {
2224
2227
  A(() => {
@@ -2238,7 +2241,7 @@ function Zr(t) {
2238
2241
  return O(() => s.method(n, o)(...a));
2239
2242
  },
2240
2243
  toJson(n) {
2241
- return be(s.rule, n);
2244
+ return ve(s.rule, n);
2242
2245
  },
2243
2246
  trigger(n, o, ...a) {
2244
2247
  const l = s.el(n);
@@ -2257,29 +2260,29 @@ function Zr(t) {
2257
2260
  return o ? t.subForm[o.id] : void 0;
2258
2261
  },
2259
2262
  getChildrenRuleList(n) {
2260
- const o = typeof n == "object", a = o ? Z(n) : t.getCtx(n), l = a ? a.rule : o ? n : s.getRule(n);
2263
+ const o = typeof n == "object", a = o ? Q(n) : t.getCtx(n), l = a ? a.rule : o ? n : s.getRule(n);
2261
2264
  if (!l)
2262
2265
  return [];
2263
2266
  const u = [];
2264
- return ((p) => {
2265
- p && p.forEach((m) => {
2266
- typeof m == "object" && (m.field && u.push(m), u.push(...s.getChildrenRuleList(m)));
2267
+ return ((d) => {
2268
+ d && d.forEach((g) => {
2269
+ typeof g == "object" && (g.field && u.push(g), u.push(...s.getChildrenRuleList(g)));
2267
2270
  });
2268
2271
  })(a ? a.loadChildrenPending() : l.children), u;
2269
2272
  },
2270
2273
  getParentRule(n) {
2271
- return (typeof n == "object" ? Z(n) : t.getCtx(n)).parent.rule;
2274
+ return (typeof n == "object" ? Q(n) : t.getCtx(n)).parent.rule;
2272
2275
  },
2273
2276
  getParentSubRule(n) {
2274
- const a = typeof n == "object" ? Z(n) : t.getCtx(n);
2277
+ const a = typeof n == "object" ? Q(n) : t.getCtx(n);
2275
2278
  if (a) {
2276
2279
  const l = a.getParentGroup();
2277
2280
  if (l)
2278
2281
  return l.rule;
2279
2282
  }
2280
2283
  },
2281
- getChildrenFormData(n) {
2282
- return s.getChildrenRuleList(n).reduce((a, l) => (a[l.field] = $e(l.value), a), {});
2284
+ getChildrenFormData(n, o) {
2285
+ return s.getChildrenRuleList(n).reduce((l, u) => ((u.ignore !== !0 || o === !0) && (l[u.field] = be(u.value)), l), {});
2283
2286
  },
2284
2287
  setChildrenFormData(n, o, a) {
2285
2288
  const l = s.getChildrenRuleList(n);
@@ -2292,7 +2295,7 @@ function Zr(t) {
2292
2295
  getGlobalEvent(n) {
2293
2296
  let o = s.options.globalEvent[n];
2294
2297
  if (o)
2295
- return typeof o == "object" && (o = o.handle), z(o);
2298
+ return typeof o == "object" && (o = o.handle), W(o);
2296
2299
  },
2297
2300
  getGlobalData(n) {
2298
2301
  return new Promise((o, a) => {
@@ -2303,11 +2306,11 @@ function Zr(t) {
2303
2306
  });
2304
2307
  },
2305
2308
  renderRule(n, o, a) {
2306
- const u = typeof n == "object" ? Z(n) : t.getCtx(n);
2309
+ const u = typeof n == "object" ? Q(n) : t.getCtx(n);
2307
2310
  return u ? t.$render.createRuleVnode(u, o, a) : void 0;
2308
2311
  },
2309
2312
  renderChildren(n, o, a) {
2310
- const u = typeof n == "object" ? Z(n) : t.getCtx(n);
2313
+ const u = typeof n == "object" ? Q(n) : t.getCtx(n);
2311
2314
  return u ? t.$render.createChildrenVnodes(u, o, a) : void 0;
2312
2315
  },
2313
2316
  nextTick(n) {
@@ -2329,17 +2332,19 @@ function Zr(t) {
2329
2332
  O(() => n.onSuccess && n.onSuccess(l)), o(l);
2330
2333
  }).catch((l) => {
2331
2334
  O(() => n.onError && n.onError(l)), a(l);
2332
- }));
2335
+ })).catch((l) => {
2336
+ });
2333
2337
  });
2334
2338
  },
2335
2339
  watchFetch(n, o, a, l) {
2336
2340
  return t.fc.watchLoadData((u, f) => {
2337
- let p = G(n);
2338
- p = t.loadFetchVar(p, u), !(l && l(p, f) === !1) && t.beforeFetch(p).then(() => gt(p, t.fc.create.fetch, s).then((m) => {
2339
- O(() => p.onSuccess && p.onSuccess(m)), o && o(m, f);
2340
- }).catch((m) => {
2341
- O(() => p.onError && p.onError(m)), a && a(m);
2342
- }));
2341
+ let d = G(n);
2342
+ d = t.loadFetchVar(d, u), !(l && l(d, f) === !1) && t.beforeFetch(d).then(() => gt(d, t.fc.create.fetch, s).then((g) => {
2343
+ O(() => d.onSuccess && d.onSuccess(g)), o && o(g, f);
2344
+ }).catch((g) => {
2345
+ O(() => d.onError && d.onError(g)), a && a(g);
2346
+ })).catch((g) => {
2347
+ });
2343
2348
  }, n.wait == null ? 1e3 : n.wait);
2344
2349
  },
2345
2350
  getData(n, o) {
@@ -2368,7 +2373,7 @@ function Zr(t) {
2368
2373
  };
2369
2374
  }), s.changeValue = s.changeField = s.setValue, s;
2370
2375
  }
2371
- function Yr(t) {
2376
+ function xr(t) {
2372
2377
  C(t.prototype, {
2373
2378
  initCache() {
2374
2379
  this.clearCacheAll();
@@ -2409,7 +2414,7 @@ function q(t) {
2409
2414
  function qt(t) {
2410
2415
  return t.replace(t[0], t[0].toLowerCase());
2411
2416
  }
2412
- function xr(t) {
2417
+ function Yr(t) {
2413
2418
  C(t.prototype, {
2414
2419
  initRender() {
2415
2420
  this.cacheConfig = {};
@@ -2418,7 +2423,7 @@ function xr(t) {
2418
2423
  const r = (i) => {
2419
2424
  if (i) {
2420
2425
  let s;
2421
- return e.rule.field && (s = i.$scopedSlots["field-" + ve(e.rule.field)] || i.$scopedSlots["field-" + e.rule.field]), s || (s = i.$scopedSlots["type-" + ve(e.type)] || i.$scopedSlots["type-" + e.type]), s || r(i.$pfc);
2426
+ return e.rule.field && (s = i.$scopedSlots["field-" + $e(e.rule.field)] || i.$scopedSlots["field-" + e.rule.field]), s || (s = i.$scopedSlots["type-" + $e(e.type)] || i.$scopedSlots["type-" + e.type]), s || r(i.$pfc);
2422
2427
  }
2423
2428
  };
2424
2429
  return r(this.vm);
@@ -2440,8 +2445,8 @@ function xr(t) {
2440
2445
  mergeGlobal(e) {
2441
2446
  this.$handle.options.global && (this.cacheConfig[e.trueType] || (this.cacheConfig[e.trueType] = ge(() => {
2442
2447
  const i = this.$handle.options.global;
2443
- return x({}, [i["*"] || i.default || {}, i[e.originType] || i[e.type] || i[e.type] || {}]);
2444
- })), e.prop = x({}, [this.cacheConfig[e.trueType].value, e.prop]));
2448
+ return Y({}, [i["*"] || i.default || {}, i[e.originType] || i[e.type] || i[e.type] || {}]);
2449
+ })), e.prop = Y({}, [this.cacheConfig[e.trueType].value, e.prop]));
2445
2450
  },
2446
2451
  setOptions(e) {
2447
2452
  const r = e.loadPending({ key: "options", origin: e.prop.options, def: [] });
@@ -2454,7 +2459,7 @@ function xr(t) {
2454
2459
  });
2455
2460
  },
2456
2461
  parseSide(e, r) {
2457
- return h.Object(e) ? x({ props: { formCreateInject: r.prop.props.formCreateInject } }, e) : e;
2462
+ return h.Object(e) ? Y({ props: { formCreateInject: r.prop.props.formCreateInject } }, e) : e;
2458
2463
  },
2459
2464
  renderSides(e, r, i) {
2460
2465
  const s = r[i ? "rule" : "prop"];
@@ -2490,8 +2495,8 @@ function xr(t) {
2490
2495
  };
2491
2496
  l.length && i.slotUpdate && O(() => i.slotUpdate(u));
2492
2497
  let f = [];
2493
- const p = e.loadChildrenPending();
2494
- e.parser.renderChildren ? f = e.parser.renderChildren(p, e) : e.parser.loadChildren !== !1 && (f = this.renderChildren(p, e)), Object.keys(n.renderSlots || {}).forEach(($) => {
2498
+ const d = e.loadChildrenPending();
2499
+ e.parser.renderChildren ? f = e.parser.renderChildren(d, e) : e.parser.loadChildren !== !1 && (f = this.renderChildren(d, e)), Object.keys(n.renderSlots || {}).forEach(($) => {
2495
2500
  f.push(this.renderRule({
2496
2501
  type: "template",
2497
2502
  slot: $
@@ -2502,9 +2507,9 @@ function xr(t) {
2502
2507
  return this.renderRule(_);
2503
2508
  })()));
2504
2509
  });
2505
- const m = this.getTypeSlot(e);
2506
- let g;
2507
- return m ? (u.children = f, g = m(u)) : g = a ? e.parser.preview(We(f), e) : e.parser.render(We(f), e), g = this.renderSides(g, e), !(!e.input && h.Undef(n.native)) && n.native !== !0 && (this.fc.targetFormDriver("updateWrap", e), g = this.$manager.makeWrap(e, g)), e.none && (Array.isArray(g) ? g = g.map(($) => !$ || !$.tag ? $ : this.none($)) : g = this.none(g)), o && this.setCache(e, () => this.stable(g), r), g;
2510
+ const g = this.getTypeSlot(e);
2511
+ let m;
2512
+ return g ? (u.children = f, m = g(u)) : m = a ? e.parser.preview(Je(f), e) : e.parser.render(Je(f), e), m = this.renderSides(m, e), !(!e.input && h.Undef(n.native)) && n.native !== !0 && (this.fc.targetFormDriver("updateWrap", e), m = this.$manager.makeWrap(e, m)), e.none && (Array.isArray(m) ? m = m.map(($) => !$ || !$.tag ? $ : this.none($)) : m = this.none(m)), o && this.setCache(e, () => this.stable(m), r), m;
2508
2513
  }, this.setCache(e, s, r);
2509
2514
  }
2510
2515
  return (...s) => {
@@ -2571,8 +2576,8 @@ function xr(t) {
2571
2576
  preview: e.prop.preview,
2572
2577
  options: e.prop.options,
2573
2578
  prop: function() {
2574
- const s = b({}, e.prop);
2575
- return s.on = s.on ? b({}, s.on) : {}, delete s.model, s;
2579
+ const s = v({}, e.prop);
2580
+ return s.on = s.on ? v({}, s.on) : {}, delete s.model, s;
2576
2581
  }(),
2577
2582
  children: e.loadChildrenPending()
2578
2583
  }), i;
@@ -2580,9 +2585,14 @@ function xr(t) {
2580
2585
  ctxProp(e) {
2581
2586
  const { ref: r, key: i, rule: s } = e;
2582
2587
  this.$manager.mergeProp(e), e.parser.mergeProp(e);
2583
- const n = b({}, e.prop.on || {}), o = {};
2588
+ const n = v({}, e.prop.on || {}), o = {};
2584
2589
  Object.keys(n).forEach((l) => {
2585
- l.indexOf("native.") === 0 && (o[l.replace("native.", "")] = n[l], delete n[l]);
2590
+ if (l.indexOf("native.") === 0)
2591
+ o[l.replace("native.", "")] = n[l], delete n[l];
2592
+ else if (this.$handle.options.transformEventName !== !1) {
2593
+ const u = $e(l);
2594
+ u !== l.toLowerCase() && !n[u] && (n[u] = n[l]);
2595
+ }
2586
2596
  }), e.prop.on = n;
2587
2597
  const a = [
2588
2598
  {
@@ -2619,7 +2629,7 @@ function xr(t) {
2619
2629
  }
2620
2630
  });
2621
2631
  }
2622
- return Y(a, e.prop), e.prop;
2632
+ return x(a, e.prop), e.prop;
2623
2633
  },
2624
2634
  onMounted(e) {
2625
2635
  e.el = this.vm.$refs[e.ref], e.el && ((e.el.$el || e.el).__rule__ = e.rule), e.parser.mounted(e), this.$handle.effect(e, "mounted"), this.$handle.targetHook(e, "mounted");
@@ -2681,7 +2691,7 @@ function xr(t) {
2681
2691
  h.trueArray(e.children) && e.children.forEach((a) => {
2682
2692
  a && n.setSlot(a == null ? void 0 : a.slot, () => this.renderRule(a));
2683
2693
  });
2684
- const o = b({}, e);
2694
+ const o = v({}, e);
2685
2695
  return delete o.type, delete o.is, this.vNode.make(s, o, n.mergeBag(r).getSlots());
2686
2696
  }
2687
2697
  });
@@ -2697,7 +2707,7 @@ function rt(t) {
2697
2707
  force: !1,
2698
2708
  tmpInput: null,
2699
2709
  id: ei++
2700
- }), Lt(this, {
2710
+ }), Bt(this, {
2701
2711
  options() {
2702
2712
  return t.options;
2703
2713
  },
@@ -2706,8 +2716,8 @@ function rt(t) {
2706
2716
  }
2707
2717
  }), this.initCache(), this.initRender();
2708
2718
  }
2709
- Yr(rt);
2710
2719
  xr(rt);
2720
+ Yr(rt);
2711
2721
  function ti(t) {
2712
2722
  C(t.prototype, {
2713
2723
  parseInjectEvent(e, r) {
@@ -2726,7 +2736,7 @@ function ti(t) {
2726
2736
  if (!s && Array.isArray(r) && r[0] && (h.String(r[0]) || h.Function(r[0])))
2727
2737
  return this.parseEventLst(e, r, i, !0);
2728
2738
  if (h.String(r)) {
2729
- const n = z(r);
2739
+ const n = W(r);
2730
2740
  if (n && r !== n)
2731
2741
  return n.__inject ? this.parseEvent(e, n, i, !0) : n;
2732
2742
  }
@@ -2735,16 +2745,16 @@ function ti(t) {
2735
2745
  let i = {}, s = e.rule, { emitPrefix: n, field: o, name: a, inject: l } = s, u = s[r ? "emit" : "nativeEmit"] || [];
2736
2746
  return h.trueArray(u) && u.forEach((f) => {
2737
2747
  if (!f) return;
2738
- let p, m = n || o || a;
2739
- if (h.Object(f) && (p = f.inject, f = f.name, m = f.prefix || m), m) {
2740
- r || (m = `native-${m}`);
2741
- const g = ve(`${m}-${f}`), $ = (..._) => {
2742
- this.vm.$emit(g, ..._), this.vm.$emit("emit-event", g, ..._), this.bus.$emit(g, ..._);
2748
+ let d, g = n || o || a;
2749
+ if (h.Object(f) && (d = f.inject, f = f.name, g = f.prefix || g), g) {
2750
+ r || (g = `native-${g}`);
2751
+ const m = $e(`${g}-${f}`), $ = (..._) => {
2752
+ this.vm.$emit(m, ..._), this.vm.$emit("emit-event", m, ..._), this.bus.$emit(m, ..._);
2743
2753
  };
2744
- if ($.__emit = !0, !p && l === !1)
2754
+ if ($.__emit = !0, !d && l === !1)
2745
2755
  i[f] = $;
2746
2756
  else {
2747
- let _ = p || l || this.options.injectEvent;
2757
+ let _ = d || l || this.options.injectEvent;
2748
2758
  i[f] = h.Undef(_) ? $ : this.inject(s, $, _);
2749
2759
  }
2750
2760
  }
@@ -2775,21 +2785,21 @@ function ti(t) {
2775
2785
  },
2776
2786
  loadStrVar(e, r, i) {
2777
2787
  if (e && typeof e == "string" && e.indexOf("{{") > -1 && e.indexOf("}}") > -1) {
2778
- const s = e, n = Wr(e);
2788
+ const s = e, n = Jr(e);
2779
2789
  let o;
2780
2790
  if (n.forEach((a) => {
2781
2791
  const l = a.split("||"), u = l[0].trim();
2782
2792
  if (u) {
2783
2793
  const f = (l[1] || "").trim();
2784
- let p, m = !1;
2794
+ let d, g = !1;
2785
2795
  if (i && u.indexOf("$form.") === 0) {
2786
- const g = u.split(".");
2787
- g.shift(), E(i.value, g[0]) && (m = !0, p = r ? r({
2788
- id: "$form." + g[0] + "_" + i.rule.__fc__.id,
2789
- getValue: () => B(i.value, g)
2790
- }) : B(i.value, g));
2796
+ const m = u.split(".");
2797
+ m.shift(), E(i.value, m[0]) && (g = !0, d = r ? r({
2798
+ id: "$form." + m[0] + "_" + i.rule.__fc__.id,
2799
+ getValue: () => L(i.value, m)
2800
+ }) : L(i.value, m));
2791
2801
  }
2792
- m || (p = r ? r(u, f) : this.fc.getLoadData(u, f)), o = p, e = e.replaceAll(`{{${a}}}`, p == null ? "" : p);
2802
+ g || (d = r ? r(u, f) : this.fc.getLoadData(u, f)), o = d, e = e.replaceAll(`{{${a}}}`, d == null ? "" : d);
2793
2803
  }
2794
2804
  }), n.length === 1 && s === `{{${n[0]}}}`)
2795
2805
  return o;
@@ -2876,7 +2886,7 @@ function Gt(t, e, r) {
2876
2886
  parent: null,
2877
2887
  group: e.subRule ? this : null,
2878
2888
  cacheConfig: null,
2879
- prop: b({}, e),
2889
+ prop: v({}, e),
2880
2890
  computed: {},
2881
2891
  payload: {},
2882
2892
  refRule: {},
@@ -2924,8 +2934,8 @@ C(Gt.prototype, {
2924
2934
  rule: this.rule,
2925
2935
  api: this.$api,
2926
2936
  update: (u) => {
2927
- const f = u || i, p = this.getPending(e, i);
2928
- this.setPending(e, r, f), o && o(f, p);
2937
+ const f = u || i, d = this.getPending(e, i);
2938
+ this.setPending(e, r, f), o && o(f, d);
2929
2939
  },
2930
2940
  reload: () => {
2931
2941
  const u = this.getPending(e, i);
@@ -2967,8 +2977,8 @@ C(Gt.prototype, {
2967
2977
  },
2968
2978
  initProp() {
2969
2979
  var e, r;
2970
- const t = b({}, this.rule);
2971
- delete t.children, delete t.validate, this.prop = x({}, [t, ...Object.keys(this.payload).map((i) => this.payload[i]), this.computed]), this.prop.validate = [...((r = (e = this.refRule) == null ? void 0 : e.__$validate) == null ? void 0 : r.value) || [], ...this.prop.validate || []];
2980
+ const t = v({}, this.rule);
2981
+ delete t.children, delete t.validate, this.prop = Y({}, [t, ...Object.keys(this.payload).map((i) => this.payload[i]), this.computed]), this.prop.validate = [...((r = (e = this.refRule) == null ? void 0 : e.__$validate) == null ? void 0 : r.value) || [], ...this.prop.validate || []];
2972
2982
  },
2973
2983
  initNone() {
2974
2984
  this.none = !(h.Undef(this.prop.display) || this.prop.display);
@@ -3048,7 +3058,7 @@ function oi(t) {
3048
3058
  __origin__: Xe(e, !0)
3049
3059
  }), ai(r), this.appendValue(r), [r, r.prefix, r.suffix].forEach((i) => {
3050
3060
  i && this.loadFn(i, r);
3051
- }), this.loadCtrl(r), r.update && (r.update = z(r.update)), r;
3061
+ }), this.loadCtrl(r), r.update && (r.update = W(r.update)), r;
3052
3062
  },
3053
3063
  loadFn(e, r) {
3054
3064
  ["on", "props", "nativeOn", "deep"].forEach((i) => {
@@ -3057,12 +3067,12 @@ function oi(t) {
3057
3067
  },
3058
3068
  loadCtrl(e) {
3059
3069
  e.control && e.control.forEach((r) => {
3060
- r.handle && (r.handle = z(r.handle));
3070
+ r.handle && (r.handle = W(r.handle));
3061
3071
  });
3062
3072
  },
3063
3073
  syncProp(e) {
3064
3074
  const r = e.rule;
3065
- h.trueArray(r.sync) && Y([{
3075
+ h.trueArray(r.sync) && x([{
3066
3076
  on: r.sync.reduce((i, s) => (i[typeof s == "object" && s.event || `update:${s}`] = (n) => {
3067
3077
  r.props[typeof s == "object" && s.prop || s] = n, this.vm.$emit("sync", s, n, r, this.fapi);
3068
3078
  }, i), {})
@@ -3096,25 +3106,25 @@ function oi(t) {
3096
3106
  let l = ct(o);
3097
3107
  const u = () => !!(l.field && this.fieldCtx[l.field] && this.fieldCtx[l.field][0] !== o.__fc__);
3098
3108
  this.fc.targetFormDriver("loadRule", { rule: l, api: this.api }, this.fc), this.ruleEffect(l, "init", { repeat: u() }), u() && this.vm.$emit("repeat-field", o, this.api);
3099
- let f, p = !1, m = !!o.__fc__, g = l.value;
3100
- if (m) {
3101
- if (f = o.__fc__, g = f.defaultValue, f.deleted) {
3109
+ let f, d = !1, g = !!o.__fc__, m = l.value;
3110
+ if (g) {
3111
+ if (f = o.__fc__, m = f.defaultValue, f.deleted) {
3102
3112
  if ($t(f))
3103
3113
  return;
3104
3114
  f.update(this);
3105
3115
  } else if (!f.check(this)) {
3106
3116
  if ($t(f))
3107
3117
  return;
3108
- e[a] = o = o._clone ? o._clone() : Vt(be(o)), f = null, p = !0;
3118
+ e[a] = o = o._clone ? o._clone() : Vt(ve(o)), f = null, d = !0;
3109
3119
  }
3110
3120
  }
3111
3121
  if (f)
3112
3122
  f.originType !== f.rule.type && f.updateType(), this.bindParser(f), this.appendValue(f.rule), f.parent && f.parent !== r && this.rmSubRuleData(f);
3113
3123
  else {
3114
3124
  const D = this.parseRule(o);
3115
- f = new Gt(this, D, g), this.bindParser(f);
3125
+ f = new Gt(this, D, m), this.bindParser(f);
3116
3126
  }
3117
- [!1, !0].forEach((D) => this.parseEmit(f, D)), this.syncProp(f), f.parent = r || null, f.root = e, this.setCtx(f), !p && !m && (this.effect(f, "load"), this.targetHook(f, "load")), this.effect(f, "created");
3127
+ [!1, !0].forEach((D) => this.parseEmit(f, D)), this.syncProp(f), f.parent = r || null, f.root = e, this.setCtx(f), !d && !g && (this.effect(f, "load"), this.targetHook(f, "load")), this.effect(f, "created");
3118
3128
  const $ = f.loadChildrenPending();
3119
3129
  if (f.parser.loadChildren === !1 || s($, f), !r) {
3120
3130
  const D = i(a);
@@ -3134,11 +3144,11 @@ function oi(t) {
3134
3144
  const r = li(e), i = [], s = this.api;
3135
3145
  if (!r.length) return !1;
3136
3146
  for (let a = 0; a < r.length; a++) {
3137
- const l = r[a], u = l.handle || function(p) {
3138
- return (fe[l.condition || "=="] || fe["=="])(p, l.value);
3147
+ const l = r[a], u = l.handle || function(d) {
3148
+ return (fe[l.condition || "=="] || fe["=="])(d, l.value);
3139
3149
  };
3140
3150
  if (!h.trueArray(l.rule)) continue;
3141
- const f = U(b({}, l), {
3151
+ const f = U(v({}, l), {
3142
3152
  valid: O(() => u(e.rule.value, s)),
3143
3153
  ctrl: ui(e, l.rule),
3144
3154
  isHidden: h.String(l.rule[0])
@@ -3149,13 +3159,13 @@ function oi(t) {
3149
3159
  const n = [];
3150
3160
  let o = !1;
3151
3161
  return this.deferSyncValue(() => {
3152
- i.reverse().forEach(({ isHidden: a, valid: l, rule: u, prepend: f, append: p, child: m, ctrl: g, method: $ }) => {
3162
+ i.reverse().forEach(({ isHidden: a, valid: l, rule: u, prepend: f, append: d, child: g, ctrl: m, method: $ }) => {
3153
3163
  if (a) {
3154
3164
  l ? e.ctrlRule.push({
3155
3165
  __ctrl: !0,
3156
3166
  children: u,
3157
3167
  valid: l
3158
- }) : g && e.ctrlRule.splice(e.ctrlRule.indexOf(g) >>> 0, 1), n[l ? "push" : "unshift"](() => {
3168
+ }) : m && e.ctrlRule.splice(e.ctrlRule.indexOf(m) >>> 0, 1), n[l ? "push" : "unshift"](() => {
3159
3169
  $ === "disabled" || $ === "enabled" ? this.api.disabled(!l, u) : $ === "display" || $ === "show" ? this.api.display(l, u) : $ === "required" ? (u.forEach((_) => {
3160
3170
  this.api.setEffect(_, "required", l);
3161
3171
  }), l || this.api.clearValidateState(u)) : $ === "if" ? this.api.hidden(!l, u) : this.api.hidden(!l, u);
@@ -3171,11 +3181,11 @@ function oi(t) {
3171
3181
  children: u
3172
3182
  };
3173
3183
  e.ctrlRule.push(_), this.bus.$once("load-start", () => {
3174
- f ? s.prepend(_, f, m) : p || m ? s.append(_, p || e.id, m) : e.root.splice(e.root.indexOf(e.origin) + 1, 0, _);
3184
+ f ? s.prepend(_, f, g) : d || g ? s.append(_, d || e.id, g) : e.root.splice(e.root.indexOf(e.origin) + 1, 0, _);
3175
3185
  });
3176
3186
  } else {
3177
- e.ctrlRule.splice(e.ctrlRule.indexOf(g), 1);
3178
- const _ = Z(g);
3187
+ e.ctrlRule.splice(e.ctrlRule.indexOf(m), 1);
3188
+ const _ = Q(m);
3179
3189
  _ && _.rm();
3180
3190
  }
3181
3191
  });
@@ -3190,7 +3200,7 @@ function oi(t) {
3190
3200
  },
3191
3201
  _reloadRule(e) {
3192
3202
  e || (e = this.rules);
3193
- const r = b({}, this.ctxs);
3203
+ const r = v({}, this.ctxs);
3194
3204
  this.clearNextTick(), this.initData(e), this.fc.rules = e, this.deferSyncValue(() => {
3195
3205
  this.bus.$once("load-end", () => {
3196
3206
  Object.keys(r).filter((i) => this.ctxs[i] === void 0).forEach((i) => this.rmCtx(r[i])), this.$render.clearCacheAll();
@@ -3293,7 +3303,7 @@ function fi(t) {
3293
3303
  }), this.vm.updateValue(e);
3294
3304
  },
3295
3305
  isChange(e, r) {
3296
- return JSON.stringify(this.getFormData(e), vt) !== JSON.stringify(r, vt);
3306
+ return JSON.stringify(this.getFormData(e), bt) !== JSON.stringify(r, bt);
3297
3307
  },
3298
3308
  isQuote(e, r) {
3299
3309
  return (r instanceof Function || h.Object(r) || Array.isArray(r)) && r === e.rule.value;
@@ -3326,7 +3336,7 @@ function fi(t) {
3326
3336
  }
3327
3337
  });
3328
3338
  }
3329
- function vt(t, e) {
3339
+ function bt(t, e) {
3330
3340
  return typeof e == "function" ? "" + e : e;
3331
3341
  }
3332
3342
  const Ee = {
@@ -3399,7 +3409,7 @@ function hi(t) {
3399
3409
  watchCtx(e) {
3400
3410
  if (It().filter((i) => i[0] !== "_" && i[0] !== "$" && ci.indexOf(i) === -1).forEach((i) => {
3401
3411
  const s = De(e.rule, i), n = i === "children";
3402
- e.refRule[i] = s, e.watch.push(L(n ? () => h.Function(s.value) ? s.value : [...s.value || []] : () => s.value, (o, a) => {
3412
+ e.refRule[i] = s, e.watch.push(B(n ? () => h.Function(s.value) ? s.value : [...s.value || []] : () => s.value, (o, a) => {
3403
3413
  let l = s.value;
3404
3414
  if (!this.isBreakWatch()) {
3405
3415
  if (n && e.parser.loadChildren === !1) {
@@ -3433,29 +3443,40 @@ function hi(t) {
3433
3443
  s && (i = this.api.t(s[1]));
3434
3444
  }
3435
3445
  return i;
3436
- }), e.refRule.__$validate = ge(() => H(e.rule.validate).map((i) => {
3437
- var n, o;
3438
- const s = b({}, i);
3439
- if (s.message) {
3440
- const a = s.message.match(/^\{\{\s*\$t\.(.+)\s*\}\}$/);
3441
- a && (s.message = this.api.t(a[1], { title: (o = (n = e.refRule) == null ? void 0 : n.__$title) == null ? void 0 : o.value }));
3442
- }
3443
- if (h.Function(s.validator)) {
3444
- const a = e;
3445
- return s.validator = function(...l) {
3446
- return i.validator.call({
3447
- that: this,
3448
- id: a.id,
3449
- field: a.field,
3450
- rule: a.rule,
3451
- api: a.$handle.api
3452
- }, ...l);
3453
- }, s;
3454
- }
3455
- return s;
3456
- })), e.input) {
3446
+ }), e.refRule.__$validate = ge(() => {
3447
+ const i = (s) => {
3448
+ var o, a;
3449
+ const n = s.match(/^\{\{\s*\$t\.(.+)\s*\}\}$/);
3450
+ return n ? this.api.t(n[1], { title: (a = (o = e.refRule) == null ? void 0 : o.__$title) == null ? void 0 : a.value }) : s;
3451
+ };
3452
+ return H(e.rule.validate).map((s) => {
3453
+ const n = v({}, s);
3454
+ if (n.message && (n.message = i(n.message)), h.Function(n.validator)) {
3455
+ const o = e;
3456
+ n.validator = function(...a) {
3457
+ return s.validator.call({
3458
+ that: this,
3459
+ id: o.id,
3460
+ field: o.field,
3461
+ rule: o.rule,
3462
+ api: o.$handle.api
3463
+ }, ...a);
3464
+ };
3465
+ }
3466
+ if (n.adapter) {
3467
+ if (typeof n.error == "object") {
3468
+ const o = v({}, n.error);
3469
+ Object.keys(o).forEach((a) => {
3470
+ o[a] = i(o[a]);
3471
+ }), n.error = o;
3472
+ }
3473
+ return this.adapterValidate(n, e);
3474
+ }
3475
+ return n;
3476
+ });
3477
+ }), e.input) {
3457
3478
  const i = De(e.rule, "value");
3458
- e.watch.push(L(() => i.value, () => {
3479
+ e.watch.push(B(() => i.value, () => {
3459
3480
  let s = e.parser.toFormValue(i.value, e);
3460
3481
  this.isChange(e, s) && this.setValue(e, i.value, s, !0);
3461
3482
  }));
@@ -3472,7 +3493,7 @@ function hi(t) {
3472
3493
  }), a = (l) => {
3473
3494
  s === "value" ? this.onInput(e, l) : s[0] === "$" ? this.api.setEffect(e.id, s, l) : se(e.rule, s, l);
3474
3495
  };
3475
- (s === "value" ? [void 0, null, ""].indexOf(e.rule.value) > -1 : o.value !== B(e.rule, s)) && a(o.value), e.watch.push(L(o, (l) => {
3496
+ (s === "value" ? [void 0, null, ""].indexOf(e.rule.value) > -1 : o.value !== L(e.rule, s)) && a(o.value), e.watch.push(B(o, (l) => {
3476
3497
  n = l, setTimeout(() => {
3477
3498
  a(l);
3478
3499
  });
@@ -3480,6 +3501,115 @@ function hi(t) {
3480
3501
  }));
3481
3502
  }), this.watchEffect(e);
3482
3503
  },
3504
+ adapterValidate(e, r) {
3505
+ const i = (s, n) => {
3506
+ if ((e.beforeValidate && O(() => e.beforeValidate({
3507
+ value: s,
3508
+ api: this.api,
3509
+ validate: e,
3510
+ rule: r.rule
3511
+ }))) === !1)
3512
+ n();
3513
+ else {
3514
+ const a = this.validator(s, e);
3515
+ if (a) {
3516
+ let l = "";
3517
+ typeof e.error == "object" && (l = e.error[a] || e.error.default), !l && typeof e.message == "string" && (l = e.message), l || (l = this.getValidateMessage(r, { key: a, rule: e[a] })), n(l);
3518
+ } else if (e.validator) {
3519
+ const l = e.validator && O(() => e.validator(s, n));
3520
+ l && h.Function(l.then) && l.then(() => n()).catch((u) => n(u));
3521
+ } else
3522
+ n();
3523
+ }
3524
+ };
3525
+ return this.$manager.adapterValidate({
3526
+ required: e.required,
3527
+ message: e.message,
3528
+ target: e.trigger
3529
+ }, i);
3530
+ },
3531
+ getValidateMessage(e, r) {
3532
+ var s, n;
3533
+ const i = Array.isArray(r.rule) ? r.rule.join(",") : "" + r.rule;
3534
+ return this.api.t(r.key === "required" ? r.key : "validate." + r.key, {
3535
+ [r.key]: i,
3536
+ title: (n = (s = e.refRule) == null ? void 0 : s.__$title) == null ? void 0 : n.value
3537
+ });
3538
+ },
3539
+ validator(e, r) {
3540
+ if (h.empty(e))
3541
+ return r.required ? "required" : void 0;
3542
+ for (const [s, n] of Object.entries(r))
3543
+ switch (s) {
3544
+ case "len":
3545
+ case "maxLen":
3546
+ case "minLen":
3547
+ const o = (m) => s === "len" ? m === n : s === "maxLen" ? m <= n : m >= n;
3548
+ if (Array.isArray(e)) {
3549
+ if (!o(e.length))
3550
+ return s;
3551
+ } else {
3552
+ if (typeof e == "object")
3553
+ return s;
3554
+ if (!o(("" + e).length))
3555
+ return s;
3556
+ }
3557
+ break;
3558
+ case "pattern":
3559
+ if (!(typeof n == "string" ? new RegExp(n) : n).test("" + e))
3560
+ return s;
3561
+ break;
3562
+ case "uppercase":
3563
+ if (n && (typeof e != "string" || !/^[A-Z]*$/.test(e)))
3564
+ return s;
3565
+ break;
3566
+ case "lowercase":
3567
+ if (n && (typeof e != "string" || !/^[a-z]*$/.test(e)))
3568
+ return s;
3569
+ break;
3570
+ case "min":
3571
+ case "max":
3572
+ case "positive":
3573
+ case "negative":
3574
+ case "integer":
3575
+ case "number":
3576
+ const l = Number(e);
3577
+ if (Number.isNaN(l) || s === "min" && l < n || s === "max" && l > n || s === "positive" && l <= 0 || s === "negative" && l >= 0 || s === "integer" && !Number.isInteger(l))
3578
+ return s;
3579
+ break;
3580
+ case "equal":
3581
+ if (e !== n)
3582
+ return s;
3583
+ break;
3584
+ case "enum":
3585
+ if (Array.isArray(n) && !n.includes(e))
3586
+ return s;
3587
+ break;
3588
+ case "hasKeys":
3589
+ if (typeof e != "object" || Array.isArray(n) && n.some((m) => !(m in e)))
3590
+ return s;
3591
+ break;
3592
+ case "email":
3593
+ if (!/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test("" + e))
3594
+ return s;
3595
+ break;
3596
+ case "url":
3597
+ if (!new RegExp(
3598
+ "^(?!mailto:)(?:(?:http|https|ftp)://)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$",
3599
+ "i"
3600
+ ).test("" + e))
3601
+ return s;
3602
+ break;
3603
+ case "ip":
3604
+ if (!/^(2(5[0-5]{1}|[0-4]\d{1})|[0-1]?\d{1,2})(\.(2(5[0-5]{1}|[0-4]\d{1})|[0-1]?\d{1,2})){3}$/.test("" + e))
3605
+ return s;
3606
+ break;
3607
+ case "phone":
3608
+ if (!/^(?:(?:\+|00)86)?1[3-9]\d{9}$/.test("" + e))
3609
+ return s;
3610
+ break;
3611
+ }
3612
+ },
3483
3613
  compute(e, r) {
3484
3614
  let i;
3485
3615
  if (typeof r == "object") {
@@ -3489,18 +3619,18 @@ function hi(t) {
3489
3619
  const l = a.mode === "OR";
3490
3620
  let u = !0;
3491
3621
  for (let f = 0; f < a.group.length; f++) {
3492
- const p = a.group[f];
3493
- let m, g = null;
3494
- if (p.variable)
3495
- g = JSON.stringify(this.fc.getLoadData(p.variable) || "");
3496
- else if (p.field)
3497
- g = dt(p.field || "");
3498
- else if (!p.mode)
3622
+ const d = a.group[f];
3623
+ let g, m = null;
3624
+ if (d.variable)
3625
+ m = JSON.stringify(this.fc.getLoadData(d.variable) || "");
3626
+ else if (d.field)
3627
+ m = dt(d.field || "");
3628
+ else if (!d.mode)
3499
3629
  return !0;
3500
- let $ = p.compare;
3501
- if ($ && ($ = dt($ || "")), p.mode ? m = n(p) : fe[p.condition] ? h.Function(p.handler) ? m = O(() => p.handler(this.api, e.rule)) : m = O(() => new Function("$condition", "$val", "$form", "$scope", "$group", "$rule", `with($form){with($scope){with(this){with($group){ return $condition['${p.condition}'](${g}, ${$ || "$val"}); }}}}`).call(this.api.form, fe, p.value, this.api.top.form, this.api.top === this.api.scope ? {} : this.api.scope.form, s ? this.subRuleData[s.id] || {} : {}, e.rule)) : m = !1, l && m)
3630
+ let $ = d.compare;
3631
+ if ($ && ($ = dt($ || "")), d.mode ? g = n(d) : fe[d.condition] ? h.Function(d.handler) ? g = O(() => d.handler(this.api, e.rule)) : g = O(() => new Function("$condition", "$val", "$form", "$scope", "$group", "$rule", `with($form){with($scope){with(this){with($group){ return $condition['${d.condition}'](${m}, ${$ || "$val"}); }}}}`).call(this.api.form, fe, d.value, this.api.top.form, this.api.top === this.api.scope ? {} : this.api.scope.form, s ? this.subRuleData[s.id] || {} : {}, e.rule)) : g = !1, l && g)
3502
3632
  return !0;
3503
- l || (u = u && m);
3633
+ l || (u = u && g);
3504
3634
  }
3505
3635
  return l ? !1 : u;
3506
3636
  };
@@ -3570,7 +3700,7 @@ function di(t) {
3570
3700
  emitEvent(e, ...r) {
3571
3701
  const i = this.options[e] || this.options[q("on-" + e)];
3572
3702
  if (i) {
3573
- const s = z(i);
3703
+ const s = W(i);
3574
3704
  h.Function(s) && O(() => s(...r));
3575
3705
  }
3576
3706
  this.bus.$emit(e, ...r);
@@ -3579,7 +3709,7 @@ function di(t) {
3579
3709
  var n, o;
3580
3710
  let s = (o = (n = e.prop) == null ? void 0 : n.hook) == null ? void 0 : o[r];
3581
3711
  s && (s = Array.isArray(s) ? s : [s], s.forEach((a) => {
3582
- O(() => a(U(b({}, i || {}), { self: e.rule, rule: e.rule, $f: this.api, api: this.api, option: this.vm.$props.option })));
3712
+ O(() => a(U(v({}, i || {}), { self: e.rule, rule: e.rule, $f: this.api, api: this.api, option: this.vm.$props.option })));
3583
3713
  }));
3584
3714
  }
3585
3715
  });
@@ -3614,7 +3744,7 @@ function pi(t) {
3614
3744
  }), Object.keys(e.rule).forEach((i) => {
3615
3745
  i[0] === "$" && (r[i.substr(1)] = () => e.rule[i]);
3616
3746
  }), Object.keys(r).forEach((i) => {
3617
- e.watch.push(L(r[i], (s) => {
3747
+ e.watch.push(B(r[i], (s) => {
3618
3748
  this.effect(e, "watch", { [i]: s });
3619
3749
  }, { deep: !0 }));
3620
3750
  });
@@ -3643,19 +3773,19 @@ function pi(t) {
3643
3773
  },
3644
3774
  emitEffect({ ctx: e, rule: r, input: i, type: s, custom: n }, o, a) {
3645
3775
  if (!s || ["fcFragment", "fragment"].indexOf(s) > -1) return;
3646
- const l = n || Object.keys(r).reduce((u, f) => (f[0] === "$" && (u[f.substr(1)] = r[f]), u), b({}, r.effect || {}));
3776
+ const l = n || Object.keys(r).reduce((u, f) => (f[0] === "$" && (u[f.substr(1)] = r[f]), u), v({}, r.effect || {}));
3647
3777
  Object.keys(l).forEach((u) => {
3648
3778
  const f = this.providers[u];
3649
3779
  if (!f || f.input && !i) return;
3650
- let p;
3780
+ let d;
3651
3781
  if (!f._c)
3652
- p = "*";
3782
+ d = "*";
3653
3783
  else if (f._used.indexOf(s) > -1)
3654
- p = s;
3784
+ d = s;
3655
3785
  else
3656
3786
  return;
3657
- const m = b({ value: l[u], getValue: () => this.getEffect(r, u) }, a || {});
3658
- e && (m.getProp = () => e.effectData(u), m.clearProp = () => e.clearEffectData(u), m.mergeProp = (g) => x(m.getProp(), [g]), m.id = e.id), this.bus.$emit(`p:${u}:${p}:${f.input ? 1 : 0}`, o, [m, r, this.api]);
3787
+ const g = v({ value: l[u], getValue: () => this.getEffect(r, u) }, a || {});
3788
+ e && (g.getProp = () => e.effectData(u), g.clearProp = () => e.clearEffectData(u), g.mergeProp = (m) => Y(g.getProp(), [m]), g.id = e.id), this.bus.$emit(`p:${u}:${d}:${f.input ? 1 : 0}`, o, [g, r, this.api]);
3659
3789
  });
3660
3790
  }
3661
3791
  });
@@ -3673,7 +3803,7 @@ function gi(t) {
3673
3803
  } else return h.String(e) ? [e] : !1;
3674
3804
  }
3675
3805
  function K(t) {
3676
- Lt(this, {
3806
+ Bt(this, {
3677
3807
  options() {
3678
3808
  return t.options.value || {};
3679
3809
  },
@@ -3710,7 +3840,7 @@ function K(t) {
3710
3840
  }), this.initData(t.rules), this.$manager = new t.manager(this), this.$render = new rt(this), this.api = t.extendApiFn.reduce((e, r) => {
3711
3841
  const i = O(() => r(e, this));
3712
3842
  return i && i !== e && C(e, i), e;
3713
- }, Zr(this));
3843
+ }, Qr(this));
3714
3844
  }
3715
3845
  C(K.prototype, {
3716
3846
  initData(t) {
@@ -3726,7 +3856,7 @@ C(K.prototype, {
3726
3856
  this.updateAppendData(), this.useProvider(), this.usePage(), this.loadRule(), this.$manager.__init(), this.lifecycle("created");
3727
3857
  },
3728
3858
  updateAppendData() {
3729
- this.appendData = b(b(b({}, this.options.formData || {}), this.fc.vm.$options.propsData.value || {}), this.appendData);
3859
+ this.appendData = v(v(v({}, this.options.formData || {}), this.fc.vm.$options.propsData.value || {}), this.appendData);
3730
3860
  },
3731
3861
  isBreakWatch() {
3732
3862
  return this.loading || this.noWatchFn || this.reloading;
@@ -3741,7 +3871,12 @@ C(K.prototype, {
3741
3871
  return new Promise((e, r) => {
3742
3872
  const i = t && t.beforeFetch && O(() => t.beforeFetch(t, { api: this.api }));
3743
3873
  i && h.Function(i.then) ? i.then(e).catch(r) : i === !1 ? r() : e();
3744
- }).then(() => this.globalBeforeFetch(t)).catch(() => {
3874
+ }).then(() => this.globalBeforeFetch(t));
3875
+ },
3876
+ beforeSubmit(t) {
3877
+ return new Promise((e, r) => {
3878
+ const i = this.options.beforeSubmit && O(() => this.options.beforeSubmit(t, { api: this.api }));
3879
+ i && h.Function(i.then) ? i.then(e).catch(r) : i === !1 ? r() : e();
3745
3880
  });
3746
3881
  }
3747
3882
  });
@@ -3764,7 +3899,7 @@ const yi = "fcFragment", Ne = {
3764
3899
  function $i(t) {
3765
3900
  return h.String(t) ? { domProps: { innerHTML: t } } : t;
3766
3901
  }
3767
- function vi() {
3902
+ function bi() {
3768
3903
  const t = {};
3769
3904
  function e(r) {
3770
3905
  r && this.setVm(r);
@@ -3796,7 +3931,7 @@ function vi() {
3796
3931
  },
3797
3932
  use(r) {
3798
3933
  Object.keys(r).forEach((i) => {
3799
- const s = ve(i), n = qr(i).toLocaleLowerCase(), o = r[i];
3934
+ const s = $e(i), n = qr(i).toLocaleLowerCase(), o = r[i];
3800
3935
  [i, s, n].forEach((a) => {
3801
3936
  e.alias(i, o), e.prototype[a] = function(l, u) {
3802
3937
  return this.make(o, l, u);
@@ -3806,7 +3941,7 @@ function vi() {
3806
3941
  }
3807
3942
  }), e;
3808
3943
  }
3809
- function bi(t) {
3944
+ function vi(t) {
3810
3945
  class e extends Ht {
3811
3946
  }
3812
3947
  return Object.assign(e.prototype, t), e;
@@ -3839,6 +3974,9 @@ C(Ht.prototype, {
3839
3974
  form() {
3840
3975
  return this.vm.$refs[this.ref];
3841
3976
  },
3977
+ adapterValidate(t, e) {
3978
+ return t.validator = (r, i, s) => e(i, s), t;
3979
+ },
3842
3980
  getSlot(t) {
3843
3981
  const e = (r) => {
3844
3982
  if (r) {
@@ -3849,7 +3987,7 @@ C(Ht.prototype, {
3849
3987
  return e(this.vm);
3850
3988
  },
3851
3989
  mergeOptions(t, e) {
3852
- return Y(t.map((r) => this.tidyOptions(r)), e, this.mergeOptionsRule);
3990
+ return x(t.map((r) => this.tidyOptions(r)), e, this.mergeOptionsRule);
3853
3991
  },
3854
3992
  updateOptions(t) {
3855
3993
  this.$handle.fc.targetFormDriver("updateOptions", t, { handle: this.$handle, api: this.$handle.api }), this.options = this.mergeOptions([t], this.getDefaultOptions()), this.update();
@@ -3877,12 +4015,12 @@ const _i = function(t) {
3877
4015
  const o = [];
3878
4016
  n.forEach((a) => {
3879
4017
  if (a && (a.attr || a.template)) {
3880
- let l = (p) => {
3881
- let m;
3882
- a.template ? m = t.$handle.loadStrVar(a.template, p) : a.handler && h.Function(a.handler) ? m = a.handler(p, i, s) : m = p(a.attr, a.default), a.copy !== !1 && (m = G(m));
3883
- const g = a.modify ? i : r.getProp();
3884
- a.to === "child" ? g.children ? S(g.children, 0, m) : S(g, "children", [m]) : se(g, a.to || "options", m), s.sync(i);
3885
- }, u = (p) => l(p);
4018
+ let l = (d) => {
4019
+ let g;
4020
+ a.template ? g = t.$handle.loadStrVar(a.template, d) : a.handler && h.Function(a.handler) ? g = a.handler(d, i, s) : g = d(a.attr, a.default), a.copy !== !1 && (g = G(g));
4021
+ const m = a.modify ? i : r.getProp();
4022
+ a.to === "child" ? m.children ? S(m.children, 0, g) : S(m, "children", [g]) : se(m, a.to || "options", g), s.sync(i);
4023
+ }, u = (d) => l(d);
3886
4024
  const f = t.watchLoadData(u);
3887
4025
  l = ne(l, a.wait || 300), a.watch !== !1 ? o.push(f) : f();
3888
4026
  }
@@ -3908,13 +4046,13 @@ const _i = function(t) {
3908
4046
  const l = n[a];
3909
4047
  if (l) {
3910
4048
  const u = typeof l == "object";
3911
- let f = (g) => {
3912
- let $ = t.t(u ? l.attr : l, u ? l.params : null, g);
4049
+ let f = (m) => {
4050
+ let $ = t.t(u ? l.attr : l, u ? l.params : null, m);
3913
4051
  const _ = u && l.modify ? i : r.getProp();
3914
4052
  a === "child" ? _.children ? S(_.children, 0, $) : S(_, "children", [$]) : se(_, a, $), s.sync(i);
3915
- }, p = (g) => f(g);
3916
- const m = t.watchLoadData(p);
3917
- f = ne(f, l.wait || 300), l.watch !== !1 ? o.push(m) : m();
4053
+ }, d = (m) => f(m);
4054
+ const g = t.watchLoadData(d);
4055
+ f = ne(f, l.wait || 300), l.watch !== !1 ? o.push(g) : g();
3918
4056
  }
3919
4057
  }), this._fn[r.id] = o;
3920
4058
  },
@@ -3925,7 +4063,7 @@ const _i = function(t) {
3925
4063
  }
3926
4064
  };
3927
4065
  return e.watch = e.loaded, e;
3928
- }, Jt = {
4066
+ }, zt = {
3929
4067
  name: "componentValidate",
3930
4068
  load(t, e, r) {
3931
4069
  let i = t.getValue();
@@ -3934,9 +4072,9 @@ const _i = function(t) {
3934
4072
  else {
3935
4073
  h.Object(i) || (i = { method: i });
3936
4074
  const s = i.method;
3937
- delete i.method, t.getProp().validate = [U(b({}, i), {
4075
+ delete i.method, t.getProp().validate = [U(v({}, i), {
3938
4076
  validator(...n) {
3939
- const o = Z(e);
4077
+ const o = Q(e);
3940
4078
  if (o)
3941
4079
  return r.exec(o.id, h.String(s) ? s : "formCreateValidate", ...n, {
3942
4080
  attr: t,
@@ -3948,7 +4086,7 @@ const _i = function(t) {
3948
4086
  }
3949
4087
  },
3950
4088
  watch(...t) {
3951
- Jt.load(...t);
4089
+ zt.load(...t);
3952
4090
  }
3953
4091
  }, wi = function(t) {
3954
4092
  function e(s) {
@@ -3960,48 +4098,48 @@ const _i = function(t) {
3960
4098
  function r(s, n, o) {
3961
4099
  let a = s.value;
3962
4100
  i.deleted(s), h.Function(a) && (a = a(n, o)), a = e(a);
3963
- const l = (p) => {
3964
- p === void 0 ? s.clearProp() : se(s.getProp(), a.to || "options", p), o.sync(n);
4101
+ const l = (d) => {
4102
+ d === void 0 ? s.clearProp() : se(s.getProp(), a.to || "options", d), o.sync(n);
3965
4103
  };
3966
4104
  if (!a || !a.action && !a.key) {
3967
4105
  l(void 0);
3968
4106
  return;
3969
4107
  }
3970
4108
  if (a = G(a), a.to || (a.to = "options"), a.key) {
3971
- const p = t.$handle.options.globalData[a.key];
3972
- if (!p) {
4109
+ const d = t.$handle.options.globalData[a.key];
4110
+ if (!d) {
3973
4111
  l(void 0);
3974
4112
  return;
3975
4113
  }
3976
- if (p.type === "static") {
3977
- l(p.data);
4114
+ if (d.type === "static") {
4115
+ l(d.data);
3978
4116
  return;
3979
4117
  } else
3980
- a = b(b({}, a), p);
4118
+ a = v(v({}, a), d);
3981
4119
  }
3982
4120
  const u = a.onError, f = () => {
3983
4121
  if (!s.getValue())
3984
4122
  return s.clearProp(), o.sync(n), !0;
3985
4123
  };
3986
- i._fn[s.id] = t.watchLoadData(ne((p, m) => {
3987
- if (m && a.watch === !1)
4124
+ i._fn[s.id] = t.watchLoadData(ne((d, g) => {
4125
+ if (g && a.watch === !1)
3988
4126
  return i._fn[s.id]();
3989
- const g = t.$handle.loadFetchVar(G(a), p, n), $ = U(b({
4127
+ const m = t.$handle.loadFetchVar(G(a), d, n), $ = U(v({
3990
4128
  headers: {}
3991
- }, g), {
4129
+ }, m), {
3992
4130
  onSuccess(_, D) {
3993
4131
  if (f()) return;
3994
4132
  let ee = (T) => D ? T : E(T, "data") ? T.data : T;
3995
- const P = z(g.parse);
3996
- h.Function(P) ? ee = P : P && h.String(P) && (ee = (T) => B(T, P)), l(ee(_, n, o));
4133
+ const P = W(m.parse);
4134
+ h.Function(P) ? ee = P : P && h.String(P) && (ee = (T) => L(T, P)), l(ee(_, n, o));
3997
4135
  },
3998
4136
  onError(_) {
3999
- l(void 0), !f() && (u || ((D) => et(D.message || "fetch fail " + g.action)))(_, n, o);
4137
+ l(void 0), !f() && (u || ((D) => et(D.message || "fetch fail " + m.action)))(_, n, o);
4000
4138
  }
4001
4139
  });
4002
4140
  t.$handle.beforeFetch($, { rule: n, api: o }).then(() => {
4003
- if (h.Function(g.action)) {
4004
- g.action(n, o).then((_) => {
4141
+ if (h.Function(m.action)) {
4142
+ m.action(n, o).then((_) => {
4005
4143
  $.onSuccess(_, !0);
4006
4144
  }).catch((_) => {
4007
4145
  $.onError(_);
@@ -4009,6 +4147,7 @@ const _i = function(t) {
4009
4147
  return;
4010
4148
  }
4011
4149
  O(() => t.create.fetch($, { inject: s, rule: n, api: o }));
4150
+ }).catch((_) => {
4012
4151
  });
4013
4152
  }, a.wait || 600));
4014
4153
  }
@@ -4030,7 +4169,7 @@ const _i = function(t) {
4030
4169
  fetch: wi,
4031
4170
  loadData: _i,
4032
4171
  t: Ci,
4033
- componentValidate: Jt
4172
+ componentValidate: zt
4034
4173
  };
4035
4174
  function Fi(t) {
4036
4175
  t = t || /* @__PURE__ */ new Map();
@@ -4056,7 +4195,7 @@ function Fi(t) {
4056
4195
  };
4057
4196
  return e;
4058
4197
  }
4059
- const Si = "html", Ri = {
4198
+ const Si = "html", ki = {
4060
4199
  name: Si,
4061
4200
  loadChildren: !1,
4062
4201
  render(t, e) {
@@ -4066,7 +4205,7 @@ const Si = "html", Ri = {
4066
4205
  return Array.isArray(t) ? t.filter((e) => h.String(e)).join("") : "";
4067
4206
  }
4068
4207
  };
4069
- function ki(t) {
4208
+ function Ri(t) {
4070
4209
  t = t + "=";
4071
4210
  const r = decodeURIComponent(document.cookie).split(";");
4072
4211
  for (let i = 0; i < r.length; i++) {
@@ -4109,10 +4248,10 @@ function it(t, e) {
4109
4248
  return null;
4110
4249
  const r = e.split(".");
4111
4250
  let i = t(r.shift());
4112
- return r.length ? i == null ? null : B(i, r) : i;
4251
+ return r.length ? i == null ? null : L(i, r) : i;
4113
4252
  }
4114
4253
  function ji(t) {
4115
- return it(ki, t);
4254
+ return it(Ri, t);
4116
4255
  }
4117
4256
  function Ii(t) {
4118
4257
  return it(Ei, t);
@@ -4120,14 +4259,64 @@ function Ii(t) {
4120
4259
  function Ai(t) {
4121
4260
  return it(Di, t);
4122
4261
  }
4123
- function Vi(t, e) {
4262
+ const Vi = {
4263
+ en: {
4264
+ required: "{title} is required",
4265
+ validate: {
4266
+ url: "{title} is not a valid url",
4267
+ email: "{title} is not a valid email",
4268
+ ip: "{title} {title} is not a valid ip",
4269
+ phone: "{title} {title} is not a valid phone",
4270
+ pattern: "{title} does not match pattern {pattern}",
4271
+ uppercase: "{title} must be all uppercase",
4272
+ lowercase: "{title} must be all lowercased",
4273
+ positive: "{title} is not a positive number",
4274
+ negative: "{title} is not a negative number",
4275
+ equal: "{title} is not equal to {equal}",
4276
+ min: "{title} cannot be less than {min}",
4277
+ max: "{title} cannot be greater than {max}",
4278
+ enum: "{title} must be one of {enum}",
4279
+ hasKeys: "{title} does not contain required fields {hasKeys}",
4280
+ minLen: "{title} must be at least {minLen}",
4281
+ maxLen: "{title} cannot be longer than {maxLen}",
4282
+ len: "{title} must be exactly {len}",
4283
+ integer: "{title} is not an integer",
4284
+ number: "{title} is not an number"
4285
+ }
4286
+ },
4287
+ "zh-cn": {
4288
+ required: "{title}不能为空",
4289
+ validate: {
4290
+ url: "{title}不是有效的 url 地址",
4291
+ email: "{title}不是有效的邮箱地址",
4292
+ ip: "{title}不是有效的 IP 地址",
4293
+ phone: "{title}不是正确的手机号",
4294
+ pattern: "{title}必须匹配 {pattern}",
4295
+ uppercase: "{title}必须全大写",
4296
+ lowercase: "{title}必须全小写",
4297
+ positive: "{title}不是正数",
4298
+ negative: "{title}不是负数",
4299
+ equal: "{title}必须等于 {equal}",
4300
+ min: "{title}必须大于等于 {min}",
4301
+ max: "{title}必须小于等于 {max}",
4302
+ enum: "{title}必须是 {enum} 之一",
4303
+ hasKeys: "{title}必须包含 {hasKeys} 字段",
4304
+ minLen: "{title}长度必须大于 {minLen}",
4305
+ maxLen: "{title}长度必须小于 {maxLen}",
4306
+ len: "{title}长度必须为 {len}",
4307
+ integer: "{title}必须为整数",
4308
+ number: "{title}必须为数字"
4309
+ }
4310
+ }
4311
+ };
4312
+ function Pi(t, e) {
4124
4313
  let r;
4125
4314
  return arguments.length === 2 ? (r = arguments[1], e = r[t]) : r = arguments[2], { id: e, prop: r };
4126
4315
  }
4127
4316
  function Me() {
4128
- return Vi("name", ...arguments);
4317
+ return Pi("name", ...arguments);
4129
4318
  }
4130
- function Pi(t) {
4319
+ function Li(t) {
4131
4320
  return !t || !t.el ? window.document.body : h.Element(t.el) ? t.el : document.querySelector(t.el);
4132
4321
  }
4133
4322
  function Bi(t, e) {
@@ -4141,29 +4330,29 @@ function Bi(t, e) {
4141
4330
  });
4142
4331
  return r.$mount(), r;
4143
4332
  }
4144
- function Li(t) {
4333
+ function Ti(t) {
4145
4334
  const e = t.key || [], r = t.array || [], i = t.normal || [];
4146
- jt.push(...e), Ye.push(...r), xe.push(...i), Nt([...e, ...r, ...i]);
4335
+ jt.push(...e), xe.push(...r), Ye.push(...i), Nt([...e, ...r, ...i]);
4147
4336
  }
4148
- let Ti = 1;
4149
- const M = {}, Re = Symbol("defValue");
4150
- function Wt(t) {
4337
+ let Ni = 1;
4338
+ const M = {}, ke = Symbol("defValue");
4339
+ function Jt(t) {
4151
4340
  const e = {
4152
4341
  [Ne.name]: Ne
4153
4342
  }, r = {}, i = {}, s = {}, n = {}, o = [], a = [], l = [
4154
4343
  t.extendApi
4155
- ], u = b({}, Oi), f = Xr();
4156
- let p = { global: {} };
4157
- const m = t.isMobile === !0, g = ie({
4158
- $mobile: m
4159
- }), $ = vi(), _ = {}, D = {};
4160
- Li(t.attrs || {});
4344
+ ], u = v({}, Oi), f = Xr();
4345
+ let d = { global: {} };
4346
+ const g = t.isMobile === !0, m = ie({
4347
+ $mobile: g
4348
+ }), $ = bi(), _ = {}, D = {};
4349
+ Ti(t.attrs || {});
4161
4350
  function ee(c) {
4162
- const d = M[c];
4163
- if (Array.isArray(d))
4164
- return d.map((y) => y.api());
4165
- if (d)
4166
- return d.api();
4351
+ const p = M[c];
4352
+ if (Array.isArray(p))
4353
+ return p.map((y) => y.api());
4354
+ if (p)
4355
+ return p.api();
4167
4356
  }
4168
4357
  function P(c) {
4169
4358
  o.push(c);
@@ -4174,7 +4363,7 @@ function Wt(t) {
4174
4363
  }
4175
4364
  function ce() {
4176
4365
  const c = Me(...arguments);
4177
- c.id && c.prop && (u[c.id] = h.Function(c.prop) ? c.prop : U(b({}, c.prop), {
4366
+ c.id && c.prop && (u[c.id] = h.Function(c.prop) ? c.prop : U(v({}, c.prop), {
4178
4367
  name: c.id
4179
4368
  }));
4180
4369
  }
@@ -4184,38 +4373,38 @@ function Wt(t) {
4184
4373
  function he() {
4185
4374
  const c = Me(...arguments);
4186
4375
  if (!c.id || !c.prop) return Ee;
4187
- const d = q(c.id), y = c.prop, v = y.merge === !0 ? r[d] : void 0;
4188
- r[d] = Se(y, v || Ee), f[d] = V(d), y.maker && C(f, y.maker);
4376
+ const p = q(c.id), y = c.prop, b = y.merge === !0 ? r[p] : void 0;
4377
+ r[p] = Se(y, b || Ee), f[p] = V(p), y.maker && C(f, y.maker);
4189
4378
  }
4190
- function F(c, d) {
4379
+ function F(c, p) {
4191
4380
  let y;
4192
4381
  if (h.String(c)) {
4193
- if (y = c, d === void 0)
4194
- return ["form-create", "formcreate"].indexOf(y) > -1 ? R() : e[y];
4382
+ if (y = c, p === void 0)
4383
+ return ["form-create", "formcreate"].indexOf(y) > -1 ? k() : e[y];
4195
4384
  } else
4196
- y = q(c.name), d = c;
4197
- if (!y || !d) return;
4198
- const v = q(y);
4199
- e[y] = d, e[v] = d, delete $.aliasMap[y], delete $.aliasMap[v], delete r[y], delete r[v], d.formCreateParser && he(y, d.formCreateParser);
4385
+ y = q(c.name), p = c;
4386
+ if (!y || !p) return;
4387
+ const b = q(y);
4388
+ e[y] = p, e[b] = p, delete $.aliasMap[y], delete $.aliasMap[b], delete r[y], delete r[b], p.formCreateParser && he(y, p.formCreateParser);
4200
4389
  }
4201
- function R() {
4202
- return zr(Be, e, i);
4390
+ function k() {
4391
+ return Wr(Le, e, i);
4203
4392
  }
4204
4393
  function N() {
4205
4394
  return Ne;
4206
4395
  }
4207
- function de(c, d) {
4208
- return h.Function(c.install) ? c.install(J, d) : h.Function(c) && c(J, d), this;
4396
+ function de(c, p) {
4397
+ return h.Function(c.install) ? c.install(z, p) : h.Function(c) && c(z, p), this;
4209
4398
  }
4210
- function J(c, d, y) {
4211
- let v = Bi(c, d || {});
4212
- const w = v.$refs.fc.formCreate;
4213
- return w.$parent = y, Pi(w.options).appendChild(v.$el), w.api();
4399
+ function z(c, p, y) {
4400
+ let b = Bi(c, p || {});
4401
+ const w = b.$refs.fc.formCreate;
4402
+ return w.$parent = y, Li(w.options).appendChild(b.$el), w.api();
4214
4403
  }
4215
- Se(J, D);
4404
+ Se(z, D);
4216
4405
  function Kt(c) {
4217
- let d = b({}, t);
4218
- return c ? d.inherit = {
4406
+ let p = v({}, t);
4407
+ return c ? p.inherit = {
4219
4408
  components: e,
4220
4409
  parsers: r,
4221
4410
  directives: i,
@@ -4224,65 +4413,65 @@ function Wt(t) {
4224
4413
  useApps: o,
4225
4414
  maker: f,
4226
4415
  formulas: _,
4227
- loadData: g
4228
- } : delete d.inherit, Wt(d);
4416
+ loadData: m
4417
+ } : delete p.inherit, Jt(p);
4229
4418
  }
4230
- function Xt(c, d) {
4231
- s[c] = d;
4419
+ function Xt(c, p) {
4420
+ s[c] = p;
4232
4421
  }
4233
- function Qt(c, d) {
4234
- _[c] = d;
4422
+ function Zt(c, p) {
4423
+ _[c] = p;
4235
4424
  }
4236
- function Zt(c, d) {
4237
- const y = n[c] || {}, v = y.parsers || {};
4238
- d.parsers && Object.keys(d.parsers).forEach((w) => {
4239
- v[w] = Se(d.parsers[w], Ee);
4240
- }), d.name = c, n[c] = U(b(b({}, y), d), { parsers: v });
4425
+ function Qt(c, p) {
4426
+ const y = n[c] || {}, b = y.parsers || {};
4427
+ p.parsers && Object.keys(p.parsers).forEach((w) => {
4428
+ b[w] = Se(p.parsers[w], Ee);
4429
+ }), p.name = c, n[c] = U(v(v({}, y), p), { parsers: b });
4241
4430
  }
4242
4431
  function Ce(c) {
4243
- c && Object.keys(M).forEach((d) => {
4244
- (Array.isArray(M[d]) ? M[d] : [M[d]]).forEach((v) => {
4245
- v.bus.$emit("$loadData." + c);
4432
+ c && Object.keys(M).forEach((p) => {
4433
+ (Array.isArray(M[p]) ? M[p] : [M[p]]).forEach((b) => {
4434
+ b.bus.$emit("$loadData." + c);
4246
4435
  });
4247
4436
  });
4248
4437
  }
4249
- function Pe(c, d) {
4250
- se(g, c, d), Ce(c);
4438
+ function Pe(c, p) {
4439
+ se(m, c, p), Ce(c);
4251
4440
  }
4252
- function we(c, d) {
4253
- const y = (...v) => O(() => d(...v));
4441
+ function we(c, p) {
4442
+ const y = (...b) => O(() => p(...b));
4254
4443
  y._driver = !0, Pe(c, y);
4255
4444
  }
4256
- function nt(c, d) {
4445
+ function nt(c, p) {
4257
4446
  const y = (c || "").split(".");
4258
4447
  c = y.shift();
4259
- const v = y.join(".");
4260
- if (E(g, c) || S(g, c, Re), g[c] !== Re) {
4261
- let w = g[c];
4262
- return w && w._driver ? w = w(v) : y.length && (w = B(w, y)), w == null || w === "" ? d : w;
4448
+ const b = y.join(".");
4449
+ if (E(m, c) || S(m, c, ke), m[c] !== ke) {
4450
+ let w = m[c];
4451
+ return w && w._driver ? w = w(b) : y.length && (w = L(w, y)), w == null || w === "" ? p : w;
4263
4452
  } else
4264
- return d;
4453
+ return p;
4265
4454
  }
4266
- function Yt(c) {
4455
+ function xt(c) {
4267
4456
  l.push(c);
4268
4457
  }
4269
- function xt(c) {
4270
- delete g[c], Ce(c);
4458
+ function Yt(c) {
4459
+ delete m[c], Ce(c);
4271
4460
  }
4272
- function er(c, d) {
4273
- a.push({ name: c, callback: d });
4461
+ function er(c, p) {
4462
+ a.push({ name: c, callback: p });
4274
4463
  }
4275
- function Be(c) {
4464
+ function Le(c) {
4276
4465
  C(this, {
4277
- id: Ti++,
4278
- create: J,
4466
+ id: Ni++,
4467
+ create: z,
4279
4468
  vm: c,
4280
- manager: bi(t.manager),
4469
+ manager: vi(t.manager),
4281
4470
  parsers: r,
4282
4471
  providers: u,
4283
4472
  modelFields: s,
4284
4473
  formulas: _,
4285
- isMobile: m,
4474
+ isMobile: g,
4286
4475
  rules: c.$options.propsData.rule,
4287
4476
  name: c.$options.propsData.name || Ae(),
4288
4477
  inFor: c.$options.propsData.inFor,
@@ -4294,7 +4483,7 @@ function Wt(t) {
4294
4483
  drivers: n,
4295
4484
  renderDriver: null,
4296
4485
  refreshData: Ce,
4297
- loadData: g,
4486
+ loadData: m,
4298
4487
  CreateNode: $,
4299
4488
  bus: new Fi(),
4300
4489
  unwatch: [],
@@ -4302,60 +4491,60 @@ function Wt(t) {
4302
4491
  extendApiFn: l,
4303
4492
  fetchCache: /* @__PURE__ */ new WeakMap(),
4304
4493
  tmpData: ie({})
4305
- }), a.forEach((d) => {
4306
- this.bus.$on(d.name, d.callback);
4494
+ }), a.forEach((p) => {
4495
+ this.bus.$on(p.name, p.callback);
4307
4496
  }), A(() => {
4308
- L(this.options, () => {
4497
+ B(this.options, () => {
4309
4498
  this.$handle.$manager.updateOptions(this.options.value), this.api().refresh();
4310
4499
  }, { deep: !0 });
4311
4500
  }), C(c.$options.components, e), C(c.$options.directives, i), this.$handle = new K(this), this.name && (this.inFor ? (M[this.name] || (M[this.name] = []), M[this.name].push(this)) : M[this.name] = this);
4312
4501
  }
4313
- Be.isMobile = m, C(Be.prototype, {
4502
+ Le.isMobile = g, C(Le.prototype, {
4314
4503
  init() {
4315
- this.isSub() && this.unwatch.push(L(() => this.vm.parent.fc.options.value, () => {
4504
+ this.isSub() && this.unwatch.push(B(() => this.vm.parent.fc.options.value, () => {
4316
4505
  this.initOptions(), this.$handle.api.refresh();
4317
4506
  }, { deep: !0 })), this.vm.$options.propsData.driver && (this.renderDriver = typeof this.vm.$options.propsData.driver == "object" ? this.vm.$options.propsData.driver : this.drivers[this.vm.$options.propsData.driver]), !this.renderDriver && this.vm.parent && (this.renderDriver = this.vm.parent.fc.renderDriver), this.renderDriver || (this.renderDriver = this.drivers.default), this.initOptions(), this.$handle.init();
4318
4507
  },
4319
- targetFormDriver(c, ...d) {
4508
+ targetFormDriver(c, ...p) {
4320
4509
  if (this.renderDriver && this.renderDriver[c])
4321
- return O(() => this.renderDriver[c](...d));
4510
+ return O(() => this.renderDriver[c](...p));
4322
4511
  },
4323
- t(c, d, y) {
4324
- let v = y ? y("$t." + c) : this.globalLanguageDriver(c);
4325
- return v == null && (v = ""), v && d && Object.keys(d).forEach((w) => {
4512
+ t(c, p, y) {
4513
+ let b = y ? y("$t." + c) : this.globalLanguageDriver(c);
4514
+ return b == null && (b = ""), b && p && Object.keys(p).forEach((w) => {
4326
4515
  const j = new RegExp(`{${w}}`, "g");
4327
- v = v.replace(j, d[w]);
4328
- }), v;
4516
+ b = b.replace(j, p[w]);
4517
+ }), b;
4329
4518
  },
4330
4519
  globalDataDriver(c) {
4331
- let d = c.split(".");
4332
- const y = d.shift(), v = this.options.value.globalData && this.options.value.globalData[y];
4333
- if (v) {
4334
- if (v.type === "static")
4335
- return B(v.data, d);
4520
+ let p = c.split(".");
4521
+ const y = p.shift(), b = this.options.value.globalData && this.options.value.globalData[y];
4522
+ if (b) {
4523
+ if (b.type === "static")
4524
+ return L(b.data, p);
4336
4525
  {
4337
4526
  let w;
4338
- const j = this.fetchCache.get(v);
4527
+ const j = this.fetchCache.get(b);
4339
4528
  if (j) {
4340
- if (j.status && (w = B(j.data, d)), !j.loading)
4529
+ if (j.status && (w = L(j.data, p)), !j.loading)
4341
4530
  return w;
4342
- j.loading = !1, this.fetchCache.set(v, j);
4531
+ j.loading = !1, this.fetchCache.set(b, j);
4343
4532
  } else
4344
- this.fetchCache.set(v, { status: !1 });
4345
- const k = ne(() => {
4533
+ this.fetchCache.set(b, { status: !1 });
4534
+ const R = ne(() => {
4346
4535
  le();
4347
- const W = this.fetchCache.get(v);
4348
- this.options.value.globalData && Object.values(this.options.value.globalData).indexOf(v) !== -1 ? (W && (W.loading = !0, this.fetchCache.set(v, W)), this.bus.$emit("$loadData.$globalData." + y)) : this.fetchCache.delete(v);
4349
- }, v.wait || 600), ae = (W) => {
4350
- this.fetchCache.set(v, { status: !0, data: W }), this.bus.$emit("$loadData.$globalData." + y);
4351
- }, X = (W, ue) => {
4352
- if (ue && v.watch === !1)
4536
+ const J = this.fetchCache.get(b);
4537
+ this.options.value.globalData && Object.values(this.options.value.globalData).indexOf(b) !== -1 ? (J && (J.loading = !0, this.fetchCache.set(b, J)), this.bus.$emit("$loadData.$globalData." + y)) : this.fetchCache.delete(b);
4538
+ }, b.wait || 600), ae = (J) => {
4539
+ this.fetchCache.set(b, { status: !0, data: J }), this.bus.$emit("$loadData.$globalData." + y);
4540
+ }, X = (J, ue) => {
4541
+ if (ue && b.watch === !1)
4353
4542
  return le();
4354
4543
  if (ue) {
4355
- k();
4544
+ R();
4356
4545
  return;
4357
4546
  }
4358
- const pe = this.$handle.loadFetchVar(We(v), W);
4547
+ const pe = this.$handle.loadFetchVar(Je(b), J);
4359
4548
  this.$handle.api.fetch(pe).then((te) => {
4360
4549
  ae(te);
4361
4550
  }).catch((te) => {
@@ -4371,35 +4560,35 @@ function Wt(t) {
4371
4560
  return c && typeof c == "object" ? c.name : typeof c == "string" ? c : "zh-cn";
4372
4561
  },
4373
4562
  globalLanguageDriver(c) {
4374
- let d = this.vm.top.$props.locale, y;
4375
- if (d && typeof d == "object" && (y = B(d, c)), y == null) {
4376
- const v = this.options.value.language || {}, w = this.getLocale();
4377
- y = B(v[w], c);
4563
+ let p = this.vm.top.$props.locale, y;
4564
+ if (p && typeof p == "object" && (y = L(p, c)), y == null) {
4565
+ const b = this.options.value.language || {}, w = this.getLocale();
4566
+ y = L(b[w] || {}, c), y == null && (y = L(Vi[w] || {}, c));
4378
4567
  }
4379
4568
  return y;
4380
4569
  },
4381
4570
  globalVarDriver(c) {
4382
- let d = c.split(".");
4383
- const y = d.shift(), v = this.options.value.globalVariable && this.options.value.globalVariable[y];
4384
- if (v) {
4385
- const w = h.Function(v) ? v : z(v.handle);
4571
+ let p = c.split(".");
4572
+ const y = p.shift(), b = this.options.value.globalVariable && this.options.value.globalVariable[y];
4573
+ if (b) {
4574
+ const w = h.Function(b) ? b : W(b.handle);
4386
4575
  if (w) {
4387
4576
  let j;
4388
- const k = this.watchLoadData((ae, X) => {
4389
- X ? (this.bus.$emit("$loadData.$var." + y), k()) : j = w(ae, this.$handle.api);
4577
+ const R = this.watchLoadData((ae, X) => {
4578
+ X ? (this.bus.$emit("$loadData.$var." + y), R()) : j = w(ae, this.$handle.api);
4390
4579
  });
4391
- return this.unwatch.push(k), B(j, d);
4580
+ return this.unwatch.push(R), L(j, p);
4392
4581
  }
4393
4582
  }
4394
4583
  },
4395
- setData(c, d, y) {
4396
- y ? Pe(c, d) : (se(this.vm.top.fc.tmpData, c, d), this.bus.$emit("$loadData." + c));
4584
+ setData(c, p, y) {
4585
+ y ? Pe(c, p) : (se(this.vm.top.fc.tmpData, c, p), this.bus.$emit("$loadData." + c));
4397
4586
  },
4398
- getLoadData(c, d) {
4587
+ getLoadData(c, p) {
4399
4588
  let y = null;
4400
4589
  if (c != null) {
4401
- let v = c.split(".");
4402
- const w = v.shift();
4590
+ let b = c.split(".");
4591
+ const w = b.shift();
4403
4592
  if (w === "$topForm")
4404
4593
  y = this.$handle.api.top.formData(!0);
4405
4594
  else if (w === "$scopeForm")
@@ -4409,53 +4598,53 @@ function Wt(t) {
4409
4598
  else if (w === "$options")
4410
4599
  y = this.options.value;
4411
4600
  else if (w === "$globalData")
4412
- y = this.globalDataDriver(v.join(".")), v = [];
4601
+ y = this.globalDataDriver(b.join(".")), b = [];
4413
4602
  else if (w === "$var")
4414
- y = this.globalVarDriver(v.join(".")), v = [];
4603
+ y = this.globalVarDriver(b.join(".")), b = [];
4415
4604
  else if (w === "$locale")
4416
- y = this.getLocale(), v = [];
4605
+ y = this.getLocale(), b = [];
4417
4606
  else if (w === "$t")
4418
- y = this.globalLanguageDriver(v.join(".")), v = [];
4607
+ y = this.globalLanguageDriver(b.join(".")), b = [];
4419
4608
  else {
4420
4609
  if (w === "$preview")
4421
4610
  return this.$handle.preview;
4422
4611
  {
4423
4612
  const j = this.vm.top.fc.tmpData;
4424
- E(j, w) || S(j, w, Re), y = j[w] !== Re ? B(j, c) : nt(c), v = [];
4613
+ E(j, w) || S(j, w, ke), y = j[w] !== ke ? L(j, c) : nt(c), b = [];
4425
4614
  }
4426
4615
  }
4427
- y && v.length && (y = B(y, v));
4616
+ y && b.length && (y = L(y, b));
4428
4617
  }
4429
- return y == null || y === "" ? d : y;
4618
+ return y == null || y === "" ? p : y;
4430
4619
  },
4431
- watchLoadData(c, d) {
4620
+ watchLoadData(c, p) {
4432
4621
  let y = {};
4433
- const v = (k) => {
4622
+ const b = (R) => {
4434
4623
  this.get || (this.get = w), O(() => {
4435
- c(w, k);
4624
+ c(w, R);
4436
4625
  }), this.get === w && (this.get = void 0);
4437
- }, w = (k, ae) => {
4626
+ }, w = (R, ae) => {
4438
4627
  let X;
4439
- if (typeof k == "object" && (X = k.getValue, k = k.id), y[k])
4440
- return y[k].val;
4441
- const le = ge(() => X ? X() : this.getLoadData(k, ae)), W = k.split("."), ue = W.shift(), pe = W.shift() || "", te = ne(() => {
4442
- const Le = X ? X() : this.getLoadData(k, ae);
4443
- if (y[k])
4444
- JSON.stringify(Le) !== JSON.stringify(y[k].val) && (y[k].val = Le, v(!0));
4628
+ if (typeof R == "object" && (X = R.getValue, R = R.id), y[R])
4629
+ return y[R].val;
4630
+ const le = ge(() => X ? X() : this.getLoadData(R, ae)), J = R.split("."), ue = J.shift(), pe = J.shift() || "", te = ne(() => {
4631
+ const Be = X ? X() : this.getLoadData(R, ae);
4632
+ if (y[R])
4633
+ JSON.stringify(Be) !== JSON.stringify(y[R].val) && (y[R].val = Be, b(!0));
4445
4634
  else return;
4446
- }, d || 0), rr = L(le, (Le) => {
4635
+ }, p || 0), rr = B(le, (Be) => {
4447
4636
  te();
4448
4637
  });
4449
- return this.bus.$on("$loadData." + ue, te), pe && this.bus.$on("$loadData." + ue + "." + pe, te), y[k] = {
4638
+ return this.bus.$on("$loadData." + ue, te), pe && this.bus.$on("$loadData." + ue + "." + pe, te), y[R] = {
4450
4639
  fn: () => {
4451
4640
  this.bus.$off("$loadData." + ue, te), pe && this.bus.$off("$loadData." + ue + "." + pe, te), rr();
4452
4641
  },
4453
4642
  val: le.value
4454
4643
  }, le.value;
4455
4644
  };
4456
- v(!1);
4645
+ b(!1);
4457
4646
  const j = () => {
4458
- Object.keys(y).forEach((k) => y[k].fn()), y = {};
4647
+ Object.keys(y).forEach((R) => y[R].fn()), y = {};
4459
4648
  };
4460
4649
  return this.unwatch.push(j), j;
4461
4650
  },
@@ -4464,19 +4653,19 @@ function Wt(t) {
4464
4653
  },
4465
4654
  initOptions() {
4466
4655
  this.options.value = {};
4467
- let c = b({
4656
+ let c = v({
4468
4657
  formData: {},
4469
4658
  submitBtn: {},
4470
4659
  resetBtn: {},
4471
4660
  globalEvent: {},
4472
4661
  globalData: {}
4473
- }, G(p));
4662
+ }, G(d));
4474
4663
  this.isSub() && (c = this.mergeOptions(c, this.vm.parent.fc.options.value || {}, !0)), c = this.mergeOptions(c, this.vm.$options.propsData.option || {}), this.updateOptions(c);
4475
4664
  },
4476
- mergeOptions(c, d, y) {
4477
- return d = b({}, d || {}), y && ["page", "onSubmit", "onReset", "onCreated", "onChange", "onMounted", "mounted", "onReload", "reload", "formData", "el", "globalClass", "style"].forEach((v) => {
4478
- delete d[v];
4479
- }), d.global && (c.global = Hr(c.global, d.global), delete d.global), this.$handle.$manager.mergeOptions([d], c), c;
4665
+ mergeOptions(c, p, y) {
4666
+ return p = v({}, p || {}), y && ["page", "onSubmit", "onReset", "onCreated", "onChange", "onMounted", "mounted", "onReload", "reload", "formData", "el", "globalClass", "style"].forEach((b) => {
4667
+ delete p[b];
4668
+ }), p.global && (c.global = Hr(c.global, p.global), delete p.global), this.$handle.$manager.mergeOptions([p], c), c;
4480
4669
  },
4481
4670
  updateOptions(c) {
4482
4671
  this.options.value = this.mergeOptions(this.options.value, c), this.$handle.$manager.updateOptions(this.options.value), this.bus.$emit("$loadData.$options");
@@ -4509,19 +4698,19 @@ function Wt(t) {
4509
4698
  C(c, {
4510
4699
  version: t.version,
4511
4700
  ui: t.ui,
4512
- isMobile: m,
4513
- extendApi: Yt,
4701
+ isMobile: g,
4702
+ extendApi: xt,
4514
4703
  getData: nt,
4515
4704
  setDataDriver: we,
4516
4705
  setData: Pe,
4517
- removeData: xt,
4706
+ removeData: Yt,
4518
4707
  refreshData: Ce,
4519
4708
  maker: f,
4520
4709
  component: F,
4521
4710
  directive: T,
4522
4711
  setModelField: Xt,
4523
- setFormula: Qt,
4524
- setDriver: Zt,
4712
+ setFormula: Zt,
4713
+ setDriver: Qt,
4525
4714
  register: ce,
4526
4715
  $vnode: N,
4527
4716
  parser: he,
@@ -4529,13 +4718,13 @@ function Wt(t) {
4529
4718
  factory: Kt,
4530
4719
  componentAlias: Ve,
4531
4720
  copyRule: Pt,
4532
- copyRules: Bt,
4533
- mergeRule: x,
4721
+ copyRules: Lt,
4722
+ mergeRule: Y,
4534
4723
  fetch: Ut,
4535
- $form: R,
4536
- parseFn: z,
4724
+ $form: k,
4725
+ parseFn: W,
4537
4726
  parseJson: Vt,
4538
- toJson: be,
4727
+ toJson: ve,
4539
4728
  useApp: P,
4540
4729
  getApi: ee,
4541
4730
  on: er
@@ -4543,26 +4732,26 @@ function Wt(t) {
4543
4732
  }
4544
4733
  function tr(c) {
4545
4734
  C(c, {
4546
- create: J,
4547
- install(d, y) {
4548
- if (p = b(b({}, p), y || {}), d._installedFormCreate === !0) return;
4549
- d._installedFormCreate = !0;
4550
- const v = function(j, k = {}) {
4551
- return J(j, k, this);
4735
+ create: z,
4736
+ install(p, y) {
4737
+ if (d = v(v({}, d), y || {}), p._installedFormCreate === !0) return;
4738
+ p._installedFormCreate = !0;
4739
+ const b = function(j, R = {}) {
4740
+ return z(j, R, this);
4552
4741
  };
4553
- st(v), d.prototype.$formCreate = v;
4554
- const w = R();
4555
- d.component(w.name, w), d.component("FcFragment", N()), o.forEach((j) => {
4556
- O(() => j(c, d));
4742
+ st(b), p.prototype.$formCreate = b;
4743
+ const w = k();
4744
+ p.component(w.name, w), p.component("FcFragment", N()), o.forEach((j) => {
4745
+ O(() => j(c, p));
4557
4746
  });
4558
4747
  }
4559
4748
  });
4560
4749
  }
4561
- if (st(D), tr(D), we("$cookie", ji), we("$localStorage", Ii), we("$sessionStorage", Ai), $.use({ fragment: "fcFragment" }), t.install && J.use(t), he(Ri), t.inherit) {
4750
+ if (st(D), tr(D), we("$cookie", ji), we("$localStorage", Ii), we("$sessionStorage", Ai), $.use({ fragment: "fcFragment" }), t.install && z.use(t), he(ki), t.inherit) {
4562
4751
  const c = t.inherit;
4563
- c.components && C(e, c.components), c.parsers && C(r, c.parsers), c.directives && C(i, c.directives), c.modelFields && C(s, c.modelFields), c.providers && C(u, c.providers), c.useApps && C(o, c.useApps), c.maker && C(f, c.maker), c.loadData && C(g, c.loadData), c.formulas && C(_, c.formulas);
4752
+ c.components && C(e, c.components), c.parsers && C(r, c.parsers), c.directives && C(i, c.directives), c.modelFields && C(s, c.modelFields), c.providers && C(u, c.providers), c.useApps && C(o, c.useApps), c.maker && C(f, c.maker), c.loadData && C(m, c.loadData), c.formulas && C(_, c.formulas);
4564
4753
  }
4565
- const Oe = R();
4754
+ const Oe = k();
4566
4755
  return Se(Oe, D), Object.defineProperties(Oe, {
4567
4756
  fetch: {
4568
4757
  get() {
@@ -4582,10 +4771,10 @@ function Ue(t) {
4582
4771
  return e.toString() === "Invalid Date" ? t : e;
4583
4772
  }
4584
4773
  }
4585
- const bt = "datePicker", Ni = {
4586
- name: bt,
4774
+ const vt = "datePicker", Mi = {
4775
+ name: vt,
4587
4776
  maker: function() {
4588
- return ["date", "dateRange", "datetime", "datetimeRange", "year", "month"].reduce((t, e) => (t[e] = V(bt, { type: e.toLowerCase() }), t), {});
4777
+ return ["date", "dateRange", "datetime", "datetimeRange", "year", "month"].reduce((t, e) => (t[e] = V(vt, { type: e.toLowerCase() }), t), {});
4589
4778
  }(),
4590
4779
  mergeProp(t) {
4591
4780
  let e = t.prop.props;
@@ -4614,7 +4803,7 @@ const bt = "datePicker", Ni = {
4614
4803
  mounted(t) {
4615
4804
  t.rule.value = this.toValue(t.$handle.getFormData(t), t);
4616
4805
  }
4617
- }, qe = "hidden", Mi = {
4806
+ }, qe = "hidden", Ui = {
4618
4807
  name: qe,
4619
4808
  maker: {
4620
4809
  [qe]: (t, e) => V(qe)("", t, e)
@@ -4622,7 +4811,7 @@ const bt = "datePicker", Ni = {
4622
4811
  render() {
4623
4812
  return [];
4624
4813
  }
4625
- }, Ge = "input", Ui = {
4814
+ }, Ge = "input", qi = {
4626
4815
  name: Ge,
4627
4816
  maker: function() {
4628
4817
  const t = ["password", "url", "email", "text", "textarea"].reduce((e, r) => (e[r] = V(Ge, { type: r }), e), {});
@@ -4632,7 +4821,7 @@ const bt = "datePicker", Ni = {
4632
4821
  let { props: e } = t.prop;
4633
4822
  e.autosize && e.autosize.minRows && (e.rows = e.autosize.minRows || 2);
4634
4823
  }
4635
- }, _t = "slider", qi = {
4824
+ }, _t = "slider", Gi = {
4636
4825
  name: _t,
4637
4826
  maker: {
4638
4827
  sliderRange: V(_t, { range: !0 })
@@ -4641,13 +4830,13 @@ const bt = "datePicker", Ni = {
4641
4830
  let r = Array.isArray(t), i = e.prop.props, s = i.min || 0, n;
4642
4831
  return i.range === !0 ? n = r ? t : [s, parseFloat(t) || s] : n = r ? parseFloat(t[0]) || s : parseFloat(t), n;
4643
4832
  }
4644
- }, Gi = {
4833
+ }, Hi = {
4645
4834
  name: "switch",
4646
4835
  mergeProp(t) {
4647
4836
  const e = t.prop.props.slot || {}, r = t.prop.scopedSlots || {};
4648
4837
  e.open && (r.open = () => e.open), e.close && (r.close = () => e.close), t.prop.scopedSlots = r;
4649
4838
  }
4650
- }, Hi = {
4839
+ }, zi = {
4651
4840
  name: "FcRow",
4652
4841
  render(t, e) {
4653
4842
  return e.vNode.col({ props: { span: 24 } }, [
@@ -4655,12 +4844,12 @@ const bt = "datePicker", Ni = {
4655
4844
  ]);
4656
4845
  }
4657
4846
  }, Ji = [
4658
- Ni,
4659
4847
  Mi,
4660
4848
  Ui,
4661
4849
  qi,
4662
4850
  Gi,
4663
- Hi
4851
+ Hi,
4852
+ zi
4664
4853
  ], Wi = {
4665
4854
  button: "iButton",
4666
4855
  icon: "Icon",
@@ -4693,7 +4882,7 @@ const bt = "datePicker", Ni = {
4693
4882
  resetBtnIcon: "md-refresh",
4694
4883
  infoIcon: "ios-information-circle-outline"
4695
4884
  };
4696
- function zi() {
4885
+ function Ki() {
4697
4886
  return {
4698
4887
  type: "poptip",
4699
4888
  trigger: "hover",
@@ -4702,7 +4891,7 @@ function zi() {
4702
4891
  icon: je.infoIcon
4703
4892
  };
4704
4893
  }
4705
- function Ki() {
4894
+ function Xi() {
4706
4895
  return {
4707
4896
  form: {
4708
4897
  inline: !1,
@@ -4737,14 +4926,14 @@ function Ki() {
4737
4926
  function Ct(t, e) {
4738
4927
  E(t, e) && h.String(t[e]) && (t[e] = { [e]: t[e], show: !0 });
4739
4928
  }
4740
- function Q(t) {
4929
+ function Z(t) {
4741
4930
  return t === !1;
4742
4931
  }
4743
- function Xi(t, e) {
4932
+ function Zi(t, e) {
4744
4933
  E(t, e) && !h.Object(t[e]) && (t[e] = { show: !!t[e] });
4745
4934
  }
4746
4935
  function He(t) {
4747
- const e = b({}, t);
4936
+ const e = v({}, t);
4748
4937
  return delete e.children, e;
4749
4938
  }
4750
4939
  const Qi = {
@@ -4766,7 +4955,7 @@ const Qi = {
4766
4955
  },
4767
4956
  tidyOptions(t) {
4768
4957
  return ["submitBtn", "resetBtn", "row", "info", "wrap", "col", "title"].forEach((e) => {
4769
- Xi(t, e);
4958
+ Zi(t, e);
4770
4959
  }), t;
4771
4960
  },
4772
4961
  tidyRule({ prop: t }) {
@@ -4774,49 +4963,48 @@ const Qi = {
4774
4963
  },
4775
4964
  mergeProp(t) {
4776
4965
  const e = {
4777
- info: zi(),
4966
+ info: Ki(),
4778
4967
  title: {},
4779
4968
  col: { span: 24 },
4780
4969
  wrap: {}
4781
4970
  };
4782
4971
  ["info", "wrap", "col", "title"].forEach((r) => {
4783
- t.prop[r] = Y([this.options[r] || {}, t.prop[r] || {}], e[r]);
4972
+ t.prop[r] = x([this.options[r] || {}, t.prop[r] || {}], e[r]);
4784
4973
  }), this.setSize(t.prop.props);
4785
4974
  },
4786
4975
  setSize(t) {
4787
4976
  !t.size && this.options.form.size && (t.size = this.options.form.size);
4788
4977
  },
4789
4978
  getDefaultOptions() {
4790
- return Ki();
4979
+ return Xi();
4791
4980
  },
4792
4981
  update() {
4793
4982
  const t = this.options.form;
4794
4983
  this.rule = {
4795
- props: b({}, t),
4984
+ props: v({}, t),
4796
4985
  nativeOn: {
4797
4986
  submit: (e) => {
4798
4987
  e.preventDefault();
4799
4988
  }
4800
4989
  },
4801
- class: [t.className, t.class, "form-create", this.$handle.preview ? "is-preview" : ""],
4802
4990
  style: t.style,
4803
4991
  type: "form"
4804
4992
  };
4805
4993
  },
4806
4994
  beforeRender() {
4807
- const { key: t, ref: e, $handle: r } = this;
4808
- C(this.rule, { key: t, ref: e }), C(this.rule.props, {
4995
+ const { key: t, ref: e, $handle: r } = this, i = this.options.form;
4996
+ C(this.rule, { key: t, ref: e, class: [i.className, i.class, "form-create", this.$handle.preview ? "is-preview" : ""] }), C(this.rule.props, {
4809
4997
  model: r.formData
4810
4998
  });
4811
4999
  },
4812
5000
  render(t) {
4813
- return t.slotLen() && !this.$handle.preview && t.setSlot(void 0, () => this.makeFormBtn()), this.$r(this.rule, Q(this.options.row.show) ? t.getSlots() : [this.makeRow(t)]);
5001
+ return t.slotLen() && !this.$handle.preview && t.setSlot(void 0, () => this.makeFormBtn()), this.$r(this.rule, Z(this.options.row.show) ? t.getSlots() : [this.makeRow(t)]);
4814
5002
  },
4815
5003
  makeWrap(t, e) {
4816
5004
  const r = t.prop, i = `${this.key}${t.key}`, s = r.col, n = this.isTitle(r) && r.wrap.title !== !1, o = !s.labelWidth && !n ? 0 : s.labelWidth, { inline: a, col: l } = this.rule.props;
4817
5005
  delete r.wrap.title;
4818
- const u = Q(r.wrap.show) ? e : this.$r(Y([r.wrap, {
4819
- props: U(b({
5006
+ const u = Z(r.wrap.show) ? e : this.$r(x([r.wrap, {
5007
+ props: U(v({
4820
5008
  labelWidth: o
4821
5009
  }, He(r.wrap || {})), {
4822
5010
  prop: t.id,
@@ -4826,22 +5014,22 @@ const Qi = {
4826
5014
  key: `${i}fi`,
4827
5015
  ref: t.wrapRef,
4828
5016
  type: "formItem"
4829
- }]), b({ default: () => e }, n ? { label: () => this.makeInfo(r, i, t) } : {}));
4830
- return a === !0 || Q(l) || Q(s.show) ? u : this.makeCol(r, i, [u]);
5017
+ }]), v({ default: () => e }, n ? { label: () => this.makeInfo(r, i, t) } : {}));
5018
+ return a === !0 || Z(l) || Z(s.show) ? u : this.makeCol(r, i, [u]);
4831
5019
  },
4832
5020
  isTitle(t) {
4833
5021
  if (this.options.form.title === !1) return !1;
4834
5022
  const e = t.title;
4835
- return !(!e.title && !e.native || Q(e.show));
5023
+ return !(!e.title && !e.native || Z(e.show));
4836
5024
  },
4837
5025
  makeInfo(t, e, r) {
4838
- var u, f, p, m, g, $;
4839
- const i = b({}, t.title), s = b({}, t.info), n = this.options.form, o = this.getSlot("title"), a = [o ? o({
5026
+ var u, f, d, g, m, $;
5027
+ const i = v({}, t.title), s = v({}, t.info), n = this.options.form, o = this.getSlot("title"), a = [o ? o({
4840
5028
  title: (f = (u = r.refRule) == null ? void 0 : u.__$title) == null ? void 0 : f.value,
4841
5029
  rule: r.rule,
4842
5030
  options: this.options
4843
- }) : ((m = (p = r.refRule) == null ? void 0 : p.__$title) == null ? void 0 : m.value) + (n.labelSuffix || n["label-suffix"] || "")];
4844
- if (!Q(s.show) && (s.info || s.native) && !Q(s.icon)) {
5031
+ }) : ((g = (d = r.refRule) == null ? void 0 : d.__$title) == null ? void 0 : g.value) + (n.labelSuffix || n["label-suffix"] || "")];
5032
+ if (!Z(s.show) && (s.info || s.native) && !Z(s.icon)) {
4845
5033
  const _ = {
4846
5034
  type: s.type || "poptip",
4847
5035
  props: He(s),
@@ -4850,7 +5038,7 @@ const Qi = {
4850
5038
  };
4851
5039
  delete _.props.icon, delete _.props.show, delete _.props.info, delete _.props.align, delete _.props.native;
4852
5040
  const D = "content";
4853
- s.info && !E(_.props, D) && (_.props[D] = ($ = (g = r.refRule) == null ? void 0 : g.__$info) == null ? void 0 : $.value), a[s.align !== "left" ? "unshift" : "push"](this.$r(Y([s, _]), [
5041
+ s.info && !E(_.props, D) && (_.props[D] = ($ = (m = r.refRule) == null ? void 0 : m.__$info) == null ? void 0 : $.value), a[s.align !== "left" ? "unshift" : "push"](this.$r(x([s, _]), [
4854
5042
  this.$r({
4855
5043
  type: "icon",
4856
5044
  props: { type: s.icon === !0 ? je.infoIcon : s.icon, size: 16 },
@@ -4859,7 +5047,7 @@ const Qi = {
4859
5047
  })
4860
5048
  ]));
4861
5049
  }
4862
- const l = Y([i, {
5050
+ const l = x([i, {
4863
5051
  props: He(i),
4864
5052
  key: `${e}tit`,
4865
5053
  class: "fc-form-title",
@@ -4888,7 +5076,7 @@ const Qi = {
4888
5076
  },
4889
5077
  makeFormBtn() {
4890
5078
  let t = [];
4891
- if (Q(this.options.submitBtn.show) || t.push(this.makeSubmitBtn()), Q(this.options.resetBtn.show) || t.push(this.makeResetBtn()), !t.length)
5079
+ if (Z(this.options.submitBtn.show) || t.push(this.makeSubmitBtn()), Z(this.options.resetBtn.show) || t.push(this.makeResetBtn()), !t.length)
4892
5080
  return;
4893
5081
  const e = this.$r({
4894
5082
  type: "formItem",
@@ -4903,7 +5091,7 @@ const Qi = {
4903
5091
  }, [e]);
4904
5092
  },
4905
5093
  makeResetBtn() {
4906
- const t = b({}, this.options.resetBtn), e = t.innerText || this.$handle.api.t("reset") || "重置";
5094
+ const t = v({}, this.options.resetBtn), e = t.innerText || this.$handle.api.t("reset") || "重置";
4907
5095
  return delete t.innerText, delete t.click, delete t.col, delete t.show, this.$r({
4908
5096
  type: "button",
4909
5097
  props: t,
@@ -4919,7 +5107,7 @@ const Qi = {
4919
5107
  }, [e]);
4920
5108
  },
4921
5109
  makeSubmitBtn() {
4922
- const t = b({}, this.options.submitBtn), e = t.innerText || this.$handle.api.t("submit") || "提交";
5110
+ const t = v({}, this.options.submitBtn), e = t.innerText || this.$handle.api.t("submit") || "提交";
4923
5111
  return delete t.innerText, delete t.click, delete t.col, delete t.show, this.$r({
4924
5112
  type: "button",
4925
5113
  props: t,
@@ -4935,13 +5123,13 @@ const Qi = {
4935
5123
  key: `${this.key}b1`
4936
5124
  }, [e]);
4937
5125
  }
4938
- }, oe = {}, Zi = ["upload", "select", "tree", "checkbox", "autoComplete", "cascader", "colorPicker", "frame", "inputNumber", "radio", "rate", "timePicker", "group"];
5126
+ }, oe = {}, xi = ["upload", "select", "tree", "checkbox", "autoComplete", "cascader", "colorPicker", "frame", "inputNumber", "radio", "rate", "timePicker", "group"];
4939
5127
  function Yi(t) {
4940
- Zi.forEach((e) => {
5128
+ xi.forEach((e) => {
4941
5129
  t[e] = V(e);
4942
5130
  }), t.auto = t.autoComplete, t.number = t.inputNumber, t.color = t.colorPicker;
4943
5131
  }
4944
- function xi(t) {
5132
+ function en(t) {
4945
5133
  const e = "upload", r = {
4946
5134
  image: ["image", 0],
4947
5135
  file: ["file", 0],
@@ -4950,19 +5138,19 @@ function xi(t) {
4950
5138
  };
4951
5139
  Object.keys(r).reduce((i, s) => (i[s] = V(e, (n) => n.props({ uploadType: r[s][0], maxLength: r[s][1] })), i), t), t.uploadImage = t.image, t.uploadFile = t.file;
4952
5140
  }
4953
- function en(t) {
5141
+ function tn(t) {
4954
5142
  const e = "tree", r = { treeSelected: "selected", treeChecked: "checked" };
4955
5143
  Object.keys(r).reduce((i, s) => (i[s] = V(e, { type: r[s] }), i), t);
4956
5144
  }
4957
- function tn(t) {
5145
+ function rn(t) {
4958
5146
  const e = "timePicker";
4959
5147
  t.time = V(e, { type: "time" }), t.timeRange = V(e, { type: "timerange" });
4960
5148
  }
4961
- function rn(t) {
5149
+ function nn(t) {
4962
5150
  const e = "select";
4963
5151
  t.selectMultiple = V(e, { multiple: !0 }), t.selectOne = V(e, { multiple: !1 });
4964
5152
  }
4965
- function nn(t) {
5153
+ function sn(t) {
4966
5154
  const e = "frame", r = {
4967
5155
  frameInputs: ["input", 0],
4968
5156
  frameFiles: ["file", 0],
@@ -4974,15 +5162,15 @@ function nn(t) {
4974
5162
  Object.keys(r).reduce((i, s) => (i[s] = V(e, (n) => n.props({ type: r[s][0], maxLength: r[s][1] })), i), t), t.frameInput = t.frameInputs, t.frameFile = t.frameFiles, t.frameImage = t.frameImages;
4975
5163
  }
4976
5164
  Yi(oe);
4977
- xi(oe);
4978
5165
  en(oe);
4979
- rn(oe);
4980
- nn(oe);
4981
5166
  tn(oe);
5167
+ nn(oe);
5168
+ sn(oe);
5169
+ rn(oe);
4982
5170
  function wt(t, e) {
4983
5171
  return h.Boolean(t) ? t = { show: t } : !h.Undef(t) && !h.Object(t) && (t = { show: e }), t;
4984
5172
  }
4985
- function sn(t, e) {
5173
+ function on(t, e) {
4986
5174
  return {
4987
5175
  formEl() {
4988
5176
  return e.$manager.form();
@@ -5069,7 +5257,10 @@ function sn(t, e) {
5069
5257
  return new Promise((s, n) => {
5070
5258
  (e.options.validateOnSubmit === !1 ? Promise.resolve() : t.validate()).then(() => {
5071
5259
  let a = t.formData();
5072
- h.Function(r) && O(() => r(a, t)), h.Function(e.options.onSubmit) && O(() => e.options.onSubmit(a, t)), e.vm.emit("submit", a, t), s(a);
5260
+ e.beforeSubmit(a).then(() => {
5261
+ h.Function(r) && O(() => r(a, t)), h.Function(e.options.onSubmit) && O(() => e.options.onSubmit(a, t)), e.vm.$emit("submit", a, t), s(a);
5262
+ }).catch((l) => {
5263
+ });
5073
5264
  }).catch((...a) => {
5074
5265
  h.Function(i) && O(() => i(t, ...a)), n(...a);
5075
5266
  });
@@ -5077,15 +5268,15 @@ function sn(t, e) {
5077
5268
  }
5078
5269
  };
5079
5270
  }
5080
- const zt = {
5271
+ const Wt = {
5081
5272
  name: "required",
5082
5273
  load(t, e, r) {
5083
5274
  var s, n;
5084
- const i = on(t.getValue());
5275
+ const i = an(t.getValue());
5085
5276
  if (i.required === !1)
5086
5277
  t.clearProp(), r.clearValidateState([e.field]);
5087
5278
  else {
5088
- const o = b({
5279
+ const o = v({
5089
5280
  required: !0,
5090
5281
  validator(l, u, f) {
5091
5282
  h.empty(u) ? f(o.message) : f();
@@ -5102,28 +5293,28 @@ const zt = {
5102
5293
  r.sync(e);
5103
5294
  },
5104
5295
  watch(...t) {
5105
- zt.load(...t);
5296
+ Wt.load(...t);
5106
5297
  }
5107
5298
  };
5108
- function on(t) {
5299
+ function an(t) {
5109
5300
  return h.Boolean(t) ? { required: t } : h.String(t) ? { message: t } : h.Undef(t) ? { required: !1 } : h.Function(t) ? { validator: t } : h.Object(t) ? t : {};
5110
5301
  }
5111
- function an(t) {
5302
+ function ln(t) {
5112
5303
  t.componentAlias(Wi), Nr.forEach((e) => {
5113
5304
  t.component(e.name, e);
5114
- }), t.register(zt), Ji.forEach((e) => {
5305
+ }), t.register(Wt), Ji.forEach((e) => {
5115
5306
  t.parser(e);
5116
5307
  }), Object.keys(oe).forEach((e) => {
5117
5308
  t.maker[e] = oe[e];
5118
5309
  });
5119
5310
  }
5120
- function ln() {
5121
- return Wt({
5311
+ function un() {
5312
+ return Jt({
5122
5313
  ui: "iview",
5123
- version: "2.7.5",
5314
+ version: "2.7.7",
5124
5315
  manager: Qi,
5125
- install: an,
5126
- extendApi: sn,
5316
+ install: ln,
5317
+ extendApi: on,
5127
5318
  attrs: {
5128
5319
  normal: ["col", "wrap"],
5129
5320
  array: ["className"],
@@ -5131,10 +5322,10 @@ function ln() {
5131
5322
  }
5132
5323
  });
5133
5324
  }
5134
- const Ze = ln();
5135
- typeof window != "undefined" && (window.formCreate = Ze, window.Vue && Ze.install(window.Vue));
5136
- const cn = Ze.maker;
5325
+ const Qe = un();
5326
+ typeof window != "undefined" && (window.formCreate = Qe, window.Vue && Qe.install(window.Vue));
5327
+ const hn = Qe.maker;
5137
5328
  export {
5138
- Ze as default,
5139
- cn as maker
5329
+ Qe as default,
5330
+ hn as maker
5140
5331
  };