@nuwatop/code-canvas-core 0.5.68 → 0.5.69

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.
package/dist/index.esm.js CHANGED
@@ -1,30 +1,30 @@
1
1
  import { jsx as p, jsxs as ye, Fragment as St } from "react/jsx-runtime";
2
- import { createRoot as Er } from "react-dom/client";
3
- import { theme as ct, ConfigProvider as Ke, Button as st, Tooltip as Hn, Space as _e, Input as qt, InputNumber as Un, Select as In, Switch as Or, DatePicker as Yn, TimePicker as $r, Radio as It, Checkbox as bt, Rate as Mr, Slider as Rr, Cascader as jr, TreeSelect as Br, message as Bt, Upload as Kr, Image as at, AutoComplete as Lr, Form as Ft, Transfer as zr, Segmented as Fr, Modal as Jn, Table as Vr, Flex as Gn, Typography as mn, Tabs as qr, Tree as Pr, Timeline as Wr, Steps as Hr, Statistic as en, Carousel as Ur, Avatar as Ir, Tag as Qn, Pagination as Zn, Breadcrumb as Yr, Menu as Jr, Calendar as Gr, Badge as Xn, Masonry as Qr, Alert as er, Drawer as Zr, Result as Xr, Card as tn, Divider as xn, Dropdown as ei, Row as ti, Col as ni, QRCode as ri, Splitter as Yt, Spin as tr, Watermark as ii, Empty as oi } from "antd";
4
- import { StyleProvider as ai, createCache as ci } from "@ant-design/cssinjs";
5
- import si from "antd/locale/zh_CN";
6
- import { create as li } from "zustand";
7
- import { subscribeWithSelector as ui } from "zustand/middleware";
8
- import { immer as di } from "zustand/middleware/immer";
9
- import Le, { useMemo as f, useCallback as z, useEffect as Ne, createContext as fi, useContext as Qe, useState as xe, useRef as Re, useLayoutEffect as nr, useId as mi, Suspense as yi } from "react";
2
+ import { createRoot as Or } from "react-dom/client";
3
+ import { theme as ct, ConfigProvider as Ke, Button as st, Tooltip as Hn, Space as _e, Input as qt, InputNumber as Un, Select as In, Switch as $r, DatePicker as Yn, TimePicker as Mr, Radio as It, Checkbox as bt, Rate as Rr, Slider as jr, Cascader as Br, TreeSelect as Kr, message as Bt, Upload as Lr, Image as at, AutoComplete as zr, Form as Ft, Transfer as Fr, Segmented as Vr, Modal as Jn, Table as qr, Flex as Gn, Typography as mn, Tabs as Pr, Tree as Wr, Timeline as Hr, Steps as Ur, Statistic as en, Carousel as Ir, Avatar as Yr, Tag as Qn, Pagination as Zn, Breadcrumb as Jr, Menu as Gr, Calendar as Qr, Badge as Xn, Masonry as Zr, Alert as er, Drawer as Xr, Result as ei, Card as tn, Divider as xn, Dropdown as ti, Row as ni, Col as ri, QRCode as ii, Splitter as Yt, Spin as tr, Watermark as oi, Empty as ai } from "antd";
4
+ import { StyleProvider as ci, createCache as si } from "@ant-design/cssinjs";
5
+ import li from "antd/locale/zh_CN";
6
+ import { create as ui } from "zustand";
7
+ import { subscribeWithSelector as di } from "zustand/middleware";
8
+ import { immer as fi } from "zustand/middleware/immer";
9
+ import Le, { useMemo as f, useCallback as z, useEffect as Ne, createContext as mi, useContext as Qe, useState as xe, useRef as Re, useLayoutEffect as nr, useId as yi, Suspense as hi } from "react";
10
10
  import * as Ge from "@ant-design/icons";
11
- import { CloseCircleOutlined as hi, PlusOutlined as rr, UploadOutlined as gi, MenuOutlined as pi, MinusOutlined as vi, LeftOutlined as ir, RightOutlined as or, UpOutlined as bi, DownOutlined as ar, ApiOutlined as Si, InboxOutlined as xi, FilePdfOutlined as wi } from "@ant-design/icons";
12
- import Ai from "clsx";
11
+ import { CloseCircleOutlined as gi, PlusOutlined as rr, UploadOutlined as pi, MenuOutlined as vi, MinusOutlined as bi, LeftOutlined as ir, RightOutlined as or, UpOutlined as Si, DownOutlined as ar, ApiOutlined as xi, InboxOutlined as wi, FilePdfOutlined as Ai } from "@ant-design/icons";
12
+ import Di from "clsx";
13
13
  import tt from "dayjs";
14
- import { pdfjs as cr, Document as Di, Page as Ci } from "react-pdf";
14
+ import { pdfjs as cr, Document as Ci, Page as Ni } from "react-pdf";
15
15
  import "react-pdf/dist/Page/TextLayer.css";
16
16
  import "react-pdf/dist/Page/AnnotationLayer.css";
17
- import { Line as Ni, Column as Ti, Pie as ki, Area as _i, DualAxes as Ei, Gauge as Oi, Liquid as $i, Bar as Mi } from "@ant-design/plots";
17
+ import { Line as Ti, Column as ki, Pie as _i, Area as Ei, DualAxes as Oi, Gauge as $i, Liquid as Mi, Bar as Ri } from "@ant-design/plots";
18
18
  const Kt = /* @__PURE__ */ new WeakMap(), nn = /* @__PURE__ */ new WeakMap();
19
19
  let rn = !1;
