@a2simcode/ui 0.0.141 → 0.0.142

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,16 +1,16 @@
1
- import { Fragment as Se, computed as I, createBlock as V, createCommentVNode as ee, createElementBlock as z, createElementVNode as B, createSlots as zn, createTextVNode as on, createVNode as X, defineComponent as fe, getCurrentInstance as ic, guardReactiveProps as Pi, h as yi, inject as gd, mergeModels as So, mergeProps as Ne, nextTick as Lt, normalizeClass as Ye, normalizeProps as Eo, normalizeStyle as le, onBeforeUnmount as To, onMounted as Pt, onUnmounted as Ao, openBlock as k, provide as vd, reactive as xa, ref as O, render as mi, renderList as Ie, renderSlot as Je, resolveComponent as $, resolveDirective as Bi, resolveDynamicComponent as Ua, shallowRef as Qn, toDisplayString as ve, unref as U, useModel as ko, useSlots as yd, useTemplateRef as wa, vShow as mo, watch as nt, watchEffect as rc, withCtx as J, withDirectives as Ln, withKeys as dr, withModifiers as Ft } from "vue";
1
+ import { Fragment as Se, computed as I, createBlock as V, createCommentVNode as ee, createElementBlock as z, createElementVNode as B, createSlots as zn, createTextVNode as on, createVNode as X, defineComponent as fe, getCurrentInstance as ic, guardReactiveProps as Pi, h as yi, inject as gd, mergeModels as So, mergeProps as Ne, nextTick as Lt, normalizeClass as Ye, normalizeProps as Eo, normalizeStyle as le, onBeforeUnmount as To, onMounted as Pt, onUnmounted as Mo, openBlock as k, provide as vd, reactive as xa, ref as O, render as mi, renderList as Ie, renderSlot as Je, resolveComponent as $, resolveDirective as Bi, resolveDynamicComponent as Ua, shallowRef as Qn, toDisplayString as ve, unref as U, useModel as ko, useSlots as yd, useTemplateRef as wa, vShow as mo, watch as nt, watchEffect as rc, withCtx as J, withDirectives as Ln, withKeys as dr, withModifiers as Ft } from "vue";
2
2
  import { Icon as Tl, getIcon as ba } from "@iconify/vue";
3
3
  import lc from "dayjs";
4
4
  import md from "sortablejs";
5
5
  import * as Ke from "@visactor/vtable";
6
- import { TABLE_EVENT_TYPE as Al } from "@visactor/vtable";
6
+ import { TABLE_EVENT_TYPE as Ml } from "@visactor/vtable";
7
7
  import { ElMessageBox as bd } from "element-plus";
8
8
  import * as wd from "echarts";
9
9
  import _d from "@bwip-js/browser";
10
10
  import { CountUp as xd } from "countup.js";
11
11
  import { format as Cd } from "sql-formatter";
12
12
  import { basicSetup as Sd } from "codemirror";
13
- import { EditorView as Zi, drawSelection as kd, dropCursor as Rd, highlightActiveLineGutter as Ed, highlightSpecialChars as Td, keymap as Ad, lineNumbers as Md, rectangularSelection as jd } from "@codemirror/view";
13
+ import { EditorView as Zi, drawSelection as kd, dropCursor as Rd, highlightActiveLineGutter as Ed, highlightSpecialChars as Td, keymap as Md, lineNumbers as Ad, rectangularSelection as jd } from "@codemirror/view";
14
14
  import { EditorState as Qi } from "@codemirror/state";
15
15
  import { javascript as za } from "@codemirror/lang-javascript";
16
16
  import { css as Pd } from "@codemirror/lang-css";
@@ -28,8 +28,8 @@ import { useVirtualList as Hr } from "@vueuse/core";
28
28
  import Zd from "async-validator";
29
29
  import { createEditor as Qd, createToolbar as ef } from "@wangeditor/editor";
30
30
  import sc from "diagram-js";
31
- import { assignStyle as Mo, attr as _n, classes as tn, clear as cc, closest as Or, delegate as Gn, domify as rn, event as rt, matches as tf, query as Gt, queryAll as fr, remove as hr } from "min-dom";
32
- import { assign as $e, bind as Ir, debounce as nf, every as Lr, filter as un, find as An, flatten as af, forEach as ce, groupBy as zr, has as uc, isArray as st, isDefined as wn, isFunction as Mn, isNil as Ml, isNumber as It, isObject as dn, isString as pr, isUndefined as of, map as jo, matchPattern as bi, omit as rf, pick as wi, reduce as gr, size as lf, some as sf, sortBy as Ro, uniqueBy as cf, values as dc, without as uf } from "min-dash";
31
+ import { assignStyle as Ao, attr as _n, classes as tn, clear as cc, closest as Or, delegate as Gn, domify as rn, event as rt, matches as tf, query as Gt, queryAll as fr, remove as hr } from "min-dom";
32
+ import { assign as $e, bind as Ir, debounce as nf, every as Lr, filter as un, find as Mn, flatten as af, forEach as ce, groupBy as zr, has as uc, isArray as st, isDefined as wn, isFunction as An, isNil as Al, isNumber as It, isObject as dn, isString as pr, isUndefined as of, map as jo, matchPattern as bi, omit as rf, pick as wi, reduce as gr, size as lf, some as sf, sortBy as Ro, uniqueBy as cf, values as dc, without as uf } from "min-dash";
33
33
  import { append as qe, attr as Le, classes as yt, clear as Dr, clone as fc, create as Ue, createTransform as bo, remove as ln, transform as $r } from "tiny-svg";
34
34
  import Ca from "inherits";
35
35
  import df from "diagram-js-direct-editing";
@@ -395,7 +395,7 @@ function Ct(e, ...t) {
395
395
  }
396
396
  return n;
397
397
  }
