@gisce/react-ooui 1.1.30 → 1.1.31

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.
@@ -529,7 +529,7 @@ const {
529
529
  STOCK_CLEAR: "CloseSquare",
530
530
  STOCK_UNINDENT: "AlignLeft",
531
531
  STOCK_PREFERENCES: "Setting"
532
- }, iconMapper = (e) => (e.indexOf("gtk-") !== -1 && (e = `STOCK_${e.replace("gtk-", "").replace(/\-/g, "_").toUpperCase()}`), iconMapping.hasOwnProperty(e) ? getIconForKey(iconMapping[e]) : getIconForKey(e));
532
+ }, iconMapper = (e, t) => (e.indexOf("gtk-") !== -1 && (e = `STOCK_${e.replace("gtk-", "").replace(/\-/g, "_").toUpperCase()}`), iconMapping.hasOwnProperty(e) ? getIconForKey(iconMapping[e], t) : getIconForKey(e, t));
533
533
  function toCamelCase(e) {
534
534
  return `${e.split("-").map(
535
535
  (t) => t.replace(
@@ -538,21 +538,24 @@ function toCamelCase(e) {
538
538
  )
539
539
  ).join("")}`;
540
540
  }
541
- function getIconForKey(e) {
542
- let t = e.charAt(0).toUpperCase() + e.slice(1);
543
- t.indexOf("-") !== -1 && (t = toCamelCase(t));
544
- const r = `${t}Outlined`;
545
- if (AntIcons[r])
546
- return AntIcons[r];
547
- const n = `Icon${t}`;
548
- if (TablerIcons[n]) {
549
- const a = () => React__default.createElement(TablerIcons[n], {
541
+ function getIconForKey(e, t) {
542
+ let r = e.charAt(0).toUpperCase() + e.slice(1);
543
+ r.indexOf("-") !== -1 && (r = toCamelCase(r));
544
+ const n = `${r}Outlined`;
545
+ if (AntIcons[n])
546
+ return () => React__default.createElement(AntIcons[n], {
547
+ className: t
548
+ });
549
+ const a = `Icon${r}`;
550
+ if (TablerIcons[a]) {
551
+ const o = () => React__default.createElement(TablerIcons[a], {
550
552
  fill: "transparent",
551
553
  height: 17,
552
554
  width: 17
553
555
  });
554
556
  return () => React__default.createElement(AntIcons__default, {
555
- component: a
557
+ component: o,
558
+ className: t
556
559
  });
557
560
  }
558
561
  }
@@ -643,8 +646,8 @@ const Button = (e) => {
643
646
  if (b)
644
647
  return /* @__PURE__ */ jsx(LoadingOutlined$3, {});
645
648
  if (c) {
646
- const O = iconMapper(c);
647
- return O && /* @__PURE__ */ jsx(O, {});
649
+ const E = iconMapper(c);
650
+ return E && /* @__PURE__ */ jsx(E, {});
648
651
  }
649
652
  }
650
653
  async function _() {
@@ -1137,8 +1140,8 @@ function requireReactIs_production_min() {
1137
1140
  var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, u = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, d = e ? Symbol.for("react.forward_ref") : 60112, f = e ? Symbol.for("react.suspense") : 60113, p = e ? Symbol.for("react.suspense_list") : 60120, h = e ? Symbol.for("react.memo") : 60115, m = e ? Symbol.for("react.lazy") : 60116, y = e ? Symbol.for("react.block") : 60121, b = e ? Symbol.for("react.fundamental") : 60117, g = e ? Symbol.for("react.responder") : 60118, v = e ? Symbol.for("react.scope") : 60119;
1138
1141
  function x(C) {
1139
1142
  if (typeof C == "object" && C !== null) {
1140
- var O = C.$$typeof;
1141
- switch (O) {
1143
+ var E = C.$$typeof;
1144
+ switch (E) {
1142
1145
  case t:
1143
1146
  switch (C = C.type, C) {
1144
1147
  case l:
@@ -1157,11 +1160,11 @@ function requireReactIs_production_min() {
1157
1160
  case s:
1158
1161
  return C;
1159
1162
  default:
1160
- return O;
1163
+ return E;
1161
1164
  }
1162
1165
  }
1163
1166
  case r:
1164
- return O;
1167
+ return E;
1165
1168
  }
1166
1169
  }
1167
1170
  }
@@ -1209,15 +1212,15 @@ var hasRequiredReactIs_development;
1209
1212
  function requireReactIs_development() {
1210
1213
  return hasRequiredReactIs_development || (hasRequiredReactIs_development = 1, process.env.NODE_ENV !== "production" && function() {
1211
1214
  var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, u = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, d = e ? Symbol.for("react.forward_ref") : 60112, f = e ? Symbol.for("react.suspense") : 60113, p = e ? Symbol.for("react.suspense_list") : 60120, h = e ? Symbol.for("react.memo") : 60115, m = e ? Symbol.for("react.lazy") : 60116, y = e ? Symbol.for("react.block") : 60121, b = e ? Symbol.for("react.fundamental") : 60117, g = e ? Symbol.for("react.responder") : 60118, v = e ? Symbol.for("react.scope") : 60119;
1212
- function x(E) {
1213
- return typeof E == "string" || typeof E == "function" || E === n || E === c || E === o || E === a || E === f || E === p || typeof E == "object" && E !== null && (E.$$typeof === m || E.$$typeof === h || E.$$typeof === s || E.$$typeof === u || E.$$typeof === d || E.$$typeof === b || E.$$typeof === g || E.$$typeof === v || E.$$typeof === y);
1215
+ function x(O) {
1216
+ return typeof O == "string" || typeof O == "function" || O === n || O === c || O === o || O === a || O === f || O === p || typeof O == "object" && O !== null && (O.$$typeof === m || O.$$typeof === h || O.$$typeof === s || O.$$typeof === u || O.$$typeof === d || O.$$typeof === b || O.$$typeof === g || O.$$typeof === v || O.$$typeof === y);
1214
1217
  }
1215
- function _(E) {
1216
- if (typeof E == "object" && E !== null) {
1217
- var X = E.$$typeof;
1218
+ function _(O) {
1219
+ if (typeof O == "object" && O !== null) {
1220
+ var X = O.$$typeof;
1218
1221
  switch (X) {
1219
1222
  case t:
1220
- var J = E.type;
1223
+ var J = O.type;
1221
1224
  switch (J) {
1222
1225
  case l:
1223
1226
  case c:
@@ -1244,47 +1247,47 @@ function requireReactIs_development() {
1244
1247
  }
1245
1248
  }
1246
1249
  }
1247
- var C = l, O = c, F = u, w = s, S = t, T = d, I = n, q = m, M = h, D = r, j = o, N = a, V = f, A = !1;
1248
- function W(E) {
1249
- return A || (A = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), Y(E) || _(E) === l;
1250
+ var C = l, E = c, F = u, w = s, S = t, T = d, I = n, q = m, M = h, D = r, j = o, N = a, V = f, A = !1;
1251
+ function W(O) {
1252
+ return A || (A = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), Y(O) || _(O) === l;
1250
1253
  }
1251
- function Y(E) {
1252
- return _(E) === c;
1254
+ function Y(O) {
1255
+ return _(O) === c;
1253
1256
  }
1254
- function z(E) {
1255
- return _(E) === u;
1257
+ function z(O) {
1258
+ return _(O) === u;
1256
1259
  }
1257
- function H(E) {
1258
- return _(E) === s;
1260
+ function H(O) {
1261
+ return _(O) === s;
1259
1262
  }
1260
- function K(E) {
1261
- return typeof E == "object" && E !== null && E.$$typeof === t;
1263
+ function K(O) {
1264
+ return typeof O == "object" && O !== null && O.$$typeof === t;
1262
1265
  }
1263
- function U(E) {
1264
- return _(E) === d;
1266
+ function U(O) {
1267
+ return _(O) === d;
1265
1268
  }
1266
- function B(E) {
1267
- return _(E) === n;
1269
+ function B(O) {
1270
+ return _(O) === n;
1268
1271
  }
1269
- function k(E) {
1270
- return _(E) === m;
1272
+ function k(O) {
1273
+ return _(O) === m;
1271
1274
  }
1272
- function $(E) {
1273
- return _(E) === h;
1275
+ function $(O) {
1276
+ return _(O) === h;
1274
1277
  }
1275
- function L(E) {
1276
- return _(E) === r;
1278
+ function L(O) {
1279
+ return _(O) === r;
1277
1280
  }
1278
- function G(E) {
1279
- return _(E) === o;
1281
+ function G(O) {
1282
+ return _(O) === o;
1280
1283
  }
1281
- function Z(E) {
1282
- return _(E) === a;
1284
+ function Z(O) {
1285
+ return _(O) === a;
1283
1286
  }
1284
- function P(E) {
1285
- return _(E) === f;
1287
+ function P(O) {
1288
+ return _(O) === f;
1286
1289
  }
1287
- reactIs_development.AsyncMode = C, reactIs_development.ConcurrentMode = O, reactIs_development.ContextConsumer = F, reactIs_development.ContextProvider = w, reactIs_development.Element = S, reactIs_development.ForwardRef = T, reactIs_development.Fragment = I, reactIs_development.Lazy = q, reactIs_development.Memo = M, reactIs_development.Portal = D, reactIs_development.Profiler = j, reactIs_development.StrictMode = N, reactIs_development.Suspense = V, reactIs_development.isAsyncMode = W, reactIs_development.isConcurrentMode = Y, reactIs_development.isContextConsumer = z, reactIs_development.isContextProvider = H, reactIs_development.isElement = K, reactIs_development.isForwardRef = U, reactIs_development.isFragment = B, reactIs_development.isLazy = k, reactIs_development.isMemo = $, reactIs_development.isPortal = L, reactIs_development.isProfiler = G, reactIs_development.isStrictMode = Z, reactIs_development.isSuspense = P, reactIs_development.isValidElementType = x, reactIs_development.typeOf = _;
1290
+ reactIs_development.AsyncMode = C, reactIs_development.ConcurrentMode = E, reactIs_development.ContextConsumer = F, reactIs_development.ContextProvider = w, reactIs_development.Element = S, reactIs_development.ForwardRef = T, reactIs_development.Fragment = I, reactIs_development.Lazy = q, reactIs_development.Memo = M, reactIs_development.Portal = D, reactIs_development.Profiler = j, reactIs_development.StrictMode = N, reactIs_development.Suspense = V, reactIs_development.isAsyncMode = W, reactIs_development.isConcurrentMode = Y, reactIs_development.isContextConsumer = z, reactIs_development.isContextProvider = H, reactIs_development.isElement = K, reactIs_development.isForwardRef = U, reactIs_development.isFragment = B, reactIs_development.isLazy = k, reactIs_development.isMemo = $, reactIs_development.isPortal = L, reactIs_development.isProfiler = G, reactIs_development.isStrictMode = Z, reactIs_development.isSuspense = P, reactIs_development.isValidElementType = x, reactIs_development.typeOf = _;
1288
1291
  }()), reactIs_development;
1289
1292
  }
1290
1293
  var hasRequiredReactIs;
@@ -2775,12 +2778,12 @@ function requireUtils() {
2775
2778
  function p(v, x, _) {
2776
2779
  return _ ? /* @__PURE__ */ o.default.createElement(v.tag, (0, r.default)((0, r.default)({
2777
2780
  key: x
2778
- }, f(v.attrs)), _), (v.children || []).map(function(C, O) {
2779
- return p(C, "".concat(x, "-").concat(v.tag, "-").concat(O));
2781
+ }, f(v.attrs)), _), (v.children || []).map(function(C, E) {
2782
+ return p(C, "".concat(x, "-").concat(v.tag, "-").concat(E));
2780
2783
  })) : /* @__PURE__ */ o.default.createElement(v.tag, (0, r.default)({
2781
2784
  key: x
2782
- }, f(v.attrs)), (v.children || []).map(function(C, O) {
2783
- return p(C, "".concat(x, "-").concat(v.tag, "-").concat(O));
2785
+ }, f(v.attrs)), (v.children || []).map(function(C, E) {
2786
+ return p(C, "".concat(x, "-").concat(v.tag, "-").concat(E));
2784
2787
  }));
2785
2788
  }
2786
2789
  function h(v) {
@@ -2945,7 +2948,7 @@ function requireAntdIcon() {
2945
2948
  var r = e(requireObjectSpread2()), n = e(requireSlicedToArray()), a = e(requireDefineProperty()), o = e(requireObjectWithoutProperties()), s = t(React__default), u = e(requireClassnames()), l = e(requireContext$2()), c = e(requireIconBase()), d = requireTwoTonePrimaryColor(), f = requireUtils(), p = ["className", "icon", "spin", "rotate", "tabIndex", "onClick", "twoToneColor"];
2946
2949
  (0, d.setTwoToneColor)("#1890ff");
2947
2950
  var h = /* @__PURE__ */ s.forwardRef(function(y, b) {
2948
- var g, v = y.className, x = y.icon, _ = y.spin, C = y.rotate, O = y.tabIndex, F = y.onClick, w = y.twoToneColor, S = (0, o.default)(y, p), T = s.useContext(l.default), I = T.prefixCls, q = I === void 0 ? "anticon" : I, M = (0, u.default)(q, (g = {}, (0, a.default)(g, "".concat(q, "-").concat(x.name), !!x.name), (0, a.default)(g, "".concat(q, "-spin"), !!_ || x.name === "loading"), g), v), D = O;
2951
+ var g, v = y.className, x = y.icon, _ = y.spin, C = y.rotate, E = y.tabIndex, F = y.onClick, w = y.twoToneColor, S = (0, o.default)(y, p), T = s.useContext(l.default), I = T.prefixCls, q = I === void 0 ? "anticon" : I, M = (0, u.default)(q, (g = {}, (0, a.default)(g, "".concat(q, "-").concat(x.name), !!x.name), (0, a.default)(g, "".concat(q, "-spin"), !!_ || x.name === "loading"), g), v), D = E;
2949
2952
  D === void 0 && F && (D = -1);
2950
2953
  var j = C ? {
2951
2954
  msTransform: "rotate(".concat(C, "deg)"),
@@ -3213,7 +3216,7 @@ function requireRegeneratorRuntime() {
3213
3216
  });
3214
3217
  });
3215
3218
  }
3216
- function O(M, D) {
3219
+ function E(M, D) {
3217
3220
  function j(V, A, W, Y) {
3218
3221
  var z = p(M[V], M, A);
3219
3222
  if (z.type !== "throw") {
@@ -3307,11 +3310,11 @@ function requireRegeneratorRuntime() {
3307
3310
  return {
3308
3311
  __await: M
3309
3312
  };
3310
- }, C(O.prototype), d(O.prototype, l, function() {
3313
+ }, C(E.prototype), d(E.prototype, l, function() {
3311
3314
  return this;
3312
- }), n.AsyncIterator = O, n.async = function(M, D, j, N, V) {
3315
+ }), n.AsyncIterator = E, n.async = function(M, D, j, N, V) {
3313
3316
  V === void 0 && (V = Promise);
3314
- var A = new O(f(M, D, j, N), V);
3317
+ var A = new E(f(M, D, j, N), V);
3315
3318
  return n.isGeneratorFunction(D) ? A : A.next().then(function(W) {
3316
3319
  return W.done ? W.value : A.next();
3317
3320
  });
@@ -4024,14 +4027,14 @@ Schema.prototype = {
4024
4027
  return asyncMap(p, s, function(y, b) {
4025
4028
  var g = y.rule, v = (g.type === "object" || g.type === "array") && (typeof g.fields == "object" || typeof g.defaultField == "object");
4026
4029
  v = v && (g.required || !g.required && y.value), g.field = y.field;
4027
- function x(O, F) {
4030
+ function x(E, F) {
4028
4031
  return _extends(_extends({}, F), {}, {
4029
- fullField: g.fullField + "." + O
4032
+ fullField: g.fullField + "." + E
4030
4033
  });
4031
4034
  }
4032
- function _(O) {
4033
- O === void 0 && (O = []);
4034
- var F = O;
4035
+ function _(E) {
4036
+ E === void 0 && (E = []);
4037
+ var F = E;
4035
4038
  if (Array.isArray(F) || (F = [F]), !s.suppressWarning && F.length && Schema.warning("async-validator:", F), F.length && g.message !== void 0 && (F = [].concat(g.message)), F = F.map(complementError(g)), s.first && F.length)
4036
4039
  return m[g.field] = 1, b(F);
4037
4040
  if (!v)
@@ -4059,8 +4062,8 @@ Schema.prototype = {
4059
4062
  var C;
4060
4063
  g.asyncValidator ? C = g.asyncValidator(g, y.value, _, y.source, s) : g.validator && (C = g.validator(g, y.value, _, y.source, s), C === !0 ? _() : C === !1 ? _(g.message || g.field + " fails") : C instanceof Array ? _(C) : C instanceof Error && _(C.message)), C && C.then && C.then(function() {
4061
4064
  return _();
4062
- }, function(O) {
4063
- return _(O);
4065
+ }, function(E) {
4066
+ return _(E);
4064
4067
  });
4065
4068
  }, function(y) {
4066
4069
  l(y);
@@ -4322,8 +4325,8 @@ function validateRules(e, t, r, n, a, o) {
4322
4325
  return f ? _objectSpread2$1(_objectSpread2$1({}, d), {}, {
4323
4326
  validator: function(h, m, y) {
4324
4327
  var b = !1, g = function() {
4325
- for (var _ = arguments.length, C = new Array(_), O = 0; O < _; O++)
4326
- C[O] = arguments[O];
4328
+ for (var _ = arguments.length, C = new Array(_), E = 0; E < _; E++)
4329
+ C[E] = arguments[E];
4327
4330
  Promise.resolve().then(function() {
4328
4331
  warningOnce(!b, "Your validator function has already return a promise. `callback` will be ignored."), b || y.apply(void 0, C);
4329
4332
  });
@@ -4480,8 +4483,8 @@ var Field = /* @__PURE__ */ function(e) {
4480
4483
  break;
4481
4484
  }
4482
4485
  case "dependenciesUpdate": {
4483
- var O = m.map(getNamePath);
4484
- if (O.some(function(F) {
4486
+ var E = m.map(getNamePath);
4487
+ if (E.some(function(F) {
4485
4488
  return containsNamePath(d.relatedFields, F);
4486
4489
  })) {
4487
4490
  a.reRender();
@@ -4506,8 +4509,8 @@ var Field = /* @__PURE__ */ function(e) {
4506
4509
  var C = _.validateTrigger;
4507
4510
  if (!C)
4508
4511
  return !0;
4509
- var O = toArray$2(C);
4510
- return O.includes(g);
4512
+ var E = toArray$2(C);
4513
+ return E.includes(g);
4511
4514
  }));
4512
4515
  var x = validateRules(c, d, v, l, m, y);
4513
4516
  return x.catch(function(_) {
@@ -4560,14 +4563,14 @@ var Field = /* @__PURE__ */ function(e) {
4560
4563
  var c = a.props.fieldContext.getFieldsValue, d = a.getNamePath();
4561
4564
  return getValue(l || c(!0), d);
4562
4565
  }, a.getControlled = function() {
4563
- var l = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, c = a.props, d = c.trigger, f = c.validateTrigger, p = c.getValueFromEvent, h = c.normalize, m = c.valuePropName, y = c.getValueProps, b = c.fieldContext, g = f !== void 0 ? f : b.validateTrigger, v = a.getNamePath(), x = b.getInternalHooks, _ = b.getFieldsValue, C = x(HOOK_MARK), O = C.dispatch, F = a.getValue(), w = y || function(q) {
4566
+ var l = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, c = a.props, d = c.trigger, f = c.validateTrigger, p = c.getValueFromEvent, h = c.normalize, m = c.valuePropName, y = c.getValueProps, b = c.fieldContext, g = f !== void 0 ? f : b.validateTrigger, v = a.getNamePath(), x = b.getInternalHooks, _ = b.getFieldsValue, C = x(HOOK_MARK), E = C.dispatch, F = a.getValue(), w = y || function(q) {
4564
4567
  return _defineProperty$1({}, m, q);
4565
4568
  }, S = l[d], T = _objectSpread2$1(_objectSpread2$1({}, l), w(F));
4566
4569
  T[d] = function() {
4567
4570
  a.touched = !0, a.dirty = !0;
4568
4571
  for (var q, M = arguments.length, D = new Array(M), j = 0; j < M; j++)
4569
4572
  D[j] = arguments[j];
4570
- p ? q = p.apply(void 0, D) : q = defaultGetValueFromEvent.apply(void 0, [m].concat(D)), h && (q = h(q, F, _(!0))), O({
4573
+ p ? q = p.apply(void 0, D) : q = defaultGetValueFromEvent.apply(void 0, [m].concat(D)), h && (q = h(q, F, _(!0))), E({
4571
4574
  type: "updateValue",
4572
4575
  namePath: v,
4573
4576
  value: q
@@ -4579,7 +4582,7 @@ var Field = /* @__PURE__ */ function(e) {
4579
4582
  T[q] = function() {
4580
4583
  M && M.apply(void 0, arguments);
4581
4584
  var D = a.props.rules;
4582
- D && D.length && O({
4585
+ D && D.length && E({
4583
4586
  type: "validateField",
4584
4587
  namePath: v,
4585
4588
  triggerName: q
@@ -4682,7 +4685,7 @@ var List = function(t) {
4682
4685
  }
4683
4686
  }
4684
4687
  }, C = b || [];
4685
- return Array.isArray(C) || (C = [], process.env.NODE_ENV !== "production" && warningOnce(!1, "Current value of '".concat(f.join(" > "), "' is not an array type."))), a(C.map(function(O, F) {
4688
+ return Array.isArray(C) || (C = [], process.env.NODE_ENV !== "production" && warningOnce(!1, "Current value of '".concat(f.join(" > "), "' is not an array type."))), a(C.map(function(E, F) {
4686
4689
  var w = c.keys[F];
4687
4690
  return w === void 0 && (c.keys[F] = c.id, w = c.keys[F], c.id += 1), {
4688
4691
  name: F,
@@ -5257,14 +5260,14 @@ var FormContext = /* @__PURE__ */ React.createContext({
5257
5260
  children: o
5258
5261
  });
5259
5262
  }, Form$2 = function(t, r) {
5260
- var n = t.name, a = t.initialValues, o = t.fields, s = t.form, u = t.preserve, l = t.children, c = t.component, d = c === void 0 ? "form" : c, f = t.validateMessages, p = t.validateTrigger, h = p === void 0 ? "onChange" : p, m = t.onValuesChange, y = t.onFieldsChange, b = t.onFinish, g = t.onFinishFailed, v = _objectWithoutProperties(t, ["name", "initialValues", "fields", "form", "preserve", "children", "component", "validateMessages", "validateTrigger", "onValuesChange", "onFieldsChange", "onFinish", "onFinishFailed"]), x = React.useContext(FormContext), _ = useForm(s), C = _slicedToArray(_, 1), O = C[0], F = O.getInternalHooks(HOOK_MARK), w = F.useSubscribe, S = F.setInitialValues, T = F.setCallbacks, I = F.setValidateMessages, q = F.setPreserve;
5263
+ var n = t.name, a = t.initialValues, o = t.fields, s = t.form, u = t.preserve, l = t.children, c = t.component, d = c === void 0 ? "form" : c, f = t.validateMessages, p = t.validateTrigger, h = p === void 0 ? "onChange" : p, m = t.onValuesChange, y = t.onFieldsChange, b = t.onFinish, g = t.onFinishFailed, v = _objectWithoutProperties(t, ["name", "initialValues", "fields", "form", "preserve", "children", "component", "validateMessages", "validateTrigger", "onValuesChange", "onFieldsChange", "onFinish", "onFinishFailed"]), x = React.useContext(FormContext), _ = useForm(s), C = _slicedToArray(_, 1), E = C[0], F = E.getInternalHooks(HOOK_MARK), w = F.useSubscribe, S = F.setInitialValues, T = F.setCallbacks, I = F.setValidateMessages, q = F.setPreserve;
5261
5264
  React.useImperativeHandle(r, function() {
5262
- return O;
5265
+ return E;
5263
5266
  }), React.useEffect(function() {
5264
- return x.registerForm(n, O), function() {
5267
+ return x.registerForm(n, E), function() {
5265
5268
  x.unregisterForm(n);
5266
5269
  };
5267
- }, [x, O, n]), I(_objectSpread2$1(_objectSpread2$1({}, x.validateMessages), f)), T({
5270
+ }, [x, E, n]), I(_objectSpread2$1(_objectSpread2$1({}, x.validateMessages), f)), T({
5268
5271
  onValuesChange: m,
5269
5272
  onFieldsChange: function(z) {
5270
5273
  if (x.triggerFormChange(n, z), y) {
@@ -5282,26 +5285,26 @@ var FormContext = /* @__PURE__ */ React.createContext({
5282
5285
  S(a, !M.current), M.current || (M.current = !0);
5283
5286
  var D = l, j = typeof l == "function";
5284
5287
  if (j) {
5285
- var N = O.getFieldsValue(!0);
5286
- D = l(N, O);
5288
+ var N = E.getFieldsValue(!0);
5289
+ D = l(N, E);
5287
5290
  }
5288
5291
  w(!j);
5289
5292
  var V = React.useRef();
5290
5293
  React.useEffect(function() {
5291
- isSimilar(V.current || [], o || []) || O.setFields(o || []), V.current = o;
5292
- }, [o, O]);
5294
+ isSimilar(V.current || [], o || []) || E.setFields(o || []), V.current = o;
5295
+ }, [o, E]);
5293
5296
  var A = React.useMemo(function() {
5294
- return _objectSpread2$1(_objectSpread2$1({}, O), {}, {
5297
+ return _objectSpread2$1(_objectSpread2$1({}, E), {}, {
5295
5298
  validateTrigger: h
5296
5299
  });
5297
- }, [O, h]), W = /* @__PURE__ */ jsx(Context.Provider, {
5300
+ }, [E, h]), W = /* @__PURE__ */ jsx(Context.Provider, {
5298
5301
  value: A,
5299
5302
  children: D
5300
5303
  });
5301
5304
  return d === !1 ? W : /* @__PURE__ */ jsx(d, {
5302
5305
  ...v,
5303
5306
  onSubmit: function(z) {
5304
- z.preventDefault(), z.stopPropagation(), O.submit();
5307
+ z.preventDefault(), z.stopPropagation(), E.submit();
5305
5308
  },
5306
5309
  children: W
5307
5310
  });
@@ -5720,8 +5723,8 @@ function requireLocaleReceiver() {
5720
5723
  return (0, o.default)(y, [{
5721
5724
  key: "getLocale",
5722
5725
  value: function() {
5723
- var g = this.props, v = g.componentName, x = g.defaultLocale, _ = x || c.default[v || "global"], C = this.context, O = v && C ? C[v] : {};
5724
- return (0, n.default)((0, n.default)({}, typeof _ == "function" ? _() : _), O || {});
5726
+ var g = this.props, v = g.componentName, x = g.defaultLocale, _ = x || c.default[v || "global"], C = this.context, E = v && C ? C[v] : {};
5727
+ return (0, n.default)((0, n.default)({}, typeof _ == "function" ? _() : _), E || {});
5725
5728
  }
5726
5729
  }, {
5727
5730
  key: "getLocaleCode",
@@ -5859,11 +5862,11 @@ function requireEmpty() {
5859
5862
  g.indexOf(x[_]) < 0 && Object.prototype.propertyIsEnumerable.call(b, x[_]) && (v[x[_]] = b[x[_]]);
5860
5863
  return v;
5861
5864
  }, p = /* @__PURE__ */ o.createElement(c.default, null), h = /* @__PURE__ */ o.createElement(d.default, null), m = function(g) {
5862
- var v = g.className, x = g.prefixCls, _ = g.image, C = _ === void 0 ? p : _, O = g.description, F = g.children, w = g.imageStyle, S = f(g, ["className", "prefixCls", "image", "description", "children", "imageStyle"]), T = o.useContext(u.ConfigContext), I = T.getPrefixCls, q = T.direction;
5865
+ var v = g.className, x = g.prefixCls, _ = g.image, C = _ === void 0 ? p : _, E = g.description, F = g.children, w = g.imageStyle, S = f(g, ["className", "prefixCls", "image", "description", "children", "imageStyle"]), T = o.useContext(u.ConfigContext), I = T.getPrefixCls, q = T.direction;
5863
5866
  return /* @__PURE__ */ o.createElement(l.default, {
5864
5867
  componentName: "Empty"
5865
5868
  }, function(M) {
5866
- var D, j = I("empty", x), N = typeof O < "u" ? O : M.description, V = typeof N == "string" ? N : "empty", A = null;
5869
+ var D, j = I("empty", x), N = typeof E < "u" ? E : M.description, V = typeof N == "string" ? N : "empty", A = null;
5867
5870
  return typeof C == "string" ? A = /* @__PURE__ */ o.createElement("img", {
5868
5871
  alt: V,
5869
5872
  src: C
@@ -6107,7 +6110,7 @@ const useStepQueue = function(e, t) {
6107
6110
  }, []), [o, a];
6108
6111
  };
6109
6112
  function useStatus(e, t, r, n) {
6110
- var a = n.motionEnter, o = a === void 0 ? !0 : a, s = n.motionAppear, u = s === void 0 ? !0 : s, l = n.motionLeave, c = l === void 0 ? !0 : l, d = n.motionDeadline, f = n.motionLeaveImmediately, p = n.onAppearPrepare, h = n.onEnterPrepare, m = n.onLeavePrepare, y = n.onAppearStart, b = n.onEnterStart, g = n.onLeaveStart, v = n.onAppearActive, x = n.onEnterActive, _ = n.onLeaveActive, C = n.onAppearEnd, O = n.onEnterEnd, F = n.onLeaveEnd, w = n.onVisibleChanged, S = useMountStatus(), T = _slicedToArray(S, 2), I = T[0], q = T[1], M = useMountStatus(STATUS_NONE), D = _slicedToArray(M, 2), j = D[0], N = D[1], V = useMountStatus(null), A = _slicedToArray(V, 2), W = A[0], Y = A[1], z = useRef(!1), H = useRef(null), K = useRef(!1), U = useRef(null);
6113
+ var a = n.motionEnter, o = a === void 0 ? !0 : a, s = n.motionAppear, u = s === void 0 ? !0 : s, l = n.motionLeave, c = l === void 0 ? !0 : l, d = n.motionDeadline, f = n.motionLeaveImmediately, p = n.onAppearPrepare, h = n.onEnterPrepare, m = n.onLeavePrepare, y = n.onAppearStart, b = n.onEnterStart, g = n.onLeaveStart, v = n.onAppearActive, x = n.onEnterActive, _ = n.onLeaveActive, C = n.onAppearEnd, E = n.onEnterEnd, F = n.onLeaveEnd, w = n.onVisibleChanged, S = useMountStatus(), T = _slicedToArray(S, 2), I = T[0], q = T[1], M = useMountStatus(STATUS_NONE), D = _slicedToArray(M, 2), j = D[0], N = D[1], V = useMountStatus(null), A = _slicedToArray(V, 2), W = A[0], Y = A[1], z = useRef(!1), H = useRef(null), K = useRef(!1), U = useRef(null);
6111
6114
  function B() {
6112
6115
  var te = r();
6113
6116
  return te || U.current;
@@ -6117,7 +6120,7 @@ function useStatus(e, t, r, n) {
6117
6120
  var oe = B();
6118
6121
  if (!(te && !te.deadline && te.target !== oe)) {
6119
6122
  var se;
6120
- j === STATUS_APPEAR && k.current ? se = C == null ? void 0 : C(oe, te) : j === STATUS_ENTER && k.current ? se = O == null ? void 0 : O(oe, te) : j === STATUS_LEAVE && k.current && (se = F == null ? void 0 : F(oe, te)), se !== !1 && !K.current && (N(STATUS_NONE), Y(null));
6123
+ j === STATUS_APPEAR && k.current ? se = C == null ? void 0 : C(oe, te) : j === STATUS_ENTER && k.current ? se = E == null ? void 0 : E(oe, te) : j === STATUS_LEAVE && k.current && (se = F == null ? void 0 : F(oe, te)), se !== !1 && !K.current && (N(STATUS_NONE), Y(null));
6121
6124
  }
6122
6125
  }
6123
6126
  var L = useDomMotionEvents($), G = _slicedToArray(L, 1), Z = G[0], P = React.useMemo(function() {
@@ -6132,7 +6135,7 @@ function useStatus(e, t, r, n) {
6132
6135
  default:
6133
6136
  return {};
6134
6137
  }
6135
- }, [j]), E = useStepQueue(j, function(te) {
6138
+ }, [j]), O = useStepQueue(j, function(te) {
6136
6139
  if (te === STEP_PREPARE) {
6137
6140
  var oe = P[STEP_PREPARE];
6138
6141
  return oe ? oe(B()) : SkipStep;
@@ -6146,7 +6149,7 @@ function useStatus(e, t, r, n) {
6146
6149
  deadline: !0
6147
6150
  });
6148
6151
  }, d))), DoStep;
6149
- }), X = _slicedToArray(E, 2), J = X[0], ee = X[1], Q = isActive(ee);
6152
+ }), X = _slicedToArray(O, 2), J = X[0], ee = X[1], Q = isActive(ee);
6150
6153
  k.current = Q, useIsomorphicLayoutEffect(function() {
6151
6154
  if (q(t), !!e) {
6152
6155
  var te = z.current;
@@ -6196,7 +6199,7 @@ function genCSSMotion(e) {
6196
6199
  return null;
6197
6200
  }
6198
6201
  }
6199
- var x = useStatus(y, u, v, a), _ = _slicedToArray(x, 4), C = _[0], O = _[1], F = _[2], w = _[3], S = useRef(o);
6202
+ var x = useStatus(y, u, v, a), _ = _slicedToArray(x, 4), C = _[0], E = _[1], F = _[2], w = _[3], S = useRef(o);
6200
6203
  S.current = o;
6201
6204
  var T = React.useCallback(function(j) {
6202
6205
  b.current = j, fillRef(S.current, j);
@@ -6215,7 +6218,7 @@ function genCSSMotion(e) {
6215
6218
  }), T);
6216
6219
  else {
6217
6220
  var M, D;
6218
- O === STEP_PREPARE ? D = "prepare" : isActive(O) ? D = "active" : O === STEP_START && (D = "start"), I = f(_objectSpread2$1(_objectSpread2$1({}, q), {}, {
6221
+ E === STEP_PREPARE ? D = "prepare" : isActive(E) ? D = "active" : E === STEP_START && (D = "start"), I = f(_objectSpread2$1(_objectSpread2$1({}, q), {}, {
6219
6222
  className: classnamesExports(getTransitionName$1(p, C), (M = {}, _defineProperty$1(M, getTransitionName$1(p, "".concat(C, "-").concat(D)), D), _defineProperty$1(M, p, typeof p == "string"), M)),
6220
6223
  style: F
6221
6224
  }), T);
@@ -6504,8 +6507,8 @@ var Notification = /* @__PURE__ */ function(e) {
6504
6507
  noticeKey: v || g,
6505
6508
  updateMark: b,
6506
6509
  onClose: function(C) {
6507
- var O;
6508
- a.remove(C), (O = m.onClose) === null || O === void 0 || O.call(m);
6510
+ var E;
6511
+ a.remove(C), (E = m.onClose) === null || E === void 0 || E.call(m);
6509
6512
  },
6510
6513
  onClick: m.onClick,
6511
6514
  children: m.content
@@ -6808,14 +6811,14 @@ function requireNotice() {
6808
6811
  }, {
6809
6812
  key: "render",
6810
6813
  value: function() {
6811
- var y = this, b = this.props, g = b.prefixCls, v = b.className, x = b.closable, _ = b.closeIcon, C = b.style, O = b.onClick, F = b.children, w = b.holder, S = "".concat(g, "-notice"), T = Object.keys(this.props).reduce(function(q, M) {
6814
+ var y = this, b = this.props, g = b.prefixCls, v = b.className, x = b.closable, _ = b.closeIcon, C = b.style, E = b.onClick, F = b.children, w = b.holder, S = "".concat(g, "-notice"), T = Object.keys(this.props).reduce(function(q, M) {
6812
6815
  return (M.substr(0, 5) === "data-" || M.substr(0, 5) === "aria-" || M === "role") && (q[M] = y.props[M]), q;
6813
6816
  }, {}), I = u.createElement("div", Object.assign({
6814
6817
  className: (0, c.default)(S, v, (0, r.default)({}, "".concat(S, "-closable"), x)),
6815
6818
  style: C,
6816
6819
  onMouseEnter: this.clearCloseTimer,
6817
6820
  onMouseLeave: this.startCloseTimer,
6818
- onClick: O
6821
+ onClick: E
6819
6822
  }, T), u.createElement("div", {
6820
6823
  className: "".concat(S, "-content")
6821
6824
  }, F), x ? u.createElement("a", {
@@ -6900,10 +6903,10 @@ function requireUseMessage() {
6900
6903
  return I.then(M, D);
6901
6904
  }, q.promise = I, q;
6902
6905
  }
6903
- var O = o.useRef({});
6904
- return O.current.open = C, ["success", "info", "warning", "error", "loading"].forEach(function(F) {
6905
- return (0, l.attachTypeApi)(O.current, F);
6906
- }), [O.current, /* @__PURE__ */ o.createElement(u.ConfigConsumer, {
6906
+ var E = o.useRef({});
6907
+ return E.current.open = C, ["success", "info", "warning", "error", "loading"].forEach(function(F) {
6908
+ return (0, l.attachTypeApi)(E.current, F);
6909
+ }), [E.current, /* @__PURE__ */ o.createElement(u.ConfigConsumer, {
6907
6910
  key: "holder"
6908
6911
  }, function(F) {
6909
6912
  return m = F.getPrefixCls, _;
@@ -6920,12 +6923,12 @@ function requireMessage() {
6920
6923
  Object.defineProperty(e, "__esModule", {
6921
6924
  value: !0
6922
6925
  }), e.getKeyThenIncreaseKey = F, e.attachTypeApi = j, e.default = e.getInstance = void 0;
6923
- var n = r(require_extends()), a = r(requireDefineProperty()), o = t(React__default), s = r(requireClassnames()), u = r(require$$6$1), l = r(requireLoadingOutlined()), c = r(requireExclamationCircleFilled()), d = r(requireCloseCircleFilled()), f = r(requireCheckCircleFilled()), p = r(requireInfoCircleFilled()), h = r(requireUseMessage()), m, y = 3, b, g = 1, v = "ant-message", x = "move-up", _, C, O = !1;
6926
+ var n = r(require_extends()), a = r(requireDefineProperty()), o = t(React__default), s = r(requireClassnames()), u = r(require$$6$1), l = r(requireLoadingOutlined()), c = r(requireExclamationCircleFilled()), d = r(requireCloseCircleFilled()), f = r(requireCheckCircleFilled()), p = r(requireInfoCircleFilled()), h = r(requireUseMessage()), m, y = 3, b, g = 1, v = "ant-message", x = "move-up", _, C, E = !1;
6924
6927
  function F() {
6925
6928
  return g++;
6926
6929
  }
6927
6930
  function w(A) {
6928
- A.top !== void 0 && (b = A.top, m = null), A.duration !== void 0 && (y = A.duration), A.prefixCls !== void 0 && (v = A.prefixCls), A.getContainer !== void 0 && (_ = A.getContainer), A.transitionName !== void 0 && (x = A.transitionName, m = null), A.maxCount !== void 0 && (C = A.maxCount, m = null), A.rtl !== void 0 && (O = A.rtl);
6931
+ A.top !== void 0 && (b = A.top, m = null), A.duration !== void 0 && (y = A.duration), A.prefixCls !== void 0 && (v = A.prefixCls), A.getContainer !== void 0 && (_ = A.getContainer), A.transitionName !== void 0 && (x = A.transitionName, m = null), A.maxCount !== void 0 && (C = A.maxCount, m = null), A.rtl !== void 0 && (E = A.rtl);
6929
6932
  }
6930
6933
  function S(A, W) {
6931
6934
  var Y = A.prefixCls || v;
@@ -6966,7 +6969,7 @@ function requireMessage() {
6966
6969
  loading: l.default
6967
6970
  };
6968
6971
  function I(A, W) {
6969
- var Y, z = A.duration !== void 0 ? A.duration : y, H = T[A.type], K = (0, s.default)("".concat(W, "-custom-content"), (Y = {}, (0, a.default)(Y, "".concat(W, "-").concat(A.type), A.type), (0, a.default)(Y, "".concat(W, "-rtl"), O === !0), Y));
6972
+ var Y, z = A.duration !== void 0 ? A.duration : y, H = T[A.type], K = (0, s.default)("".concat(W, "-custom-content"), (Y = {}, (0, a.default)(Y, "".concat(W, "-").concat(A.type), A.type), (0, a.default)(Y, "".concat(W, "-rtl"), E === !0), Y));
6970
6973
  return {
6971
6974
  key: A.key,
6972
6975
  duration: z,
@@ -7258,26 +7261,26 @@ function requireUseNotification() {
7258
7261
  m == null || m.component.add(F, w);
7259
7262
  }
7260
7263
  }, b = (0, s.default)(y), g = (0, a.default)(b, 2), v = g[0], x = g[1];
7261
- function _(O) {
7262
- var F = O.prefixCls, w = h("notification", F);
7263
- c((0, n.default)((0, n.default)({}, O), {
7264
+ function _(E) {
7265
+ var F = E.prefixCls, w = h("notification", F);
7266
+ c((0, n.default)((0, n.default)({}, E), {
7264
7267
  prefixCls: w
7265
7268
  }), function(S) {
7266
7269
  var T = S.prefixCls, I = S.instance;
7267
- m = I, v(d(O, T));
7270
+ m = I, v(d(E, T));
7268
7271
  });
7269
7272
  }
7270
7273
  var C = o.useRef({});
7271
- return C.current.open = _, ["success", "info", "warning", "error"].forEach(function(O) {
7272
- C.current[O] = function(F) {
7274
+ return C.current.open = _, ["success", "info", "warning", "error"].forEach(function(E) {
7275
+ C.current[E] = function(F) {
7273
7276
  return C.current.open((0, n.default)((0, n.default)({}, F), {
7274
- type: O
7277
+ type: E
7275
7278
  }));
7276
7279
  };
7277
7280
  }), [C.current, /* @__PURE__ */ o.createElement(u.ConfigConsumer, {
7278
7281
  key: "holder"
7279
- }, function(O) {
7280
- return h = O.getPrefixCls, x;
7282
+ }, function(E) {
7283
+ return h = E.getPrefixCls, x;
7281
7284
  })];
7282
7285
  };
7283
7286
  return f;
@@ -7317,10 +7320,10 @@ function requireNotification() {
7317
7320
  }
7318
7321
  $((z = z.apply(A, W || [])).next());
7319
7322
  });
7320
- }, b = {}, g = 4.5, v = 24, x = 24, _ = "ant-notification", C = "topRight", O, F, w = !1;
7323
+ }, b = {}, g = 4.5, v = 24, x = 24, _ = "ant-notification", C = "topRight", E, F, w = !1;
7321
7324
  function S(A) {
7322
7325
  var W = A.duration, Y = A.placement, z = A.bottom, H = A.top, K = A.getContainer, U = A.closeIcon, B = A.prefixCls;
7323
- B !== void 0 && (_ = B), W !== void 0 && (g = W), Y !== void 0 ? C = Y : A.rtl && (C = "topLeft"), z !== void 0 && (x = z), H !== void 0 && (v = H), K !== void 0 && (O = K), U !== void 0 && (F = U), A.rtl !== void 0 && (w = A.rtl);
7326
+ B !== void 0 && (_ = B), W !== void 0 && (g = W), Y !== void 0 ? C = Y : A.rtl && (C = "topLeft"), z !== void 0 && (x = z), H !== void 0 && (v = H), K !== void 0 && (E = K), U !== void 0 && (F = U), A.rtl !== void 0 && (w = A.rtl);
7324
7327
  }
7325
7328
  function T(A) {
7326
7329
  var W = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : v, Y = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : x, z;
@@ -7357,7 +7360,7 @@ function requireNotification() {
7357
7360
  return z;
7358
7361
  }
7359
7362
  function I(A, W) {
7360
- var Y = A.placement, z = Y === void 0 ? C : Y, H = A.top, K = A.bottom, U = A.getContainer, B = U === void 0 ? O : U, k = A.closeIcon, $ = k === void 0 ? F : k, L = A.prefixCls || _, G = "".concat(L, "-notice"), Z = "".concat(L, "-").concat(z), P = b[Z];
7363
+ var Y = A.placement, z = Y === void 0 ? C : Y, H = A.top, K = A.bottom, U = A.getContainer, B = U === void 0 ? E : U, k = A.closeIcon, $ = k === void 0 ? F : k, L = A.prefixCls || _, G = "".concat(L, "-notice"), Z = "".concat(L, "-").concat(z), P = b[Z];
7361
7364
  if (P) {
7362
7365
  Promise.resolve(P).then(function(J) {
7363
7366
  W({
@@ -7367,7 +7370,7 @@ function requireNotification() {
7367
7370
  });
7368
7371
  return;
7369
7372
  }
7370
- var E = /* @__PURE__ */ s.createElement("span", {
7373
+ var O = /* @__PURE__ */ s.createElement("span", {
7371
7374
  className: "".concat(L, "-close-x")
7372
7375
  }, $ || /* @__PURE__ */ s.createElement(l.default, {
7373
7376
  className: "".concat(L, "-close-icon")
@@ -7378,7 +7381,7 @@ function requireNotification() {
7378
7381
  className: X,
7379
7382
  style: T(z, H, K),
7380
7383
  getContainer: B,
7381
- closeIcon: E
7384
+ closeIcon: O
7382
7385
  }, function(ee) {
7383
7386
  J(ee), W({
7384
7387
  prefixCls: G,
@@ -7493,14 +7496,14 @@ function requireConfigProvider() {
7493
7496
  var n = r(require_extends()), a = t(React__default), o = r(requireContext$2()), s = require$$5, u = r(requireUseMemo()), l = t(requireLocaleProvider()), c = r(requireLocaleReceiver()), d = requireContext(), f = t(requireSizeContext()), p = r(requireMessage()), h = r(requireNotification()), m = ["getTargetContainer", "getPopupContainer", "rootPrefixCls", "getPrefixCls", "renderEmpty", "csp", "autoInsertSpaceInButton", "locale", "pageHeader"];
7494
7497
  e.configConsumerProps = m;
7495
7498
  var y = ["getTargetContainer", "getPopupContainer", "renderEmpty", "pageHeader", "input", "form"], b = function(_) {
7496
- var C = _.children, O = _.csp, F = _.autoInsertSpaceInButton, w = _.form, S = _.locale, T = _.componentSize, I = _.direction, q = _.space, M = _.virtual, D = _.dropdownMatchSelectWidth, j = _.legacyLocale, N = _.parentContext, V = _.iconPrefixCls, A = a.useCallback(function(U, B) {
7499
+ var C = _.children, E = _.csp, F = _.autoInsertSpaceInButton, w = _.form, S = _.locale, T = _.componentSize, I = _.direction, q = _.space, M = _.virtual, D = _.dropdownMatchSelectWidth, j = _.legacyLocale, N = _.parentContext, V = _.iconPrefixCls, A = a.useCallback(function(U, B) {
7497
7500
  var k = _.prefixCls;
7498
7501
  if (B)
7499
7502
  return B;
7500
7503
  var $ = k || N.getPrefixCls("");
7501
7504
  return U ? "".concat($, "-").concat(U) : $;
7502
7505
  }, [N.getPrefixCls]), W = (0, n.default)((0, n.default)({}, N), {
7503
- csp: O,
7506
+ csp: E,
7504
7507
  autoInsertSpaceInButton: F,
7505
7508
  locale: S || j,
7506
7509
  direction: I,
@@ -7544,7 +7547,7 @@ function requireConfigProvider() {
7544
7547
  }), h.default.config({
7545
7548
  rtl: _.direction === "rtl"
7546
7549
  }));
7547
- }, [_.direction]), /* @__PURE__ */ a.createElement(c.default, null, function(C, O, F) {
7550
+ }, [_.direction]), /* @__PURE__ */ a.createElement(c.default, null, function(C, E, F) {
7548
7551
  return /* @__PURE__ */ a.createElement(d.ConfigConsumer, null, function(w) {
7549
7552
  return /* @__PURE__ */ a.createElement(b, (0, n.default)({
7550
7553
  parentContext: w,
@@ -7566,46 +7569,46 @@ function requireInput() {
7566
7569
  value: !0
7567
7570
  }), e.fixControlledValue = b, e.resolveOnChange = g, e.getInputClassName = v, e.triggerFocus = x, e.default = void 0;
7568
7571
  var n = r(require_extends()), a = r(requireClassCallCheck()), o = r(requireCreateClass()), s = r(requireInherits()), u = r(requireCreateSuper()), l = r(requireDefineProperty()), c = t(React__default), d = r(requireClassnames()), f = r(requireOmit()), p = t(requireClearableLabeledInput()), h = requireConfigProvider(), m = r(requireSizeContext()), y = r(requireDevWarning());
7569
- function b(O) {
7570
- return typeof O > "u" || O === null ? "" : O;
7572
+ function b(E) {
7573
+ return typeof E > "u" || E === null ? "" : E;
7571
7574
  }
7572
- function g(O, F, w) {
7575
+ function g(E, F, w) {
7573
7576
  if (w) {
7574
7577
  var S = F;
7575
7578
  if (F.type === "click") {
7576
- S = Object.create(F), S.target = O, S.currentTarget = O;
7577
- var T = O.value;
7578
- O.value = "", w(S), O.value = T;
7579
+ S = Object.create(F), S.target = E, S.currentTarget = E;
7580
+ var T = E.value;
7581
+ E.value = "", w(S), E.value = T;
7579
7582
  return;
7580
7583
  }
7581
7584
  w(S);
7582
7585
  }
7583
7586
  }
7584
- function v(O, F, w, S, T) {
7587
+ function v(E, F, w, S, T) {
7585
7588
  var I;
7586
- return (0, d.default)(O, (I = {}, (0, l.default)(I, "".concat(O, "-sm"), w === "small"), (0, l.default)(I, "".concat(O, "-lg"), w === "large"), (0, l.default)(I, "".concat(O, "-disabled"), S), (0, l.default)(I, "".concat(O, "-rtl"), T === "rtl"), (0, l.default)(I, "".concat(O, "-borderless"), !F), I));
7589
+ return (0, d.default)(E, (I = {}, (0, l.default)(I, "".concat(E, "-sm"), w === "small"), (0, l.default)(I, "".concat(E, "-lg"), w === "large"), (0, l.default)(I, "".concat(E, "-disabled"), S), (0, l.default)(I, "".concat(E, "-rtl"), T === "rtl"), (0, l.default)(I, "".concat(E, "-borderless"), !F), I));
7587
7590
  }
7588
- function x(O, F) {
7589
- if (!!O) {
7590
- O.focus(F);
7591
+ function x(E, F) {
7592
+ if (!!E) {
7593
+ E.focus(F);
7591
7594
  var w = F || {}, S = w.cursor;
7592
7595
  if (S) {
7593
- var T = O.value.length;
7596
+ var T = E.value.length;
7594
7597
  switch (S) {
7595
7598
  case "start":
7596
- O.setSelectionRange(0, 0);
7599
+ E.setSelectionRange(0, 0);
7597
7600
  break;
7598
7601
  case "end":
7599
- O.setSelectionRange(T, T);
7602
+ E.setSelectionRange(T, T);
7600
7603
  break;
7601
7604
  default:
7602
- O.setSelectionRange(0, T);
7605
+ E.setSelectionRange(0, T);
7603
7606
  }
7604
7607
  }
7605
7608
  }
7606
7609
  }
7607
- var _ = /* @__PURE__ */ function(O) {
7608
- (0, s.default)(w, O);
7610
+ var _ = /* @__PURE__ */ function(E) {
7611
+ (0, s.default)(w, E);
7609
7612
  var F = (0, u.default)(w);
7610
7613
  function w(S) {
7611
7614
  var T;
@@ -7788,14 +7791,14 @@ function requireClearableLabeledInput() {
7788
7791
  (0, s.default)(C, x);
7789
7792
  var _ = (0, u.default)(C);
7790
7793
  function C() {
7791
- var O;
7792
- return (0, a.default)(this, C), O = _.apply(this, arguments), O.containerRef = /* @__PURE__ */ l.createRef(), O.onInputMouseUp = function(F) {
7794
+ var E;
7795
+ return (0, a.default)(this, C), E = _.apply(this, arguments), E.containerRef = /* @__PURE__ */ l.createRef(), E.onInputMouseUp = function(F) {
7793
7796
  var w;
7794
- if (!((w = O.containerRef.current) === null || w === void 0) && w.contains(F.target)) {
7795
- var S = O.props.triggerFocus;
7797
+ if (!((w = E.containerRef.current) === null || w === void 0) && w.contains(F.target)) {
7798
+ var S = E.props.triggerFocus;
7796
7799
  S == null || S();
7797
7800
  }
7798
- }, O;
7801
+ }, E;
7799
7802
  }
7800
7803
  return (0, o.default)(C, [{
7801
7804
  key: "renderClearIcon",
@@ -7894,15 +7897,15 @@ function requireClearableLabeledInput() {
7894
7897
  value: !0
7895
7898
  }), e.default = void 0;
7896
7899
  var n = r(_typeof$2.exports), a = r(requireToConsumableArray()), o = r(require_extends()), s = r(requireDefineProperty()), u = r(requireSlicedToArray()), l = t(React__default), c = r(require$$8), d = r(requireOmit()), f = r(requireClassnames()), p = r(requireUseMergedState()), h = r(requireClearableLabeledInput()), m = requireConfigProvider(), y = requireInput(), b = r(requireSizeContext()), g = function(_, C) {
7897
- var O = {};
7900
+ var E = {};
7898
7901
  for (var F in _)
7899
- Object.prototype.hasOwnProperty.call(_, F) && C.indexOf(F) < 0 && (O[F] = _[F]);
7902
+ Object.prototype.hasOwnProperty.call(_, F) && C.indexOf(F) < 0 && (E[F] = _[F]);
7900
7903
  if (_ != null && typeof Object.getOwnPropertySymbols == "function")
7901
7904
  for (var w = 0, F = Object.getOwnPropertySymbols(_); w < F.length; w++)
7902
- C.indexOf(F[w]) < 0 && Object.prototype.propertyIsEnumerable.call(_, F[w]) && (O[F[w]] = _[F[w]]);
7903
- return O;
7905
+ C.indexOf(F[w]) < 0 && Object.prototype.propertyIsEnumerable.call(_, F[w]) && (E[F[w]] = _[F[w]]);
7906
+ return E;
7904
7907
  }, v = /* @__PURE__ */ l.forwardRef(function(_, C) {
7905
- var O, F = _.prefixCls, w = _.bordered, S = w === void 0 ? !0 : w, T = _.showCount, I = T === void 0 ? !1 : T, q = _.maxLength, M = _.className, D = _.style, j = _.size, N = g(_, ["prefixCls", "bordered", "showCount", "maxLength", "className", "style", "size"]), V = l.useContext(m.ConfigContext), A = V.getPrefixCls, W = V.direction, Y = l.useContext(b.default), z = l.useRef(null), H = l.useRef(null), K = (0, p.default)(N.defaultValue, {
7908
+ var E, F = _.prefixCls, w = _.bordered, S = w === void 0 ? !0 : w, T = _.showCount, I = T === void 0 ? !1 : T, q = _.maxLength, M = _.className, D = _.style, j = _.size, N = g(_, ["prefixCls", "bordered", "showCount", "maxLength", "className", "style", "size"]), V = l.useContext(m.ConfigContext), A = V.getPrefixCls, W = V.direction, Y = l.useContext(b.default), z = l.useRef(null), H = l.useRef(null), K = (0, p.default)(N.defaultValue, {
7906
7909
  value: N.value
7907
7910
  }), U = (0, u.default)(K, 2), B = U[0], k = U[1], $ = l.useRef(N.value);
7908
7911
  l.useEffect(function() {
@@ -7932,9 +7935,9 @@ function requireClearableLabeledInput() {
7932
7935
  }
7933
7936
  };
7934
7937
  });
7935
- var E = /* @__PURE__ */ l.createElement(c.default, (0, o.default)({}, (0, d.default)(N, ["allowClear"]), {
7938
+ var O = /* @__PURE__ */ l.createElement(c.default, (0, o.default)({}, (0, d.default)(N, ["allowClear"]), {
7936
7939
  maxLength: q,
7937
- className: (0, f.default)((O = {}, (0, s.default)(O, "".concat(P, "-borderless"), !S), (0, s.default)(O, M, M && !I), (0, s.default)(O, "".concat(P, "-sm"), Y === "small" || j === "small"), (0, s.default)(O, "".concat(P, "-lg"), Y === "large" || j === "large"), O)),
7940
+ className: (0, f.default)((E = {}, (0, s.default)(E, "".concat(P, "-borderless"), !S), (0, s.default)(E, M, M && !I), (0, s.default)(E, "".concat(P, "-sm"), Y === "small" || j === "small"), (0, s.default)(E, "".concat(P, "-lg"), Y === "large" || j === "large"), E)),
7938
7941
  style: I ? void 0 : D,
7939
7942
  prefixCls: P,
7940
7943
  onChange: G,
@@ -7946,7 +7949,7 @@ function requireClearableLabeledInput() {
7946
7949
  direction: W,
7947
7950
  inputType: "text",
7948
7951
  value: X,
7949
- element: E,
7952
+ element: O,
7950
7953
  handleReset: Z,
7951
7954
  ref: H,
7952
7955
  bordered: S
@@ -8067,7 +8070,7 @@ const TextArea$1 = /* @__PURE__ */ getDefaultExportFromCjs(TextArea$3), {
8067
8070
  })]
8068
8071
  }, S));
8069
8072
  }
8070
- async function O() {
8073
+ async function E() {
8071
8074
  m(!0);
8072
8075
  try {
8073
8076
  for (const w of Object.keys(y))
@@ -8100,7 +8103,7 @@ const TextArea$1 = /* @__PURE__ */ getDefaultExportFromCjs(TextArea$3), {
8100
8103
  }), /* @__PURE__ */ jsx(Button$1, {
8101
8104
  icon: h ? /* @__PURE__ */ jsx(LoadingOutlined$3, {}) : /* @__PURE__ */ jsx(CheckOutlined$3, {}),
8102
8105
  disabled: h,
8103
- onClick: O,
8106
+ onClick: E,
8104
8107
  style: {
8105
8108
  marginLeft: 15
8106
8109
  },
@@ -8402,29 +8405,29 @@ function debounce(e, t, r) {
8402
8405
  if (typeof e != "function")
8403
8406
  throw new TypeError(FUNC_ERROR_TEXT);
8404
8407
  t = toNumber(t) || 0, isObject$1(r) && (d = !!r.leading, f = "maxWait" in r, o = f ? nativeMax(toNumber(r.maxWait) || 0, t) : o, p = "trailing" in r ? !!r.trailing : p);
8405
- function h(O) {
8408
+ function h(E) {
8406
8409
  var F = n, w = a;
8407
- return n = a = void 0, c = O, s = e.apply(w, F), s;
8410
+ return n = a = void 0, c = E, s = e.apply(w, F), s;
8408
8411
  }
8409
- function m(O) {
8410
- return c = O, u = setTimeout(g, t), d ? h(O) : s;
8412
+ function m(E) {
8413
+ return c = E, u = setTimeout(g, t), d ? h(E) : s;
8411
8414
  }
8412
- function y(O) {
8413
- var F = O - l, w = O - c, S = t - F;
8415
+ function y(E) {
8416
+ var F = E - l, w = E - c, S = t - F;
8414
8417
  return f ? nativeMin(S, o - w) : S;
8415
8418
  }
8416
- function b(O) {
8417
- var F = O - l, w = O - c;
8419
+ function b(E) {
8420
+ var F = E - l, w = E - c;
8418
8421
  return l === void 0 || F >= t || F < 0 || f && w >= o;
8419
8422
  }
8420
8423
  function g() {
8421
- var O = now$1();
8422
- if (b(O))
8423
- return v(O);
8424
- u = setTimeout(g, y(O));
8424
+ var E = now$1();
8425
+ if (b(E))
8426
+ return v(E);
8427
+ u = setTimeout(g, y(E));
8425
8428
  }
8426
- function v(O) {
8427
- return u = void 0, p && n ? h(O) : (n = a = void 0, s);
8429
+ function v(E) {
8430
+ return u = void 0, p && n ? h(E) : (n = a = void 0, s);
8428
8431
  }
8429
8432
  function x() {
8430
8433
  u !== void 0 && clearTimeout(u), c = 0, n = l = a = u = void 0;
@@ -8433,8 +8436,8 @@ function debounce(e, t, r) {
8433
8436
  return u === void 0 ? s : v(now$1());
8434
8437
  }
8435
8438
  function C() {
8436
- var O = now$1(), F = b(O);
8437
- if (n = arguments, a = this, l = O, F) {
8439
+ var E = now$1(), F = b(E);
8440
+ if (n = arguments, a = this, l = E, F) {
8438
8441
  if (u === void 0)
8439
8442
  return m(l);
8440
8443
  if (f)
@@ -8989,7 +8992,7 @@ function require_stream_writable() {
8989
8992
  };
8990
8993
  }
8991
8994
  var t;
8992
- w.WritableState = O;
8995
+ w.WritableState = E;
8993
8996
  var r = {
8994
8997
  deprecate: browser
8995
8998
  }, n = streamBrowser, a = require$$0.Buffer, o = commonjsGlobal.Uint8Array || function() {
@@ -9004,20 +9007,20 @@ function require_stream_writable() {
9004
9007
  inherits_browser.exports(w, n);
9005
9008
  function C() {
9006
9009
  }
9007
- function O(k, $, L) {
9010
+ function E(k, $, L) {
9008
9011
  t = t || require_stream_duplex(), k = k || {}, typeof L != "boolean" && (L = $ instanceof t), this.objectMode = !!k.objectMode, L && (this.objectMode = this.objectMode || !!k.writableObjectMode), this.highWaterMark = d(this, k, "writableHighWaterMark", L), this.finalCalled = !1, this.needDrain = !1, this.ending = !1, this.ended = !1, this.finished = !1, this.destroyed = !1;
9009
9012
  var G = k.decodeStrings === !1;
9010
9013
  this.decodeStrings = !G, this.defaultEncoding = k.defaultEncoding || "utf8", this.length = 0, this.writing = !1, this.corked = 0, this.sync = !0, this.bufferProcessing = !1, this.onwrite = function(Z) {
9011
9014
  N($, Z);
9012
9015
  }, this.writecb = null, this.writelen = 0, this.bufferedRequest = null, this.lastBufferedRequest = null, this.pendingcb = 0, this.prefinished = !1, this.errorEmitted = !1, this.emitClose = k.emitClose !== !1, this.autoDestroy = !!k.autoDestroy, this.bufferedRequestCount = 0, this.corkedRequestsFree = new e(this);
9013
9016
  }
9014
- O.prototype.getBuffer = function() {
9017
+ E.prototype.getBuffer = function() {
9015
9018
  for (var $ = this.bufferedRequest, L = []; $; )
9016
9019
  L.push($), $ = $.next;
9017
9020
  return L;
9018
9021
  }, function() {
9019
9022
  try {
9020
- Object.defineProperty(O.prototype, "buffer", {
9023
+ Object.defineProperty(E.prototype, "buffer", {
9021
9024
  get: r.deprecate(function() {
9022
9025
  return this.getBuffer();
9023
9026
  }, "_writableState.buffer is deprecated. Use _writableState.getBuffer instead.", "DEP0003")
@@ -9028,7 +9031,7 @@ function require_stream_writable() {
9028
9031
  var F;
9029
9032
  typeof Symbol == "function" && Symbol.hasInstance && typeof Function.prototype[Symbol.hasInstance] == "function" ? (F = Function.prototype[Symbol.hasInstance], Object.defineProperty(w, Symbol.hasInstance, {
9030
9033
  value: function($) {
9031
- return F.call(this, $) ? !0 : this !== w ? !1 : $ && $._writableState instanceof O;
9034
+ return F.call(this, $) ? !0 : this !== w ? !1 : $ && $._writableState instanceof E;
9032
9035
  }
9033
9036
  })) : F = function($) {
9034
9037
  return $ instanceof this;
@@ -9038,7 +9041,7 @@ function require_stream_writable() {
9038
9041
  var $ = this instanceof t;
9039
9042
  if (!$ && !F.call(w, this))
9040
9043
  return new w(k);
9041
- this._writableState = new O(k, this, $), this.writable = !0, k && (typeof k.write == "function" && (this._write = k.write), typeof k.writev == "function" && (this._writev = k.writev), typeof k.destroy == "function" && (this._destroy = k.destroy), typeof k.final == "function" && (this._final = k.final)), n.call(this);
9044
+ this._writableState = new E(k, this, $), this.writable = !0, k && (typeof k.write == "function" && (this._write = k.write), typeof k.writev == "function" && (this._writev = k.writev), typeof k.destroy == "function" && (this._destroy = k.destroy), typeof k.final == "function" && (this._final = k.final)), n.call(this);
9042
9045
  }
9043
9046
  w.prototype.pipe = function() {
9044
9047
  _(this, new y());
@@ -9080,8 +9083,8 @@ function require_stream_writable() {
9080
9083
  });
9081
9084
  function q(k, $, L, G, Z, P) {
9082
9085
  if (!L) {
9083
- var E = I($, G, Z);
9084
- G !== E && (L = !0, Z = "buffer", G = E);
9086
+ var O = I($, G, Z);
9087
+ G !== O && (L = !0, Z = "buffer", G = O);
9085
9088
  }
9086
9089
  var X = $.objectMode ? 1 : G.length;
9087
9090
  $.length += X;
@@ -9099,8 +9102,8 @@ function require_stream_writable() {
9099
9102
  M(k, $, !1, X, G, Z, P);
9100
9103
  return J;
9101
9104
  }
9102
- function M(k, $, L, G, Z, P, E) {
9103
- $.writelen = G, $.writecb = E, $.writing = !0, $.sync = !0, $.destroyed ? $.onwrite(new b("write")) : L ? k._writev(Z, $.onwrite) : k._write(Z, P, $.onwrite), $.sync = !1;
9105
+ function M(k, $, L, G, Z, P, O) {
9106
+ $.writelen = G, $.writecb = O, $.writing = !0, $.sync = !0, $.destroyed ? $.onwrite(new b("write")) : L ? k._writev(Z, $.onwrite) : k._write(Z, P, $.onwrite), $.sync = !1;
9104
9107
  }
9105
9108
  function D(k, $, L, G, Z) {
9106
9109
  --$.pendingcb, L ? (process.nextTick(Z, G), process.nextTick(K, k, $), k._writableState.errorEmitted = !0, _(k, G)) : (Z(G), k._writableState.errorEmitted = !0, _(k, G), K(k, $));
@@ -9131,8 +9134,8 @@ function require_stream_writable() {
9131
9134
  if (k._writev && L && L.next) {
9132
9135
  var G = $.bufferedRequestCount, Z = new Array(G), P = $.corkedRequestsFree;
9133
9136
  P.entry = L;
9134
- for (var E = 0, X = !0; L; )
9135
- Z[E] = L, L.isBuf || (X = !1), L = L.next, E += 1;
9137
+ for (var O = 0, X = !0; L; )
9138
+ Z[O] = L, L.isBuf || (X = !1), L = L.next, O += 1;
9136
9139
  Z.allBuffers = X, M(k, $, !0, $.length, Z, "", P.finish), $.pendingcb++, $.lastBufferedRequest = null, P.next ? ($.corkedRequestsFree = P.next, P.next = null) : $.corkedRequestsFree = new e($), $.bufferedRequestCount = 0;
9137
9140
  } else {
9138
9141
  for (; L; ) {
@@ -9551,9 +9554,9 @@ function requireAsync_iterator() {
9551
9554
  if (_)
9552
9555
  C = new Promise(h(_, this));
9553
9556
  else {
9554
- var O = this[c].read();
9555
- if (O !== null)
9556
- return Promise.resolve(d(O, !1));
9557
+ var E = this[c].read();
9558
+ if (E !== null)
9559
+ return Promise.resolve(d(E, !1));
9557
9560
  C = new Promise(this[l]);
9558
9561
  }
9559
9562
  return this[u] = C, C;
@@ -9588,16 +9591,16 @@ function requireAsync_iterator() {
9588
9591
  value: v._readableState.endEmitted,
9589
9592
  writable: !0
9590
9593
  }), t(x, l, {
9591
- value: function(O, F) {
9594
+ value: function(E, F) {
9592
9595
  var w = _[c].read();
9593
- w ? (_[u] = null, _[n] = null, _[a] = null, O(d(w, !1))) : (_[n] = O, _[a] = F);
9596
+ w ? (_[u] = null, _[n] = null, _[a] = null, E(d(w, !1))) : (_[n] = E, _[a] = F);
9594
9597
  },
9595
9598
  writable: !0
9596
9599
  }), x));
9597
9600
  return _[u] = null, r(v, function(C) {
9598
9601
  if (C && C.code !== "ERR_STREAM_PREMATURE_CLOSE") {
9599
- var O = _[a];
9600
- O !== null && (_[u] = null, _[n] = null, _[a] = null, O(C)), _[o] = C;
9602
+ var E = _[a];
9603
+ E !== null && (_[u] = null, _[n] = null, _[a] = null, E(C)), _[o] = C;
9601
9604
  return;
9602
9605
  }
9603
9606
  var F = _[n];
@@ -9619,8 +9622,8 @@ function require_stream_readable() {
9619
9622
  hasRequired_stream_readable = 1, _stream_readable = S;
9620
9623
  var e;
9621
9624
  S.ReadableState = w, events.exports.EventEmitter;
9622
- var t = function(E, X) {
9623
- return E.listeners(X).length;
9625
+ var t = function(O, X) {
9626
+ return O.listeners(X).length;
9624
9627
  }, r = streamBrowser, n = require$$0.Buffer, a = commonjsGlobal.Uint8Array || function() {
9625
9628
  };
9626
9629
  function o(P) {
@@ -9634,128 +9637,128 @@ function require_stream_readable() {
9634
9637
  };
9635
9638
  var c = requireBuffer_list(), d = destroy_1, f = state, p = f.getHighWaterMark, h = errorsBrowser.codes, m = h.ERR_INVALID_ARG_TYPE, y = h.ERR_STREAM_PUSH_AFTER_EOF, b = h.ERR_METHOD_NOT_IMPLEMENTED, g = h.ERR_STREAM_UNSHIFT_AFTER_END_EVENT, v, x, _;
9636
9639
  inherits_browser.exports(S, r);
9637
- var C = d.errorOrDestroy, O = ["error", "close", "destroy", "pause", "resume"];
9638
- function F(P, E, X) {
9640
+ var C = d.errorOrDestroy, E = ["error", "close", "destroy", "pause", "resume"];
9641
+ function F(P, O, X) {
9639
9642
  if (typeof P.prependListener == "function")
9640
- return P.prependListener(E, X);
9641
- !P._events || !P._events[E] ? P.on(E, X) : Array.isArray(P._events[E]) ? P._events[E].unshift(X) : P._events[E] = [X, P._events[E]];
9643
+ return P.prependListener(O, X);
9644
+ !P._events || !P._events[O] ? P.on(O, X) : Array.isArray(P._events[O]) ? P._events[O].unshift(X) : P._events[O] = [X, P._events[O]];
9642
9645
  }
9643
- function w(P, E, X) {
9644
- e = e || require_stream_duplex(), P = P || {}, typeof X != "boolean" && (X = E instanceof e), this.objectMode = !!P.objectMode, X && (this.objectMode = this.objectMode || !!P.readableObjectMode), this.highWaterMark = p(this, P, "readableHighWaterMark", X), this.buffer = new c(), this.length = 0, this.pipes = null, this.pipesCount = 0, this.flowing = null, this.ended = !1, this.endEmitted = !1, this.reading = !1, this.sync = !0, this.needReadable = !1, this.emittedReadable = !1, this.readableListening = !1, this.resumeScheduled = !1, this.paused = !0, this.emitClose = P.emitClose !== !1, this.autoDestroy = !!P.autoDestroy, this.destroyed = !1, this.defaultEncoding = P.defaultEncoding || "utf8", this.awaitDrain = 0, this.readingMore = !1, this.decoder = null, this.encoding = null, P.encoding && (v || (v = requireString_decoder().StringDecoder), this.decoder = new v(P.encoding), this.encoding = P.encoding);
9646
+ function w(P, O, X) {
9647
+ e = e || require_stream_duplex(), P = P || {}, typeof X != "boolean" && (X = O instanceof e), this.objectMode = !!P.objectMode, X && (this.objectMode = this.objectMode || !!P.readableObjectMode), this.highWaterMark = p(this, P, "readableHighWaterMark", X), this.buffer = new c(), this.length = 0, this.pipes = null, this.pipesCount = 0, this.flowing = null, this.ended = !1, this.endEmitted = !1, this.reading = !1, this.sync = !0, this.needReadable = !1, this.emittedReadable = !1, this.readableListening = !1, this.resumeScheduled = !1, this.paused = !0, this.emitClose = P.emitClose !== !1, this.autoDestroy = !!P.autoDestroy, this.destroyed = !1, this.defaultEncoding = P.defaultEncoding || "utf8", this.awaitDrain = 0, this.readingMore = !1, this.decoder = null, this.encoding = null, P.encoding && (v || (v = requireString_decoder().StringDecoder), this.decoder = new v(P.encoding), this.encoding = P.encoding);
9645
9648
  }
9646
9649
  function S(P) {
9647
9650
  if (e = e || require_stream_duplex(), !(this instanceof S))
9648
9651
  return new S(P);
9649
- var E = this instanceof e;
9650
- this._readableState = new w(P, this, E), this.readable = !0, P && (typeof P.read == "function" && (this._read = P.read), typeof P.destroy == "function" && (this._destroy = P.destroy)), r.call(this);
9652
+ var O = this instanceof e;
9653
+ this._readableState = new w(P, this, O), this.readable = !0, P && (typeof P.read == "function" && (this._read = P.read), typeof P.destroy == "function" && (this._destroy = P.destroy)), r.call(this);
9651
9654
  }
9652
9655
  Object.defineProperty(S.prototype, "destroyed", {
9653
9656
  enumerable: !1,
9654
9657
  get: function() {
9655
9658
  return this._readableState === void 0 ? !1 : this._readableState.destroyed;
9656
9659
  },
9657
- set: function(E) {
9658
- !this._readableState || (this._readableState.destroyed = E);
9660
+ set: function(O) {
9661
+ !this._readableState || (this._readableState.destroyed = O);
9659
9662
  }
9660
- }), S.prototype.destroy = d.destroy, S.prototype._undestroy = d.undestroy, S.prototype._destroy = function(P, E) {
9661
- E(P);
9662
- }, S.prototype.push = function(P, E) {
9663
+ }), S.prototype.destroy = d.destroy, S.prototype._undestroy = d.undestroy, S.prototype._destroy = function(P, O) {
9664
+ O(P);
9665
+ }, S.prototype.push = function(P, O) {
9663
9666
  var X = this._readableState, J;
9664
- return X.objectMode ? J = !0 : typeof P == "string" && (E = E || X.defaultEncoding, E !== X.encoding && (P = n.from(P, E), E = ""), J = !0), T(this, P, E, !1, J);
9667
+ return X.objectMode ? J = !0 : typeof P == "string" && (O = O || X.defaultEncoding, O !== X.encoding && (P = n.from(P, O), O = ""), J = !0), T(this, P, O, !1, J);
9665
9668
  }, S.prototype.unshift = function(P) {
9666
9669
  return T(this, P, null, !0, !1);
9667
9670
  };
9668
- function T(P, E, X, J, ee) {
9669
- l("readableAddChunk", E);
9671
+ function T(P, O, X, J, ee) {
9672
+ l("readableAddChunk", O);
9670
9673
  var Q = P._readableState;
9671
- if (E === null)
9674
+ if (O === null)
9672
9675
  Q.reading = !1, N(P, Q);
9673
9676
  else {
9674
9677
  var ie;
9675
- if (ee || (ie = q(Q, E)), ie)
9678
+ if (ee || (ie = q(Q, O)), ie)
9676
9679
  C(P, ie);
9677
- else if (Q.objectMode || E && E.length > 0)
9678
- if (typeof E != "string" && !Q.objectMode && Object.getPrototypeOf(E) !== n.prototype && (E = o(E)), J)
9679
- Q.endEmitted ? C(P, new g()) : I(P, Q, E, !0);
9680
+ else if (Q.objectMode || O && O.length > 0)
9681
+ if (typeof O != "string" && !Q.objectMode && Object.getPrototypeOf(O) !== n.prototype && (O = o(O)), J)
9682
+ Q.endEmitted ? C(P, new g()) : I(P, Q, O, !0);
9680
9683
  else if (Q.ended)
9681
9684
  C(P, new y());
9682
9685
  else {
9683
9686
  if (Q.destroyed)
9684
9687
  return !1;
9685
- Q.reading = !1, Q.decoder && !X ? (E = Q.decoder.write(E), Q.objectMode || E.length !== 0 ? I(P, Q, E, !1) : W(P, Q)) : I(P, Q, E, !1);
9688
+ Q.reading = !1, Q.decoder && !X ? (O = Q.decoder.write(O), Q.objectMode || O.length !== 0 ? I(P, Q, O, !1) : W(P, Q)) : I(P, Q, O, !1);
9686
9689
  }
9687
9690
  else
9688
9691
  J || (Q.reading = !1, W(P, Q));
9689
9692
  }
9690
9693
  return !Q.ended && (Q.length < Q.highWaterMark || Q.length === 0);
9691
9694
  }
9692
- function I(P, E, X, J) {
9693
- E.flowing && E.length === 0 && !E.sync ? (E.awaitDrain = 0, P.emit("data", X)) : (E.length += E.objectMode ? 1 : X.length, J ? E.buffer.unshift(X) : E.buffer.push(X), E.needReadable && V(P)), W(P, E);
9695
+ function I(P, O, X, J) {
9696
+ O.flowing && O.length === 0 && !O.sync ? (O.awaitDrain = 0, P.emit("data", X)) : (O.length += O.objectMode ? 1 : X.length, J ? O.buffer.unshift(X) : O.buffer.push(X), O.needReadable && V(P)), W(P, O);
9694
9697
  }
9695
- function q(P, E) {
9698
+ function q(P, O) {
9696
9699
  var X;
9697
- return !s(E) && typeof E != "string" && E !== void 0 && !P.objectMode && (X = new m("chunk", ["string", "Buffer", "Uint8Array"], E)), X;
9700
+ return !s(O) && typeof O != "string" && O !== void 0 && !P.objectMode && (X = new m("chunk", ["string", "Buffer", "Uint8Array"], O)), X;
9698
9701
  }
9699
9702
  S.prototype.isPaused = function() {
9700
9703
  return this._readableState.flowing === !1;
9701
9704
  }, S.prototype.setEncoding = function(P) {
9702
9705
  v || (v = requireString_decoder().StringDecoder);
9703
- var E = new v(P);
9704
- this._readableState.decoder = E, this._readableState.encoding = this._readableState.decoder.encoding;
9706
+ var O = new v(P);
9707
+ this._readableState.decoder = O, this._readableState.encoding = this._readableState.decoder.encoding;
9705
9708
  for (var X = this._readableState.buffer.head, J = ""; X !== null; )
9706
- J += E.write(X.data), X = X.next;
9709
+ J += O.write(X.data), X = X.next;
9707
9710
  return this._readableState.buffer.clear(), J !== "" && this._readableState.buffer.push(J), this._readableState.length = J.length, this;
9708
9711
  };
9709
9712
  var M = 1073741824;
9710
9713
  function D(P) {
9711
9714
  return P >= M ? P = M : (P--, P |= P >>> 1, P |= P >>> 2, P |= P >>> 4, P |= P >>> 8, P |= P >>> 16, P++), P;
9712
9715
  }
9713
- function j(P, E) {
9714
- return P <= 0 || E.length === 0 && E.ended ? 0 : E.objectMode ? 1 : P !== P ? E.flowing && E.length ? E.buffer.head.data.length : E.length : (P > E.highWaterMark && (E.highWaterMark = D(P)), P <= E.length ? P : E.ended ? E.length : (E.needReadable = !0, 0));
9716
+ function j(P, O) {
9717
+ return P <= 0 || O.length === 0 && O.ended ? 0 : O.objectMode ? 1 : P !== P ? O.flowing && O.length ? O.buffer.head.data.length : O.length : (P > O.highWaterMark && (O.highWaterMark = D(P)), P <= O.length ? P : O.ended ? O.length : (O.needReadable = !0, 0));
9715
9718
  }
9716
9719
  S.prototype.read = function(P) {
9717
9720
  l("read", P), P = parseInt(P, 10);
9718
- var E = this._readableState, X = P;
9719
- if (P !== 0 && (E.emittedReadable = !1), P === 0 && E.needReadable && ((E.highWaterMark !== 0 ? E.length >= E.highWaterMark : E.length > 0) || E.ended))
9720
- return l("read: emitReadable", E.length, E.ended), E.length === 0 && E.ended ? L(this) : V(this), null;
9721
- if (P = j(P, E), P === 0 && E.ended)
9722
- return E.length === 0 && L(this), null;
9723
- var J = E.needReadable;
9724
- l("need readable", J), (E.length === 0 || E.length - P < E.highWaterMark) && (J = !0, l("length less than watermark", J)), E.ended || E.reading ? (J = !1, l("reading or ended", J)) : J && (l("do read"), E.reading = !0, E.sync = !0, E.length === 0 && (E.needReadable = !0), this._read(E.highWaterMark), E.sync = !1, E.reading || (P = j(X, E)));
9721
+ var O = this._readableState, X = P;
9722
+ if (P !== 0 && (O.emittedReadable = !1), P === 0 && O.needReadable && ((O.highWaterMark !== 0 ? O.length >= O.highWaterMark : O.length > 0) || O.ended))
9723
+ return l("read: emitReadable", O.length, O.ended), O.length === 0 && O.ended ? L(this) : V(this), null;
9724
+ if (P = j(P, O), P === 0 && O.ended)
9725
+ return O.length === 0 && L(this), null;
9726
+ var J = O.needReadable;
9727
+ l("need readable", J), (O.length === 0 || O.length - P < O.highWaterMark) && (J = !0, l("length less than watermark", J)), O.ended || O.reading ? (J = !1, l("reading or ended", J)) : J && (l("do read"), O.reading = !0, O.sync = !0, O.length === 0 && (O.needReadable = !0), this._read(O.highWaterMark), O.sync = !1, O.reading || (P = j(X, O)));
9725
9728
  var ee;
9726
- return P > 0 ? ee = $(P, E) : ee = null, ee === null ? (E.needReadable = E.length <= E.highWaterMark, P = 0) : (E.length -= P, E.awaitDrain = 0), E.length === 0 && (E.ended || (E.needReadable = !0), X !== P && E.ended && L(this)), ee !== null && this.emit("data", ee), ee;
9729
+ return P > 0 ? ee = $(P, O) : ee = null, ee === null ? (O.needReadable = O.length <= O.highWaterMark, P = 0) : (O.length -= P, O.awaitDrain = 0), O.length === 0 && (O.ended || (O.needReadable = !0), X !== P && O.ended && L(this)), ee !== null && this.emit("data", ee), ee;
9727
9730
  };
9728
- function N(P, E) {
9729
- if (l("onEofChunk"), !E.ended) {
9730
- if (E.decoder) {
9731
- var X = E.decoder.end();
9732
- X && X.length && (E.buffer.push(X), E.length += E.objectMode ? 1 : X.length);
9731
+ function N(P, O) {
9732
+ if (l("onEofChunk"), !O.ended) {
9733
+ if (O.decoder) {
9734
+ var X = O.decoder.end();
9735
+ X && X.length && (O.buffer.push(X), O.length += O.objectMode ? 1 : X.length);
9733
9736
  }
9734
- E.ended = !0, E.sync ? V(P) : (E.needReadable = !1, E.emittedReadable || (E.emittedReadable = !0, A(P)));
9737
+ O.ended = !0, O.sync ? V(P) : (O.needReadable = !1, O.emittedReadable || (O.emittedReadable = !0, A(P)));
9735
9738
  }
9736
9739
  }
9737
9740
  function V(P) {
9738
- var E = P._readableState;
9739
- l("emitReadable", E.needReadable, E.emittedReadable), E.needReadable = !1, E.emittedReadable || (l("emitReadable", E.flowing), E.emittedReadable = !0, process.nextTick(A, P));
9741
+ var O = P._readableState;
9742
+ l("emitReadable", O.needReadable, O.emittedReadable), O.needReadable = !1, O.emittedReadable || (l("emitReadable", O.flowing), O.emittedReadable = !0, process.nextTick(A, P));
9740
9743
  }
9741
9744
  function A(P) {
9742
- var E = P._readableState;
9743
- l("emitReadable_", E.destroyed, E.length, E.ended), !E.destroyed && (E.length || E.ended) && (P.emit("readable"), E.emittedReadable = !1), E.needReadable = !E.flowing && !E.ended && E.length <= E.highWaterMark, k(P);
9745
+ var O = P._readableState;
9746
+ l("emitReadable_", O.destroyed, O.length, O.ended), !O.destroyed && (O.length || O.ended) && (P.emit("readable"), O.emittedReadable = !1), O.needReadable = !O.flowing && !O.ended && O.length <= O.highWaterMark, k(P);
9744
9747
  }
9745
- function W(P, E) {
9746
- E.readingMore || (E.readingMore = !0, process.nextTick(Y, P, E));
9748
+ function W(P, O) {
9749
+ O.readingMore || (O.readingMore = !0, process.nextTick(Y, P, O));
9747
9750
  }
9748
- function Y(P, E) {
9749
- for (; !E.reading && !E.ended && (E.length < E.highWaterMark || E.flowing && E.length === 0); ) {
9750
- var X = E.length;
9751
- if (l("maybeReadMore read 0"), P.read(0), X === E.length)
9751
+ function Y(P, O) {
9752
+ for (; !O.reading && !O.ended && (O.length < O.highWaterMark || O.flowing && O.length === 0); ) {
9753
+ var X = O.length;
9754
+ if (l("maybeReadMore read 0"), P.read(0), X === O.length)
9752
9755
  break;
9753
9756
  }
9754
- E.readingMore = !1;
9757
+ O.readingMore = !1;
9755
9758
  }
9756
9759
  S.prototype._read = function(P) {
9757
9760
  C(this, new b("_read()"));
9758
- }, S.prototype.pipe = function(P, E) {
9761
+ }, S.prototype.pipe = function(P, O) {
9759
9762
  var X = this, J = this._readableState;
9760
9763
  switch (J.pipesCount) {
9761
9764
  case 0:
@@ -9768,8 +9771,8 @@ function require_stream_readable() {
9768
9771
  J.pipes.push(P);
9769
9772
  break;
9770
9773
  }
9771
- J.pipesCount += 1, l("pipe count=%d opts=%j", J.pipesCount, E);
9772
- var ee = (!E || E.end !== !1) && P !== process.stdout && P !== process.stderr, Q = ee ? te : he;
9774
+ J.pipesCount += 1, l("pipe count=%d opts=%j", J.pipesCount, O);
9775
+ var ee = (!O || O.end !== !1) && P !== process.stdout && P !== process.stderr, Q = ee ? te : he;
9773
9776
  J.endEmitted ? process.nextTick(Q) : X.once("end", Q), P.on("unpipe", ie);
9774
9777
  function ie(ge, pe) {
9775
9778
  l("onunpipe"), ge === X && pe && pe.hasUnpiped === !1 && (pe.hasUnpiped = !0, _e());
@@ -9813,37 +9816,37 @@ function require_stream_readable() {
9813
9816
  };
9814
9817
  }
9815
9818
  S.prototype.unpipe = function(P) {
9816
- var E = this._readableState, X = {
9819
+ var O = this._readableState, X = {
9817
9820
  hasUnpiped: !1
9818
9821
  };
9819
- if (E.pipesCount === 0)
9822
+ if (O.pipesCount === 0)
9820
9823
  return this;
9821
- if (E.pipesCount === 1)
9822
- return P && P !== E.pipes ? this : (P || (P = E.pipes), E.pipes = null, E.pipesCount = 0, E.flowing = !1, P && P.emit("unpipe", this, X), this);
9824
+ if (O.pipesCount === 1)
9825
+ return P && P !== O.pipes ? this : (P || (P = O.pipes), O.pipes = null, O.pipesCount = 0, O.flowing = !1, P && P.emit("unpipe", this, X), this);
9823
9826
  if (!P) {
9824
- var J = E.pipes, ee = E.pipesCount;
9825
- E.pipes = null, E.pipesCount = 0, E.flowing = !1;
9827
+ var J = O.pipes, ee = O.pipesCount;
9828
+ O.pipes = null, O.pipesCount = 0, O.flowing = !1;
9826
9829
  for (var Q = 0; Q < ee; Q++)
9827
9830
  J[Q].emit("unpipe", this, {
9828
9831
  hasUnpiped: !1
9829
9832
  });
9830
9833
  return this;
9831
9834
  }
9832
- var ie = Z(E.pipes, P);
9833
- return ie === -1 ? this : (E.pipes.splice(ie, 1), E.pipesCount -= 1, E.pipesCount === 1 && (E.pipes = E.pipes[0]), P.emit("unpipe", this, X), this);
9834
- }, S.prototype.on = function(P, E) {
9835
- var X = r.prototype.on.call(this, P, E), J = this._readableState;
9835
+ var ie = Z(O.pipes, P);
9836
+ return ie === -1 ? this : (O.pipes.splice(ie, 1), O.pipesCount -= 1, O.pipesCount === 1 && (O.pipes = O.pipes[0]), P.emit("unpipe", this, X), this);
9837
+ }, S.prototype.on = function(P, O) {
9838
+ var X = r.prototype.on.call(this, P, O), J = this._readableState;
9836
9839
  return P === "data" ? (J.readableListening = this.listenerCount("readable") > 0, J.flowing !== !1 && this.resume()) : P === "readable" && !J.endEmitted && !J.readableListening && (J.readableListening = J.needReadable = !0, J.flowing = !1, J.emittedReadable = !1, l("on readable", J.length, J.reading), J.length ? V(this) : J.reading || process.nextTick(K, this)), X;
9837
- }, S.prototype.addListener = S.prototype.on, S.prototype.removeListener = function(P, E) {
9838
- var X = r.prototype.removeListener.call(this, P, E);
9840
+ }, S.prototype.addListener = S.prototype.on, S.prototype.removeListener = function(P, O) {
9841
+ var X = r.prototype.removeListener.call(this, P, O);
9839
9842
  return P === "readable" && process.nextTick(H, this), X;
9840
9843
  }, S.prototype.removeAllListeners = function(P) {
9841
- var E = r.prototype.removeAllListeners.apply(this, arguments);
9842
- return (P === "readable" || P === void 0) && process.nextTick(H, this), E;
9844
+ var O = r.prototype.removeAllListeners.apply(this, arguments);
9845
+ return (P === "readable" || P === void 0) && process.nextTick(H, this), O;
9843
9846
  };
9844
9847
  function H(P) {
9845
- var E = P._readableState;
9846
- E.readableListening = P.listenerCount("readable") > 0, E.resumeScheduled && !E.paused ? E.flowing = !0 : P.listenerCount("data") > 0 && P.resume();
9848
+ var O = P._readableState;
9849
+ O.readableListening = P.listenerCount("readable") > 0, O.resumeScheduled && !O.paused ? O.flowing = !0 : P.listenerCount("data") > 0 && P.resume();
9847
9850
  }
9848
9851
  function K(P) {
9849
9852
  l("readable nexttick read 0"), P.read(0);
@@ -9852,31 +9855,31 @@ function require_stream_readable() {
9852
9855
  var P = this._readableState;
9853
9856
  return P.flowing || (l("resume"), P.flowing = !P.readableListening, U(this, P)), P.paused = !1, this;
9854
9857
  };
9855
- function U(P, E) {
9856
- E.resumeScheduled || (E.resumeScheduled = !0, process.nextTick(B, P, E));
9858
+ function U(P, O) {
9859
+ O.resumeScheduled || (O.resumeScheduled = !0, process.nextTick(B, P, O));
9857
9860
  }
9858
- function B(P, E) {
9859
- l("resume", E.reading), E.reading || P.read(0), E.resumeScheduled = !1, P.emit("resume"), k(P), E.flowing && !E.reading && P.read(0);
9861
+ function B(P, O) {
9862
+ l("resume", O.reading), O.reading || P.read(0), O.resumeScheduled = !1, P.emit("resume"), k(P), O.flowing && !O.reading && P.read(0);
9860
9863
  }
9861
9864
  S.prototype.pause = function() {
9862
9865
  return l("call pause flowing=%j", this._readableState.flowing), this._readableState.flowing !== !1 && (l("pause"), this._readableState.flowing = !1, this.emit("pause")), this._readableState.paused = !0, this;
9863
9866
  };
9864
9867
  function k(P) {
9865
- var E = P._readableState;
9866
- for (l("flow", E.flowing); E.flowing && P.read() !== null; )
9868
+ var O = P._readableState;
9869
+ for (l("flow", O.flowing); O.flowing && P.read() !== null; )
9867
9870
  ;
9868
9871
  }
9869
9872
  S.prototype.wrap = function(P) {
9870
- var E = this, X = this._readableState, J = !1;
9873
+ var O = this, X = this._readableState, J = !1;
9871
9874
  P.on("end", function() {
9872
9875
  if (l("wrapped end"), X.decoder && !X.ended) {
9873
9876
  var ie = X.decoder.end();
9874
- ie && ie.length && E.push(ie);
9877
+ ie && ie.length && O.push(ie);
9875
9878
  }
9876
- E.push(null);
9879
+ O.push(null);
9877
9880
  }), P.on("data", function(ie) {
9878
9881
  if (l("wrapped data"), X.decoder && (ie = X.decoder.write(ie)), !(X.objectMode && ie == null) && !(!X.objectMode && (!ie || !ie.length))) {
9879
- var te = E.push(ie);
9882
+ var te = O.push(ie);
9880
9883
  te || (J = !0, P.pause());
9881
9884
  }
9882
9885
  });
@@ -9886,8 +9889,8 @@ function require_stream_readable() {
9886
9889
  return P[te].apply(P, arguments);
9887
9890
  };
9888
9891
  }(ee));
9889
- for (var Q = 0; Q < O.length; Q++)
9890
- P.on(O[Q], this.emit.bind(this, O[Q]));
9892
+ for (var Q = 0; Q < E.length; Q++)
9893
+ P.on(E[Q], this.emit.bind(this, E[Q]));
9891
9894
  return this._read = function(ie) {
9892
9895
  l("wrapped _read", ie), J && (J = !1, P.resume());
9893
9896
  }, this;
@@ -9908,8 +9911,8 @@ function require_stream_readable() {
9908
9911
  get: function() {
9909
9912
  return this._readableState.flowing;
9910
9913
  },
9911
- set: function(E) {
9912
- this._readableState && (this._readableState.flowing = E);
9914
+ set: function(O) {
9915
+ this._readableState && (this._readableState.flowing = O);
9913
9916
  }
9914
9917
  }), S._fromList = $, Object.defineProperty(S.prototype, "readableLength", {
9915
9918
  enumerable: !1,
@@ -9917,28 +9920,28 @@ function require_stream_readable() {
9917
9920
  return this._readableState.length;
9918
9921
  }
9919
9922
  });
9920
- function $(P, E) {
9921
- if (E.length === 0)
9923
+ function $(P, O) {
9924
+ if (O.length === 0)
9922
9925
  return null;
9923
9926
  var X;
9924
- return E.objectMode ? X = E.buffer.shift() : !P || P >= E.length ? (E.decoder ? X = E.buffer.join("") : E.buffer.length === 1 ? X = E.buffer.first() : X = E.buffer.concat(E.length), E.buffer.clear()) : X = E.buffer.consume(P, E.decoder), X;
9927
+ return O.objectMode ? X = O.buffer.shift() : !P || P >= O.length ? (O.decoder ? X = O.buffer.join("") : O.buffer.length === 1 ? X = O.buffer.first() : X = O.buffer.concat(O.length), O.buffer.clear()) : X = O.buffer.consume(P, O.decoder), X;
9925
9928
  }
9926
9929
  function L(P) {
9927
- var E = P._readableState;
9928
- l("endReadable", E.endEmitted), E.endEmitted || (E.ended = !0, process.nextTick(G, E, P));
9930
+ var O = P._readableState;
9931
+ l("endReadable", O.endEmitted), O.endEmitted || (O.ended = !0, process.nextTick(G, O, P));
9929
9932
  }
9930
- function G(P, E) {
9931
- if (l("endReadableNT", P.endEmitted, P.length), !P.endEmitted && P.length === 0 && (P.endEmitted = !0, E.readable = !1, E.emit("end"), P.autoDestroy)) {
9932
- var X = E._writableState;
9933
- (!X || X.autoDestroy && X.finished) && E.destroy();
9933
+ function G(P, O) {
9934
+ if (l("endReadableNT", P.endEmitted, P.length), !P.endEmitted && P.length === 0 && (P.endEmitted = !0, O.readable = !1, O.emit("end"), P.autoDestroy)) {
9935
+ var X = O._writableState;
9936
+ (!X || X.autoDestroy && X.finished) && O.destroy();
9934
9937
  }
9935
9938
  }
9936
- typeof Symbol == "function" && (S.from = function(P, E) {
9937
- return _ === void 0 && (_ = requireFromBrowser()), _(S, P, E);
9939
+ typeof Symbol == "function" && (S.from = function(P, O) {
9940
+ return _ === void 0 && (_ = requireFromBrowser()), _(S, P, O);
9938
9941
  });
9939
- function Z(P, E) {
9942
+ function Z(P, O) {
9940
9943
  for (var X = 0, J = P.length; X < J; X++)
9941
- if (P[X] === E)
9944
+ if (P[X] === O)
9942
9945
  return X;
9943
9946
  return -1;
9944
9947
  }
@@ -12268,7 +12271,7 @@ const Image = (e) => {
12268
12271
  useDeepCompareEffect(() => {
12269
12272
  F();
12270
12273
  }, [o]);
12271
- const O = (w) => {
12274
+ const E = (w) => {
12272
12275
  a == null || a({
12273
12276
  items: w
12274
12277
  });
@@ -12286,7 +12289,7 @@ const Image = (e) => {
12286
12289
  ...y
12287
12290
  }
12288
12291
  });
12289
- O(w);
12292
+ E(w);
12290
12293
  } catch (w) {
12291
12294
  c(w);
12292
12295
  } finally {
@@ -12533,7 +12536,7 @@ const transformPlainMany2Ones = ({
12533
12536
  onChange: n
12534
12537
  } = e, {
12535
12538
  items: a = []
12536
- } = t || {}, o = a.filter((O) => O.operation !== "pendingRemove").map((O) => O.id), [s, u] = useState([]), [l, c] = useState(), [d, f] = useState(!1), {
12539
+ } = t || {}, o = a.filter((E) => E.operation !== "pendingRemove").map((E) => E.id), [s, u] = useState([]), [l, c] = useState(), [d, f] = useState(!1), {
12537
12540
  relation: p,
12538
12541
  context: h,
12539
12542
  readOnly: m,
@@ -12544,16 +12547,16 @@ const transformPlainMany2Ones = ({
12544
12547
  useDeepCompareEffect(() => {
12545
12548
  x();
12546
12549
  }, [a]);
12547
- const v = (O) => {
12550
+ const v = (E) => {
12548
12551
  n == null || n({
12549
- items: O
12552
+ items: E
12550
12553
  });
12551
12554
  };
12552
12555
  async function x() {
12553
12556
  f(!0);
12554
- let O = [];
12557
+ let E = [];
12555
12558
  try {
12556
- if (m && (O = [["id", "in", o]]), r.domain) {
12559
+ if (m && (E = [["id", "in", o]]), r.domain) {
12557
12560
  const S = await ConnectionProvider.getHandler().evalDomain({
12558
12561
  domain: r.domain,
12559
12562
  values: transformPlainMany2Ones({
@@ -12563,11 +12566,11 @@ const transformPlainMany2Ones = ({
12563
12566
  fields: b == null ? void 0 : b.getFields(),
12564
12567
  context: b.getContext()
12565
12568
  });
12566
- O = [...O, ...S];
12569
+ E = [...E, ...S];
12567
12570
  }
12568
12571
  const w = (await ConnectionProvider.getHandler().search({
12569
12572
  model: p,
12570
- params: O,
12573
+ params: E,
12571
12574
  fields: [y],
12572
12575
  context: {
12573
12576
  ...g == null ? void 0 : g(),
@@ -12588,26 +12591,26 @@ const transformPlainMany2Ones = ({
12588
12591
  f(!1);
12589
12592
  }
12590
12593
  }
12591
- const _ = (O) => {
12592
- const F = a.map((S) => O.includes(S.id) ? S.operation == "pendingRemove" ? {
12594
+ const _ = (E) => {
12595
+ const F = a.map((S) => E.includes(S.id) ? S.operation == "pendingRemove" ? {
12593
12596
  ...S,
12594
12597
  operation: "pendingLink"
12595
12598
  } : S : {
12596
12599
  id: S.id,
12597
12600
  operation: "pendingRemove"
12598
12601
  }), w = F.map((S) => S.id);
12599
- O.filter((S) => !w.includes(S)).map((S) => {
12602
+ E.filter((S) => !w.includes(S)).map((S) => {
12600
12603
  F.push({
12601
12604
  id: S,
12602
12605
  operation: "pendingLink"
12603
12606
  });
12604
12607
  }), v(F);
12605
- }, C = (O) => {
12608
+ }, C = (E) => {
12606
12609
  const {
12607
12610
  label: F,
12608
12611
  closable: w,
12609
12612
  onClose: S
12610
- } = O, T = (I) => {
12613
+ } = E, T = (I) => {
12611
12614
  I.preventDefault(), I.stopPropagation();
12612
12615
  };
12613
12616
  return /* @__PURE__ */ jsx(Tag, {
@@ -13008,7 +13011,7 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
13008
13011
  currentId: x,
13009
13012
  limit: _,
13010
13013
  setLimit: C,
13011
- searchParams: O = [],
13014
+ searchParams: E = [],
13012
13015
  setSearchValues: F
13013
13016
  } = e, [w, S] = useState(!1), [T, I] = useState(!1), [q, M] = useState(), [D, j] = useState(1), [N, V] = useState(0), [A, W] = useState(), [Y, z] = useState([]), [H, K] = useState(void 0), U = useRef(_ || DEFAULT_SEARCH_LIMIT$1), B = useRef([]), k = useCallback((Q) => {
13014
13017
  b == null || b([...Q]), z([...Q]);
@@ -13055,7 +13058,7 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
13055
13058
  d
13056
13059
  ]), G = useCallback(
13057
13060
  async (Q) => {
13058
- const { params: ie, newOffset: te } = Q || {}, oe = mergeParams(ie || O, v), { colors: se } = getTree(f), { totalItems: _e, results: Ce, attrsEvaluated: ae } = await ConnectionProvider.getHandler().searchForTree({
13061
+ const { params: ie, newOffset: te } = Q || {}, oe = mergeParams(ie || E, v), { colors: se } = getTree(f), { totalItems: _e, results: Ce, attrsEvaluated: ae } = await ConnectionProvider.getHandler().searchForTree({
13059
13062
  params: oe,
13060
13063
  limit: U.current,
13061
13064
  offset: te || N,
@@ -13094,7 +13097,7 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
13094
13097
  d,
13095
13098
  _,
13096
13099
  N,
13097
- O
13100
+ E
13098
13101
  ]
13099
13102
  ), Z = useCallback(
13100
13103
  async (Q) => {
@@ -13138,7 +13141,7 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
13138
13141
  k(ie);
13139
13142
  },
13140
13143
  [m, $, f, p, k]
13141
- ), E = useCallback(
13144
+ ), O = useCallback(
13142
13145
  (Q) => {
13143
13146
  const { params: ie, searchValues: te, limit: oe, offset: se } = Q;
13144
13147
  w || (r == null || r(void 0), n == null || n([]), F == null || F(te), a == null || a(ie), o == null || o(!1), I(!0), M(void 0), j(1), oe && (U.current = oe, C == null || C(oe)), se && V(se), Z({
@@ -13188,7 +13191,7 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
13188
13191
  [f, t, c, $, k]
13189
13192
  );
13190
13193
  return {
13191
- submit: E,
13194
+ submit: O,
13192
13195
  clear: J,
13193
13196
  fetchResults: Z,
13194
13197
  tableRefreshing: w,
@@ -13227,11 +13230,11 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
13227
13230
  setTotalItems: x,
13228
13231
  setSelectedRowItems: _,
13229
13232
  selectedRowItems: C,
13230
- searchTreeNameSearch: O,
13233
+ searchTreeNameSearch: E,
13231
13234
  setSearchTreeNameSearch: F,
13232
13235
  goToResourceId: w,
13233
13236
  limit: S
13234
- } = e, [T, I] = useState(!1), [q, M] = useState(!1), [D, j] = useState(!1), [N, V] = useState(!0), [A, W] = useState(!0), [Y, z] = useState([]), [H, K] = useState(!1), [U, B] = useState([]), [k, $] = useState(!1), [L, G] = useState(!0), [Z, P] = useState(), [E, X] = useState({}), [J, ee] = useState(S !== void 0 ? S : DEFAULT_SEARCH_LIMIT$1), [Q, ie] = useState(n);
13237
+ } = e, [T, I] = useState(!1), [q, M] = useState(!1), [D, j] = useState(!1), [N, V] = useState(!0), [A, W] = useState(!0), [Y, z] = useState([]), [H, K] = useState(!1), [U, B] = useState([]), [k, $] = useState(!1), [L, G] = useState(!0), [Z, P] = useState(), [O, X] = useState({}), [J, ee] = useState(S !== void 0 ? S : DEFAULT_SEARCH_LIMIT$1), [Q, ie] = useState(n);
13235
13238
  useEffect(() => {
13236
13239
  p && p.length > 0 && !h && (m == null || m(0), d == null || d(p[0].id));
13237
13240
  }, [p]), useEffect(() => {
@@ -13286,14 +13289,14 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
13286
13289
  setSorter: g,
13287
13290
  totalItems: v,
13288
13291
  setTotalItems: x,
13289
- searchTreeNameSearch: O,
13292
+ searchTreeNameSearch: E,
13290
13293
  setSearchTreeNameSearch: F,
13291
13294
  setGraphIsLoading: G,
13292
13295
  graphIsLoading: L,
13293
13296
  previousView: Z,
13294
13297
  setPreviousView: P,
13295
13298
  goToResourceId: w,
13296
- searchValues: E,
13299
+ searchValues: O,
13297
13300
  setSearchValues: X,
13298
13301
  limit: J,
13299
13302
  setLimit: ee,
@@ -13558,7 +13561,7 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
13558
13561
  actionData: I
13559
13562
  }), h(!0);
13560
13563
  }
13561
- async function O() {
13564
+ async function E() {
13562
13565
  callRefreshValues(d.current), d.current = [], h(!1), y({
13563
13566
  domain: void 0,
13564
13567
  model: void 0,
@@ -13588,7 +13591,7 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
13588
13591
  model: m.model,
13589
13592
  formView: m.formView,
13590
13593
  visible: p,
13591
- onSubmitSucceed: O,
13594
+ onSubmitSucceed: E,
13592
13595
  onCancel: () => {
13593
13596
  callRefreshValues(d.current), d.current = [], h(!1), y({
13594
13597
  domain: void 0,
@@ -13629,12 +13632,12 @@ function Form(e, t) {
13629
13632
  visible: x = !0,
13630
13633
  rootForm: _ = !1,
13631
13634
  defaultValues: C,
13632
- forcedValues: O = {}
13635
+ forcedValues: E = {}
13633
13636
  } = e, {
13634
13637
  t: F,
13635
13638
  lang: w
13636
13639
  } = useContext(LocaleContext), [S, T] = useState(!1), [I, q] = useState(), [M, D] = useState(), [j] = Form$3.useForm(), [N, V] = useState(), [A, W] = useState(), Y = useContext(FormModalContext), [z, H] = useState(), [K, U] = useState(!1), B = useRef(), k = useRef({}), $ = useRef({}), L = useRef(!1), G = useRef(!1), Z = z < WIDTH_BREAKPOINT, P = useContext(FormContext$1), {
13637
- activeId: E,
13640
+ activeId: O,
13638
13641
  getPlainValues: X
13639
13642
  } = P || {}, J = useContext(ActionViewContext), {
13640
13643
  setFormIsSaving: ee = void 0,
@@ -13687,7 +13690,7 @@ function Form(e, t) {
13687
13690
  }
13688
13691
  function be() {
13689
13692
  const ne = {
13690
- ...Oe(A),
13693
+ ...Ee(A),
13691
13694
  ...ve()
13692
13695
  };
13693
13696
  for (const re in ne)
@@ -13704,7 +13707,7 @@ function Form(e, t) {
13704
13707
  }
13705
13708
  function ue() {
13706
13709
  const ne = {
13707
- ...Oe(A)
13710
+ ...Ee(A)
13708
13711
  };
13709
13712
  for (const re in ne)
13710
13713
  ne[re] === void 0 && delete ne[re];
@@ -13721,7 +13724,7 @@ function Form(e, t) {
13721
13724
  id: pe(),
13722
13725
  active_id: pe(),
13723
13726
  active_ids: [pe()],
13724
- parent_id: E,
13727
+ parent_id: O,
13725
13728
  ...me
13726
13729
  };
13727
13730
  }
@@ -13738,9 +13741,9 @@ function Form(e, t) {
13738
13741
  });
13739
13742
  }, Re = () => Object.keys(getTouchedValues({
13740
13743
  source: k.current,
13741
- target: Oe(A),
13744
+ target: Ee(A),
13742
13745
  fields: A
13743
- })).length !== 0, Oe = (ne) => {
13746
+ })).length !== 0, Ee = (ne) => {
13744
13747
  const re = j.getFieldsValue(!0);
13745
13748
  return processValues(re, ne);
13746
13749
  }, $e = (ne, re) => {
@@ -13753,7 +13756,7 @@ function Form(e, t) {
13753
13756
  reset: !1
13754
13757
  });
13755
13758
  }, Se = (ne) => j.getFieldsValue(!0)[ne];
13756
- async function Ee() {
13759
+ async function Oe() {
13757
13760
  try {
13758
13761
  return await j.validateFields(), !1;
13759
13762
  } catch {
@@ -13877,7 +13880,7 @@ function Form(e, t) {
13877
13880
  if (pe()) {
13878
13881
  const ce = getTouchedValues({
13879
13882
  source: k.current,
13880
- target: Oe(A),
13883
+ target: Ee(A),
13881
13884
  fields: A
13882
13885
  });
13883
13886
  await ConnectionProvider.getHandler().update({
@@ -13885,20 +13888,20 @@ function Form(e, t) {
13885
13888
  id: pe(),
13886
13889
  values: {
13887
13890
  ...ce,
13888
- ...O
13891
+ ...E
13889
13892
  },
13890
13893
  fields: A,
13891
13894
  context: {
13892
13895
  ...g,
13893
13896
  ...M == null ? void 0 : M.context
13894
13897
  }
13895
- }), k.current = Oe(A);
13898
+ }), k.current = Ee(A);
13896
13899
  } else {
13897
- const ce = Oe(A), de = await ConnectionProvider.getHandler().create({
13900
+ const ce = Ee(A), de = await ConnectionProvider.getHandler().create({
13898
13901
  model: r,
13899
13902
  values: {
13900
13903
  ...ce,
13901
- ...O
13904
+ ...E
13902
13905
  },
13903
13906
  fields: A,
13904
13907
  context: {
@@ -13921,7 +13924,7 @@ function Form(e, t) {
13921
13924
  } = ne || {};
13922
13925
  if (G.current = !0, q(void 0), !Re() && pe() && ce)
13923
13926
  return G.current = !1, Q == null || Q(!1), he == null || he(), !0;
13924
- if (await Ee())
13927
+ if (await Oe())
13925
13928
  return G.current = !1, showDialog$5(w), !1;
13926
13929
  T(!0), ee == null || ee(!0);
13927
13930
  try {
@@ -13957,7 +13960,7 @@ function Form(e, t) {
13957
13960
  return;
13958
13961
  const re = getTouchedValues({
13959
13962
  source: $.current,
13960
- target: Oe(A),
13963
+ target: Ee(A),
13961
13964
  fields: A
13962
13965
  }), ce = Object.keys(re);
13963
13966
  if (ce.length !== 0) {
@@ -13987,13 +13990,13 @@ function Form(e, t) {
13987
13990
  Ie({
13988
13991
  fields: A,
13989
13992
  arch: N,
13990
- values: Oe(A)
13993
+ values: Ee(A)
13991
13994
  });
13992
13995
  return;
13993
13996
  }
13994
13997
  const ce = getOnChangePayload({
13995
13998
  values: {
13996
- ...Oe(A),
13999
+ ...Ee(A),
13997
14000
  context: {
13998
14001
  ...g,
13999
14002
  ...M == null ? void 0 : M.context
@@ -14010,7 +14013,7 @@ function Form(e, t) {
14010
14013
  });
14011
14014
  if (de.value) {
14012
14015
  const xe = {
14013
- ...Oe(A),
14016
+ ...Ee(A),
14014
14017
  ...de.value
14015
14018
  };
14016
14019
  Ie({
@@ -14040,7 +14043,7 @@ function Form(e, t) {
14040
14043
  Ie({
14041
14044
  fields: xe,
14042
14045
  arch: N,
14043
- values: Oe(xe)
14046
+ values: Ee(xe)
14044
14047
  }), W(xe);
14045
14048
  }
14046
14049
  };
@@ -14137,7 +14140,7 @@ function Form(e, t) {
14137
14140
  he == null || he();
14138
14141
  return;
14139
14142
  }
14140
- if (await Ee()) {
14143
+ if (await Oe()) {
14141
14144
  showDialog$5(w);
14142
14145
  return;
14143
14146
  }
@@ -14253,11 +14256,11 @@ const Form$1 = forwardRef(Form), FormModal = (e) => {
14253
14256
  action_id: x,
14254
14257
  res_id: _,
14255
14258
  action_type: C,
14256
- view_id: O
14259
+ view_id: E
14257
14260
  } = u, F = await ConnectionProvider.getHandler().isShortcutFavorite({
14258
14261
  action_id: x,
14259
14262
  action_type: C,
14260
- view_id: O,
14263
+ view_id: E,
14261
14264
  res_id: _ || !1
14262
14265
  });
14263
14266
  h(F !== !1), F !== !1 && y(F);
@@ -14272,12 +14275,12 @@ const Form$1 = forwardRef(Form), FormModal = (e) => {
14272
14275
  action_id: x,
14273
14276
  res_id: _,
14274
14277
  action_type: C,
14275
- view_id: O
14278
+ view_id: E
14276
14279
  } = u;
14277
14280
  await ConnectionProvider.getHandler().addFavourite({
14278
14281
  action_id: x,
14279
14282
  action_type: C,
14280
- view_id: O,
14283
+ view_id: E,
14281
14284
  res_id: _ || !1
14282
14285
  });
14283
14286
  }
@@ -14723,7 +14726,7 @@ function SearchFilter(e) {
14723
14726
  const w = new SearchFilter$1(r, t);
14724
14727
  w.parse(), y(w._simpleSearchContainer), g(w._advancedSearchContainer);
14725
14728
  }, [t, r]);
14726
- const O = C(), F = (w) => {
14729
+ const E = C(), F = (w) => {
14727
14730
  const {
14728
14731
  limit: S,
14729
14732
  offset: T
@@ -14759,7 +14762,7 @@ function SearchFilter(e) {
14759
14762
  offset: s,
14760
14763
  limit: u
14761
14764
  },
14762
- children: [O, v && h && /* @__PURE__ */ jsx(SearchParams, {
14765
+ children: [E, v && h && /* @__PURE__ */ jsx(SearchParams, {
14763
14766
  onLimitChange: l
14764
14767
  }), /* @__PURE__ */ jsx(SearchBottomBar, {
14765
14768
  advancedFilter: v,
@@ -15000,7 +15003,7 @@ const ProgressBar = (e) => /* @__PURE__ */ jsx(Field$1, {
15000
15003
  });
15001
15004
  }
15002
15005
  }
15003
- function O(T) {
15006
+ function E(T) {
15004
15007
  o(!1), v == null || v({
15005
15008
  actionData: T,
15006
15009
  values: p,
@@ -15039,7 +15042,7 @@ const ProgressBar = (e) => /* @__PURE__ */ jsx(Field$1, {
15039
15042
  }), /* @__PURE__ */ jsx(Many2oneSuffixModal, {
15040
15043
  visible: a,
15041
15044
  items: (w = d == null ? void 0 : d.toolbar) == null ? void 0 : w.action,
15042
- onItemClicked: O,
15045
+ onItemClicked: E,
15043
15046
  onCancel: () => o(!1)
15044
15047
  }), /* @__PURE__ */ jsx(Many2oneSuffixModal, {
15045
15048
  visible: s,
@@ -15155,7 +15158,7 @@ function Tree(e) {
15155
15158
  childField: b,
15156
15159
  rootTree: g = !1,
15157
15160
  context: v
15158
- } = e, [x, _] = useState([]), [C, O] = useState([]), F = useRef(!1), w = useRef(null), {
15161
+ } = e, [x, _] = useState([]), [C, E] = useState([]), F = useRef(!1), w = useRef(null), {
15159
15162
  t: S
15160
15163
  } = useContext(LocaleContext), T = useRef(r), I = useContext(ActionViewContext), {
15161
15164
  title: q = void 0,
@@ -15176,7 +15179,7 @@ function Tree(e) {
15176
15179
  float: numberComponent,
15177
15180
  reference: referenceComponent
15178
15181
  }, v);
15179
- O(z), w.current.string && q !== w.current.string && (M == null || M(w.current.string));
15182
+ E(z), w.current.string && q !== w.current.string && (M == null || M(w.current.string));
15180
15183
  }, [a]), useEffect(() => {
15181
15184
  F.current = !1;
15182
15185
  const z = getTableItems(w.current, o);
@@ -15267,7 +15270,7 @@ function SearchTree(e, t) {
15267
15270
  rootTree: d = !1,
15268
15271
  parentContext: f = {},
15269
15272
  onChangeSelectedRowKeys: p
15270
- } = e, [h, m] = useState(!1), [y, b] = useState(!1), g = useRef(!1), [v, x] = useState(), [_, C] = useState(), [O, F] = useState(), [w, S] = useState(), [T, I] = useState(200), q = useRef(), {
15273
+ } = e, [h, m] = useState(!1), [y, b] = useState(!1), g = useRef(!1), [v, x] = useState(), [_, C] = useState(), [E, F] = useState(), [w, S] = useState(), [T, I] = useState(200), q = useRef(), {
15271
15274
  height: M
15272
15275
  } = useWindowDimensions(), D = useContext(ContentRootContext), {
15273
15276
  processAction: j
@@ -15287,7 +15290,7 @@ function SearchTree(e, t) {
15287
15290
  setTotalItems: G = void 0,
15288
15291
  setSearchTreeNameSearch: Z = void 0,
15289
15292
  setTreeIsLoading: P = void 0,
15290
- searchValues: E = {},
15293
+ searchValues: O = {},
15291
15294
  setSearchValues: X = void 0,
15292
15295
  limit: J = DEFAULT_SEARCH_LIMIT$1,
15293
15296
  setLimit: ee = void 0
@@ -15318,7 +15321,7 @@ function SearchTree(e, t) {
15318
15321
  nameSearch: s,
15319
15322
  searchNameGetDoneRef: g,
15320
15323
  context: f,
15321
- formView: O,
15324
+ formView: E,
15322
15325
  treeView: _,
15323
15326
  sorter: $,
15324
15327
  setSorter: L,
@@ -15355,12 +15358,12 @@ function SearchTree(e, t) {
15355
15358
  type: "form",
15356
15359
  context: f
15357
15360
  }));
15358
- let Ee = a;
15359
- a || (Ee = await ConnectionProvider.getHandler().getView({
15361
+ let Oe = a;
15362
+ a || (Oe = await ConnectionProvider.getHandler().getView({
15360
15363
  model: r,
15361
15364
  type: "tree",
15362
15365
  context: f
15363
- })), F(Se), C(Ee);
15366
+ })), F(Se), C(Oe);
15364
15367
  };
15365
15368
  useEffect(() => {
15366
15369
  be();
@@ -15369,7 +15372,7 @@ function SearchTree(e, t) {
15369
15372
  ee == null || ee(Se);
15370
15373
  }, ye = async (Se) => {
15371
15374
  const {
15372
- id: Ee
15375
+ id: Oe
15373
15376
  } = Se;
15374
15377
  q.current || (q.current = await ConnectionProvider.getHandler().treeButOpen({
15375
15378
  id: _.view_id,
@@ -15381,14 +15384,14 @@ function SearchTree(e, t) {
15381
15384
  actionData: Pe,
15382
15385
  fields: _.fields,
15383
15386
  values: {
15384
- active_id: Ee,
15387
+ active_id: Oe,
15385
15388
  ...Se
15386
15389
  },
15387
15390
  context: f
15388
15391
  }));
15389
15392
  }, ve = async (Se) => {
15390
15393
  const {
15391
- id: Ee
15394
+ id: Oe
15392
15395
  } = Se;
15393
15396
  if (_ != null && _.isExpandable) {
15394
15397
  try {
@@ -15399,26 +15402,26 @@ function SearchTree(e, t) {
15399
15402
  return;
15400
15403
  }
15401
15404
  o({
15402
- id: Ee,
15405
+ id: Oe,
15403
15406
  model: v,
15404
- formView: O,
15407
+ formView: E,
15405
15408
  treeView: _
15406
15409
  });
15407
15410
  };
15408
15411
  function we(Se) {
15409
- const Ee = me().filter((Pe) => Se.includes(Pe.id));
15410
- H == null || H(Ee), p == null || p(Se);
15412
+ const Oe = me().filter((Pe) => Se.includes(Pe.id));
15413
+ H == null || H(Oe), p == null || p(Se);
15411
15414
  }
15412
15415
  function Re() {
15413
15416
  return _ != null && _.isExpandable ? M - 160 : M - (T + 210);
15414
15417
  }
15415
- const Oe = () => !_ || !O ? null : /* @__PURE__ */ jsxs(Fragment, {
15418
+ const Ee = () => !_ || !E ? null : /* @__PURE__ */ jsxs(Fragment, {
15416
15419
  children: [/* @__PURE__ */ jsx(SearchFilter, {
15417
15420
  fields: {
15418
15421
  ..._.fields,
15419
- ...O.fields
15422
+ ...E.fields
15420
15423
  },
15421
- searchFields: mergeSearchFields([O.search_fields, _.search_fields]),
15424
+ searchFields: mergeSearchFields([E.search_fields, _.search_fields]),
15422
15425
  onClear: ie,
15423
15426
  limit: J,
15424
15427
  offset: ae,
@@ -15428,7 +15431,7 @@ function SearchTree(e, t) {
15428
15431
  setSearchFilterHeight: I,
15429
15432
  searchError: _e,
15430
15433
  searchVisible: B,
15431
- searchValues: E
15434
+ searchValues: O
15432
15435
  }), /* @__PURE__ */ jsx(Tree, {
15433
15436
  context: f,
15434
15437
  total: Te,
@@ -15461,7 +15464,7 @@ function SearchTree(e, t) {
15461
15464
  style: c ? {} : {
15462
15465
  display: "none"
15463
15466
  },
15464
- children: h ? /* @__PURE__ */ jsx(Spin, {}) : Oe()
15467
+ children: h ? /* @__PURE__ */ jsx(Spin, {}) : Ee()
15465
15468
  });
15466
15469
  }
15467
15470
  const SearchTree$1 = forwardRef(SearchTree), SearchModal = (e) => {
@@ -15595,7 +15598,7 @@ const SearchTree$1 = forwardRef(SearchTree), SearchModal = (e) => {
15595
15598
  context: u,
15596
15599
  id: l,
15597
15600
  domain: c
15598
- } = n, d = a && !s ? Config.requiredClass : void 0, [f, p] = useState(!1), [h, m] = useState(!1), [y, b] = useState(!1), [g, v] = useState(), x = useRef(!1), [_, C] = useState(""), O = useRef(), F = useContext(FormContext$1), {
15601
+ } = n, d = a && !s ? Config.requiredClass : void 0, [f, p] = useState(!1), [h, m] = useState(!1), [y, b] = useState(!1), [g, v] = useState(), x = useRef(!1), [_, C] = useState(""), E = useRef(), F = useContext(FormContext$1), {
15599
15602
  domain: w,
15600
15603
  getValues: S,
15601
15604
  getFields: T,
@@ -15606,12 +15609,12 @@ const SearchTree$1 = forwardRef(SearchTree), SearchModal = (e) => {
15606
15609
  useEffect(() => {
15607
15610
  !Array.isArray(t) && t && K(t);
15608
15611
  }, [t]), useEffect(() => {
15609
- V && A.length === 0 ? K(V) : V && A.length > 0 ? C(A) : !V && !A && C(O.current || "");
15612
+ V && A.length === 0 ? K(V) : V && A.length > 0 ? C(A) : !V && !A && C(E.current || "");
15610
15613
  }, [t]);
15611
15614
  const W = ($) => {
15612
15615
  r == null || r($), M == null || M();
15613
15616
  }, Y = ($) => {
15614
- O.current = $.target.value, W([void 0, ""]);
15617
+ E.current = $.target.value, W([void 0, ""]);
15615
15618
  }, z = async () => {
15616
15619
  if (!y && _ !== A) {
15617
15620
  if (await new Promise(($) => setTimeout($, 100)), x.current) {
@@ -15621,17 +15624,17 @@ const SearchTree$1 = forwardRef(SearchTree), SearchModal = (e) => {
15621
15624
  b(!0);
15622
15625
  try {
15623
15626
  if (D.current && D.current.length > 0)
15624
- H(O.current);
15627
+ H(E.current);
15625
15628
  else {
15626
15629
  const $ = await ConnectionProvider.getHandler().nameSearch({
15627
15630
  model: o,
15628
- payload: O.current,
15631
+ payload: E.current,
15629
15632
  context: {
15630
15633
  ...I == null ? void 0 : I(),
15631
15634
  ...u
15632
15635
  }
15633
15636
  });
15634
- $.length === 1 ? (O.current = void 0, W($[0])) : H(O.current);
15637
+ $.length === 1 ? (E.current = void 0, W($[0])) : H(E.current);
15635
15638
  }
15636
15639
  } catch ($) {
15637
15640
  showDialog$3($);
@@ -15742,7 +15745,7 @@ const SearchTree$1 = forwardRef(SearchTree), SearchModal = (e) => {
15742
15745
  visible: f,
15743
15746
  nameSearch: V ? void 0 : g,
15744
15747
  onSelectValues: ($) => {
15745
- p(!1), K($[0]), x.current = !1, O.current = void 0;
15748
+ p(!1), K($[0]), x.current = !1, E.current = void 0;
15746
15749
  },
15747
15750
  onCloseModal: () => {
15748
15751
  p(!1), x.current = !1;
@@ -16200,8 +16203,8 @@ function requireTransButton() {
16200
16203
  var C = _.keyCode;
16201
16204
  C === o.default.ENTER && _.preventDefault();
16202
16205
  }, h = function(_) {
16203
- var C = _.keyCode, O = d.onClick;
16204
- C === o.default.ENTER && O && O();
16206
+ var C = _.keyCode, E = d.onClick;
16207
+ C === o.default.ENTER && E && E();
16205
16208
  }, m = d.style, y = d.noStyle, b = d.disabled, g = s(d, ["style", "noStyle", "disabled"]), v = {};
16206
16209
  return y || (v = (0, n.default)({}, u)), b && (v.pointerEvents = "none"), v = (0, n.default)((0, n.default)({}, v), m), /* @__PURE__ */ a.createElement("div", (0, n.default)({
16207
16210
  role: "button",
@@ -16898,8 +16901,8 @@ function doAlign(e, t, r, n) {
16898
16901
  var _ = flip(a, /[tb]/gi, {
16899
16902
  t: "b",
16900
16903
  b: "t"
16901
- }), C = flipOffset(o, 1), O = flipOffset(s, 1), F = getElFuturePos(h, t, _, C, O);
16902
- isCompleteFailY(F, h, p) || (d = 1, a = _, o = C, s = O);
16904
+ }), C = flipOffset(o, 1), E = flipOffset(s, 1), F = getElFuturePos(h, t, _, C, E);
16905
+ isCompleteFailY(F, h, p) || (d = 1, a = _, o = C, s = E);
16903
16906
  }
16904
16907
  d && (m = getElFuturePos(h, t, a, o, s), utils.mix(y, m));
16905
16908
  var w = isFailX(m, h, p), S = isFailY(m, h, p);
@@ -17009,7 +17012,7 @@ var Align = function e(t, r) {
17009
17012
  var n = t.children, a = t.disabled, o = t.target, s = t.align, u = t.onAlign, l = t.monitorWindowResize, c = t.monitorBufferTime, d = c === void 0 ? 0 : c, f = React__default.useRef({}), p = React__default.useRef(), h = React__default.Children.only(n), m = React__default.useRef({});
17010
17013
  m.current.disabled = a, m.current.target = o, m.current.onAlign = u;
17011
17014
  var y = useBuffer(function() {
17012
- var O = m.current, F = O.disabled, w = O.target, S = O.onAlign;
17015
+ var E = m.current, F = E.disabled, w = E.target, S = E.onAlign;
17013
17016
  if (!F && w) {
17014
17017
  var T = p.current, I, q = getElement(w), M = getPoint(w);
17015
17018
  f.current.element = q, f.current.point = M;
@@ -17025,8 +17028,8 @@ var Align = function e(t, r) {
17025
17028
  }
17026
17029
  });
17027
17030
  React__default.useEffect(function() {
17028
- var O = getElement(o), F = getPoint(o);
17029
- p.current !== _.current.element && (_.current.cancel(), _.current.element = p.current, _.current.cancel = monitorResize(p.current, g)), (f.current.element !== O || !isSamePoint(f.current.point, F)) && (g(), x.current.element !== O && (x.current.cancel(), x.current.element = O, x.current.cancel = monitorResize(O, g)));
17031
+ var E = getElement(o), F = getPoint(o);
17032
+ p.current !== _.current.element && (_.current.cancel(), _.current.element = p.current, _.current.cancel = monitorResize(p.current, g)), (f.current.element !== E || !isSamePoint(f.current.point, F)) && (g(), x.current.element !== E && (x.current.cancel(), x.current.element = E, x.current.cancel = monitorResize(E, g)));
17030
17033
  }), React__default.useEffect(function() {
17031
17034
  a ? v() : g();
17032
17035
  }, [a]);
@@ -17118,7 +17121,7 @@ const useVisibleStatus = function(e, t) {
17118
17121
  return [s, o];
17119
17122
  };
17120
17123
  var PopupInner = /* @__PURE__ */ React.forwardRef(function(e, t) {
17121
- var r = e.visible, n = e.prefixCls, a = e.className, o = e.style, s = e.children, u = e.zIndex, l = e.stretch, c = e.destroyPopupOnHide, d = e.align, f = e.point, p = e.getRootDomNode, h = e.getClassNameFromAlign, m = e.onAlign, y = e.onMouseEnter, b = e.onMouseLeave, g = e.onMouseDown, v = e.onTouchStart, x = useRef(), _ = useRef(), C = useState(), O = _slicedToArray(C, 2), F = O[0], w = O[1], S = useStretchStyle(l), T = _slicedToArray(S, 2), I = T[0], q = T[1];
17124
+ var r = e.visible, n = e.prefixCls, a = e.className, o = e.style, s = e.children, u = e.zIndex, l = e.stretch, c = e.destroyPopupOnHide, d = e.align, f = e.point, p = e.getRootDomNode, h = e.getClassNameFromAlign, m = e.onAlign, y = e.onMouseEnter, b = e.onMouseLeave, g = e.onMouseDown, v = e.onTouchStart, x = useRef(), _ = useRef(), C = useState(), E = _slicedToArray(C, 2), F = E[0], w = E[1], S = useStretchStyle(l), T = _slicedToArray(S, 2), I = T[0], q = T[1];
17122
17125
  function M() {
17123
17126
  l && q(p());
17124
17127
  }
@@ -17341,7 +17344,7 @@ function generateTrigger(e) {
17341
17344
  var c = [], d = s.props, f = d.popupPlacement, p = d.builtinPlacements, h = d.prefixCls, m = d.alignPoint, y = d.getPopupClassNameFromAlign;
17342
17345
  return f && p && c.push(getAlignPopupClassName(p, h, l, m)), y && c.push(y(l)), c.join(" ");
17343
17346
  }, s.getComponent = function() {
17344
- var l = s.props, c = l.prefixCls, d = l.destroyPopupOnHide, f = l.popupClassName, p = l.onPopupAlign, h = l.popupMotion, m = l.popupAnimation, y = l.popupTransitionName, b = l.popupStyle, g = l.mask, v = l.maskAnimation, x = l.maskTransitionName, _ = l.maskMotion, C = l.zIndex, O = l.popup, F = l.stretch, w = l.alignPoint, S = l.mobile, T = s.state, I = T.popupVisible, q = T.point, M = s.getPopupAlign(), D = {};
17347
+ var l = s.props, c = l.prefixCls, d = l.destroyPopupOnHide, f = l.popupClassName, p = l.onPopupAlign, h = l.popupMotion, m = l.popupAnimation, y = l.popupTransitionName, b = l.popupStyle, g = l.mask, v = l.maskAnimation, x = l.maskTransitionName, _ = l.maskMotion, C = l.zIndex, E = l.popup, F = l.stretch, w = l.alignPoint, S = l.mobile, T = s.state, I = T.popupVisible, q = T.point, M = s.getPopupAlign(), D = {};
17345
17348
  return s.isMouseEnterToShow() && (D.onMouseEnter = s.onPopupMouseEnter), s.isMouseLeaveToHide() && (D.onMouseLeave = s.onPopupMouseLeave), D.onMouseDown = s.onPopupMouseDown, D.onTouchStart = s.onPopupMouseDown, /* @__PURE__ */ jsx(Popup, {
17346
17349
  prefixCls: c,
17347
17350
  destroyPopupOnHide: d,
@@ -17365,7 +17368,7 @@ function generateTrigger(e) {
17365
17368
  ref: s.popupRef,
17366
17369
  motion: h,
17367
17370
  mobile: S,
17368
- children: typeof O == "function" ? O() : O
17371
+ children: typeof E == "function" ? E() : E
17369
17372
  });
17370
17373
  }, s.attachParent = function(l) {
17371
17374
  wrapperRaf.cancel(s.attachId);
@@ -17675,7 +17678,7 @@ var autoAdjustOverflow = {
17675
17678
  children: typeof r == "function" ? r() : r
17676
17679
  });
17677
17680
  }, Tooltip = function e(t, r) {
17678
- var n = t.overlayClassName, a = t.trigger, o = a === void 0 ? ["hover"] : a, s = t.mouseEnterDelay, u = s === void 0 ? 0 : s, l = t.mouseLeaveDelay, c = l === void 0 ? 0.1 : l, d = t.overlayStyle, f = t.prefixCls, p = f === void 0 ? "rc-tooltip" : f, h = t.children, m = t.onVisibleChange, y = t.afterVisibleChange, b = t.transitionName, g = t.animation, v = t.placement, x = v === void 0 ? "right" : v, _ = t.align, C = _ === void 0 ? {} : _, O = t.destroyTooltipOnHide, F = O === void 0 ? !1 : O, w = t.defaultVisible, S = t.getTooltipContainer, T = t.overlayInnerStyle, I = _objectWithoutProperties(t, ["overlayClassName", "trigger", "mouseEnterDelay", "mouseLeaveDelay", "overlayStyle", "prefixCls", "children", "onVisibleChange", "afterVisibleChange", "transitionName", "animation", "placement", "align", "destroyTooltipOnHide", "defaultVisible", "getTooltipContainer", "overlayInnerStyle"]), q = useRef(null);
17681
+ var n = t.overlayClassName, a = t.trigger, o = a === void 0 ? ["hover"] : a, s = t.mouseEnterDelay, u = s === void 0 ? 0 : s, l = t.mouseLeaveDelay, c = l === void 0 ? 0.1 : l, d = t.overlayStyle, f = t.prefixCls, p = f === void 0 ? "rc-tooltip" : f, h = t.children, m = t.onVisibleChange, y = t.afterVisibleChange, b = t.transitionName, g = t.animation, v = t.placement, x = v === void 0 ? "right" : v, _ = t.align, C = _ === void 0 ? {} : _, E = t.destroyTooltipOnHide, F = E === void 0 ? !1 : E, w = t.defaultVisible, S = t.getTooltipContainer, T = t.overlayInnerStyle, I = _objectWithoutProperties(t, ["overlayClassName", "trigger", "mouseEnterDelay", "mouseLeaveDelay", "overlayStyle", "prefixCls", "children", "onVisibleChange", "afterVisibleChange", "transitionName", "animation", "placement", "align", "destroyTooltipOnHide", "defaultVisible", "getTooltipContainer", "overlayInnerStyle"]), q = useRef(null);
17679
17682
  useImperativeHandle(r, function() {
17680
17683
  return q.current;
17681
17684
  });
@@ -17918,20 +17921,20 @@ function requireTooltip() {
17918
17921
  value: !0
17919
17922
  }), e.default = void 0;
17920
17923
  var n = r(requireDefineProperty()), a = r(requireSlicedToArray()), o = r(require_extends()), s = t(React__default), u = r(require$$6), l = r(requireClassnames()), c = r(requirePlacements()), d = requireReactNode(), f = requireConfigProvider(), p = requireColors(), h = function(x, _) {
17921
- var C = {}, O = (0, o.default)({}, x);
17924
+ var C = {}, E = (0, o.default)({}, x);
17922
17925
  return _.forEach(function(F) {
17923
- x && F in x && (C[F] = x[F], delete O[F]);
17926
+ x && F in x && (C[F] = x[F], delete E[F]);
17924
17927
  }), {
17925
17928
  picked: C,
17926
- omitted: O
17929
+ omitted: E
17927
17930
  };
17928
17931
  }, m = new RegExp("^(".concat(p.PresetColorTypes.join("|"), ")(-inverse)?$"));
17929
17932
  function y(v, x) {
17930
17933
  var _ = v.type;
17931
17934
  if ((_.__ANT_BUTTON === !0 || _.__ANT_SWITCH === !0 || _.__ANT_CHECKBOX === !0 || v.type === "button") && v.props.disabled) {
17932
- var C = h(v.props.style, ["position", "left", "right", "top", "bottom", "float", "display", "zIndex"]), O = C.picked, F = C.omitted, w = (0, o.default)((0, o.default)({
17935
+ var C = h(v.props.style, ["position", "left", "right", "top", "bottom", "float", "display", "zIndex"]), E = C.picked, F = C.omitted, w = (0, o.default)((0, o.default)({
17933
17936
  display: "inline-block"
17934
- }, O), {
17937
+ }, E), {
17935
17938
  cursor: "not-allowed",
17936
17939
  width: v.props.block ? "100%" : null
17937
17940
  }), S = (0, o.default)((0, o.default)({}, F), {
@@ -17948,7 +17951,7 @@ function requireTooltip() {
17948
17951
  return v;
17949
17952
  }
17950
17953
  var b = /* @__PURE__ */ s.forwardRef(function(v, x) {
17951
- var _, C = s.useContext(f.ConfigContext), O = C.getPopupContainer, F = C.getPrefixCls, w = C.direction, S = s.useState(!!v.visible || !!v.defaultVisible), T = (0, a.default)(S, 2), I = T[0], q = T[1];
17954
+ var _, C = s.useContext(f.ConfigContext), E = C.getPopupContainer, F = C.getPrefixCls, w = C.direction, S = s.useState(!!v.visible || !!v.defaultVisible), T = (0, a.default)(S, 2), I = T[0], q = T[1];
17952
17955
  s.useEffect(function() {
17953
17956
  "visible" in v && q(v.visible);
17954
17957
  }, [v.visible]);
@@ -17979,22 +17982,22 @@ function requireTooltip() {
17979
17982
  return ee === 0 ? ee : Q || ee || "";
17980
17983
  }, A = v.prefixCls, W = v.openClassName, Y = v.getPopupContainer, z = v.getTooltipContainer, H = v.overlayClassName, K = v.color, U = v.overlayInnerStyle, B = v.children, k = F("tooltip", A), $ = I;
17981
17984
  !("visible" in v) && M() && ($ = !1);
17982
- var L = y((0, d.isValidElement)(B) ? B : /* @__PURE__ */ s.createElement("span", null, B), k), G = L.props, Z = (0, l.default)(G.className, (0, n.default)({}, W || "".concat(k, "-open"), !0)), P = (0, l.default)(H, (_ = {}, (0, n.default)(_, "".concat(k, "-rtl"), w === "rtl"), (0, n.default)(_, "".concat(k, "-").concat(K), K && m.test(K)), _)), E = U, X;
17983
- return K && !m.test(K) && (E = (0, o.default)((0, o.default)({}, U), {
17985
+ var L = y((0, d.isValidElement)(B) ? B : /* @__PURE__ */ s.createElement("span", null, B), k), G = L.props, Z = (0, l.default)(G.className, (0, n.default)({}, W || "".concat(k, "-open"), !0)), P = (0, l.default)(H, (_ = {}, (0, n.default)(_, "".concat(k, "-rtl"), w === "rtl"), (0, n.default)(_, "".concat(k, "-").concat(K), K && m.test(K)), _)), O = U, X;
17986
+ return K && !m.test(K) && (O = (0, o.default)((0, o.default)({}, U), {
17984
17987
  background: K
17985
17988
  }), X = {
17986
17989
  background: K
17987
17990
  }), /* @__PURE__ */ s.createElement(u.default, (0, o.default)({}, v, {
17988
17991
  prefixCls: k,
17989
17992
  overlayClassName: P,
17990
- getTooltipContainer: Y || z || O,
17993
+ getTooltipContainer: Y || z || E,
17991
17994
  ref: x,
17992
17995
  builtinPlacements: j(),
17993
17996
  overlay: V(),
17994
17997
  visible: $,
17995
17998
  onVisibleChange: D,
17996
17999
  onPopupAlign: N,
17997
- overlayInnerStyle: E,
18000
+ overlayInnerStyle: O,
17998
18001
  arrowContent: /* @__PURE__ */ s.createElement("span", {
17999
18002
  className: "".concat(k, "-arrow-content"),
18000
18003
  style: X
@@ -18059,12 +18062,12 @@ function requireTypography() {
18059
18062
  b.indexOf(v[x]) < 0 && Object.prototype.propertyIsEnumerable.call(y, v[x]) && (g[v[x]] = y[v[x]]);
18060
18063
  return g;
18061
18064
  }, f = function(b, g) {
18062
- var v = b.prefixCls, x = b.component, _ = x === void 0 ? "article" : x, C = b.className, O = b["aria-label"], F = b.setContentRef, w = b.children, S = d(b, ["prefixCls", "component", "className", "aria-label", "setContentRef", "children"]), T = g;
18065
+ var v = b.prefixCls, x = b.component, _ = x === void 0 ? "article" : x, C = b.className, E = b["aria-label"], F = b.setContentRef, w = b.children, S = d(b, ["prefixCls", "component", "className", "aria-label", "setContentRef", "children"]), T = g;
18063
18066
  return F && ((0, c.default)(!1, "Typography", "`setContentRef` is deprecated. Please use `ref` instead."), T = (0, u.composeRef)(g, F)), /* @__PURE__ */ o.createElement(l.ConfigConsumer, null, function(I) {
18064
18067
  var q = I.getPrefixCls, M = I.direction, D = _, j = q("typography", v), N = (0, s.default)(j, (0, a.default)({}, "".concat(j, "-rtl"), M === "rtl"), C);
18065
18068
  return /* @__PURE__ */ o.createElement(D, (0, n.default)({
18066
18069
  className: N,
18067
- "aria-label": O,
18070
+ "aria-label": E,
18068
18071
  ref: T
18069
18072
  }, S), w);
18070
18073
  });
@@ -18123,10 +18126,10 @@ function requireEditable() {
18123
18126
  value: !0
18124
18127
  }), e.default = void 0;
18125
18128
  var n = r(requireDefineProperty()), a = r(requireSlicedToArray()), o = t(React__default), s = r(requireClassnames()), u = r(requireKeyCode()), l = r(requireEnterOutlined()), c = r(TextArea$3), d = function(h) {
18126
- var m = h.prefixCls, y = h["aria-label"], b = h.className, g = h.style, v = h.direction, x = h.maxLength, _ = h.autoSize, C = _ === void 0 ? !0 : _, O = h.value, F = h.onSave, w = h.onCancel, S = o.useRef(), T = o.useRef(!1), I = o.useRef(), q = o.useState(O), M = (0, a.default)(q, 2), D = M[0], j = M[1];
18129
+ var m = h.prefixCls, y = h["aria-label"], b = h.className, g = h.style, v = h.direction, x = h.maxLength, _ = h.autoSize, C = _ === void 0 ? !0 : _, E = h.value, F = h.onSave, w = h.onCancel, S = o.useRef(), T = o.useRef(!1), I = o.useRef(), q = o.useState(E), M = (0, a.default)(q, 2), D = M[0], j = M[1];
18127
18130
  o.useEffect(function() {
18128
- j(O);
18129
- }, [O]), o.useEffect(function() {
18131
+ j(E);
18132
+ }, [E]), o.useEffect(function() {
18130
18133
  if (S.current && S.current.resizableTextArea) {
18131
18134
  var U = S.current.resizableTextArea.textArea;
18132
18135
  U.focus();
@@ -18208,7 +18211,7 @@ function requireUtil() {
18208
18211
  }
18209
18212
  var m = function(b, g, v, x, _) {
18210
18213
  c || (c = document.createElement("div"), c.setAttribute("aria-hidden", "true"), document.body.appendChild(c));
18211
- var C = g.rows, O = g.suffix, F = O === void 0 ? "" : O, w = window.getComputedStyle(b), S = p(w), T = f(w.lineHeight), I = Math.round(T * (C + 1) + f(w.paddingTop) + f(w.paddingBottom));
18214
+ var C = g.rows, E = g.suffix, F = E === void 0 ? "" : E, w = window.getComputedStyle(b), S = p(w), T = f(w.lineHeight), I = Math.round(T * (C + 1) + f(w.paddingTop) + f(w.paddingBottom));
18212
18215
  c.setAttribute("style", S), c.style.position = "fixed", c.style.left = "0", c.style.height = "auto", c.style.minHeight = "auto", c.style.maxHeight = "auto", c.style.top = "-999999px", c.style.zIndex = "-1000", c.style.textOverflow = "clip", c.style.whiteSpace = "normal", c.style.webkitLineClamp = "none";
18213
18216
  var q = h((0, o.default)(v));
18214
18217
  (0, n.render)(/* @__PURE__ */ a.createElement("div", {
@@ -18297,7 +18300,7 @@ function requireBase() {
18297
18300
  Object.defineProperty(e, "__esModule", {
18298
18301
  value: !0
18299
18302
  }), e.default = void 0;
18300
- var n = r(requireDefineProperty()), a = r(requireToConsumableArray()), o = r(_typeof$2.exports), s = r(require_extends()), u = r(requireClassCallCheck()), l = r(requireCreateClass()), c = r(requireInherits()), d = r(requireCreateSuper()), f = t(React__default), p = r(requireClassnames()), h = r(requireToArray()), m = r(requireCopyToClipboard()), y = r(requireOmit()), b = r(requireEditOutlined()), g = r(requireCheckOutlined()), v = r(requireCopyOutlined()), x = r(require$$18), _ = requireConfigProvider(), C = r(requireLocaleReceiver()), O = r(requireDevWarning()), F = r(requireTransButton()), w = r(requireRaf()), S = requireStyleChecker(), T = r(requireTooltip()), I = r(requireTypography()), q = r(requireEditable()), M = r(requireUtil()), D = function(z, H) {
18303
+ var n = r(requireDefineProperty()), a = r(requireToConsumableArray()), o = r(_typeof$2.exports), s = r(require_extends()), u = r(requireClassCallCheck()), l = r(requireCreateClass()), c = r(requireInherits()), d = r(requireCreateSuper()), f = t(React__default), p = r(requireClassnames()), h = r(requireToArray()), m = r(requireCopyToClipboard()), y = r(requireOmit()), b = r(requireEditOutlined()), g = r(requireCheckOutlined()), v = r(requireCopyOutlined()), x = r(require$$18), _ = requireConfigProvider(), C = r(requireLocaleReceiver()), E = r(requireDevWarning()), F = r(requireTransButton()), w = r(requireRaf()), S = requireStyleChecker(), T = r(requireTooltip()), I = r(requireTypography()), q = r(requireEditable()), M = r(requireUtil()), D = function(z, H) {
18301
18304
  var K = {};
18302
18305
  for (var U in z)
18303
18306
  Object.prototype.hasOwnProperty.call(z, U) && H.indexOf(U) < 0 && (K[U] = z[U]);
@@ -18308,8 +18311,8 @@ function requireBase() {
18308
18311
  }, j = (0, S.isStyleSupport)("webkitLineClamp"), N = (0, S.isStyleSupport)("textOverflow");
18309
18312
  function V(z, H) {
18310
18313
  var K = z.mark, U = z.code, B = z.underline, k = z.delete, $ = z.strong, L = z.keyboard, G = H;
18311
- function Z(P, E) {
18312
- !P || (G = /* @__PURE__ */ f.createElement(E, {}, G));
18314
+ function Z(P, O) {
18315
+ !P || (G = /* @__PURE__ */ f.createElement(O, {}, G));
18313
18316
  }
18314
18317
  return Z($, "strong"), Z(B, "u"), Z(k, "del"), Z(U, "code"), Z(K, "mark"), Z(L, "kbd"), G;
18315
18318
  }
@@ -18408,15 +18411,15 @@ function requireBase() {
18408
18411
  }, {
18409
18412
  key: "canUseCSSEllipsis",
18410
18413
  value: function() {
18411
- var B = this.state.clientRendered, k = this.props, $ = k.editable, L = k.copyable, G = this.getEllipsis(), Z = G.rows, P = G.expandable, E = G.suffix, X = G.onEllipsis, J = G.tooltip;
18412
- return E || J || $ || L || P || !B || X ? !1 : Z === 1 ? N : j;
18414
+ var B = this.state.clientRendered, k = this.props, $ = k.editable, L = k.copyable, G = this.getEllipsis(), Z = G.rows, P = G.expandable, O = G.suffix, X = G.onEllipsis, J = G.tooltip;
18415
+ return O || J || $ || L || P || !B || X ? !1 : Z === 1 ? N : j;
18413
18416
  }
18414
18417
  }, {
18415
18418
  key: "syncEllipsis",
18416
18419
  value: function() {
18417
- var B = this.state, k = B.ellipsisText, $ = B.isEllipsis, L = B.expanded, G = this.getEllipsis(), Z = G.rows, P = G.suffix, E = G.onEllipsis, X = this.props.children;
18420
+ var B = this.state, k = B.ellipsisText, $ = B.isEllipsis, L = B.expanded, G = this.getEllipsis(), Z = G.rows, P = G.suffix, O = G.onEllipsis, X = this.props.children;
18418
18421
  if (!(!Z || Z < 0 || !this.contentRef.current || L) && !this.canUseCSSEllipsis()) {
18419
- (0, O.default)((0, h.default)(X).every(function(te) {
18422
+ (0, E.default)((0, h.default)(X).every(function(te) {
18420
18423
  return typeof te == "string";
18421
18424
  }), "Typography", "`ellipsis` should use string as children only.");
18422
18425
  var J = (0, M.default)(this.contentRef.current, {
@@ -18427,7 +18430,7 @@ function requireBase() {
18427
18430
  ellipsisText: Q,
18428
18431
  ellipsisContent: ee,
18429
18432
  isEllipsis: ie
18430
- }), $ !== ie && E && E(ie));
18433
+ }), $ !== ie && O && O(ie));
18431
18434
  }
18432
18435
  }
18433
18436
  }, {
@@ -18436,13 +18439,13 @@ function requireBase() {
18436
18439
  var k = this.getEllipsis(), $ = k.expandable, L = k.symbol, G = this.state, Z = G.expanded, P = G.isEllipsis;
18437
18440
  if (!$ || !B && (Z || !P))
18438
18441
  return null;
18439
- var E;
18440
- return L ? E = L : E = this.expandStr, /* @__PURE__ */ f.createElement("a", {
18442
+ var O;
18443
+ return L ? O = L : O = this.expandStr, /* @__PURE__ */ f.createElement("a", {
18441
18444
  key: "expand",
18442
18445
  className: "".concat(this.getPrefixCls(), "-expand"),
18443
18446
  onClick: this.onExpandClick,
18444
18447
  "aria-label": this.expandStr
18445
- }, E);
18448
+ }, O);
18446
18449
  }
18447
18450
  }, {
18448
18451
  key: "renderEdit",
@@ -18470,7 +18473,7 @@ function requireBase() {
18470
18473
  if (!!k) {
18471
18474
  var $ = this.getPrefixCls(), L = k.tooltips, G = (0, h.default)(L);
18472
18475
  G.length === 0 && (G = [this.copyStr, this.copiedStr]);
18473
- var Z = B ? G[1] : G[0], P = typeof Z == "string" ? Z : "", E = (0, h.default)(k.icon);
18476
+ var Z = B ? G[1] : G[0], P = typeof Z == "string" ? Z : "", O = (0, h.default)(k.icon);
18474
18477
  return /* @__PURE__ */ f.createElement(T.default, {
18475
18478
  key: "copy",
18476
18479
  title: L === !1 ? "" : Z
@@ -18478,13 +18481,13 @@ function requireBase() {
18478
18481
  className: (0, p.default)("".concat($, "-copy"), B && "".concat($, "-copy-success")),
18479
18482
  onClick: this.onCopyClick,
18480
18483
  "aria-label": P
18481
- }, B ? E[1] || /* @__PURE__ */ f.createElement(g.default, null) : E[0] || /* @__PURE__ */ f.createElement(v.default, null)));
18484
+ }, B ? O[1] || /* @__PURE__ */ f.createElement(g.default, null) : O[0] || /* @__PURE__ */ f.createElement(v.default, null)));
18482
18485
  }
18483
18486
  }
18484
18487
  }, {
18485
18488
  key: "renderEditInput",
18486
18489
  value: function() {
18487
- var B = this.props, k = B.children, $ = B.className, L = B.style, G = this.context.direction, Z = this.getEditable(), P = Z.maxLength, E = Z.autoSize;
18490
+ var B = this.props, k = B.children, $ = B.className, L = B.style, G = this.context.direction, Z = this.getEditable(), P = Z.maxLength, O = Z.autoSize;
18488
18491
  return /* @__PURE__ */ f.createElement(q.default, {
18489
18492
  value: typeof k == "string" ? k : "",
18490
18493
  onSave: this.onEditChange,
@@ -18494,7 +18497,7 @@ function requireBase() {
18494
18497
  style: L,
18495
18498
  direction: G,
18496
18499
  maxLength: P,
18497
- autoSize: E
18500
+ autoSize: O
18498
18501
  });
18499
18502
  }
18500
18503
  }, {
@@ -18507,17 +18510,17 @@ function requireBase() {
18507
18510
  }, {
18508
18511
  key: "renderContent",
18509
18512
  value: function() {
18510
- var B = this, k = this.state, $ = k.ellipsisContent, L = k.isEllipsis, G = k.expanded, Z = this.props, P = Z.component, E = Z.children, X = Z.className, J = Z.type, ee = Z.disabled, Q = Z.style, ie = D(Z, ["component", "children", "className", "type", "disabled", "style"]), te = this.context.direction, oe = this.getEllipsis(), se = oe.rows, _e = oe.suffix, Ce = oe.tooltip, ae = this.getPrefixCls(), me = (0, y.default)(ie, ["prefixCls", "editable", "copyable", "ellipsis", "mark", "code", "delete", "underline", "strong", "keyboard"].concat((0, a.default)(_.configConsumerProps))), fe = this.canUseCSSEllipsis(), he = se === 1 && fe, ge = se && se > 1 && fe, pe = E;
18513
+ var B = this, k = this.state, $ = k.ellipsisContent, L = k.isEllipsis, G = k.expanded, Z = this.props, P = Z.component, O = Z.children, X = Z.className, J = Z.type, ee = Z.disabled, Q = Z.style, ie = D(Z, ["component", "children", "className", "type", "disabled", "style"]), te = this.context.direction, oe = this.getEllipsis(), se = oe.rows, _e = oe.suffix, Ce = oe.tooltip, ae = this.getPrefixCls(), me = (0, y.default)(ie, ["prefixCls", "editable", "copyable", "ellipsis", "mark", "code", "delete", "underline", "strong", "keyboard"].concat((0, a.default)(_.configConsumerProps))), fe = this.canUseCSSEllipsis(), he = se === 1 && fe, ge = se && se > 1 && fe, pe = O;
18511
18514
  if (se && L && !G && !fe) {
18512
18515
  var Te = ie.title, be = Te || "";
18513
- !Te && (typeof E == "string" || typeof E == "number") && (be = String(E)), be = be == null ? void 0 : be.slice(String($ || "").length), pe = /* @__PURE__ */ f.createElement(f.Fragment, null, $, /* @__PURE__ */ f.createElement("span", {
18516
+ !Te && (typeof O == "string" || typeof O == "number") && (be = String(O)), be = be == null ? void 0 : be.slice(String($ || "").length), pe = /* @__PURE__ */ f.createElement(f.Fragment, null, $, /* @__PURE__ */ f.createElement("span", {
18514
18517
  title: be,
18515
18518
  "aria-hidden": "true"
18516
18519
  }, A), _e), Ce && (pe = /* @__PURE__ */ f.createElement(T.default, {
18517
- title: Ce === !0 ? E : Ce
18520
+ title: Ce === !0 ? O : Ce
18518
18521
  }, /* @__PURE__ */ f.createElement("span", null, pe)));
18519
18522
  } else
18520
- pe = /* @__PURE__ */ f.createElement(f.Fragment, null, E, _e);
18523
+ pe = /* @__PURE__ */ f.createElement(f.Fragment, null, O, _e);
18521
18524
  return pe = V(this.props, pe), /* @__PURE__ */ f.createElement(C.default, {
18522
18525
  componentName: "Text"
18523
18526
  }, function(le) {
@@ -18546,7 +18549,7 @@ function requireBase() {
18546
18549
  key: "getDerivedStateFromProps",
18547
18550
  value: function(B) {
18548
18551
  var k = B.children, $ = B.editable;
18549
- return (0, O.default)(!$ || typeof k == "string", "Typography", "When `editable` is enabled, the `children` should use string."), {};
18552
+ return (0, E.default)(!$ || typeof k == "string", "Typography", "When `editable` is enabled, the `children` should use string."), {};
18550
18553
  }
18551
18554
  }]), K;
18552
18555
  }(f.Component);
@@ -18593,7 +18596,7 @@ const Title$2 = /* @__PURE__ */ getDefaultExportFromCjs(Title$3), {
18593
18596
  field: c,
18594
18597
  operator: d,
18595
18598
  manualIds: f
18596
- } = e, [p, h] = useState(!1), [m, y] = useState(), [b, g] = useState(), [v, x] = useState(), [_, C] = useState(0), [O, F] = useState(0), [w, S] = useState(), [T, I] = useState(), [q, M] = useState();
18599
+ } = e, [p, h] = useState(!1), [m, y] = useState(), [b, g] = useState(), [v, x] = useState(), [_, C] = useState(0), [E, F] = useState(0), [w, S] = useState(), [T, I] = useState(), [q, M] = useState();
18597
18600
  useEffect(() => {
18598
18601
  N();
18599
18602
  }, [t, a]);
@@ -18728,7 +18731,7 @@ const Title$2 = /* @__PURE__ */ getDefaultExportFromCjs(Title$3), {
18728
18731
  percent: b,
18729
18732
  measureRef: V,
18730
18733
  height: _,
18731
- width: O,
18734
+ width: E,
18732
18735
  color: w,
18733
18736
  icon: T,
18734
18737
  suffix: l
@@ -18737,7 +18740,7 @@ const Title$2 = /* @__PURE__ */ getDefaultExportFromCjs(Title$3), {
18737
18740
  total: v,
18738
18741
  measureRef: V,
18739
18742
  height: _,
18740
- width: O,
18743
+ width: E,
18741
18744
  color: w,
18742
18745
  icon: T,
18743
18746
  suffix: l
@@ -18938,8 +18941,8 @@ const DefaultGraphOptions = {
18938
18941
  fields: x,
18939
18942
  manualIds: u
18940
18943
  }));
18941
- } catch (O) {
18942
- f("Error fetching graph data values: " + JSON.stringify(O)), c(!1);
18944
+ } catch (E) {
18945
+ f("Error fetching graph data values: " + JSON.stringify(E)), c(!1);
18943
18946
  return;
18944
18947
  }
18945
18948
  try {
@@ -18948,7 +18951,7 @@ const DefaultGraphOptions = {
18948
18951
  return;
18949
18952
  }
18950
18953
  y(_);
18951
- const O = processGraphData({
18954
+ const E = processGraphData({
18952
18955
  ooui: v,
18953
18956
  values: _,
18954
18957
  fields: C,
@@ -18956,9 +18959,9 @@ const DefaultGraphOptions = {
18956
18959
  uninformedString: s
18957
18960
  }
18958
18961
  });
18959
- h(O);
18960
- } catch (O) {
18961
- f("Error processing graph data: " + O), c(!1);
18962
+ h(E);
18963
+ } catch (E) {
18964
+ f("Error processing graph data: " + E), c(!1);
18962
18965
  return;
18963
18966
  }
18964
18967
  c(!1);
@@ -19340,7 +19343,7 @@ const One2manyInput = (e) => {
19340
19343
  } = d || {}, {
19341
19344
  lang: b,
19342
19345
  t: g
19343
- } = useContext(LocaleContext), v = useRef(), [x, _] = useState(!1), [C, O] = useState(!1), [F, w] = useState(), [S, T] = useState(!1), [I, q] = useState(!1), [M, D] = useState(), [j, N] = useState([]), [V, A] = useState(!1), W = useRef([]), [Y, z] = useState(), H = useRef(), {
19346
+ } = useContext(LocaleContext), v = useRef(), [x, _] = useState(!1), [C, E] = useState(!1), [F, w] = useState(), [S, T] = useState(!1), [I, q] = useState(!1), [M, D] = useState(), [j, N] = useState([]), [V, A] = useState(!1), W = useRef([]), [Y, z] = useState(), H = useRef(), {
19344
19347
  readOnly: K,
19345
19348
  relation: U,
19346
19349
  context: B,
@@ -19360,10 +19363,10 @@ const One2manyInput = (e) => {
19360
19363
  items: filterDuplicateItems(le)
19361
19364
  });
19362
19365
  }, P = async () => {
19363
- await E(), l > G.length - 1 && l !== 0 && c(0);
19364
- }, E = async () => {
19366
+ await O(), l > G.length - 1 && l !== 0 && c(0);
19367
+ }, O = async () => {
19365
19368
  var le;
19366
- O(!0), _(!1), w(void 0);
19369
+ E(!0), _(!1), w(void 0);
19367
19370
  try {
19368
19371
  const ue = await readObjectValues({
19369
19372
  treeFields: a.get("tree").fields,
@@ -19379,7 +19382,7 @@ const One2manyInput = (e) => {
19379
19382
  } catch (ue) {
19380
19383
  w(ue);
19381
19384
  } finally {
19382
- O(!1);
19385
+ E(!1);
19383
19386
  }
19384
19387
  };
19385
19388
  async function X() {
@@ -19479,7 +19482,7 @@ const One2manyInput = (e) => {
19479
19482
  q(!0);
19480
19483
  }) : q(!0);
19481
19484
  }, Ce = async () => {
19482
- O(!0), _(!1), w(void 0);
19485
+ E(!0), _(!1), w(void 0);
19483
19486
  try {
19484
19487
  if (G[l].id > 0) {
19485
19488
  const le = o.map((ue) => ue.id === G[l].id ? {
@@ -19492,10 +19495,10 @@ const One2manyInput = (e) => {
19492
19495
  } catch (le) {
19493
19496
  w(le);
19494
19497
  }
19495
- c(0), O(!1);
19498
+ c(0), E(!1);
19496
19499
  }, ae = async () => {
19497
19500
  const le = G.filter((ue) => j.includes(ue.id));
19498
- O(!0), _(!1), w(void 0);
19501
+ E(!0), _(!1), w(void 0);
19499
19502
  try {
19500
19503
  const ue = le.map((ve) => ve.id), ye = o.filter((ve) => !(ue.includes(ve.id) && ve.id < 0)).map((ve) => ue.includes(ve.id) ? {
19501
19504
  ...ve,
@@ -19505,7 +19508,7 @@ const One2manyInput = (e) => {
19505
19508
  } catch (ue) {
19506
19509
  w(ue);
19507
19510
  }
19508
- c(0), O(!1);
19511
+ c(0), E(!1);
19509
19512
  }, me = (le, ue, ye) => {
19510
19513
  let ve;
19511
19514
  if (le)
@@ -19543,7 +19546,7 @@ const One2manyInput = (e) => {
19543
19546
  } = le;
19544
19547
  D(o.find((ye) => ye.id === ue)), A(!1), T(!0);
19545
19548
  }, he = async (le) => {
19546
- O(!0);
19549
+ E(!0);
19547
19550
  let ue = o;
19548
19551
  const ye = le.filter((ve) => !o.find((we) => we.id === ve));
19549
19552
  try {
@@ -19576,7 +19579,7 @@ const One2manyInput = (e) => {
19576
19579
  } catch (ve) {
19577
19580
  w(ve);
19578
19581
  } finally {
19579
- O(!1);
19582
+ E(!1);
19580
19583
  }
19581
19584
  };
19582
19585
  function ge() {
@@ -19604,18 +19607,18 @@ const One2manyInput = (e) => {
19604
19607
  submitMode: "values",
19605
19608
  onFieldsChange: (Re) => {
19606
19609
  var Se;
19607
- const Oe = (Se = G[l]) == null ? void 0 : Se.id, $e = o.map((Ee) => Ee.id === Oe ? {
19608
- ...Ee,
19609
- operation: Ee.operation === "original" ? "pendingUpdate" : Ee.operation,
19610
+ const Ee = (Se = G[l]) == null ? void 0 : Se.id, $e = o.map((Oe) => Oe.id === Ee ? {
19611
+ ...Oe,
19612
+ operation: Oe.operation === "original" ? "pendingUpdate" : Oe.operation,
19610
19613
  values: {
19611
19614
  ...Re,
19612
- id: Oe
19615
+ id: Ee
19613
19616
  },
19614
19617
  treeValues: {
19615
19618
  ...Re,
19616
- id: Oe
19619
+ id: Ee
19617
19620
  }
19618
- } : Ee);
19621
+ } : Oe);
19619
19622
  Z($e), _(!0);
19620
19623
  },
19621
19624
  readOnly: K
@@ -22702,8 +22705,8 @@ const DatePickerConfig = {
22702
22705
  n == null || n(v);
22703
22706
  };
22704
22707
  async function m() {
22705
- const v = await getMimeType(r), x = `data:${v == null ? void 0 : v.mime};base64,${r}`, _ = document.createElement("a"), C = d(s), O = d("name");
22706
- _.href = x, _.download = C || O, _.click();
22708
+ const v = await getMimeType(r), x = `data:${v == null ? void 0 : v.mime};base64,${r}`, _ = document.createElement("a"), C = d(s), E = d("name");
22709
+ _.href = x, _.download = C || E, _.click();
22707
22710
  }
22708
22711
  async function y() {
22709
22712
  const v = await getMimeType(r);
@@ -23194,7 +23197,7 @@ function FormActionBar({
23194
23197
  attachments: x,
23195
23198
  formRef: _,
23196
23199
  setFormHasChanges: C,
23197
- previousView: O,
23200
+ previousView: E,
23198
23201
  setPreviousView: F,
23199
23202
  goToResourceId: w
23200
23203
  } = useContext(ActionViewContext), {
@@ -23335,7 +23338,7 @@ function FormActionBar({
23335
23338
  }
23336
23339
  }), separator$2(), /* @__PURE__ */ jsx(ChangeViewButton, {
23337
23340
  currentView: r,
23338
- previousView: O,
23341
+ previousView: E,
23339
23342
  availableViews: t,
23340
23343
  onChangeView: (k) => {
23341
23344
  F == null || F(r), C == null || C(!1), n == null || n(k);
@@ -23554,17 +23557,17 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
23554
23557
  }
23555
23558
  function f(v, x) {
23556
23559
  if (!(typeof Symbol > "u" || !(Symbol.iterator in Object(v)))) {
23557
- var _ = [], C = !0, O = !1, F = void 0;
23560
+ var _ = [], C = !0, E = !1, F = void 0;
23558
23561
  try {
23559
23562
  for (var w = v[Symbol.iterator](), S; !(C = (S = w.next()).done) && (_.push(S.value), !(x && _.length === x)); C = !0)
23560
23563
  ;
23561
23564
  } catch (T) {
23562
- O = !0, F = T;
23565
+ E = !0, F = T;
23563
23566
  } finally {
23564
23567
  try {
23565
23568
  !C && w.return != null && w.return();
23566
23569
  } finally {
23567
- if (O)
23570
+ if (E)
23568
23571
  throw F;
23569
23572
  }
23570
23573
  }
@@ -23603,7 +23606,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
23603
23606
  function g(v, x) {
23604
23607
  if ((0, r.default)(v), !v || /[\s<>]/.test(v) || v.indexOf("mailto:") === 0 || (x = (0, o.default)(x, h), x.validate_length && v.length >= 2083) || !x.allow_fragments && v.includes("#") || !x.allow_query_components && (v.includes("?") || v.includes("&")))
23605
23608
  return !1;
23606
- var _, C, O, F, w, S, T, I;
23609
+ var _, C, E, F, w, S, T, I;
23607
23610
  if (T = v.split("#"), v = T.shift(), T = v.split("?"), v = T.shift(), T = v.split("://"), T.length > 1) {
23608
23611
  if (_ = T.shift().toLowerCase(), x.require_valid_protocol && x.protocols.indexOf(_) === -1)
23609
23612
  return !1;
@@ -23629,12 +23632,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
23629
23632
  }
23630
23633
  F = T.join("@"), S = null, I = null;
23631
23634
  var N = F.match(m);
23632
- if (N ? (O = "", I = N[1], S = N[2] || null) : (T = F.split(":"), O = T.shift(), T.length && (S = T.join(":"))), S !== null && S.length > 0) {
23635
+ if (N ? (E = "", I = N[1], S = N[2] || null) : (T = F.split(":"), E = T.shift(), T.length && (S = T.join(":"))), S !== null && S.length > 0) {
23633
23636
  if (w = parseInt(S, 10), !/^[0-9]+$/.test(S) || w <= 0 || w > 65535)
23634
23637
  return !1;
23635
23638
  } else if (x.require_port)
23636
23639
  return !1;
23637
- return x.host_whitelist ? b(O, x.host_whitelist) : !(!(0, a.default)(O) && !(0, n.default)(O, x) && (!I || !(0, a.default)(I, 6)) || (O = O || I, x.host_blacklist && b(O, x.host_blacklist)));
23640
+ return x.host_whitelist ? b(E, x.host_whitelist) : !(!(0, a.default)(E) && !(0, n.default)(E, x) && (!I || !(0, a.default)(I, 6)) || (E = E || I, x.host_blacklist && b(E, x.host_blacklist)));
23638
23641
  }
23639
23642
  e.exports = t.default, e.exports.default = t.default;
23640
23643
  })(isURL$1, isURL$1.exports);
@@ -23779,10 +23782,10 @@ var isEmail$1 = { exports: {} }, isByteLength = { exports: {} };
23779
23782
  }
23780
23783
  if (!x.ignore_max_length && v.length > y)
23781
23784
  return !1;
23782
- var O = v.split("@"), F = O.pop(), w = F.toLowerCase();
23785
+ var E = v.split("@"), F = E.pop(), w = F.toLowerCase();
23783
23786
  if (x.host_blacklist.includes(w))
23784
23787
  return !1;
23785
- var S = O.join("@");
23788
+ var S = E.join("@");
23786
23789
  if (x.domain_specific_validation && (w === "gmail.com" || w === "googlemail.com")) {
23787
23790
  S = S.toLowerCase();
23788
23791
  var T = S.split("+")[0];
@@ -24097,7 +24100,7 @@ const GraphActionView = (e) => {
24097
24100
  setSorter: x = void 0,
24098
24101
  setTotalItems: _ = void 0,
24099
24102
  setSearchTreeNameSearch: C = void 0,
24100
- setTreeIsLoading: O = void 0,
24103
+ setTreeIsLoading: E = void 0,
24101
24104
  limit: F,
24102
24105
  setLimit: w,
24103
24106
  searchParams: S,
@@ -24125,7 +24128,7 @@ const GraphActionView = (e) => {
24125
24128
  setSearchValues: I,
24126
24129
  setSearchParams: y,
24127
24130
  setSearchVisible: g,
24128
- setTreeIsLoading: O,
24131
+ setTreeIsLoading: E,
24129
24132
  context: a,
24130
24133
  formView: s,
24131
24134
  treeView: u,
@@ -24294,7 +24297,7 @@ function TreeActionBar(e) {
24294
24297
  previousView: _
24295
24298
  } = useContext(ActionViewContext), {
24296
24299
  parentContext: C = {},
24297
- treeExpandable: O,
24300
+ treeExpandable: E,
24298
24301
  toolbar: F
24299
24302
  } = e, {
24300
24303
  t: w,
@@ -24363,14 +24366,14 @@ function TreeActionBar(e) {
24363
24366
  }
24364
24367
  return /* @__PURE__ */ jsxs(Space, {
24365
24368
  wrap: !0,
24366
- children: [O ? null : /* @__PURE__ */ jsxs(Fragment, {
24369
+ children: [E ? null : /* @__PURE__ */ jsxs(Fragment, {
24367
24370
  children: [/* @__PURE__ */ jsx(SearchBar, {
24368
24371
  disabled: u || s || v,
24369
24372
  searchText: g,
24370
24373
  onSearch: (N) => {
24371
24374
  N && N.trim().length > 0 ? b == null || b(N) : b == null || b(void 0);
24372
24375
  }
24373
- }), !O && /* @__PURE__ */ jsx(ButtonWithBadge, {
24376
+ }), !E && /* @__PURE__ */ jsx(ButtonWithBadge, {
24374
24377
  icon: /* @__PURE__ */ jsx(FilterOutlined, {
24375
24378
  style: {
24376
24379
  color: m ? "white" : void 0
@@ -24415,7 +24418,7 @@ function TreeActionBar(e) {
24415
24418
  var N;
24416
24419
  (N = d == null ? void 0 : d.current) == null || N.refreshResults();
24417
24420
  }
24418
- }), !O && /* @__PURE__ */ jsxs(Fragment, {
24421
+ }), !E && /* @__PURE__ */ jsxs(Fragment, {
24419
24422
  children: [separator$1(), /* @__PURE__ */ jsx(ChangeViewButton, {
24420
24423
  currentView: r,
24421
24424
  availableViews: t,
@@ -24607,18 +24610,18 @@ function ActionView(e, t) {
24607
24610
  action_type: m,
24608
24611
  treeExpandable: y = !1,
24609
24612
  limit: b
24610
- } = e, [g, v] = useState(), [x, _] = useState([]), [C, O] = useState(!0), F = p || void 0, [w, S] = useState(F), [T, I] = useState([]), [q, M] = useState(), [D, j] = useState([]), [N, V] = useState(), [A, W] = useState(0), [Y, z] = useState(!1), [H, K] = useState(!1), [U, B] = useState(), {
24613
+ } = e, [g, v] = useState(), [x, _] = useState([]), [C, E] = useState(!0), F = p || void 0, [w, S] = useState(F), [T, I] = useState([]), [q, M] = useState(), [D, j] = useState([]), [N, V] = useState(), [A, W] = useState(0), [Y, z] = useState(!1), [H, K] = useState(!1), [U, B] = useState(), {
24611
24614
  t: k
24612
24615
  } = useContext(LocaleContext), $ = useRef(), L = useRef(), G = useContext(TabManagerContext), {
24613
24616
  setCurrentView: Z,
24614
24617
  setCurrentId: P,
24615
- tabs: E,
24618
+ tabs: O,
24616
24619
  activeKey: X,
24617
24620
  openAction: J
24618
24621
  } = G || {};
24619
24622
  useHotkeys("ctrl+g,command+g", (ae) => {
24620
24623
  ae.preventDefault(), oe();
24621
- }, [X, E, g, q, D]);
24624
+ }, [X, O, g, q, D]);
24622
24625
  function ee(ae) {
24623
24626
  S(ae), P == null || P(ae);
24624
24627
  }
@@ -24629,7 +24632,7 @@ function ActionView(e, t) {
24629
24632
  canWeClose: te
24630
24633
  }));
24631
24634
  const ie = async () => {
24632
- O(!0);
24635
+ E(!0);
24633
24636
  const ae = [];
24634
24637
  for (const fe of o) {
24635
24638
  const [he, ge] = fe;
@@ -24695,7 +24698,7 @@ function ActionView(e, t) {
24695
24698
  }
24696
24699
  let me;
24697
24700
  !c && ae.find((fe) => fe.type === "tree") ? me = ae.find((he) => he.type === "tree") : c ? me = ae.find((he) => c.id ? he.type === c.type && he.view_id === c.id : he.type === c.type) : me = ae.find((he) => he.type === "form"), me || showDialog$8(`Error determining the first view to show.
24698
- Please, make sure the view ids on the fields_view_get responses are the same as the ones defined in the action`), Q(me), _(ae), O(!1);
24701
+ Please, make sure the view ids on the fields_view_get responses are the same as the ones defined in the action`), Q(me), _(ae), E(!1);
24699
24702
  };
24700
24703
  u({
24701
24704
  tabKey: l,
@@ -24705,7 +24708,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
24705
24708
  Q(me || ae), p ? P == null || P(F) : (ee(void 0), M(void 0)), ie();
24706
24709
  }, [n, o, p]), useEffect(() => {
24707
24710
  X === l && (P == null || P(w), Z == null || Z(g));
24708
- }, [E, X]);
24711
+ }, [O, X]);
24709
24712
  async function te() {
24710
24713
  return g.type === "form" ? await $.current.cancelUnsavedChanges() : !0;
24711
24714
  }
@@ -25035,18 +25038,18 @@ function DashboardTree(e) {
25035
25038
  domain: o = [],
25036
25039
  visible: s = !0,
25037
25040
  parentContext: u = {}
25038
- } = e, [l, c] = useState(!1), [d, f] = useState(!1), [p, h] = useState(), [m, y] = useState(), [b, g] = useState(), [v, x] = useState(1), [_, C] = useState(0), O = useRef(DEFAULT_SEARCH_LIMIT), F = useRef([]), [w, S] = useState(0), [T, I] = useState([]), [q, M] = useState(void 0), [D, j] = useState(), [N, V] = useState(), [A, W] = useState(), [Y, z] = useState(!1), H = useRef([]), K = (P) => {
25039
- z(!0), x(P), C((P - 1) * O.current);
25041
+ } = e, [l, c] = useState(!1), [d, f] = useState(!1), [p, h] = useState(), [m, y] = useState(), [b, g] = useState(), [v, x] = useState(1), [_, C] = useState(0), E = useRef(DEFAULT_SEARCH_LIMIT), F = useRef([]), [w, S] = useState(0), [T, I] = useState([]), [q, M] = useState(void 0), [D, j] = useState(), [N, V] = useState(), [A, W] = useState(), [Y, z] = useState(!1), H = useRef([]), K = (P) => {
25042
+ z(!0), x(P), C((P - 1) * E.current);
25040
25043
  }, U = async () => {
25041
- const P = H.current.length > 0 ? H.current : o, E = mergeParams(F.current, P), {
25044
+ const P = H.current.length > 0 ? H.current : o, O = mergeParams(F.current, P), {
25042
25045
  colors: X
25043
25046
  } = getTree(m), {
25044
25047
  totalItems: J,
25045
25048
  results: ee,
25046
25049
  attrsEvaluated: Q
25047
25050
  } = await ConnectionProvider.getHandler().searchForTree({
25048
- params: E,
25049
- limit: O.current,
25051
+ params: O,
25052
+ limit: E.current,
25050
25053
  offset: _,
25051
25054
  model: p,
25052
25055
  fields: m.fields,
@@ -25081,8 +25084,8 @@ function DashboardTree(e) {
25081
25084
  f(!1), c(!0), W(void 0);
25082
25085
  try {
25083
25086
  P === "action" ? await $() : await L(), f(!0);
25084
- } catch (E) {
25085
- W(E);
25087
+ } catch (O) {
25088
+ W(O);
25086
25089
  } finally {
25087
25090
  c(!1);
25088
25091
  }
@@ -25091,7 +25094,7 @@ function DashboardTree(e) {
25091
25094
  action: t,
25092
25095
  context: u
25093
25096
  });
25094
- H.current = P.domain, g(P.views.get("form")), y(P.views.get("tree")), h(P.model), O.current = P.limit;
25097
+ H.current = P.domain, g(P.views.get("form")), y(P.views.get("tree")), h(P.model), E.current = P.limit;
25095
25098
  }, L = async () => {
25096
25099
  h(r);
25097
25100
  const P = await ConnectionProvider.getHandler().getView({
@@ -25100,23 +25103,23 @@ function DashboardTree(e) {
25100
25103
  context: u
25101
25104
  });
25102
25105
  g(P);
25103
- const E = await ConnectionProvider.getHandler().getView({
25106
+ const O = await ConnectionProvider.getHandler().getView({
25104
25107
  model: r,
25105
25108
  type: "tree",
25106
25109
  id: n,
25107
25110
  context: u
25108
25111
  });
25109
- y(E);
25112
+ y(O);
25110
25113
  };
25111
25114
  useEffect(() => {
25112
25115
  t ? k("action") : r && k("model");
25113
25116
  }, [t, r]);
25114
25117
  const G = (P) => {
25115
25118
  const {
25116
- id: E
25119
+ id: O
25117
25120
  } = P;
25118
25121
  a({
25119
- id: E,
25122
+ id: O,
25120
25123
  model: p,
25121
25124
  treeView: m
25122
25125
  });
@@ -25132,7 +25135,7 @@ function DashboardTree(e) {
25132
25135
  }), /* @__PURE__ */ jsx(Tree, {
25133
25136
  showPagination: !1,
25134
25137
  total: w,
25135
- limit: O.current,
25138
+ limit: E.current,
25136
25139
  page: v,
25137
25140
  treeView: m,
25138
25141
  results: T,
@@ -25143,7 +25146,7 @@ function DashboardTree(e) {
25143
25146
  sorter: D,
25144
25147
  onChangeSort: (P) => {
25145
25148
  j == null || j(P);
25146
- const E = sortResults({
25149
+ const O = sortResults({
25147
25150
  resultsToSort: T,
25148
25151
  sorter: P,
25149
25152
  fields: {
@@ -25151,7 +25154,7 @@ function DashboardTree(e) {
25151
25154
  ...b.fields
25152
25155
  }
25153
25156
  });
25154
- I(E);
25157
+ I(O);
25155
25158
  },
25156
25159
  context: u
25157
25160
  })]
@@ -25280,7 +25283,7 @@ function Dashboard(e, t) {
25280
25283
  }
25281
25284
  return S;
25282
25285
  }
25283
- async function O(w) {
25286
+ async function E(w) {
25284
25287
  if (!m)
25285
25288
  return;
25286
25289
  const S = w.filter((M) => {
@@ -25334,7 +25337,7 @@ function Dashboard(e, t) {
25334
25337
  type: "error",
25335
25338
  banner: !0
25336
25339
  }) : l ? /* @__PURE__ */ jsx(LoadingOutlined$3, {}) : /* @__PURE__ */ jsx(DashboardGrid, {
25337
- onPositionItemsChanged: O,
25340
+ onPositionItemsChanged: E,
25338
25341
  children: s.map((w, S) => {
25339
25342
  const {
25340
25343
  actionData: T,
@@ -25391,12 +25394,12 @@ function Dashboard(e, t) {
25391
25394
  });
25392
25395
  if (G) {
25393
25396
  const [Z, P] = G, {
25394
- actionId: E,
25397
+ actionId: O,
25395
25398
  actionType: X,
25396
25399
  title: J,
25397
25400
  model: ee
25398
25401
  } = T, Q = {
25399
- action_id: E,
25402
+ action_id: O,
25400
25403
  action_type: X,
25401
25404
  name: J,
25402
25405
  res_id: L.id,
@@ -25437,13 +25440,13 @@ function Dashboard(e, t) {
25437
25440
  const [L, G] = $, {
25438
25441
  actionId: Z,
25439
25442
  actionType: P,
25440
- title: E,
25443
+ title: O,
25441
25444
  model: X
25442
25445
  } = T;
25443
25446
  k = {
25444
25447
  action_id: Z,
25445
25448
  action_type: P,
25446
- name: E,
25449
+ name: O,
25447
25450
  res_id: !1,
25448
25451
  res_model: X,
25449
25452
  view_id: L,
@@ -25544,7 +25547,7 @@ const Dashboard$1 = forwardRef(Dashboard), MultiCheckbox = (e) => {
25544
25547
  }
25545
25548
  const C = () => {
25546
25549
  F(s.map((w) => w.value));
25547
- }, O = () => {
25550
+ }, E = () => {
25548
25551
  F([]);
25549
25552
  }, F = (w) => {
25550
25553
  const S = a.map((I) => w.includes(I.id) ? I.operation == "pendingRemove" ? {
@@ -25586,7 +25589,7 @@ const Dashboard$1 = forwardRef(Dashboard), MultiCheckbox = (e) => {
25586
25589
  disabled: o.length == s.length,
25587
25590
  children: "Check all"
25588
25591
  }), /* @__PURE__ */ jsx(Button$1, {
25589
- onClick: O,
25592
+ onClick: E,
25590
25593
  disabled: o.length === 0,
25591
25594
  children: "Uncheck all"
25592
25595
  })]
@@ -25747,7 +25750,7 @@ function RootView(e, t) {
25747
25750
  }));
25748
25751
  function p(_) {
25749
25752
  if (_ === s) {
25750
- const C = l.findIndex((O) => O.key === _);
25753
+ const C = l.findIndex((E) => E.key === _);
25751
25754
  l[C - 1] && u(l[C - 1].key), l[C + 1] && u(l[C + 1].key);
25752
25755
  }
25753
25756
  c(l.filter((C) => C.key !== _)), d.current.delete(_);
@@ -25761,7 +25764,7 @@ function RootView(e, t) {
25761
25764
  async function m({
25762
25765
  action: _,
25763
25766
  values: C,
25764
- forced_values: O,
25767
+ forced_values: E,
25765
25768
  initialViewType: F,
25766
25769
  res_id: w,
25767
25770
  domain: S = []
@@ -25842,7 +25845,7 @@ function RootView(e, t) {
25842
25845
  action_type: I,
25843
25846
  action_id: M,
25844
25847
  values: C,
25845
- forced_values: O,
25848
+ forced_values: E,
25846
25849
  res_id: w,
25847
25850
  treeExpandable: H,
25848
25851
  limit: z
@@ -25851,22 +25854,22 @@ function RootView(e, t) {
25851
25854
  function y({
25852
25855
  title: _,
25853
25856
  content: C,
25854
- key: O,
25857
+ key: E,
25855
25858
  action: F
25856
25859
  }) {
25857
25860
  let w = [...l];
25858
25861
  l.length === 1 && l[0].key === "welcome" && (w = [...l.filter((S) => S.key !== "welcome")]), c([...w, {
25859
25862
  title: _,
25860
- key: O,
25863
+ key: E,
25861
25864
  closable: !0,
25862
25865
  content: C,
25863
25866
  action: F
25864
- }]), u(O);
25867
+ }]), u(E);
25865
25868
  }
25866
25869
  async function b({
25867
25870
  relateData: _,
25868
25871
  fields: C,
25869
- values: O,
25872
+ values: E,
25870
25873
  action_id: F,
25871
25874
  action_type: w
25872
25875
  }) {
@@ -25884,7 +25887,7 @@ function RootView(e, t) {
25884
25887
  }, W = parseContext({
25885
25888
  context: T,
25886
25889
  values: {
25887
- ...O,
25890
+ ...E,
25888
25891
  ...n
25889
25892
  },
25890
25893
  fields: C
@@ -25893,7 +25896,7 @@ function RootView(e, t) {
25893
25896
  values: transformPlainMany2Ones({
25894
25897
  fields: C,
25895
25898
  values: {
25896
- ...O,
25899
+ ...E,
25897
25900
  ...n
25898
25901
  }
25899
25902
  }),
@@ -25922,10 +25925,10 @@ function RootView(e, t) {
25922
25925
  async function g(_) {
25923
25926
  const {
25924
25927
  action_id: C,
25925
- action_type: O,
25928
+ action_type: E,
25926
25929
  res_id: F,
25927
25930
  view_id: w
25928
- } = _, S = `${O},${C}`, T = await ConnectionProvider.getHandler().getActionData({
25931
+ } = _, S = `${E},${C}`, T = await ConnectionProvider.getHandler().getActionData({
25929
25932
  action: S,
25930
25933
  context: a
25931
25934
  }), I = parseContext({
@@ -25990,7 +25993,7 @@ function RootView(e, t) {
25990
25993
  target: N,
25991
25994
  initialView: K,
25992
25995
  action_id: C,
25993
- action_type: O,
25996
+ action_type: E,
25994
25997
  res_id: F,
25995
25998
  treeExpandable: W,
25996
25999
  limit: A
@@ -25999,7 +26002,7 @@ function RootView(e, t) {
25999
26002
  async function v({
26000
26003
  model: _,
26001
26004
  values: C,
26002
- forced_values: O,
26005
+ forced_values: E,
26003
26006
  initialViewType: F,
26004
26007
  res_id: w,
26005
26008
  domain: S
@@ -26008,7 +26011,7 @@ function RootView(e, t) {
26008
26011
  await m({
26009
26012
  action: T,
26010
26013
  values: C,
26011
- forced_values: O,
26014
+ forced_values: E,
26012
26015
  initialViewType: F,
26013
26016
  res_id: w,
26014
26017
  domain: S
@@ -26017,7 +26020,7 @@ function RootView(e, t) {
26017
26020
  async function x({
26018
26021
  domain: _,
26019
26022
  context: C,
26020
- model: O,
26023
+ model: E,
26021
26024
  views: F,
26022
26025
  title: w,
26023
26026
  target: S,
@@ -26033,7 +26036,7 @@ function RootView(e, t) {
26033
26036
  const A = v4();
26034
26037
  if (S !== "current") {
26035
26038
  const W = await ConnectionProvider.getHandler().getView({
26036
- model: O,
26039
+ model: E,
26037
26040
  type: "form",
26038
26041
  id: T.type === "form" ? T.id : void 0,
26039
26042
  context: {
@@ -26043,7 +26046,7 @@ function RootView(e, t) {
26043
26046
  });
26044
26047
  f.current.openActionModal({
26045
26048
  domain: _,
26046
- model: O,
26049
+ model: E,
26047
26050
  formView: W,
26048
26051
  context: {
26049
26052
  ...a,
@@ -26073,7 +26076,7 @@ function RootView(e, t) {
26073
26076
  tabKey: A,
26074
26077
  title: w,
26075
26078
  views: F,
26076
- model: O,
26079
+ model: E,
26077
26080
  context: {
26078
26081
  ...a,
26079
26082
  ...C
@@ -26232,7 +26235,7 @@ const FavouriteButton = (e) => {
26232
26235
  activeKey: x,
26233
26236
  currentView: _,
26234
26237
  currentId: C,
26235
- openDefaultActionForModel: O
26238
+ openDefaultActionForModel: E
26236
26239
  } = b || {};
26237
26240
  useEffect(() => {
26238
26241
  F();
@@ -26282,7 +26285,7 @@ const FavouriteButton = (e) => {
26282
26285
  Y !== !1 && m(Y), s(Y !== !1);
26283
26286
  }
26284
26287
  async function I() {
26285
- l(!1), O == null || O({
26288
+ l(!1), E == null || E({
26286
26289
  model: "ir.ui.view_sc"
26287
26290
  });
26288
26291
  }