20
- const Ri = () => {
20
+ const ji = () => {
21
21
  rn || (rn = !0);
22
- }, ji = (t) => {
22
+ }, Bi = (t) => {
23
23
  let e = nn.get(t);
24
- return e || (e = ci(), nn.set(t, e)), e;
25
- }, Nc = (t) => {
24
+ return e || (e = si(), nn.set(t, e)), e;
25
+ }, Tc = (t) => {
26
26
  t && nn.delete(t);
27
- }, Tc = async ({
27
+ }, kc = async ({
28
28
  el: t,
29
29
  component: e,
30
30
  props: n = {},
@@ -33,7 +33,7 @@ const Ri = () => {
33
33
  skipUnmount: o = !1
34
34
  }) => {
35
35
  var C;
36
- Ri();
36
+ ji();
37
37
  const a = Kt.get(t);
38
38
  if (a) {
39
39
  if (o)
@@ -52,12 +52,12 @@ const Ri = () => {
52
52
  }
53
53
  Kt.delete(t);
54
54
  }
55
- const c = Er(t);
55
+ const c = Or(t);
56
56
  Kt.set(t, c);
57
- const s = window.__ANTD_CSSINJS_CONTAINER__, d = window.__ANTD_IFRAME_DOC__, v = !r && s && d && d.defaultView !== null, h = v ? s : window.document.head, m = v ? d : window.document, b = ji(m), g = (((C = window.__GLS_COMPS__) == null ? void 0 : C.theme) || i) === "dark" ? ct.darkAlgorithm : ct.defaultAlgorithm, u = (w) => /* @__PURE__ */ p(ai, { cache: b, container: h, hashPriority: "high", children: /* @__PURE__ */ p(
57
+ const s = window.__ANTD_CSSINJS_CONTAINER__, d = window.__ANTD_IFRAME_DOC__, v = !r && s && d && d.defaultView !== null, h = v ? s : window.document.head, m = v ? d : window.document, b = Bi(m), g = (((C = window.__GLS_COMPS__) == null ? void 0 : C.theme) || i) === "dark" ? ct.darkAlgorithm : ct.defaultAlgorithm, u = (w) => /* @__PURE__ */ p(ci, { cache: b, container: h, hashPriority: "high", children: /* @__PURE__ */ p(
58
58
  Ke,
59
59
  {
60
- locale: si,
60
+ locale: li,
61
61
  theme: {
62
62
  algorithm: g,
63
63
  cssVar: {
@@ -86,7 +86,7 @@ const Ri = () => {
86
86
  window.__CURRENT_STYLE_CONTAINER__ = h, c.render(u(w));
87
87
  }
88
88
  };
89
- }, kc = () => {
89
+ }, _c = () => {
90
90
  console.info("[code-canvas-core] Cleanup called - components will be garbage collected"), rn = !1;
91
91
  };
92
92
  function xt(t) {
@@ -132,7 +132,7 @@ function kt(t, e) {
132
132
  }
133
133
  return n;
134
134
  }
135
- function Bi(t, e, n) {
135
+ function Ki(t, e, n) {
136
136
  if (!e.length) return n;
137
137
  const i = Array.isArray(t) ? [...t] : { ...t };
138
138
  let r = i;
@@ -166,7 +166,7 @@ function An(t, e, n, i) {
166
166
  const d = t.dataSets[r];
167
167
  let v = d.value;
168
168
  Array.isArray(v) || (v = []);
169
- const h = v[o], m = n.length === 0 ? h : kt(h ?? {}, n), b = i(m), y = n.length === 0 ? b : Bi(h ?? {}, n, b), l = [...v];
169
+ const h = v[o], m = n.length === 0 ? h : kt(h ?? {}, n), b = i(m), y = n.length === 0 ? b : Ki(h ?? {}, n, b), l = [...v];
170
170
  l[o] = y, t.dataSets[r] = { ...d, value: l };
171
171
  return;
172
172
  }
@@ -183,9 +183,9 @@ function An(t, e, n, i) {
183
183
  const c = n[n.length - 1], s = a[c.key];
184
184
  a[c.key] = i(s);
185
185
  }
186
- const _ = li()(
187
- ui(
188
- di((t, e) => ({
186
+ const _ = ui()(
187
+ di(
188
+ fi((t, e) => ({
189
189
  ...wn,
190
190
  // ============ 数据集操作(支持 name[index] 与 field 多级路径;append 默认 true 为合并更新) ============
191
191
  setDataSet: (n, i, r, o = !0) => t((a) => {
@@ -266,7 +266,7 @@ const _ = li()(
266
266
  }))
267
267
  )
268
268
  );
269
- function _c(t) {
269
+ function Ec(t) {
270
270
  const { dataSet: e, dataSetField: n } = t, i = _((r) => r.setDataSet);
271
271
  return {
272
272
  get value() {
@@ -278,7 +278,7 @@ function _c(t) {
278
278
  }
279
279
  };
280
280
  }
281
- function Ec(t) {
281
+ function Oc(t) {
282
282
  const e = _((n) => n.setDataSetBatch);
283
283
  return {
284
284
  get value() {
@@ -289,13 +289,13 @@ function Ec(t) {
289
289
  }
290
290
  };
291
291
  }
292
- function Oc() {
292
+ function $c() {
293
293
  return _((t) => t.addCommand);
294
294
  }
295
- function $c() {
295
+ function Mc() {
296
296
  return _((t) => t.popCommand);
297
297
  }
298
- function Ki(t, e) {
298
+ function Li(t, e) {
299
299
  const n = _((r) => {
300
300
  if (!t) return;
301
301
  const o = xt(t).baseName;
@@ -307,7 +307,7 @@ function Ki(t, e) {
307
307
  return Array.isArray(o) ? o : o != null && typeof o == "object" && Array.isArray(o.value) ? o.value : [];
308
308
  }, [n, t, e, i]);
309
309
  }
310
- function Mc() {
310
+ function Rc() {
311
311
  const t = _((o) => o.setDataSetBatch), e = _((o) => o.setDataSet), n = _((o) => o.updateDataSet), i = _((o) => o.getDataSet), r = _.getState;
312
312
  return {
313
313
  get items() {
@@ -328,7 +328,7 @@ function Mc() {
328
328
  getItem: (o) => r().dataSets[o] || {}
329
329
  };
330
330
  }
331
- function Rc(t) {
331
+ function jc(t) {
332
332
  const e = _((o) => o.addCommand), n = _((o) => o.popCommand), i = _((o) => o.getCommands), r = _((o) => o.clearCommands);
333
333
  return {
334
334
  commands: i(t),
@@ -343,7 +343,7 @@ function Rc(t) {
343
343
  clearCommands: () => r(t)
344
344
  };
345
345
  }
346
- function Li(t, e, n = {}) {
346
+ function zi(t, e, n = {}) {
347
347
  return _.subscribe(
348
348
  (r) => r.commandQueues[e],
349
349
  (r) => {
@@ -363,10 +363,10 @@ function Li(t, e, n = {}) {
363
363
  }
364
364
  );
365
365
  }
366
- function jc(t) {
366
+ function Bc(t) {
367
367
  return function(e, n) {
368
368
  const i = t();
369
- return Li(e, n, i);
369
+ return zi(e, n, i);
370
370
  };
371
371
  }
372
372
  function dt(t, e = null, n = {}) {
@@ -396,7 +396,7 @@ function ke(t, e, n = {}) {
396
396
  function sr(t, e = {}) {
397
397
  return dt(t, null, e);
398
398
  }
399
- function Bc(t, e = {}) {
399
+ function Kc(t, e = {}) {
400
400
  return dt(t, null, e);
401
401
  }
402
402
  function oe(t, e) {
@@ -416,7 +416,7 @@ function ft() {
416
416
  return t;
417
417
  }, ft.apply(this, arguments);
418
418
  }
419
- function zi(t, e) {
419
+ function Fi(t, e) {
420
420
  t.prototype = Object.create(e.prototype), t.prototype.constructor = t, _t(t, e);
421
421
  }
422
422
  function on(t) {
@@ -429,7 +429,7 @@ function _t(t, e) {
429
429
  return i.__proto__ = r, i;
430
430
  }, _t(t, e);
431
431
  }
432
- function Fi() {
432
+ function Vi() {
433
433
  if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham) return !1;
434
434
  if (typeof Proxy == "function") return !0;
435
435
  try {
@@ -440,20 +440,20 @@ function Fi() {
440
440
  }
441
441
  }
442
442
  function Vt(t, e, n) {
443
- return Fi() ? Vt = Reflect.construct.bind() : Vt = function(r, o, a) {
443
+ return Vi() ? Vt = Reflect.construct.bind() : Vt = function(r, o, a) {
444
444
  var c = [null];
445
445
  c.push.apply(c, o);
446
446
  var s = Function.bind.apply(r, c), d = new s();
447
447
  return a && _t(d, a.prototype), d;
448
448
  }, Vt.apply(null, arguments);
449
449
  }
450
- function Vi(t) {
450
+ function qi(t) {
451
451
  return Function.toString.call(t).indexOf("[native code]") !== -1;
452
452
  }
453
453
  function an(t) {
454
454
  var e = typeof Map == "function" ? /* @__PURE__ */ new Map() : void 0;
455
455
  return an = function(i) {
456
- if (i === null || !Vi(i)) return i;
456
+ if (i === null || !qi(i)) return i;
457
457
  if (typeof i != "function")
458
458
  throw new TypeError("Super expression must either be null or a function");
459
459
  if (typeof e < "u") {
@@ -473,7 +473,7 @@ function an(t) {
473
473
  }), _t(r, i);
474
474
  }, an(t);
475
475
  }
476
- var qi = /%[sdj%]/g, lr = function() {
476
+ var Pi = /%[sdj%]/g, lr = function() {
477
477
  };
478
478
  typeof process < "u" && process.env && process.env.NODE_ENV !== "production" && typeof window < "u" && typeof document < "u" && (lr = function(e, n) {
479
479
  typeof console < "u" && console.warn && typeof ASYNC_VALIDATOR_NO_WARNING > "u" && n.every(function(i) {
@@ -495,7 +495,7 @@ function qe(t) {
495
495
  if (typeof t == "function")
496
496
  return t.apply(null, n);
497
497
  if (typeof t == "string") {
498
- var a = t.replace(qi, function(c) {
498
+ var a = t.replace(Pi, function(c) {
499
499
  if (c === "%%")
500
500
  return "%";
501
501
  if (r >= o)
@@ -520,13 +520,13 @@ function qe(t) {
520
520
  }
521
521
  return t;
522
522
  }
523
- function Pi(t) {
523
+ function Wi(t) {
524
524
  return t === "string" || t === "url" || t === "hex" || t === "email" || t === "date" || t === "pattern";
525
525
  }
526
526
  function Be(t, e) {
527
- return !!(t == null || e === "array" && Array.isArray(t) && !t.length || Pi(e) && typeof t == "string" && !t);
527
+ return !!(t == null || e === "array" && Array.isArray(t) && !t.length || Wi(e) && typeof t == "string" && !t);
528
528
  }
529
- function Wi(t, e, n) {
529
+ function Hi(t, e, n) {
530
530
  var i = [], r = 0, o = t.length;
531
531
  function a(c) {
532
532
  i.push.apply(i, c || []), r++, r === o && n(i);
@@ -547,26 +547,26 @@ function Dn(t, e, n) {
547
547
  }
548
548
  o([]);
549
549
  }
550
- function Hi(t) {
550
+ function Ui(t) {
551
551
  var e = [];
552
552
  return Object.keys(t).forEach(function(n) {
553
553
  e.push.apply(e, t[n] || []);
554
554
  }), e;
555
555
  }
556
556
  var Cn = /* @__PURE__ */ function(t) {
557
- zi(e, t);
557
+ Fi(e, t);
558
558
  function e(n, i) {
559
559
  var r;
560
560
  return r = t.call(this, "Async Validation Error") || this, r.errors = n, r.fields = i, r;
561
561
  }
562
562
  return e;
563
563
  }(/* @__PURE__ */ an(Error));
564
- function Ui(t, e, n, i, r) {
564
+ function Ii(t, e, n, i, r) {
565
565
  if (e.first) {
566
566
  var o = new Promise(function(m, b) {
567
567
  var y = function(u) {
568
568
  return i(u), u.length ? b(new Cn(u, cn(u))) : m(r);
569
- }, l = Hi(t);
569
+ }, l = Ui(t);
570
570
  Dn(l, n, y);
571
571
  });
572
572
  return o.catch(function(m) {
@@ -580,17 +580,17 @@ function Ui(t, e, n, i, r) {
580
580
  };
581
581
  c.length || (i(v), m(r)), c.forEach(function(l) {
582
582
  var g = t[l];
583
- a.indexOf(l) !== -1 ? Dn(g, n, y) : Wi(g, n, y);
583
+ a.indexOf(l) !== -1 ? Dn(g, n, y) : Hi(g, n, y);
584
584
  });
585
585
  });
586
586
  return h.catch(function(m) {
587
587
  return m;
588
588
  }), h;
589
589
  }
590
- function Ii(t) {
590
+ function Yi(t) {
591
591
  return !!(t && t.message !== void 0);
592
592
  }
593
- function Yi(t, e) {
593
+ function Ji(t, e) {
594
594
  for (var n = t, i = 0; i < e.length; i++) {
595
595
  if (n == null)
596
596
  return n;
@@ -601,7 +601,7 @@ function Yi(t, e) {
601
601
  function Nn(t, e) {
602
602
  return function(n) {
603
603
  var i;
604
- return t.fullFields ? i = Yi(e, t.fullFields) : i = e[n.field || t.fullField], Ii(n) ? (n.field = n.field || t.fullField, n.fieldValue = i, n) : {
604
+ return t.fullFields ? i = Ji(e, t.fullFields) : i = e[n.field || t.fullField], Yi(n) ? (n.field = n.field || t.fullField, n.fieldValue = i, n) : {
605
605
  message: typeof n == "function" ? n() : n,
606
606
  fieldValue: i,
607
607
  field: n.field || t.fullField
@@ -620,9 +620,9 @@ function Tn(t, e) {
620
620
  }
621
621
  var ur = function(e, n, i, r, o, a) {
622
622
  e.required && (!i.hasOwnProperty(e.field) || Be(n, a || e.type)) && r.push(qe(o.messages.required, e.fullField));
623
- }, Ji = function(e, n, i, r, o) {
623
+ }, Gi = function(e, n, i, r, o) {
624
624
  (/^\s+$/.test(n) || n === "") && r.push(qe(o.messages.whitespace, e.fullField));
625
- }, Lt, Gi = function() {
625
+ }, Lt, Qi = function() {
626
626
  if (Lt)
627
627
  return Lt;
628
628
  var t = "[a-fA-F\\d:]", e = function(C) {
@@ -691,26 +691,26 @@ var ur = function(e, n, i, r, o, a) {
691
691
  return typeof e == "string" && e.length <= 320 && !!e.match(kn.email);
692
692
  },
693
693
  url: function(e) {
694
- return typeof e == "string" && e.length <= 2048 && !!e.match(Gi());
694
+ return typeof e == "string" && e.length <= 2048 && !!e.match(Qi());
695
695
  },
696
696
  hex: function(e) {
697
697
  return typeof e == "string" && !!e.match(kn.hex);
698
698
  }
699
- }, Qi = function(e, n, i, r, o) {
699
+ }, Zi = function(e, n, i, r, o) {
700
700
  if (e.required && n === void 0) {
701
701
  ur(e, n, i, r, o);
702
702
  return;
703
703
  }
704
704
  var a = ["integer", "float", "array", "regexp", "object", "method", "email", "number", "date", "url", "hex"], c = e.type;
705
705
  a.indexOf(c) > -1 ? Ct[c](n) || r.push(qe(o.messages.types[c], e.fullField, e.type)) : c && typeof n !== e.type && r.push(qe(o.messages.types[c], e.fullField, e.type));
706
- }, Zi = function(e, n, i, r, o) {
706
+ }, Xi = function(e, n, i, r, o) {
707
707
  var a = typeof e.len == "number", c = typeof e.min == "number", s = typeof e.max == "number", d = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g, v = n, h = null, m = typeof n == "number", b = typeof n == "string", y = Array.isArray(n);
708
708
  if (m ? h = "number" : b ? h = "string" : y && (h = "array"), !h)
709
709
  return !1;
710
710
  y && (v = n.length), b && (v = n.replace(d, "_").length), a ? v !== e.len && r.push(qe(o.messages[h].len, e.fullField, e.len)) : c && !s && v < e.min ? r.push(qe(o.messages[h].min, e.fullField, e.min)) : s && !c && v > e.max ? r.push(qe(o.messages[h].max, e.fullField, e.max)) : c && s && (v < e.min || v > e.max) && r.push(qe(o.messages[h].range, e.fullField, e.min, e.max));
711
- }, gt = "enum", Xi = function(e, n, i, r, o) {
711
+ }, gt = "enum", eo = function(e, n, i, r, o) {
712
712
  e[gt] = Array.isArray(e[gt]) ? e[gt] : [], e[gt].indexOf(n) === -1 && r.push(qe(o.messages[gt], e.fullField, e[gt].join(", ")));
713
- }, eo = function(e, n, i, r, o) {
713
+ }, to = function(e, n, i, r, o) {
714
714
  if (e.pattern) {
715
715
  if (e.pattern instanceof RegExp)
716
716
  e.pattern.lastIndex = 0, e.pattern.test(n) || r.push(qe(o.messages.pattern.mismatch, e.fullField, n, e.pattern));
@@ -721,12 +721,12 @@ var ur = function(e, n, i, r, o, a) {
721
721
  }
722
722
  }, we = {
723
723
  required: ur,
724
- whitespace: Ji,
725
- type: Qi,
726
- range: Zi,
727
- enum: Xi,
728
- pattern: eo
729
- }, to = function(e, n, i, r, o) {
724
+ whitespace: Gi,
725
+ type: Zi,
726
+ range: Xi,
727
+ enum: eo,
728
+ pattern: to
729
+ }, no = function(e, n, i, r, o) {
730
730
  var a = [], c = e.required || !e.required && r.hasOwnProperty(e.field);
731
731
  if (c) {
732
732
  if (Be(n, "string") && !e.required)
@@ -734,7 +734,7 @@ var ur = function(e, n, i, r, o, a) {
734
734
  we.required(e, n, r, a, o, "string"), Be(n, "string") || (we.type(e, n, r, a, o), we.range(e, n, r, a, o), we.pattern(e, n, r, a, o), e.whitespace === !0 && we.whitespace(e, n, r, a, o));
735
735
  }
736
736
  i(a);
737
- }, no = function(e, n, i, r, o) {
737
+ }, ro = function(e, n, i, r, o) {
738
738
  var a = [], c = e.required || !e.required && r.hasOwnProperty(e.field);
739
739
  if (c) {
740
740
  if (Be(n) && !e.required)
@@ -742,7 +742,7 @@ var ur = function(e, n, i, r, o, a) {
742
742
  we.required(e, n, r, a, o), n !== void 0 && we.type(e, n, r, a, o);
743
743
  }
744
744
  i(a);
745
- }, ro = function(e, n, i, r, o) {
745
+ }, io = function(e, n, i, r, o) {
746
746
  var a = [], c = e.required || !e.required && r.hasOwnProperty(e.field);
747
747
  if (c) {
748
748
  if (n === "" && (n = void 0), Be(n) && !e.required)
@@ -750,7 +750,7 @@ var ur = function(e, n, i, r, o, a) {
750
750
  we.required(e, n, r, a, o), n !== void 0 && (we.type(e, n, r, a, o), we.range(e, n, r, a, o));
751
751
  }
752
752
  i(a);
753
- }, io = function(e, n, i, r, o) {
753
+ }, oo = function(e, n, i, r, o) {
754
754
  var a = [], c = e.required || !e.required && r.hasOwnProperty(e.field);
755
755
  if (c) {
756
756
  if (Be(n) && !e.required)
@@ -758,7 +758,7 @@ var ur = function(e, n, i, r, o, a) {
758
758
  we.required(e, n, r, a, o), n !== void 0 && we.type(e, n, r, a, o);
759
759
  }
760
760
  i(a);
761
- }, oo = function(e, n, i, r, o) {
761
+ }, ao = function(e, n, i, r, o) {
762
762
  var a = [], c = e.required || !e.required && r.hasOwnProperty(e.field);
763
763
  if (c) {
764
764
  if (Be(n) && !e.required)
@@ -766,7 +766,7 @@ var ur = function(e, n, i, r, o, a) {
766
766
  we.required(e, n, r, a, o), Be(n) || we.type(e, n, r, a, o);
767
767
  }
768
768
  i(a);
769
- }, ao = function(e, n, i, r, o) {
769
+ }, co = function(e, n, i, r, o) {
770
770
  var a = [], c = e.required || !e.required && r.hasOwnProperty(e.field);
771
771
  if (c) {
772
772
  if (Be(n) && !e.required)
@@ -774,7 +774,7 @@ var ur = function(e, n, i, r, o, a) {
774
774
  we.required(e, n, r, a, o), n !== void 0 && (we.type(e, n, r, a, o), we.range(e, n, r, a, o));
775
775
  }
776
776
  i(a);
777
- }, co = function(e, n, i, r, o) {
777
+ }, so = function(e, n, i, r, o) {
778
778
  var a = [], c = e.required || !e.required && r.hasOwnProperty(e.field);
779
779
  if (c) {
780
780
  if (Be(n) && !e.required)
@@ -782,7 +782,7 @@ var ur = function(e, n, i, r, o, a) {
782
782
  we.required(e, n, r, a, o), n !== void 0 && (we.type(e, n, r, a, o), we.range(e, n, r, a, o));
783
783
  }
784
784
  i(a);
785
- }, so = function(e, n, i, r, o) {
785
+ }, lo = function(e, n, i, r, o) {
786
786
  var a = [], c = e.required || !e.required && r.hasOwnProperty(e.field);
787
787
  if (c) {
788
788
  if (n == null && !e.required)
@@ -790,7 +790,7 @@ var ur = function(e, n, i, r, o, a) {
790
790
  we.required(e, n, r, a, o, "array"), n != null && (we.type(e, n, r, a, o), we.range(e, n, r, a, o));
791
791
  }
792
792
  i(a);
793
- }, lo = function(e, n, i, r, o) {
793
+ }, uo = function(e, n, i, r, o) {
794
794
  var a = [], c = e.required || !e.required && r.hasOwnProperty(e.field);
795
795
  if (c) {
796
796
  if (Be(n) && !e.required)
@@ -798,15 +798,15 @@ var ur = function(e, n, i, r, o, a) {
798
798
  we.required(e, n, r, a, o), n !== void 0 && we.type(e, n, r, a, o);
799
799
  }
800
800
  i(a);
801
- }, uo = "enum", fo = function(e, n, i, r, o) {
801
+ }, fo = "enum", mo = function(e, n, i, r, o) {
802
802
  var a = [], c = e.required || !e.required && r.hasOwnProperty(e.field);
803
803
  if (c) {
804
804
  if (Be(n) && !e.required)
805
805
  return i();
806
- we.required(e, n, r, a, o), n !== void 0 && we[uo](e, n, r, a, o);
806
+ we.required(e, n, r, a, o), n !== void 0 && we[fo](e, n, r, a, o);
807
807
  }
808
808
  i(a);
809
- }, mo = function(e, n, i, r, o) {
809
+ }, yo = function(e, n, i, r, o) {
810
810
  var a = [], c = e.required || !e.required && r.hasOwnProperty(e.field);
811
811
  if (c) {
812
812
  if (Be(n, "string") && !e.required)
@@ -814,7 +814,7 @@ var ur = function(e, n, i, r, o, a) {
814
814
  we.required(e, n, r, a, o), Be(n, "string") || we.pattern(e, n, r, a, o);
815
815
  }
816
816
  i(a);
817
- }, yo = function(e, n, i, r, o) {
817
+ }, ho = function(e, n, i, r, o) {
818
818
  var a = [], c = e.required || !e.required && r.hasOwnProperty(e.field);
819
819
  if (c) {
820
820
  if (Be(n, "date") && !e.required)
@@ -825,7 +825,7 @@ var ur = function(e, n, i, r, o, a) {
825
825
  }
826
826
  }
827
827
  i(a);
828
- }, ho = function(e, n, i, r, o) {
828
+ }, go = function(e, n, i, r, o) {
829
829
  var a = [], c = Array.isArray(n) ? "array" : typeof n;
830
830
  we.required(e, n, r, a, o, c), i(a);
831
831
  }, Jt = function(e, n, i, r, o) {
@@ -836,7 +836,7 @@ var ur = function(e, n, i, r, o, a) {
836
836
  we.required(e, n, r, c, o, a), Be(n, a) || we.type(e, n, r, c, o);
837
837
  }
838
838
  i(c);
839
- }, go = function(e, n, i, r, o) {
839
+ }, po = function(e, n, i, r, o) {
840
840
  var a = [], c = e.required || !e.required && r.hasOwnProperty(e.field);
841
841
  if (c) {
842
842
  if (Be(n) && !e.required)
@@ -845,23 +845,23 @@ var ur = function(e, n, i, r, o, a) {
845
845
  }
846
846
  i(a);
847
847
  }, Tt = {
848
- string: to,
849
- method: no,
850
- number: ro,
851
- boolean: io,
852
- regexp: oo,
853
- integer: ao,
854
- float: co,
855
- array: so,
856
- object: lo,
857
- enum: fo,
858
- pattern: mo,
859
- date: yo,
848
+ string: no,
849
+ method: ro,
850
+ number: io,
851
+ boolean: oo,
852
+ regexp: ao,
853
+ integer: co,
854
+ float: so,
855
+ array: lo,
856
+ object: uo,
857
+ enum: mo,
858
+ pattern: yo,
859
+ date: ho,
860
860
  url: Jt,
861
861
  hex: Jt,
862
862
  email: Jt,
863
- required: ho,
864
- any: go
863
+ required: go,
864
+ any: po
865
865
  };
866
866
  function sn() {
867
867
  return {
@@ -974,7 +974,7 @@ var ln = sn(), Et = /* @__PURE__ */ function() {
974
974
  });
975
975
  });
976
976
  var y = {};
977
- return Ui(m, s, function(l, g) {
977
+ return Ii(m, s, function(l, g) {
978
978
  var u = l.rule, A = (u.type === "object" || u.type === "array") && (typeof u.fields == "object" || typeof u.defaultField == "object");
979
979
  A = A && (u.required || !u.required && l.value), u.field = l.field;
980
980
  function x(S, D) {
@@ -1051,7 +1051,7 @@ Et.register = function(e, n) {
1051
1051
  Et.warning = lr;
1052
1052
  Et.messages = ln;
1053
1053
  Et.validators = Tt;
1054
- function po(t) {
1054
+ function vo(t) {
1055
1055
  if (!t || typeof t != "string") return null;
1056
1056
  try {
1057
1057
  let e = t.trim();
@@ -1064,7 +1064,7 @@ function dr(t) {
1064
1064
  return !t || !Array.isArray(t) ? [] : t.map((e) => {
1065
1065
  const n = { ...e };
1066
1066
  if (n.pattern && typeof n.pattern == "string" && n.pattern.trim()) {
1067
- const i = po(n.pattern);
1067
+ const i = vo(n.pattern);
1068
1068
  i ? n.pattern = i : delete n.pattern;
1069
1069
  }
1070
1070
  return n;
@@ -1138,7 +1138,7 @@ function ze(t) {
1138
1138
  A(w);
1139
1139
  }, [g, y, i, b, A]), { validate: A, help: x, validateStatus: C };
1140
1140
  }
1141
- function vo(t) {
1141
+ function mr(t) {
1142
1142
  if (!t) return [];
1143
1143
  const e = [];
1144
1144
  let n = t;
@@ -1146,7 +1146,8 @@ function vo(t) {
1146
1146
  e.push(n), n = n.parentContext ?? null;
1147
1147
  return e.reverse();
1148
1148
  }
1149
- function Kc(t) {
1149
+ const Lc = mr;
1150
+ function zc(t) {
1150
1151
  if (!t) return "";
1151
1152
  const e = t.parentIndex ?? t.index;
1152
1153
  return e === void 0 || !Number.isFinite(Number(e)) ? "" : `items_${e}_`;
@@ -1162,7 +1163,7 @@ function Fe(t, e, n) {
1162
1163
  }
1163
1164
  function Ot(t, e, n) {
1164
1165
  if (t == null || t === "") return null;
1165
- const i = vo(e), r = i.length > 0 ? i[i.length - 1] : void 0, o = r && typeof r.parentIndex == "number" ? r.parentIndex : void 0, a = r && typeof r.index == "number" ? r.index : void 0;
1166
+ const i = mr(e), r = i.length > 0 ? i[i.length - 1] : void 0, o = r && typeof r.parentIndex == "number" ? r.parentIndex : void 0, a = r && typeof r.index == "number" ? r.index : void 0;
1166
1167
  if (o !== void 0 && Number.isFinite(o) && a !== void 0 && Number.isFinite(a))
1167
1168
  return o !== a ? `${String(t)}_${o}_${a}` : `${String(t)}_${o}`;
1168
1169
  if (i.length >= 2) {
@@ -1173,7 +1174,6 @@ function Ot(t, e, n) {
1173
1174
  const c = o !== void 0 && Number.isFinite(o) ? o : a !== void 0 && Number.isFinite(a) ? a : typeof n == "number" ? n : void 0;
1174
1175
  return c !== void 0 && Number.isFinite(c) ? `${String(t)}_${c}` : String(t);
1175
1176
  }
1176
- const Pe = fi(null);
1177
1177
  function Ye(t) {
1178
1178
  return typeof t == "string" && t.trim() !== "";
1179
1179
  }
@@ -1186,85 +1186,90 @@ function En(t) {
1186
1186
  function On(t) {
1187
1187
  return Ye(t) && /^items\[\d+\]/.test(t.trim());
1188
1188
  }
1189
- function ot(t, e, n) {
1190
- const i = Qe(Pe);
1191
- return f(() => {
1192
- const r = n ?? (i == null ? void 0 : i.sessionId);
1193
- if (Ye(t))
1189
+ function xo(t, e, n, i) {
1190
+ const r = n ?? (i == null ? void 0 : i.sessionId);
1191
+ if (Ye(t))
1192
+ return {
1193
+ dataSet: t,
1194
+ dataSetField: e,
1195
+ sessionId: r
1196
+ };
1197
+ if (!i)
1198
+ return {
1199
+ dataSet: t,
1200
+ dataSetField: e,
1201
+ sessionId: r
1202
+ };
1203
+ const o = typeof i.index == "number" ? i.index : void 0, a = typeof i.parentIndex == "number" ? i.parentIndex : void 0, c = i.dataSet, s = i.dataSetFieldRoot;
1204
+ if (Ye(e)) {
1205
+ const d = So(
1206
+ s,
1207
+ e.trim()
1208
+ );
1209
+ if (d.startsWith("["))
1194
1210
  return {
1195
- dataSet: t,
1196
- dataSetField: e,
1211
+ dataSet: c,
1212
+ dataSetField: Ye(s) ? `${s}${d}` : d,
1197
1213
  sessionId: r
1198
1214
  };
1199
- if (!i)
1215
+ if (typeof a == "number" && typeof o == "number" && Ye(s) && !En(s) && !On(s))
1200
1216
  return {
1201
- dataSet: t,
1202
- dataSetField: e,
1217
+ dataSet: c,
1218
+ dataSetField: `[${a}].${s}[${o}].${d}`,
1203
1219
  sessionId: r
1204
1220
  };
1205
- const o = typeof i.index == "number" ? i.index : void 0, a = typeof i.parentIndex == "number" ? i.parentIndex : void 0, c = i.dataSet, s = i.dataSetFieldRoot;
1206
- if (Ye(e)) {
1207
- const d = So(
1208
- s,
1209
- e.trim()
1210
- );
1211
- if (d.startsWith("["))
1212
- return {
1213
- dataSet: c,
1214
- dataSetField: Ye(s) ? `${s}${d}` : d,
1215
- sessionId: r
1216
- };
1217
- if (typeof a == "number" && typeof o == "number" && Ye(s) && !En(s) && !On(s))
1218
- return {
1219
- dataSet: c,
1220
- dataSetField: `[${a}].${s}[${o}].${d}`,
1221
- sessionId: r
1222
- };
1223
- if (typeof o == "number")
1224
- return Ye(s) ? {
1225
- dataSet: c,
1226
- dataSetField: `${s}[${o}].${d}`,
1227
- sessionId: r
1228
- } : {
1229
- dataSet: c,
1230
- dataSetField: `[${o}].${d}`,
1231
- sessionId: r
1232
- };
1233
- const v = Ye(s) ? `${s}.${d}` : d;
1234
- return {
1221
+ if (typeof o == "number")
1222
+ return Ye(s) ? {
1235
1223
  dataSet: c,
1236
- dataSetField: v,
1224
+ dataSetField: `${s}[${o}].${d}`,
1225
+ sessionId: r
1226
+ } : {
1227
+ dataSet: c,
1228
+ dataSetField: `[${o}].${d}`,
1237
1229
  sessionId: r
1238
1230
  };
1239
- }
1240
- return typeof a == "number" && typeof o == "number" && Ye(s) && !En(s) && !On(s) ? {
1241
- dataSet: c,
1242
- dataSetField: `[${a}].${s}[${o}]`,
1243
- sessionId: r
1244
- } : typeof o == "number" && Ye(s) ? {
1245
- dataSet: c,
1246
- dataSetField: `${s}[${o}]`,
1247
- sessionId: r
1248
- } : typeof o == "number" ? {
1249
- dataSet: c,
1250
- dataSetField: `[${o}]`,
1251
- sessionId: r
1252
- } : {
1231
+ const v = Ye(s) ? `${s}.${d}` : d;
1232
+ return {
1253
1233
  dataSet: c,
1254
- dataSetField: Ye(s) ? s : e,
1234
+ dataSetField: v,
1255
1235
  sessionId: r
1256
1236
  };
1257
- }, [i, t, e, n]);
1237
+ }
1238
+ return typeof a == "number" && typeof o == "number" && Ye(s) && !En(s) && !On(s) ? {
1239
+ dataSet: c,
1240
+ dataSetField: `[${a}].${s}[${o}]`,
1241
+ sessionId: r
1242
+ } : typeof o == "number" && Ye(s) ? {
1243
+ dataSet: c,
1244
+ dataSetField: `${s}[${o}]`,
1245
+ sessionId: r
1246
+ } : typeof o == "number" ? {
1247
+ dataSet: c,
1248
+ dataSetField: `[${o}]`,
1249
+ sessionId: r
1250
+ } : {
1251
+ dataSet: c,
1252
+ dataSetField: Ye(s) ? s : e,
1253
+ sessionId: r
1254
+ };
1258
1255
  }
1259
- function xo(t, e) {
1256
+ const Pe = mi(null);
1257
+ function ot(t, e, n) {
1258
+ const i = Qe(Pe);
1259
+ return f(
1260
+ () => xo(t, e, n, i),
1261
+ [i, t, e, n]
1262
+ );
1263
+ }
1264
+ function wo(t, e) {
1260
1265
  return t === e ? !0 : String(t ?? "") === String(e ?? "");
1261
1266
  }
1262
1267
  function nt(t, e) {
1263
1268
  if (Array.isArray(t))
1264
- return t.find((n) => xo(n.value, e));
1269
+ return t.find((n) => wo(n.value, e));
1265
1270
  }
1266
1271
  let He = {};
1267
- function Lc(t) {
1272
+ function Fc(t) {
1268
1273
  He = { ...He, ...t };
1269
1274
  }
1270
1275
  function Je() {
@@ -1282,7 +1287,7 @@ async function mt(t) {
1282
1287
  "Request handler not configured. Please call setCoreConfig() first."
1283
1288
  );
1284
1289
  }
1285
- async function mr(t, e) {
1290
+ async function yr(t, e) {
1286
1291
  if (He.upload)
1287
1292
  return He.upload(t, e);
1288
1293
  throw new Error(
@@ -1297,11 +1302,11 @@ async function yn(t) {
1297
1302
  function un() {
1298
1303
  return He.getAccessToken ? He.getAccessToken() : null;
1299
1304
  }
1300
- const zc = {
1305
+ const Vc = {
1301
1306
  post: (t, e, n) => mt({ url: t, data: e, method: "POST", ...n }),
1302
1307
  get: (t, e, n) => mt({ url: t, params: e, method: "GET", ...n })
1303
1308
  };
1304
- function wo() {
1309
+ function Ao() {
1305
1310
  const t = Je(), e = z(
1306
1311
  async (s, d) => {
1307
1312
  const v = typeof s == "string" ? { url: s, ...d } : s;
@@ -1318,7 +1323,7 @@ function wo() {
1318
1323
  async (s) => yn(s),
1319
1324
  []
1320
1325
  ), o = z(
1321
- async (s, d) => mr(s, d),
1326
+ async (s, d) => yr(s, d),
1322
1327
  []
1323
1328
  ), a = z(() => un(), []), c = z(() => !!t.request, [t.request]);
1324
1329
  return {
@@ -1405,7 +1410,7 @@ const wt = (t) => {
1405
1410
  } else
1406
1411
  e = new Date(t);
1407
1412
  return isNaN(e.getTime()) ? null : e;
1408
- }, Ao = (t, e = "CNY", n = {}) => {
1413
+ }, Do = (t, e = "CNY", n = {}) => {
1409
1414
  try {
1410
1415
  const i = wt(t), r = /^[A-Z]{3}$/.test(e) ? e : "CNY";
1411
1416
  return new Intl.NumberFormat("zh-CN", {
@@ -1416,7 +1421,7 @@ const wt = (t) => {
1416
1421
  } catch {
1417
1422
  return "";
1418
1423
  }
1419
- }, Do = (t, e = {}) => {
1424
+ }, Co = (t, e = {}) => {
1420
1425
  try {
1421
1426
  const n = wt(t);
1422
1427
  return new Intl.NumberFormat("zh-CN", {
@@ -1427,7 +1432,7 @@ const wt = (t) => {
1427
1432
  } catch {
1428
1433
  return "";
1429
1434
  }
1430
- }, Co = (t, e = 2) => {
1435
+ }, No = (t, e = 2) => {
1431
1436
  try {
1432
1437
  const n = wt(t), i = Math.max(0, Math.min(20, Math.floor(e)));
1433
1438
  return new Intl.NumberFormat("zh-CN", {
@@ -1438,7 +1443,7 @@ const wt = (t) => {
1438
1443
  } catch {
1439
1444
  return "";
1440
1445
  }
1441
- }, No = (t, e = "compact") => {
1446
+ }, To = (t, e = "compact") => {
1442
1447
  try {
1443
1448
  const n = wt(t);
1444
1449
  return new Intl.NumberFormat("zh-CN", {
@@ -1448,7 +1453,7 @@ const wt = (t) => {
1448
1453
  } catch {
1449
1454
  return "";
1450
1455
  }
1451
- }, To = (t, e = {}) => {
1456
+ }, ko = (t, e = {}) => {
1452
1457
  try {
1453
1458
  const n = Pt(t);
1454
1459
  return n ? new Intl.DateTimeFormat("zh-CN", {
@@ -1460,7 +1465,7 @@ const wt = (t) => {
1460
1465
  } catch {
1461
1466
  return "";
1462
1467
  }
1463
- }, yr = (t, e = "YYYY-MM-DD") => {
1468
+ }, hr = (t, e = "YYYY-MM-DD") => {
1464
1469
  try {
1465
1470
  const n = Pt(t);
1466
1471
  if (!n) return "";
@@ -1469,7 +1474,7 @@ const wt = (t) => {
1469
1474
  } catch {
1470
1475
  return "";
1471
1476
  }
1472
- }, ko = (t, e = "YYYY-MM-DD HH:mm:ss") => yr(t, e), _o = (t) => {
1477
+ }, _o = (t, e = "YYYY-MM-DD HH:mm:ss") => hr(t, e), Eo = (t) => {
1473
1478
  try {
1474
1479
  const e = Pt(t);
1475
1480
  if (!e) return "";
@@ -1478,7 +1483,7 @@ const wt = (t) => {
1478
1483
  } catch {
1479
1484
  return "";
1480
1485
  }
1481
- }, Eo = (t) => {
1486
+ }, Oo = (t) => {
1482
1487
  try {
1483
1488
  const e = Math.floor(wt(t));
1484
1489
  if (e < 0 || e > 31536e3) return "";
@@ -1487,7 +1492,7 @@ const wt = (t) => {
1487
1492
  } catch {
1488
1493
  return "";
1489
1494
  }
1490
- }, Oo = (t) => {
1495
+ }, $o = (t) => {
1491
1496
  try {
1492
1497
  const e = Pt(t);
1493
1498
  if (!e) return "";
@@ -1499,7 +1504,7 @@ const wt = (t) => {
1499
1504
  } catch {
1500
1505
  return "";
1501
1506
  }
1502
- }, $o = (t, e = 2, n = !0) => {
1507
+ }, Mo = (t, e = 2, n = !0) => {
1503
1508
  try {
1504
1509
  const i = wt(t);
1505
1510
  if (i < 0 || i > Number.MAX_SAFE_INTEGER) return "";
@@ -1512,21 +1517,21 @@ const wt = (t) => {
1512
1517
  } catch {
1513
1518
  return "";
1514
1519
  }
1515
- }, Mo = (t, e = "CN") => {
1520
+ }, Ro = (t, e = "CN") => {
1516
1521
  try {
1517
1522
  const n = je(t).replace(/\D/g, "");
1518
1523
  return n ? e === "CN" && n.length === 11 && /^1[3-9]\d{9}$/.test(n) ? n.replace(/(\d{3})(\d{4})(\d{4})/, "$1 $2 $3") : e === "US" && n.length === 10 ? n.replace(/(\d{3})(\d{3})(\d{4})/, "($1) $2-$3") : je(t) : "";
1519
1524
  } catch {
1520
1525
  return "";
1521
1526
  }
1522
- }, Ro = (t) => {
1527
+ }, jo = (t) => {
1523
1528
  try {
1524
1529
  const e = je(t).replace(/\D/g, "");
1525
1530
  return e.length === 11 ? e.replace(/(\d{3})\d{4}(\d{4})/, "$1****$2") : je(t);
1526
1531
  } catch {
1527
1532
  return "";
1528
1533
  }
1529
- }, jo = (t) => {
1534
+ }, Bo = (t) => {
1530
1535
  try {
1531
1536
  const e = je(t);
1532
1537
  if (!e || !e.includes("@")) return "";
@@ -1535,14 +1540,14 @@ const wt = (t) => {
1535
1540
  } catch {
1536
1541
  return "";
1537
1542
  }
1538
- }, Bo = (t, e = !0) => {
1543
+ }, Ko = (t, e = !0) => {
1539
1544
  try {
1540
1545
  const n = je(t).replace(/\s/g, "");
1541
1546
  return n.length === 18 && /^\d{17}[\dXx]$/.test(n) ? e ? n.replace(/(\d{6})\d{8}(\d{3}[\dXx])/, "$1********$2") : n.replace(/(\d{6})(\d{8})(\d{4})/, "$1 $2 $3") : "";
1542
1547
  } catch {
1543
1548
  return "";
1544
1549
  }
1545
- }, Ko = (t, e = !0) => {
1550
+ }, Lo = (t, e = !0) => {
1546
1551
  try {
1547
1552
  const n = je(t).replace(/\s/g, "");
1548
1553
  if (!/^\d{13,19}$/.test(n)) return "";
@@ -1554,34 +1559,34 @@ const wt = (t) => {
1554
1559
  } catch {
1555
1560
  return "";
1556
1561
  }
1557
- }, Lo = (t) => {
1562
+ }, zo = (t) => {
1558
1563
  try {
1559
1564
  const e = je(t);
1560
1565
  return e.length <= 1 ? e : e.length === 2 ? e[0] + "*" : e[0] + "*".repeat(e.length - 2) + e[e.length - 1];
1561
1566
  } catch {
1562
1567
  return "";
1563
1568
  }
1564
- }, zo = (t, e = 50, n = "...") => {
1569
+ }, Fo = (t, e = 50, n = "...") => {
1565
1570
  try {
1566
1571
  const i = je(t), r = Math.max(1, Math.min(1e3, Math.floor(e)));
1567
1572
  return i.length <= r ? i : i.slice(0, r) + n;
1568
1573
  } catch {
1569
1574
  return "";
1570
1575
  }
1571
- }, Fo = (t) => {
1576
+ }, Vo = (t) => {
1572
1577
  try {
1573
1578
  const e = je(t);
1574
1579
  return e ? e.charAt(0).toUpperCase() + e.slice(1).toLowerCase() : "";
1575
1580
  } catch {
1576
1581
  return "";
1577
1582
  }
1578
- }, Vo = (t, e = ", ") => {
1583
+ }, qo = (t, e = ", ") => {
1579
1584
  try {
1580
1585
  return Array.isArray(t) ? t.join(e) : je(t);
1581
1586
  } catch {
1582
1587
  return "";
1583
1588
  }
1584
- }, qo = (t) => ({
1589
+ }, Po = (t) => ({
1585
1590
  0: "女",
1586
1591
  1: "男",
1587
1592
  2: "未知",
@@ -1591,68 +1596,68 @@ const wt = (t) => {
1591
1596
  f: "女",
1592
1597
  M: "男",
1593
1598
  F: "女"
1594
- })[je(t)] || je(t), Po = (t, e) => e ? e[je(t)] || je(t) : {
1599
+ })[je(t)] || je(t), Wo = (t, e) => e ? e[je(t)] || je(t) : {
1595
1600
  0: "禁用",
1596
1601
  1: "启用",
1597
1602
  true: "是",
1598
1603
  false: "否"
1599
- }[je(t)] || je(t), Wo = (t) => {
1604
+ }[je(t)] || je(t), Ho = (t) => {
1600
1605
  try {
1601
1606
  return je(t).replace(/<[^>]*>/g, "");
1602
1607
  } catch {
1603
1608
  return "";
1604
1609
  }
1605
1610
  };
1606
- function Ho(t, e, n = {}) {
1611
+ function Uo(t, e, n = {}) {
1607
1612
  if (!e || t === void 0 || t === null)
1608
1613
  return je(t);
1609
1614
  switch (e) {
1610
1615
  case "currency":
1611
- return Ao(t, n.currency, n);
1616
+ return Do(t, n.currency, n);
1612
1617
  case "number":
1613
- return Do(t, n);
1618
+ return Co(t, n);
1614
1619
  case "percent":
1615
- return Co(t, n.precision);
1620
+ return No(t, n.precision);
1616
1621
  case "compact":
1617
- return No(t, n.notation);
1622
+ return To(t, n.notation);
1618
1623
  case "timestamp":
1619
- return ko(t, n.pattern);
1624
+ return _o(t, n.pattern);
1620
1625
  case "date":
1621
- return To(t, n);
1626
+ return ko(t, n);
1622
1627
  case "dateCustom":
1623
- return yr(t, n.pattern);
1628
+ return hr(t, n.pattern);
1624
1629
  case "relativeTime":
1625
- return _o(t);
1626
- case "duration":
1627
1630
  return Eo(t);
1628
- case "age":
1631
+ case "duration":
1629
1632
  return Oo(t);
1633
+ case "age":
1634
+ return $o(t);
1630
1635
  case "fileSize":
1631
- return $o(t, n.precision, n.binary);
1636
+ return Mo(t, n.precision, n.binary);
1632
1637
  case "phone":
1633
- return Mo(t, n.country);
1638
+ return Ro(t, n.country);
1634
1639
  case "phoneMask":
1635
- return Ro(t);
1636
- case "emailMask":
1637
1640
  return jo(t);
1641
+ case "emailMask":
1642
+ return Bo(t);
1638
1643
  case "idCard":
1639
- return Bo(t, n.mask);
1640
- case "bankCard":
1641
1644
  return Ko(t, n.mask);
1645
+ case "bankCard":
1646
+ return Lo(t, n.mask);
1642
1647
  case "usernameMask":
1643
- return Lo(t);
1648
+ return zo(t);
1644
1649
  case "truncate":
1645
- return zo(t, n.maxLength, n.suffix);
1650
+ return Fo(t, n.maxLength, n.suffix);
1646
1651
  case "capitalize":
1647
- return Fo(t);
1652
+ return Vo(t);
1648
1653
  case "array":
1649
- return Vo(t, n.delimiter);
1654
+ return qo(t, n.delimiter);
1650
1655
  case "gender":
1651
- return qo(t);
1656
+ return Po(t);
1652
1657
  case "status":
1653
- return Po(t, n.statusMap);
1658
+ return Wo(t, n.statusMap);
1654
1659
  case "stripHtml":
1655
- return Wo(t);
1660
+ return Ho(t);
1656
1661
  default:
1657
1662
  return je(t);
1658
1663
  }
@@ -1688,7 +1693,7 @@ const Wt = {
1688
1693
  colorLink: "colorLink",
1689
1694
  colorLinkHover: "colorLinkHover",
1690
1695
  colorLinkActive: "colorLinkActive"
1691
- }, Fc = Object.keys(Wt), Vc = [
1696
+ }, qc = Object.keys(Wt), Pc = [
1692
1697
  { label: "主色", value: "colorPrimary" },
1693
1698
  { label: "成功", value: "colorSuccess" },
1694
1699
  { label: "警告", value: "colorWarning" },
@@ -1698,29 +1703,29 @@ const Wt = {
1698
1703
  { label: "次级文本", value: "colorTextSecondary" },
1699
1704
  { label: "链接", value: "colorLink" }
1700
1705
  ];
1701
- function hr(t) {
1706
+ function gr(t) {
1702
1707
  return Wt.hasOwnProperty(t);
1703
1708
  }
1704
1709
  function Ht(t) {
1705
1710
  const { token: e } = ct.useToken();
1706
1711
  if (t) {
1707
- if (hr(t)) {
1712
+ if (gr(t)) {
1708
1713
  const n = Wt[t];
1709
1714
  return e[n] || t;
1710
1715
  }
1711
1716
  return t;
1712
1717
  }
1713
1718
  }
1714
- function qc(t, e) {
1719
+ function Wc(t, e) {
1715
1720
  if (t) {
1716
- if (hr(t)) {
1721
+ if (gr(t)) {
1717
1722
  const n = Wt[t];
1718
1723
  return e[n] || t;
1719
1724
  }
1720
1725
  return t;
1721
1726
  }
1722
1727
  }
1723
- const Pc = ({
1728
+ const Hc = ({
1724
1729
  id: t,
1725
1730
  text: e,
1726
1731
  tooltip: n,
@@ -1811,7 +1816,7 @@ const Pc = ({
1811
1816
  whiteSpace: "nowrap",
1812
1817
  flex: "none"
1813
1818
  };
1814
- function Uo(t) {
1819
+ function Io(t) {
1815
1820
  const e = typeof t == "string" ? t.trim() : "";
1816
1821
  if (!e) return;
1817
1822
  const n = Ge[e];
@@ -1825,7 +1830,7 @@ function it({
1825
1830
  const n = typeof t == "string" ? t.trim() : "", i = e == null ? "" : typeof e == "string" ? e.trim() : String(e).trim();
1826
1831
  return n ? {
1827
1832
  iconConfigured: !0,
1828
- iconNode: Uo(n) ?? n,
1833
+ iconNode: Io(n) ?? n,
1829
1834
  labelText: i || void 0
1830
1835
  } : {
1831
1836
  iconConfigured: !1,
@@ -1833,25 +1838,25 @@ function it({
1833
1838
  labelText: i || void 0
1834
1839
  };
1835
1840
  }
1836
- const Io = ["value", "validateStatus", "help"], Yo = 200;
1837
- function Jo(t) {
1841
+ const Yo = ["value", "validateStatus", "help"], Jo = 200;
1842
+ function Go(t) {
1838
1843
  if (!t) return;
1839
1844
  const e = {};
1840
1845
  return Object.entries(t).forEach(([n, i]) => {
1841
1846
  i !== "" && i !== void 0 && i !== null && (e[n] = i);
1842
1847
  }), Object.keys(e).length > 0 ? e : void 0;
1843
1848
  }
1844
- function Go(t, e, n) {
1849
+ function Qo(t, e, n) {
1845
1850
  const i = { ...t };
1846
1851
  if (e && typeof e == "object" && Object.keys(e).forEach((r) => {
1847
- !Io.includes(r) && e[r] !== void 0 && e[r] !== null && (i[r] = e[r]);
1852
+ !Yo.includes(r) && e[r] !== void 0 && e[r] !== null && (i[r] = e[r]);
1848
1853
  }), n.develop) {
1849
1854
  const r = i.disabled;
1850
1855
  i.disabled = !1, i.readOnly = !0, r && (i.className = `${i.className || ""} ant-input-disabled`.trim());
1851
1856
  }
1852
1857
  return i;
1853
1858
  }
1854
- const gr = (t) => {
1859
+ const pr = (t) => {
1855
1860
  const {
1856
1861
  id: e,
1857
1862
  sessionId: n,
@@ -1903,7 +1908,7 @@ const gr = (t) => {
1903
1908
  return de ? (ce = Z.dataSets[de]) == null ? void 0 : ce.validate : void 0;
1904
1909
  }
1905
1910
  ), J = f(() => Y !== void 0 ? Y : (F == null ? void 0 : F.value) !== void 0 ? F.value : d, [Y, F == null ? void 0 : F.value, d]), se = f(
1906
- () => Go(C, F ?? null, { develop: i }),
1911
+ () => Qo(C, F ?? null, { develop: i }),
1907
1912
  [C, F, i]
1908
1913
  ), {
1909
1914
  prefixIconNode: me,
@@ -1992,7 +1997,7 @@ const gr = (t) => {
1992
1997
  }
1993
1998
  b && (j.current && clearTimeout(j.current), j.current = setTimeout(() => {
1994
1999
  j.current = null, ae(ce);
1995
- }, Yo));
2000
+ }, Jo));
1996
2001
  },
1997
2002
  [
1998
2003
  s,
@@ -2091,7 +2096,7 @@ const gr = (t) => {
2091
2096
  const Z = String(V(L, D) ?? "");
2092
2097
  ae(Z);
2093
2098
  }, [fe, L, D, V, ae]);
2094
- const ge = f(() => Jo(h), [h]), ee = f(
2099
+ const ge = f(() => Go(h), [h]), ee = f(
2095
2100
  () => ge ? { components: { Input: ge } } : void 0,
2096
2101
  [ge]
2097
2102
  ), ne = i ? void 0 : E && S && D ? G : (F == null ? void 0 : F.help) ?? "", Se = !i && ne ? "error" : void 0, H = /* @__PURE__ */ ye(St, { children: [
@@ -2118,8 +2123,8 @@ const gr = (t) => {
2118
2123
  ] });
2119
2124
  return ee ? /* @__PURE__ */ p(Ke, { theme: ee, children: H }) : H;
2120
2125
  };
2121
- gr.displayName = "AndInput";
2122
- const Wc = Le.memo(gr), $n = 200, Hc = ({
2126
+ pr.displayName = "AndInput";
2127
+ const Uc = Le.memo(pr), $n = 200, Ic = ({
2123
2128
  id: t,
2124
2129
  sessionId: e,
2125
2130
  develop: n,
@@ -2285,7 +2290,7 @@ const Wc = Le.memo(gr), $n = 200, Hc = ({
2285
2290
  onClick: (ae) => {
2286
2291
  ae.stopPropagation(), R();
2287
2292
  },
2288
- children: /* @__PURE__ */ p(hi, {})
2293
+ children: /* @__PURE__ */ p(gi, {})
2289
2294
  }
2290
2295
  );
2291
2296
  return me == null || me === !1 ? q : /* @__PURE__ */ ye(St, { children: [
@@ -2302,7 +2307,7 @@ const Wc = Le.memo(gr), $n = 200, Hc = ({
2302
2307
  ...de,
2303
2308
  disabled: n ? !1 : de.disabled,
2304
2309
  readOnly: n ? !0 : de.readOnly,
2305
- className: Ai(de.className, {
2310
+ className: Di(de.className, {
2306
2311
  "ant-input-number-disabled": n && de.disabled
2307
2312
  }),
2308
2313
  prefix: se,
@@ -2320,7 +2325,7 @@ const Wc = Le.memo(gr), $n = 200, Hc = ({
2320
2325
  ] }),
2321
2326
  M && /* @__PURE__ */ p("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: M })
2322
2327
  ] });
2323
- }, { TextArea: Mn } = qt, Qo = 200, Uc = ({
2328
+ }, { TextArea: Mn } = qt, Zo = 200, Yc = ({
2324
2329
  id: t,
2325
2330
  sessionId: e,
2326
2331
  develop: n,
@@ -2399,7 +2404,7 @@ const Wc = Le.memo(gr), $n = 200, Hc = ({
2399
2404
  }
2400
2405
  c && (S.current && clearTimeout(S.current), S.current = setTimeout(() => {
2401
2406
  S.current = null, O(se);
2402
- }, Qo));
2407
+ }, Zo));
2403
2408
  },
2404
2409
  [
2405
2410
  h,
@@ -2502,7 +2507,7 @@ const Wc = Le.memo(gr), $n = 200, Hc = ({
2502
2507
  fe,
2503
2508
  V && /* @__PURE__ */ p("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: V })
2504
2509
  ] });
2505
- }, { Password: Zo } = qt, Xo = 200, Ic = ({
2510
+ }, { Password: Xo } = qt, ea = 200, Jc = ({
2506
2511
  id: t,
2507
2512
  sessionId: e,
2508
2513
  develop: n,
@@ -2577,7 +2582,7 @@ const Wc = Le.memo(gr), $n = 200, Hc = ({
2577
2582
  }
2578
2583
  c && (u.current && clearTimeout(u.current), u.current = setTimeout(() => {
2579
2584
  u.current = null, w(P);
2580
- }, Xo));
2585
+ }, ea));
2581
2586
  },
2582
2587
  [
2583
2588
  h,
@@ -2643,7 +2648,7 @@ const Wc = Le.memo(gr), $n = 200, Hc = ({
2643
2648
  /* @__PURE__ */ ye(_e.Compact, { style: { width: "100%" }, children: [
2644
2649
  T ? /* @__PURE__ */ p(_e.Addon, { style: rt, children: T }) : null,
2645
2650
  /* @__PURE__ */ p(
2646
- Zo,
2651
+ Xo,
2647
2652
  {
2648
2653
  ...j,
2649
2654
  prefix: k,
@@ -2661,7 +2666,7 @@ const Wc = Le.memo(gr), $n = 200, Hc = ({
2661
2666
  ] }),
2662
2667
  S && /* @__PURE__ */ p("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: S })
2663
2668
  ] });
2664
- }, { Search: ea } = qt, Yc = ({
2669
+ }, { Search: ta } = qt, Gc = ({
2665
2670
  id: t,
2666
2671
  sessionId: e,
2667
2672
  develop: n,
@@ -2739,7 +2744,7 @@ const Wc = Le.memo(gr), $n = 200, Hc = ({
2739
2744
  return /* @__PURE__ */ ye(_e.Compact, { style: { width: "100%" }, children: [
2740
2745
  S ? /* @__PURE__ */ p(_e.Addon, { style: rt, children: S }) : null,
2741
2746
  /* @__PURE__ */ p(
2742
- ea,
2747
+ ta,
2743
2748
  {
2744
2749
  ...E,
2745
2750
  prefix: C,
@@ -2752,7 +2757,7 @@ const Wc = Le.memo(gr), $n = 200, Hc = ({
2752
2757
  ),
2753
2758
  D ? /* @__PURE__ */ p(_e.Addon, { style: rt, children: D }) : null
2754
2759
  ] });
2755
- }, ta = 200, na = "_selected";
2760
+ }, na = 200, ra = "_selected";
2756
2761
  function pt(t) {
2757
2762
  var e;
2758
2763
  if (t == null) return "";
@@ -2765,7 +2770,7 @@ function pt(t) {
2765
2770
  }
2766
2771
  return String(t);
2767
2772
  }
2768
- function ra(t, e) {
2773
+ function ia(t, e) {
2769
2774
  if (t === e || t == null && e == null) return !0;
2770
2775
  if (t == null || e == null) return !1;
2771
2776
  const n = t.key, i = e.key, r = t.label, o = e.label;
@@ -2800,7 +2805,7 @@ function Rn(t, e, n, i, r) {
2800
2805
  });
2801
2806
  return { key: c, label: s };
2802
2807
  }
2803
- const Jc = ({
2808
+ const Qc = ({
2804
2809
  id: t,
2805
2810
  sessionId: e,
2806
2811
  develop: n,
@@ -2873,7 +2878,7 @@ const Jc = ({
2873
2878
  });
2874
2879
  const pe = nt(re, X);
2875
2880
  return (pe == null ? void 0 : pe.value) ?? X;
2876
- }, [X, re]), q = T ? `${T}${na}` : "", ae = z(
2881
+ }, [X, re]), q = T ? `${T}${ra}` : "", ae = z(
2877
2882
  (pe, Ae) => {
2878
2883
  if (m) {
2879
2884
  m(pe, Ae);
@@ -2892,7 +2897,7 @@ const Jc = ({
2892
2897
  }
2893
2898
  if (v && (V.current && clearTimeout(V.current), V.current = setTimeout(() => {
2894
2899
  V.current = null, se(pe);
2895
- }, ta)), h && M) {
2900
+ }, na)), h && M) {
2896
2901
  const { actionName: ge, arg: ee } = ke(h, pe, {
2897
2902
  id: t,
2898
2903
  dataSet: N,
@@ -2933,7 +2938,7 @@ const Jc = ({
2933
2938
  ie.labelInValue,
2934
2939
  ie.mode
2935
2940
  ), Ae = _.getState().getDataSet(K, q);
2936
- ra(Ae, pe) || O(K, q, pe);
2941
+ ia(Ae, pe) || O(K, q, pe);
2937
2942
  }, [
2938
2943
  m,
2939
2944
  K,
@@ -2974,7 +2979,7 @@ const Jc = ({
2974
2979
  ),
2975
2980
  me && /* @__PURE__ */ p("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: me })
2976
2981
  ] });
2977
- }, Gc = ({
2982
+ }, Zc = ({
2978
2983
  id: t,
2979
2984
  sessionId: e,
2980
2985
  develop: n,
@@ -3038,7 +3043,7 @@ const Jc = ({
3038
3043
  }, [a, A, C]);
3039
3044
  return /* @__PURE__ */ ye("div", { style: { display: "inline-block" }, onBlur: S, children: [
3040
3045
  /* @__PURE__ */ p(
3041
- Or,
3046
+ $r,
3042
3047
  {
3043
3048
  ...m,
3044
3049
  disabled: n ? !1 : m.disabled,
@@ -3048,7 +3053,7 @@ const Jc = ({
3048
3053
  ),
3049
3054
  x && /* @__PURE__ */ p("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: x })
3050
3055
  ] });
3051
- }, Qc = ({
3056
+ }, Xc = ({
3052
3057
  id: t,
3053
3058
  sessionId: e,
3054
3059
  develop: n,
@@ -3139,7 +3144,7 @@ const Jc = ({
3139
3144
  ),
3140
3145
  C && /* @__PURE__ */ p("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: C })
3141
3146
  ] });
3142
- }, Zc = ({
3147
+ }, es = ({
3143
3148
  id: t,
3144
3149
  sessionId: e,
3145
3150
  develop: n,
@@ -3190,7 +3195,7 @@ const Jc = ({
3190
3195
  }, [m, x, S, a]), k = C ? "error" : void 0;
3191
3196
  return /* @__PURE__ */ ye(St, { children: [
3192
3197
  /* @__PURE__ */ p(
3193
- $r,
3198
+ Mr,
3194
3199
  {
3195
3200
  ...b,
3196
3201
  disabled: n ? !1 : b.disabled,
@@ -3204,7 +3209,7 @@ const Jc = ({
3204
3209
  ),
3205
3210
  C && /* @__PURE__ */ p("div", { style: { color: "#ff4d4f", fontSize: "12px", marginTop: "4px" }, children: C })
3206
3211
  ] });
3207
- }, { RangePicker: ia } = Yn, Xc = ({
3212
+ }, { RangePicker: oa } = Yn, ts = ({
3208
3213
  id: t,
3209
3214
  sessionId: e,
3210
3215
  develop: n,
@@ -3269,7 +3274,7 @@ const Jc = ({
3269
3274
  }, [s, x, S, a]);
3270
3275
  return /* @__PURE__ */ ye("div", { onBlur: k, children: [
3271
3276
  /* @__PURE__ */ p(
3272
- ia,
3277
+ oa,
3273
3278
  {
3274
3279
  ...D,
3275
3280
  disabled: n ? !1 : D.disabled,
@@ -3281,7 +3286,7 @@ const Jc = ({
3281
3286
  ),
3282
3287
  C && /* @__PURE__ */ p("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: C })
3283
3288
  ] });
3284
- }, es = ({
3289
+ }, ns = ({
3285
3290
  id: t,
3286
3291
  sessionId: e,
3287
3292
  develop: n,
@@ -3397,7 +3402,7 @@ const Jc = ({
3397
3402
  ),
3398
3403
  P && /* @__PURE__ */ p("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: P })
3399
3404
  ] });
3400
- }, ts = ({
3405
+ }, rs = ({
3401
3406
  id: t,
3402
3407
  sessionId: e,
3403
3408
  develop: n,
@@ -3548,7 +3553,7 @@ const Jc = ({
3548
3553
  ),
3549
3554
  $ && /* @__PURE__ */ p("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: $ })
3550
3555
  ] });
3551
- }, ns = ({
3556
+ }, is = ({
3552
3557
  id: t,
3553
3558
  sessionId: e,
3554
3559
  develop: n,
@@ -3604,7 +3609,7 @@ const Jc = ({
3604
3609
  );
3605
3610
  return /* @__PURE__ */ ye("div", { onBlur: S, children: [
3606
3611
  /* @__PURE__ */ p(
3607
- Mr,
3612
+ Rr,
3608
3613
  {
3609
3614
  ...D,
3610
3615
  disabled: n ? !1 : D.disabled,
@@ -3614,7 +3619,7 @@ const Jc = ({
3614
3619
  ),
3615
3620
  x && /* @__PURE__ */ p("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: x })
3616
3621
  ] });
3617
- }, rs = ({
3622
+ }, os = ({
3618
3623
  id: t,
3619
3624
  sessionId: e,
3620
3625
  develop: n,
@@ -3641,18 +3646,18 @@ const Jc = ({
3641
3646
  v(e, oe(A, x));
3642
3647
  }
3643
3648
  }, [a, b, r, m, o, e, t, v]);
3644
- return /* @__PURE__ */ p(Rr, { ...d, disabled: n ? !1 : d.disabled, value: l, onChange: g });
3645
- }, oa = 200, pr = (t, e, n = 1) => {
3649
+ return /* @__PURE__ */ p(jr, { ...d, disabled: n ? !1 : d.disabled, value: l, onChange: g });
3650
+ }, aa = 200, vr = (t, e, n = 1) => {
3646
3651
  if (!Array.isArray(t)) return [];
3647
3652
  const { codeKey: i, labelKey: r, childrenKey: o, maxLevel: a } = e;
3648
3653
  return t.map((c) => {
3649
- const s = n < a && Array.isArray(c == null ? void 0 : c[o]) ? pr(c[o], e, n + 1) : void 0, d = {
3654
+ const s = n < a && Array.isArray(c == null ? void 0 : c[o]) ? vr(c[o], e, n + 1) : void 0, d = {
3650
3655
  value: String(c == null ? void 0 : c[i]),
3651
3656
  label: c == null ? void 0 : c[r]
3652
3657
  };
3653
3658
  return s && s.length && (d.children = s), d;
3654
3659
  });
3655
- }, jn = (t) => !t || typeof t != "string" ? [] : t.includes(",") ? t.split(",").map((e) => e.trim()).filter((e) => e) : [t], aa = (t, e) => {
3660
+ }, jn = (t) => !t || typeof t != "string" ? [] : t.includes(",") ? t.split(",").map((e) => e.trim()).filter((e) => e) : [t], ca = (t, e) => {
3656
3661
  const n = (i, r, o = []) => {
3657
3662
  for (const a of i) {
3658
3663
  const c = a.value, s = [...o, c];
@@ -3666,7 +3671,7 @@ const Jc = ({
3666
3671
  return null;
3667
3672
  };
3668
3673
  return n(e, t) || [];
3669
- }, Bn = (t) => Array.isArray(t) && t.length > 0 && !Array.isArray(t[0]), Kn = (t) => Array.isArray(t) && t.length > 0 && Array.isArray(t[0]), is = ({
3674
+ }, Bn = (t) => Array.isArray(t) && t.length > 0 && !Array.isArray(t[0]), Kn = (t) => Array.isArray(t) && t.length > 0 && Array.isArray(t[0]), as = ({
3670
3675
  id: t,
3671
3676
  sessionId: e,
3672
3677
  develop: n,
@@ -3698,14 +3703,14 @@ const Jc = ({
3698
3703
  develop: n
3699
3704
  }), M = f(() => (o == null ? void 0 : o.url) && x.length > 0, [o == null ? void 0 : o.url, x.length]), j = f(() => {
3700
3705
  let K = E ?? b ?? m ?? [];
3701
- return typeof K == "string" ? M ? jn(K).map((P) => aa(P, x)).filter((P) => Array.isArray(P) && P.length > 0) : [K] : Bn(K) && M ? K.map((P) => jn(P)).filter((P) => Array.isArray(P) && P.length > 0) : Kn(K) && M ? K.filter((R) => Array.isArray(R) && R.length > 0) : K;
3706
+ return typeof K == "string" ? M ? jn(K).map((P) => ca(P, x)).filter((P) => Array.isArray(P) && P.length > 0) : [K] : Bn(K) && M ? K.map((P) => jn(P)).filter((P) => Array.isArray(P) && P.length > 0) : Kn(K) && M ? K.filter((R) => Array.isArray(R) && R.length > 0) : K;
3702
3707
  }, [E, b, m, M, x]), O = f(() => o != null && o.url && x.length > 0 ? x : h || [], [o == null ? void 0 : o.url, x, h]);
3703
3708
  Ne(() => {
3704
3709
  (async () => {
3705
3710
  if (o != null && o.url) {
3706
3711
  S(!0);
3707
3712
  try {
3708
- const R = await mt({ url: o.url, method: "GET" }), P = Array.isArray(R) ? R : R != null && R.data ? Array.isArray(R.data) ? R.data : R.data.list || R.data.records || [] : [], L = o.codeKey || "value", $ = o.labelKey || "label", F = o.childrenKey || "children", U = o.maxLevel || 5, G = pr(P, {
3713
+ const R = await mt({ url: o.url, method: "GET" }), P = Array.isArray(R) ? R : R != null && R.data ? Array.isArray(R.data) ? R.data : R.data.list || R.data.records || [] : [], L = o.codeKey || "value", $ = o.labelKey || "label", F = o.childrenKey || "children", U = o.maxLevel || 5, G = vr(P, {
3709
3714
  codeKey: L,
3710
3715
  labelKey: $,
3711
3716
  childrenKey: F,
@@ -3729,7 +3734,7 @@ const Jc = ({
3729
3734
  let P = K;
3730
3735
  if (Bn(K) && M ? P = String(K[K.length - 1] || "") : Kn(K) && M && (P = K.map((L) => L.join(","))), D && r && u(D, r, P), s && (A.current && clearTimeout(A.current), A.current = setTimeout(() => {
3731
3736
  A.current = null, k(K);
3732
- }, oa)), d && e) {
3737
+ }, aa)), d && e) {
3733
3738
  const { actionName: L, arg: $ } = ke(d, K, {
3734
3739
  id: t,
3735
3740
  dataSet: i,
@@ -3761,7 +3766,7 @@ const Jc = ({
3761
3766
  []
3762
3767
  ), /* @__PURE__ */ ye("div", { style: { width: "100%" }, children: [
3763
3768
  /* @__PURE__ */ p(
3764
- jr,
3769
+ Br,
3765
3770
  {
3766
3771
  ...l,
3767
3772
  disabled: n ? !1 : l.disabled,
@@ -3777,7 +3782,7 @@ const Jc = ({
3777
3782
  ),
3778
3783
  N && /* @__PURE__ */ p("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: N })
3779
3784
  ] });
3780
- }, os = ({
3785
+ }, cs = ({
3781
3786
  id: t,
3782
3787
  sessionId: e,
3783
3788
  develop: n,
@@ -3854,7 +3859,7 @@ const Jc = ({
3854
3859
  };
3855
3860
  }, [O]), B = k ? "error" : void 0, K = /* @__PURE__ */ ye("div", { onBlur: j, children: [
3856
3861
  /* @__PURE__ */ p(
3857
- Br,
3862
+ Kr,
3858
3863
  {
3859
3864
  ...T,
3860
3865
  disabled: n ? !1 : T.disabled,
@@ -3871,7 +3876,7 @@ const Jc = ({
3871
3876
  k && /* @__PURE__ */ p("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: k })
3872
3877
  ] });
3873
3878
  return V ? /* @__PURE__ */ p(Ke, { theme: V, children: K }) : K;
3874
- }, as = ({
3879
+ }, ss = ({
3875
3880
  id: t,
3876
3881
  sessionId: e,
3877
3882
  develop: n,
@@ -3953,7 +3958,7 @@ const Jc = ({
3953
3958
  if (Je().upload)
3954
3959
  try {
3955
3960
  Z == null || Z({ percent: 30 });
3956
- const I = await mr(ne, {
3961
+ const I = await yr(ne, {
3957
3962
  url: b,
3958
3963
  headers: {
3959
3964
  Authorization: un() ? `Bearer ${un()}` : ""
@@ -4030,7 +4035,7 @@ const Jc = ({
4030
4035
  );
4031
4036
  return /* @__PURE__ */ ye("div", { onBlur: Y, children: [
4032
4037
  /* @__PURE__ */ p(
4033
- Kr,
4038
+ Lr,
4034
4039
  {
4035
4040
  ...$,
4036
4041
  disabled: n ? !1 : $.disabled,
@@ -4044,7 +4049,7 @@ const Jc = ({
4044
4049
  children: !Ae && (m || (q === "picture-card" || q === "picture-circle" ? /* @__PURE__ */ ye("button", { style: { border: 0, background: "none" }, type: "button", children: [
4045
4050
  /* @__PURE__ */ p(rr, {}),
4046
4051
  /* @__PURE__ */ p("div", { style: { marginTop: 8 }, children: te })
4047
- ] }) : /* @__PURE__ */ p(st, { icon: /* @__PURE__ */ p(gi, {}), children: te })))
4052
+ ] }) : /* @__PURE__ */ p(st, { icon: /* @__PURE__ */ p(pi, {}), children: te })))
4048
4053
  }
4049
4054
  ),
4050
4055
  j && /* @__PURE__ */ p("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: j }),
@@ -4081,7 +4086,7 @@ const Jc = ({
4081
4086
  }
4082
4087
  ) })
4083
4088
  ] });
4084
- }, cs = ({
4089
+ }, ls = ({
4085
4090
  id: t,
4086
4091
  sessionId: e,
4087
4092
  develop: n,
@@ -4103,7 +4108,7 @@ const Jc = ({
4103
4108
  const g = _((O) => O.addCommand), u = _((O) => O.getDataSet), A = _((O) => O.setDataSet), x = f(
4104
4109
  () => le(e, i),
4105
4110
  [e, i]
4106
- ), [C, w] = xe(h || []), [, S] = xe(!1), D = Le.useRef(void 0), { get: E } = wo(), k = f(() => {
4111
+ ), [C, w] = xe(h || []), [, S] = xe(!1), D = Le.useRef(void 0), { get: E } = Ao(), k = f(() => {
4107
4112
  if (x && r) return u(x, r);
4108
4113
  }, [x, r, u]), N = f(() => k ?? d ?? v, [k, d, v]), T = z((O) => {
4109
4114
  if (!(b != null && b.queryApi)) {
@@ -4162,7 +4167,7 @@ const Jc = ({
4162
4167
  a && e && g(e, oe(a, { value: O, option: V }));
4163
4168
  }, [s, a, e, g]);
4164
4169
  return /* @__PURE__ */ p(
4165
- Lr,
4170
+ zr,
4166
4171
  {
4167
4172
  ...l,
4168
4173
  disabled: n ? !1 : l.disabled,
@@ -4175,7 +4180,7 @@ const Jc = ({
4175
4180
  style: { width: "100%", ...l.style }
4176
4181
  }
4177
4182
  );
4178
- }, ss = ({
4183
+ }, us = ({
4179
4184
  id: t,
4180
4185
  sessionId: e,
4181
4186
  develop: n,
@@ -4215,7 +4220,7 @@ const Jc = ({
4215
4220
  s && /* @__PURE__ */ p(st, { onClick: C, children: v })
4216
4221
  ] }) })
4217
4222
  ] });
4218
- }, ls = ({
4223
+ }, ds = ({
4219
4224
  id: t,
4220
4225
  sessionId: e,
4221
4226
  develop: n,
@@ -4230,7 +4235,7 @@ const Jc = ({
4230
4235
  return e;
4231
4236
  }
4232
4237
  return t;
4233
- }, us = ({
4238
+ }, fs = ({
4234
4239
  id: t,
4235
4240
  sessionId: e,
4236
4241
  develop: n,
@@ -4298,7 +4303,7 @@ const Jc = ({
4298
4303
  }
4299
4304
  C && e && M(e, oe(C, { direction: ie }));
4300
4305
  }, [E, C, e, M]), X = /* @__PURE__ */ p(
4301
- zr,
4306
+ Fr,
4302
4307
  {
4303
4308
  dataSource: G,
4304
4309
  targetKeys: Y,
@@ -4333,16 +4338,16 @@ const Jc = ({
4333
4338
  return e;
4334
4339
  }
4335
4340
  return t;
4336
- }, ca = (t) => {
4341
+ }, sa = (t) => {
4337
4342
  if (!t) return null;
4338
4343
  const e = Ge[t];
4339
4344
  return e ? /* @__PURE__ */ p(e, {}) : null;
4340
- }, sa = (t) => dn(t, []).map((n) => ({
4345
+ }, la = (t) => dn(t, []).map((n) => ({
4341
4346
  label: n.label,
4342
4347
  value: n.value,
4343
- icon: n.icon ? ca(n.icon) : void 0,
4348
+ icon: n.icon ? sa(n.icon) : void 0,
4344
4349
  disabled: n.disabled
4345
- })), ds = ({
4350
+ })), ms = ({
4346
4351
  id: t,
4347
4352
  sessionId: e,
4348
4353
  develop: n,
@@ -4367,7 +4372,7 @@ const Jc = ({
4367
4372
  const A = _((j) => j.addCommand), x = _((j) => j.getDataSet), C = _((j) => j.setDataSet), w = f(
4368
4373
  () => le(e, i),
4369
4374
  [e, i]
4370
- ), S = f(() => dn(l, {}), [l]), D = f(() => dn(g, {}), [g]), E = f(() => sa(o), [o]), N = f(() => {
4375
+ ), S = f(() => dn(l, {}), [l]), D = f(() => dn(g, {}), [g]), E = f(() => la(o), [o]), N = f(() => {
4371
4376
  if (w && r) {
4372
4377
  const j = x(w, r);
4373
4378
  if (typeof j == "string") return j;
@@ -4380,7 +4385,7 @@ const Jc = ({
4380
4385
  }
4381
4386
  w && r && C(w, r, O), b && e && A(e, oe(b, { value: O }));
4382
4387
  }, [y, w, r, C, b, e, A]), M = /* @__PURE__ */ p(
4383
- Fr,
4388
+ Vr,
4384
4389
  {
4385
4390
  ...u,
4386
4391
  options: E,
@@ -4396,7 +4401,7 @@ const Jc = ({
4396
4401
  }
4397
4402
  );
4398
4403
  return D && Object.keys(D).length > 0 ? /* @__PURE__ */ p(Ke, { theme: { components: { Segmented: D } }, children: M }) : M;
4399
- }, la = (t, e, n) => {
4404
+ }, ua = (t, e, n) => {
4400
4405
  const [i, r] = xe(void 0), o = e === "100%", a = Re(0);
4401
4406
  return nr(() => {
4402
4407
  if (!o || !t.current) {
@@ -4449,11 +4454,11 @@ const Jc = ({
4449
4454
  };
4450
4455
  }, [o, n]), o ? i : e;
4451
4456
  }, Ln = /* @__PURE__ */ new Map();
4452
- function ua(t) {
4457
+ function da(t) {
4453
4458
  let e = Ln.get(t);
4454
4459
  return e || (e = yn(t), Ln.set(t, e)), e;
4455
4460
  }
4456
- const da = ({ dictCode: t, value: e }) => {
4461
+ const fa = ({ dictCode: t, value: e }) => {
4457
4462
  const [n, i] = xe(null);
4458
4463
  if (Ne(() => {
4459
4464
  if (!t) {
@@ -4461,7 +4466,7 @@ const da = ({ dictCode: t, value: e }) => {
4461
4466
  return;
4462
4467
  }
4463
4468
  let o = !1;
4464
- return ua(t).then((a) => {
4469
+ return da(t).then((a) => {
4465
4470
  o || i(a);
4466
4471
  }), () => {
4467
4472
  o = !0;
@@ -4472,10 +4477,10 @@ const da = ({ dictCode: t, value: e }) => {
4472
4477
  return /* @__PURE__ */ p("span", { children: String(e) });
4473
4478
  const r = nt(n, e);
4474
4479
  return /* @__PURE__ */ p("span", { children: (r == null ? void 0 : r.label) ?? String(e) });
4475
- }, fa = (t, e) => {
4476
- const n = e.columnDictType || e.dictType || "";
4477
- return n ? /* @__PURE__ */ p(da, { dictCode: n, value: t }) : /* @__PURE__ */ p("span", { children: t != null && t !== "" ? String(t) : "" });
4478
4480
  }, ma = (t, e) => {
4481
+ const n = e.columnDictType || e.dictType || "";
4482
+ return n ? /* @__PURE__ */ p(fa, { dictCode: n, value: t }) : /* @__PURE__ */ p("span", { children: t != null && t !== "" ? String(t) : "" });
4483
+ }, ya = (t, e) => {
4479
4484
  const [n, i] = (e.imageWidthHeight || "").split(/\s*[,,]\s*/), r = n || "50", o = i || "50";
4480
4485
  let a = [];
4481
4486
  return Array.isArray(t) ? a = t.slice(0, 3) : typeof t == "string" && t && (a = [t]), a.length === 0 ? /* @__PURE__ */ p("span", { children: "无图片" }) : a.length === 1 ? /* @__PURE__ */ p(
@@ -4498,7 +4503,7 @@ const da = ({ dictCode: t, value: e }) => {
4498
4503
  },
4499
4504
  s
4500
4505
  )) });
4501
- }, ya = (t, e) => {
4506
+ }, ha = (t, e) => {
4502
4507
  let n = parseFloat(t);
4503
4508
  if (isNaN(n))
4504
4509
  return /* @__PURE__ */ p("span", { children: "无效金额" });
@@ -4512,7 +4517,7 @@ const da = ({ dictCode: t, value: e }) => {
4512
4517
  };
4513
4518
  let s = new Intl.NumberFormat("zh-CN", c).format(n);
4514
4519
  return i && (s = i + s), /* @__PURE__ */ p("span", { children: s });
4515
- }, ha = (t, e) => {
4520
+ }, ga = (t, e) => {
4516
4521
  let n = "";
4517
4522
  try {
4518
4523
  const i = tt(t);
@@ -4521,13 +4526,13 @@ const da = ({ dictCode: t, value: e }) => {
4521
4526
  n = "";
4522
4527
  }
4523
4528
  return /* @__PURE__ */ p("span", { children: n });
4524
- }, ga = (t, e) => {
4529
+ }, pa = (t, e) => {
4525
4530
  if (t == null || t === "")
4526
4531
  return /* @__PURE__ */ p("span", {});
4527
4532
  const n = e.arraySeparator || ",";
4528
4533
  return Array.isArray(t) ? /* @__PURE__ */ p("span", { children: t.join(n) }) : /* @__PURE__ */ p("span", { children: String(t) });
4529
4534
  };
4530
- function pa(t) {
4535
+ function va(t) {
4531
4536
  const e = [16, 16];
4532
4537
  if (t == null || t === "") return e;
4533
4538
  let n = [];
@@ -4546,12 +4551,12 @@ function pa(t) {
4546
4551
  const i = Number(n[0]), r = Number(n[1]);
4547
4552
  return !Number.isFinite(i) || !Number.isFinite(r) ? e : [Math.max(1, i), Math.max(1, r)];
4548
4553
  }
4549
- function va(t) {
4554
+ function ba(t) {
4550
4555
  return !!(t == null || t === "" || Array.isArray(t) && t.length === 0);
4551
4556
  }
4552
- const ba = (t, e, n, i) => {
4557
+ const Sa = (t, e, n, i) => {
4553
4558
  var h;
4554
- if (va(t))
4559
+ if (ba(t))
4555
4560
  return /* @__PURE__ */ p("span", {});
4556
4561
  const r = (h = e.columnIcon) == null ? void 0 : h.trim();
4557
4562
  if (!r)
@@ -4559,7 +4564,7 @@ const ba = (t, e, n, i) => {
4559
4564
  const o = Ge[r];
4560
4565
  if (!o)
4561
4566
  return /* @__PURE__ */ p("span", {});
4562
- const [a, c] = pa(e.iconSize), s = (e.iconClickAction || "").trim(), d = i == null ? void 0 : i.runAction, v = /* @__PURE__ */ p(
4567
+ const [a, c] = va(e.iconSize), s = (e.iconClickAction || "").trim(), d = i == null ? void 0 : i.runAction, v = /* @__PURE__ */ p(
4563
4568
  "span",
4564
4569
  {
4565
4570
  style: {
@@ -4585,27 +4590,27 @@ const ba = (t, e, n, i) => {
4585
4590
  children: v
4586
4591
  }
4587
4592
  ) : v;
4588
- }, Sa = (t, e) => {
4593
+ }, xa = (t, e) => {
4589
4594
  const n = { ...t };
4590
4595
  return n.specialFields === !0 && n.renderType && (n.render = (i, r, o) => {
4591
4596
  switch (n.renderType) {
4592
4597
  case "image":
4593
- return ma(i, n);
4594
- case "money":
4595
4598
  return ya(i, n);
4596
- case "date":
4599
+ case "money":
4597
4600
  return ha(i, n);
4598
- case "array":
4601
+ case "date":
4599
4602
  return ga(i, n);
4603
+ case "array":
4604
+ return pa(i, n);
4600
4605
  case "dict":
4601
- return fa(i, n);
4606
+ return ma(i, n);
4602
4607
  case "icon":
4603
- return ba(i, n, r, e);
4608
+ return Sa(i, n, r, e);
4604
4609
  default:
4605
4610
  return i;
4606
4611
  }
4607
4612
  }), n;
4608
- }, Gt = 15, At = 10, xa = [
4613
+ }, Gt = 15, At = 10, wa = [
4609
4614
  { value: "small", label: "紧凑" },
4610
4615
  { value: "middle", label: "默认" },
4611
4616
  { value: "large", label: "宽松" }
@@ -4624,7 +4629,7 @@ function zn(t, e, n, i) {
4624
4629
  size: i
4625
4630
  };
4626
4631
  }
4627
- function wa(t, e, n, i) {
4632
+ function Aa(t, e, n, i) {
4628
4633
  const r = (t == null ? void 0 : t.order) ?? e.map((h) => h.key), o = (t == null ? void 0 : t.visible) ?? {}, a = (t == null ? void 0 : t.fixed) ?? {}, c = (t == null ? void 0 : t.width) ?? {}, s = new Map(e.map((h) => [h.key, h])), d = [], v = /* @__PURE__ */ new Set();
4629
4634
  for (const h of r) {
4630
4635
  const m = s.get(h);
@@ -4650,7 +4655,7 @@ function wa(t, e, n, i) {
4650
4655
  size: (t == null ? void 0 : t.size) ?? i ?? "middle"
4651
4656
  };
4652
4657
  }
4653
- const Qt = 420, Fn = 440, Aa = ({
4658
+ const Qt = 420, Fn = 440, Da = ({
4654
4659
  open: t,
4655
4660
  position: e,
4656
4661
  rowIndexVisible: n,
@@ -4776,7 +4781,7 @@ const Qt = 420, Fn = 440, Aa = ({
4776
4781
  size: "small",
4777
4782
  value: A,
4778
4783
  onChange: B,
4779
- options: [...xa],
4784
+ options: [...wa],
4780
4785
  style: { width: 80 }
4781
4786
  }
4782
4787
  )
@@ -4800,7 +4805,7 @@ const Qt = 420, Fn = 440, Aa = ({
4800
4805
  onDragOver: R(F),
4801
4806
  onDragEnd: P,
4802
4807
  children: [
4803
- /* @__PURE__ */ p("td", { className: "and-table-column-setting-td-drag", children: /* @__PURE__ */ p("span", { className: "and-table-column-setting-drag", title: "拖动排序", children: /* @__PURE__ */ p(pi, {}) }) }),
4808
+ /* @__PURE__ */ p("td", { className: "and-table-column-setting-td-drag", children: /* @__PURE__ */ p("span", { className: "and-table-column-setting-drag", title: "拖动排序", children: /* @__PURE__ */ p(vi, {}) }) }),
4804
4809
  /* @__PURE__ */ ye("td", { className: "and-table-column-setting-td-name", children: [
4805
4810
  /* @__PURE__ */ p(bt, { checked: $.visible, onChange: () => k($.key) }),
4806
4811
  /* @__PURE__ */ p("span", { className: "and-table-column-setting-title", title: $.title, children: $.title })
@@ -4812,7 +4817,7 @@ const Qt = 420, Fn = 440, Aa = ({
4812
4817
  className: "and-table-column-setting-fix-btn",
4813
4818
  onClick: () => M($.key, -At),
4814
4819
  title: `减 ${At}px`,
4815
- children: /* @__PURE__ */ p(vi, {})
4820
+ children: /* @__PURE__ */ p(bi, {})
4816
4821
  }
4817
4822
  ),
4818
4823
  /* @__PURE__ */ p(
@@ -4871,7 +4876,7 @@ const Qt = 420, Fn = 440, Aa = ({
4871
4876
  ] })
4872
4877
  }
4873
4878
  );
4874
- }, Da = [
4879
+ }, Ca = [
4875
4880
  "value",
4876
4881
  "validateStatus",
4877
4882
  "help",
@@ -4882,7 +4887,7 @@ const Qt = 420, Fn = 440, Aa = ({
4882
4887
  "develop",
4883
4888
  "dataSet",
4884
4889
  "dataSetField"
4885
- ], fs = (t) => {
4890
+ ], ys = (t) => {
4886
4891
  const { id: e, sessionId: n } = t, i = _(
4887
4892
  (Q) => {
4888
4893
  var he;
@@ -4892,7 +4897,7 @@ const Qt = 420, Fn = 440, Aa = ({
4892
4897
  () => Fe(
4893
4898
  { ...t },
4894
4899
  i ?? void 0,
4895
- { skipKeys: [...Da] }
4900
+ { skipKeys: [...Ca] }
4896
4901
  ),
4897
4902
  [t, i]
4898
4903
  ), {
@@ -4969,12 +4974,12 @@ const Qt = 420, Fn = 440, Aa = ({
4969
4974
  var Me;
4970
4975
  const he = X.columnSettings ? (Me = Q.dataSets[X.columnSettings]) == null ? void 0 : Me.value : void 0;
4971
4976
  return typeof he == "object" && he !== null ? he : void 0;
4972
- }), pe = Ki(X.dataSet, c), Ae = f(() => X.dataSet ? pe : (v == null ? void 0 : v.data) || [], [X.dataSet, pe, v == null ? void 0 : v.data]), ge = f(() => J(B, {}), [B, J]), ee = ge && Object.keys(ge).length > 0, ne = f(
4977
+ }), pe = Li(X.dataSet, c), Ae = f(() => X.dataSet ? pe : (v == null ? void 0 : v.data) || [], [X.dataSet, pe, v == null ? void 0 : v.data]), ge = f(() => J(B, {}), [B, J]), ee = ge && Object.keys(ge).length > 0, ne = f(
4973
4978
  () => ee ? { components: { Table: ge } } : void 0,
4974
4979
  [ee, ge]
4975
4980
  ), Se = _(
4976
4981
  (Q) => X.pagination ? Q.dataSets[X.pagination] : void 0
4977
- ), H = f(() => X.pagination ? $(X.pagination, "") || {} : {}, [X.pagination, $, Se]), Z = f(() => !(A === !1 || typeof A == "object" && (A == null ? void 0 : A.visible) === !1), [A]), ce = la(Y, q == null ? void 0 : q.y, Z), I = f(() => {
4982
+ ), H = f(() => X.pagination ? $(X.pagination, "") || {} : {}, [X.pagination, $, Se]), Z = f(() => !(A === !1 || typeof A == "object" && (A == null ? void 0 : A.visible) === !1), [A]), ce = ua(Y, q == null ? void 0 : q.y, Z), I = f(() => {
4978
4983
  if (!Z) return !1;
4979
4984
  const Q = typeof A == "object" ? A : {}, he = P || {}, Me = Q.showSizeChanger ?? he["pagination-showSizeChanger"] ?? !0, Ee = Q.showQuickJumper ?? he["pagination-showQuickJumper"] ?? !1, Oe = Q.simple ?? he["pagination-simple"] ?? !1, Ve = Q.defaultPageSize ?? he["pagination-defaultPageSize"] ?? 10, et = Q.pageSizeOptions ?? he["pagination-pageSizeOptions"] ?? "10,20,50,100", Ut = typeof et == "string" ? et.split(",").map((ut) => parseInt(String(ut).trim(), 10) || 10).filter((ut) => !isNaN(ut)) : Array.isArray(et) ? et : [10, 20, 50, 100];
4980
4985
  return {
@@ -5008,12 +5013,12 @@ const Qt = 420, Fn = 440, Aa = ({
5008
5013
  fixed: he,
5009
5014
  width: typeof Me == "number" ? Me : "auto"
5010
5015
  };
5011
- }).filter((Q) => Q.key), [se]), De = g === !0, Te = !1, Ze = w === "small" || w === "large" ? w : "middle", { rowIndexVisible: We, items: Ue, scrollX: Xe, size: gn } = f(() => wa(
5016
+ }).filter((Q) => Q.key), [se]), De = g === !0, Te = !1, Ze = w === "small" || w === "large" ? w : "middle", { rowIndexVisible: We, items: Ue, scrollX: Xe, size: gn } = f(() => Aa(
5012
5017
  ve,
5013
5018
  be,
5014
5019
  De,
5015
5020
  Ze
5016
- ), [ve, be, De, Ze]), yt = !!(a && n), Sr = f(() => {
5021
+ ), [ve, be, De, Ze]), yt = !!(a && n), xr = f(() => {
5017
5022
  if (Xe !== void 0) return Xe;
5018
5023
  const Q = q == null ? void 0 : q.x;
5019
5024
  return Q === !0 || typeof Q == "number" && Number.isFinite(Q) && Q > 0 ? !0 : Q === "max-content" ? !1 : Te;
@@ -5035,7 +5040,7 @@ const Qt = 420, Fn = 440, Aa = ({
5035
5040
  if (!Oe) return;
5036
5041
  const Ve = Ee.fixed || void 0, et = Ee.width === "auto" || Ee.width === void 0 ? void 0 : Ee.width;
5037
5042
  Q.push(
5038
- Sa(
5043
+ xa(
5039
5044
  {
5040
5045
  ...Oe,
5041
5046
  dataIndex: Oe.dataIndex || Oe.key,
@@ -5059,14 +5064,14 @@ const Qt = 420, Fn = 440, Aa = ({
5059
5064
  H,
5060
5065
  W,
5061
5066
  ue
5062
- ]), xr = z(() => {
5067
+ ]), wr = z(() => {
5063
5068
  X.columnSettingOpen && F(X.columnSettingOpen, "", !1);
5064
- }, [X.columnSettingOpen, F]), wr = z(
5069
+ }, [X.columnSettingOpen, F]), Ar = z(
5065
5070
  (Q) => {
5066
5071
  X.columnSettings && F(X.columnSettings, "value", Q);
5067
5072
  },
5068
5073
  [X.columnSettings, F]
5069
- ), Ar = f(() => {
5074
+ ), Dr = f(() => {
5070
5075
  if (!b && m)
5071
5076
  return {
5072
5077
  selectedRowKeys: U,
@@ -5082,11 +5087,11 @@ const Qt = 420, Fn = 440, Aa = ({
5082
5087
  if (!b) return;
5083
5088
  const Me = [Q[l]];
5084
5089
  G(Me), X.selected && F(X.selected, "", Me), y != null && y.trim() && n && L(n, oe(y.trim(), { record: Q, selectedRowKeys: Me }));
5085
- }, [b, y, n, l, X.selected, F, L]), Dr = z((Q) => b && U.includes(Q[l]) ? "ant-table-row-selected" : "", [b, l, U]), Cr = z((Q) => b ? { onClick: () => vn(Q), style: { cursor: "pointer" } } : {}, [b, vn]), Nr = f(() => {
5090
+ }, [b, y, n, l, X.selected, F, L]), Cr = z((Q) => b && U.includes(Q[l]) ? "ant-table-row-selected" : "", [b, l, U]), Nr = z((Q) => b ? { onClick: () => vn(Q), style: { cursor: "pointer" } } : {}, [b, vn]), Tr = f(() => {
5086
5091
  if (!q && !yt) return;
5087
5092
  const Q = pn, he = (q == null ? void 0 : q.y) === "100%" ? ce : q == null ? void 0 : q.y;
5088
5093
  return Q !== void 0 || he !== void 0 ? { x: Q, y: he } : q ? q.y === "100%" ? { x: q.x, y: ce } : q : void 0;
5089
- }, [q, ce, yt, pn]), { titleSlot: Rt, summarySlot: jt, footerSlot: bn, otherChildren: Tr } = f(() => {
5094
+ }, [q, ce, yt, pn]), { titleSlot: Rt, summarySlot: jt, footerSlot: bn, otherChildren: kr } = f(() => {
5090
5095
  let Q = null, he = null, Me = null;
5091
5096
  const Ee = [];
5092
5097
  return Le.Children.forEach(V, (Oe) => {
@@ -5097,36 +5102,36 @@ const Qt = 420, Fn = 440, Aa = ({
5097
5102
  const Ve = Oe.props["data-slot-type"];
5098
5103
  Ve === "title" ? Q = Oe : Ve === "summary" ? he = Oe : Ve === "footer" ? Me = Oe : Ee.push(Oe);
5099
5104
  }), { titleSlot: Q, summarySlot: he, footerSlot: Me, otherChildren: Ee };
5100
- }, [V]), kr = f(() => {
5105
+ }, [V]), _r = f(() => {
5101
5106
  if (!Rt) {
5102
5107
  if (M) return M;
5103
5108
  if (k && o) return () => /* @__PURE__ */ p("div", { "data-table-slot-container": "title", style: { minHeight: 20 } });
5104
5109
  }
5105
- }, [k, Rt, M, o]), _r = f(() => {
5110
+ }, [k, Rt, M, o]), Er = f(() => {
5106
5111
  if (j) return j;
5107
5112
  if (N && jt)
5108
5113
  return () => /* @__PURE__ */ p("tr", { children: /* @__PURE__ */ p("td", { colSpan: Mt.length, style: { padding: 0 }, children: jt }) });
5109
5114
  if (N && o)
5110
5115
  return () => /* @__PURE__ */ p("tr", { children: /* @__PURE__ */ p("td", { colSpan: Mt.length, style: { padding: 0 }, children: /* @__PURE__ */ p("div", { "data-table-slot-container": "summary", style: { minHeight: 20 } }) }) });
5111
5116
  }, [N, jt, j, Mt.length, o]), Sn = /* @__PURE__ */ p(
5112
- Vr,
5117
+ qr,
5113
5118
  {
5114
5119
  ...te,
5115
5120
  columns: Mt,
5116
5121
  dataSource: Ae,
5117
5122
  rowKey: l,
5118
- rowSelection: Ar,
5119
- rowClassName: Dr,
5123
+ rowSelection: Dr,
5124
+ rowClassName: Cr,
5120
5125
  pagination: I,
5121
5126
  locale: { emptyText: x },
5122
5127
  bordered: C,
5123
5128
  size: yt ? gn : w,
5124
5129
  sticky: S,
5125
- scroll: Nr,
5126
- title: kr,
5127
- summary: _r,
5130
+ scroll: Tr,
5131
+ title: _r,
5132
+ summary: Er,
5128
5133
  footer: void 0,
5129
- onRow: Cr
5134
+ onRow: Nr
5130
5135
  }
5131
5136
  );
5132
5137
  return /* @__PURE__ */ ye(
@@ -5157,9 +5162,9 @@ const Qt = 420, Fn = 440, Aa = ({
5157
5162
  ] }),
5158
5163
  jt,
5159
5164
  bn && /* @__PURE__ */ p("div", { "data-table-slot": "footer", children: bn }),
5160
- Tr,
5165
+ kr,
5161
5166
  yt && /* @__PURE__ */ p(
5162
- Aa,
5167
+ Da,
5163
5168
  {
5164
5169
  open: ae,
5165
5170
  position: de,
@@ -5167,18 +5172,18 @@ const Qt = 420, Fn = 440, Aa = ({
5167
5172
  columnItems: Ue,
5168
5173
  defaultRowIndexVisible: De,
5169
5174
  defaultColumnItems: be,
5170
- scrollX: Sr,
5175
+ scrollX: xr,
5171
5176
  defaultScrollX: Te,
5172
5177
  size: gn,
5173
5178
  defaultSize: Ze,
5174
- onSave: wr,
5175
- onClose: xr
5179
+ onSave: Ar,
5180
+ onClose: wr
5176
5181
  }
5177
5182
  )
5178
5183
  ]
5179
5184
  }
5180
5185
  );
5181
- }, { Text: Ca } = mn, ms = ({
5186
+ }, { Text: Na } = mn, hs = ({
5182
5187
  id: t,
5183
5188
  sessionId: e,
5184
5189
  develop: n,
@@ -5248,7 +5253,7 @@ const Qt = 420, Fn = 440, Aa = ({
5248
5253
  if (n)
5249
5254
  return G;
5250
5255
  const q = (O == null ? void 0 : O.formatType) || v;
5251
- return q && G !== void 0 && G !== null ? Ho(G, q, $) : G;
5256
+ return q && G !== void 0 && G !== null ? Uo(G, q, $) : G;
5252
5257
  }, [n, G, v, $, O == null ? void 0 : O.formatType]), de = f(() => {
5253
5258
  const q = { ...A };
5254
5259
  return O && typeof O == "object" && Object.keys(O).forEach((ae) => {
@@ -5288,7 +5293,7 @@ const Qt = 420, Fn = 440, Aa = ({
5288
5293
  }
5289
5294
  return X && (q.color = X), q;
5290
5295
  }, [c, X, O == null ? void 0 : O.fontSize]), te = /* @__PURE__ */ p(
5291
- Ca,
5296
+ Na,
5292
5297
  {
5293
5298
  ...de,
5294
5299
  style: { ...re, ...b, ...de.style },
@@ -5310,7 +5315,7 @@ const Qt = 420, Fn = 440, Aa = ({
5310
5315
  }
5311
5316
  );
5312
5317
  return ie ? /* @__PURE__ */ p(Ke, { theme: { token: ie }, children: te }) : te;
5313
- }, { Title: Na } = mn, ys = ({
5318
+ }, { Title: Ta } = mn, gs = ({
5314
5319
  id: t,
5315
5320
  sessionId: e,
5316
5321
  develop: n,
@@ -5338,8 +5343,8 @@ const Qt = 420, Fn = 440, Aa = ({
5338
5343
  S !== "content" && y[S] !== void 0 && y[S] !== null && (w[S] = y[S]);
5339
5344
  }), w;
5340
5345
  }, [v, y]);
5341
- return /* @__PURE__ */ p(Na, { level: c, ...C, style: { ...x, ...d, ...C.style }, children: g || r });
5342
- }, { Paragraph: Ta } = mn, hs = ({
5346
+ return /* @__PURE__ */ p(Ta, { level: c, ...C, style: { ...x, ...d, ...C.style }, children: g || r });
5347
+ }, { Paragraph: ka } = mn, ps = ({
5343
5348
  id: t,
5344
5349
  sessionId: e,
5345
5350
  develop: n,
@@ -5366,8 +5371,8 @@ const Qt = 420, Fn = 440, Aa = ({
5366
5371
  w !== "content" && b[w] !== void 0 && b[w] !== null && (C[w] = b[w]);
5367
5372
  }), C;
5368
5373
  }, [d, b]);
5369
- return /* @__PURE__ */ p(Ta, { ...x, style: { ...A, ...s, ...x.style }, children: l || r });
5370
- }, ka = (t) => {
5374
+ return /* @__PURE__ */ p(ka, { ...x, style: { ...A, ...s, ...x.style }, children: l || r });
5375
+ }, _a = (t) => {
5371
5376
  if (!t) return [];
5372
5377
  if (typeof t == "string")
5373
5378
  try {
@@ -5376,7 +5381,7 @@ const Qt = 420, Fn = 440, Aa = ({
5376
5381
  return [];
5377
5382
  }
5378
5383
  return t;
5379
- }, gs = ({
5384
+ }, vs = ({
5380
5385
  id: t,
5381
5386
  sessionId: e,
5382
5387
  develop: n,
@@ -5395,7 +5400,7 @@ const Qt = 420, Fn = 440, Aa = ({
5395
5400
  const y = _((k) => k.addCommand), l = _((k) => k.getDataSet), g = _((k) => k.setDataSet), u = f(
5396
5401
  () => le(e, i),
5397
5402
  [e, i]
5398
- ), A = f(() => ka(o), [o]), x = f(() => a && a.length > 0 ? n ? a.map((k) => ({ ...k, forceRender: !0 })) : a : A.length > 0 ? A.map((k, N) => ({
5403
+ ), A = f(() => _a(o), [o]), x = f(() => a && a.length > 0 ? n ? a.map((k) => ({ ...k, forceRender: !0 })) : a : A.length > 0 ? A.map((k, N) => ({
5399
5404
  key: k.key,
5400
5405
  label: k.tab,
5401
5406
  disabled: k.disabled,
@@ -5421,7 +5426,7 @@ const Qt = 420, Fn = 440, Aa = ({
5421
5426
  u && r && g(u, r, k), c && e && y(e, oe(c, k));
5422
5427
  }, [n, s, u, r, g, c, e, y]);
5423
5428
  return /* @__PURE__ */ p(
5424
- qr,
5429
+ Pr,
5425
5430
  {
5426
5431
  ...b,
5427
5432
  activeKey: D,
@@ -5431,7 +5436,7 @@ const Qt = 420, Fn = 440, Aa = ({
5431
5436
  children: m
5432
5437
  }
5433
5438
  );
5434
- }, ps = ({
5439
+ }, bs = ({
5435
5440
  id: t,
5436
5441
  sessionId: e,
5437
5442
  develop: n,
@@ -5601,7 +5606,7 @@ const Qt = 420, Fn = 440, Aa = ({
5601
5606
  const H = {};
5602
5607
  return n && (H.motion = !1), ge && (H.components = { Tree: ge }), Object.keys(H).length > 0 ? H : void 0;
5603
5608
  }, [n, ge]), Se = /* @__PURE__ */ p(
5604
- Pr,
5609
+ Wr,
5605
5610
  {
5606
5611
  ...V,
5607
5612
  ...n ? { motion: !1 } : {},
@@ -5625,7 +5630,7 @@ const Qt = 420, Fn = 440, Aa = ({
5625
5630
  }
5626
5631
  );
5627
5632
  return ee ? /* @__PURE__ */ p(Ke, { theme: ee, children: Se }) : Se;
5628
- }, vs = ({
5633
+ }, Ss = ({
5629
5634
  id: t,
5630
5635
  sessionId: e,
5631
5636
  develop: n,
@@ -5663,7 +5668,7 @@ const Qt = 420, Fn = 440, Aa = ({
5663
5668
  }), A;
5664
5669
  }, [d, b]), u = f(() => s === "left" ? "start" : s === "right" ? "end" : s, [s]);
5665
5670
  return /* @__PURE__ */ p(
5666
- Wr,
5671
+ Hr,
5667
5672
  {
5668
5673
  ...g,
5669
5674
  mode: u,
@@ -5680,7 +5685,7 @@ const Qt = 420, Fn = 440, Aa = ({
5680
5685
  return e;
5681
5686
  }
5682
5687
  return t;
5683
- }, bs = ({
5688
+ }, xs = ({
5684
5689
  id: t,
5685
5690
  sessionId: e,
5686
5691
  develop: n,
@@ -5710,7 +5715,7 @@ const Qt = 420, Fn = 440, Aa = ({
5710
5715
  }
5711
5716
  x && r && A(x, r, O), o && e && g(e, oe(o, O));
5712
5717
  }, [a, x, r, A, o, e, g]), M = Object.keys(N).length > 0, j = /* @__PURE__ */ p(
5713
- Hr,
5718
+ Ur,
5714
5719
  {
5715
5720
  ...l,
5716
5721
  current: w,
@@ -5722,12 +5727,12 @@ const Qt = 420, Fn = 440, Aa = ({
5722
5727
  }
5723
5728
  );
5724
5729
  return M ? /* @__PURE__ */ p(Ke, { theme: { components: { Steps: N } }, children: j }) : j;
5725
- }, Ss = ({
5730
+ }, ws = ({
5726
5731
  id: t,
5727
5732
  sessionId: e,
5728
5733
  develop: n,
5729
5734
  ...i
5730
- }) => /* @__PURE__ */ p(en, { ...i }), xs = ({
5735
+ }) => /* @__PURE__ */ p(en, { ...i }), As = ({
5731
5736
  id: t,
5732
5737
  sessionId: e,
5733
5738
  develop: n,
@@ -5738,12 +5743,12 @@ const Qt = 420, Fn = 440, Aa = ({
5738
5743
  return /* @__PURE__ */ p(r, { type: "countdown", ...i });
5739
5744
  const { Countdown: o } = en;
5740
5745
  return /* @__PURE__ */ p(o, { ...i });
5741
- }, _a = {
5746
+ }, Ea = {
5742
5747
  top: "top",
5743
5748
  bottom: "bottom",
5744
5749
  left: "start",
5745
5750
  right: "end"
5746
- }, Ea = (t) => {
5751
+ }, Oa = (t) => {
5747
5752
  if (!t) return [];
5748
5753
  if (typeof t == "string")
5749
5754
  try {
@@ -5752,7 +5757,7 @@ const Qt = 420, Fn = 440, Aa = ({
5752
5757
  return [];
5753
5758
  }
5754
5759
  return t;
5755
- }, ws = ({
5760
+ }, Ds = ({
5756
5761
  id: t,
5757
5762
  sessionId: e,
5758
5763
  develop: n,
@@ -5773,8 +5778,8 @@ const Qt = 420, Fn = 440, Aa = ({
5773
5778
  ), g = f(() => {
5774
5779
  if (a) return a;
5775
5780
  if (o)
5776
- return _a[o] || o;
5777
- }, [o, a]), u = f(() => Ea(c), [c]), A = z((C) => {
5781
+ return Ea[o] || o;
5782
+ }, [o, a]), u = f(() => Oa(c), [c]), A = z((C) => {
5778
5783
  if (d) {
5779
5784
  d(C);
5780
5785
  return;
@@ -5792,7 +5797,7 @@ const Qt = 420, Fn = 440, Aa = ({
5792
5797
  }, children: n ? C.title : null }) }, C.key);
5793
5798
  }) : null), [h, u, v, n]);
5794
5799
  return /* @__PURE__ */ p(
5795
- Ur,
5800
+ Ir,
5796
5801
  {
5797
5802
  ...m,
5798
5803
  dotPlacement: g,
@@ -5801,13 +5806,13 @@ const Qt = 420, Fn = 440, Aa = ({
5801
5806
  }
5802
5807
  );
5803
5808
  };
5804
- function Oa(t) {
5809
+ function $a(t) {
5805
5810
  if (!t || typeof t != "string" || /^(data:|blob:|https?:\/\/)/i.test(t)) return t;
5806
5811
  const e = Je().viewRes;
5807
5812
  return e ? e(t) : t;
5808
5813
  }
5809
- const $a = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMDAiIGhlaWdodD0iMjAwIiB2aWV3Qm94PSIwIDAgMjAwIDIwMCI+PHJlY3Qgd2lkdGg9IjIwMCIgaGVpZ2h0PSIyMDAiIGZpbGw9IiNmMGYwZjAiLz48cGF0aCBkPSJNNzAgNzBhMTIgMTIgMCAxIDEgMCAyNCAxMiAxMiAwIDAgMSAwLTI0em02MCAxMEw4NSAxMzBsLTI1LTIwLTIwIDE1djE1aDEyMHYtNDB6IiBmaWxsPSIjYmZiZmJmIi8+PC9zdmc+";
5810
- function Ma(t, e, n) {
5814
+ const Ma = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMDAiIGhlaWdodD0iMjAwIiB2aWV3Qm94PSIwIDAgMjAwIDIwMCI+PHJlY3Qgd2lkdGg9IjIwMCIgaGVpZ2h0PSIyMDAiIGZpbGw9IiNmMGYwZjAiLz48cGF0aCBkPSJNNzAgNzBhMTIgMTIgMCAxIDEgMCAyNCAxMiAxMiAwIDAgMSAwLTI0em02MCAxMEw4NSAxMzBsLTI1LTIwLTIwIDE1djE1aDEyMHYtNDB6IiBmaWxsPSIjYmZiZmJmIi8+PC9zdmc+";
5815
+ function Ra(t, e, n) {
5811
5816
  if (!e) return;
5812
5817
  const { baseName: i, index: r } = xt(e), o = t[i];
5813
5818
  if (r !== null) {
@@ -5819,7 +5824,7 @@ function Ma(t, e, n) {
5819
5824
  if (o)
5820
5825
  return n ? kt(o, vt(n)) : o;
5821
5826
  }
5822
- const As = ({
5827
+ const Cs = ({
5823
5828
  id: t,
5824
5829
  sessionId: e,
5825
5830
  develop: n,
@@ -5834,10 +5839,10 @@ const As = ({
5834
5839
  () => le(e, i),
5835
5840
  [e, i]
5836
5841
  ), h = _(
5837
- (g) => v && r ? Ma(g.dataSets, v, r) : void 0
5842
+ (g) => v && r ? Ra(g.dataSets, v, r) : void 0
5838
5843
  ), m = f(() => e && t ? d(e, t) : null, [e, t, d]), b = f(() => {
5839
5844
  let g;
5840
- return h != null && h !== "" ? g = String(h) : (m == null ? void 0 : m.src) !== void 0 ? g = m.src : g = c, Oa(g);
5845
+ return h != null && h !== "" ? g = String(h) : (m == null ? void 0 : m.src) !== void 0 ? g = m.src : g = c, $a(g);
5841
5846
  }, [h, m == null ? void 0 : m.src, c]), y = f(() => {
5842
5847
  const g = { ...s };
5843
5848
  return m && typeof m == "object" && Object.keys(m).forEach((u) => {
@@ -5846,7 +5851,7 @@ const As = ({
5846
5851
  }, [s, m]), l = {
5847
5852
  ...y,
5848
5853
  src: b || void 0,
5849
- fallback: y.fallback || $a,
5854
+ fallback: y.fallback || Ma,
5850
5855
  // Disable preview in designer mode to prevent GrapesJS selection interference
5851
5856
  preview: n ? !1 : y.preview,
5852
5857
  // Use styles prop instead of CSS overrides (AntD 5.7+)
@@ -5856,13 +5861,13 @@ const As = ({
5856
5861
  }
5857
5862
  };
5858
5863
  return /* @__PURE__ */ p("div", { style: { width: "100%", height: "100%", display: "flex" }, children: /* @__PURE__ */ p(at, { ...l }) });
5859
- }, { PreviewGroup: Ra } = at;
5860
- function ja(t) {
5864
+ }, { PreviewGroup: ja } = at;
5865
+ function Ba(t) {
5861
5866
  if (!t || typeof t != "string" || /^(data:|blob:|https?:\/\/)/i.test(t)) return t;
5862
5867
  const e = Je().viewRes;
5863
5868
  return e ? e(t) : t;
5864
5869
  }
5865
- const Ds = ({
5870
+ const Ns = ({
5866
5871
  id: t,
5867
5872
  sessionId: e,
5868
5873
  develop: n,
@@ -5888,15 +5893,15 @@ const Ds = ({
5888
5893
  return n ? g ?? a ?? [] : v ? Array.isArray(g) ? g : [] : a ?? [];
5889
5894
  }, [n, v, m, h == null ? void 0 : h.items, a]), y = f(() => b.map((g) => {
5890
5895
  const u = typeof g == "string" ? g : g && typeof g == "object" ? g.url ?? g.src : void 0;
5891
- return ja(u);
5896
+ return Ba(u);
5892
5897
  }).filter((g) => !!g), [b]), l = f(() => {
5893
5898
  const g = { ...c };
5894
5899
  return h && typeof h == "object" && Object.keys(h).forEach((u) => {
5895
5900
  u !== "items" && h[u] !== void 0 && h[u] !== null && (g[u] = h[u]);
5896
5901
  }), g;
5897
5902
  }, [c, h]);
5898
- return /* @__PURE__ */ p(Ra, { ...l, items: y, children: i });
5899
- }, Cs = ({
5903
+ return /* @__PURE__ */ p(ja, { ...l, items: y, children: i });
5904
+ }, Ts = ({
5900
5905
  id: t,
5901
5906
  sessionId: e,
5902
5907
  develop: n,
@@ -5954,7 +5959,7 @@ const Ds = ({
5954
5959
  if (x)
5955
5960
  return { components: { Avatar: x } };
5956
5961
  }, [x]), w = /* @__PURE__ */ p(
5957
- Ir,
5962
+ Yr,
5958
5963
  {
5959
5964
  ...A,
5960
5965
  src: g,
@@ -5963,7 +5968,7 @@ const Ds = ({
5963
5968
  }
5964
5969
  );
5965
5970
  return C ? /* @__PURE__ */ p(Ke, { theme: C, children: w }) : w;
5966
- }, Ba = {
5971
+ }, Ka = {
5967
5972
  0: "default",
5968
5973
  1: "success",
5969
5974
  2: "warning",
@@ -5972,7 +5977,7 @@ const Ds = ({
5972
5977
  false: "default",
5973
5978
  yes: "success",
5974
5979
  no: "default"
5975
- }, Ns = ({
5980
+ }, ks = ({
5976
5981
  id: t,
5977
5982
  sessionId: e,
5978
5983
  develop: n,
@@ -6018,7 +6023,7 @@ const Ds = ({
6018
6023
  }, [c, x, D]), k = f(() => {
6019
6024
  if (!s || D === void 0 || D === null) return;
6020
6025
  const V = String(D).toLowerCase();
6021
- return C && C[V] ? C[V] : Ba[V];
6026
+ return C && C[V] ? C[V] : Ka[V];
6022
6027
  }, [s, D, C]), N = f(() => {
6023
6028
  const V = { ...b };
6024
6029
  return w && typeof w == "object" && Object.keys(w).forEach((B) => {
@@ -6029,7 +6034,7 @@ const Ds = ({
6029
6034
  return B;
6030
6035
  }, [N]), M = (w == null ? void 0 : w.color) ?? v, O = Ht(M) || k;
6031
6036
  return /* @__PURE__ */ p(Qn, { ...T, color: O, children: E || i });
6032
- }, Ts = ({
6037
+ }, _s = ({
6033
6038
  id: t,
6034
6039
  sessionId: e,
6035
6040
  develop: n,
@@ -6117,14 +6122,14 @@ const Ds = ({
6117
6122
  }, [b.showTotal])
6118
6123
  }
6119
6124
  );
6120
- }, ks = ({
6125
+ }, Es = ({
6121
6126
  id: t,
6122
6127
  sessionId: e,
6123
6128
  develop: n,
6124
6129
  items: i,
6125
6130
  children: r,
6126
6131
  ...o
6127
- }) => /* @__PURE__ */ p(Yr, { ...o, items: i, children: r }), zt = (t) => Object.entries(t).map(([e, n]) => `${e.replace(/([A-Z])/g, "-$1").toLowerCase()}: ${n}`).join("; "), Ka = ({ mode: t, arrowStyle: e, arrowIconPrev: n, arrowIconNext: i, children: r }) => {
6132
+ }) => /* @__PURE__ */ p(Jr, { ...o, items: i, children: r }), zt = (t) => Object.entries(t).map(([e, n]) => `${e.replace(/([A-Z])/g, "-$1").toLowerCase()}: ${n}`).join("; "), La = ({ mode: t, arrowStyle: e, arrowIconPrev: n, arrowIconNext: i, children: r }) => {
6128
6133
  const o = Re(null), a = Re(null), [c, s] = xe(0), [d, v] = xe(!1), [h, m] = xe(0), [b, y] = xe(0), l = t === "horizontal";
6129
6134
  Ne(() => {
6130
6135
  const S = () => {
@@ -6145,7 +6150,7 @@ const Ds = ({
6145
6150
  if (u) return;
6146
6151
  const S = l ? ((E = o.current) == null ? void 0 : E.clientWidth) ?? 200 : ((k = o.current) == null ? void 0 : k.clientHeight) ?? 200, D = l ? (((N = a.current) == null ? void 0 : N.scrollWidth) ?? 0) - (((T = o.current) == null ? void 0 : T.clientWidth) ?? 0) : (((M = a.current) == null ? void 0 : M.scrollHeight) ?? 0) - (((j = o.current) == null ? void 0 : j.clientHeight) ?? 0);
6147
6152
  s((O) => Math.min(D, O + S));
6148
- }, [l, u]), C = n || (l ? /* @__PURE__ */ p(ir, {}) : /* @__PURE__ */ p(bi, {})), w = i || (l ? /* @__PURE__ */ p(or, {}) : /* @__PURE__ */ p(ar, {}));
6153
+ }, [l, u]), C = n || (l ? /* @__PURE__ */ p(ir, {}) : /* @__PURE__ */ p(Si, {})), w = i || (l ? /* @__PURE__ */ p(or, {}) : /* @__PURE__ */ p(ar, {}));
6149
6154
  return /* @__PURE__ */ ye(
6150
6155
  "div",
6151
6156
  {
@@ -6224,7 +6229,7 @@ const Ds = ({
6224
6229
  ]
6225
6230
  }
6226
6231
  );
6227
- }, La = ({ mode: t, children: e }) => /* @__PURE__ */ p(
6232
+ }, za = ({ mode: t, children: e }) => /* @__PURE__ */ p(
6228
6233
  "div",
6229
6234
  {
6230
6235
  style: {
@@ -6236,7 +6241,7 @@ const Ds = ({
6236
6241
  },
6237
6242
  children: e
6238
6243
  }
6239
- ), _s = ({
6244
+ ), Os = ({
6240
6245
  id: t,
6241
6246
  sessionId: e,
6242
6247
  develop: n,
@@ -6419,7 +6424,7 @@ const Ds = ({
6419
6424
  if (W) return /* @__PURE__ */ p(W, {});
6420
6425
  }
6421
6426
  return O;
6422
- }, [O]), ge = f(() => T === "pagination" || T === "scroll" ? null : w, [T, w]), ee = mi(), ne = t || ee.replace(/:/g, "-"), Se = f(() => {
6427
+ }, [O]), ge = f(() => T === "pagination" || T === "scroll" ? null : w, [T, w]), ee = yi(), ne = t || ee.replace(/:/g, "-"), Se = f(() => {
6423
6428
  var De;
6424
6429
  if (!u || typeof u == "function") return "";
6425
6430
  const W = (De = u.subMenu) == null ? void 0 : De.root;
@@ -6444,7 +6449,7 @@ const Ds = ({
6444
6449
  return ue.join(`
6445
6450
  `);
6446
6451
  }, [u, ne]), H = /* @__PURE__ */ p(
6447
- Jr,
6452
+ Gr,
6448
6453
  {
6449
6454
  ...B,
6450
6455
  ...ae,
@@ -6465,7 +6470,7 @@ const Ds = ({
6465
6470
  disabledOverflow: T !== "default"
6466
6471
  }
6467
6472
  ), Z = () => T === "pagination" ? /* @__PURE__ */ p(
6468
- Ka,
6473
+ La,
6469
6474
  {
6470
6475
  mode: E || "horizontal",
6471
6476
  arrowStyle: M,
@@ -6473,7 +6478,7 @@ const Ds = ({
6473
6478
  arrowIconNext: Ae,
6474
6479
  children: H
6475
6480
  }
6476
- ) : T === "scroll" ? /* @__PURE__ */ p(La, { mode: E || "horizontal", children: H }) : H, ce = f(() => {
6481
+ ) : T === "scroll" ? /* @__PURE__ */ p(za, { mode: E || "horizontal", children: H }) : H, ce = f(() => {
6477
6482
  const W = {};
6478
6483
  return n && (W.motion = !1), Ce && (W.components = { Menu: Ce }), Object.keys(W).length > 0 ? W : void 0;
6479
6484
  }, [n, Ce]);
@@ -6484,12 +6489,12 @@ const Ds = ({
6484
6489
  ] }) : W;
6485
6490
  return ce ? /* @__PURE__ */ p(Ke, { theme: ce, children: ue }) : ue;
6486
6491
  })();
6487
- }, Es = ({
6492
+ }, $s = ({
6488
6493
  id: t,
6489
6494
  sessionId: e,
6490
6495
  develop: n,
6491
6496
  ...i
6492
- }) => /* @__PURE__ */ p(Gr, { ...i }), Os = ({
6497
+ }) => /* @__PURE__ */ p(Qr, { ...i }), Ms = ({
6493
6498
  id: t,
6494
6499
  sessionId: e,
6495
6500
  develop: n,
@@ -6547,7 +6552,7 @@ const Ds = ({
6547
6552
  )
6548
6553
  }
6549
6554
  );
6550
- }, $s = ({
6555
+ }, Rs = ({
6551
6556
  id: t,
6552
6557
  sessionId: e,
6553
6558
  develop: n,
@@ -6592,7 +6597,7 @@ const Ds = ({
6592
6597
  )
6593
6598
  }
6594
6599
  );
6595
- }, za = (t) => {
6600
+ }, Fa = (t) => {
6596
6601
  if (!t) return [];
6597
6602
  if (typeof t == "string")
6598
6603
  try {
@@ -6602,7 +6607,7 @@ const Ds = ({
6602
6607
  return [];
6603
6608
  }
6604
6609
  return t;
6605
- }, Fa = (t) => {
6610
+ }, Va = (t) => {
6606
6611
  if (!(t == null || t === "")) {
6607
6612
  if (typeof t == "number") return t;
6608
6613
  if (typeof t == "string") {
@@ -6616,7 +6621,7 @@ const Ds = ({
6616
6621
  }
6617
6622
  return t;
6618
6623
  }
6619
- }, Va = (t) => {
6624
+ }, qa = (t) => {
6620
6625
  if (!(t == null || t === "")) {
6621
6626
  if (typeof t == "number") return t;
6622
6627
  if (typeof t == "string") {
@@ -6631,7 +6636,7 @@ const Ds = ({
6631
6636
  }
6632
6637
  return Array.isArray(t), t;
6633
6638
  }
6634
- }, Ms = ({
6639
+ }, js = ({
6635
6640
  id: t,
6636
6641
  sessionId: e,
6637
6642
  develop: n,
@@ -6654,7 +6659,7 @@ const Ds = ({
6654
6659
  var R;
6655
6660
  return w ? ((R = K.propsStore[`${g}_props`]) == null ? void 0 : R[w]) ?? null : null;
6656
6661
  }
6657
- ), D = f(() => C && Array.isArray(C) ? C : za(o), [C, o]), E = (S == null ? void 0 : S.columns) !== void 0 && (S == null ? void 0 : S.columns) !== null ? S.columns : a, k = f(() => Fa(E), [E]), N = f(() => Va(c), [c]), T = f(() => {
6662
+ ), D = f(() => C && Array.isArray(C) ? C : Fa(o), [C, o]), E = (S == null ? void 0 : S.columns) !== void 0 && (S == null ? void 0 : S.columns) !== null ? S.columns : a, k = f(() => Va(E), [E]), N = f(() => qa(c), [c]), T = f(() => {
6658
6663
  if (v) return v;
6659
6664
  if (d && g)
6660
6665
  return (K) => {
@@ -6718,7 +6723,7 @@ const Ds = ({
6718
6723
  ...B
6719
6724
  } = m;
6720
6725
  return /* @__PURE__ */ p(
6721
- Qr,
6726
+ Zr,
6722
6727
  {
6723
6728
  ...B,
6724
6729
  items: M,
@@ -6729,7 +6734,7 @@ const Ds = ({
6729
6734
  onLayoutChange: T
6730
6735
  }
6731
6736
  );
6732
- }, Rs = ({
6737
+ }, Bs = ({
6733
6738
  id: t,
6734
6739
  sessionId: e,
6735
6740
  develop: n,
@@ -6765,7 +6770,7 @@ const Ds = ({
6765
6770
  onClose: C
6766
6771
  }
6767
6772
  );
6768
- }, js = ({
6773
+ }, Ks = ({
6769
6774
  id: t,
6770
6775
  sessionId: e,
6771
6776
  develop: n,
@@ -6808,7 +6813,7 @@ const Ds = ({
6808
6813
  children: v
6809
6814
  }
6810
6815
  );
6811
- }, Bs = ({
6816
+ }, Ls = ({
6812
6817
  id: t,
6813
6818
  sessionId: e,
6814
6819
  develop: n,
@@ -6834,7 +6839,7 @@ const Ds = ({
6834
6839
  });
6835
6840
  }, [a, b, r, m, o, e, v]);
6836
6841
  return /* @__PURE__ */ p(
6837
- Zr,
6842
+ Xr,
6838
6843
  {
6839
6844
  ...d,
6840
6845
  open: l,
@@ -6842,7 +6847,7 @@ const Ds = ({
6842
6847
  children: s
6843
6848
  }
6844
6849
  );
6845
- }, Ks = ({
6850
+ }, zs = ({
6846
6851
  id: t,
6847
6852
  sessionId: e,
6848
6853
  develop: n,
@@ -6862,7 +6867,7 @@ const Ds = ({
6862
6867
  };
6863
6868
  return Fe(s, a ?? void 0);
6864
6869
  }, [o, r, a]);
6865
- return /* @__PURE__ */ p(Xr, { ...c, children: i });
6870
+ return /* @__PURE__ */ p(ei, { ...c, children: i });
6866
6871
  }, fn = (t, e) => {
6867
6872
  if (t == null) return e;
6868
6873
  if (typeof t == "string")
@@ -6874,13 +6879,13 @@ const Ds = ({
6874
6879
  return e;
6875
6880
  }
6876
6881
  return t;
6877
- }, qa = (t) => t.replace(/-([a-z])/g, (e, n) => n.toUpperCase()), Pa = (t) => !t || typeof t != "object" || Array.isArray(t) ? t ?? {} : Object.fromEntries(
6878
- Object.entries(t).map(([e, n]) => [qa(e), n])
6879
- ), Wa = (t) => fn(t, []).map((n) => ({
6882
+ }, Pa = (t) => t.replace(/-([a-z])/g, (e, n) => n.toUpperCase()), Wa = (t) => !t || typeof t != "object" || Array.isArray(t) ? t ?? {} : Object.fromEntries(
6883
+ Object.entries(t).map(([e, n]) => [Pa(e), n])
6884
+ ), Ha = (t) => fn(t, []).map((n) => ({
6880
6885
  key: n.key,
6881
6886
  tab: n.tab,
6882
6887
  disabled: n.disabled
6883
- })), Ls = ({
6888
+ })), Fs = ({
6884
6889
  id: t,
6885
6890
  sessionId: e,
6886
6891
  develop: n,
@@ -6920,11 +6925,11 @@ const Ds = ({
6920
6925
  return Object.fromEntries(
6921
6926
  Object.entries(Y).map(([de, fe]) => [
6922
6927
  de,
6923
- Pa(fe)
6928
+ Wa(fe)
6924
6929
  ])
6925
6930
  );
6926
6931
  }, [l]), j = f(() => {
6927
- const Y = Wa(v);
6932
+ const Y = Ha(v);
6928
6933
  return Y.length > 0 ? Y : void 0;
6929
6934
  }, [v]), V = f(() => {
6930
6935
  if (N && r) {
@@ -6971,7 +6976,7 @@ const Ds = ({
6971
6976
  }
6972
6977
  );
6973
6978
  return U && Object.keys(U).length > 0 ? /* @__PURE__ */ p(Ke, { theme: { components: { Card: U } }, children: G }) : G;
6974
- }, zs = ({
6979
+ }, Vs = ({
6975
6980
  id: t,
6976
6981
  sessionId: e,
6977
6982
  develop: n,
@@ -7002,13 +7007,13 @@ const Ds = ({
7002
7007
  return [];
7003
7008
  }
7004
7009
  return t;
7005
- }, vr = (t) => t.map((e) => e.divider ? { type: "divider", key: e.key } : {
7010
+ }, br = (t) => t.map((e) => e.divider ? { type: "divider", key: e.key } : {
7006
7011
  key: e.key,
7007
7012
  label: e.label,
7008
7013
  disabled: e.disabled,
7009
7014
  danger: e.danger,
7010
- children: e.children ? vr(e.children) : void 0
7011
- }), Fs = ({
7015
+ children: e.children ? br(e.children) : void 0
7016
+ }), qs = ({
7012
7017
  id: t,
7013
7018
  sessionId: e,
7014
7019
  develop: n,
@@ -7069,7 +7074,7 @@ const Ds = ({
7069
7074
  ]
7070
7075
  ), k = f(
7071
7076
  () => ({
7072
- items: vr(D),
7077
+ items: br(D),
7073
7078
  onClick: (T) => {
7074
7079
  if (c && e) {
7075
7080
  const { actionName: M, arg: j } = dt(c, T.key, {
@@ -7143,26 +7148,26 @@ const Ds = ({
7143
7148
  ]
7144
7149
  }
7145
7150
  ), [m, n, o, b]);
7146
- return /* @__PURE__ */ p(ei, { ...l, menu: k, onOpenChange: E, children: N });
7147
- }, Vs = ({
7151
+ return /* @__PURE__ */ p(ti, { ...l, menu: k, onOpenChange: E, children: N });
7152
+ }, Ps = ({
7148
7153
  id: t,
7149
7154
  sessionId: e,
7150
7155
  develop: n,
7151
7156
  children: i,
7152
7157
  ...r
7153
- }) => /* @__PURE__ */ p(ti, { ...r, children: i }), qs = ({
7158
+ }) => /* @__PURE__ */ p(ni, { ...r, children: i }), Ws = ({
7154
7159
  id: t,
7155
7160
  sessionId: e,
7156
7161
  develop: n,
7157
7162
  children: i,
7158
7163
  ...r
7159
- }) => /* @__PURE__ */ p(ni, { ...r, children: i }), Ps = ({
7164
+ }) => /* @__PURE__ */ p(ri, { ...r, children: i }), Hs = ({
7160
7165
  id: t,
7161
7166
  sessionId: e,
7162
7167
  develop: n,
7163
7168
  children: i,
7164
7169
  ...r
7165
- }) => /* @__PURE__ */ p(Gn, { ...r, children: i }), Ws = ({
7170
+ }) => /* @__PURE__ */ p(Gn, { ...r, children: i }), Us = ({
7166
7171
  id: t,
7167
7172
  sessionId: e,
7168
7173
  develop: n,
@@ -7182,7 +7187,7 @@ const Ds = ({
7182
7187
  l !== "value" && v[l] !== void 0 && v[l] !== null && (y[l] = v[l]);
7183
7188
  }), y;
7184
7189
  }, [a, v]);
7185
- return /* @__PURE__ */ p(ri, { ...b, value: m || "" });
7190
+ return /* @__PURE__ */ p(ii, { ...b, value: m || "" });
7186
7191
  }, Dt = (t) => {
7187
7192
  if (!t) return;
7188
7193
  const e = Ge[t];
@@ -7199,7 +7204,7 @@ const Ds = ({
7199
7204
  return e;
7200
7205
  }
7201
7206
  return t;
7202
- }, Hs = ({
7207
+ }, Is = ({
7203
7208
  id: t,
7204
7209
  sessionId: e,
7205
7210
  develop: n,
@@ -7311,7 +7316,7 @@ const Ds = ({
7311
7316
  r
7312
7317
  ) });
7313
7318
  return x && Object.keys(x).length > 0 ? /* @__PURE__ */ p(Ke, { theme: { components: { Splitter: x } }, children: T }) : T;
7314
- }, Us = ({
7319
+ }, Ys = ({
7315
7320
  children: t,
7316
7321
  className: e,
7317
7322
  style: n,
@@ -7332,7 +7337,7 @@ const Ds = ({
7332
7337
  ...v,
7333
7338
  children: t
7334
7339
  }
7335
- ), Is = ({
7340
+ ), Js = ({
7336
7341
  id: t,
7337
7342
  sessionId: e,
7338
7343
  develop: n,
@@ -7399,7 +7404,7 @@ const Ds = ({
7399
7404
  }
7400
7405
  ) })
7401
7406
  ] });
7402
- }, Ha = "@keyframes and-icon-spin{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}", Ua = ".and-icon-svg-root svg,.and-icon-svg-root svg path{fill:currentColor}.and-icon-svg-root svg{color:inherit}", Ys = ({
7407
+ }, Ua = "@keyframes and-icon-spin{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}", Ia = ".and-icon-svg-root svg,.and-icon-svg-root svg path{fill:currentColor}.and-icon-svg-root svg{color:inherit}", Gs = ({
7403
7408
  id: t,
7404
7409
  sessionId: e,
7405
7410
  develop: n,
@@ -7432,8 +7437,8 @@ const Ds = ({
7432
7437
  ...y
7433
7438
  };
7434
7439
  return /* @__PURE__ */ ye(St, { children: [
7435
- /* @__PURE__ */ p("style", { children: Ua }),
7436
- c && /* @__PURE__ */ p("style", { children: Ha }),
7440
+ /* @__PURE__ */ p("style", { children: Ia }),
7441
+ c && /* @__PURE__ */ p("style", { children: Ua }),
7437
7442
  /* @__PURE__ */ p(
7438
7443
  "span",
7439
7444
  {
@@ -7464,7 +7469,7 @@ const Ds = ({
7464
7469
  onClick: m
7465
7470
  }
7466
7471
  ) : (console.warn(`Icon "${i}" not found in @ant-design/icons`), null);
7467
- }, Js = ({
7472
+ }, Qs = ({
7468
7473
  id: t,
7469
7474
  sessionId: e,
7470
7475
  develop: n,
@@ -7537,12 +7542,12 @@ const Ds = ({
7537
7542
  ...r
7538
7543
  },
7539
7544
  children: [
7540
- e || /* @__PURE__ */ p(xi, { style: { fontSize: 28, marginBottom: 8, color: "#bfbfbf" } }),
7545
+ e || /* @__PURE__ */ p(wi, { style: { fontSize: 28, marginBottom: 8, color: "#bfbfbf" } }),
7541
7546
  n && /* @__PURE__ */ p("div", { style: { fontWeight: 500, fontSize: 13, marginBottom: 4 }, children: n }),
7542
7547
  i && /* @__PURE__ */ p("div", { style: { fontSize: 12, opacity: 0.7 }, children: i })
7543
7548
  ]
7544
7549
  }
7545
- ), Gs = ({
7550
+ ), Zs = ({
7546
7551
  componentName: t,
7547
7552
  componentProps: e = {},
7548
7553
  storePropsKey: n,
@@ -7658,7 +7663,7 @@ const Ds = ({
7658
7663
  boxSizing: "border-box"
7659
7664
  },
7660
7665
  children: [
7661
- /* @__PURE__ */ p(Si, { style: { fontSize: 20, flexShrink: 0, color: "#bfbfbf", ...O ? {} : { marginBottom: 4 } } }),
7666
+ /* @__PURE__ */ p(xi, { style: { fontSize: 20, flexShrink: 0, color: "#bfbfbf", ...O ? {} : { marginBottom: 4 } } }),
7662
7667
  /* @__PURE__ */ p("div", { style: { fontWeight: 500, fontSize: 12 }, children: r || "动态容器" }),
7663
7668
  /* @__PURE__ */ p("div", { style: { fontSize: 11, opacity: 0.7 }, children: x ? `${x}` : "未配置" }),
7664
7669
  n && /* @__PURE__ */ p("div", { style: { fontSize: 10, opacity: 0.5, marginTop: O ? 0 : 2 }, children: n })
@@ -7678,7 +7683,7 @@ const Ds = ({
7678
7683
  }
7679
7684
  );
7680
7685
  const k = x ? E(x) : null;
7681
- return k ? /* @__PURE__ */ p(yi, { fallback: /* @__PURE__ */ p("div", { style: { display: "flex", justifyContent: "center", alignItems: "center", width: "100%", height: "100%" }, children: /* @__PURE__ */ p(tr, {}) }), children: /* @__PURE__ */ p("div", { id: c, style: { width: "100%", height: "100%", flex: "1 1 auto", ...a }, children: w ? /* @__PURE__ */ p(
7686
+ return k ? /* @__PURE__ */ p(hi, { fallback: /* @__PURE__ */ p("div", { style: { display: "flex", justifyContent: "center", alignItems: "center", width: "100%", height: "100%" }, children: /* @__PURE__ */ p(tr, {}) }), children: /* @__PURE__ */ p("div", { id: c, style: { width: "100%", height: "100%", flex: "1 1 auto", ...a }, children: w ? /* @__PURE__ */ p(
7682
7687
  Pe.Provider,
7683
7688
  {
7684
7689
  value: w,
@@ -7693,7 +7698,7 @@ const Ds = ({
7693
7698
  style: a
7694
7699
  }
7695
7700
  );
7696
- }, Qs = ({
7701
+ }, Xs = ({
7697
7702
  content: t = "Watermark",
7698
7703
  width: e,
7699
7704
  height: n,
@@ -7717,7 +7722,7 @@ const Ds = ({
7717
7722
  fontStyle: (d == null ? void 0 : d.fontStyle) ?? "normal",
7718
7723
  textAlign: (d == null ? void 0 : d.textAlign) ?? "center"
7719
7724
  }, l = /* @__PURE__ */ p(
7720
- ii,
7725
+ oi,
7721
7726
  {
7722
7727
  content: t,
7723
7728
  width: e,
@@ -7777,13 +7782,13 @@ if (typeof URL < "u") {
7777
7782
  }
7778
7783
  });
7779
7784
  }
7780
- let br = !1, Pn = !1;
7781
- function Zs(t) {
7782
- typeof window > "u" || (cr.GlobalWorkerOptions.workerSrc = t, br = !0);
7785
+ let Sr = !1, Pn = !1;
7786
+ function el(t) {
7787
+ typeof window > "u" || (cr.GlobalWorkerOptions.workerSrc = t, Sr = !0);
7783
7788
  }
7784
- function Ia(t) {
7789
+ function Ya(t) {
7785
7790
  var i, r;
7786
- if (typeof window > "u" || br) return;
7791
+ if (typeof window > "u" || Sr) return;
7787
7792
  const e = (i = Je().pdfWorkerFallbackUrl) == null ? void 0 : i.trim(), n = (r = t ?? e) == null ? void 0 : r.trim();
7788
7793
  if (n) {
7789
7794
  cr.GlobalWorkerOptions.workerSrc = n;
@@ -7793,7 +7798,7 @@ function Ia(t) {
7793
7798
  "[@nuwatop/code-canvas-core] PDF worker 未配置。请在入口调用 setPdfjsWorkerSrc(localUrl),或通过 setCoreConfig({ pdfWorkerFallbackUrl }) 指定同源脚本地址。"
7794
7799
  ));
7795
7800
  }
7796
- const Ya = 0.5, Ja = 3, Wn = 0.1, Xs = ({
7801
+ const Ja = 0.5, Ga = 3, Wn = 0.1, tl = ({
7797
7802
  id: t,
7798
7803
  sessionId: e,
7799
7804
  develop: n,
@@ -7810,7 +7815,7 @@ const Ya = 0.5, Ja = 3, Wn = 0.1, Xs = ({
7810
7815
  style: b
7811
7816
  }) => {
7812
7817
  Ne(() => {
7813
- Ia();
7818
+ Ya();
7814
7819
  }, []);
7815
7820
  const y = _((I) => I.setDataSet), l = f(
7816
7821
  () => le(e, i),
@@ -7948,7 +7953,7 @@ const Ya = 0.5, Ja = 3, Wn = 0.1, Xs = ({
7948
7953
  const ee = z((I) => {
7949
7954
  R((W) => {
7950
7955
  const ue = Number((W + I).toFixed(2));
7951
- return Math.max(Ya, Math.min(Ja, ue));
7956
+ return Math.max(Ja, Math.min(Ga, ue));
7952
7957
  });
7953
7958
  }, []), ne = z(() => {
7954
7959
  if (!A) return;
@@ -8091,7 +8096,7 @@ const Ya = 0.5, Ja = 3, Wn = 0.1, Xs = ({
8091
8096
  }
8092
8097
  ) : null,
8093
8098
  /* @__PURE__ */ p(
8094
- Di,
8099
+ Ci,
8095
8100
  {
8096
8101
  file: A,
8097
8102
  onLoadSuccess: Ae,
@@ -8111,7 +8116,7 @@ const Ya = 0.5, Ja = 3, Wn = 0.1, Xs = ({
8111
8116
  padding: "8px 0"
8112
8117
  },
8113
8118
  children: /* @__PURE__ */ p(
8114
- Ci,
8119
+ Ni,
8115
8120
  {
8116
8121
  pageNumber: I,
8117
8122
  width: V === "width" ? te : void 0,
@@ -8138,10 +8143,10 @@ const Ya = 0.5, Ja = 3, Wn = 0.1, Xs = ({
8138
8143
  padding: 24
8139
8144
  },
8140
8145
  children: /* @__PURE__ */ p(
8141
- oi,
8146
+ ai,
8142
8147
  {
8143
8148
  image: /* @__PURE__ */ p(
8144
- wi,
8149
+ Ai,
8145
8150
  {
8146
8151
  style: {
8147
8152
  fontSize: 72,
@@ -8172,7 +8177,7 @@ const Ya = 0.5, Ja = 3, Wn = 0.1, Xs = ({
8172
8177
  }
8173
8178
  );
8174
8179
  };
8175
- function el(t, e, n, i) {
8180
+ function nl(t, e, n, i) {
8176
8181
  const { getProps: r, setProps: o } = _.getState(), a = r(t, e), c = a && typeof a == "object" && !Array.isArray(a) ? a : {};
8177
8182
  o(t, e, {
8178
8183
  ...c,
@@ -8193,7 +8198,7 @@ function $e(t) {
8193
8198
  return t;
8194
8199
  }
8195
8200
  }
8196
- function Ga(t, e) {
8201
+ function Qa(t, e) {
8197
8202
  return t == null || t === "" ? e : t === !0 || t === "true" ? !0 : t === !1 || t === "false" ? !1 : e;
8198
8203
  }
8199
8204
  function lt(t, e) {
@@ -8271,7 +8276,7 @@ function lt(t, e) {
8271
8276
  data: F,
8272
8277
  // 优先使用 common 中的配置,没配置则使用默认值
8273
8278
  height: G.height ?? i,
8274
- autoFit: Ga(G.autoFit, !0),
8279
+ autoFit: Qa(G.autoFit, !0),
8275
8280
  // 合并其他通用配置 (margin, padding, insert, etc.)
8276
8281
  ...G,
8277
8282
  // 设计器模式禁用动画
@@ -8305,18 +8310,18 @@ function lt(t, e) {
8305
8310
  };
8306
8311
  return o.displayName = `withBaseChart(${n})`, o;
8307
8312
  }
8308
- const Qa = [
8313
+ const Za = [
8309
8314
  { year: "2020", value: 3 },
8310
8315
  { year: "2021", value: 4 },
8311
8316
  { year: "2022", value: 3.5 },
8312
8317
  { year: "2023", value: 5 },
8313
8318
  { year: "2024", value: 4.9 },
8314
8319
  { year: "2025", value: 6 }
8315
- ], Za = lt(Ni, {
8320
+ ], Xa = lt(Ti, {
8316
8321
  chartType: "AndVLine",
8317
8322
  defaultHeight: 300,
8318
- defaultData: Qa
8319
- }), tl = (t) => {
8323
+ defaultData: Za
8324
+ }), rl = (t) => {
8320
8325
  const {
8321
8326
  xField: e = "year",
8322
8327
  yField: n = "value",
@@ -8327,7 +8332,7 @@ const Qa = [
8327
8332
  ...c
8328
8333
  } = t;
8329
8334
  return /* @__PURE__ */ p(
8330
- Za,
8335
+ Xa,
8331
8336
  {
8332
8337
  ...c,
8333
8338
  xField: e,
@@ -8338,18 +8343,18 @@ const Qa = [
8338
8343
  lineStyle: a
8339
8344
  }
8340
8345
  );
8341
- }, Xa = [
8346
+ }, ec = [
8342
8347
  { category: "一月", value: 38 },
8343
8348
  { category: "二月", value: 52 },
8344
8349
  { category: "三月", value: 61 },
8345
8350
  { category: "四月", value: 45 },
8346
8351
  { category: "五月", value: 48 },
8347
8352
  { category: "六月", value: 58 }
8348
- ], ec = lt(Ti, {
8353
+ ], tc = lt(ki, {
8349
8354
  chartType: "AndVColumn",
8350
8355
  defaultHeight: 300,
8351
- defaultData: Xa
8352
- }), nl = (t) => {
8356
+ defaultData: ec
8357
+ }), il = (t) => {
8353
8358
  const {
8354
8359
  xField: e = "category",
8355
8360
  yField: n = "value",
@@ -8363,19 +8368,19 @@ const Qa = [
8363
8368
  xField: e,
8364
8369
  yField: n
8365
8370
  };
8366
- return i && (s.seriesField = i), r && (s.isGroup = r), o && (s.isStack = o), a && (s.columnWidth = a), /* @__PURE__ */ p(ec, { ...s });
8367
- }, tc = [
8371
+ return i && (s.seriesField = i), r && (s.isGroup = r), o && (s.isStack = o), a && (s.columnWidth = a), /* @__PURE__ */ p(tc, { ...s });
8372
+ }, nc = [
8368
8373
  { type: "分类一", value: 27 },
8369
8374
  { type: "分类二", value: 25 },
8370
8375
  { type: "分类三", value: 18 },
8371
8376
  { type: "分类四", value: 15 },
8372
8377
  { type: "分类五", value: 10 },
8373
8378
  { type: "其他", value: 5 }
8374
- ], nc = lt(ki, {
8379
+ ], rc = lt(_i, {
8375
8380
  chartType: "AndVPie",
8376
8381
  defaultHeight: 300,
8377
- defaultData: tc
8378
- }), rl = (t) => {
8382
+ defaultData: nc
8383
+ }), ol = (t) => {
8379
8384
  const {
8380
8385
  angleField: e = "value",
8381
8386
  colorField: n = "type",
@@ -8388,8 +8393,8 @@ const Qa = [
8388
8393
  colorField: n,
8389
8394
  radius: i
8390
8395
  };
8391
- return r !== void 0 && r > 0 && (a.innerRadius = r), /* @__PURE__ */ p(nc, { ...a });
8392
- }, rc = lt(_i, {
8396
+ return r !== void 0 && r > 0 && (a.innerRadius = r), /* @__PURE__ */ p(rc, { ...a });
8397
+ }, ic = lt(Ei, {
8393
8398
  chartType: "AndVArea",
8394
8399
  defaultHeight: 300,
8395
8400
  defaultData: [
@@ -8403,7 +8408,7 @@ const Qa = [
8403
8408
  { year: "1998", value: 9 },
8404
8409
  { year: "1999", value: 13 }
8405
8410
  ]
8406
- }), il = (t) => {
8411
+ }), al = (t) => {
8407
8412
  const {
8408
8413
  // 字段
8409
8414
  xField: e,
@@ -8428,8 +8433,8 @@ const Qa = [
8428
8433
  const l = $e(c);
8429
8434
  l !== void 0 && (y.line = l);
8430
8435
  const g = $e(s);
8431
- return g !== void 0 && (y.point = g), /* @__PURE__ */ p(rc, { ...y });
8432
- }, ic = lt(Ei, {
8436
+ return g !== void 0 && (y.point = g), /* @__PURE__ */ p(ic, { ...y });
8437
+ }, oc = lt(Oi, {
8433
8438
  chartType: "AndVDualAxes",
8434
8439
  defaultHeight: 300,
8435
8440
  defaultData: [
@@ -8443,7 +8448,7 @@ const Qa = [
8443
8448
  { year: "1998", value: 9, count: 1 },
8444
8449
  { year: "1999", value: 13, count: 20 }
8445
8450
  ]
8446
- }), ol = (t) => {
8451
+ }), cl = (t) => {
8447
8452
  const {
8448
8453
  // 字段
8449
8454
  xField: e,
@@ -8460,33 +8465,33 @@ const Qa = [
8460
8465
  const s = $e(n);
8461
8466
  s ? c.yField = s : n && (c.yField = n), i && (c.seriesField = i), r && (c.colorField = r);
8462
8467
  const d = $e(o);
8463
- return d !== void 0 && (c.children = d), /* @__PURE__ */ p(ic, { ...c });
8464
- }, oc = lt(Oi, {
8468
+ return d !== void 0 && (c.children = d), /* @__PURE__ */ p(oc, { ...c });
8469
+ }, ac = lt($i, {
8465
8470
  chartType: "AndVGauge",
8466
8471
  defaultHeight: 300,
8467
8472
  defaultData: { percent: 0.7 }
8468
8473
  // Gauge 默认数据
8469
- }), al = (t) => {
8474
+ }), sl = (t) => {
8470
8475
  const {
8471
8476
  ...e
8472
8477
  } = t, n = {
8473
8478
  ...e
8474
8479
  };
8475
- return console.log("[AndVGauge] chartProps:", JSON.stringify(n, null, 2)), /* @__PURE__ */ p(oc, { ...n });
8476
- }, ac = lt($i, {
8480
+ return console.log("[AndVGauge] chartProps:", JSON.stringify(n, null, 2)), /* @__PURE__ */ p(ac, { ...n });
8481
+ }, cc = lt(Mi, {
8477
8482
  chartType: "AndVLiquid",
8478
8483
  defaultHeight: 300,
8479
8484
  defaultData: 0.25
8480
8485
  // Liquid 默认 percent (注意:Liquid 数据直接作为 percent 传递)
8481
- }), cl = (t) => {
8486
+ }), ll = (t) => {
8482
8487
  const {
8483
8488
  percent: e,
8484
8489
  ...n
8485
8490
  } = t, i = {
8486
8491
  ...n
8487
8492
  };
8488
- return e !== void 0 && (i.percent = e), console.log("[AndVLiquid] chartProps:", JSON.stringify(i, null, 2)), /* @__PURE__ */ p(ac, { ...i });
8489
- }, cc = lt(Mi, {
8493
+ return e !== void 0 && (i.percent = e), console.log("[AndVLiquid] chartProps:", JSON.stringify(i, null, 2)), /* @__PURE__ */ p(cc, { ...i });
8494
+ }, sc = lt(Ri, {
8490
8495
  chartType: "AndVBar",
8491
8496
  defaultHeight: 300,
8492
8497
  defaultData: [
@@ -8496,7 +8501,7 @@ const Qa = [
8496
8501
  { year: "1957 年", value: 145 },
8497
8502
  { year: "1958 年", value: 48 }
8498
8503
  ]
8499
- }), sl = (t) => {
8504
+ }), ul = (t) => {
8500
8505
  const {
8501
8506
  // 特有字段
8502
8507
  xField: e,
@@ -8518,137 +8523,139 @@ const Qa = [
8518
8523
  const m = $e(s);
8519
8524
  m !== void 0 && (h.conversionTag = m);
8520
8525
  const b = $e(d);
8521
- return b !== void 0 && (h.markBackground = b), console.log("[AndVBar] chartProps:", JSON.stringify(h, null, 2)), /* @__PURE__ */ p(cc, { ...h });
8526
+ return b !== void 0 && (h.markBackground = b), console.log("[AndVBar] chartProps:", JSON.stringify(h, null, 2)), /* @__PURE__ */ p(sc, { ...h });
8522
8527
  };
8523
8528
  export {
8524
- Fc as AVAILABLE_TOKENS,
8525
- Rs as AndAlert,
8526
- cs as AndAutoComplete,
8527
- Cs as AndAvatar,
8528
- Os as AndBadge,
8529
- $s as AndBadgeRibbon,
8530
- ks as AndBreadCrumb,
8531
- Pc as AndButton,
8532
- Es as AndCalendar,
8533
- Ls as AndCard,
8534
- ws as AndCarousel,
8535
- is as AndCascade,
8536
- ts as AndCheckbox,
8537
- qs as AndColumn,
8538
- Ps as AndContainer,
8539
- Qc as AndDatePicker,
8540
- zs as AndDivider,
8541
- Bs as AndDrawer,
8542
- Fs as AndDropdown,
8543
- Fs as AndDropdownMenu,
8544
- Gs as AndDynamicContainer,
8545
- ls as AndFormItem,
8546
- Ys as AndIcon,
8547
- As as AndImage,
8548
- Ds as AndImageGroup,
8549
- Wc as AndInput,
8550
- Uc as AndInputArea,
8551
- Hc as AndInputNumber,
8552
- Ic as AndInputPassword,
8553
- Yc as AndInputSearch,
8554
- Is as AndIterator,
8555
- Ms as AndMasonry,
8556
- _s as AndMenu,
8557
- js as AndModal,
8558
- Ts as AndPagination,
8559
- hs as AndParagraph,
8560
- Xs as AndPdfViewer,
8561
- Js as AndProductCategory,
8562
- Ws as AndQRCode,
8563
- es as AndRadio,
8564
- Xc as AndRangePicker,
8565
- ns as AndRate,
8566
- Ks as AndResult,
8567
- Vs as AndRow,
8568
- ds as AndSegmented,
8569
- Jc as AndSelect,
8570
- ss as AndSimpleForm,
8571
- rs as AndSlider,
8572
- Hs as AndSplitter,
8573
- Us as AndSplitterPanel,
8574
- Ss as AndStatistics,
8575
- xs as AndStatisticsCountdown,
8576
- bs as AndSteps,
8577
- Gc as AndSwitch,
8578
- fs as AndTable,
8579
- gs as AndTabs,
8580
- Ns as AndTag,
8581
- ms as AndText,
8582
- Zc as AndTimePicker,
8583
- vs as AndTimeline,
8584
- ys as AndTitle,
8585
- us as AndTransfer,
8586
- ps as AndTree,
8587
- os as AndTreeSelect,
8588
- as as AndUpload,
8589
- il as AndVArea,
8590
- sl as AndVBar,
8591
- nl as AndVColumn,
8592
- ol as AndVDualAxes,
8593
- al as AndVGauge,
8594
- tl as AndVLine,
8595
- cl as AndVLiquid,
8596
- rl as AndVPie,
8597
- Qs as AndWatermark,
8598
- Vc as COMMON_TOKENS,
8529
+ qc as AVAILABLE_TOKENS,
8530
+ Bs as AndAlert,
8531
+ ls as AndAutoComplete,
8532
+ Ts as AndAvatar,
8533
+ Ms as AndBadge,
8534
+ Rs as AndBadgeRibbon,
8535
+ Es as AndBreadCrumb,
8536
+ Hc as AndButton,
8537
+ $s as AndCalendar,
8538
+ Fs as AndCard,
8539
+ Ds as AndCarousel,
8540
+ as as AndCascade,
8541
+ rs as AndCheckbox,
8542
+ Ws as AndColumn,
8543
+ Hs as AndContainer,
8544
+ Xc as AndDatePicker,
8545
+ Vs as AndDivider,
8546
+ Ls as AndDrawer,
8547
+ qs as AndDropdown,
8548
+ qs as AndDropdownMenu,
8549
+ Zs as AndDynamicContainer,
8550
+ ds as AndFormItem,
8551
+ Gs as AndIcon,
8552
+ Cs as AndImage,
8553
+ Ns as AndImageGroup,
8554
+ Uc as AndInput,
8555
+ Yc as AndInputArea,
8556
+ Ic as AndInputNumber,
8557
+ Jc as AndInputPassword,
8558
+ Gc as AndInputSearch,
8559
+ Js as AndIterator,
8560
+ js as AndMasonry,
8561
+ Os as AndMenu,
8562
+ Ks as AndModal,
8563
+ _s as AndPagination,
8564
+ ps as AndParagraph,
8565
+ tl as AndPdfViewer,
8566
+ Qs as AndProductCategory,
8567
+ Us as AndQRCode,
8568
+ ns as AndRadio,
8569
+ ts as AndRangePicker,
8570
+ is as AndRate,
8571
+ zs as AndResult,
8572
+ Ps as AndRow,
8573
+ ms as AndSegmented,
8574
+ Qc as AndSelect,
8575
+ us as AndSimpleForm,
8576
+ os as AndSlider,
8577
+ Is as AndSplitter,
8578
+ Ys as AndSplitterPanel,
8579
+ ws as AndStatistics,
8580
+ As as AndStatisticsCountdown,
8581
+ xs as AndSteps,
8582
+ Zc as AndSwitch,
8583
+ ys as AndTable,
8584
+ vs as AndTabs,
8585
+ ks as AndTag,
8586
+ hs as AndText,
8587
+ es as AndTimePicker,
8588
+ Ss as AndTimeline,
8589
+ gs as AndTitle,
8590
+ fs as AndTransfer,
8591
+ bs as AndTree,
8592
+ cs as AndTreeSelect,
8593
+ ss as AndUpload,
8594
+ al as AndVArea,
8595
+ ul as AndVBar,
8596
+ il as AndVColumn,
8597
+ cl as AndVDualAxes,
8598
+ sl as AndVGauge,
8599
+ rl as AndVLine,
8600
+ ll as AndVLiquid,
8601
+ ol as AndVPie,
8602
+ Xs as AndWatermark,
8603
+ Pc as COMMON_TOKENS,
8599
8604
  Pe as DataSetInheritContext,
8600
- kc as cleanupAllMounts,
8601
- Nc as clearCssCache,
8602
- vo as collectContextChainRootToLeaf,
8605
+ _c as cleanupAllMounts,
8606
+ Tc as clearCssCache,
8607
+ mr as collectContextChainRootToLeaf,
8603
8608
  oe as createCommand,
8604
- jc as createWatchCommands,
8609
+ Bc as createWatchCommands,
8605
8610
  Ot as deriveScopedComponentId,
8606
- xo as dictValueEquals,
8607
- el as dispatchPdfViewerCommand,
8608
- Ia as ensurePdfjsWorker,
8611
+ wo as dictValueEquals,
8612
+ nl as dispatchPdfViewerCommand,
8613
+ Ya as ensurePdfjsWorker,
8609
8614
  nt as findDictOptionByValue,
8610
- Ho as formatByType,
8615
+ Lc as flattenScopeChain,
8616
+ Uo as formatByType,
8611
8617
  un as getAccessToken,
8612
8618
  Je as getCoreConfig,
8613
8619
  le as getDataSetStoreKey,
8614
8620
  yn as getDictOptions,
8615
8621
  kt as getNestedValue,
8616
8622
  Nt as getValidateStoreKey,
8617
- Ri as initReactMount,
8618
- hr as isTokenName,
8619
- Kc as layoutKeyPrefixFromContext,
8623
+ ji as initReactMount,
8624
+ gr as isTokenName,
8625
+ zc as layoutKeyPrefixFromContext,
8620
8626
  Fe as mergeStoreProps,
8621
- Tc as mountReactComponent,
8627
+ kc as mountReactComponent,
8622
8628
  dt as parseAction,
8623
8629
  xt as parseArrayNotation,
8624
8630
  ke as parseChangeAction,
8625
8631
  sr as parseClickAction,
8626
8632
  vt as parseNestedPath,
8627
- Bc as parseQueryAction,
8633
+ Kc as parseQueryAction,
8628
8634
  dr as processValidationRules,
8629
- zc as req,
8635
+ Vc as req,
8630
8636
  mt as request,
8631
- qc as resolveTokenColorWithToken,
8632
- Lc as setCoreConfig,
8633
- Bi as setNestedValue,
8634
- Zs as setPdfjsWorkerSrc,
8635
- mr as upload,
8636
- Oc as useAddCommand,
8637
+ xo as resolveInheritedDataSet,
8638
+ Wc as resolveTokenColorWithToken,
8639
+ Fc as setCoreConfig,
8640
+ Ki as setNestedValue,
8641
+ el as setPdfjsWorkerSrc,
8642
+ yr as upload,
8643
+ $c as useAddCommand,
8637
8644
  _ as useAndStore,
8638
- wo as useApiService,
8639
- Rc as useCommandsStore,
8645
+ Ao as useApiService,
8646
+ jc as useCommandsStore,
8640
8647
  $t as useDictOptions,
8641
8648
  ze as useFieldValidation,
8642
- Mc as useItemStore,
8643
- $c as usePopCommand,
8649
+ Rc as useItemStore,
8650
+ Mc as usePopCommand,
8644
8651
  hn as useRemoteOptions,
8645
8652
  Ht as useResolveTokenColor,
8646
8653
  ot as useResolvedDataSet,
8647
- _c as useStore,
8648
- Ec as useStoreByName,
8649
- Ki as useStoreData,
8654
+ Ec as useStore,
8655
+ Oc as useStoreByName,
8656
+ Li as useStoreData,
8650
8657
  fr as validateWithSchema,
8651
- Li as watchCommands,
8658
+ zi as watchCommands,
8652
8659
  lt as withBaseChart
8653
8660
  };
8654
8661
  //# sourceMappingURL=index.esm.js.map