398
- function Af(e, t, n) {
398
+ function Mf(e, t, n) {
399
399
  const a = {}, o = {};
400
400
  return e.forEach((i) => {
401
401
  a[i[n]] = a[i[n]] || [], a[i[n]].push(i), o[i[t]] = i;
@@ -414,7 +414,7 @@ function mr(e, t, n, a, o, i) {
414
414
  (!i || !i.includes(l[n])) && (a && (l.value = l[a]), o && (l.label = l[o]), t.group[l[n]] && t.group[l[n]].length > 0 && (l.children = mr(t.group[l[n]], t, n, a, o, i)), r.push(l));
415
415
  }), r;
416
416
  }
417
- function Mf(e, t, n, a, o, i) {
417
+ function Af(e, t, n, a, o, i) {
418
418
  if (e.length === 0 || !t && !e[0]._id) return e;
419
419
  const r = t || "_id";
420
420
  n = n || "_pid";
@@ -430,7 +430,7 @@ function Mf(e, t, n, a, o, i) {
430
430
  (!i || !i.includes(u[r])) && (a && (u.value = u[a]), o && (u.label = u[o]), s.push(u));
431
431
  }), s;
432
432
  }
433
- return mr(null, Af(l, r, n), r, a, o, i);
433
+ return mr(null, Mf(l, r, n), r, a, o, i);
434
434
  }
435
435
  var gc = (e, t, n, a) => {
436
436
  n = n || [];
@@ -707,7 +707,7 @@ var zf = /* @__PURE__ */ nn(((e, t) => {
707
707
  y ? x = a.ceil(x) : x = a.max((x | 0) - this._minBufferSize, 0);
708
708
  var C = x * S, T = a.min(C * 4, w);
709
709
  if (C) {
710
- for (var A = 0; A < C; A += S) this._doProcessBlock(R, A);
710
+ for (var M = 0; M < C; M += S) this._doProcessBlock(R, M);
711
711
  m = R.splice(0, C), b.sigBytes -= T;
712
712
  }
713
713
  return new f.init(m, T);
@@ -812,8 +812,8 @@ var zf = /* @__PURE__ */ nn(((e, t) => {
812
812
  var y = v + _, m = g[y];
813
813
  g[y] = (m << 8 | m >>> 24) & 16711935 | (m << 24 | m >>> 8) & 4278255360;
814
814
  }
815
- var b = this._hash.words, R = g[v + 0], w = g[v + 1], S = g[v + 2], x = g[v + 3], C = g[v + 4], T = g[v + 5], A = g[v + 6], P = g[v + 7], H = g[v + 8], D = g[v + 9], M = g[v + 10], E = g[v + 11], N = g[v + 12], G = g[v + 13], ie = g[v + 14], ye = g[v + 15], Y = b[0], q = b[1], L = b[2], j = b[3];
816
- Y = f(Y, q, L, j, R, 7, s[0]), j = f(j, Y, q, L, w, 12, s[1]), L = f(L, j, Y, q, S, 17, s[2]), q = f(q, L, j, Y, x, 22, s[3]), Y = f(Y, q, L, j, C, 7, s[4]), j = f(j, Y, q, L, T, 12, s[5]), L = f(L, j, Y, q, A, 17, s[6]), q = f(q, L, j, Y, P, 22, s[7]), Y = f(Y, q, L, j, H, 7, s[8]), j = f(j, Y, q, L, D, 12, s[9]), L = f(L, j, Y, q, M, 17, s[10]), q = f(q, L, j, Y, E, 22, s[11]), Y = f(Y, q, L, j, N, 7, s[12]), j = f(j, Y, q, L, G, 12, s[13]), L = f(L, j, Y, q, ie, 17, s[14]), q = f(q, L, j, Y, ye, 22, s[15]), Y = d(Y, q, L, j, w, 5, s[16]), j = d(j, Y, q, L, A, 9, s[17]), L = d(L, j, Y, q, E, 14, s[18]), q = d(q, L, j, Y, R, 20, s[19]), Y = d(Y, q, L, j, T, 5, s[20]), j = d(j, Y, q, L, M, 9, s[21]), L = d(L, j, Y, q, ye, 14, s[22]), q = d(q, L, j, Y, C, 20, s[23]), Y = d(Y, q, L, j, D, 5, s[24]), j = d(j, Y, q, L, ie, 9, s[25]), L = d(L, j, Y, q, x, 14, s[26]), q = d(q, L, j, Y, H, 20, s[27]), Y = d(Y, q, L, j, G, 5, s[28]), j = d(j, Y, q, L, S, 9, s[29]), L = d(L, j, Y, q, P, 14, s[30]), q = d(q, L, j, Y, N, 20, s[31]), Y = h(Y, q, L, j, T, 4, s[32]), j = h(j, Y, q, L, H, 11, s[33]), L = h(L, j, Y, q, E, 16, s[34]), q = h(q, L, j, Y, ie, 23, s[35]), Y = h(Y, q, L, j, w, 4, s[36]), j = h(j, Y, q, L, C, 11, s[37]), L = h(L, j, Y, q, P, 16, s[38]), q = h(q, L, j, Y, M, 23, s[39]), Y = h(Y, q, L, j, G, 4, s[40]), j = h(j, Y, q, L, R, 11, s[41]), L = h(L, j, Y, q, x, 16, s[42]), q = h(q, L, j, Y, A, 23, s[43]), Y = h(Y, q, L, j, D, 4, s[44]), j = h(j, Y, q, L, N, 11, s[45]), L = h(L, j, Y, q, ye, 16, s[46]), q = h(q, L, j, Y, S, 23, s[47]), Y = p(Y, q, L, j, R, 6, s[48]), j = p(j, Y, q, L, P, 10, s[49]), L = p(L, j, Y, q, ie, 15, s[50]), q = p(q, L, j, Y, T, 21, s[51]), Y = p(Y, q, L, j, N, 6, s[52]), j = p(j, Y, q, L, x, 10, s[53]), L = p(L, j, Y, q, M, 15, s[54]), q = p(q, L, j, Y, w, 21, s[55]), Y = p(Y, q, L, j, H, 6, s[56]), j = p(j, Y, q, L, ye, 10, s[57]), L = p(L, j, Y, q, A, 15, s[58]), q = p(q, L, j, Y, G, 21, s[59]), Y = p(Y, q, L, j, C, 6, s[60]), j = p(j, Y, q, L, E, 10, s[61]), L = p(L, j, Y, q, S, 15, s[62]), q = p(q, L, j, Y, D, 21, s[63]), b[0] = b[0] + Y | 0, b[1] = b[1] + q | 0, b[2] = b[2] + L | 0, b[3] = b[3] + j | 0;
815
+ var b = this._hash.words, R = g[v + 0], w = g[v + 1], S = g[v + 2], x = g[v + 3], C = g[v + 4], T = g[v + 5], M = g[v + 6], P = g[v + 7], H = g[v + 8], D = g[v + 9], A = g[v + 10], E = g[v + 11], N = g[v + 12], G = g[v + 13], ie = g[v + 14], ye = g[v + 15], Y = b[0], q = b[1], L = b[2], j = b[3];
816
+ Y = f(Y, q, L, j, R, 7, s[0]), j = f(j, Y, q, L, w, 12, s[1]), L = f(L, j, Y, q, S, 17, s[2]), q = f(q, L, j, Y, x, 22, s[3]), Y = f(Y, q, L, j, C, 7, s[4]), j = f(j, Y, q, L, T, 12, s[5]), L = f(L, j, Y, q, M, 17, s[6]), q = f(q, L, j, Y, P, 22, s[7]), Y = f(Y, q, L, j, H, 7, s[8]), j = f(j, Y, q, L, D, 12, s[9]), L = f(L, j, Y, q, A, 17, s[10]), q = f(q, L, j, Y, E, 22, s[11]), Y = f(Y, q, L, j, N, 7, s[12]), j = f(j, Y, q, L, G, 12, s[13]), L = f(L, j, Y, q, ie, 17, s[14]), q = f(q, L, j, Y, ye, 22, s[15]), Y = d(Y, q, L, j, w, 5, s[16]), j = d(j, Y, q, L, M, 9, s[17]), L = d(L, j, Y, q, E, 14, s[18]), q = d(q, L, j, Y, R, 20, s[19]), Y = d(Y, q, L, j, T, 5, s[20]), j = d(j, Y, q, L, A, 9, s[21]), L = d(L, j, Y, q, ye, 14, s[22]), q = d(q, L, j, Y, C, 20, s[23]), Y = d(Y, q, L, j, D, 5, s[24]), j = d(j, Y, q, L, ie, 9, s[25]), L = d(L, j, Y, q, x, 14, s[26]), q = d(q, L, j, Y, H, 20, s[27]), Y = d(Y, q, L, j, G, 5, s[28]), j = d(j, Y, q, L, S, 9, s[29]), L = d(L, j, Y, q, P, 14, s[30]), q = d(q, L, j, Y, N, 20, s[31]), Y = h(Y, q, L, j, T, 4, s[32]), j = h(j, Y, q, L, H, 11, s[33]), L = h(L, j, Y, q, E, 16, s[34]), q = h(q, L, j, Y, ie, 23, s[35]), Y = h(Y, q, L, j, w, 4, s[36]), j = h(j, Y, q, L, C, 11, s[37]), L = h(L, j, Y, q, P, 16, s[38]), q = h(q, L, j, Y, A, 23, s[39]), Y = h(Y, q, L, j, G, 4, s[40]), j = h(j, Y, q, L, R, 11, s[41]), L = h(L, j, Y, q, x, 16, s[42]), q = h(q, L, j, Y, M, 23, s[43]), Y = h(Y, q, L, j, D, 4, s[44]), j = h(j, Y, q, L, N, 11, s[45]), L = h(L, j, Y, q, ye, 16, s[46]), q = h(q, L, j, Y, S, 23, s[47]), Y = p(Y, q, L, j, R, 6, s[48]), j = p(j, Y, q, L, P, 10, s[49]), L = p(L, j, Y, q, ie, 15, s[50]), q = p(q, L, j, Y, T, 21, s[51]), Y = p(Y, q, L, j, N, 6, s[52]), j = p(j, Y, q, L, x, 10, s[53]), L = p(L, j, Y, q, A, 15, s[54]), q = p(q, L, j, Y, w, 21, s[55]), Y = p(Y, q, L, j, H, 6, s[56]), j = p(j, Y, q, L, ye, 10, s[57]), L = p(L, j, Y, q, M, 15, s[58]), q = p(q, L, j, Y, G, 21, s[59]), Y = p(Y, q, L, j, C, 6, s[60]), j = p(j, Y, q, L, E, 10, s[61]), L = p(L, j, Y, q, S, 15, s[62]), q = p(q, L, j, Y, D, 21, s[63]), b[0] = b[0] + Y | 0, b[1] = b[1] + q | 0, b[2] = b[2] + L | 0, b[3] = b[3] + j | 0;
817
817
  },
818
818
  _doFinalize: function() {
819
819
  var g = this._data, v = g.words, _ = this._nDataBytes * 8, y = g.sigBytes * 8;
@@ -966,8 +966,8 @@ var zf = /* @__PURE__ */ nn(((e, t) => {
966
966
  createDecryptor: function(C, T) {
967
967
  return this.create(this._DEC_XFORM_MODE, C, T);
968
968
  },
969
- init: function(C, T, A) {
970
- this.cfg = this.cfg.extend(A), this._xformMode = C, this._key = T, this.reset();
969
+ init: function(C, T, M) {
970
+ this.cfg = this.cfg.extend(M), this._xformMode = C, this._key = T, this.reset();
971
971
  },
972
972
  reset: function() {
973
973
  c.reset.call(this), this._doReset();
@@ -988,11 +988,11 @@ var zf = /* @__PURE__ */ nn(((e, t) => {
988
988
  }
989
989
  return function(T) {
990
990
  return {
991
- encrypt: function(A, P, H) {
992
- return C(P).encrypt(T, A, P, H);
991
+ encrypt: function(M, P, H) {
992
+ return C(P).encrypt(T, M, P, H);
993
993
  },
994
- decrypt: function(A, P, H) {
995
- return C(P).decrypt(T, A, P, H);
994
+ decrypt: function(M, P, H) {
995
+ return C(P).decrypt(T, M, P, H);
996
996
  }
997
997
  };
998
998
  };
@@ -1016,22 +1016,22 @@ var zf = /* @__PURE__ */ nn(((e, t) => {
1016
1016
  }
1017
1017
  }), g = h.CBC = (function() {
1018
1018
  var C = p.extend();
1019
- C.Encryptor = C.extend({ processBlock: function(A, P) {
1019
+ C.Encryptor = C.extend({ processBlock: function(M, P) {
1020
1020
  var H = this._cipher, D = H.blockSize;
1021
- T.call(this, A, P, D), H.encryptBlock(A, P), this._prevBlock = A.slice(P, P + D);
1022
- } }), C.Decryptor = C.extend({ processBlock: function(A, P) {
1023
- var H = this._cipher, D = H.blockSize, M = A.slice(P, P + D);
1024
- H.decryptBlock(A, P), T.call(this, A, P, D), this._prevBlock = M;
1021
+ T.call(this, M, P, D), H.encryptBlock(M, P), this._prevBlock = M.slice(P, P + D);
1022
+ } }), C.Decryptor = C.extend({ processBlock: function(M, P) {
1023
+ var H = this._cipher, D = H.blockSize, A = M.slice(P, P + D);
1024
+ H.decryptBlock(M, P), T.call(this, M, P, D), this._prevBlock = A;
1025
1025
  } });
1026
- function T(A, P, H) {
1027
- var D, M = this._iv;
1028
- M ? (D = M, this._iv = a) : D = this._prevBlock;
1029
- for (var E = 0; E < H; E++) A[P + E] ^= D[E];
1026
+ function T(M, P, H) {
1027
+ var D, A = this._iv;
1028
+ A ? (D = A, this._iv = a) : D = this._prevBlock;
1029
+ for (var E = 0; E < H; E++) M[P + E] ^= D[E];
1030
1030
  }
1031
1031
  return C;
1032
1032
  })(), v = o.pad = {}, _ = v.Pkcs7 = {
1033
1033
  pad: function(C, T) {
1034
- for (var A = T * 4, P = A - C.sigBytes % A, H = P << 24 | P << 16 | P << 8 | P, D = [], M = 0; M < P; M += 4) D.push(H);
1034
+ for (var M = T * 4, P = M - C.sigBytes % M, H = P << 24 | P << 16 | P << 8 | P, D = [], A = 0; A < P; A += 4) D.push(H);
1035
1035
  var E = l.create(D, P);
1036
1036
  C.concat(E);
1037
1037
  },
@@ -1048,8 +1048,8 @@ var zf = /* @__PURE__ */ nn(((e, t) => {
1048
1048
  reset: function() {
1049
1049
  var C;
1050
1050
  d.reset.call(this);
1051
- var T = this.cfg, A = T.iv, P = T.mode;
1052
- this._xformMode == this._ENC_XFORM_MODE ? C = P.createEncryptor : (C = P.createDecryptor, this._minBufferSize = 1), this._mode && this._mode.__creator == C ? this._mode.init(this, A && A.words) : (this._mode = C.call(P, this, A && A.words), this._mode.__creator = C);
1051
+ var T = this.cfg, M = T.iv, P = T.mode;
1052
+ this._xformMode == this._ENC_XFORM_MODE ? C = P.createEncryptor : (C = P.createDecryptor, this._minBufferSize = 1), this._mode && this._mode.__creator == C ? this._mode.init(this, M && M.words) : (this._mode = C.call(P, this, M && M.words), this._mode.__creator = C);
1053
1053
  },
1054
1054
  _doProcessBlock: function(C, T) {
1055
1055
  this._mode.processBlock(C, T);
@@ -1069,62 +1069,62 @@ var zf = /* @__PURE__ */ nn(((e, t) => {
1069
1069
  }
1070
1070
  }), m = o.format = {}, b = m.OpenSSL = {
1071
1071
  stringify: function(C) {
1072
- var T, A = C.ciphertext, P = C.salt;
1073
- return P ? T = l.create([1398893684, 1701076831]).concat(P).concat(A) : T = A, T.toString(u);
1072
+ var T, M = C.ciphertext, P = C.salt;
1073
+ return P ? T = l.create([1398893684, 1701076831]).concat(P).concat(M) : T = M, T.toString(u);
1074
1074
  },
1075
1075
  parse: function(C) {
1076
- var T, A = u.parse(C), P = A.words;
1077
- return P[0] == 1398893684 && P[1] == 1701076831 && (T = l.create(P.slice(2, 4)), P.splice(0, 4), A.sigBytes -= 16), y.create({
1078
- ciphertext: A,
1076
+ var T, M = u.parse(C), P = M.words;
1077
+ return P[0] == 1398893684 && P[1] == 1701076831 && (T = l.create(P.slice(2, 4)), P.splice(0, 4), M.sigBytes -= 16), y.create({
1078
+ ciphertext: M,
1079
1079
  salt: T
1080
1080
  });
1081
1081
  }
1082
1082
  }, R = i.SerializableCipher = r.extend({
1083
1083
  cfg: r.extend({ format: b }),
1084
- encrypt: function(C, T, A, P) {
1084
+ encrypt: function(C, T, M, P) {
1085
1085
  P = this.cfg.extend(P);
1086
- var H = C.createEncryptor(A, P), D = H.finalize(T), M = H.cfg;
1086
+ var H = C.createEncryptor(M, P), D = H.finalize(T), A = H.cfg;
1087
1087
  return y.create({
1088
1088
  ciphertext: D,
1089
- key: A,
1090
- iv: M.iv,
1089
+ key: M,
1090
+ iv: A.iv,
1091
1091
  algorithm: C,
1092
- mode: M.mode,
1093
- padding: M.padding,
1092
+ mode: A.mode,
1093
+ padding: A.padding,
1094
1094
  blockSize: C.blockSize,
1095
1095
  formatter: P.format
1096
1096
  });
1097
1097
  },
1098
- decrypt: function(C, T, A, P) {
1099
- return P = this.cfg.extend(P), T = this._parse(T, P.format), C.createDecryptor(A, P).finalize(T.ciphertext);
1098
+ decrypt: function(C, T, M, P) {
1099
+ return P = this.cfg.extend(P), T = this._parse(T, P.format), C.createDecryptor(M, P).finalize(T.ciphertext);
1100
1100
  },
1101
1101
  _parse: function(C, T) {
1102
1102
  return typeof C == "string" ? T.parse(C, this) : C;
1103
1103
  }
1104
- }), w = o.kdf = {}, S = w.OpenSSL = { execute: function(C, T, A, P, H) {
1104
+ }), w = o.kdf = {}, S = w.OpenSSL = { execute: function(C, T, M, P, H) {
1105
1105
  if (P || (P = l.random(64 / 8)), H) var D = f.create({
1106
- keySize: T + A,
1106
+ keySize: T + M,
1107
1107
  hasher: H
1108
1108
  }).compute(C, P);
1109
- else var D = f.create({ keySize: T + A }).compute(C, P);
1110
- var M = l.create(D.words.slice(T), A * 4);
1109
+ else var D = f.create({ keySize: T + M }).compute(C, P);
1110
+ var A = l.create(D.words.slice(T), M * 4);
1111
1111
  return D.sigBytes = T * 4, y.create({
1112
1112
  key: D,
1113
- iv: M,
1113
+ iv: A,
1114
1114
  salt: P
1115
1115
  });
1116
1116
  } }, x = i.PasswordBasedCipher = R.extend({
1117
1117
  cfg: R.cfg.extend({ kdf: S }),
1118
- encrypt: function(C, T, A, P) {
1118
+ encrypt: function(C, T, M, P) {
1119
1119
  P = this.cfg.extend(P);
1120
- var H = P.kdf.execute(A, C.keySize, C.ivSize, P.salt, P.hasher);
1120
+ var H = P.kdf.execute(M, C.keySize, C.ivSize, P.salt, P.hasher);
1121
1121
  P.iv = H.iv;
1122
1122
  var D = R.encrypt.call(this, C, T, H.key, P);
1123
1123
  return D.mixIn(H), D;
1124
1124
  },
1125
- decrypt: function(C, T, A, P) {
1125
+ decrypt: function(C, T, M, P) {
1126
1126
  P = this.cfg.extend(P), T = this._parse(T, P.format);
1127
- var H = P.kdf.execute(A, C.keySize, C.ivSize, T.salt, P.hasher);
1127
+ var H = P.kdf.execute(M, C.keySize, C.ivSize, T.salt, P.hasher);
1128
1128
  return P.iv = H.iv, R.decrypt.call(this, C, T, H.key, P);
1129
1129
  }
1130
1130
  });
@@ -1188,11 +1188,11 @@ var zf = /* @__PURE__ */ nn(((e, t) => {
1188
1188
  y[m + 1] = y[m + 3], y[m + 3] = b;
1189
1189
  },
1190
1190
  _doCryptBlock: function(y, m, b, R, w, S, x, C) {
1191
- for (var T = this._nRounds, A = y[m] ^ b[0], P = y[m + 1] ^ b[1], H = y[m + 2] ^ b[2], D = y[m + 3] ^ b[3], M = 4, E = 1; E < T; E++) {
1192
- var N = R[A >>> 24] ^ w[P >>> 16 & 255] ^ S[H >>> 8 & 255] ^ x[D & 255] ^ b[M++], G = R[P >>> 24] ^ w[H >>> 16 & 255] ^ S[D >>> 8 & 255] ^ x[A & 255] ^ b[M++], ie = R[H >>> 24] ^ w[D >>> 16 & 255] ^ S[A >>> 8 & 255] ^ x[P & 255] ^ b[M++], ye = R[D >>> 24] ^ w[A >>> 16 & 255] ^ S[P >>> 8 & 255] ^ x[H & 255] ^ b[M++];
1193
- A = N, P = G, H = ie, D = ye;
1191
+ for (var T = this._nRounds, M = y[m] ^ b[0], P = y[m + 1] ^ b[1], H = y[m + 2] ^ b[2], D = y[m + 3] ^ b[3], A = 4, E = 1; E < T; E++) {
1192
+ var N = R[M >>> 24] ^ w[P >>> 16 & 255] ^ S[H >>> 8 & 255] ^ x[D & 255] ^ b[A++], G = R[P >>> 24] ^ w[H >>> 16 & 255] ^ S[D >>> 8 & 255] ^ x[M & 255] ^ b[A++], ie = R[H >>> 24] ^ w[D >>> 16 & 255] ^ S[M >>> 8 & 255] ^ x[P & 255] ^ b[A++], ye = R[D >>> 24] ^ w[M >>> 16 & 255] ^ S[P >>> 8 & 255] ^ x[H & 255] ^ b[A++];
1193
+ M = N, P = G, H = ie, D = ye;
1194
1194
  }
1195
- var N = (C[A >>> 24] << 24 | C[P >>> 16 & 255] << 16 | C[H >>> 8 & 255] << 8 | C[D & 255]) ^ b[M++], G = (C[P >>> 24] << 24 | C[H >>> 16 & 255] << 16 | C[D >>> 8 & 255] << 8 | C[A & 255]) ^ b[M++], ie = (C[H >>> 24] << 24 | C[D >>> 16 & 255] << 16 | C[A >>> 8 & 255] << 8 | C[P & 255]) ^ b[M++], ye = (C[D >>> 24] << 24 | C[A >>> 16 & 255] << 16 | C[P >>> 8 & 255] << 8 | C[H & 255]) ^ b[M++];
1195
+ var N = (C[M >>> 24] << 24 | C[P >>> 16 & 255] << 16 | C[H >>> 8 & 255] << 8 | C[D & 255]) ^ b[A++], G = (C[P >>> 24] << 24 | C[H >>> 16 & 255] << 16 | C[D >>> 8 & 255] << 8 | C[M & 255]) ^ b[A++], ie = (C[H >>> 24] << 24 | C[D >>> 16 & 255] << 16 | C[M >>> 8 & 255] << 8 | C[P & 255]) ^ b[A++], ye = (C[D >>> 24] << 24 | C[M >>> 16 & 255] << 16 | C[P >>> 8 & 255] << 8 | C[H & 255]) ^ b[A++];
1196
1196
  y[m] = N, y[m + 1] = G, y[m + 2] = ie, y[m + 3] = ye;
1197
1197
  },
1198
1198
  keySize: 256 / 32
@@ -1237,10 +1237,10 @@ var zf = /* @__PURE__ */ nn(((e, t) => {
1237
1237
  for (var g = this._hash.words, v = g[0], _ = g[1], y = g[2], m = g[3], b = g[4], R = g[5], w = g[6], S = g[7], x = 0; x < 64; x++) {
1238
1238
  if (x < 16) f[x] = h[p + x] | 0;
1239
1239
  else {
1240
- var C = f[x - 15], T = (C << 25 | C >>> 7) ^ (C << 14 | C >>> 18) ^ C >>> 3, A = f[x - 2], P = (A << 15 | A >>> 17) ^ (A << 13 | A >>> 19) ^ A >>> 10;
1240
+ var C = f[x - 15], T = (C << 25 | C >>> 7) ^ (C << 14 | C >>> 18) ^ C >>> 3, M = f[x - 2], P = (M << 15 | M >>> 17) ^ (M << 13 | M >>> 19) ^ M >>> 10;
1241
1241
  f[x] = T + f[x - 7] + P + f[x - 16];
1242
1242
  }
1243
- var H = b & R ^ ~b & w, D = v & _ ^ v & y ^ _ & y, M = (v << 30 | v >>> 2) ^ (v << 19 | v >>> 13) ^ (v << 10 | v >>> 22), E = (b << 26 | b >>> 6) ^ (b << 21 | b >>> 11) ^ (b << 7 | b >>> 25), N = S + E + H + u[x] + f[x], G = M + D;
1243
+ var H = b & R ^ ~b & w, D = v & _ ^ v & y ^ _ & y, A = (v << 30 | v >>> 2) ^ (v << 19 | v >>> 13) ^ (v << 10 | v >>> 22), E = (b << 26 | b >>> 6) ^ (b << 21 | b >>> 11) ^ (b << 7 | b >>> 25), N = S + E + H + u[x] + f[x], G = A + D;
1244
1244
  S = w, w = R, R = b, b = m + N | 0, m = y, y = _, _ = v, v = N + G | 0;
1245
1245
  }
1246
1246
  g[0] = g[0] + v | 0, g[1] = g[1] + _ | 0, g[2] = g[2] + y | 0, g[3] = g[3] + m | 0, g[4] = g[4] + b | 0, g[5] = g[5] + R | 0, g[6] = g[6] + w | 0, g[7] = g[7] + S | 0;
@@ -1391,7 +1391,7 @@ var zf = /* @__PURE__ */ nn(((e, t) => {
1391
1391
  ]);
1392
1392
  },
1393
1393
  _doProcessBlock: function(h, p) {
1394
- for (var g = this._hash.words, v = g[0], _ = g[1], y = g[2], m = g[3], b = g[4], R = g[5], w = g[6], S = g[7], x = v.high, C = v.low, T = _.high, A = _.low, P = y.high, H = y.low, D = m.high, M = m.low, E = b.high, N = b.low, G = R.high, ie = R.low, ye = w.high, Y = w.low, q = S.high, L = S.low, j = x, we = C, Ee = T, Ce = A, Fe = P, ze = H, re = D, ke = M, Pe = E, Oe = N, Tt = G, At = ie, Xe = ye, an = Y, St = q, Wt = L, kt = 0; kt < 80; kt++) {
1394
+ for (var g = this._hash.words, v = g[0], _ = g[1], y = g[2], m = g[3], b = g[4], R = g[5], w = g[6], S = g[7], x = v.high, C = v.low, T = _.high, M = _.low, P = y.high, H = y.low, D = m.high, A = m.low, E = b.high, N = b.low, G = R.high, ie = R.low, ye = w.high, Y = w.low, q = S.high, L = S.low, j = x, we = C, Ee = T, Ce = M, Fe = P, ze = H, re = D, ke = A, Pe = E, Oe = N, Tt = G, Mt = ie, Xe = ye, an = Y, St = q, Wt = L, kt = 0; kt < 80; kt++) {
1395
1395
  var _t, Ut, Z = f[kt];
1396
1396
  if (kt < 16)
1397
1397
  Ut = Z.high = h[p + kt * 2] | 0, _t = Z.low = h[p + kt * 2 + 1] | 0;
@@ -1399,10 +1399,10 @@ var zf = /* @__PURE__ */ nn(((e, t) => {
1399
1399
  var ue = f[kt - 15], te = ue.high, ae = ue.low, he = (te >>> 1 | ae << 31) ^ (te >>> 8 | ae << 24) ^ te >>> 7, Be = (ae >>> 1 | te << 31) ^ (ae >>> 8 | te << 24) ^ (ae >>> 7 | te << 25), Ve = f[kt - 2], Ge = Ve.high, pt = Ve.low, ft = (Ge >>> 19 | pt << 13) ^ (Ge << 3 | pt >>> 29) ^ Ge >>> 6, pn = (pt >>> 19 | Ge << 13) ^ (pt << 3 | Ge >>> 29) ^ (pt >>> 6 | Ge << 26), Wn = f[kt - 7], Oa = Wn.high, sn = Wn.low, fa = f[kt - 16], Re = fa.high, Te = fa.low;
1400
1400
  _t = Be + sn, Ut = he + Oa + (_t >>> 0 < Be >>> 0 ? 1 : 0), _t = _t + pn, Ut = Ut + ft + (_t >>> 0 < pn >>> 0 ? 1 : 0), _t = _t + Te, Ut = Ut + Re + (_t >>> 0 < Te >>> 0 ? 1 : 0), Z.high = Ut, Z.low = _t;
1401
1401
  }
1402
- var mt = Pe & Tt ^ ~Pe & Xe, Ot = Oe & At ^ ~Oe & an, me = j & Ee ^ j & Fe ^ Ee & Fe, gt = we & Ce ^ we & ze ^ Ce & ze, Jt = (j >>> 28 | we << 4) ^ (j << 30 | we >>> 2) ^ (j << 25 | we >>> 7), zt = (we >>> 28 | j << 4) ^ (we << 30 | j >>> 2) ^ (we << 25 | j >>> 7), Dt = (Pe >>> 14 | Oe << 18) ^ (Pe >>> 18 | Oe << 14) ^ (Pe << 23 | Oe >>> 9), ct = (Oe >>> 14 | Pe << 18) ^ (Oe >>> 18 | Pe << 14) ^ (Oe << 23 | Pe >>> 9), On = u[kt], Ia = On.high, Cn = On.low, ot = Wt + ct, ut = St + Dt + (ot >>> 0 < Wt >>> 0 ? 1 : 0), ot = ot + Ot, ut = ut + mt + (ot >>> 0 < Ot >>> 0 ? 1 : 0), ot = ot + Cn, ut = ut + Ia + (ot >>> 0 < Cn >>> 0 ? 1 : 0), ot = ot + _t, ut = ut + Ut + (ot >>> 0 < _t >>> 0 ? 1 : 0), Zt = zt + gt, Qt = Jt + me + (Zt >>> 0 < zt >>> 0 ? 1 : 0);
1403
- St = Xe, Wt = an, Xe = Tt, an = At, Tt = Pe, At = Oe, Oe = ke + ot | 0, Pe = re + ut + (Oe >>> 0 < ke >>> 0 ? 1 : 0) | 0, re = Fe, ke = ze, Fe = Ee, ze = Ce, Ee = j, Ce = we, we = ot + Zt | 0, j = ut + Qt + (we >>> 0 < ot >>> 0 ? 1 : 0) | 0;
1402
+ var mt = Pe & Tt ^ ~Pe & Xe, Ot = Oe & Mt ^ ~Oe & an, me = j & Ee ^ j & Fe ^ Ee & Fe, gt = we & Ce ^ we & ze ^ Ce & ze, Jt = (j >>> 28 | we << 4) ^ (j << 30 | we >>> 2) ^ (j << 25 | we >>> 7), zt = (we >>> 28 | j << 4) ^ (we << 30 | j >>> 2) ^ (we << 25 | j >>> 7), Dt = (Pe >>> 14 | Oe << 18) ^ (Pe >>> 18 | Oe << 14) ^ (Pe << 23 | Oe >>> 9), ct = (Oe >>> 14 | Pe << 18) ^ (Oe >>> 18 | Pe << 14) ^ (Oe << 23 | Pe >>> 9), On = u[kt], Ia = On.high, Cn = On.low, ot = Wt + ct, ut = St + Dt + (ot >>> 0 < Wt >>> 0 ? 1 : 0), ot = ot + Ot, ut = ut + mt + (ot >>> 0 < Ot >>> 0 ? 1 : 0), ot = ot + Cn, ut = ut + Ia + (ot >>> 0 < Cn >>> 0 ? 1 : 0), ot = ot + _t, ut = ut + Ut + (ot >>> 0 < _t >>> 0 ? 1 : 0), Zt = zt + gt, Qt = Jt + me + (Zt >>> 0 < zt >>> 0 ? 1 : 0);
1403
+ St = Xe, Wt = an, Xe = Tt, an = Mt, Tt = Pe, Mt = Oe, Oe = ke + ot | 0, Pe = re + ut + (Oe >>> 0 < ke >>> 0 ? 1 : 0) | 0, re = Fe, ke = ze, Fe = Ee, ze = Ce, Ee = j, Ce = we, we = ot + Zt | 0, j = ut + Qt + (we >>> 0 < ot >>> 0 ? 1 : 0) | 0;
1404
1404
  }
1405
- C = v.low = C + we, v.high = x + j + (C >>> 0 < we >>> 0 ? 1 : 0), A = _.low = A + Ce, _.high = T + Ee + (A >>> 0 < Ce >>> 0 ? 1 : 0), H = y.low = H + ze, y.high = P + Fe + (H >>> 0 < ze >>> 0 ? 1 : 0), M = m.low = M + ke, m.high = D + re + (M >>> 0 < ke >>> 0 ? 1 : 0), N = b.low = N + Oe, b.high = E + Pe + (N >>> 0 < Oe >>> 0 ? 1 : 0), ie = R.low = ie + At, R.high = G + Tt + (ie >>> 0 < At >>> 0 ? 1 : 0), Y = w.low = Y + an, w.high = ye + Xe + (Y >>> 0 < an >>> 0 ? 1 : 0), L = S.low = L + Wt, S.high = q + St + (L >>> 0 < Wt >>> 0 ? 1 : 0);
1405
+ C = v.low = C + we, v.high = x + j + (C >>> 0 < we >>> 0 ? 1 : 0), M = _.low = M + Ce, _.high = T + Ee + (M >>> 0 < Ce >>> 0 ? 1 : 0), H = y.low = H + ze, y.high = P + Fe + (H >>> 0 < ze >>> 0 ? 1 : 0), A = m.low = A + ke, m.high = D + re + (A >>> 0 < ke >>> 0 ? 1 : 0), N = b.low = N + Oe, b.high = E + Pe + (N >>> 0 < Oe >>> 0 ? 1 : 0), ie = R.low = ie + Mt, R.high = G + Tt + (ie >>> 0 < Mt >>> 0 ? 1 : 0), Y = w.low = Y + an, w.high = ye + Xe + (Y >>> 0 < an >>> 0 ? 1 : 0), L = S.low = L + Wt, S.high = q + St + (L >>> 0 < Wt >>> 0 ? 1 : 0);
1406
1406
  },
1407
1407
  _doFinalize: function() {
1408
1408
  var h = this._data, p = h.words, g = this._nDataBytes * 8, v = h.sigBytes * 8;
@@ -1681,8 +1681,8 @@ var yh = /* @__PURE__ */ fe({
1681
1681
  b && b();
1682
1682
  }) || {};
1683
1683
  if (D && D.length > 0) {
1684
- const M = [];
1685
- M.push(...s.value), M.push(...D), s.value = M;
1684
+ const A = [];
1685
+ A.push(...s.value), A.push(...D), s.value = A;
1686
1686
  }
1687
1687
  } catch (D) {
1688
1688
  n.value.close(), console.error(D);
@@ -1707,14 +1707,14 @@ var yh = /* @__PURE__ */ fe({
1707
1707
  const H = await f.value.ok();
1708
1708
  H && (n.value.close(), b && await b(H)), $a(!1);
1709
1709
  }
1710
- }, A = () => {
1710
+ }, M = () => {
1711
1711
  f.value?.closed && f.value.closed(), R && R();
1712
1712
  }, P = () => {
1713
1713
  w && w();
1714
1714
  };
1715
1715
  return hh({ getPageName: g }), t({ open: C }), (H, D) => {
1716
- const M = $("j-layer");
1717
- return k(), V(M, {
1716
+ const A = $("j-layer");
1717
+ return k(), V(A, {
1718
1718
  ref_key: "layerRef",
1719
1719
  ref: n,
1720
1720
  width: a.value,
@@ -1730,7 +1730,7 @@ var yh = /* @__PURE__ */ fe({
1730
1730
  "has-save-btn": r.value,
1731
1731
  "has-header": l.value,
1732
1732
  onOk: T,
1733
- onClosed: A,
1733
+ onClosed: M,
1734
1734
  onCancel: P
1735
1735
  }, {
1736
1736
  default: J(() => [(k(), V(Ua(d.value), Ne({
@@ -2217,7 +2217,7 @@ var bh = _e(Ec), wh = /* @__PURE__ */ fe({
2217
2217
  ]);
2218
2218
  };
2219
2219
  }
2220
- }), Eh = Rh, Th = _e(Eh), Ah = /* @__PURE__ */ fe({
2220
+ }), Eh = Rh, Th = _e(Eh), Mh = /* @__PURE__ */ fe({
2221
2221
  name: "JTime",
2222
2222
  __name: "time",
2223
2223
  props: {
@@ -2349,7 +2349,7 @@ var bh = _e(Ec), wh = /* @__PURE__ */ fe({
2349
2349
  ]);
2350
2350
  };
2351
2351
  }
2352
- }), Mh = Ah, jh = _e(Mh), Ph = /* @__PURE__ */ fe({
2352
+ }), Ah = Mh, jh = _e(Ah), Ph = /* @__PURE__ */ fe({
2353
2353
  name: "JNowTime",
2354
2354
  __name: "now-time",
2355
2355
  props: {
@@ -3376,8 +3376,8 @@ var bh = _e(Ec), wh = /* @__PURE__ */ fe({
3376
3376
  }), v = I(() => n.left), _ = I(() => n.right), y = I(() => n.top), m = I(() => n.bottom), b = I(() => v.value ? u.value && t.hideMidWhenNarrow && _.value ? "50%" : u.value && t.hideMidWhenNarrow && !_.value ? "100%" : typeof d.value == "number" ? d.value + "px" : d.value : "0"), R = I(() => _.value ? u.value && t.hideMidWhenNarrow && v.value ? "50%" : u.value && t.hideMidWhenNarrow && !v.value ? "100%" : typeof h.value == "number" ? h.value + "px" : h.value : "0"), w = I(() => y.value ? typeof p.value == "number" ? p.value + "px" : p.value : "0"), S = I(() => m.value ? typeof g.value == "number" ? g.value + "px" : g.value : "0"), x = I(() => ({
3377
3377
  minWidth: t.midMinWidth + "px",
3378
3378
  minHeight: t.midMinHeight + "px"
3379
- })), C = (D, M) => {
3380
- f.type = D, f.isMove = !0, f.pageX = M.pageX, f.pageY = M.pageY, f.h = o.value.clientHeight, f.w = o.value.clientWidth;
3379
+ })), C = (D, A) => {
3380
+ f.type = D, f.isMove = !0, f.pageX = A.pageX, f.pageY = A.pageY, f.h = o.value.clientHeight, f.w = o.value.clientWidth;
3381
3381
  const E = a.value.clientWidth, N = a.value.clientHeight;
3382
3382
  switch (D) {
3383
3383
  case "left": {
@@ -3401,35 +3401,35 @@ var bh = _e(Ec), wh = /* @__PURE__ */ fe({
3401
3401
  break;
3402
3402
  }
3403
3403
  }
3404
- document.onmouseup = A, document.onmousemove = T;
3404
+ document.onmouseup = M, document.onmousemove = T;
3405
3405
  }, T = (D) => {
3406
3406
  if (f.isMove) switch (f.type) {
3407
3407
  case "left": {
3408
- const M = D.pageX - f.pageX;
3409
- let E = f.size + M;
3408
+ const A = D.pageX - f.pageX;
3409
+ let E = f.size + A;
3410
3410
  E < 0 ? E = 4 : E > f.size + f.w - t.midMinWidth && (E = f.size + f.w - t.midMinWidth), d.value = E;
3411
3411
  break;
3412
3412
  }
3413
3413
  case "right": {
3414
- const M = D.pageX - f.pageX;
3415
- let E = f.size - M;
3414
+ const A = D.pageX - f.pageX;
3415
+ let E = f.size - A;
3416
3416
  E < 0 ? E = 4 : E > f.size + f.w - t.midMinWidth && (E = f.size + f.w - t.midMinWidth), h.value = E;
3417
3417
  break;
3418
3418
  }
3419
3419
  case "top": {
3420
- const M = D.pageY - f.pageY;
3421
- let E = f.size + M;
3420
+ const A = D.pageY - f.pageY;
3421
+ let E = f.size + A;
3422
3422
  E < 0 ? E = 4 : E > f.size + f.h - t.midMinHeight && (E = f.size + f.h - t.midMinHeight), p.value = E;
3423
3423
  break;
3424
3424
  }
3425
3425
  case "bottom": {
3426
- const M = D.pageY - f.pageY;
3427
- let E = f.size - M;
3426
+ const A = D.pageY - f.pageY;
3427
+ let E = f.size - A;
3428
3428
  E < 0 ? E = 4 : E > f.size + f.h - t.midMinHeight && (E = f.size + f.h - t.midMinHeight), g.value = E;
3429
3429
  break;
3430
3430
  }
3431
3431
  }
3432
- }, A = () => {
3432
+ }, M = () => {
3433
3433
  f.isMove = !1, document.onmouseup = null, document.onmousemove = null;
3434
3434
  }, P = () => {
3435
3435
  if (!t.hideMidWhenNarrow || !a.value) {
@@ -3437,25 +3437,25 @@ var bh = _e(Ec), wh = /* @__PURE__ */ fe({
3437
3437
  return;
3438
3438
  }
3439
3439
  s.value = a.value.clientWidth;
3440
- let D = 0, M = 0;
3440
+ let D = 0, A = 0;
3441
3441
  if (v.value) {
3442
3442
  const E = d.value;
3443
3443
  D = typeof E == "string" && E.includes("%") ? parseFloat(E) / 100 * s.value : Number(E);
3444
3444
  }
3445
3445
  if (_.value) {
3446
3446
  const E = h.value;
3447
- M = typeof E == "string" && E.includes("%") ? parseFloat(E) / 100 * s.value : Number(E);
3447
+ A = typeof E == "string" && E.includes("%") ? parseFloat(E) / 100 * s.value : Number(E);
3448
3448
  }
3449
- u.value = s.value - D - M < t.midMinWidth;
3449
+ u.value = s.value - D - A < t.midMinWidth;
3450
3450
  };
3451
3451
  let H = null;
3452
3452
  return Pt(() => {
3453
3453
  t.hideMidWhenNarrow && a.value && typeof window < "u" && window.ResizeObserver && (P(), H = new ResizeObserver(() => {
3454
3454
  P();
3455
3455
  }), H.observe(a.value));
3456
- }), Ao(() => {
3456
+ }), Mo(() => {
3457
3457
  H && H.disconnect();
3458
- }), (D, M) => (k(), z("div", {
3458
+ }), (D, A) => (k(), z("div", {
3459
3459
  ref_key: "layout",
3460
3460
  ref: a,
3461
3461
  class: Ye(["j-layout", { "j-layout-not-hidden": e.notHidden }])
@@ -3467,7 +3467,7 @@ var bh = _e(Ec), wh = /* @__PURE__ */ fe({
3467
3467
  }, [B("div", op, [Je(D.$slots, "left")]), e.leftMove ? (k(), z("div", {
3468
3468
  key: 0,
3469
3469
  class: "j-layout--move",
3470
- onMousedown: M[0] || (M[0] = (E) => C("left", E))
3470
+ onMousedown: A[0] || (A[0] = (E) => C("left", E))
3471
3471
  }, null, 32)) : ee("", !0)], 4)) : ee("", !0),
3472
3472
  u.value ? ee("", !0) : (k(), z("div", ip, [
3473
3473
  y.value ? (k(), z("div", {
@@ -3477,7 +3477,7 @@ var bh = _e(Ec), wh = /* @__PURE__ */ fe({
3477
3477
  }, [B("div", rp, [Je(D.$slots, "top")]), e.topMove ? (k(), z("div", {
3478
3478
  key: 0,
3479
3479
  class: "j-layout--move",
3480
- onMousedown: M[1] || (M[1] = (E) => C("top", E))
3480
+ onMousedown: A[1] || (A[1] = (E) => C("top", E))
3481
3481
  }, null, 32)) : ee("", !0)], 4)) : ee("", !0),
3482
3482
  B("div", {
3483
3483
  ref_key: "mid",
@@ -3492,7 +3492,7 @@ var bh = _e(Ec), wh = /* @__PURE__ */ fe({
3492
3492
  }, [B("div", lp, [Je(D.$slots, "bottom")]), e.bottomMove ? (k(), z("div", {
3493
3493
  key: 0,
3494
3494
  class: "j-layout--move",
3495
- onMousedown: M[2] || (M[2] = (E) => C("bottom", E))
3495
+ onMousedown: A[2] || (A[2] = (E) => C("bottom", E))
3496
3496
  }, null, 32)) : ee("", !0)], 4)) : ee("", !0)
3497
3497
  ])),
3498
3498
  _.value ? (k(), z("div", {
@@ -3502,7 +3502,7 @@ var bh = _e(Ec), wh = /* @__PURE__ */ fe({
3502
3502
  }, [B("div", sp, [Je(D.$slots, "right")]), e.rightMove ? (k(), z("div", {
3503
3503
  key: 0,
3504
3504
  class: "j-layout--move",
3505
- onMousedown: M[3] || (M[3] = (E) => C("right", E))
3505
+ onMousedown: A[3] || (A[3] = (E) => C("right", E))
3506
3506
  }, null, 32)) : ee("", !0)], 4)) : ee("", !0)
3507
3507
  ], 2));
3508
3508
  }
@@ -4708,9 +4708,9 @@ var pp = class {
4708
4708
  }
4709
4709
  waitForRenderComplete(e) {
4710
4710
  const t = () => {
4711
- this.table.off(Al.AFTER_RENDER, t), e();
4711
+ this.table.off(Ml.AFTER_RENDER, t), e();
4712
4712
  };
4713
- this.table.on(Al.AFTER_RENDER, t);
4713
+ this.table.on(Ml.AFTER_RENDER, t);
4714
4714
  }
4715
4715
  cleanup() {
4716
4716
  if (this.mouseEventListener) {
@@ -5234,8 +5234,8 @@ var xp = class {
5234
5234
  children: n.children
5235
5235
  })), y = I(() => Vr(f.value) && !d.value?.notInput || d.value?.isInput), m = I(() => d.value?.labelWidth || l.value), b = I(() => (d.value?.rule || []).some((S) => S.required === !0)), R = I(() => i?.value?.[n.id]?.msg || ""), w = (S) => c(S);
5236
5236
  return (S, x) => {
5237
- const C = $("j-comp"), T = $("el-form-item"), A = $("el-col");
5238
- return v.value && !e.isNotCol ? (k(), V(A, {
5237
+ const C = $("j-comp"), T = $("el-form-item"), M = $("el-col");
5238
+ return v.value && !e.isNotCol ? (k(), V(M, {
5239
5239
  key: 0,
5240
5240
  span: d.value.span || U(r),
5241
5241
  style: le({ ...d.value.colStyle || {} }),
@@ -5268,7 +5268,7 @@ var xp = class {
5268
5268
  ])) : v.value ? (k(), V(C, Ne({ key: 1 }, _.value, { onChange: w }), null, 16)) : ee("", !0);
5269
5269
  };
5270
5270
  }
5271
- }), Ac = Cp, Sp = /* @__PURE__ */ fe({
5271
+ }), Mc = Cp, Sp = /* @__PURE__ */ fe({
5272
5272
  name: "JComp",
5273
5273
  __name: "comp",
5274
5274
  props: {
@@ -5384,10 +5384,10 @@ var xp = class {
5384
5384
  row: m,
5385
5385
  getTableData: v
5386
5386
  }) || []);
5387
- let A = !1;
5387
+ let M = !1;
5388
5388
  const P = () => {
5389
- A || (A = !0, queueMicrotask(() => {
5390
- A = !1, C();
5389
+ M || (M = !0, queueMicrotask(() => {
5390
+ M = !1, C();
5391
5391
  }));
5392
5392
  };
5393
5393
  C(), nt([
@@ -5402,7 +5402,7 @@ var xp = class {
5402
5402
  formData: s || {},
5403
5403
  row: m,
5404
5404
  getTableData: v
5405
- }), M = async (L) => i ? await i({
5405
+ }), A = async (L) => i ? await i({
5406
5406
  config: E.value,
5407
5407
  formData: s || {},
5408
5408
  row: m,
@@ -5420,7 +5420,7 @@ var xp = class {
5420
5420
  ...j,
5421
5421
  id: j.id.slice(we.length + 1)
5422
5422
  } : j;
5423
- })), n.isTableCell && (x.value === "j-checkbox" && (L.multiple = !0), x.value === "j-select" && L.multiple && (L.collapseTags = !0, L.collapseTagsTooltip = !0), x.value === "j-switch" && (L.size = "small"), x.value === "j-textarea" && (L.type = "textarea")), ["j-button-layer", "j-input-layer"].includes(n.type) && (L.loadLayerData = M, L.getText = D), L.dataType && (L.options = T.value), L;
5423
+ })), n.isTableCell && (x.value === "j-checkbox" && (L.multiple = !0), x.value === "j-select" && L.multiple && (L.collapseTags = !0, L.collapseTagsTooltip = !0), x.value === "j-switch" && (L.size = "small"), x.value === "j-textarea" && (L.type = "textarea")), ["j-button-layer", "j-input-layer"].includes(n.type) && (L.loadLayerData = A, L.getText = D), L.dataType && (L.options = T.value), L;
5424
5424
  }), N = I(() => {
5425
5425
  if (H.value === "j-layer-form" || H.value === "j-input-rows" || H.value === "j-input-cards") return {};
5426
5426
  const L = {};
@@ -5493,13 +5493,13 @@ var xp = class {
5493
5493
  key: 0,
5494
5494
  gutter: p.value
5495
5495
  }, {
5496
- default: J(() => [E.value.needFormItem === !0 || E.value.needFormItem?.[Fe] === !0 ? (k(!0), z(Se, { key: 0 }, Ie(Ce, (ze) => (k(), V(Ac, Ne({ key: ze.id }, { ref_for: !0 }, ze), null, 16))), 128)) : (k(!0), z(Se, { key: 1 }, Ie(Ce, (ze) => (k(), V(we, Ne({ key: ze.id }, { ref_for: !0 }, ze), null, 16))), 128))]),
5496
+ default: J(() => [E.value.needFormItem === !0 || E.value.needFormItem?.[Fe] === !0 ? (k(!0), z(Se, { key: 0 }, Ie(Ce, (ze) => (k(), V(Mc, Ne({ key: ze.id }, { ref_for: !0 }, ze), null, 16))), 128)) : (k(!0), z(Se, { key: 1 }, Ie(Ce, (ze) => (k(), V(we, Ne({ key: ze.id }, { ref_for: !0 }, ze), null, 16))), 128))]),
5497
5497
  _: 2
5498
5498
  }, 1032, ["gutter"])) : (k(!0), z(Se, { key: 1 }, Ie(Ce, (ze) => (k(), V(we, Ne({ key: ze.id }, { ref_for: !0 }, ze), null, 16))), 128))])
5499
5499
  }))]), 1040)) : ee("", !0);
5500
5500
  };
5501
5501
  }
5502
- }), Mc = Sp, kp = class {
5502
+ }), Ac = Sp, kp = class {
5503
5503
  wrapContainer = null;
5504
5504
  container = null;
5505
5505
  currentValue = null;
@@ -5533,7 +5533,7 @@ var xp = class {
5533
5533
  f.style.display = "flex", f.style.alignItems = "center", f.style.justifyContent = p === "center" ? "center" : p === "right" ? "flex-end" : "flex-start", f.style.paddingLeft = p === "center" ? "0" : "11px";
5534
5534
  }
5535
5535
  this.wrapContainer = f, this.container = t, this.container && this.container.appendChild(f), s.autoFocus = !0, this.currentValue = void 0;
5536
- const h = yi(Mc, {
5536
+ const h = yi(Ac, {
5537
5537
  id: r,
5538
5538
  type: c._compType,
5539
5539
  config: s,
@@ -5611,7 +5611,7 @@ function jc(e) {
5611
5611
  function Tp() {
5612
5612
  Rp();
5613
5613
  }
5614
- var Ap = { class: "j-table-footer" }, Mp = {
5614
+ var Mp = { class: "j-table-footer" }, Ap = {
5615
5615
  key: 0,
5616
5616
  class: "j-table-pagination"
5617
5617
  }, jp = ["onClick"], yn = 40, Pp = /* @__PURE__ */ fe({
@@ -5760,10 +5760,10 @@ var Ap = { class: "j-table-footer" }, Mp = {
5760
5760
  let g = null, v = null, _ = 0, y = 0, m = !1;
5761
5761
  const b = O(0);
5762
5762
  let R = o.records.length, w = 45;
5763
- const S = O(!1), x = O({}), C = O([]), T = O(null), A = O(0);
5763
+ const S = O(!1), x = O({}), C = O([]), T = O(null), M = O(0);
5764
5764
  let P = null, H = !1, D = !1;
5765
- const M = (F, W, Q, oe, K) => {
5766
- C.value = F, T.value = W, A.value = Q, x.value = {
5765
+ const A = (F, W, Q, oe, K) => {
5766
+ C.value = F, T.value = W, M.value = Q, x.value = {
5767
5767
  left: `${oe}px`,
5768
5768
  top: `${K}px`
5769
5769
  }, S.value = !0, H = !1, document.addEventListener("wheel", Y, { passive: !1 });
@@ -5809,8 +5809,8 @@ var Ap = { class: "j-table-footer" }, Mp = {
5809
5809
  const { Group: W, Text: Q } = Ke.CustomLayout, oe = o.actionsMaxCount, K = F.filter((de) => de.config?.display !== !1), ne = K.length > oe, se = ne ? K.slice(0, oe - 1) : K;
5810
5810
  let ge = 0;
5811
5811
  if (se.forEach((de, xe) => {
5812
- const Ae = bn(de.config?.label || de.label || "") || 0;
5813
- ge += Ae + (xe === 0 ? 24 : 12);
5812
+ const Me = bn(de.config?.label || de.label || "") || 0;
5813
+ ge += Me + (xe === 0 ? 24 : 12);
5814
5814
  }), ne) {
5815
5815
  const de = (bn("更多") || 0) + 12;
5816
5816
  ge += de;
@@ -5825,13 +5825,13 @@ var Ap = { class: "j-table-footer" }, Mp = {
5825
5825
  disableColumnResize: !0,
5826
5826
  disableSelect: !0,
5827
5827
  customLayout: (de) => {
5828
- const { table: xe, row: Ae, col: He } = de, Me = xe.getCellOriginRecord(He, Ae), Ze = xe.getRecordIndexByCell(He, Ae), De = K.map((be) => {
5828
+ const { table: xe, row: Me, col: He } = de, Ae = xe.getCellOriginRecord(He, Me), Ze = xe.getRecordIndexByCell(He, Me), De = K.map((be) => {
5829
5829
  const ht = L({
5830
5830
  action: be,
5831
- record: Me,
5831
+ record: Ae,
5832
5832
  recordIndex: Ze,
5833
5833
  col: He,
5834
- row: Ae,
5834
+ row: Me,
5835
5835
  table: xe
5836
5836
  });
5837
5837
  return {
@@ -5861,7 +5861,7 @@ var Ap = { class: "j-table-footer" }, Mp = {
5861
5861
  });
5862
5862
  cn.addEventListener("click", () => {
5863
5863
  !We && be.click && be.click({
5864
- data: Me,
5864
+ data: Ae,
5865
5865
  openLayer: u
5866
5866
  });
5867
5867
  }), cn.addEventListener("mouseenter", (gn) => {
@@ -5885,7 +5885,7 @@ var Ap = { class: "j-table-footer" }, Mp = {
5885
5885
  ht.addEventListener("mouseenter", (We) => {
5886
5886
  We.target.setAttribute("fill", Ut(be, -20)), xe.scenegraph.stage.renderNextFrame();
5887
5887
  const $t = p.value?.getBoundingClientRect();
5888
- $t && M(dt, Me, Ze, We.canvasX + $t.left - 64, We.canvasY + $t.top + 8), D = !0, G();
5888
+ $t && A(dt, Ae, Ze, We.canvasX + $t.left - 64, We.canvasY + $t.top + 8), D = !0, G();
5889
5889
  }), ht.addEventListener("mouseleave", (We) => {
5890
5890
  We.target.setAttribute("fill", be), xe.scenegraph.stage.renderNextFrame(), D = !1, N();
5891
5891
  }), tt.add(ht);
@@ -5900,12 +5900,12 @@ var Ap = { class: "j-table-footer" }, Mp = {
5900
5900
  const { dataValue: Q, table: oe, col: K, row: ne, value: se } = F, ge = F.rect ?? oe?.getCellRect?.(K, ne) ?? {
5901
5901
  width: 0,
5902
5902
  height: 0
5903
- }, pe = oe?.getBodyField?.(K, ne), de = oe?.options?.columns || [], xe = (pe ? St(de, pe) : null)?.style?.textAlign || "left", Ae = 8, He = Math.max(0, ge.width - Ae * 2);
5904
- let Me = se ?? Q;
5905
- Me == null && (Me = "");
5906
- const Ze = ke(typeof Me == "object" ? JSON.stringify(Me) : String(Me), He);
5907
- let De = Ae, je = "left";
5908
- return xe === "center" ? (De = ge.width / 2, je = "center") : xe === "right" && (De = Math.max(Ae, ge.width - Ae), je = "right"), {
5903
+ }, pe = oe?.getBodyField?.(K, ne), de = oe?.options?.columns || [], xe = (pe ? St(de, pe) : null)?.style?.textAlign || "left", Me = 8, He = Math.max(0, ge.width - Me * 2);
5904
+ let Ae = se ?? Q;
5905
+ Ae == null && (Ae = "");
5906
+ const Ze = ke(typeof Ae == "object" ? JSON.stringify(Ae) : String(Ae), He);
5907
+ let De = Me, je = "left";
5908
+ return xe === "center" ? (De = ge.width / 2, je = "center") : xe === "right" && (De = Math.max(Me, ge.width - Me), je = "right"), {
5909
5909
  elements: [{
5910
5910
  type: "text",
5911
5911
  text: Ze,
@@ -5922,9 +5922,9 @@ var Ap = { class: "j-table-footer" }, Mp = {
5922
5922
  const { dataValue: Q, rect: oe, table: K, col: ne, row: se } = F;
5923
5923
  let ge = "mdi:toggle-switch", pe = "#165dff";
5924
5924
  Q || (ge = "mdi:toggle-switch-off", pe = "#e5e6eb");
5925
- const de = ba(ge), xe = de?.body?.replace(/currentColor/g, pe), Ae = [], He = K?.getBodyField?.(ne, se), Me = K?.options?.columns || [], Ze = He ? St(Me, He) : null, De = 8, je = 40;
5925
+ const de = ba(ge), xe = de?.body?.replace(/currentColor/g, pe), Me = [], He = K?.getBodyField?.(ne, se), Ae = K?.options?.columns || [], Ze = He ? St(Ae, He) : null, De = 8, je = 40;
5926
5926
  let Qe = De;
5927
- return Ze?.style?.textAlign === "center" ? Qe = Math.max(De, (oe.width - je) / 2) : Ze?.style?.textAlign === "right" && (Qe = Math.max(De, oe.width - je - De)), Ae.push({
5927
+ return Ze?.style?.textAlign === "center" ? Qe = Math.max(De, (oe.width - je) / 2) : Ze?.style?.textAlign === "right" && (Qe = Math.max(De, oe.width - je - De)), Me.push({
5928
5928
  type: "icon",
5929
5929
  svg: `<svg xmlns="http://www.w3.org/2000/svg" width="${je}" height="${je}" viewBox="0 0 ${de?.width} ${de?.height}" >${xe}</svg>`,
5930
5930
  x: Qe,
@@ -5932,18 +5932,18 @@ var Ap = { class: "j-table-footer" }, Mp = {
5932
5932
  width: je,
5933
5933
  height: je
5934
5934
  }), {
5935
- elements: Ae,
5935
+ elements: Me,
5936
5936
  expectedHeight: yn
5937
5937
  };
5938
5938
  }, Fe = (F, W) => {
5939
- const { dataValue: Q, rect: oe } = F, K = Number(Q) || 0, ne = 5, se = 20, ge = 4, pe = 8, de = (oe.height - se) / 2, xe = [], Ae = ba("mdi:star"), He = ba("mdi:star-half-full"), Me = ba("mdi:star-outline"), Ze = "#f7ba2a", De = "#e5e6eb";
5939
+ const { dataValue: Q, rect: oe } = F, K = Number(Q) || 0, ne = 5, se = 20, ge = 4, pe = 8, de = (oe.height - se) / 2, xe = [], Me = ba("mdi:star"), He = ba("mdi:star-half-full"), Ae = ba("mdi:star-outline"), Ze = "#f7ba2a", De = "#e5e6eb";
5940
5940
  for (let je = 0; je < ne; je++) {
5941
5941
  const Qe = pe + je * (se + ge), et = de;
5942
5942
  if (K >= je + 1) {
5943
- const dt = Ae?.body?.replace(/currentColor/g, Ze);
5943
+ const dt = Me?.body?.replace(/currentColor/g, Ze);
5944
5944
  xe.push({
5945
5945
  type: "icon",
5946
- svg: `<svg xmlns="http://www.w3.org/2000/svg" width="${se}" height="${se}" viewBox="0 0 ${Ae?.width} ${Ae?.height}">${dt}</svg>`,
5946
+ svg: `<svg xmlns="http://www.w3.org/2000/svg" width="${se}" height="${se}" viewBox="0 0 ${Me?.width} ${Me?.height}">${dt}</svg>`,
5947
5947
  x: Qe,
5948
5948
  y: et,
5949
5949
  width: se,
@@ -5960,10 +5960,10 @@ var Ap = { class: "j-table-footer" }, Mp = {
5960
5960
  height: se
5961
5961
  });
5962
5962
  } else {
5963
- const dt = Me?.body?.replace(/currentColor/g, De);
5963
+ const dt = Ae?.body?.replace(/currentColor/g, De);
5964
5964
  xe.push({
5965
5965
  type: "icon",
5966
- svg: `<svg xmlns="http://www.w3.org/2000/svg" width="${se}" height="${se}" viewBox="0 0 ${Me?.width} ${Me?.height}">${dt}</svg>`,
5966
+ svg: `<svg xmlns="http://www.w3.org/2000/svg" width="${se}" height="${se}" viewBox="0 0 ${Ae?.width} ${Ae?.height}">${dt}</svg>`,
5967
5967
  x: Qe,
5968
5968
  y: et,
5969
5969
  width: se,
@@ -5982,12 +5982,12 @@ var Ap = { class: "j-table-footer" }, Mp = {
5982
5982
  formData: r || {},
5983
5983
  getTableData: sn,
5984
5984
  row: de
5985
- }) || {}, Ae = Number(xe.min) || 0, He = Number(xe.max) || 100, Me = Number(Q) || 0, Ze = He - Ae, De = Ze === 0 ? 0 : Math.max(0, Math.min(100, (Me - Ae) / Ze * 100)), je = 4, Qe = 8, et = 8, dt = (oe.height - je) / 2, tt = String(Me), be = bn(tt) || 0, ht = Qe, We = dt, $t = oe.width - Qe * 2 - be - et, cn = $t * De / 100, gn = [], vn = (Yt, it, Mt) => {
5986
- const vt = Math.min(Mt, it / 2, Yt / 2);
5985
+ }) || {}, Me = Number(xe.min) || 0, He = Number(xe.max) || 100, Ae = Number(Q) || 0, Ze = He - Me, De = Ze === 0 ? 0 : Math.max(0, Math.min(100, (Ae - Me) / Ze * 100)), je = 4, Qe = 8, et = 8, dt = (oe.height - je) / 2, tt = String(Ae), be = bn(tt) || 0, ht = Qe, We = dt, $t = oe.width - Qe * 2 - be - et, cn = $t * De / 100, gn = [], vn = (Yt, it, At) => {
5986
+ const vt = Math.min(At, it / 2, Yt / 2);
5987
5987
  return `M ${vt} 0 L ${Yt - vt} 0 Q ${Yt} 0 ${Yt} ${vt} L ${Yt} ${it - vt} Q ${Yt} ${it} ${Yt - vt} ${it} L ${vt} ${it} Q 0 ${it} 0 ${it - vt} L 0 ${vt} Q 0 0 ${vt} 0 Z`;
5988
- }, ro = (Yt, it, Mt) => {
5989
- const vt = Math.min(Mt, it / 2, Yt / 2);
5990
- return Yt <= vt * 2 ? vn(Yt, it, Mt) : `M ${vt} 0 L ${Yt} 0 L ${Yt} ${it} L ${vt} ${it} Q 0 ${it} 0 ${it - vt} L 0 ${vt} Q 0 0 ${vt} 0 Z`;
5988
+ }, ro = (Yt, it, At) => {
5989
+ const vt = Math.min(At, it / 2, Yt / 2);
5990
+ return Yt <= vt * 2 ? vn(Yt, it, At) : `M ${vt} 0 L ${Yt} 0 L ${Yt} ${it} L ${vt} ${it} Q 0 ${it} 0 ${it - vt} L 0 ${vt} Q 0 0 ${vt} 0 Z`;
5991
5991
  }, Go = vn($t, je, je / 2);
5992
5992
  if (gn.push({
5993
5993
  type: "icon",
@@ -6044,7 +6044,7 @@ var Ap = { class: "j-table-footer" }, Mp = {
6044
6044
  formData: r || {},
6045
6045
  getTableData: sn,
6046
6046
  row: de
6047
- }) || {}, Ae = Number(xe.size) || 16, He = xe.color, Me = (oe.width - Ae) / 2, Ze = (oe.height - Ae) / 2;
6047
+ }) || {}, Me = Number(xe.size) || 16, He = xe.color, Ae = (oe.width - Me) / 2, Ze = (oe.height - Me) / 2;
6048
6048
  let De = String(Q).trim();
6049
6049
  if (!De) return {
6050
6050
  elements: [],
@@ -6059,74 +6059,74 @@ var Ap = { class: "j-table-footer" }, Mp = {
6059
6059
  const tt = Qe.match(/\bwidth\s*=\s*["']?([0-9.]+)[^"']*["']?/i)?.[1], be = Qe.match(/\bheight\s*=\s*["']?([0-9.]+)[^"']*["']?/i)?.[1];
6060
6060
  dt = tt && be ? `0 0 ${tt} ${be}` : "0 0 24 24";
6061
6061
  }
6062
- De = `<svg xmlns="http://www.w3.org/2000/svg" width="${Ae}" height="${Ae}" viewBox="${dt}">${et}</svg>`;
6063
- } else De = `<svg xmlns="http://www.w3.org/2000/svg" width="${Ae}" height="${Ae}" viewBox="0 0 24 24"></svg>`;
6062
+ De = `<svg xmlns="http://www.w3.org/2000/svg" width="${Me}" height="${Me}" viewBox="${dt}">${et}</svg>`;
6063
+ } else De = `<svg xmlns="http://www.w3.org/2000/svg" width="${Me}" height="${Me}" viewBox="0 0 24 24"></svg>`;
6064
6064
  } else {
6065
6065
  const je = ba(De);
6066
6066
  if (je) {
6067
6067
  const { body: Qe, width: et, height: dt } = je;
6068
- De = `<svg xmlns="http://www.w3.org/2000/svg" width="${Ae}" height="${Ae}" viewBox="0 0 ${et} ${dt}">${Qe}</svg>`;
6068
+ De = `<svg xmlns="http://www.w3.org/2000/svg" width="${Me}" height="${Me}" viewBox="0 0 ${et} ${dt}">${Qe}</svg>`;
6069
6069
  }
6070
6070
  }
6071
6071
  return He && (De = De.replace(/currentColor/g, He)), {
6072
6072
  elements: [{
6073
6073
  type: "icon",
6074
6074
  svg: De,
6075
- x: Me,
6075
+ x: Ae,
6076
6076
  y: Ze,
6077
- width: Ae,
6078
- height: Ae
6077
+ width: Me,
6078
+ height: Me
6079
6079
  }],
6080
- expectedHeight: Math.max(yn, Ae)
6080
+ expectedHeight: Math.max(yn, Me)
6081
6081
  };
6082
6082
  }, Oe = (F, W) => {
6083
- const { dataValue: Q, rect: oe, table: K, col: ne, row: se, value: ge } = F, pe = K.getBodyField(ne, se), de = St(K.options?.columns || [], pe), xe = K.getCellOriginRecord?.(ne, se) || K.getRecordByCell?.(ne, se) || {}, Ae = W || Tn({
6083
+ const { dataValue: Q, rect: oe, table: K, col: ne, row: se, value: ge } = F, pe = K.getBodyField(ne, se), de = St(K.options?.columns || [], pe), xe = K.getCellOriginRecord?.(ne, se) || K.getRecordByCell?.(ne, se) || {}, Me = W || Tn({
6084
6084
  config: de?._compConfig,
6085
6085
  getCompConfig: de?._getCompConfig,
6086
6086
  formData: r || {},
6087
6087
  getTableData: sn,
6088
6088
  row: xe
6089
- }) || {}, He = de?.style?.textAlign || "left", Me = s({
6090
- config: Ae,
6089
+ }) || {}, He = de?.style?.textAlign || "left", Ae = s({
6090
+ config: Me,
6091
6091
  row: xe,
6092
6092
  value: de._fieldFormat ? ge : Q
6093
6093
  });
6094
- if (Me.length === 0) return {
6094
+ if (Ae.length === 0) return {
6095
6095
  elements: [],
6096
6096
  expectedHeight: yn
6097
6097
  };
6098
6098
  const Ze = 14, De = 28, je = 2, Qe = 12, et = 8, dt = 6;
6099
6099
  let tt = 8, be = Math.max(0, oe.width - tt * 2), ht = Math.max(0, be - Qe * 2);
6100
6100
  const We = [], $t = (it) => {
6101
- const Mt = bn(ke(it, ht)) || 0;
6102
- return Math.min(be, Mt + Qe * 2);
6103
- }, cn = (it, Mt, vt, Sn, kn) => {
6101
+ const At = bn(ke(it, ht)) || 0;
6102
+ return Math.min(be, At + Qe * 2);
6103
+ }, cn = (it, At, vt, Sn, kn) => {
6104
6104
  const ha = ke(vt, ht), pa = re(ha), Xo = bn(ha) || 0, La = Math.min(be, Xo + Qe * 2), dd = Sn || "#f2f3f5", fd = kn || "#1d2129", hd = De / 2 + Ze * 0.35, pd = `<svg xmlns="http://www.w3.org/2000/svg" width="${La}" height="${De}" viewBox="0 0 ${La} ${De}"><rect x="0" y="0" width="${La}" height="${De}" rx="${je}" ry="${je}" fill="${dd}"/><text x="${La / 2}" y="${hd}" text-anchor="middle" font-size="${Ze}" fill="${fd}">${pa}</text></svg>`;
6105
6105
  return We.push({
6106
6106
  type: "icon",
6107
6107
  svg: pd,
6108
6108
  x: it,
6109
- y: Mt,
6109
+ y: At,
6110
6110
  width: La,
6111
6111
  height: De
6112
6112
  }), { tagWidth: La };
6113
6113
  }, gn = () => {
6114
6114
  const it = [];
6115
- let Mt = [], vt = 0;
6116
- for (let Sn = 0; Sn < Me.length; Sn++) {
6117
- const kn = Me[Sn], ha = kn.label, pa = $t(ha), Xo = {
6115
+ let At = [], vt = 0;
6116
+ for (let Sn = 0; Sn < Ae.length; Sn++) {
6117
+ const kn = Ae[Sn], ha = kn.label, pa = $t(ha), Xo = {
6118
6118
  label: ha,
6119
6119
  bg: kn.color || "#f2f3f5",
6120
6120
  text: kn.textColor || Tt(kn.color || "#f2f3f5"),
6121
6121
  width: pa
6122
6122
  };
6123
- Mt.length > 0 && vt + et + pa > be ? (it.push({
6124
- items: Mt,
6123
+ At.length > 0 && vt + et + pa > be ? (it.push({
6124
+ items: At,
6125
6125
  lineWidth: vt
6126
- }), Mt = [Xo], vt = pa) : (Mt.push(Xo), vt += Mt.length > 1 ? et + pa : pa);
6126
+ }), At = [Xo], vt = pa) : (At.push(Xo), vt += At.length > 1 ? et + pa : pa);
6127
6127
  }
6128
- return Mt.length > 0 && it.push({
6129
- items: Mt,
6128
+ return At.length > 0 && it.push({
6129
+ items: At,
6130
6130
  lineWidth: vt
6131
6131
  }), {
6132
6132
  lines: it,
@@ -6139,11 +6139,11 @@ var Ap = { class: "j-table-footer" }, Mp = {
6139
6139
  let qo = Math.max(0, (oe.height - Go) / 2);
6140
6140
  const Xi = ro;
6141
6141
  for (let it = 0; it < vn.length; it++) {
6142
- const Mt = vn[it];
6143
- let vt = Xi ? tt : He === "center" ? tt + Math.max(0, (be - Mt.lineWidth) / 2) : He === "right" ? tt + Math.max(0, be - Mt.lineWidth) : tt;
6144
- for (let Sn = 0; Sn < Mt.items.length; Sn++) {
6145
- const kn = Mt.items[Sn], { tagWidth: ha } = cn(vt, qo, kn.label, kn.bg, kn.text);
6146
- vt += ha + (Sn < Mt.items.length - 1 ? et : 0);
6142
+ const At = vn[it];
6143
+ let vt = Xi ? tt : He === "center" ? tt + Math.max(0, (be - At.lineWidth) / 2) : He === "right" ? tt + Math.max(0, be - At.lineWidth) : tt;
6144
+ for (let Sn = 0; Sn < At.items.length; Sn++) {
6145
+ const kn = At.items[Sn], { tagWidth: ha } = cn(vt, qo, kn.label, kn.bg, kn.text);
6146
+ vt += ha + (Sn < At.items.length - 1 ? et : 0);
6147
6147
  }
6148
6148
  qo += De + (it < vn.length - 1 ? dt : 0);
6149
6149
  }
@@ -6160,10 +6160,10 @@ var Ap = { class: "j-table-footer" }, Mp = {
6160
6160
  if ((W * 299 + Q * 587 + oe * 114) / 1e3 >= 128) {
6161
6161
  const K = W / 255, ne = Q / 255, se = oe / 255, ge = Math.max(K, ne, se), pe = Math.min(K, ne, se);
6162
6162
  let de = 0, xe = 0;
6163
- const Ae = (ge + pe) / 2;
6163
+ const Me = (ge + pe) / 2;
6164
6164
  if (ge !== pe) {
6165
6165
  const et = ge - pe;
6166
- switch (xe = Ae > 0.5 ? et / (2 - ge - pe) : et / (ge + pe), ge) {
6166
+ switch (xe = Me > 0.5 ? et / (2 - ge - pe) : et / (ge + pe), ge) {
6167
6167
  case K:
6168
6168
  de = (ne - se) / et + (ne < se ? 6 : 0);
6169
6169
  break;
@@ -6176,25 +6176,25 @@ var Ap = { class: "j-table-footer" }, Mp = {
6176
6176
  }
6177
6177
  de /= 6;
6178
6178
  }
6179
- const He = 0.3, Me = xe;
6179
+ const He = 0.3, Ae = xe;
6180
6180
  let Ze, De, je;
6181
- if (Me === 0) Ze = De = je = He;
6181
+ if (Ae === 0) Ze = De = je = He;
6182
6182
  else {
6183
- const et = (be, ht, We) => (We < 0 && (We += 1), We > 1 && (We -= 1), We < 0.16666666666666666 ? be + (ht - be) * 6 * We : We < 0.5 ? ht : We < 0.6666666666666666 ? be + (ht - be) * (0.6666666666666666 - We) * 6 : be), dt = He < 0.5 ? He * (1 + Me) : He + Me - He * Me, tt = 2 * He - dt;
6183
+ const et = (be, ht, We) => (We < 0 && (We += 1), We > 1 && (We -= 1), We < 0.16666666666666666 ? be + (ht - be) * 6 * We : We < 0.5 ? ht : We < 0.6666666666666666 ? be + (ht - be) * (0.6666666666666666 - We) * 6 : be), dt = He < 0.5 ? He * (1 + Ae) : He + Ae - He * Ae, tt = 2 * He - dt;
6184
6184
  Ze = et(tt, dt, de + 1 / 3), De = et(tt, dt, de), je = et(tt, dt, de - 1 / 3);
6185
6185
  }
6186
6186
  const Qe = (et) => Math.round(et * 255).toString(16).padStart(2, "0");
6187
6187
  return `#${Qe(Ze)}${Qe(De)}${Qe(je)}`;
6188
6188
  }
6189
6189
  return "#ffffff";
6190
- }, At = (F) => {
6191
- const { table: W, row: Q, col: oe, rect: K, value: ne } = F, { Group: se, Text: ge } = Ke.CustomLayout, pe = W.getBodyField(oe, Q), de = St(W.options?.columns || [], pe), xe = de?._compConfig || {}, Ae = new se({
6190
+ }, Mt = (F) => {
6191
+ const { table: W, row: Q, col: oe, rect: K, value: ne } = F, { Group: se, Text: ge } = Ke.CustomLayout, pe = W.getBodyField(oe, Q), de = St(W.options?.columns || [], pe), xe = de?._compConfig || {}, Me = new se({
6192
6192
  height: K.height,
6193
6193
  width: K.width,
6194
6194
  display: "flex",
6195
6195
  alignItems: "center",
6196
6196
  justifyContent: de.style?.textAlign === "center" ? "center" : de.style?.textAlign === "right" ? "flex-end" : "flex-start"
6197
- }), He = "#165dff", Me = new ge({
6197
+ }), He = "#165dff", Ae = new ge({
6198
6198
  text: String(ne ?? ""),
6199
6199
  fontSize: 14,
6200
6200
  fill: He,
@@ -6206,7 +6206,7 @@ var Ap = { class: "j-table-footer" }, Mp = {
6206
6206
  8
6207
6207
  ]
6208
6208
  });
6209
- return Me.addEventListener("click", () => {
6209
+ return Ae.addEventListener("click", () => {
6210
6210
  if (xe.click) {
6211
6211
  const Ze = W.getCellOriginRecord(oe, Q);
6212
6212
  xe.click({
@@ -6215,18 +6215,18 @@ var Ap = { class: "j-table-footer" }, Mp = {
6215
6215
  openLayer: u
6216
6216
  });
6217
6217
  }
6218
- }), Me.addEventListener("mouseenter", (Ze) => {
6218
+ }), Ae.addEventListener("mouseenter", (Ze) => {
6219
6219
  Ze.target.setAttribute("fill", Ut(He, -20)), W.scenegraph.stage.renderNextFrame();
6220
- }), Me.addEventListener("mouseleave", (Ze) => {
6220
+ }), Ae.addEventListener("mouseleave", (Ze) => {
6221
6221
  Ze.target.setAttribute("fill", He), W.scenegraph.stage.renderNextFrame();
6222
- }), Ae.add(Me), {
6223
- rootContainer: Ae,
6222
+ }), Me.add(Ae), {
6223
+ rootContainer: Me,
6224
6224
  renderDefault: !1
6225
6225
  };
6226
6226
  }, Xe = (F) => {
6227
- const { table: W, row: Q, col: oe, rect: K } = F, { height: ne, width: se } = K ?? W.getCellRect(oe, Q), { Group: ge, CheckBox: pe } = Ke.CustomLayout, de = W.getBodyField(oe, Q), xe = St(W.options?.columns || [], de), Ae = W.getCellOriginRecord(oe, Q) || {}, He = xe?.style?.textAlign === "right" ? "flex-end" : xe?.style?.textAlign === "center" ? "center" : "flex-start", Me = xe?.style?.textAlign === "right" ? "flex-end" : xe?.style?.textAlign === "center" ? "center" : "flex-start", Ze = (tt, be) => {
6228
- const ht = Ae?.[de];
6229
- Ae[de] = (Array.isArray(ht) ? ht : []).map((We, $t) => $t !== tt ? We : We && typeof We == "object" ? {
6227
+ const { table: W, row: Q, col: oe, rect: K } = F, { height: ne, width: se } = K ?? W.getCellRect(oe, Q), { Group: ge, CheckBox: pe } = Ke.CustomLayout, de = W.getBodyField(oe, Q), xe = St(W.options?.columns || [], de), Me = W.getCellOriginRecord(oe, Q) || {}, He = xe?.style?.textAlign === "right" ? "flex-end" : xe?.style?.textAlign === "center" ? "center" : "flex-start", Ae = xe?.style?.textAlign === "right" ? "flex-end" : xe?.style?.textAlign === "center" ? "center" : "flex-start", Ze = (tt, be) => {
6228
+ const ht = Me?.[de];
6229
+ Me[de] = (Array.isArray(ht) ? ht : []).map((We, $t) => $t !== tt ? We : We && typeof We == "object" ? {
6230
6230
  ...We,
6231
6231
  ...be
6232
6232
  } : { ...be });
@@ -6240,7 +6240,7 @@ var Ap = { class: "j-table-footer" }, Mp = {
6240
6240
  alignItems: He,
6241
6241
  justifyContent: "center",
6242
6242
  flexWrap: "nowrap"
6243
- }), Qe = Ae?.[de];
6243
+ }), Qe = Me?.[de];
6244
6244
  if (!Array.isArray(Qe)) return {
6245
6245
  rootContainer: je,
6246
6246
  renderDefault: !1
@@ -6256,7 +6256,7 @@ var Ap = { class: "j-table-footer" }, Mp = {
6256
6256
  0,
6257
6257
  4
6258
6258
  ],
6259
- justifyContent: Me,
6259
+ justifyContent: Ae,
6260
6260
  alignItems: "center"
6261
6261
  });
6262
6262
  je.add(dt);
@@ -6353,12 +6353,12 @@ var Ap = { class: "j-table-footer" }, Mp = {
6353
6353
  });
6354
6354
  }, _t = (F) => {
6355
6355
  const W = F.filter((Q) => Q.config?.display !== !1).map((Q) => {
6356
- const { id: oe, type: K, config: ne, getCompConfig: se, getCompType: ge, children: pe, customLayout: de } = Q, { label: xe, width: Ae, minWidth: He, maxWidth: Me, align: Ze, headerAlign: De, fieldFormat: je, editor: Qe, frozen: et, ...dt } = ne || {}, tt = De ?? Ze, be = {
6356
+ const { id: oe, type: K, config: ne, getCompConfig: se, getCompType: ge, children: pe, customLayout: de } = Q, { label: xe, width: Me, minWidth: He, maxWidth: Ae, align: Ze, headerAlign: De, fieldFormat: je, editor: Qe, frozen: et, ...dt } = ne || {}, tt = De ?? Ze, be = {
6357
6357
  field: oe,
6358
6358
  title: xe,
6359
- width: Ae,
6359
+ width: Me,
6360
6360
  minWidth: He,
6361
- maxWidth: Me,
6361
+ maxWidth: Ae,
6362
6362
  ...tt ? { headerStyle: { textAlign: tt } } : {},
6363
6363
  style: { textAlign: Ze },
6364
6364
  _customLayout: de,
@@ -6369,7 +6369,7 @@ var Ap = { class: "j-table-footer" }, Mp = {
6369
6369
  _getCompType: ge,
6370
6370
  frozen: et
6371
6371
  }, ht = typeof ge == "function", We = jc(K);
6372
- return (We || ht) && (be.editor = We, m = !0), ht ? be.customRender = Wt : (K === "j-switch" && (be.customRender = Ce), K === "j-rate" && (be.customRender = Fe), K === "j-slider" && (be.customRender = ze), (K === "j-tag" || K === "j-input-tag") && (be.customRender = Oe), K === "j-icon" && (be.customRender = Pe)), K === "link" && (be.customLayout = At), K === "checkbox" && (be.customLayout = Xe), K === "j-switch" && (be.minWidth = be.minWidth || Ae, be.maxWidth = be.maxWidth || Ae), de && (be.customLayout = an), be.fieldFormat = kt, pe && pe.length > 0 && (be.columns = _t(pe)), be;
6372
+ return (We || ht) && (be.editor = We, m = !0), ht ? be.customRender = Wt : (K === "j-switch" && (be.customRender = Ce), K === "j-rate" && (be.customRender = Fe), K === "j-slider" && (be.customRender = ze), (K === "j-tag" || K === "j-input-tag") && (be.customRender = Oe), K === "j-icon" && (be.customRender = Pe)), K === "link" && (be.customLayout = Mt), K === "checkbox" && (be.customLayout = Xe), K === "j-switch" && (be.minWidth = be.minWidth || Me, be.maxWidth = be.maxWidth || Me), de && (be.customLayout = an), be.fieldFormat = kt, pe && pe.length > 0 && (be.columns = _t(pe)), be;
6373
6373
  });
6374
6374
  return o.isTree && W.length > 0 && (W[0].tree = !0), W;
6375
6375
  }, Ut = (F, W) => {
@@ -6463,8 +6463,8 @@ var Ap = { class: "j-table-footer" }, Mp = {
6463
6463
  ne.length === 0 && (ne = [te()]), ne = he(ne);
6464
6464
  const se = [], ge = [], pe = [];
6465
6465
  ne.forEach((He) => {
6466
- const Me = ae(He);
6467
- Me === "left" ? se.push(He) : Me === "right" ? ge.push(He) : pe.push(He);
6466
+ const Ae = ae(He);
6467
+ Ae === "left" ? se.push(He) : Ae === "right" ? ge.push(He) : pe.push(He);
6468
6468
  });
6469
6469
  const de = Be(se), xe = Be(ge);
6470
6470
  y += de.left, _ += xe.right, ne = [
@@ -6477,12 +6477,12 @@ var Ap = { class: "j-table-footer" }, Mp = {
6477
6477
  pasteValueToCell: !0,
6478
6478
  selectAllOnCtrlA: !0
6479
6479
  });
6480
- const Ae = (He) => {
6481
- for (const Me of He)
6482
- if (Me?._compType === "checkbox" || Me?.customRender === Wt || Me?.customRender === Oe || Array.isArray(Me?.columns) && Ae(Me.columns)) return !0;
6480
+ const Me = (He) => {
6481
+ for (const Ae of He)
6482
+ if (Ae?._compType === "checkbox" || Ae?.customRender === Wt || Ae?.customRender === Oe || Array.isArray(Ae?.columns) && Me(Ae.columns)) return !0;
6483
6483
  return !1;
6484
6484
  };
6485
- return Ae(ne) && !(o.subColumns && o.subColumns.length > 0) && (K.defaultRowHeight = "auto", K.defaultHeaderRowHeight = 40), {
6485
+ return Me(ne) && !(o.subColumns && o.subColumns.length > 0) && (K.defaultRowHeight = "auto", K.defaultHeaderRowHeight = 40), {
6486
6486
  columns: ne,
6487
6487
  option: K
6488
6488
  };
@@ -6539,7 +6539,7 @@ var Ap = { class: "j-table-footer" }, Mp = {
6539
6539
  theme: ei,
6540
6540
  ...F.option
6541
6541
  } }), W.plugins = [v]), W;
6542
- }, pt = (F) => !o.isTree || !o.parentKey || F.some((W) => Array.isArray(W?.children) && W.children.length > 0) ? F : Mf(F, (o.rowKey || "").split(",")[0]?.trim() || "id", o.parentKey), ft = (F) => {
6542
+ }, pt = (F) => !o.isTree || !o.parentKey || F.some((W) => Array.isArray(W?.children) && W.children.length > 0) ? F : Af(F, (o.rowKey || "").split(",")[0]?.trim() || "id", o.parentKey), ft = (F) => {
6543
6543
  if (!p.value) return;
6544
6544
  w = Z(), Tp();
6545
6545
  const W = Ge(), Q = Zt();
@@ -6560,12 +6560,12 @@ var Ap = { class: "j-table-footer" }, Mp = {
6560
6560
  if (ut.value) {
6561
6561
  if (ge === "checkbox" && ne == 0) {
6562
6562
  if (de.__checkState = K.target.attribute.checked, se === 0 && de.__checkState === !1) {
6563
- const Ae = (He) => {
6564
- !Array.isArray(He) || He.length === 0 || He.forEach((Me) => {
6565
- Me && (Me.__checkState = !1, Array.isArray(Me.children) && Me.children.length > 0 && Ae(Me.children));
6563
+ const Me = (He) => {
6564
+ !Array.isArray(He) || He.length === 0 || He.forEach((Ae) => {
6565
+ Ae && (Ae.__checkState = !1, Array.isArray(Ae.children) && Ae.children.length > 0 && Me(Ae.children));
6566
6566
  });
6567
6567
  };
6568
- Ae(de.children);
6568
+ Me(de.children);
6569
6569
  }
6570
6570
  const xe = me();
6571
6571
  xe.length == 0 && g.setCellCheckboxState(0, 0, !1), b.value = xe.length, i("selectionChanged", {
@@ -6690,8 +6690,8 @@ var Ap = { class: "j-table-footer" }, Mp = {
6690
6690
  ge.forEach((pe) => {
6691
6691
  if (Array.isArray(pe?.children) && pe.children.length > 0) {
6692
6692
  oe(pe.children);
6693
- const de = pe.children, xe = de.filter((He) => He?.[Q] === !0), Ae = de.filter((He) => He?.[Q] === !1);
6694
- xe.length == de.length ? pe[Q] = !0 : Ae.length == de.length ? pe[Q] = !1 : pe[Q] = "indeterminate", pe[Q] === "indeterminate" && (pe.hierarchyState = "expand");
6693
+ const de = pe.children, xe = de.filter((He) => He?.[Q] === !0), Me = de.filter((He) => He?.[Q] === !1);
6694
+ xe.length == de.length ? pe[Q] = !0 : Me.length == de.length ? pe[Q] = !1 : pe[Q] = "indeterminate", pe[Q] === "indeterminate" && (pe.hierarchyState = "expand");
6695
6695
  } else pe[Q] = !!W.has(gt(pe));
6696
6696
  });
6697
6697
  }, K = g.records;
@@ -6825,7 +6825,7 @@ var Ap = { class: "j-table-footer" }, Mp = {
6825
6825
  ref: p,
6826
6826
  class: Ye("j-block")
6827
6827
  }, null, 512)], 4),
6828
- B("div", Ap, [e.isPage || !ot.value && (On.value || Cn.value) ? (k(), z("div", Mp, [
6828
+ B("div", Mp, [e.isPage || !ot.value && (On.value || Cn.value) ? (k(), z("div", Ap, [
6829
6829
  X(oe, null, {
6830
6830
  default: J(() => [On.value ? (k(), V(Q, {
6831
6831
  key: 0,
@@ -7021,7 +7021,7 @@ var Ap = { class: "j-table-footer" }, Mp = {
7021
7021
  l.value = !1;
7022
7022
  }, T = () => {
7023
7023
  a.beforeClose && a.beforeClose() === !1 || (r.value = !1, o("update:visible", !1), o("cancel"));
7024
- }, A = () => {
7024
+ }, M = () => {
7025
7025
  o("ok", x, C);
7026
7026
  }, P = () => {
7027
7027
  p.left = 0, p.top = 0, m.value = 0, y.value = 0, a.isStep && (H.value = 0, Lt(() => {
@@ -7038,7 +7038,7 @@ var Ap = { class: "j-table-footer" }, Mp = {
7038
7038
  H.value > 0 && H.value--, Lt(() => {
7039
7039
  N();
7040
7040
  });
7041
- }, M = async () => {
7041
+ }, A = async () => {
7042
7042
  await E() && (H.value < a.steps.length - 1 && (H.value += 1), Lt(() => {
7043
7043
  N();
7044
7044
  }));
@@ -7084,9 +7084,9 @@ var Ap = { class: "j-table-footer" }, Mp = {
7084
7084
  return;
7085
7085
  }
7086
7086
  v.value.onmousedown = (ke) => {
7087
- const { clientX: Pe } = ke, { clientY: Oe } = ke, Tt = p.left + R.value, At = p.top + w.value;
7088
- p._left = p.left, p._top = p.top, m.value || (m.value = ze), y.value || (y.value = Ce), Pe > Tt + 10 && Pe < Tt + Ce - 10 && Oe > At + 5 && Oe < At + 47 || (typeof document < "u" && (document.onmousemove = function(Xe) {
7089
- Xe.preventDefault(), Pe > Tt && Pe < Tt + 10 && (Pe > Xe.clientX && (y.value = Ce + (Pe - Xe.clientX), p.left = p._left - (Pe - Xe.clientX)), Pe < Xe.clientX && y.value > a.minWidth && (y.value = Ce - (Xe.clientX - Pe), p.left = p._left + Xe.clientX - Pe)), Pe > Tt + Ce - 10 && Pe < Tt + Ce && (Pe > Xe.clientX && y.value > a.minWidth && (y.value = Ce - (Pe - Xe.clientX)), Pe < Xe.clientX && typeof document < "u" && document.body && R.value + p.left + y.value < document.body.clientWidth && (y.value = Ce + (Xe.clientX - Pe))), Oe > At && Oe < At + 5 && (Oe > Xe.clientY && (m.value = ze + Oe - Xe.clientY, p.top = p._top - (Oe - Xe.clientY)), Oe < Xe.clientY && m.value > a.minHeight && (m.value = ze - (Xe.clientY - Oe), p.top = p._top + Xe.clientY - Oe)), re + Oe > At + ze + 38 && re + Oe < At + ze + 48 && (Oe > Xe.clientY && m.value > a.minHeight && (m.value = ze - (Oe - Xe.clientY)), Oe < Xe.clientY && typeof window < "u" && w.value + p.top + m.value + 48 < window.innerHeight && (m.value = ze + Xe.clientY - Oe));
7087
+ const { clientX: Pe } = ke, { clientY: Oe } = ke, Tt = p.left + R.value, Mt = p.top + w.value;
7088
+ p._left = p.left, p._top = p.top, m.value || (m.value = ze), y.value || (y.value = Ce), Pe > Tt + 10 && Pe < Tt + Ce - 10 && Oe > Mt + 5 && Oe < Mt + 47 || (typeof document < "u" && (document.onmousemove = function(Xe) {
7089
+ Xe.preventDefault(), Pe > Tt && Pe < Tt + 10 && (Pe > Xe.clientX && (y.value = Ce + (Pe - Xe.clientX), p.left = p._left - (Pe - Xe.clientX)), Pe < Xe.clientX && y.value > a.minWidth && (y.value = Ce - (Xe.clientX - Pe), p.left = p._left + Xe.clientX - Pe)), Pe > Tt + Ce - 10 && Pe < Tt + Ce && (Pe > Xe.clientX && y.value > a.minWidth && (y.value = Ce - (Pe - Xe.clientX)), Pe < Xe.clientX && typeof document < "u" && document.body && R.value + p.left + y.value < document.body.clientWidth && (y.value = Ce + (Xe.clientX - Pe))), Oe > Mt && Oe < Mt + 5 && (Oe > Xe.clientY && (m.value = ze + Oe - Xe.clientY, p.top = p._top - (Oe - Xe.clientY)), Oe < Xe.clientY && m.value > a.minHeight && (m.value = ze - (Xe.clientY - Oe), p.top = p._top + Xe.clientY - Oe)), re + Oe > Mt + ze + 38 && re + Oe < Mt + ze + 48 && (Oe > Xe.clientY && m.value > a.minHeight && (m.value = ze - (Oe - Xe.clientY)), Oe < Xe.clientY && typeof window < "u" && w.value + p.top + m.value + 48 < window.innerHeight && (m.value = ze + Xe.clientY - Oe));
7090
7090
  }), typeof document < "u" && (document.onmouseup = function() {
7091
7091
  typeof document < "u" && (document.onmousemove = null, document.onmouseup = null);
7092
7092
  }));
@@ -7175,7 +7175,7 @@ var Ap = { class: "j-table-footer" }, Mp = {
7175
7175
  disabled: f.value,
7176
7176
  loading: s.value,
7177
7177
  label: U(i)("下一步"),
7178
- onClick: M
7178
+ onClick: A
7179
7179
  }, null, 8, [
7180
7180
  "disabled",
7181
7181
  "loading",
@@ -7198,7 +7198,7 @@ var Ap = { class: "j-table-footer" }, Mp = {
7198
7198
  type: "primary",
7199
7199
  disabled: d.value && e.isStep,
7200
7200
  label: U(i)(e.btnText),
7201
- onClick: A
7201
+ onClick: M
7202
7202
  }, null, 8, ["disabled", "label"])) : ee("", !0)
7203
7203
  ]),
7204
7204
  _: 1
@@ -7286,15 +7286,15 @@ var Ap = { class: "j-table-footer" }, Mp = {
7286
7286
  ],
7287
7287
  setup(e, { expose: t, emit: n }) {
7288
7288
  const a = e, o = n, { logoImg: i, t: r } = bt(), l = O(!1), c = O(!1), s = O(""), u = O(!1), f = O(!0), d = O(!1), h = O(!0), p = O(-1);
7289
- nt(() => a.visible, (A) => {
7290
- l.value = A;
7289
+ nt(() => a.visible, (M) => {
7290
+ l.value = M;
7291
7291
  }, { immediate: !0 });
7292
7292
  const g = I({
7293
7293
  get() {
7294
7294
  return p.value !== -1 ? p.value : a.stepActive;
7295
7295
  },
7296
- set(A) {
7297
- p.value = A, o("update:stepActive", A);
7296
+ set(M) {
7297
+ p.value = M, o("update:stepActive", M);
7298
7298
  }
7299
7299
  }), v = () => {
7300
7300
  a.beforeClose && a.beforeClose() === !1 || (l.value = !1, o("update:visible", !1), o("cancel"));
@@ -7304,8 +7304,8 @@ var Ap = { class: "j-table-footer" }, Mp = {
7304
7304
  a.isStep && (g.value = 0, Lt(() => {
7305
7305
  x();
7306
7306
  })), o("closed");
7307
- }, m = (A) => {
7308
- s.value = A || "保存数据中...", c.value = !0;
7307
+ }, m = (M) => {
7308
+ s.value = M || "保存数据中...", c.value = !0;
7309
7309
  }, b = () => {
7310
7310
  c.value = !1;
7311
7311
  }, R = () => {
@@ -7318,8 +7318,8 @@ var Ap = { class: "j-table-footer" }, Mp = {
7318
7318
  }));
7319
7319
  }, S = async () => {
7320
7320
  if (u.value = !0, a.validateSteps) {
7321
- const A = await a.validateSteps(a.stepActive, m, b);
7322
- return u.value = !1, A;
7321
+ const M = await a.validateSteps(a.stepActive, m, b);
7322
+ return u.value = !1, M;
7323
7323
  }
7324
7324
  return u.value = !1, !0;
7325
7325
  }, x = () => {
@@ -7334,17 +7334,17 @@ var Ap = { class: "j-table-footer" }, Mp = {
7334
7334
  f.value = !1, d.value = !1;
7335
7335
  break;
7336
7336
  }
7337
- }, C = I(() => a.steps.map((A) => ({
7338
- title: A,
7337
+ }, C = I(() => a.steps.map((M) => ({
7338
+ title: M,
7339
7339
  disabled: !0
7340
- }))), T = async (A) => {
7341
- A.click && await A.click();
7340
+ }))), T = async (M) => {
7341
+ M.click && await M.click();
7342
7342
  };
7343
7343
  return t({
7344
7344
  showLoading: m,
7345
7345
  hideLoading: b
7346
- }), (A, P) => {
7347
- const H = $("el-step"), D = $("el-steps"), M = $("j-button"), E = $("el-space"), N = $("el-divider"), G = $("el-dialog"), ie = Bi("loading");
7346
+ }), (M, P) => {
7347
+ const H = $("el-step"), D = $("el-steps"), A = $("j-button"), E = $("el-space"), N = $("el-divider"), G = $("el-dialog"), ie = Bi("loading");
7348
7348
  return k(), V(G, {
7349
7349
  modelValue: l.value,
7350
7350
  "onUpdate:modelValue": P[0] || (P[0] = (ye) => l.value = ye),
@@ -7390,14 +7390,14 @@ var Ap = { class: "j-table-footer" }, Mp = {
7390
7390
  default: J(() => [
7391
7391
  e.hasBtns ? (k(), V(E, { key: 0 }, {
7392
7392
  default: J(() => [
7393
- e.isStep ? (k(), V(M, {
7393
+ e.isStep ? (k(), V(A, {
7394
7394
  key: 0,
7395
7395
  size: "mini",
7396
7396
  disabled: f.value,
7397
7397
  label: U(r)("上一步"),
7398
7398
  onClick: R
7399
7399
  }, null, 8, ["disabled", "label"])) : ee("", !0),
7400
- e.isStep ? (k(), V(M, {
7400
+ e.isStep ? (k(), V(A, {
7401
7401
  key: 1,
7402
7402
  size: "mini",
7403
7403
  disabled: d.value,
@@ -7409,14 +7409,14 @@ var Ap = { class: "j-table-footer" }, Mp = {
7409
7409
  "loading",
7410
7410
  "label"
7411
7411
  ])) : ee("", !0),
7412
- (k(!0), z(Se, null, Ie(e.buttons, (ye) => (k(), z(Se, { key: ye.id }, [ye.config?.display !== !1 ? (k(), V(M, Ne({
7412
+ (k(!0), z(Se, null, Ie(e.buttons, (ye) => (k(), z(Se, { key: ye.id }, [ye.config?.display !== !1 ? (k(), V(A, Ne({
7413
7413
  key: 0,
7414
7414
  ref_for: !0
7415
7415
  }, ye.config, {
7416
7416
  label: ye.label,
7417
7417
  onClick: (Y) => T(ye)
7418
7418
  }), null, 16, ["label", "onClick"])) : ee("", !0)], 64))), 128)),
7419
- e.hasSaveBtn ? (k(), V(M, {
7419
+ e.hasSaveBtn ? (k(), V(A, {
7420
7420
  key: 2,
7421
7421
  size: "mini",
7422
7422
  type: "primary",
@@ -7432,7 +7432,7 @@ var Ap = { class: "j-table-footer" }, Mp = {
7432
7432
  type: "vertical",
7433
7433
  style: { margin: "0 8px" }
7434
7434
  })) : ee("", !0),
7435
- e.showCloseBtn ? (k(), V(M, {
7435
+ e.showCloseBtn ? (k(), V(A, {
7436
7436
  key: 2,
7437
7437
  type: "text",
7438
7438
  icon: "mdi:close",
@@ -7441,7 +7441,7 @@ var Ap = { class: "j-table-footer" }, Mp = {
7441
7441
  ]),
7442
7442
  _: 1
7443
7443
  })])
7444
- ]), B("div", qp, [Je(A.$slots, "default")])], 8, Np)), [[ie, c.value]])]),
7444
+ ]), B("div", qp, [Je(M.$slots, "default")])], 8, Np)), [[ie, c.value]])]),
7445
7445
  _: 3
7446
7446
  }, 8, ["modelValue", "destroy-on-close"]);
7447
7447
  };
@@ -7548,11 +7548,11 @@ var Ap = { class: "j-table-footer" }, Mp = {
7548
7548
  get() {
7549
7549
  return a.visible;
7550
7550
  },
7551
- set(A) {
7552
- i("update:visible", !!A);
7551
+ set(M) {
7552
+ i("update:visible", !!M);
7553
7553
  }
7554
- }), u = (A) => {
7555
- l.value = A || "保存数据中...", r.value = !0;
7554
+ }), u = (M) => {
7555
+ l.value = M || "保存数据中...", r.value = !0;
7556
7556
  }, f = () => {
7557
7557
  r.value = !1;
7558
7558
  }, d = () => {
@@ -7563,14 +7563,14 @@ var Ap = { class: "j-table-footer" }, Mp = {
7563
7563
  i("ok", u, f);
7564
7564
  }, p = () => {
7565
7565
  a.beforeClose && a.beforeClose() === !1 || (s.value = !1, i("update:visible", !1), i("cancel"));
7566
- }, g = async (A) => {
7567
- A.click && await A.click();
7566
+ }, g = async (M) => {
7567
+ M.click && await M.click();
7568
7568
  }, v = O(!1), _ = O(!0), y = O(!1), m = O(!0), b = O(-1), R = I({
7569
7569
  get() {
7570
7570
  return b.value !== -1 ? b.value : a.stepActive;
7571
7571
  },
7572
- set(A) {
7573
- b.value = A, i("update:stepActive", A);
7572
+ set(M) {
7573
+ b.value = M, i("update:stepActive", M);
7574
7574
  }
7575
7575
  }), w = () => {
7576
7576
  R.value > 0 && R.value--, Lt(() => {
@@ -7582,8 +7582,8 @@ var Ap = { class: "j-table-footer" }, Mp = {
7582
7582
  }));
7583
7583
  }, x = async () => {
7584
7584
  if (v.value = !0, a.validateSteps) {
7585
- const A = await a.validateSteps(a.stepActive, u, f);
7586
- return v.value = !1, A;
7585
+ const M = await a.validateSteps(a.stepActive, u, f);
7586
+ return v.value = !1, M;
7587
7587
  }
7588
7588
  return v.value = !1, !0;
7589
7589
  }, C = () => {
@@ -7598,15 +7598,15 @@ var Ap = { class: "j-table-footer" }, Mp = {
7598
7598
  _.value = !1, y.value = !1;
7599
7599
  break;
7600
7600
  }
7601
- }, T = I(() => a.steps.map((A) => ({
7602
- title: A,
7601
+ }, T = I(() => a.steps.map((M) => ({
7602
+ title: M,
7603
7603
  disabled: !0
7604
7604
  })));
7605
7605
  return t({
7606
7606
  showLoading: u,
7607
7607
  hideLoading: f
7608
- }), (A, P) => {
7609
- const H = $("el-input"), D = $("j-button"), M = $("el-space"), E = $("el-step"), N = $("el-steps"), G = $("el-drawer"), ie = Bi("loading");
7608
+ }), (M, P) => {
7609
+ const H = $("el-input"), D = $("j-button"), A = $("el-space"), E = $("el-step"), N = $("el-steps"), G = $("el-drawer"), ie = Bi("loading");
7610
7610
  return k(), V(G, {
7611
7611
  modelValue: s.value,
7612
7612
  "onUpdate:modelValue": P[0] || (P[0] = (ye) => s.value = ye),
@@ -7634,8 +7634,8 @@ var Ap = { class: "j-table-footer" }, Mp = {
7634
7634
  position: "absolute",
7635
7635
  top: "-200px"
7636
7636
  } }),
7637
- B("div", tg, [Je(A.$slots, "default")]),
7638
- e.hasBtns ? (k(), z("div", ng, [X(M, { size: 8 }, {
7637
+ B("div", tg, [Je(M.$slots, "default")]),
7638
+ e.hasBtns ? (k(), z("div", ng, [X(A, { size: 8 }, {
7639
7639
  default: J(() => [
7640
7640
  e.isStep ? (k(), V(D, {
7641
7641
  key: 0,
@@ -8205,7 +8205,7 @@ var Ap = { class: "j-table-footer" }, Mp = {
8205
8205
  height: "72px",
8206
8206
  overflow: "hidden"
8207
8207
  }
8208
- }, Sg = ["src"], kg = { class: "j-upload-dragItem-content" }, Rg = { class: "j-upload-dragItem-mask" }, Eg = ["src"], Tg = { class: "j-upload-imgItem-mask" }, Ag = { class: "j-upload-item-content" }, Mg = /* @__PURE__ */ fe({
8208
+ }, Sg = ["src"], kg = { class: "j-upload-dragItem-content" }, Rg = { class: "j-upload-dragItem-mask" }, Eg = ["src"], Tg = { class: "j-upload-imgItem-mask" }, Mg = { class: "j-upload-item-content" }, Ag = /* @__PURE__ */ fe({
8209
8209
  __name: "list",
8210
8210
  props: {
8211
8211
  isUploadImg: {
@@ -8333,7 +8333,7 @@ var Ap = { class: "j-table-footer" }, Mp = {
8333
8333
  style: le({ color: s.color ? `var(${s.color})` : void 0 }),
8334
8334
  size: 16
8335
8335
  }, null, 8, ["style"]),
8336
- B("div", Ag, [X(c, {
8336
+ B("div", Mg, [X(c, {
8337
8337
  type: "primary",
8338
8338
  underline: "never",
8339
8339
  onClick: Ft((u) => e.previewFile(s), ["stop"])
@@ -8377,7 +8377,7 @@ var Ap = { class: "j-table-footer" }, Mp = {
8377
8377
  ]))), 128))], 2);
8378
8378
  };
8379
8379
  }
8380
- }), Dl = Mg, jg = { class: "j-upload" }, Pg = { key: 0 }, Bg = { style: { "margin-top": "8px" } }, Hg = {
8380
+ }), Dl = Ag, jg = { class: "j-upload" }, Pg = { key: 0 }, Bg = { style: { "margin-top": "8px" } }, Hg = {
8381
8381
  key: 0,
8382
8382
  style: { "margin-top": "4px" }
8383
8383
  }, Og = {
@@ -8564,7 +8564,7 @@ var Ap = { class: "j-table-footer" }, Mp = {
8564
8564
  });
8565
8565
  }, T = (re, ke, Pe) => {
8566
8566
  re.percent = Pe, re.uploadSize = ke, m();
8567
- }, A = (re) => {
8567
+ }, M = (re) => {
8568
8568
  re.status = "done", re.id += "1", re.uid += "1", m(), a("success", {
8569
8569
  file: re,
8570
8570
  list: y.value
@@ -8582,14 +8582,14 @@ var Ap = { class: "j-table-footer" }, Mp = {
8582
8582
  !n.isNotApi && n.upload ? n.upload(re) : !n.isNotApi && f ? f(re, {
8583
8583
  onStart: C,
8584
8584
  onProgress: T,
8585
- onSuccess: A,
8585
+ onSuccess: M,
8586
8586
  onError: P,
8587
8587
  uploadCallback: n.uploadCallback
8588
- }) : A(re);
8588
+ }) : M(re);
8589
8589
  }, D = (re) => {
8590
8590
  if (!b(re.size))
8591
8591
  return i && i("上传文件超出大小了"), !1;
8592
- }, M = (re) => {
8592
+ }, A = (re) => {
8593
8593
  x(re.file), H(re.file);
8594
8594
  }, E = (re) => new Promise((ke) => {
8595
8595
  r ? r({
@@ -8660,7 +8660,7 @@ var Ap = { class: "j-table-footer" }, Mp = {
8660
8660
  return o && o(`当前限制选择${n.limit}个文件`), !1;
8661
8661
  };
8662
8662
  return (re, ke) => {
8663
- const Pe = $("j-icon"), Oe = $("j-button"), Tt = $("el-popover"), At = $("el-button"), Xe = $("el-upload"), an = $("el-text"), St = $("j-dialog-full"), Wt = Bi("loading");
8663
+ const Pe = $("j-icon"), Oe = $("j-button"), Tt = $("el-popover"), Mt = $("el-button"), Xe = $("el-upload"), an = $("el-text"), St = $("j-dialog-full"), Wt = Bi("loading");
8664
8664
  return k(), z("div", jg, [
8665
8665
  X(Xe, {
8666
8666
  action: "",
@@ -8672,7 +8672,7 @@ var Ap = { class: "j-table-footer" }, Mp = {
8672
8672
  limit: p.value,
8673
8673
  multiple: e.multiple,
8674
8674
  "before-upload": D,
8675
- "http-request": M,
8675
+ "http-request": A,
8676
8676
  "file-list": y.value,
8677
8677
  "before-remove": E,
8678
8678
  "on-remove": N,
@@ -8708,7 +8708,7 @@ var Ap = { class: "j-table-footer" }, Mp = {
8708
8708
  "label"
8709
8709
  ])]),
8710
8710
  _: 1
8711
- }, 8, ["title"])) : e.readonly ? ee("", !0) : (k(), V(At, {
8711
+ }, 8, ["title"])) : e.readonly ? ee("", !0) : (k(), V(Mt, {
8712
8712
  key: 2,
8713
8713
  type: e.btnType,
8714
8714
  size: e.btnSize
@@ -8821,7 +8821,7 @@ var Ap = { class: "j-table-footer" }, Mp = {
8821
8821
  u(p);
8822
8822
  }, { deep: !0 }), Pt(() => {
8823
8823
  s();
8824
- }), Ao(() => {
8824
+ }), Mo(() => {
8825
8825
  c && clearTimeout(c), l && i.value && (l.unobserve(i.value), l.disconnect(), l = null), r.value && (r.value.dispose(), r.value = void 0);
8826
8826
  }), t({
8827
8827
  getInstance: () => r.value,
@@ -9187,30 +9187,30 @@ var Ap = { class: "j-table-footer" }, Mp = {
9187
9187
  if (/[><=]/.test(S)) {
9188
9188
  const C = S.match(/^([><=]+)(.+)$/);
9189
9189
  if (C) {
9190
- const T = C[1], A = Number(C[2]);
9190
+ const T = C[1], M = Number(C[2]);
9191
9191
  for (let P = 0; P < w.length; P++) try {
9192
9192
  const H = Number(w[P]);
9193
9193
  let D = !1;
9194
9194
  switch (T) {
9195
9195
  case ">":
9196
- D = H > A;
9196
+ D = H > M;
9197
9197
  break;
9198
9198
  case "<":
9199
- D = H < A;
9199
+ D = H < M;
9200
9200
  break;
9201
9201
  case ">=":
9202
- D = H >= A;
9202
+ D = H >= M;
9203
9203
  break;
9204
9204
  case "<=":
9205
- D = H <= A;
9205
+ D = H <= M;
9206
9206
  break;
9207
9207
  case "==":
9208
9208
  case "===":
9209
- D = H === A;
9209
+ D = H === M;
9210
9210
  break;
9211
9211
  case "!=":
9212
9212
  case "!==":
9213
- D = H !== A;
9213
+ D = H !== M;
9214
9214
  break;
9215
9215
  }
9216
9216
  D && x++;
@@ -9249,8 +9249,8 @@ var Ap = { class: "j-table-footer" }, Mp = {
9249
9249
  if (vr(S)) {
9250
9250
  const C = [];
9251
9251
  return S.forEach((T) => {
9252
- const A = Number(T);
9253
- Number.isNaN(A) ? C.push(0) : C.push(A);
9252
+ const M = Number(T);
9253
+ Number.isNaN(M) ? C.push(0) : C.push(M);
9254
9254
  }), C;
9255
9255
  }
9256
9256
  const x = Number(S);
@@ -9260,18 +9260,18 @@ var Ap = { class: "j-table-footer" }, Mp = {
9260
9260
  const w = JSON.parse(n.formatJson || "[]");
9261
9261
  let S = "";
9262
9262
  for (let T = 0; T < w.length; T++) {
9263
- const A = w[T];
9264
- if (A.type === "fun" && A.value !== "(" && A.value !== ")") if ([
9263
+ const M = w[T];
9264
+ if (M.type === "fun" && M.value !== "(" && M.value !== ")") if ([
9265
9265
  "abs",
9266
9266
  "max",
9267
9267
  "min",
9268
9268
  "sqrt"
9269
- ].includes(A.value)) S += `Math.${A.value}`;
9269
+ ].includes(M.value)) S += `Math.${M.value}`;
9270
9270
  else if ([
9271
9271
  "int",
9272
9272
  "power",
9273
9273
  "rand"
9274
- ].includes(A.value)) switch (A.value) {
9274
+ ].includes(M.value)) switch (M.value) {
9275
9275
  case "int":
9276
9276
  S += "Math.floor";
9277
9277
  break;
@@ -9282,8 +9282,8 @@ var Ap = { class: "j-table-footer" }, Mp = {
9282
9282
  S += "Math.random";
9283
9283
  break;
9284
9284
  }
9285
- else S += `${A.value}Fun`;
9286
- else A.type === "comp" ? S += `getCompValue('${A.value}')` : A.value === "i" && n.tableIndex !== void 0 ? S += n.tableIndex : S += A.value;
9285
+ else S += `${M.value}Fun`;
9286
+ else M.type === "comp" ? S += `getCompValue('${M.value}')` : M.value === "i" && n.tableIndex !== void 0 ? S += n.tableIndex : S += M.value;
9287
9287
  }
9288
9288
  if (!S) return "";
9289
9289
  S = `(
@@ -9721,7 +9721,7 @@ var Ap = { class: "j-table-footer" }, Mp = {
9721
9721
  }), w;
9722
9722
  }), R = (w) => b.value[w] || w;
9723
9723
  return (w, S) => {
9724
- const x = $("j-button"), C = $("j-icon"), T = $("el-space"), A = $("j-dialog");
9724
+ const x = $("j-button"), C = $("j-icon"), T = $("el-space"), M = $("j-dialog");
9725
9725
  return k(), z("div", null, [X(x, Ne(w.$attrs, {
9726
9726
  type: e.type,
9727
9727
  size: e.size,
@@ -9731,7 +9731,7 @@ var Ap = { class: "j-table-footer" }, Mp = {
9731
9731
  "type",
9732
9732
  "size",
9733
9733
  "label"
9734
- ]), X(A, {
9734
+ ]), X(M, {
9735
9735
  visible: l.value,
9736
9736
  title: U(n)("公式设置"),
9737
9737
  height: 800,
@@ -9785,7 +9785,7 @@ var Ap = { class: "j-table-footer" }, Mp = {
9785
9785
  }, {
9786
9786
  default: J(() => [(k(!0), z(Se, null, Ie(P.children, (D) => (k(), V(x, {
9787
9787
  key: D.value,
9788
- onClick: (M) => d(D.value, "comp"),
9788
+ onClick: (A) => d(D.value, "comp"),
9789
9789
  label: U(n)(D.label)
9790
9790
  }, null, 8, ["onClick", "label"]))), 128))]),
9791
9791
  _: 2
@@ -9844,7 +9844,7 @@ var Ap = { class: "j-table-footer" }, Mp = {
9844
9844
  n.callback?.(i.value);
9845
9845
  }));
9846
9846
  };
9847
- return Ao(() => {
9847
+ return Mo(() => {
9848
9848
  i.value = null;
9849
9849
  }), To(() => {
9850
9850
  i.value = null;
@@ -9878,14 +9878,14 @@ var Ap = { class: "j-table-footer" }, Mp = {
9878
9878
  color: "var(--j-color-text)",
9879
9879
  "font-size": "14px",
9880
9880
  "font-weight": "bold"
9881
- } }, Tv = { class: "j-data-panel-header-right" }, Av = { class: "j-data-panel-body" }, Mv = /* @__PURE__ */ fe({
9881
+ } }, Tv = { class: "j-data-panel-header-right" }, Mv = { class: "j-data-panel-body" }, Av = /* @__PURE__ */ fe({
9882
9882
  name: "JDataPanel",
9883
9883
  __name: "data-panel",
9884
9884
  props: { title: { default: void 0 } },
9885
9885
  setup(e) {
9886
- return (t, n) => (k(), z("div", kv, [e.title ? (k(), z("div", Rv, [B("div", Ev, ve(e.title), 1), B("div", Tv, [Je(t.$slots, "titleRight")])])) : ee("", !0), B("div", Av, [Je(t.$slots, "default")])]));
9886
+ return (t, n) => (k(), z("div", kv, [e.title ? (k(), z("div", Rv, [B("div", Ev, ve(e.title), 1), B("div", Tv, [Je(t.$slots, "titleRight")])])) : ee("", !0), B("div", Mv, [Je(t.$slots, "default")])]));
9887
9887
  }
9888
- }), jv = Mv, Pv = _e(jv), Bv = { class: "j-divider-content" }, Hv = /* @__PURE__ */ fe({
9888
+ }), jv = Av, Pv = _e(jv), Bv = { class: "j-divider-content" }, Hv = /* @__PURE__ */ fe({
9889
9889
  name: "JDivider",
9890
9890
  __name: "divider",
9891
9891
  props: {
@@ -10602,7 +10602,7 @@ var Ap = { class: "j-table-footer" }, Mp = {
10602
10602
  }, s = () => {
10603
10603
  const g = [
10604
10604
  Sd,
10605
- Md(),
10605
+ Ad(),
10606
10606
  Ed(),
10607
10607
  Td(),
10608
10608
  Wd(),
@@ -10613,7 +10613,7 @@ var Ap = { class: "j-table-footer" }, Mp = {
10613
10613
  Fd(),
10614
10614
  jd(),
10615
10615
  Jd(),
10616
- Ad.of([
10616
+ Md.of([
10617
10617
  ...Vd,
10618
10618
  ...Nd,
10619
10619
  ...Ud,
@@ -10702,7 +10702,7 @@ var Ap = { class: "j-table-footer" }, Mp = {
10702
10702
  await Lt(), await u(), typeof window < "u" && window.ResizeObserver && i.value && (p = new ResizeObserver(() => {
10703
10703
  l && l.dispatch({ scrollIntoView: !0 });
10704
10704
  }), p.observe(i.value));
10705
- }), Ao(() => {
10705
+ }), Mo(() => {
10706
10706
  p && i.value && (p.unobserve(i.value), p.disconnect(), p = null), l && (l.destroy(), l = null);
10707
10707
  }), t({ sqlFormatter: h }), (g, v) => (k(), z("div", {
10708
10708
  ref_key: "codeWraperRef",
@@ -10711,7 +10711,7 @@ var Ap = { class: "j-table-footer" }, Mp = {
10711
10711
  style: le({ height: e.height ? `${e.height}px` : "" })
10712
10712
  }, null, 4));
10713
10713
  }
10714
- }), Ay = Ty, My = _e(Ay), jy = /* @__PURE__ */ fe({
10714
+ }), My = Ty, Ay = _e(My), jy = /* @__PURE__ */ fe({
10715
10715
  __name: "slider-captcha-action",
10716
10716
  props: {
10717
10717
  actionStyle: {},
@@ -11180,7 +11180,7 @@ var Ap = { class: "j-table-footer" }, Mp = {
11180
11180
  }), d = (h) => {
11181
11181
  a("click", h);
11182
11182
  };
11183
- return dh({ getHMoreMenus: u }), Ao(() => {
11183
+ return dh({ getHMoreMenus: u }), Mo(() => {
11184
11184
  c && r.value && (c.unobserve(r.value), c.disconnect(), c = null);
11185
11185
  }), (h, p) => (k(), z("div", {
11186
11186
  ref_key: "menuRef",
@@ -11883,12 +11883,12 @@ var Ap = { class: "j-table-footer" }, Mp = {
11883
11883
  setup(e, { expose: t, emit: n }) {
11884
11884
  const { t: a } = bt(), o = e, i = n, r = O(), l = O(""), c = {}, s = O([]), u = O([]), f = (w, S) => {
11885
11885
  const x = [], C = /* @__PURE__ */ new Map();
11886
- w.forEach((A) => {
11887
- C.set(A.id || "", A), c[A.id || ""] = A;
11886
+ w.forEach((M) => {
11887
+ C.set(M.id || "", M), c[M.id || ""] = M;
11888
11888
  });
11889
11889
  const T = /* @__PURE__ */ new Set();
11890
- return S && S.length > 0 && S.forEach((A) => {
11891
- const P = C.get(A.id);
11890
+ return S && S.length > 0 && S.forEach((M) => {
11891
+ const P = C.get(M.id);
11892
11892
  if (P) {
11893
11893
  T.add(P.id || "");
11894
11894
  const H = {
@@ -11897,21 +11897,21 @@ var Ap = { class: "j-table-footer" }, Mp = {
11897
11897
  type: P.type,
11898
11898
  display: P.config?.display !== !1
11899
11899
  };
11900
- P.children && P.children.length > 0 && (H.children = f(P.children, A.children)), x.push(H);
11900
+ P.children && P.children.length > 0 && (H.children = f(P.children, M.children)), x.push(H);
11901
11901
  }
11902
- }), w.forEach((A) => {
11903
- if (!T.has(A.id || "")) {
11902
+ }), w.forEach((M) => {
11903
+ if (!T.has(M.id || "")) {
11904
11904
  const P = {
11905
- id: A.id || "",
11906
- label: A.config?.label || A.id || "",
11907
- type: A.type,
11908
- display: A.config?.display !== !1
11905
+ id: M.id || "",
11906
+ label: M.config?.label || M.id || "",
11907
+ type: M.type,
11908
+ display: M.config?.display !== !1
11909
11909
  };
11910
- A.children && A.children.length > 0 && (P.children = f(A.children)), x.push(P);
11910
+ M.children && M.children.length > 0 && (P.children = f(M.children)), x.push(P);
11911
11911
  }
11912
11912
  }), x;
11913
11913
  }, d = (w, S) => S.length === 0 ? w : w.map((x) => {
11914
- const C = S.some((A) => x.label.toLowerCase().includes(A.toLowerCase())), T = x.children ? d(x.children, S) : [];
11914
+ const C = S.some((M) => x.label.toLowerCase().includes(M.toLowerCase())), T = x.children ? d(x.children, S) : [];
11915
11915
  return C || T.length > 0 ? {
11916
11916
  ...x,
11917
11917
  children: T.length > 0 ? T : x.children
@@ -11937,8 +11937,8 @@ var Ap = { class: "j-table-footer" }, Mp = {
11937
11937
  return S.forEach((C) => {
11938
11938
  let T = !0;
11939
11939
  if (g.value.size > 0) {
11940
- const A = g.value.get(C.id || "");
11941
- A ? T = A.display : T = C.config?.display !== !1;
11940
+ const M = g.value.get(C.id || "");
11941
+ M ? T = M.display : T = C.config?.display !== !1;
11942
11942
  } else T = C.config?.display !== !1;
11943
11943
  T && (x.push(C.id || ""), C.children && x.push(...w(C.children)));
11944
11944
  }), x;
@@ -11967,7 +11967,7 @@ var Ap = { class: "j-table-footer" }, Mp = {
11967
11967
  return t({ init: () => {
11968
11968
  v(), s.value = f(o.columns, o.columnConfig), u.value = JSON.parse(JSON.stringify(s.value));
11969
11969
  } }), (w, S) => {
11970
- const x = $("j-icon"), C = $("el-input"), T = $("j-tree"), A = $("j-button");
11970
+ const x = $("j-icon"), C = $("el-input"), T = $("j-tree"), M = $("j-button");
11971
11971
  return k(), z("div", xm, [B("div", Cm, [B("div", Sm, [X(C, {
11972
11972
  modelValue: l.value,
11973
11973
  "onUpdate:modelValue": S[0] || (S[0] = (P) => l.value = P),
@@ -11993,11 +11993,11 @@ var Ap = { class: "j-table-footer" }, Mp = {
11993
11993
  "list",
11994
11994
  "default-checked-keys",
11995
11995
  "draggable"
11996
- ])])]), B("div", Rm, [X(A, {
11996
+ ])])]), B("div", Rm, [X(M, {
11997
11997
  label: U(a)("确定"),
11998
11998
  type: "primary",
11999
11999
  onClick: m
12000
- }, null, 8, ["label"]), X(A, {
12000
+ }, null, 8, ["label"]), X(M, {
12001
12001
  label: U(a)("重置"),
12002
12002
  icon: "mdi:restore",
12003
12003
  type: "text",
@@ -12005,7 +12005,7 @@ var Ap = { class: "j-table-footer" }, Mp = {
12005
12005
  }, null, 8, ["label"])])]);
12006
12006
  };
12007
12007
  }
12008
- }), Tm = Em, Am = { class: "j-table-panel-left" }, Mm = { class: "j-table-panel-top" }, jm = { class: "j-table-panel-top-right" }, Pm = {
12008
+ }), Tm = Em, Mm = { class: "j-table-panel-left" }, Am = { class: "j-table-panel-top" }, jm = { class: "j-table-panel-top-right" }, Pm = {
12009
12009
  key: 0,
12010
12010
  style: { width: "200px" }
12011
12011
  }, Bm = { class: "j-table-panel-main" }, Hm = { class: "j-table-panel-loading" }, Om = { class: "j-table-panel-loading-content" }, Im = { class: "j-table-panel-loading-text" }, Lm = {
@@ -12166,9 +12166,9 @@ var Ap = { class: "j-table-footer" }, Mp = {
12166
12166
  }), Ot.push(gt);
12167
12167
  }
12168
12168
  }), Ot;
12169
- }, w = I(() => R(i.columns, ze.value)), S = I(() => Pf(i.columns, (Re) => Re.config.label)), x = O(""), C = I(() => S.value.some((Re) => Re.config?.filter?.isSearchKeyword)), T = O(), A = O(!0), P = O([]), H = I(() => A.value ? "搜索全部" : `搜索范围:${S.value.filter((Re) => P.value.includes(Re.id)).map((Re) => Re.config?.label).join("、")}`), D = () => {
12169
+ }, w = I(() => R(i.columns, ze.value)), S = I(() => Pf(i.columns, (Re) => Re.config.label)), x = O(""), C = I(() => S.value.some((Re) => Re.config?.filter?.isSearchKeyword)), T = O(), M = O(!0), P = O([]), H = I(() => M.value ? "搜索全部" : `搜索范围:${S.value.filter((Re) => P.value.includes(Re.id)).map((Re) => Re.config?.label).join("、")}`), D = () => {
12170
12170
  T.value.init();
12171
- }, M = O(), E = O(!1), N = O(!1), G = O(!1), ie = O([]), ye = O("and"), Y = O(), q = O(!1), L = O([]), j = () => {
12171
+ }, A = O(), E = O(!1), N = O(!1), G = O(!1), ie = O([]), ye = O("and"), Y = O(), q = O(!1), L = O([]), j = () => {
12172
12172
  Y.value.init(L.value);
12173
12173
  }, we = (Re) => {
12174
12174
  L.value = Re, q.value = !1, ae();
@@ -12180,7 +12180,7 @@ var Ap = { class: "j-table-footer" }, Mp = {
12180
12180
  ze.value = Re, Fe.value = !1;
12181
12181
  }, Oe = O(!1), Tt = () => {
12182
12182
  Oe.value = !Oe.value;
12183
- }, At = () => {
12183
+ }, Mt = () => {
12184
12184
  p.value = [], l.value && (l.value.setSelection?.([]), g.value && (g.value = !1, l.value.setRecords(c)));
12185
12185
  }, Xe = () => {
12186
12186
  g.value = !g.value, g.value ? l.value?.setRecords(p.value) : (console.log(c, "tableData"), l.value?.setRecords(c)), l.value?.setSelection?.(p.value);
@@ -12202,7 +12202,7 @@ var Ap = { class: "j-table-footer" }, Mp = {
12202
12202
  id: "clear_selection",
12203
12203
  label: "清空选中",
12204
12204
  config: { type: "text" },
12205
- click: At
12205
+ click: Mt
12206
12206
  }
12207
12207
  ], Te = i.batchButtons.map((mt) => ({
12208
12208
  ...mt,
@@ -12282,7 +12282,7 @@ var Ap = { class: "j-table-footer" }, Mp = {
12282
12282
  Re && (ue = Re), ue && (Te.query = ue);
12283
12283
  try {
12284
12284
  const mt = {};
12285
- mt.rel = ye.value, mt.cond = (M.value?.getSearchFields?.() || ie.value).filter((me) => me.value !== void 0 && me.value !== null && me.value !== "" || ["empty", "not_empty"].includes(me.method)).map((me) => ({
12285
+ mt.rel = ye.value, mt.cond = (A.value?.getSearchFields?.() || ie.value).filter((me) => me.value !== void 0 && me.value !== null && me.value !== "" || ["empty", "not_empty"].includes(me.method)).map((me) => ({
12286
12286
  field: me.field,
12287
12287
  method: me.method,
12288
12288
  value: me.value,
@@ -12291,7 +12291,7 @@ var Ap = { class: "j-table-footer" }, Mp = {
12291
12291
  const Ot = L.value.map((me) => me.value + " " + me.sord).join(",");
12292
12292
  if (x.value && (Te.keyword = {
12293
12293
  value: x.value,
12294
- fields: A.value ? S.value.filter((me) => me.config?.filter?.isSearchKeyword).map((me) => me.id) : U(P)
12294
+ fields: M.value ? S.value.filter((me) => me.config?.filter?.isSearchKeyword).map((me) => me.id) : U(P)
12295
12295
  }), i.loadData) {
12296
12296
  if (i.isPage) {
12297
12297
  Te.pagination = {
@@ -12359,7 +12359,7 @@ var Ap = { class: "j-table-footer" }, Mp = {
12359
12359
  getSelection: Wn,
12360
12360
  setSelection: Oa,
12361
12361
  clearSelection: () => {
12362
- At();
12362
+ Mt();
12363
12363
  },
12364
12364
  getTableRef: sn
12365
12365
  }), (Re, Te) => {
@@ -12367,7 +12367,7 @@ var Ap = { class: "j-table-footer" }, Mp = {
12367
12367
  return k(), z("div", { class: Ye(["j-table-panel-wrapper", {
12368
12368
  fullscreen: Oe.value,
12369
12369
  "no-padding": e.noPadding || Oe.value
12370
- }]) }, [B("div", { class: Ye(["j-table-panel", { "j-table-panel-fullscreen": Oe.value }]) }, [B("div", Am, [B("div", Mm, [B("div", {
12370
+ }]) }, [B("div", { class: Ye(["j-table-panel", { "j-table-panel-fullscreen": Oe.value }]) }, [B("div", Mm, [B("div", Am, [B("div", {
12371
12371
  ref_key: "topLeftRef",
12372
12372
  ref: Wt,
12373
12373
  class: "j-table-panel-top-left"
@@ -12403,8 +12403,8 @@ var Ap = { class: "j-table-footer" }, Mp = {
12403
12403
  default: J(() => [X(rm, {
12404
12404
  ref_key: "keywordPanelRef",
12405
12405
  ref: T,
12406
- "check-all": A.value,
12407
- "onUpdate:checkAll": Te[0] || (Te[0] = (ct) => A.value = ct),
12406
+ "check-all": M.value,
12407
+ "onUpdate:checkAll": Te[0] || (Te[0] = (ct) => M.value = ct),
12408
12408
  "check-fields": P.value,
12409
12409
  "onUpdate:checkFields": Te[1] || (Te[1] = (ct) => P.value = ct),
12410
12410
  columns: S.value
@@ -12438,7 +12438,7 @@ var Ap = { class: "j-table-footer" }, Mp = {
12438
12438
  }, null, 8, ["class"])]),
12439
12439
  default: J(() => [X($l, {
12440
12440
  ref_key: "filterPanelRef",
12441
- ref: M,
12441
+ ref: A,
12442
12442
  "is-pin": E.value,
12443
12443
  "onUpdate:isPin": Te[3] || (Te[3] = (ct) => E.value = ct),
12444
12444
  relation: ye.value,
@@ -12600,7 +12600,7 @@ var Ap = { class: "j-table-footer" }, Mp = {
12600
12600
  "load-children"
12601
12601
  ])])]), e.showFilterButton && E.value && !y.value ? (k(), z("div", Lm, [X($l, {
12602
12602
  ref_key: "filterPanelRef",
12603
- ref: M,
12603
+ ref: A,
12604
12604
  "is-pin": E.value,
12605
12605
  "onUpdate:isPin": Te[10] || (Te[10] = (ct) => E.value = ct),
12606
12606
  relation: ye.value,
@@ -12815,39 +12815,39 @@ var Ap = { class: "j-table-footer" }, Mp = {
12815
12815
  u.value = !0, a.loadData && (d.value = await a.loadData() || []), c && await c(a.dataType, a.dataCode), u.value = !1, Lt(() => {
12816
12816
  a.afterLoadData && a.afterLoadData(g.value || []);
12817
12817
  });
12818
- }, _ = (D, M = !0) => {
12819
- s.value?.setCurrentKey(D, M);
12820
- }, y = () => s.value?.getCurrentKey(), m = (D, M = !1) => {
12821
- s.value?.setCheckedKeys(D, M);
12822
- }, b = (D = !1) => s.value?.getCheckedKeys(D), R = async (D, M, E, N) => {
12818
+ }, _ = (D, A = !0) => {
12819
+ s.value?.setCurrentKey(D, A);
12820
+ }, y = () => s.value?.getCurrentKey(), m = (D, A = !1) => {
12821
+ s.value?.setCheckedKeys(D, A);
12822
+ }, b = (D = !1) => s.value?.getCheckedKeys(D), R = async (D, A, E, N) => {
12823
12823
  if (f.value = D.value, a.nodeClickFlow && a.runFlow) {
12824
12824
  const G = JSON.parse(a.nodeClickFlow);
12825
12825
  await a.runFlow(G, { value: D.value });
12826
12826
  }
12827
12827
  a.click && a.click(D.value, D, N);
12828
- }, w = (D, { checkedKeys: M, checkedNodes: E, halfCheckedKeys: N, halfCheckedNodes: G }) => {
12829
- a.check && a.check(M, {
12828
+ }, w = (D, { checkedKeys: A, checkedNodes: E, halfCheckedKeys: N, halfCheckedNodes: G }) => {
12829
+ a.check && a.check(A, {
12830
12830
  node: D,
12831
12831
  checkedNodes: E,
12832
12832
  halfCheckedKeys: N,
12833
12833
  halfCheckedNodes: G
12834
12834
  });
12835
- }, S = (D, M, E, N) => {
12836
- o("node-drop", D, M, E, N);
12835
+ }, S = (D, A, E, N) => {
12836
+ o("node-drop", D, A, E, N);
12837
12837
  }, x = (D) => {
12838
- const M = xn(a.treeButtons);
12838
+ const A = xn(a.treeButtons);
12839
12839
  return D && a.filterButton ? a.filterButton({
12840
- buttons: M,
12840
+ buttons: A,
12841
12841
  node: D
12842
- }) : M;
12843
- }, { openLayer: C } = Bo(), T = (D, M) => {
12842
+ }) : A;
12843
+ }, { openLayer: C } = Bo(), T = (D, A) => {
12844
12844
  D.config?.disabled || D.click && D.click({
12845
- data: M,
12845
+ data: A,
12846
12846
  openLayer: C
12847
12847
  });
12848
- }, A = O(""), P = (D, M) => {
12849
- A.value = D ? M.value : "", console.log(A.value, "row");
12850
- }, H = (D, M, E) => a.allowDrop ? a.allowDrop(D, M, E) : !(E == "inner" && !M.data.canInner);
12848
+ }, M = O(""), P = (D, A) => {
12849
+ M.value = D ? A.value : "", console.log(M.value, "row");
12850
+ }, H = (D, A, E) => a.allowDrop ? a.allowDrop(D, A, E) : !(E == "inner" && !A.data.canInner);
12851
12851
  return Pt(async () => {
12852
12852
  (a.immediate && a.loadData || a.dataType || a.dataCode) && await v();
12853
12853
  }), nt(() => a.list, () => {
@@ -12862,7 +12862,7 @@ var Ap = { class: "j-table-footer" }, Mp = {
12862
12862
  getValue: y,
12863
12863
  setCheck: m,
12864
12864
  getCheck: b
12865
- }), (D, M) => {
12865
+ }), (D, A) => {
12866
12866
  const E = $("j-icon"), N = $("j-button"), G = $("el-dropdown-item"), ie = $("el-dropdown-menu"), ye = $("el-dropdown"), Y = $("el-tree"), q = $("el-empty"), L = Bi("loading");
12867
12867
  return Ln((k(), z("div", {
12868
12868
  class: Ye([
@@ -12894,7 +12894,7 @@ var Ap = { class: "j-table-footer" }, Mp = {
12894
12894
  onCheck: w,
12895
12895
  onNodeDrop: S
12896
12896
  }, {
12897
- default: J(({ node: j }) => [B("div", { class: Ye(["j-tree-item-wraper", { "is-focus": A.value === j.data.value }]) }, [
12897
+ default: J(({ node: j }) => [B("div", { class: Ye(["j-tree-item-wraper", { "is-focus": M.value === j.data.value }]) }, [
12898
12898
  j.data.openIcon ? (k(), V(E, {
12899
12899
  key: 0,
12900
12900
  class: "j-tree-item-open-icon",
@@ -13004,62 +13004,31 @@ var Ap = { class: "j-table-footer" }, Mp = {
13004
13004
  },
13005
13005
  emits: ["update:modelValue", "change"],
13006
13006
  setup(e, { emit: t }) {
13007
- const n = e, a = {
13008
- dataItem: {
13009
- label: "j_ItemName",
13010
- value: "j_ItemValue",
13011
- idKey: "j_Id",
13012
- pidKey: "j_ParentId"
13013
- },
13014
- dataClassify: {
13015
- label: "j_ItemName",
13016
- value: "j_ItemCode",
13017
- idKey: "j_Id",
13018
- pidKey: "j_ParentId"
13019
- },
13020
- dblink: {
13021
- label: "j_Name",
13022
- value: "j_Code"
13023
- },
13024
- area: {
13025
- label: "j_AreaName",
13026
- value: "j_AreaCode",
13027
- idKey: "j_AreaId",
13028
- pidKey: "j_ParentId"
13029
- }
13030
- }, { useData: o } = bt(), { getTreeData: i } = o(), r = I(() => i ? i({
13031
- dataType: n.dataType,
13032
- dataCode: n.dataCode,
13033
- labelKey: n.labelKey || a[n.dataType]?.label || "label",
13034
- valueKey: n.valueKey || a[n.dataType]?.value || "value",
13035
- pidKey: n.pidKey || a[n.dataType]?.pidKey || "pid",
13036
- idKey: n.idKey || a[n.dataType]?.idKey || "id",
13037
- notLoad: !1
13038
- }) || [] : []), l = I(() => n.dataCode || n.dataType ? r.value : n.options || []), c = t, s = I({
13007
+ const n = e, { useData: a } = bt(), { getDataByComp: o } = a(), i = I(() => o ? o({ config: n }) || [] : []), r = I(() => n.options ? n.options : n.dataCode || n.dataType ? i.value : []), l = t, c = I({
13039
13008
  get() {
13040
13009
  return n.modelValue;
13041
13010
  },
13042
- set(f) {
13043
- c("update:modelValue", f);
13011
+ set(u) {
13012
+ l("update:modelValue", u);
13044
13013
  }
13045
- }), u = (f) => {
13046
- c("change", f);
13014
+ }), s = (u) => {
13015
+ l("change", u);
13047
13016
  };
13048
- return (f, d) => {
13049
- const h = $("el-tree-select");
13050
- return k(), V(h, {
13051
- modelValue: s.value,
13052
- "onUpdate:modelValue": d[0] || (d[0] = (p) => s.value = p),
13053
- data: l.value,
13017
+ return (u, f) => {
13018
+ const d = $("el-tree-select");
13019
+ return k(), V(d, {
13020
+ modelValue: c.value,
13021
+ "onUpdate:modelValue": f[0] || (f[0] = (h) => c.value = h),
13022
+ style: { width: "100%" },
13023
+ data: r.value,
13054
13024
  "check-strictly": e.checkStrictly,
13055
13025
  "render-after-expand": e.renderAfterExpand,
13056
13026
  props: n,
13057
- style: { width: "100%" },
13058
13027
  size: e.size,
13059
13028
  disabled: e.disabled || e.readonly,
13060
13029
  clearable: e.clearable,
13061
13030
  placeholder: e.placeholder,
13062
- onChange: u
13031
+ onChange: s
13063
13032
  }, null, 8, [
13064
13033
  "modelValue",
13065
13034
  "data",
@@ -13072,7 +13041,7 @@ var Ap = { class: "j-table-footer" }, Mp = {
13072
13041
  ]);
13073
13042
  };
13074
13043
  }
13075
- }), eb = Qm, tb = _e(eb), nb = _e(Mc), ab = Zd;
13044
+ }), eb = Qm, tb = _e(eb), nb = _e(Ac), ab = Zd;
13076
13045
  async function ob(e, t, n) {
13077
13046
  const a = { ...n };
13078
13047
  delete a.ruleIndex, delete a.trigger;
@@ -13183,8 +13152,8 @@ var lb = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
13183
13152
  const g = (Z) => {
13184
13153
  f && f(Z);
13185
13154
  }, v = O(!1), _ = I(() => a.config?.gutter || 16), y = I(() => a.config?.span || 24), m = I(() => a.config?.labelWidth), b = I(() => a.config?.labelPosition || "right"), R = I(() => x.length === 1 && (x[0].type === "j-tabs" || x[0].type === "j-layout" || x[0].config?.isAutoWindow)), w = xa({}), S = O({}), x = [], C = {}, T = O({});
13186
- let A = {}, P = {}, H = [], D = {};
13187
- const M = async (Z) => {
13155
+ let M = {}, P = {}, H = [], D = {};
13156
+ const A = async (Z) => {
13188
13157
  v.value && G && (Z.getTableData || jl(G, Z.id, Z.formData[Z.id])), o("change", Z), C[Z.id]?.config?.codeChange && await _t(JSON.parse(C[Z.id]?.config?.codeChange), { data: Z });
13189
13158
  }, E = (Z) => Vr(C[Z]?.type || "") && !C[Z]?.config?.notInput || C[Z]?.config?.isInput, N = (Z) => [
13190
13159
  "j-table",
@@ -13219,10 +13188,10 @@ var lb = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
13219
13188
  ae !== "" && N(ae) && (Ge = !0, Be.config = he.config || {}, Be.config.parentTableId = ae, pt = C[ae]?.config?.table);
13220
13189
  const ft = Be.config || {};
13221
13190
  if (E(he.id))
13222
- !te && Ge === !1 && (ft?.defaultValue === 0 ? w[he.id] = ft?.defaultValue : w[he.id] = ft?.defaultValue || void 0), ft.table && ft.field ? A[`${ft.table}_${ft.field}`.toLowerCase()] = he.id : ft.field && (Ge ? A[`${pt}_${ft.field}`.toLowerCase()] = he.id : A[`${ft.field}`.toLowerCase()] = he.id);
13223
- else if (Ge && ft.field) A[`${pt}_${ft.field}`.toLowerCase()] = he.id;
13191
+ !te && Ge === !1 && (ft?.defaultValue === 0 ? w[he.id] = ft?.defaultValue : w[he.id] = ft?.defaultValue || void 0), ft.table && ft.field ? M[`${ft.table}_${ft.field}`.toLowerCase()] = he.id : ft.field && (Ge ? M[`${pt}_${ft.field}`.toLowerCase()] = he.id : M[`${ft.field}`.toLowerCase()] = he.id);
13192
+ else if (Ge && ft.field) M[`${pt}_${ft.field}`.toLowerCase()] = he.id;
13224
13193
  else if (N(he.id))
13225
- !te && !ft.isSubTable && (w[he.id] = []), ft.table && (A[ft.table.toLowerCase() || ""] = he.id), ft.isSubTable || H.push(Be);
13194
+ !te && !ft.isSubTable && (w[he.id] = []), ft.table && (M[ft.table.toLowerCase() || ""] = he.id), ft.isSubTable || H.push(Be);
13226
13195
  else if (ft?.defaultValue) w[he.id] = ft?.defaultValue;
13227
13196
  else if (he.type === "collapse" && ft?.isExpand) {
13228
13197
  const pn = [];
@@ -13235,7 +13204,7 @@ var lb = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
13235
13204
  }, q = async (Z, ue) => {
13236
13205
  v.value = !1;
13237
13206
  const te = !!ue;
13238
- x.splice(0, x.length), A = {}, P = {}, H = [], G = ue, wo(w), wo(C), T.value = {}, te && ie(ue, ""), Y(Z, x, te), D = xn(w), await Lt(), v.value = !0, await Lt(), St(a.config?.codeInit, {});
13207
+ x.splice(0, x.length), M = {}, P = {}, H = [], G = ue, wo(w), wo(C), T.value = {}, te && ie(ue, ""), Y(Z, x, te), D = xn(w), await Lt(), v.value = !0, await Lt(), St(a.config?.codeInit, {});
13239
13208
  }, L = (Z, ue, te) => {
13240
13209
  const ae = [];
13241
13210
  return ue.forEach((he) => {
@@ -13245,7 +13214,7 @@ var lb = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
13245
13214
  const Ge = Pe(Ve);
13246
13215
  if (Ge?.type === "j-table") Be[Ge?.id || ""] = L(Ve, he[Ve], te);
13247
13216
  else {
13248
- let pt = A[`${Z}_${Ve}`.toLowerCase()] || Ve;
13217
+ let pt = M[`${Z}_${Ve}`.toLowerCase()] || Ve;
13249
13218
  pt = pt.indexOf(".") !== -1 ? pt.split(".")[1] : pt, Be[pt] = he[Ve];
13250
13219
  }
13251
13220
  }
@@ -13259,7 +13228,7 @@ var lb = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
13259
13228
  ae && (vr(ae) && (ae = ae[0] || {}), typeof ae == "object" ? Object.keys(ae).forEach((Be) => {
13260
13229
  if (!ue || ue(te, ae[Be], te)) {
13261
13230
  let Ve = Be;
13262
- te !== "main" && (Ve = `${te}_${Be}`), P[Ve] = te, w[A[Ve.toLowerCase()] || Be] = ae[Be];
13231
+ te !== "main" && (Ve = `${te}_${Be}`), P[Ve] = te, w[M[Ve.toLowerCase()] || Be] = ae[Be];
13263
13232
  }
13264
13233
  }) : w[te] = ae);
13265
13234
  else if (N(he.id || "")) {
@@ -13267,8 +13236,8 @@ var lb = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
13267
13236
  console.warn("表格数据不是数组:" + te);
13268
13237
  return;
13269
13238
  }
13270
- ae?.length > 0 ? w[A[te.toLowerCase()] || te] = L(te, ae, ue) : w[A[te.toLowerCase()] || te] = [];
13271
- } else (!ue || ue(te, ae, te)) && (w[A[te.toLowerCase()] || te] = ae);
13239
+ ae?.length > 0 ? w[M[te.toLowerCase()] || te] = L(te, ae, ue) : w[M[te.toLowerCase()] || te] = [];
13240
+ } else (!ue || ue(te, ae, te)) && (w[M[te.toLowerCase()] || te] = ae);
13272
13241
  }), G && Object.keys(w).forEach((te) => {
13273
13242
  const ae = Pe(te);
13274
13243
  (ae === void 0 || !["j-tabs", "j-collapse"].includes(ae.type || "")) && jl(G, te, w[te]);
@@ -13346,7 +13315,7 @@ var lb = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
13346
13315
  });
13347
13316
  }, Pe = (Z) => {
13348
13317
  let ue = C[Z];
13349
- return ue === void 0 && A[Z.toLowerCase()] && (ue = C[A[Z.toLowerCase()]]), ue;
13318
+ return ue === void 0 && M[Z.toLowerCase()] && (ue = C[M[Z.toLowerCase()]]), ue;
13350
13319
  }, Oe = ({ id: Z, i: ue, value: te, type: ae }) => {
13351
13320
  if (ae === "add") w[Z].push(te);
13352
13321
  else if (ae === "delete") w[Z].splice(ue, 1);
@@ -13374,7 +13343,7 @@ var lb = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
13374
13343
  return w[te.id || ""];
13375
13344
  }
13376
13345
  if (w[Z]) return w[Z];
13377
- }, At = async ({ id: Z, i: ue }) => {
13346
+ }, Mt = async ({ id: Z, i: ue }) => {
13378
13347
  const te = Tt({
13379
13348
  id: Z,
13380
13349
  i: ue
@@ -13407,7 +13376,7 @@ var lb = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
13407
13376
  });
13408
13377
  }
13409
13378
  return te;
13410
- }, Xe = async (Z, ue) => p?.loadViewDataList ? await p?.loadViewDataList(Z, ue, !1) : [], an = (Z) => (Z.set = Oe, Z.get = Tt, Z.setFormData = j, Z.getFormData = Ee, Z.getLabel = At, Z.getViewData = Xe, Z.getDateNow = (ue) => Wr(/* @__PURE__ */ new Date(), ue || "YYYY-MM-DD HH:mm:ss"), Z.httpGet = l || (() => {
13379
+ }, Xe = async (Z, ue) => p?.loadViewDataList ? await p?.loadViewDataList(Z, ue, !1) : [], an = (Z) => (Z.set = Oe, Z.get = Tt, Z.setFormData = j, Z.getFormData = Ee, Z.getLabel = Mt, Z.getViewData = Xe, Z.getDateNow = (ue) => Wr(/* @__PURE__ */ new Date(), ue || "YYYY-MM-DD HH:mm:ss"), Z.httpGet = l || (() => {
13411
13380
  console.log("当前状态不支持");
13412
13381
  }), Z.httpPost = c || (() => {
13413
13382
  console.log("当前状态不支持");
@@ -13469,7 +13438,7 @@ var lb = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
13469
13438
  labelWidth: m,
13470
13439
  labelPosition: b,
13471
13440
  getValue: Tt,
13472
- formChange: M,
13441
+ formChange: A,
13473
13442
  runFlow: _t,
13474
13443
  runFlowByNotRunActions: async (Z) => {
13475
13444
  const ue = kt[Z];
@@ -13481,7 +13450,7 @@ var lb = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
13481
13450
  validate: re,
13482
13451
  setValue: Oe,
13483
13452
  getValue: Tt,
13484
- getLabel: At,
13453
+ getLabel: Mt,
13485
13454
  setFormData: j,
13486
13455
  getFormData: Ee,
13487
13456
  setCompConfig: Wt
@@ -13516,7 +13485,7 @@ var lb = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
13516
13485
  ])) : ee("", !0);
13517
13486
  };
13518
13487
  }
13519
- }), cb = sb, ub = _e(cb), db = _e(Ac), fb = { class: "j-page" }, hb = /* @__PURE__ */ fe({
13488
+ }), cb = sb, ub = _e(cb), db = _e(Mc), fb = { class: "j-page" }, hb = /* @__PURE__ */ fe({
13520
13489
  name: "JPage",
13521
13490
  __name: "page",
13522
13491
  props: {
@@ -13691,10 +13660,10 @@ var lb = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
13691
13660
  }), kb = Sb, Rb = _e(kb), Eb = { class: "j-input-rows" }, Tb = {
13692
13661
  key: 0,
13693
13662
  class: "j-input-rows-num"
13694
- }, Ab = {
13663
+ }, Mb = {
13695
13664
  key: 1,
13696
13665
  class: "j-input-rows-char"
13697
- }, Mb = /* @__PURE__ */ fe({
13666
+ }, Ab = /* @__PURE__ */ fe({
13698
13667
  name: "JInputRows",
13699
13668
  __name: "input-rows",
13700
13669
  props: {
@@ -13831,11 +13800,11 @@ var lb = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
13831
13800
  class: Ye([e.isCompact ? "j-space-compact" : "j-space", { "j-space-wrap": e.isWrap }])
13832
13801
  }, [
13833
13802
  e.showNum ? (k(), z("div", Tb, ve(T + 1), 1)) : ee("", !0),
13834
- e.showChar ? (k(), z("div", Ab, ve(p[T % 26]), 1)) : ee("", !0),
13835
- (k(!0), z(Se, null, Ie(e.columns, (A) => (k(), V(w, Ne({
13836
- key: A.id,
13803
+ e.showChar ? (k(), z("div", Mb, ve(p[T % 26]), 1)) : ee("", !0),
13804
+ (k(!0), z(Se, null, Ie(e.columns, (M) => (k(), V(w, Ne({
13805
+ key: M.id,
13837
13806
  ref_for: !0
13838
- }, A, { row: C }), null, 16, ["row"]))), 128)),
13807
+ }, M, { row: C }), null, 16, ["row"]))), 128)),
13839
13808
  f.value ? (k(), V(S, {
13840
13809
  key: 2,
13841
13810
  class: "j-input-rows-drag",
@@ -13845,7 +13814,7 @@ var lb = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
13845
13814
  key: 3,
13846
13815
  icon: "mdi:delete-outline",
13847
13816
  class: "j-input-rows-delete",
13848
- onClick: (A) => y(T)
13817
+ onClick: (M) => y(T)
13849
13818
  }, null, 8, ["onClick"])) : ee("", !0)
13850
13819
  ], 2))), 128))], 512), !u.value && r.value ? (k(), z("div", {
13851
13820
  key: 0,
@@ -13861,7 +13830,7 @@ var lb = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
13861
13830
  }, null, 8, ["label"])) : ee("", !0)], 4)) : ee("", !0)]);
13862
13831
  };
13863
13832
  }
13864
- }), jb = Mb, Pb = _e(jb), Bb = { class: "j-input-layer" }, Hb = /* @__PURE__ */ fe({
13833
+ }), jb = Ab, Pb = _e(jb), Bb = { class: "j-input-layer" }, Hb = /* @__PURE__ */ fe({
13865
13834
  name: "JInputLayer",
13866
13835
  __name: "input-layer",
13867
13836
  props: {
@@ -14937,8 +14906,8 @@ function Dc(e, t, n) {
14937
14906
  var a = this;
14938
14907
  function o(x, C, T) {
14939
14908
  if (!l(x, C)) {
14940
- var A, P, H;
14941
- T ? P = t.getGraphics(T) : (A = C.delegateTarget || C.target, A && (P = A, T = t.get(P))), !(!P || !T) && (H = e.fire(x, {
14909
+ var M, P, H;
14910
+ T ? P = t.getGraphics(T) : (M = C.delegateTarget || C.target, M && (P = M, T = t.get(P))), !(!P || !T) && (H = e.fire(x, {
14942
14911
  element: T,
14943
14912
  gfx: P,
14944
14913
  originalEvent: C
@@ -14969,20 +14938,20 @@ function Dc(e, t, n) {
14969
14938
  "element.dblclick": ai
14970
14939
  };
14971
14940
  function u(x, C, T) {
14972
- var A = c[x];
14973
- if (!A) throw new Error("unmapped DOM event name <" + x + ">");
14974
- return o(A, C, T);
14941
+ var M = c[x];
14942
+ if (!M) throw new Error("unmapped DOM event name <" + x + ">");
14943
+ return o(M, C, T);
14975
14944
  }
14976
14945
  var f = "svg, .djs-element";
14977
- function d(x, C, T, A) {
14946
+ function d(x, C, T, M) {
14978
14947
  var P = i[T] = function(H) {
14979
14948
  o(T, H);
14980
14949
  };
14981
- A && (s[T] = A), P.$delegate = Gn.bind(x, f, C, P);
14950
+ M && (s[T] = M), P.$delegate = Gn.bind(x, f, C, P);
14982
14951
  }
14983
14952
  function h(x, C, T) {
14984
- var A = r(T);
14985
- A && Gn.unbind(x, C, A.$delegate);
14953
+ var M = r(T);
14954
+ M && Gn.unbind(x, C, M.$delegate);
14986
14955
  }
14987
14956
  function p(x) {
14988
14957
  ce(c, function(C, T) {
@@ -15040,8 +15009,8 @@ function Dc(e, t, n) {
15040
15009
  this.removeHits = function(x) {
15041
15010
  ce(fr(".djs-hit", x), ln);
15042
15011
  }, this.createDefaultHit = function(x, C) {
15043
- var T = x.waypoints, A = x.isFrame, P;
15044
- return T ? this.createWaypointsHit(C, T) : (P = A ? "stroke" : "all", this.createBoxHit(C, P, {
15012
+ var T = x.waypoints, M = x.isFrame, P;
15013
+ return T ? this.createWaypointsHit(C, T) : (P = M ? "stroke" : "all", this.createBoxHit(C, P, {
15045
15014
  width: x.width,
15046
15015
  height: x.height
15047
15016
  }));
@@ -15053,8 +15022,8 @@ function Dc(e, t, n) {
15053
15022
  x: 0,
15054
15023
  y: 0
15055
15024
  }, T);
15056
- var A = Ue("rect");
15057
- return w(A, C), Le(A, T), S(x, A), A;
15025
+ var M = Ue("rect");
15026
+ return w(M, C), Le(M, T), S(x, M), M;
15058
15027
  }, this.updateDefaultHit = function(x, C) {
15059
15028
  var T = Gt(".djs-hit", C);
15060
15029
  if (T)
@@ -15154,7 +15123,7 @@ function Fc(e, t, n, a) {
15154
15123
  i && t.select(i);
15155
15124
  }), e.on("shape.move.end", 500, function(o) {
15156
15125
  var i = o.previousSelection || [], r = a.get(o.context.shape.id);
15157
- An(i, function(l) {
15126
+ Mn(i, function(l) {
15158
15127
  return r.id === l.id;
15159
15128
  }) || t.select(r);
15160
15129
  }), e.on("element.click", function(o) {
@@ -15252,7 +15221,7 @@ function Yc(e, t, n, a) {
15252
15221
  b.length && n.select(b);
15253
15222
  }
15254
15223
  function s(m, b) {
15255
- var R = i.payload, w = i.displacement, S = i.globalStart, x = Ya(m), C = Va(x, S), T = i.localStart, A = r(x), P = Va(A, T);
15224
+ var R = i.payload, w = i.displacement, S = i.globalStart, x = Ya(m), C = Va(x, S), T = i.localStart, M = r(x), P = Va(M, T);
15256
15225
  if (!i.active && (b || y0(C) > i.threshold)) {
15257
15226
  if ($e(R, {
15258
15227
  x: Da(T.x + w.x),
@@ -15263,8 +15232,8 @@ function Yc(e, t, n, a) {
15263
15232
  i.active = !0, i.keepSelection || (R.previousSelection = n.get(), n.select(null)), i.cursor && Kr(i.cursor), t.addMarker(t.getRootElement(), Jl);
15264
15233
  }
15265
15234
  nr(m), i.active && ($e(R, {
15266
- x: Da(A.x + w.x),
15267
- y: Da(A.y + w.y),
15235
+ x: Da(M.x + w.x),
15236
+ y: Da(M.y + w.y),
15268
15237
  dx: Da(P.x),
15269
15238
  dy: Da(P.y)
15270
15239
  }, { originalEvent: m }), l("move"));
@@ -15307,8 +15276,8 @@ function Yc(e, t, n, a) {
15307
15276
  }
15308
15277
  function y(m, b, R, w) {
15309
15278
  i && v(!1), typeof b == "string" && (w = R, R = b, b = null), w = $e({}, o, w || {});
15310
- var S = w.data || {}, x, C, T, A, P;
15311
- w.trapClick ? A = d : A = u, m ? (x = Ja(m) || m, C = Ya(m), nr(m), x.type === "dragstart" && ga(x)) : (x = null, C = {
15279
+ var S = w.data || {}, x, C, T, M, P;
15280
+ w.trapClick ? M = d : M = u, m ? (x = Ja(m) || m, C = Ya(m), nr(m), x.type === "dragstart" && ga(x)) : (x = null, C = {
15312
15281
  x: 0,
15313
15282
  y: 0
15314
15283
  }), T = r(C), b || (b = T), P = v0(x), i = $e({
@@ -15319,7 +15288,7 @@ function Yc(e, t, n, a) {
15319
15288
  displacement: Va(b, T),
15320
15289
  localStart: T,
15321
15290
  isTouch: P
15322
- }, w), w.manual || (P ? (rt.bind(document, "touchstart", h, !0), rt.bind(document, "touchcancel", v, !0), rt.bind(document, "touchmove", s, !0), rt.bind(document, "touchend", u, !0)) : (rt.bind(document, "mousemove", s), rt.bind(document, "dragstart", ga), rt.bind(document, "selectstart", ga), rt.bind(document, "mousedown", A, !0), rt.bind(document, "mouseup", A, !0)), rt.bind(document, "keyup", f), e.on("element.hover", p), e.on("element.out", g)), l("init"), w.autoActivate && s(m, !0);
15291
+ }, w), w.manual || (P ? (rt.bind(document, "touchstart", h, !0), rt.bind(document, "touchcancel", v, !0), rt.bind(document, "touchmove", s, !0), rt.bind(document, "touchend", u, !0)) : (rt.bind(document, "mousemove", s), rt.bind(document, "dragstart", ga), rt.bind(document, "selectstart", ga), rt.bind(document, "mousedown", M, !0), rt.bind(document, "mouseup", M, !0)), rt.bind(document, "keyup", f), e.on("element.hover", p), e.on("element.out", g)), l("init"), w.autoActivate && s(m, !0);
15323
15292
  }
15324
15293
  e.on("diagram.destroy", v), this.init = y, this.move = s, this.hover = p, this.out = g, this.end = u, this.cancel = v, this.context = function() {
15325
15294
  return i;
@@ -15446,7 +15415,7 @@ var Xa = {
15446
15415
  };
15447
15416
  function k0(e) {
15448
15417
  return un(e, function(t) {
15449
- return !An(e, function(n) {
15418
+ return !Mn(e, function(n) {
15450
15419
  return n !== t && Kc(t, n);
15451
15420
  });
15452
15421
  });
@@ -15516,14 +15485,14 @@ function Pn(e, t) {
15516
15485
  width: o - n
15517
15486
  };
15518
15487
  }
15519
- function A0(e, t) {
15488
+ function M0(e, t) {
15520
15489
  var n = {};
15521
15490
  return ce(e, function(a) {
15522
15491
  var o = a;
15523
15492
  o.waypoints && (o = Pn(o)), !It(t.y) && o.x > t.x && (n[a.id] = a), !It(t.x) && o.y > t.y && (n[a.id] = a), o.x > t.x && o.y > t.y && (It(t.width) && It(t.height) && o.width + o.x < t.width + t.x && o.height + o.y < t.height + t.y || !It(t.width) || !It(t.height)) && (n[a.id] = a);
15524
15493
  }), n;
15525
15494
  }
15526
- function M0(e) {
15495
+ function A0(e) {
15527
15496
  return "waypoints" in e ? "connection" : "x" in e ? "shape" : "root";
15528
15497
  }
15529
15498
  function j0(e) {
@@ -15546,7 +15515,7 @@ function Jc(e, t, n, a, o) {
15546
15515
  var m = y.labelTarget;
15547
15516
  return !y.parent && !(Ka(y) && c.indexOf(m) !== -1);
15548
15517
  });
15549
- var h = An(c, function(y) {
15518
+ var h = Mn(c, function(y) {
15550
15519
  return !Xt(y);
15551
15520
  }), p = !1, g = !1, v = !1;
15552
15521
  ts(c) && (p = o.allowed("shape.attach", {
@@ -15617,7 +15586,7 @@ function Jc(e, t, n, a, o) {
15617
15586
  attach: g,
15618
15587
  connection: v === !0 ? {} : v,
15619
15588
  connectionTarget: _.connectionTarget
15620
- }) : (d = a.createElements(d, y, h, $e({}, _, { attach: g })), f = An(d, function(m) {
15589
+ }) : (d = a.createElements(d, y, h, $e({}, _, { attach: g })), f = Mn(d, function(m) {
15621
15590
  return !Xt(m);
15622
15591
  })), $e(s, {
15623
15592
  elements: d,
@@ -15637,7 +15606,7 @@ function Jc(e, t, n, a, o) {
15637
15606
  });
15638
15607
  }), this.start = function(c, s, u) {
15639
15608
  st(s) || (s = [s]);
15640
- var f = An(s, function(h) {
15609
+ var f = Mn(s, function(h) {
15641
15610
  return !Xt(h);
15642
15611
  });
15643
15612
  if (f) {
@@ -16093,8 +16062,8 @@ function Zc(e, t, n, a, o, i, r, l, c, s) {
16093
16062
  }
16094
16063
  var C = x - S;
16095
16064
  if (Xn(C) > u) {
16096
- var T = x, A = l, P = c;
16097
- x = S + u * (r && x > S ? 1 : -1), l = R + n * jt.cos(x), c = w + a * jt.sin(x), d = Zc(l, c, n, a, o, 0, r, A, P, [
16065
+ var T = x, M = l, P = c;
16066
+ x = S + u * (r && x > S ? 1 : -1), l = R + n * jt.cos(x), c = w + a * jt.sin(x), d = Zc(l, c, n, a, o, 0, r, M, P, [
16098
16067
  x,
16099
16068
  T,
16100
16069
  R,
@@ -16102,7 +16071,7 @@ function Zc(e, t, n, a, o, i, r, l, c, s) {
16102
16071
  ]);
16103
16072
  }
16104
16073
  C = x - S;
16105
- var H = jt.cos(S), D = jt.sin(S), M = jt.cos(x), E = jt.sin(x), N = jt.tan(C / 4), G = 4 / 3 * n * N, ie = 4 / 3 * a * N, ye = [e, t], Y = [e + G * D, t - ie * H], q = [l + G * E, c - ie * M], L = [l, c];
16074
+ var H = jt.cos(S), D = jt.sin(S), A = jt.cos(x), E = jt.sin(x), N = jt.tan(C / 4), G = 4 / 3 * n * N, ie = 4 / 3 * a * N, ye = [e, t], Y = [e + G * D, t - ie * H], q = [l + G * E, c - ie * A], L = [l, c];
16106
16075
  if (Y[0] = 2 * ye[0] - Y[0], Y[1] = 2 * ye[1] - Y[1], s) return [
16107
16076
  Y,
16108
16077
  q,
@@ -16309,12 +16278,12 @@ function eu(e, t, n, a) {
16309
16278
  }
16310
16279
  e.on("connect.hover", function(r) {
16311
16280
  var l = r.context, c = l.start, s = r.hover, u;
16312
- if (l.hover = s, u = l.canExecute = o(c, s), !Ml(u)) {
16281
+ if (l.hover = s, u = l.canExecute = o(c, s), !Al(u)) {
16313
16282
  if (u !== !1) {
16314
16283
  l.source = c, l.target = s;
16315
16284
  return;
16316
16285
  }
16317
- u = l.canExecute = i(c, s), !Ml(u) && u !== !1 && (l.source = s, l.target = c);
16286
+ u = l.canExecute = i(c, s), !Al(u) && u !== !1 && (l.source = s, l.target = c);
16318
16287
  }
16319
16288
  }), e.on(["connect.out", "connect.cleanup"], function(r) {
16320
16289
  var l = r.context;
@@ -16693,7 +16662,7 @@ function yw(e, t) {
16693
16662
  };
16694
16663
  }
16695
16664
  Kt.prototype.on = function(e, t, n, a, o, i) {
16696
- if ((Mn(t) || It(t)) && (i = o, o = a, a = n, n = t, t = null), Mn(n) && (i = o, o = a, a = n, n = vw), dn(o) && (i = o, o = !1), !Mn(a)) throw new Error("handlerFn must be a function");
16665
+ if ((An(t) || It(t)) && (i = o, o = a, a = n, n = t, t = null), An(n) && (i = o, o = a, a = n, n = vw), dn(o) && (i = o, o = !1), !An(a)) throw new Error("handlerFn must be a function");
16697
16666
  st(e) || (e = [e]);
16698
16667
  var r = this._eventBus;
16699
16668
  ce(e, function(l) {
@@ -16718,7 +16687,7 @@ Kt.prototype.revert = Fn("revert");
16718
16687
  Kt.prototype.reverted = Fn("reverted");
16719
16688
  function Fn(e) {
16720
16689
  return function(n, a, o, i, r) {
16721
- (Mn(n) || It(n)) && (r = i, i = o, o = a, a = n, n = null), this.on(n, e, a, o, i, r);
16690
+ (An(n) || It(n)) && (r = i, i = o, o = a, a = n, n = null), this.on(n, e, a, o, i, r);
16722
16691
  };
16723
16692
  }
16724
16693
  var mw = 250, gs = 1400;
@@ -17108,14 +17077,14 @@ function Lo(e) {
17108
17077
  }
17109
17078
  Ea(Lo, ia);
17110
17079
  Lo.$inject = ["canvas"];
17111
- var Aw = ia.prototype.execute;
17080
+ var Mw = ia.prototype.execute;
17112
17081
  Lo.prototype.execute = function(e) {
17113
17082
  var t = e.shape;
17114
- return jw(t), t.labelTarget = e.labelTarget, Aw.call(this, e);
17083
+ return jw(t), t.labelTarget = e.labelTarget, Mw.call(this, e);
17115
17084
  };
17116
- var Mw = ia.prototype.revert;
17085
+ var Aw = ia.prototype.revert;
17117
17086
  Lo.prototype.revert = function(e) {
17118
- return e.shape.labelTarget = null, Mw.call(this, e);
17087
+ return e.shape.labelTarget = null, Aw.call(this, e);
17119
17088
  };
17120
17089
  function jw(e) {
17121
17090
  ["width", "height"].forEach(function(t) {
@@ -17347,11 +17316,11 @@ Ui.prototype.postExecute = function(e) {
17347
17316
  var t = e.hints, n;
17348
17317
  t && t.primaryShape && (n = t.primaryShape, t.oldParent = n.parent), this._helper.moveClosure(e.closure, e.delta, e.newParent, e.newHost, n);
17349
17318
  };
17350
- function Aa(e) {
17319
+ function Ma(e) {
17351
17320
  this._modeling = e, this._helper = new $o(e);
17352
17321
  }
17353
- Aa.$inject = ["modeling"];
17354
- Aa.prototype.execute = function(e) {
17322
+ Ma.$inject = ["modeling"];
17323
+ Ma.prototype.execute = function(e) {
17355
17324
  var t = e.shape, n = e.delta, a = e.newParent || t.parent, o = e.newParentIndex, i = t.parent;
17356
17325
  return e.oldBounds = wi(t, [
17357
17326
  "x",
@@ -17364,7 +17333,7 @@ Aa.prototype.execute = function(e) {
17364
17333
  y: t.y + n.y
17365
17334
  }), t;
17366
17335
  };
17367
- Aa.prototype.postExecute = function(e) {
17336
+ Ma.prototype.postExecute = function(e) {
17368
17337
  var t = e.shape, n = e.delta, a = e.hints, o = this._modeling;
17369
17338
  a.layout !== !1 && (ce(t.incoming, function(i) {
17370
17339
  o.layoutConnection(i, { connectionEnd: ul(i, t, n) });
@@ -17372,7 +17341,7 @@ Aa.prototype.postExecute = function(e) {
17372
17341
  o.layoutConnection(i, { connectionStart: cl(i, t, n) });
17373
17342
  })), a.recurse !== !1 && this.moveChildren(e);
17374
17343
  };
17375
- Aa.prototype.revert = function(e) {
17344
+ Ma.prototype.revert = function(e) {
17376
17345
  var t = e.shape, n = e.oldParent, a = e.oldParentIndex, o = e.delta;
17377
17346
  return aa(n.children, t, a), $e(t, {
17378
17347
  parent: n,
@@ -17380,11 +17349,11 @@ Aa.prototype.revert = function(e) {
17380
17349
  y: t.y - o.y
17381
17350
  }), t;
17382
17351
  };
17383
- Aa.prototype.moveChildren = function(e) {
17352
+ Ma.prototype.moveChildren = function(e) {
17384
17353
  var t = e.delta, n = e.shape;
17385
17354
  this._helper.moveRecursive(n.children, t, null);
17386
17355
  };
17387
- Aa.prototype.getNewParent = function(e) {
17356
+ Ma.prototype.getNewParent = function(e) {
17388
17357
  return e.newParent || e.shape.parent;
17389
17358
  };
17390
17359
  function Fo(e) {
@@ -17707,7 +17676,7 @@ at.prototype.getHandlers = function() {
17707
17676
  "shape.append": Di,
17708
17677
  "shape.create": ia,
17709
17678
  "shape.delete": Do,
17710
- "shape.move": Aa,
17679
+ "shape.move": Ma,
17711
17680
  "shape.resize": Vo,
17712
17681
  "shape.replace": Vn,
17713
17682
  "shape.toggleCollapse": Yi,
@@ -18182,7 +18151,7 @@ function Xw(e, t, n) {
18182
18151
  }
18183
18152
  function vl(e, t, n) {
18184
18153
  if (n = n || "h:h", !r_(n)) throw new Error("unknown directions: <" + n + ">: must be specified as <start>:<end> with start/end in { h,v,t,r,b,l }");
18185
- if (Au(n)) {
18154
+ if (Mu(n)) {
18186
18155
  var a = Jw(e, t, n), o = Gw(e, t, n), i = qw(a, o);
18187
18156
  return [].concat(a.waypoints, i.waypoints, o.waypoints);
18188
18157
  }
@@ -18190,7 +18159,7 @@ function vl(e, t, n) {
18190
18159
  }
18191
18160
  function Zw(e, t, n) {
18192
18161
  var a = vl(e, t, n);
18193
- return a.unshift(e), a.push(t), Mu(a);
18162
+ return a.unshift(e), a.push(t), Au(a);
18194
18163
  }
18195
18164
  function Qw(e, t, n, a, o) {
18196
18165
  var i = uf(o && o.preferredLayouts || [], "straight")[0] || "h:h", r = ea(e, t, Uw[i] || 0), l = i_(r, i);
@@ -18245,7 +18214,7 @@ function o_(e, t, n, a) {
18245
18214
  }
18246
18215
  function yl(e, t, n, a) {
18247
18216
  function o(u) {
18248
- return u.length < 3 ? !0 : u.length > 4 ? !1 : !!An(u, function(f, d) {
18217
+ return u.length < 3 ? !0 : u.length > 4 ? !1 : !!Mn(u, function(f, d) {
18249
18218
  var h = u[d - 1];
18250
18219
  return h && Oo(f, h) < 3;
18251
18220
  });
@@ -18278,7 +18247,7 @@ function yl(e, t, n, a) {
18278
18247
  return c[0] = n, c[1] = i(c[1], l, n), s = r(c, e, t), s !== c && (c = yl(e, t, n, s)), c && qn(c) ? null : c;
18279
18248
  }
18280
18249
  function i_(e, t) {
18281
- if (Au(t)) return t;
18250
+ if (Mu(t)) return t;
18282
18251
  switch (e) {
18283
18252
  case "intersect":
18284
18253
  return "t:t";
@@ -18295,7 +18264,7 @@ function i_(e, t) {
18295
18264
  function r_(e) {
18296
18265
  return e && /^h|v|t|r|b|l:h|v|t|r|b|l$/.test(e);
18297
18266
  }
18298
- function Au(e) {
18267
+ function Mu(e) {
18299
18268
  return e && /t|r|b|l/.test(e);
18300
18269
  }
18301
18270
  function l_(e) {
@@ -18333,7 +18302,7 @@ function Ts(e, t, n, a) {
18333
18302
  };
18334
18303
  throw new Error("unexpected dockingDirection: <" + n + ">");
18335
18304
  }
18336
- function Mu(e) {
18305
+ function Au(e) {
18337
18306
  return e.reduce(function(t, n, a) {
18338
18307
  var o = t[t.length - 1], i = e[a + 1];
18339
18308
  return Xr(o, i, n, 0) || t.push(n), t;
@@ -18347,7 +18316,7 @@ ml.prototype.layoutConnection = function(e, t) {
18347
18316
  t || (t = {});
18348
18317
  const n = t.source || e.source, a = t.target || e.target, o = t.waypoints || e.waypoints;
18349
18318
  let { connectionStart: i, connectionEnd: r } = t, l, c;
18350
- return r === void 0 && (i = li(o && o[0], n), r = li(o && o[o.length - 1], a)), i || (i = li(o && o[0], n)), r || (r = li(o && o[o.length - 1], a)), va(e, "myline") && (n === a ? l = { preferredLayouts: s_(n, e) } : va(n, "gatewayAnd") || va(n, "gatewayXor") || va(n, "gatewayInclusive") ? l = { preferredLayouts: ["v:h"] } : va(a, "gatewayAnd") || va(a, "gatewayXor") || va(a, "gatewayInclusive") ? l = { preferredLayouts: ["h:v"] } : l = { preferredLayouts: ["h:h"] }), l && (l = Ct(l, t), c = Mu(e_(n, a, i, r, o, l))), c || [i, r];
18319
+ return r === void 0 && (i = li(o && o[0], n), r = li(o && o[o.length - 1], a)), i || (i = li(o && o[0], n)), r || (r = li(o && o[o.length - 1], a)), va(e, "myline") && (n === a ? l = { preferredLayouts: s_(n, e) } : va(n, "gatewayAnd") || va(n, "gatewayXor") || va(n, "gatewayInclusive") ? l = { preferredLayouts: ["v:h"] } : va(a, "gatewayAnd") || va(a, "gatewayXor") || va(a, "gatewayInclusive") ? l = { preferredLayouts: ["h:v"] } : l = { preferredLayouts: ["h:h"] }), l && (l = Ct(l, t), c = Au(e_(n, a, i, r, o, l))), c || [i, r];
18351
18320
  };
18352
18321
  function li(e, t) {
18353
18322
  return e ? e.original || e : Et(t);
@@ -18356,7 +18325,7 @@ function s_(e, t) {
18356
18325
  const { waypoints: n } = t, a = n && n.length && ea(n[0], e);
18357
18326
  return a === "top" ? ["t:r"] : a === "right" ? ["r:b"] : a === "left" ? ["l:t"] : ["b:l"];
18358
18327
  }
18359
- function As(e) {
18328
+ function Ms(e) {
18360
18329
  return $e({ original: e.point.original || e.point }, e.actual);
18361
18330
  }
18362
18331
  function la(e, t) {
@@ -18366,7 +18335,7 @@ la.$inject = ["elementRegistry", "graphicsFactory"];
18366
18335
  la.prototype.getCroppedWaypoints = function(e, t, n) {
18367
18336
  t = t || e.source, n = n || e.target;
18368
18337
  var a = this.getDockingPoint(e, t, !0), o = this.getDockingPoint(e, n), i = e.waypoints.slice(a.idx + 1, o.idx);
18369
- return i.unshift(As(a)), i.push(As(o)), i;
18338
+ return i.unshift(Ms(a)), i.push(Ms(o)), i;
18370
18339
  };
18371
18340
  la.prototype.getDockingPoint = function(e, t, n) {
18372
18341
  var a = e.waypoints, o = n ? 0 : a.length - 1, i = a[o];
@@ -18401,7 +18370,7 @@ var ju = {
18401
18370
  elementFactory: ["type", Ta],
18402
18371
  connectionDocking: ["type", la]
18403
18372
  }, c_ = 1e3;
18404
- function Ma(e, t) {
18373
+ function Aa(e, t) {
18405
18374
  var n = this;
18406
18375
  t = t || c_, e.on(["render.shape", "render.connection"], t, function(a, o) {
18407
18376
  var i = a.type, r = o.element, l = o.gfx, c = o.attrs;
@@ -18410,15 +18379,15 @@ function Ma(e, t) {
18410
18379
  if (n.canRender(o)) return a.type === "render.getShapePath" ? n.getShapePath(o) : n.getConnectionPath(o);
18411
18380
  });
18412
18381
  }
18413
- Ma.prototype.canRender = function(e) {
18382
+ Aa.prototype.canRender = function(e) {
18414
18383
  };
18415
- Ma.prototype.drawShape = function(e, t) {
18384
+ Aa.prototype.drawShape = function(e, t) {
18416
18385
  };
18417
- Ma.prototype.drawConnection = function(e, t) {
18386
+ Aa.prototype.drawConnection = function(e, t) {
18418
18387
  };
18419
- Ma.prototype.getShapePath = function(e) {
18388
+ Aa.prototype.getShapePath = function(e) {
18420
18389
  };
18421
- Ma.prototype.getConnectionPath = function(e) {
18390
+ Aa.prototype.getConnectionPath = function(e) {
18422
18391
  };
18423
18392
  function u_(e) {
18424
18393
  return e.businessObject;
@@ -18593,26 +18562,26 @@ function p_(e) {
18593
18562
  }
18594
18563
  var Er = 10, or = 0.95, Jn = (e, t) => e.type === t;
18595
18564
  function ja(e, t, n, a, o, i, r) {
18596
- Ma.call(this, e, r);
18565
+ Aa.call(this, e, r);
18597
18566
  const l = "var(--j-color-bg-container)", c = "var(--j-color-text)", s = {};
18598
- Object.keys(i.palette).forEach((M) => {
18599
- const E = i.palette[M];
18567
+ Object.keys(i.palette).forEach((A) => {
18568
+ const E = i.palette[A];
18600
18569
  s[E.type] = E.options;
18601
18570
  });
18602
18571
  const { computeStyle: u } = t;
18603
- function f(M) {
18604
- return D[M];
18572
+ function f(A) {
18573
+ return D[A];
18605
18574
  }
18606
- function d(M) {
18607
- return t.computeStyle(M, ["no-fill"], {
18575
+ function d(A) {
18576
+ return t.computeStyle(A, ["no-fill"], {
18608
18577
  strokeLinecap: "round",
18609
18578
  strokeLinejoin: "round",
18610
18579
  stroke: c,
18611
18580
  strokeWidth: 2
18612
18581
  });
18613
18582
  }
18614
- function h(M) {
18615
- return t.computeStyle(M, {
18583
+ function h(A) {
18584
+ return t.computeStyle(A, {
18616
18585
  strokeLinecap: "round",
18617
18586
  strokeLinejoin: "round",
18618
18587
  stroke: c,
@@ -18620,15 +18589,15 @@ function ja(e, t, n, a, o, i, r) {
18620
18589
  fill: "white"
18621
18590
  });
18622
18591
  }
18623
- function p(M, E, N, G) {
18592
+ function p(A, E, N, G) {
18624
18593
  N = d(N);
18625
18594
  const ie = Ur(E, N, G);
18626
- return qe(M, ie), ie;
18595
+ return qe(A, ie), ie;
18627
18596
  }
18628
- function g(M, E, N) {
18629
- return p(M, E, N, 5);
18597
+ function g(A, E, N) {
18598
+ return p(A, E, N, 5);
18630
18599
  }
18631
- function v(M, E, N, G, ie) {
18600
+ function v(A, E, N, G, ie) {
18632
18601
  Cs(G) && (ie = G, G = 0), G = G || 0, ie = u(ie, {
18633
18602
  stroke: c,
18634
18603
  strokeWidth: 2,
@@ -18639,9 +18608,9 @@ function ja(e, t, n, a, o, i, r) {
18639
18608
  cx: ye,
18640
18609
  cy: Y,
18641
18610
  r: Math.round((E + N) / 4 - G)
18642
- }), Le(q, ie), qe(M, q), q;
18611
+ }), Le(q, ie), qe(A, q), q;
18643
18612
  }
18644
- function _(M, E, N, G, ie, ye) {
18613
+ function _(A, E, N, G, ie, ye) {
18645
18614
  Cs(ie) && (ye = ie, ie = 0), ie = ie || 0, ye = u(ye, {
18646
18615
  stroke: c,
18647
18616
  strokeWidth: 2,
@@ -18655,17 +18624,17 @@ function ja(e, t, n, a, o, i, r) {
18655
18624
  height: N - ie * 2,
18656
18625
  rx: G,
18657
18626
  ry: G
18658
- }), Le(Y, ye), qe(M, Y), Y;
18627
+ }), Le(Y, ye), qe(A, Y), Y;
18659
18628
  }
18660
- function y(M, E, N) {
18629
+ function y(A, E, N) {
18661
18630
  N = u(N, ["no-fill"], {
18662
18631
  strokeWidth: 2,
18663
18632
  stroke: c
18664
18633
  });
18665
18634
  const G = Ue("path");
18666
- return Le(G, { d: E }), Le(G, N), qe(M, G), G;
18635
+ return Le(G, { d: E }), Le(G, N), qe(A, G), G;
18667
18636
  }
18668
- function m(M, E, N, G) {
18637
+ function m(A, E, N, G) {
18669
18638
  const ie = E / 2, ye = N / 2, Y = [
18670
18639
  {
18671
18640
  x: ie,
@@ -18690,38 +18659,38 @@ function ja(e, t, n, a, o, i, r) {
18690
18659
  fill: l
18691
18660
  });
18692
18661
  const q = Ue("polygon");
18693
- return Le(q, { points: Y }), Le(q, G), qe(M, q), q;
18662
+ return Le(q, { points: Y }), Le(q, G), qe(A, q), q;
18694
18663
  }
18695
- function b(M, E, N, G) {
18696
- return y(E, N, Ct({ "data-marker": M }, G));
18664
+ function b(A, E, N, G) {
18665
+ return y(E, N, Ct({ "data-marker": A }, G));
18697
18666
  }
18698
- function R(M, E, N) {
18667
+ function R(A, E, N) {
18699
18668
  N = Ct({ size: { width: 100 } }, N);
18700
18669
  const G = o.createText(E || "", N);
18701
- return yt(G).add("djs-label"), qe(M, G), G;
18670
+ return yt(G).add("djs-label"), qe(A, G), G;
18702
18671
  }
18703
- function w(M, E, N) {
18704
- return R(M, u_(E).name, {
18672
+ function w(A, E, N) {
18673
+ return R(A, u_(E).name, {
18705
18674
  box: E,
18706
18675
  align: N,
18707
18676
  padding: 5,
18708
18677
  style: { fill: Rt(E, c) }
18709
18678
  });
18710
18679
  }
18711
- function S(M, E) {
18680
+ function S(A, E) {
18712
18681
  const N = {
18713
18682
  width: 90,
18714
18683
  height: 30,
18715
18684
  x: E.width / 2 + E.x,
18716
18685
  y: E.height / 2 + E.y
18717
18686
  };
18718
- return R(M, ki(E), {
18687
+ return R(A, ki(E), {
18719
18688
  box: N,
18720
18689
  fitBox: !0,
18721
18690
  style: Ct({}, o.getExternalStyle(), { fill: Rt(E, c) })
18722
18691
  });
18723
18692
  }
18724
- function x(M, E, N) {
18693
+ function x(A, E, N) {
18725
18694
  const G = N && N.indexOf("SubProcessMarker") !== -1;
18726
18695
  let ie;
18727
18696
  G ? ie = {
@@ -18737,18 +18706,18 @@ function ja(e, t, n, a, o, i, r) {
18737
18706
  loop: 0,
18738
18707
  adhoc: 10
18739
18708
  }, zw(N, (ye) => {
18740
- f(ye)(M, E, ie);
18709
+ f(ye)(A, E, ie);
18741
18710
  });
18742
18711
  }
18743
- function C(M) {
18744
- return M.replace(/[^0-9a-zA-z]+/g, "_");
18712
+ function C(A) {
18713
+ return A.replace(/[^0-9a-zA-z]+/g, "_");
18745
18714
  }
18746
- function T(M, E) {
18715
+ function T(A, E) {
18747
18716
  const { ref: N = {
18748
18717
  x: 0,
18749
18718
  y: 0
18750
18719
  }, scale: G = 1, element: ie, parentGfx: ye = a._svg } = E, Y = Ue("marker", {
18751
- id: M,
18720
+ id: A,
18752
18721
  viewBox: "0 0 20 20",
18753
18722
  refX: N.x,
18754
18723
  refY: N.y,
@@ -18760,11 +18729,11 @@ function ja(e, t, n, a, o, i, r) {
18760
18729
  let q = Gt(":scope > defs", ye);
18761
18730
  q || (q = Ue("defs"), qe(ye, q)), qe(q, Y);
18762
18731
  }
18763
- function A(M, E, N, G) {
18732
+ function M(A, E, N, G) {
18764
18733
  const ie = E + "-" + C(N) + "-" + C(G) + "-" + lu();
18765
- return P(M, ie, E, N, G), "url(#" + ie + ")";
18734
+ return P(A, ie, E, N, G), "url(#" + ie + ")";
18766
18735
  }
18767
- function P(M, E, N, G, ie) {
18736
+ function P(A, E, N, G, ie) {
18768
18737
  N === "sequenceflow-end" && T(E, {
18769
18738
  element: Ue("path", {
18770
18739
  d: "M 1 5 L 11 10 L 1 15 Z",
@@ -18779,7 +18748,7 @@ function ja(e, t, n, a, o, i, r) {
18779
18748
  y: 10
18780
18749
  },
18781
18750
  scale: 0.5,
18782
- parentGfx: M
18751
+ parentGfx: A
18783
18752
  }), N === "messageflow-start" && T(E, {
18784
18753
  element: Ue("circle", {
18785
18754
  cx: 6,
@@ -18796,7 +18765,7 @@ function ja(e, t, n, a, o, i, r) {
18796
18765
  x: 6,
18797
18766
  y: 6
18798
18767
  },
18799
- parentGfx: M
18768
+ parentGfx: A
18800
18769
  }), N === "messageflow-end" && T(E, {
18801
18770
  element: Ue("path", {
18802
18771
  d: "m 1 5 l 0 -3 l 7 3 l -7 3 z",
@@ -18811,7 +18780,7 @@ function ja(e, t, n, a, o, i, r) {
18811
18780
  x: 8.5,
18812
18781
  y: 5
18813
18782
  },
18814
- parentGfx: M
18783
+ parentGfx: A
18815
18784
  }), N === "association-start" && T(E, {
18816
18785
  element: Ue("path", {
18817
18786
  d: "M 11 5 L 1 10 L 11 15",
@@ -18827,7 +18796,7 @@ function ja(e, t, n, a, o, i, r) {
18827
18796
  y: 10
18828
18797
  },
18829
18798
  scale: 0.5,
18830
- parentGfx: M
18799
+ parentGfx: A
18831
18800
  }), N === "association-end" && T(E, {
18832
18801
  element: Ue("path", {
18833
18802
  d: "M 1 5 L 11 10 L 1 15",
@@ -18843,7 +18812,7 @@ function ja(e, t, n, a, o, i, r) {
18843
18812
  y: 10
18844
18813
  },
18845
18814
  scale: 0.5,
18846
- parentGfx: M
18815
+ parentGfx: A
18847
18816
  }), N === "conditional-flow-marker" && T(E, {
18848
18817
  element: Ue("path", {
18849
18818
  d: "M 0 10 L 8 6 L 16 10 L 8 14 Z",
@@ -18857,7 +18826,7 @@ function ja(e, t, n, a, o, i, r) {
18857
18826
  y: 10
18858
18827
  },
18859
18828
  scale: 0.5,
18860
- parentGfx: M
18829
+ parentGfx: A
18861
18830
  }), N === "conditional-default-flow-marker" && T(E, {
18862
18831
  element: Ue("path", {
18863
18832
  d: "M 6 4 L 10 16",
@@ -18871,12 +18840,12 @@ function ja(e, t, n, a, o, i, r) {
18871
18840
  y: 10
18872
18841
  },
18873
18842
  scale: 0.5,
18874
- parentGfx: M
18843
+ parentGfx: A
18875
18844
  });
18876
18845
  }
18877
- function H(M, E, N, G) {
18846
+ function H(A, E, N, G) {
18878
18847
  const ie = s[E.type]?.icon || E.icon;
18879
- ie && y(M, n.getScaledPath(ie, { abspos: {
18848
+ ie && y(A, n.getScaledPath(ie, { abspos: {
18880
18849
  x: N,
18881
18850
  y: G
18882
18851
  } }), {
@@ -18885,37 +18854,37 @@ function ja(e, t, n, a, o, i, r) {
18885
18854
  });
18886
18855
  }
18887
18856
  const D = {
18888
- event(M, E, N) {
18889
- return "fillOpacity" in N || (N.fillOpacity = or), v(M, E.width, E.height, N);
18857
+ event(A, E, N) {
18858
+ return "fillOpacity" in N || (N.fillOpacity = or), v(A, E.width, E.height, N);
18890
18859
  },
18891
- startEvent(M, E) {
18860
+ startEvent(A, E) {
18892
18861
  const N = {
18893
18862
  fill: mn(E, s.startEvent?.fill || E.fill),
18894
18863
  stroke: Rt(E, s.startEvent?.stroke || E.stroke),
18895
18864
  strokeWidth: si(E, s.startEvent?.strokeWidth || E.strokeWidth)
18896
- }, G = f("event")(M, E, N);
18897
- return H(M, E, 18, 18), G;
18865
+ }, G = f("event")(A, E, N);
18866
+ return H(A, E, 18, 18), G;
18898
18867
  },
18899
- endEvent(M, E) {
18900
- const N = f("event")(M, E, {
18868
+ endEvent(A, E) {
18869
+ const N = f("event")(A, E, {
18901
18870
  strokeWidth: si(E, s.endEvent?.strokeWidth || E.strokeWidth || 4),
18902
18871
  fill: mn(E, s.endEvent?.fill || E.fill),
18903
18872
  stroke: Rt(E, s.endEvent?.stroke || E.stroke)
18904
18873
  });
18905
- return H(M, E, 18, 18), N;
18874
+ return H(A, E, 18, 18), N;
18906
18875
  },
18907
- gateway(M, E) {
18876
+ gateway(A, E) {
18908
18877
  const N = {
18909
18878
  fillOpacity: or,
18910
18879
  strokeWidth: si(E, s[E.type]?.strokeWidth || E.strokeWidth || 4),
18911
18880
  fill: mn(E, s[E.type]?.fill || E.fill),
18912
18881
  stroke: Rt(E, s[E.type]?.stroke || E.stroke)
18913
18882
  };
18914
- return m(M, E.width, E.height, N);
18883
+ return m(A, E.width, E.height, N);
18915
18884
  },
18916
- gatewayAnd(M, E) {
18917
- const N = f("gateway")(M, E);
18918
- return y(M, n.getScaledPath("GATEWAY_PARALLEL", {
18885
+ gatewayAnd(A, E) {
18886
+ const N = f("gateway")(A, E);
18887
+ return y(A, n.getScaledPath("GATEWAY_PARALLEL", {
18919
18888
  xScaleFactor: 0.4,
18920
18889
  yScaleFactor: 0.4,
18921
18890
  containerWidth: s[E.type]?.width || E.width,
@@ -18930,9 +18899,9 @@ function ja(e, t, n, a, o, i, r) {
18930
18899
  stroke: Rt(E, s[E.type]?.iconFill || E.iconFill)
18931
18900
  }), N;
18932
18901
  },
18933
- gatewayXor(M, E) {
18934
- const N = f("gateway")(M, E);
18935
- return y(M, n.getScaledPath("GATEWAY_EXCLUSIVE", {
18902
+ gatewayXor(A, E) {
18903
+ const N = f("gateway")(A, E);
18904
+ return y(A, n.getScaledPath("GATEWAY_EXCLUSIVE", {
18936
18905
  xScaleFactor: 0.4,
18937
18906
  yScaleFactor: 0.4,
18938
18907
  containerWidth: E.width,
@@ -18947,41 +18916,41 @@ function ja(e, t, n, a, o, i, r) {
18947
18916
  stroke: Rt(E, s[E.type]?.iconFill || E.iconFill)
18948
18917
  }), N;
18949
18918
  },
18950
- gatewayInclusive(M, E) {
18951
- const N = f("gateway")(M, E);
18952
- return v(M, E.width, E.height, E.height * 0.24, {
18919
+ gatewayInclusive(A, E) {
18920
+ const N = f("gateway")(A, E);
18921
+ return v(A, E.width, E.height, E.height * 0.24, {
18953
18922
  strokeWidth: 2.5,
18954
18923
  fill: Rt(E, l),
18955
18924
  stroke: Rt(E, s[E.type]?.iconFill || E.iconFill)
18956
18925
  }), N;
18957
18926
  },
18958
- activity(M, E, N) {
18959
- return N = N || {}, "fillOpacity" in N || (N.fillOpacity = or), _(M, E.width, E.height, Er, N);
18927
+ activity(A, E, N) {
18928
+ return N = N || {}, "fillOpacity" in N || (N.fillOpacity = or), _(A, E.width, E.height, Er, N);
18960
18929
  },
18961
- task(M, E) {
18930
+ task(A, E) {
18962
18931
  const N = {
18963
18932
  fill: mn(E, l),
18964
18933
  stroke: Rt(E, c)
18965
- }, G = f("activity")(M, E, N);
18966
- return w(M, E, "center-middle"), x(M, E), G;
18934
+ }, G = f("activity")(A, E, N);
18935
+ return w(A, E, "center-middle"), x(A, E), G;
18967
18936
  },
18968
- userTask(M, E) {
18969
- const N = f("task")(M, E), G = 15, ie = 12;
18970
- return y(M, n.getScaledPath("TASK_TYPE_USER_1", { abspos: {
18937
+ userTask(A, E) {
18938
+ const N = f("task")(A, E), G = 15, ie = 12;
18939
+ return y(A, n.getScaledPath("TASK_TYPE_USER_1", { abspos: {
18971
18940
  x: G,
18972
18941
  y: ie
18973
18942
  } }), {
18974
18943
  strokeWidth: 0.5,
18975
18944
  fill: mn(E, l),
18976
18945
  stroke: Rt(E, c)
18977
- }), y(M, n.getScaledPath("TASK_TYPE_USER_2", { abspos: {
18946
+ }), y(A, n.getScaledPath("TASK_TYPE_USER_2", { abspos: {
18978
18947
  x: G,
18979
18948
  y: ie
18980
18949
  } }), {
18981
18950
  strokeWidth: 0.5,
18982
18951
  fill: mn(E, l),
18983
18952
  stroke: Rt(E, c)
18984
- }), y(M, n.getScaledPath("TASK_TYPE_USER_3", { abspos: {
18953
+ }), y(A, n.getScaledPath("TASK_TYPE_USER_3", { abspos: {
18985
18954
  x: G,
18986
18955
  y: ie
18987
18956
  } }), {
@@ -18990,9 +18959,9 @@ function ja(e, t, n, a, o, i, r) {
18990
18959
  stroke: Rt(E, c)
18991
18960
  }), N;
18992
18961
  },
18993
- scriptTask(M, E) {
18994
- const N = f("task")(M, E);
18995
- return y(M, n.getScaledPath("TASK_TYPE_SCRIPT", { abspos: {
18962
+ scriptTask(A, E) {
18963
+ const N = f("task")(A, E);
18964
+ return y(A, n.getScaledPath("TASK_TYPE_SCRIPT", { abspos: {
18996
18965
  x: 15,
18997
18966
  y: 20
18998
18967
  } }), {
@@ -19000,12 +18969,12 @@ function ja(e, t, n, a, o, i, r) {
19000
18969
  stroke: Rt(E, c)
19001
18970
  }), N;
19002
18971
  },
19003
- SubProcessMarker(M, E) {
19004
- jn(_(M, 14, 14, 0, {
18972
+ SubProcessMarker(A, E) {
18973
+ jn(_(A, 14, 14, 0, {
19005
18974
  strokeWidth: 1,
19006
18975
  fill: mn(E, l),
19007
18976
  stroke: Rt(E, c)
19008
- }), E.width / 2 - 7.5, E.height - 20), b("sub-process", M, n.getScaledPath("MARKER_SUB_PROCESS", {
18977
+ }), E.width / 2 - 7.5, E.height - 20), b("sub-process", A, n.getScaledPath("MARKER_SUB_PROCESS", {
19009
18978
  xScaleFactor: 1.5,
19010
18979
  yScaleFactor: 1.5,
19011
18980
  containerWidth: E.width,
@@ -19019,36 +18988,36 @@ function ja(e, t, n, a, o, i, r) {
19019
18988
  stroke: Rt(E, c)
19020
18989
  });
19021
18990
  },
19022
- subprocess(M, E, N) {
18991
+ subprocess(A, E, N) {
19023
18992
  N = Ct({
19024
18993
  fill: mn(E, l),
19025
18994
  stroke: Rt(E, c)
19026
18995
  }, N);
19027
- const G = f("activity")(M, E, N);
19028
- return w(M, E, "center-middle"), x(M, E, ["SubProcessMarker"]), G;
18996
+ const G = f("activity")(A, E, N);
18997
+ return w(A, E, "center-middle"), x(A, E, ["SubProcessMarker"]), G;
19029
18998
  },
19030
- label(M, E) {
19031
- return S(M, E);
18999
+ label(A, E) {
19000
+ return S(A, E);
19032
19001
  },
19033
- myline(M, E) {
19002
+ myline(A, E) {
19034
19003
  const N = mn(E, i.lineStroke || l), G = Rt(E, i.lineStroke || c);
19035
- return g(M, E.waypoints, {
19036
- markerEnd: A(M, "sequenceflow-end", N, G),
19004
+ return g(A, E.waypoints, {
19005
+ markerEnd: M(A, "sequenceflow-end", N, G),
19037
19006
  stroke: G
19038
19007
  });
19039
19008
  },
19040
- default(M, E) {
19009
+ default(A, E) {
19041
19010
  const N = {
19042
19011
  strokeWidth: si(E, s[E.type]?.strokeWidth || E.strokeWidth || 1),
19043
19012
  fill: mn(E, s[E.type]?.fill || E.fill),
19044
19013
  stroke: Rt(E, s[E.type]?.stroke || E.stroke)
19045
- }, G = _(M, E.width, E.height, E.radius || Er, N);
19046
- return w(M, E, "center-middle"), x(M, E), H(M, E, E.iconX, E.iconY), G;
19014
+ }, G = _(A, E.width, E.height, E.radius || Er, N);
19015
+ return w(A, E, "center-middle"), x(A, E), H(A, E, E.iconX, E.iconY), G;
19047
19016
  }
19048
19017
  };
19049
19018
  this.handlers = D, this._drawPath = y;
19050
19019
  }
19051
- Ca(ja, Ma);
19020
+ Ca(ja, Aa);
19052
19021
  ja.$inject = [
19053
19022
  "eventBus",
19054
19023
  "styles",
@@ -19128,17 +19097,17 @@ function __(e, t, n, a) {
19128
19097
  text: t
19129
19098
  };
19130
19099
  }
19131
- var Ms = "­";
19100
+ var As = "­";
19132
19101
  function x_(e, t) {
19133
19102
  var n = e.split(/(\s|-|\u00AD)/g), a, o = [], i = 0;
19134
19103
  if (n.length > 1) for (; a = n.shift(); ) if (a.length + i < t)
19135
19104
  o.push(a), i += a.length;
19136
19105
  else {
19137
- (a === "-" || a === Ms) && o.pop();
19106
+ (a === "-" || a === As) && o.pop();
19138
19107
  break;
19139
19108
  }
19140
19109
  var r = o[o.length - 1];
19141
- return r && r === Ms && (o[o.length - 1] = "-"), o.join("");
19110
+ return r && r === As && (o[o.length - 1] = "-"), o.join("");
19142
19111
  }
19143
19112
  function C_(e, t, n) {
19144
19113
  var a = Math.max(e.length * (n / t), 1), o = x_(e, a);
@@ -19146,7 +19115,7 @@ function C_(e, t, n) {
19146
19115
  }
19147
19116
  function S_() {
19148
19117
  var e = document.getElementById("helper-svg");
19149
- return e || (e = Ue("svg"), Le(e, { id: "helper-svg" }), Mo(e, {
19118
+ return e || (e = Ue("svg"), Le(e, { id: "helper-svg" }), Ao(e, {
19150
19119
  visibility: "hidden",
19151
19120
  position: "fixed",
19152
19121
  width: 0,
@@ -19255,7 +19224,7 @@ function Pu(e) {
19255
19224
  };
19256
19225
  }
19257
19226
  Pu.$inject = ["config.textRenderer"];
19258
- function A_() {
19227
+ function M_() {
19259
19228
  this.pathMap = {
19260
19229
  GATEWAY_EXCLUSIVE: {
19261
19230
  d: "m {mx},{my} {e.x0},{e.y0} {e.x1},{e.y0} {e.x2},0 {e.x4},{e.y2} {e.x4},{e.y1} {e.x2},0 {e.x1},{e.y3} {e.x0},{e.y3} {e.x3},0 {e.x5},{e.y1} {e.x5},{e.y2} {e.x3},0 z",
@@ -19327,7 +19296,7 @@ function A_() {
19327
19296
  });
19328
19297
  };
19329
19298
  }
19330
- var M_ = /\{([^}]+)\}/g, j_ = /(?:(?:^|\.)(.+?)(?=\[|\.|$|\()|\[('|")(.+?)\2\])(\(\))?/g;
19299
+ var A_ = /\{([^}]+)\}/g, j_ = /(?:(?:^|\.)(.+?)(?=\[|\.|$|\()|\[('|")(.+?)\2\])(\(\))?/g;
19331
19300
  function P_(e, t, n) {
19332
19301
  let a = n;
19333
19302
  return t.replace(j_, (o, i, r, l, c) => {
@@ -19335,13 +19304,13 @@ function P_(e, t, n) {
19335
19304
  }), a = (a == null || a === n ? e : a) + "", a;
19336
19305
  }
19337
19306
  function B_(e, t) {
19338
- return String(e).replace(M_, (n, a) => P_(n, a, t));
19307
+ return String(e).replace(A_, (n, a) => P_(n, a, t));
19339
19308
  }
19340
19309
  var Bu = {
19341
19310
  __init__: ["myRenderer"],
19342
19311
  myRenderer: ["type", ja],
19343
19312
  textRenderer: ["type", Pu],
19344
- pathMap: ["type", A_]
19313
+ pathMap: ["type", M_]
19345
19314
  };
19346
19315
  function js(e, t) {
19347
19316
  return Ct({
@@ -19802,7 +19771,7 @@ function J_(e, t) {
19802
19771
  function Tr(e, t, n) {
19803
19772
  return W_(t, J_(e, n));
19804
19773
  }
19805
- function Ar(e, t) {
19774
+ function Mr(e, t) {
19806
19775
  var n = Ue("g");
19807
19776
  yt(n).add(Du), qe(e, n);
19808
19777
  var a = Ue("circle");
@@ -19840,7 +19809,7 @@ function Fu(e, t, n) {
19840
19809
  var a = Ue("g"), o = xr(t, n), i = qn(t, n);
19841
19810
  return qe(e, a), G_(a, t, n, i), yt(a).add($u), yt(a).add(i === "h" ? "horizontal" : "vertical"), jn(a, o.x, o.y), a;
19842
19811
  }
19843
- function Mr(e) {
19812
+ function Ar(e) {
19844
19813
  return Math.abs(Math.round(e * 2 / 3));
19845
19814
  }
19846
19815
  function q_(e, t) {
@@ -19848,7 +19817,7 @@ function q_(e, t) {
19848
19817
  }
19849
19818
  function X_(e, t, n) {
19850
19819
  var a = t.x - e.x, o = t.y - e.y;
19851
- return Mr(n === "h" ? a : o);
19820
+ return Ar(n === "h" ? a : o);
19852
19821
  }
19853
19822
  function Z_(e, t) {
19854
19823
  for (var n = t.waypoints, a = 1 / 0, o, i = 0; i < n.length - 1; i++) {
@@ -19862,15 +19831,15 @@ function bl(e) {
19862
19831
  }
19863
19832
  function Vu(e, t, n, a, o) {
19864
19833
  function i(m, b, R) {
19865
- var w = m.index, S = m.point, x, C, T, A, P, H;
19866
- return w <= 0 || m.bendpoint ? !1 : (x = b[w - 1], C = b[w], T = xr(x, C), A = qn(x, C), P = Math.abs(S.x - T.x), H = Math.abs(S.y - T.y), A && P <= R && H <= R);
19834
+ var w = m.index, S = m.point, x, C, T, M, P, H;
19835
+ return w <= 0 || m.bendpoint ? !1 : (x = b[w - 1], C = b[w], T = xr(x, C), M = qn(x, C), P = Math.abs(S.x - T.x), H = Math.abs(S.y - T.y), M && P <= R && H <= R);
19867
19836
  }
19868
19837
  function r(m, b) {
19869
19838
  var R = m.waypoints, w, S, x, C;
19870
19839
  return b.index <= 0 || b.bendpoint || (w = {
19871
19840
  start: R[b.index - 1],
19872
19841
  end: R[b.index]
19873
- }, S = qn(w.start, w.end), !S) ? null : (S === "h" ? x = w.end.x - w.start.x : x = w.end.y - w.start.y, C = Mr(x) / 2, C);
19842
+ }, S = qn(w.start, w.end), !S) ? null : (S === "h" ? x = w.end.x - w.start.x : x = w.end.y - w.start.y, C = Ar(x) / 2, C);
19874
19843
  }
19875
19844
  function l(m, b) {
19876
19845
  var R = b.waypoints, w = Tr(t, R, m), S;
@@ -19891,9 +19860,9 @@ function Vu(e, t, n, a, o) {
19891
19860
  }
19892
19861
  function f(m, b) {
19893
19862
  b.waypoints.forEach(function(R, w) {
19894
- var S = Ar(m);
19863
+ var S = Mr(m);
19895
19864
  qe(m, S), jn(S, R.x, R.y);
19896
- }), Ar(m, "floating");
19865
+ }), Mr(m, "floating");
19897
19866
  }
19898
19867
  function d(m, b) {
19899
19868
  for (var R = b.waypoints, w, S, x, C = 1; C < R.length; C++)
@@ -19922,11 +19891,11 @@ function Vu(e, t, n, a, o) {
19922
19891
  R && jn(R, w.x, w.y);
19923
19892
  }
19924
19893
  function y(m, b, R) {
19925
- var w = u(b.index, m), S = R[b.index - 1], x = R[b.index], C = b.point, T = xr(S, x), A = qn(S, x), P, H;
19894
+ var w = u(b.index, m), S = R[b.index - 1], x = R[b.index], C = b.point, T = xr(S, x), M = qn(S, x), P, H;
19926
19895
  w && (P = Q_(w), H = {
19927
19896
  x: C.x - T.x,
19928
19897
  y: C.y - T.y
19929
- }, A === "v" && (H = {
19898
+ }, M === "v" && (H = {
19930
19899
  x: H.y,
19931
19900
  y: H.x
19932
19901
  }), jn(P, H.x, H.y));
@@ -20067,7 +20036,7 @@ function Nu(e, t, n, a) {
20067
20036
  r.waypoints = u, s && f.splice(l, 0, {
20068
20037
  x: i.x,
20069
20038
  y: i.y
20070
- }), c.waypoints = f, yt(r.draggerGfx = Ar(a.getLayer("overlays"))).add("djs-dragging"), a.addMarker(c, zs), a.addMarker(c, Ls);
20039
+ }), c.waypoints = f, yt(r.draggerGfx = Mr(a.getLayer("overlays"))).add("djs-dragging"), a.addMarker(c, zs), a.addMarker(c, Ls);
20071
20040
  }), n.on("bendpoint.move.hover", function(i) {
20072
20041
  var r = i.context, l = r.allowed, c = r.hover, s = r.type;
20073
20042
  if (c) {
@@ -20479,7 +20448,7 @@ Vt.prototype._updateOverlay = function(e) {
20479
20448
  };
20480
20449
  Vt.prototype._createOverlayContainer = function(e) {
20481
20450
  var t = rn('<div class="djs-overlays" />');
20482
- Mo(t, { position: "absolute" }), this._overlayRoot.appendChild(t);
20451
+ Ao(t, { position: "absolute" }), this._overlayRoot.appendChild(t);
20483
20452
  var n = {
20484
20453
  html: t,
20485
20454
  element: e,
@@ -20499,14 +20468,14 @@ Vt.prototype._updateRoot = function(e) {
20499
20468
  Gu(this._overlayRoot, n);
20500
20469
  };
20501
20470
  Vt.prototype._getOverlayContainer = function(e, t) {
20502
- var n = An(this._overlayContainers, function(a) {
20471
+ var n = Mn(this._overlayContainers, function(a) {
20503
20472
  return a.element === e;
20504
20473
  });
20505
20474
  return !n && !t ? this._createOverlayContainer(e) : n;
20506
20475
  };
20507
20476
  Vt.prototype._addOverlay = function(e) {
20508
20477
  var t = e.id, n = e.element, a = e.html, o, i;
20509
- a.get && a.constructor.prototype.jquery && (a = a.get(0)), pr(a) && (a = rn(a)), i = this._getOverlayContainer(n), o = rn('<div class="djs-overlay" data-overlay-id="' + t + '">'), Mo(o, { position: "absolute" }), o.appendChild(a), e.type && tn(o).add("djs-overlay-" + e.type);
20478
+ a.get && a.constructor.prototype.jquery && (a = a.get(0)), pr(a) && (a = rn(a)), i = this._getOverlayContainer(n), o = rn('<div class="djs-overlay" data-overlay-id="' + t + '">'), Ao(o, { position: "absolute" }), o.appendChild(a), e.type && tn(o).add("djs-overlay-" + e.type);
20510
20479
  var r = this._canvas.findRoot(n), l = this._canvas.getRootElement();
20511
20480
  Gi(o, r === l), e.htmlContainer = o, i.overlays.push(e), i.html.appendChild(o), this._overlays[t] = e, this._updateOverlay(e), this._updateOverlayVisibilty(e, this._canvas.viewbox());
20512
20481
  };
@@ -20558,14 +20527,14 @@ Vt.prototype._init = function() {
20558
20527
  };
20559
20528
  function gx(e) {
20560
20529
  var t = rn('<div class="djs-overlay-container" />');
20561
- return Mo(t, {
20530
+ return Ao(t, {
20562
20531
  position: "absolute",
20563
20532
  width: 0,
20564
20533
  height: 0
20565
20534
  }), e.insertBefore(t, e.firstChild), t;
20566
20535
  }
20567
20536
  function Ju(e, t, n) {
20568
- Mo(e, {
20537
+ Ao(e, {
20569
20538
  left: t + "px",
20570
20539
  top: n + "px"
20571
20540
  });
@@ -20680,9 +20649,9 @@ Ht.prototype.registerProvider = function(e, t) {
20680
20649
  Ht.prototype.getEntries = function(e) {
20681
20650
  var t = this._getProviders(), n = st(e) ? "getMultiElementContextPadEntries" : "getContextPadEntries", a = {};
20682
20651
  return ce(t, function(o) {
20683
- if (Mn(o[n])) {
20652
+ if (An(o[n])) {
20684
20653
  var i = o[n](e);
20685
- Mn(i) ? a = i(a) : ce(i, function(r, l) {
20654
+ An(i) ? a = i(a) : ce(i, function(r, l) {
20686
20655
  a[l] = r;
20687
20656
  });
20688
20657
  }
@@ -20711,7 +20680,7 @@ Ht.prototype.triggerEntry = function(e, t, n, a) {
20711
20680
  entry: i,
20712
20681
  event: n
20713
20682
  }) !== !1) {
20714
- if (Mn(r)) {
20683
+ if (An(r)) {
20715
20684
  if (t === "click") return r(n, o, a);
20716
20685
  } else if (r[t]) return r[t](n, o, a);
20717
20686
  n.preventDefault();
@@ -20916,9 +20885,9 @@ function Cl(e) {
20916
20885
  }
20917
20886
  Cl.$inject = ["eventBus"];
20918
20887
  Cl.prototype.getLastMoveEvent = function() {
20919
- return this._lastMoveEvent || Ax(0, 0);
20888
+ return this._lastMoveEvent || Mx(0, 0);
20920
20889
  };
20921
- function Ax(e, t) {
20890
+ function Mx(e, t) {
20922
20891
  var n = document.createEvent("MouseEvent"), a = e, o = t, i = e, r = t;
20923
20892
  return n.initMouseEvent && n.initMouseEvent("mousemove", !0, !0, window, 0, a, o, i, r, !1, !1, !1, !1, 0, null), n;
20924
20893
  }
@@ -20996,7 +20965,7 @@ to.prototype.isActive = function() {
20996
20965
  function Ks(e) {
20997
20966
  return Uc("Space", e);
20998
20967
  }
20999
- var Mx = {
20968
+ var Ax = {
21000
20969
  __depends__: [xl, Sl],
21001
20970
  __init__: ["handTool"],
21002
20971
  handTool: ["type", to]
@@ -21080,7 +21049,7 @@ Ba.prototype.activateSelection = function(e, t) {
21080
21049
  });
21081
21050
  };
21082
21051
  Ba.prototype.select = function(e, t, n = []) {
21083
- var a = A0(e, t);
21052
+ var a = M0(e, t);
21084
21053
  this._selection.select([...n, ...dc(a)]);
21085
21054
  };
21086
21055
  Ba.prototype.toggle = function() {
@@ -21250,7 +21219,7 @@ Ha.prototype._getProviders = function() {
21250
21219
  Ha.prototype.getOutline = function(e) {
21251
21220
  var t;
21252
21221
  return ce(this._getProviders(), function(n) {
21253
- Mn(n.getOutline) && (t = t || n.getOutline(e));
21222
+ An(n.getOutline) && (t = t || n.getOutline(e));
21254
21223
  }), t;
21255
21224
  };
21256
21225
  Ha.$inject = [
@@ -21296,11 +21265,11 @@ var Zu = {
21296
21265
  __init__: ["outline", "multiSelectionOutline"],
21297
21266
  outline: ["type", Ha],
21298
21267
  multiSelectionOutline: ["type", kl]
21299
- }, Ix = 500, Lx = 1250, zx = 1500, Ai = Math.round;
21268
+ }, Ix = 500, Lx = 1250, zx = 1500, Mi = Math.round;
21300
21269
  function Dx(e) {
21301
21270
  return {
21302
- x: e.x + Ai(e.width / 2),
21303
- y: e.y + Ai(e.height / 2)
21271
+ x: e.x + Mi(e.width / 2),
21272
+ y: e.y + Mi(e.height / 2)
21304
21273
  };
21305
21274
  }
21306
21275
  function Qu(e, t, n, a, o) {
@@ -21338,7 +21307,7 @@ function Qu(e, t, n, a, o) {
21338
21307
  }), e.on("shape.move.end", function(l) {
21339
21308
  var c = l.context, s = c.delta, u = c.canExecute, f = u === "attach", d = c.shapes;
21340
21309
  if (u === !1) return !1;
21341
- s.x = Ai(s.x), s.y = Ai(s.y), !(s.x === 0 && s.y === 0) && n.moveElements(d, s, c.target, {
21310
+ s.x = Mi(s.x), s.y = Mi(s.y), !(s.x === 0 && s.y === 0) && n.moveElements(d, s, c.target, {
21342
21311
  primaryShape: c.shape,
21343
21312
  attach: f
21344
21313
  });
@@ -21432,7 +21401,7 @@ ed.$inject = [
21432
21401
  ];
21433
21402
  function Fx(e) {
21434
21403
  return un(e, function(t) {
21435
- return Xt(t) ? An(e, bi({ id: t.source.id })) && An(e, bi({ id: t.target.id })) : !0;
21404
+ return Xt(t) ? Mn(e, bi({ id: t.source.id })) && Mn(e, bi({ id: t.target.id })) : !0;
21436
21405
  });
21437
21406
  }
21438
21407
  function Vx(e) {
@@ -21526,7 +21495,7 @@ Bt.prototype.triggerEntry = function(e, t, n, a) {
21526
21495
  entry: o,
21527
21496
  event: n
21528
21497
  }) !== !1)) {
21529
- if (Mn(i)) {
21498
+ if (An(i)) {
21530
21499
  if (t === "click") return i(n, a);
21531
21500
  } else if (i[t]) return i[t](n, a);
21532
21501
  n.preventDefault();
@@ -21578,7 +21547,7 @@ function Kx(e, t) {
21578
21547
  }
21579
21548
  function Jx(e, t) {
21580
21549
  var n = t.getPaletteEntries();
21581
- return Mn(n) ? n(e) : (ce(n, function(a, o) {
21550
+ return An(n) ? n(e) : (ce(n, function(a, o) {
21582
21551
  e[o] = a;
21583
21552
  }), e);
21584
21553
  }
@@ -21589,7 +21558,7 @@ var Gx = {
21589
21558
  function ad(e, t, n, a) {
21590
21559
  e.on("element.changed", function(o) {
21591
21560
  var i = o.element;
21592
- (i.parent || i === t.getRootElement()) && (o.gfx = n.getGraphics(i)), o.gfx && e.fire(M0(i) + ".changed", o);
21561
+ (i.parent || i === t.getRootElement()) && (o.gfx = n.getGraphics(i)), o.gfx && e.fire(A0(i) + ".changed", o);
21593
21562
  }), e.on("elements.changed", function(o) {
21594
21563
  var i = o.elements;
21595
21564
  i.forEach(function(r) {
@@ -21610,7 +21579,7 @@ ad.$inject = [
21610
21579
  var qx = {
21611
21580
  __init__: ["changeSupport"],
21612
21581
  changeSupport: ["type", ad]
21613
- }, Mi = Math.max, ji = Math.min, Xx = 20;
21582
+ }, Ai = Math.max, ji = Math.min, Xx = 20;
21614
21583
  function Zx(e, t, n) {
21615
21584
  var a = n.x, o = n.y, i = {
21616
21585
  x: e.x,
@@ -21622,7 +21591,7 @@ function Zx(e, t, n) {
21622
21591
  }
21623
21592
  function hi(e, t, n) {
21624
21593
  var a = t[e], o = n.min && n.min[e], i = n.max && n.max[e];
21625
- return It(o) && (a = (/top|left/.test(e) ? ji : Mi)(a, o)), It(i) && (a = (/top|left/.test(e) ? Mi : ji)(a, i)), a;
21594
+ return It(o) && (a = (/top|left/.test(e) ? ji : Ai)(a, o)), It(i) && (a = (/top|left/.test(e) ? Ai : ji)(a, i)), a;
21626
21595
  }
21627
21596
  function Qx(e, t) {
21628
21597
  if (!t) return e;
@@ -21644,8 +21613,8 @@ function eC(e, t, n, a) {
21644
21613
  return Qc({
21645
21614
  top: ji(i.top, r.top),
21646
21615
  left: ji(i.left, r.left),
21647
- bottom: Mi(i.bottom, r.bottom),
21648
- right: Mi(i.right, r.right)
21616
+ bottom: Ai(i.bottom, r.bottom),
21617
+ right: Ai(i.right, r.right)
21649
21618
  });
21650
21619
  }
21651
21620
  function fo(e, t) {
@@ -22411,7 +22380,7 @@ var TC = 100;
22411
22380
  function ld(e, t, n) {
22412
22381
  e.on("autoPlace", TC, function(a) {
22413
22382
  var o = a.shape, i = a.source;
22414
- return AC(i, o);
22383
+ return MC(i, o);
22415
22384
  }), e.on("autoPlace.end", function(a) {
22416
22385
  n.scrollToElement(a.shape);
22417
22386
  }), this.append = function(a, o, i) {
@@ -22434,7 +22403,7 @@ ld.$inject = [
22434
22403
  "modeling",
22435
22404
  "canvas"
22436
22405
  ];
22437
- function AC(e, t, n) {
22406
+ function MC(e, t, n) {
22438
22407
  n || (n = {});
22439
22408
  var a = n.defaultDistance || 50, o = Et(e);
22440
22409
  return {
@@ -22448,7 +22417,7 @@ function sd(e, t) {
22448
22417
  });
22449
22418
  }
22450
22419
  sd.$inject = ["eventBus", "selection"];
22451
- var MC = {
22420
+ var AC = {
22452
22421
  __init__: ["autoPlaceSelectionBehavior"],
22453
22422
  autoPlace: ["type", ld],
22454
22423
  autoPlaceSelectionBehavior: ["type", sd]
@@ -22473,7 +22442,7 @@ function IC(e, t, n) {
22473
22442
  width: n.width,
22474
22443
  height: n.height
22475
22444
  };
22476
- return An(OC(e), (o) => o === n ? !1 : ea(o, a, jC) === "intersect");
22445
+ return Mn(OC(e), (o) => o === n ? !1 : ea(o, a, jC) === "intersect");
22477
22446
  }
22478
22447
  function LC(e, t, n, a) {
22479
22448
  let o;
@@ -22518,7 +22487,7 @@ function cd(e) {
22518
22487
  }
22519
22488
  cd.$inject = ["eventBus"];
22520
22489
  var VC = {
22521
- __depends__: [MC],
22490
+ __depends__: [AC],
22522
22491
  __init__: ["myAutoPlace"],
22523
22492
  myAutoPlace: ["type", cd]
22524
22493
  };
@@ -22666,14 +22635,14 @@ var NC = {
22666
22635
  c = 1, l.get("canvas").zoom("fit-viewport");
22667
22636
  }, u = () => {
22668
22637
  const T = l.get("eventBus");
22669
- T.on("element.dblclick", (A) => {
22670
- o("elementDblclick", A.element.businessObject);
22671
- }), T.on("element.click", (A) => {
22672
- o("elementClick", A.element.businessObject);
22673
- }), T.on("create.end", (A) => {
22674
- o("elementCreate", A.elements[0].businessObject);
22675
- }), T.on("autoPlace.end", (A) => {
22676
- o("elementCreate", A.shape.businessObject);
22638
+ T.on("element.dblclick", (M) => {
22639
+ o("elementDblclick", M.element.businessObject);
22640
+ }), T.on("element.click", (M) => {
22641
+ o("elementClick", M.element.businessObject);
22642
+ }), T.on("create.end", (M) => {
22643
+ o("elementCreate", M.elements[0].businessObject);
22644
+ }), T.on("autoPlace.end", (M) => {
22645
+ o("elementCreate", M.shape.businessObject);
22677
22646
  });
22678
22647
  }, f = function() {
22679
22648
  return {
@@ -22694,7 +22663,7 @@ var NC = {
22694
22663
  Rx,
22695
22664
  qc,
22696
22665
  z_,
22697
- Mx,
22666
+ Ax,
22698
22667
  jx,
22699
22668
  Px,
22700
22669
  ju,
@@ -22714,17 +22683,17 @@ var NC = {
22714
22683
  Hu
22715
22684
  ]
22716
22685
  });
22717
- const A = l.get("canvas"), P = l.get("elementFactory");
22686
+ const M = l.get("canvas"), P = l.get("elementFactory");
22718
22687
  s();
22719
22688
  const H = P.createRoot();
22720
- A.setRootElement(H), u();
22689
+ M.setRootElement(H), u();
22721
22690
  };
22722
22691
  Pt(() => {
22723
22692
  d();
22724
22693
  });
22725
22694
  const h = (T) => {
22726
- const A = T == null ? 1 : c + T;
22727
- l.get("canvas").zoom(A), c = A;
22695
+ const M = T == null ? 1 : c + T;
22696
+ l.get("canvas").zoom(M), c = M;
22728
22697
  }, p = () => {
22729
22698
  l.get("commandStack").redo();
22730
22699
  }, g = () => {
@@ -22754,7 +22723,7 @@ var NC = {
22754
22723
  updateElemet: (T) => {
22755
22724
  y(T);
22756
22725
  }
22757
- }), (T, A) => (k(), z("div", {
22726
+ }), (T, M) => (k(), z("div", {
22758
22727
  ref_key: "containerRef",
22759
22728
  ref: i,
22760
22729
  class: "j-work-flow"
@@ -22831,16 +22800,16 @@ var NC = {
22831
22800
  return w.isOk = !1, w.info = "请添加表格数据", w;
22832
22801
  const S = h.value.length, x = a.columns, C = x.length;
22833
22802
  for (let T = 0; T < S; T++) {
22834
- const A = h.value[T];
22803
+ const M = h.value[T];
22835
22804
  for (let P = 0; P < C; P++) {
22836
22805
  const H = x[P];
22837
22806
  if (m(H.config, T).display !== !1 && H.rule && H.rule.length > 0) {
22838
22807
  const D = H.rule.length;
22839
- for (let M = 0; M < D; M++) {
22840
- const E = H.rule[M];
22841
- if (E.pattern = E.pattern ? E.pattern + "" : "", E.pattern && !qt(A[H.prop || ""]) && !new RegExp(E.pattern.substring(1, E.pattern.length - 1)).test(A[H.prop || ""]))
22808
+ for (let A = 0; A < D; A++) {
22809
+ const E = H.rule[A];
22810
+ if (E.pattern = E.pattern ? E.pattern + "" : "", E.pattern && !qt(M[H.prop || ""]) && !new RegExp(E.pattern.substring(1, E.pattern.length - 1)).test(M[H.prop || ""]))
22842
22811
  return w.info = `${i("第")}${T + 1}${i("行")},${i("第")}${P + 1}${i("列")},${i(H.label)}:${i(E.message)}`, w.isOk = !1, w;
22843
- if (E.required && qt(A[H.prop || ""]))
22812
+ if (E.required && qt(M[H.prop || ""]))
22844
22813
  return w.isOk = !1, w.info = `${i("第")}${T + 1}${i("行")},${i("第")}${P + 1}${i("列")},${i(H.label)}:${i("不能为空")}`, w;
22845
22814
  }
22846
22815
  }
@@ -22874,25 +22843,25 @@ var NC = {
22874
22843
  getTableData: () => h.value,
22875
22844
  rowChange: p
22876
22845
  }), (w, S) => {
22877
- const x = $("j-comp"), C = $("el-form-item"), T = $("el-col"), A = $("j-button"), P = $("el-row");
22846
+ const x = $("j-comp"), C = $("el-form-item"), T = $("el-col"), M = $("j-button"), P = $("el-row");
22878
22847
  return k(), z(Se, null, [B("div", Ne({ class: "j-input-cards" }, w.$attrs), [(k(!0), z(Se, null, Ie(h.value, (H, D) => (k(), z("div", {
22879
22848
  class: "j-input-cards-item",
22880
22849
  key: H.i,
22881
22850
  style: { "margin-bottom": "8px" }
22882
22851
  }, [X(P, { gutter: e.gutter }, {
22883
- default: J(() => [(k(!0), z(Se, null, Ie(e.columns, (M) => (k(), V(T, {
22884
- key: M.prop,
22885
- span: M.config?.span || e.span || 24,
22886
- style: le({ "margin-bottom": (M.getInputType ? M.getInputType(H) : M.inputType) == "j-input-rows" ? "8px" : void 0 })
22852
+ default: J(() => [(k(!0), z(Se, null, Ie(e.columns, (A) => (k(), V(T, {
22853
+ key: A.prop,
22854
+ span: A.config?.span || e.span || 24,
22855
+ style: le({ "margin-bottom": (A.getInputType ? A.getInputType(H) : A.inputType) == "j-input-rows" ? "8px" : void 0 })
22887
22856
  }, {
22888
22857
  default: J(() => [Ln(X(C, {
22889
- "label-width": b(M.config?.labelWidth),
22890
- label: U(i)(M.config?.label || ""),
22891
- extra: M.config?.labelExtra,
22892
- tooltip: M.config?.labelTooltip,
22893
- required: M.config?.required
22858
+ "label-width": b(A.config?.labelWidth),
22859
+ label: U(i)(A.config?.label || ""),
22860
+ extra: A.config?.labelExtra,
22861
+ tooltip: A.config?.labelTooltip,
22862
+ required: A.config?.required
22894
22863
  }, {
22895
- default: J(() => [X(x, Ne({ ref_for: !0 }, M, { row: H }), null, 16, ["row"])]),
22864
+ default: J(() => [X(x, Ne({ ref_for: !0 }, A, { row: H }), null, 16, ["row"])]),
22896
22865
  _: 2
22897
22866
  }, 1032, [
22898
22867
  "label-width",
@@ -22900,22 +22869,22 @@ var NC = {
22900
22869
  "extra",
22901
22870
  "tooltip",
22902
22871
  "required"
22903
- ]), [[mo, m(M.config, D).display !== !1]])]),
22872
+ ]), [[mo, m(A.config, D).display !== !1]])]),
22904
22873
  _: 2
22905
- }, 1032, ["span", "style"]))), 128)), u.value && (d.value || h.value.length > 1) && !f.value ? (k(), V(A, {
22874
+ }, 1032, ["span", "style"]))), 128)), u.value && (d.value || h.value.length > 1) && !f.value ? (k(), V(M, {
22906
22875
  key: 0,
22907
22876
  class: "j-input-cards-delete",
22908
22877
  size: "small",
22909
22878
  shape: "circle",
22910
22879
  icon: "mdi:close",
22911
22880
  danger: "",
22912
- onClick: (M) => v(D)
22881
+ onClick: (A) => v(D)
22913
22882
  }, null, 8, ["onClick"])) : ee("", !0)]),
22914
22883
  _: 2
22915
22884
  }, 1032, ["gutter"])]))), 128))], 16), l.value && !f.value ? (k(), z("div", {
22916
22885
  key: 0,
22917
22886
  style: le({ "text-align": s.value })
22918
- }, [l.value ? (k(), V(A, {
22887
+ }, [l.value ? (k(), V(M, {
22919
22888
  key: 0,
22920
22889
  type: "link",
22921
22890
  style: { "margin-right": "8px" },
@@ -22952,7 +22921,7 @@ var NC = {
22952
22921
  Fg,
22953
22922
  Wg,
22954
22923
  Gg,
22955
- My,
22924
+ Ay,
22956
22925
  Zg,
22957
22926
  wv,
22958
22927
  Sv,
@@ -23007,7 +22976,7 @@ export {
23007
22976
  xh as JButtons,
23008
22977
  Jh as JCascaderSelect,
23009
22978
  Xh as JCheckbox,
23010
- My as JCodeMirror,
22979
+ Ay as JCodeMirror,
23011
22980
  Jb as JCollapse,
23012
22981
  nb as JComp,
23013
22982
  Zg as JCount,
@@ -23095,12 +23064,12 @@ export {
23095
23064
  B1 as pagination,
23096
23065
  H1 as paginationEx,
23097
23066
  jl as set,
23098
- Af as setGroupMap,
23067
+ Mf as setGroupMap,
23099
23068
  jf as toArray,
23100
23069
  Zo as toDecimal,
23101
23070
  Pf as toLeafArray,
23102
23071
  L1 as toSimpleTree,
23103
- Mf as toTree,
23072
+ Af as toTree,
23104
23073
  O1 as uniqueArray,
23105
23074
  Tf as upFirst,
23106
23075
  bt as useAppInject,