xph-crud 0.0.1

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.
Files changed (78) hide show
  1. package/README.md +64 -0
  2. package/dist/index.js +3246 -0
  3. package/dist/index.umd.cjs +25 -0
  4. package/dist/style.css +1 -0
  5. package/dist/types/common/index.d.ts +3 -0
  6. package/dist/types/common/src/componnets/actions/actions.d.ts +4 -0
  7. package/dist/types/common/src/componnets/actions/components/button.d.ts +4 -0
  8. package/dist/types/common/src/componnets/actions/components/dropdown.d.ts +4 -0
  9. package/dist/types/common/src/componnets/actions/components/index.d.ts +5 -0
  10. package/dist/types/common/src/componnets/actions/components/more.d.ts +7 -0
  11. package/dist/types/common/src/componnets/actions/hooks/index.d.ts +8 -0
  12. package/dist/types/common/src/componnets/actions/hooks/useActionItems.d.ts +6 -0
  13. package/dist/types/common/src/componnets/actions/hooks/useActionsProps.d.ts +5 -0
  14. package/dist/types/common/src/componnets/actions/hooks/useExtendActions.d.ts +5 -0
  15. package/dist/types/common/src/componnets/actions/hooks/useRenderContent.d.ts +6 -0
  16. package/dist/types/common/src/componnets/actions/types/actionItem.d.ts +67 -0
  17. package/dist/types/common/src/componnets/actions/types/actions.d.ts +15 -0
  18. package/dist/types/common/src/componnets/actions/types/index.d.ts +2 -0
  19. package/dist/types/common/src/componnets/dialog/dialog.d.ts +2 -0
  20. package/dist/types/common/src/componnets/dialog/types/dialog.d.ts +9 -0
  21. package/dist/types/common/src/componnets/index.d.ts +5 -0
  22. package/dist/types/common/src/hooks/index.d.ts +3 -0
  23. package/dist/types/common/src/hooks/useExtendCompProps.d.ts +45 -0
  24. package/dist/types/common/src/utils/index.d.ts +1 -0
  25. package/dist/types/form/index.d.ts +5 -0
  26. package/dist/types/form/src/components/ActionGroup/index.d.ts +6 -0
  27. package/dist/types/form/src/components/ApiAutoComplete/index.d.ts +15 -0
  28. package/dist/types/form/src/components/ApiSelect/index.d.ts +15 -0
  29. package/dist/types/form/src/components/ApiTransfer/index.d.ts +13 -0
  30. package/dist/types/form/src/components/ApiTreeSelect/index.d.ts +15 -0
  31. package/dist/types/form/src/components/AutoUpload/index.d.ts +28 -0
  32. package/dist/types/form/src/components/Collapse/index.d.ts +7 -0
  33. package/dist/types/form/src/components/FormItem/index.d.ts +11 -0
  34. package/dist/types/form/src/components/index.d.ts +5 -0
  35. package/dist/types/form/src/form.d.ts +8 -0
  36. package/dist/types/form/src/helper.d.ts +14 -0
  37. package/dist/types/form/src/hooks/index.d.ts +16 -0
  38. package/dist/types/form/src/hooks/useApiComonentCache.d.ts +24 -0
  39. package/dist/types/form/src/hooks/useExtendForm.d.ts +5 -0
  40. package/dist/types/form/src/hooks/useForm.d.ts +20 -0
  41. package/dist/types/form/src/hooks/useFormAction.d.ts +12 -0
  42. package/dist/types/form/src/hooks/useFormCollapse.d.ts +11 -0
  43. package/dist/types/form/src/hooks/useFormItem.d.ts +40 -0
  44. package/dist/types/form/src/hooks/useFormProps.d.ts +6 -0
  45. package/dist/types/form/src/hooks/useFormValues.d.ts +11 -0
  46. package/dist/types/form/src/types/component.d.ts +35 -0
  47. package/dist/types/form/src/types/form.d.ts +86 -0
  48. package/dist/types/form/src/types/formItem.d.ts +54 -0
  49. package/dist/types/form/src/types/index.d.ts +3 -0
  50. package/dist/types/index.d.ts +3 -0
  51. package/dist/types/table/index.d.ts +4 -0
  52. package/dist/types/table/src/components/searchForm/components/cacheForm/index.d.ts +6 -0
  53. package/dist/types/table/src/components/searchForm/index.d.ts +9 -0
  54. package/dist/types/table/src/components/table/components/cellFunc/cellFunc.d.ts +5 -0
  55. package/dist/types/table/src/components/table/components/cellFunc/components/actions.d.ts +5 -0
  56. package/dist/types/table/src/components/table/components/cellFunc/components/index.d.ts +12 -0
  57. package/dist/types/table/src/components/table/components/cellFunc/components/link.d.ts +5 -0
  58. package/dist/types/table/src/components/table/components/cellFunc/types/cellFunc.d.ts +43 -0
  59. package/dist/types/table/src/components/table/components/cellFunc/types/index.d.ts +1 -0
  60. package/dist/types/table/src/components/table/index.d.ts +9 -0
  61. package/dist/types/table/src/hooks/index.d.ts +18 -0
  62. package/dist/types/table/src/hooks/useExtendTable.d.ts +7 -0
  63. package/dist/types/table/src/hooks/usePagination.d.ts +18 -0
  64. package/dist/types/table/src/hooks/useRowSelection.d.ts +9 -0
  65. package/dist/types/table/src/hooks/useSearchForm.d.ts +6 -0
  66. package/dist/types/table/src/hooks/useTable.d.ts +24 -0
  67. package/dist/types/table/src/hooks/useTableColumns.d.ts +6 -0
  68. package/dist/types/table/src/hooks/useTableProps.d.ts +6 -0
  69. package/dist/types/table/src/hooks/useTableScroll.d.ts +10 -0
  70. package/dist/types/table/src/hooks/useTopToolbar.d.ts +7 -0
  71. package/dist/types/table/src/table.d.ts +8 -0
  72. package/dist/types/table/src/types/apiTable.d.ts +35 -0
  73. package/dist/types/table/src/types/column.d.ts +32 -0
  74. package/dist/types/table/src/types/crudForm.d.ts +3 -0
  75. package/dist/types/table/src/types/index.d.ts +5 -0
  76. package/dist/types/table/src/types/searchForm.d.ts +9 -0
  77. package/dist/types/table/src/types/table.d.ts +25 -0
  78. package/package.json +63 -0
package/dist/index.js ADDED
@@ -0,0 +1,3246 @@
1
+ import $e, { useCallback as yt, createContext as Ln, useContext as Nn, Fragment as Ar, useRef as re, useEffect as ye, useState as Se, useMemo as ot, forwardRef as Ee, useImperativeHandle as Me, memo as Un } from "react";
2
+ import { Button as xe, Dropdown as Rr, theme as Fr, Space as Bn, Form as Xe, Select as Dr, TreeSelect as Ir, Transfer as Mr, AutoComplete as kr, Upload as _t, message as gt, Input as At, InputNumber as Wn, Switch as Vn, Radio as Lr, Checkbox as Nr, Cascader as Yn, TimePicker as zn, DatePicker as at, Col as Gn, Row as Hn, Spin as qn, Table as Kn, Pagination as Xn } from "antd";
3
+ import { CaretDownOutlined as Ur, DownOutlined as Jn, UpOutlined as Zn, SearchOutlined as Qn, ReloadOutlined as eo } from "@ant-design/icons";
4
+ const wt = [];
5
+ for (let e = 0; e <= 15; e++)
6
+ wt[e] = e.toString(16);
7
+ function er() {
8
+ let e = "";
9
+ for (let t = 1; t <= 36; t++)
10
+ t === 9 || t === 14 || t === 19 || t === 24 ? e += "-" : t === 15 ? e += 4 : t === 20 ? e += wt[Math.random() * 4 | 8] : e += wt[Math.random() * 16 | 0];
11
+ return e.replace(/-/g, "");
12
+ }
13
+ var to = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
14
+ function ro(e) {
15
+ return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
16
+ }
17
+ var Tt = { exports: {} }, Le = {};
18
+ /**
19
+ * @license React
20
+ * react-jsx-runtime.production.min.js
21
+ *
22
+ * Copyright (c) Facebook, Inc. and its affiliates.
23
+ *
24
+ * This source code is licensed under the MIT license found in the
25
+ * LICENSE file in the root directory of this source tree.
26
+ */
27
+ var tr;
28
+ function no() {
29
+ if (tr)
30
+ return Le;
31
+ tr = 1;
32
+ var e = $e, t = Symbol.for("react.element"), r = Symbol.for("react.fragment"), n = Object.prototype.hasOwnProperty, a = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, s = { key: !0, ref: !0, __self: !0, __source: !0 };
33
+ function i(c, u, l) {
34
+ var d, h = {}, p = null, C = null;
35
+ l !== void 0 && (p = "" + l), u.key !== void 0 && (p = "" + u.key), u.ref !== void 0 && (C = u.ref);
36
+ for (d in u)
37
+ n.call(u, d) && !s.hasOwnProperty(d) && (h[d] = u[d]);
38
+ if (c && c.defaultProps)
39
+ for (d in u = c.defaultProps, u)
40
+ h[d] === void 0 && (h[d] = u[d]);
41
+ return { $$typeof: t, type: c, key: p, ref: C, props: h, _owner: a.current };
42
+ }
43
+ return Le.Fragment = r, Le.jsx = i, Le.jsxs = i, Le;
44
+ }
45
+ var Ne = {};
46
+ /**
47
+ * @license React
48
+ * react-jsx-runtime.development.js
49
+ *
50
+ * Copyright (c) Facebook, Inc. and its affiliates.
51
+ *
52
+ * This source code is licensed under the MIT license found in the
53
+ * LICENSE file in the root directory of this source tree.
54
+ */
55
+ var rr;
56
+ function oo() {
57
+ return rr || (rr = 1, process.env.NODE_ENV !== "production" && function() {
58
+ var e = $e, t = Symbol.for("react.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), s = Symbol.for("react.profiler"), i = Symbol.for("react.provider"), c = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), l = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), p = Symbol.for("react.lazy"), C = Symbol.for("react.offscreen"), g = Symbol.iterator, O = "@@iterator";
59
+ function E(o) {
60
+ if (o === null || typeof o != "object")
61
+ return null;
62
+ var f = g && o[g] || o[O];
63
+ return typeof f == "function" ? f : null;
64
+ }
65
+ var M = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
66
+ function D(o) {
67
+ {
68
+ for (var f = arguments.length, b = new Array(f > 1 ? f - 1 : 0), j = 1; j < f; j++)
69
+ b[j - 1] = arguments[j];
70
+ G("error", o, b);
71
+ }
72
+ }
73
+ function G(o, f, b) {
74
+ {
75
+ var j = M.ReactDebugCurrentFrame, N = j.getStackAddendum();
76
+ N !== "" && (f += "%s", b = b.concat([N]));
77
+ var V = b.map(function(L) {
78
+ return String(L);
79
+ });
80
+ V.unshift("Warning: " + f), Function.prototype.apply.call(console[o], console, V);
81
+ }
82
+ }
83
+ var q = !1, H = !1, Q = !1, F = !1, _ = !1, $;
84
+ $ = Symbol.for("react.module.reference");
85
+ function S(o) {
86
+ return !!(typeof o == "string" || typeof o == "function" || o === n || o === s || _ || o === a || o === l || o === d || F || o === C || q || H || Q || typeof o == "object" && o !== null && (o.$$typeof === p || o.$$typeof === h || o.$$typeof === i || o.$$typeof === c || o.$$typeof === u || // This needs to include all possible module reference object
87
+ // types supported by any Flight configuration anywhere since
88
+ // we don't know which Flight build this will end up being used
89
+ // with.
90
+ o.$$typeof === $ || o.getModuleId !== void 0));
91
+ }
92
+ function x(o, f, b) {
93
+ var j = o.displayName;
94
+ if (j)
95
+ return j;
96
+ var N = f.displayName || f.name || "";
97
+ return N !== "" ? b + "(" + N + ")" : b;
98
+ }
99
+ function k(o) {
100
+ return o.displayName || "Context";
101
+ }
102
+ function B(o) {
103
+ if (o == null)
104
+ return null;
105
+ if (typeof o.tag == "number" && D("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof o == "function")
106
+ return o.displayName || o.name || null;
107
+ if (typeof o == "string")
108
+ return o;
109
+ switch (o) {
110
+ case n:
111
+ return "Fragment";
112
+ case r:
113
+ return "Portal";
114
+ case s:
115
+ return "Profiler";
116
+ case a:
117
+ return "StrictMode";
118
+ case l:
119
+ return "Suspense";
120
+ case d:
121
+ return "SuspenseList";
122
+ }
123
+ if (typeof o == "object")
124
+ switch (o.$$typeof) {
125
+ case c:
126
+ var f = o;
127
+ return k(f) + ".Consumer";
128
+ case i:
129
+ var b = o;
130
+ return k(b._context) + ".Provider";
131
+ case u:
132
+ return x(o, o.render, "ForwardRef");
133
+ case h:
134
+ var j = o.displayName || null;
135
+ return j !== null ? j : B(o.type) || "Memo";
136
+ case p: {
137
+ var N = o, V = N._payload, L = N._init;
138
+ try {
139
+ return B(L(V));
140
+ } catch {
141
+ return null;
142
+ }
143
+ }
144
+ }
145
+ return null;
146
+ }
147
+ var T = Object.assign, m = 0, v, P, y, A, R, U, z;
148
+ function K() {
149
+ }
150
+ K.__reactDisabledLog = !0;
151
+ function ee() {
152
+ {
153
+ if (m === 0) {
154
+ v = console.log, P = console.info, y = console.warn, A = console.error, R = console.group, U = console.groupCollapsed, z = console.groupEnd;
155
+ var o = {
156
+ configurable: !0,
157
+ enumerable: !0,
158
+ value: K,
159
+ writable: !0
160
+ };
161
+ Object.defineProperties(console, {
162
+ info: o,
163
+ log: o,
164
+ warn: o,
165
+ error: o,
166
+ group: o,
167
+ groupCollapsed: o,
168
+ groupEnd: o
169
+ });
170
+ }
171
+ m++;
172
+ }
173
+ }
174
+ function oe() {
175
+ {
176
+ if (m--, m === 0) {
177
+ var o = {
178
+ configurable: !0,
179
+ enumerable: !0,
180
+ writable: !0
181
+ };
182
+ Object.defineProperties(console, {
183
+ log: T({}, o, {
184
+ value: v
185
+ }),
186
+ info: T({}, o, {
187
+ value: P
188
+ }),
189
+ warn: T({}, o, {
190
+ value: y
191
+ }),
192
+ error: T({}, o, {
193
+ value: A
194
+ }),
195
+ group: T({}, o, {
196
+ value: R
197
+ }),
198
+ groupCollapsed: T({}, o, {
199
+ value: U
200
+ }),
201
+ groupEnd: T({}, o, {
202
+ value: z
203
+ })
204
+ });
205
+ }
206
+ m < 0 && D("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
207
+ }
208
+ }
209
+ var fe = M.ReactCurrentDispatcher, ce;
210
+ function de(o, f, b) {
211
+ {
212
+ if (ce === void 0)
213
+ try {
214
+ throw Error();
215
+ } catch (N) {
216
+ var j = N.stack.trim().match(/\n( *(at )?)/);
217
+ ce = j && j[1] || "";
218
+ }
219
+ return `
220
+ ` + ce + o;
221
+ }
222
+ }
223
+ var ue = !1, Z;
224
+ {
225
+ var pe = typeof WeakMap == "function" ? WeakMap : Map;
226
+ Z = new pe();
227
+ }
228
+ function Te(o, f) {
229
+ if (!o || ue)
230
+ return "";
231
+ {
232
+ var b = Z.get(o);
233
+ if (b !== void 0)
234
+ return b;
235
+ }
236
+ var j;
237
+ ue = !0;
238
+ var N = Error.prepareStackTrace;
239
+ Error.prepareStackTrace = void 0;
240
+ var V;
241
+ V = fe.current, fe.current = null, ee();
242
+ try {
243
+ if (f) {
244
+ var L = function() {
245
+ throw Error();
246
+ };
247
+ if (Object.defineProperty(L.prototype, "props", {
248
+ set: function() {
249
+ throw Error();
250
+ }
251
+ }), typeof Reflect == "object" && Reflect.construct) {
252
+ try {
253
+ Reflect.construct(L, []);
254
+ } catch (me) {
255
+ j = me;
256
+ }
257
+ Reflect.construct(o, [], L);
258
+ } else {
259
+ try {
260
+ L.call();
261
+ } catch (me) {
262
+ j = me;
263
+ }
264
+ o.call(L.prototype);
265
+ }
266
+ } else {
267
+ try {
268
+ throw Error();
269
+ } catch (me) {
270
+ j = me;
271
+ }
272
+ o();
273
+ }
274
+ } catch (me) {
275
+ if (me && j && typeof me.stack == "string") {
276
+ for (var I = me.stack.split(`
277
+ `), ne = j.stack.split(`
278
+ `), X = I.length - 1, J = ne.length - 1; X >= 1 && J >= 0 && I[X] !== ne[J]; )
279
+ J--;
280
+ for (; X >= 1 && J >= 0; X--, J--)
281
+ if (I[X] !== ne[J]) {
282
+ if (X !== 1 || J !== 1)
283
+ do
284
+ if (X--, J--, J < 0 || I[X] !== ne[J]) {
285
+ var se = `
286
+ ` + I[X].replace(" at new ", " at ");
287
+ return o.displayName && se.includes("<anonymous>") && (se = se.replace("<anonymous>", o.displayName)), typeof o == "function" && Z.set(o, se), se;
288
+ }
289
+ while (X >= 1 && J >= 0);
290
+ break;
291
+ }
292
+ }
293
+ } finally {
294
+ ue = !1, fe.current = V, oe(), Error.prepareStackTrace = N;
295
+ }
296
+ var De = o ? o.displayName || o.name : "", Qt = De ? de(De) : "";
297
+ return typeof o == "function" && Z.set(o, Qt), Qt;
298
+ }
299
+ function Re(o, f, b) {
300
+ return Te(o, !1);
301
+ }
302
+ function vn(o) {
303
+ var f = o.prototype;
304
+ return !!(f && f.isReactComponent);
305
+ }
306
+ function ze(o, f, b) {
307
+ if (o == null)
308
+ return "";
309
+ if (typeof o == "function")
310
+ return Te(o, vn(o));
311
+ if (typeof o == "string")
312
+ return de(o);
313
+ switch (o) {
314
+ case l:
315
+ return de("Suspense");
316
+ case d:
317
+ return de("SuspenseList");
318
+ }
319
+ if (typeof o == "object")
320
+ switch (o.$$typeof) {
321
+ case u:
322
+ return Re(o.render);
323
+ case h:
324
+ return ze(o.type, f, b);
325
+ case p: {
326
+ var j = o, N = j._payload, V = j._init;
327
+ try {
328
+ return ze(V(N), f, b);
329
+ } catch {
330
+ }
331
+ }
332
+ }
333
+ return "";
334
+ }
335
+ var Ge = Object.prototype.hasOwnProperty, Bt = {}, Wt = M.ReactDebugCurrentFrame;
336
+ function He(o) {
337
+ if (o) {
338
+ var f = o._owner, b = ze(o.type, o._source, f ? f.type : null);
339
+ Wt.setExtraStackFrame(b);
340
+ } else
341
+ Wt.setExtraStackFrame(null);
342
+ }
343
+ function bn(o, f, b, j, N) {
344
+ {
345
+ var V = Function.call.bind(Ge);
346
+ for (var L in o)
347
+ if (V(o, L)) {
348
+ var I = void 0;
349
+ try {
350
+ if (typeof o[L] != "function") {
351
+ var ne = Error((j || "React class") + ": " + b + " type `" + L + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof o[L] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
352
+ throw ne.name = "Invariant Violation", ne;
353
+ }
354
+ I = o[L](f, L, j, b, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
355
+ } catch (X) {
356
+ I = X;
357
+ }
358
+ I && !(I instanceof Error) && (He(N), D("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", j || "React class", b, L, typeof I), He(null)), I instanceof Error && !(I.message in Bt) && (Bt[I.message] = !0, He(N), D("Failed %s type: %s", b, I.message), He(null));
359
+ }
360
+ }
361
+ }
362
+ var yn = Array.isArray;
363
+ function lt(o) {
364
+ return yn(o);
365
+ }
366
+ function _n(o) {
367
+ {
368
+ var f = typeof Symbol == "function" && Symbol.toStringTag, b = f && o[Symbol.toStringTag] || o.constructor.name || "Object";
369
+ return b;
370
+ }
371
+ }
372
+ function wn(o) {
373
+ try {
374
+ return Vt(o), !1;
375
+ } catch {
376
+ return !0;
377
+ }
378
+ }
379
+ function Vt(o) {
380
+ return "" + o;
381
+ }
382
+ function Yt(o) {
383
+ if (wn(o))
384
+ return D("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", _n(o)), Vt(o);
385
+ }
386
+ var ke = M.ReactCurrentOwner, Tn = {
387
+ key: !0,
388
+ ref: !0,
389
+ __self: !0,
390
+ __source: !0
391
+ }, zt, Gt, ft;
392
+ ft = {};
393
+ function Cn(o) {
394
+ if (Ge.call(o, "ref")) {
395
+ var f = Object.getOwnPropertyDescriptor(o, "ref").get;
396
+ if (f && f.isReactWarning)
397
+ return !1;
398
+ }
399
+ return o.ref !== void 0;
400
+ }
401
+ function Sn(o) {
402
+ if (Ge.call(o, "key")) {
403
+ var f = Object.getOwnPropertyDescriptor(o, "key").get;
404
+ if (f && f.isReactWarning)
405
+ return !1;
406
+ }
407
+ return o.key !== void 0;
408
+ }
409
+ function xn(o, f) {
410
+ if (typeof o.ref == "string" && ke.current && f && ke.current.stateNode !== f) {
411
+ var b = B(ke.current.type);
412
+ ft[b] || (D('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', B(ke.current.type), o.ref), ft[b] = !0);
413
+ }
414
+ }
415
+ function Pn(o, f) {
416
+ {
417
+ var b = function() {
418
+ zt || (zt = !0, D("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", f));
419
+ };
420
+ b.isReactWarning = !0, Object.defineProperty(o, "key", {
421
+ get: b,
422
+ configurable: !0
423
+ });
424
+ }
425
+ }
426
+ function On(o, f) {
427
+ {
428
+ var b = function() {
429
+ Gt || (Gt = !0, D("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", f));
430
+ };
431
+ b.isReactWarning = !0, Object.defineProperty(o, "ref", {
432
+ get: b,
433
+ configurable: !0
434
+ });
435
+ }
436
+ }
437
+ var $n = function(o, f, b, j, N, V, L) {
438
+ var I = {
439
+ // This tag allows us to uniquely identify this as a React Element
440
+ $$typeof: t,
441
+ // Built-in properties that belong on the element
442
+ type: o,
443
+ key: f,
444
+ ref: b,
445
+ props: L,
446
+ // Record the component responsible for creating this element.
447
+ _owner: V
448
+ };
449
+ return I._store = {}, Object.defineProperty(I._store, "validated", {
450
+ configurable: !1,
451
+ enumerable: !1,
452
+ writable: !0,
453
+ value: !1
454
+ }), Object.defineProperty(I, "_self", {
455
+ configurable: !1,
456
+ enumerable: !1,
457
+ writable: !1,
458
+ value: j
459
+ }), Object.defineProperty(I, "_source", {
460
+ configurable: !1,
461
+ enumerable: !1,
462
+ writable: !1,
463
+ value: N
464
+ }), Object.freeze && (Object.freeze(I.props), Object.freeze(I)), I;
465
+ };
466
+ function En(o, f, b, j, N) {
467
+ {
468
+ var V, L = {}, I = null, ne = null;
469
+ b !== void 0 && (Yt(b), I = "" + b), Sn(f) && (Yt(f.key), I = "" + f.key), Cn(f) && (ne = f.ref, xn(f, N));
470
+ for (V in f)
471
+ Ge.call(f, V) && !Tn.hasOwnProperty(V) && (L[V] = f[V]);
472
+ if (o && o.defaultProps) {
473
+ var X = o.defaultProps;
474
+ for (V in X)
475
+ L[V] === void 0 && (L[V] = X[V]);
476
+ }
477
+ if (I || ne) {
478
+ var J = typeof o == "function" ? o.displayName || o.name || "Unknown" : o;
479
+ I && Pn(L, J), ne && On(L, J);
480
+ }
481
+ return $n(o, I, ne, N, j, ke.current, L);
482
+ }
483
+ }
484
+ var dt = M.ReactCurrentOwner, Ht = M.ReactDebugCurrentFrame;
485
+ function Fe(o) {
486
+ if (o) {
487
+ var f = o._owner, b = ze(o.type, o._source, f ? f.type : null);
488
+ Ht.setExtraStackFrame(b);
489
+ } else
490
+ Ht.setExtraStackFrame(null);
491
+ }
492
+ var pt;
493
+ pt = !1;
494
+ function ht(o) {
495
+ return typeof o == "object" && o !== null && o.$$typeof === t;
496
+ }
497
+ function qt() {
498
+ {
499
+ if (dt.current) {
500
+ var o = B(dt.current.type);
501
+ if (o)
502
+ return `
503
+
504
+ Check the render method of \`` + o + "`.";
505
+ }
506
+ return "";
507
+ }
508
+ }
509
+ function jn(o) {
510
+ return "";
511
+ }
512
+ var Kt = {};
513
+ function An(o) {
514
+ {
515
+ var f = qt();
516
+ if (!f) {
517
+ var b = typeof o == "string" ? o : o.displayName || o.name;
518
+ b && (f = `
519
+
520
+ Check the top-level render call using <` + b + ">.");
521
+ }
522
+ return f;
523
+ }
524
+ }
525
+ function Xt(o, f) {
526
+ {
527
+ if (!o._store || o._store.validated || o.key != null)
528
+ return;
529
+ o._store.validated = !0;
530
+ var b = An(f);
531
+ if (Kt[b])
532
+ return;
533
+ Kt[b] = !0;
534
+ var j = "";
535
+ o && o._owner && o._owner !== dt.current && (j = " It was passed a child from " + B(o._owner.type) + "."), Fe(o), D('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', b, j), Fe(null);
536
+ }
537
+ }
538
+ function Jt(o, f) {
539
+ {
540
+ if (typeof o != "object")
541
+ return;
542
+ if (lt(o))
543
+ for (var b = 0; b < o.length; b++) {
544
+ var j = o[b];
545
+ ht(j) && Xt(j, f);
546
+ }
547
+ else if (ht(o))
548
+ o._store && (o._store.validated = !0);
549
+ else if (o) {
550
+ var N = E(o);
551
+ if (typeof N == "function" && N !== o.entries)
552
+ for (var V = N.call(o), L; !(L = V.next()).done; )
553
+ ht(L.value) && Xt(L.value, f);
554
+ }
555
+ }
556
+ }
557
+ function Rn(o) {
558
+ {
559
+ var f = o.type;
560
+ if (f == null || typeof f == "string")
561
+ return;
562
+ var b;
563
+ if (typeof f == "function")
564
+ b = f.propTypes;
565
+ else if (typeof f == "object" && (f.$$typeof === u || // Note: Memo only checks outer props here.
566
+ // Inner props are checked in the reconciler.
567
+ f.$$typeof === h))
568
+ b = f.propTypes;
569
+ else
570
+ return;
571
+ if (b) {
572
+ var j = B(f);
573
+ bn(b, o.props, "prop", j, o);
574
+ } else if (f.PropTypes !== void 0 && !pt) {
575
+ pt = !0;
576
+ var N = B(f);
577
+ D("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", N || "Unknown");
578
+ }
579
+ typeof f.getDefaultProps == "function" && !f.getDefaultProps.isReactClassApproved && D("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
580
+ }
581
+ }
582
+ function Fn(o) {
583
+ {
584
+ for (var f = Object.keys(o.props), b = 0; b < f.length; b++) {
585
+ var j = f[b];
586
+ if (j !== "children" && j !== "key") {
587
+ Fe(o), D("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", j), Fe(null);
588
+ break;
589
+ }
590
+ }
591
+ o.ref !== null && (Fe(o), D("Invalid attribute `ref` supplied to `React.Fragment`."), Fe(null));
592
+ }
593
+ }
594
+ function Zt(o, f, b, j, N, V) {
595
+ {
596
+ var L = S(o);
597
+ if (!L) {
598
+ var I = "";
599
+ (o === void 0 || typeof o == "object" && o !== null && Object.keys(o).length === 0) && (I += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
600
+ var ne = jn();
601
+ ne ? I += ne : I += qt();
602
+ var X;
603
+ o === null ? X = "null" : lt(o) ? X = "array" : o !== void 0 && o.$$typeof === t ? (X = "<" + (B(o.type) || "Unknown") + " />", I = " Did you accidentally export a JSX literal instead of a component?") : X = typeof o, D("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", X, I);
604
+ }
605
+ var J = En(o, f, b, N, V);
606
+ if (J == null)
607
+ return J;
608
+ if (L) {
609
+ var se = f.children;
610
+ if (se !== void 0)
611
+ if (j)
612
+ if (lt(se)) {
613
+ for (var De = 0; De < se.length; De++)
614
+ Jt(se[De], o);
615
+ Object.freeze && Object.freeze(se);
616
+ } else
617
+ D("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
618
+ else
619
+ Jt(se, o);
620
+ }
621
+ return o === n ? Fn(J) : Rn(J), J;
622
+ }
623
+ }
624
+ function Dn(o, f, b) {
625
+ return Zt(o, f, b, !0);
626
+ }
627
+ function In(o, f, b) {
628
+ return Zt(o, f, b, !1);
629
+ }
630
+ var Mn = In, kn = Dn;
631
+ Ne.Fragment = n, Ne.jsx = Mn, Ne.jsxs = kn;
632
+ }()), Ne;
633
+ }
634
+ process.env.NODE_ENV === "production" ? Tt.exports = no() : Tt.exports = oo();
635
+ var w = Tt.exports, Br = typeof global == "object" && global && global.Object === Object && global, ao = typeof self == "object" && self && self.Object === Object && self, he = Br || ao || Function("return this")(), Pe = he.Symbol, Wr = Object.prototype, so = Wr.hasOwnProperty, io = Wr.toString, Ue = Pe ? Pe.toStringTag : void 0;
636
+ function co(e) {
637
+ var t = so.call(e, Ue), r = e[Ue];
638
+ try {
639
+ e[Ue] = void 0;
640
+ var n = !0;
641
+ } catch {
642
+ }
643
+ var a = io.call(e);
644
+ return n && (t ? e[Ue] = r : delete e[Ue]), a;
645
+ }
646
+ var uo = Object.prototype, lo = uo.toString;
647
+ function fo(e) {
648
+ return lo.call(e);
649
+ }
650
+ var po = "[object Null]", ho = "[object Undefined]", nr = Pe ? Pe.toStringTag : void 0;
651
+ function ge(e) {
652
+ return e == null ? e === void 0 ? ho : po : nr && nr in Object(e) ? co(e) : fo(e);
653
+ }
654
+ function le(e) {
655
+ return e != null && typeof e == "object";
656
+ }
657
+ var go = "[object Symbol]";
658
+ function Rt(e) {
659
+ return typeof e == "symbol" || le(e) && ge(e) == go;
660
+ }
661
+ function mo(e, t) {
662
+ for (var r = -1, n = e == null ? 0 : e.length, a = Array(n); ++r < n; )
663
+ a[r] = t(e[r], r, e);
664
+ return a;
665
+ }
666
+ var ae = Array.isArray, vo = 1 / 0, or = Pe ? Pe.prototype : void 0, ar = or ? or.toString : void 0;
667
+ function Vr(e) {
668
+ if (typeof e == "string")
669
+ return e;
670
+ if (ae(e))
671
+ return mo(e, Vr) + "";
672
+ if (Rt(e))
673
+ return ar ? ar.call(e) : "";
674
+ var t = e + "";
675
+ return t == "0" && 1 / e == -vo ? "-0" : t;
676
+ }
677
+ function ie(e) {
678
+ var t = typeof e;
679
+ return e != null && (t == "object" || t == "function");
680
+ }
681
+ function Yr(e) {
682
+ return e;
683
+ }
684
+ var bo = "[object AsyncFunction]", yo = "[object Function]", _o = "[object GeneratorFunction]", wo = "[object Proxy]";
685
+ function te(e) {
686
+ if (!ie(e))
687
+ return !1;
688
+ var t = ge(e);
689
+ return t == yo || t == _o || t == bo || t == wo;
690
+ }
691
+ var mt = he["__core-js_shared__"], sr = function() {
692
+ var e = /[^.]+$/.exec(mt && mt.keys && mt.keys.IE_PROTO || "");
693
+ return e ? "Symbol(src)_1." + e : "";
694
+ }();
695
+ function To(e) {
696
+ return !!sr && sr in e;
697
+ }
698
+ var Co = Function.prototype, So = Co.toString;
699
+ function je(e) {
700
+ if (e != null) {
701
+ try {
702
+ return So.call(e);
703
+ } catch {
704
+ }
705
+ try {
706
+ return e + "";
707
+ } catch {
708
+ }
709
+ }
710
+ return "";
711
+ }
712
+ var xo = /[\\^$.*+?()[\]{}|]/g, Po = /^\[object .+?Constructor\]$/, Oo = Function.prototype, $o = Object.prototype, Eo = Oo.toString, jo = $o.hasOwnProperty, Ao = RegExp(
713
+ "^" + Eo.call(jo).replace(xo, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
714
+ );
715
+ function Ro(e) {
716
+ if (!ie(e) || To(e))
717
+ return !1;
718
+ var t = te(e) ? Ao : Po;
719
+ return t.test(je(e));
720
+ }
721
+ function Fo(e, t) {
722
+ return e == null ? void 0 : e[t];
723
+ }
724
+ function Ae(e, t) {
725
+ var r = Fo(e, t);
726
+ return Ro(r) ? r : void 0;
727
+ }
728
+ var Ct = Ae(he, "WeakMap"), ir = Object.create, Do = /* @__PURE__ */ function() {
729
+ function e() {
730
+ }
731
+ return function(t) {
732
+ if (!ie(t))
733
+ return {};
734
+ if (ir)
735
+ return ir(t);
736
+ e.prototype = t;
737
+ var r = new e();
738
+ return e.prototype = void 0, r;
739
+ };
740
+ }();
741
+ function Io(e, t, r) {
742
+ switch (r.length) {
743
+ case 0:
744
+ return e.call(t);
745
+ case 1:
746
+ return e.call(t, r[0]);
747
+ case 2:
748
+ return e.call(t, r[0], r[1]);
749
+ case 3:
750
+ return e.call(t, r[0], r[1], r[2]);
751
+ }
752
+ return e.apply(t, r);
753
+ }
754
+ function Mo(e, t) {
755
+ var r = -1, n = e.length;
756
+ for (t || (t = Array(n)); ++r < n; )
757
+ t[r] = e[r];
758
+ return t;
759
+ }
760
+ var ko = 800, Lo = 16, No = Date.now;
761
+ function Uo(e) {
762
+ var t = 0, r = 0;
763
+ return function() {
764
+ var n = No(), a = Lo - (n - r);
765
+ if (r = n, a > 0) {
766
+ if (++t >= ko)
767
+ return arguments[0];
768
+ } else
769
+ t = 0;
770
+ return e.apply(void 0, arguments);
771
+ };
772
+ }
773
+ function Bo(e) {
774
+ return function() {
775
+ return e;
776
+ };
777
+ }
778
+ var Je = function() {
779
+ try {
780
+ var e = Ae(Object, "defineProperty");
781
+ return e({}, "", {}), e;
782
+ } catch {
783
+ }
784
+ }(), Wo = Je ? function(e, t) {
785
+ return Je(e, "toString", {
786
+ configurable: !0,
787
+ enumerable: !1,
788
+ value: Bo(t),
789
+ writable: !0
790
+ });
791
+ } : Yr, Vo = Uo(Wo), Yo = 9007199254740991, zo = /^(?:0|[1-9]\d*)$/;
792
+ function Ft(e, t) {
793
+ var r = typeof e;
794
+ return t = t ?? Yo, !!t && (r == "number" || r != "symbol" && zo.test(e)) && e > -1 && e % 1 == 0 && e < t;
795
+ }
796
+ function Dt(e, t, r) {
797
+ t == "__proto__" && Je ? Je(e, t, {
798
+ configurable: !0,
799
+ enumerable: !0,
800
+ value: r,
801
+ writable: !0
802
+ }) : e[t] = r;
803
+ }
804
+ function Ye(e, t) {
805
+ return e === t || e !== e && t !== t;
806
+ }
807
+ var Go = Object.prototype, Ho = Go.hasOwnProperty;
808
+ function zr(e, t, r) {
809
+ var n = e[t];
810
+ (!(Ho.call(e, t) && Ye(n, r)) || r === void 0 && !(t in e)) && Dt(e, t, r);
811
+ }
812
+ function qo(e, t, r, n) {
813
+ var a = !r;
814
+ r || (r = {});
815
+ for (var s = -1, i = t.length; ++s < i; ) {
816
+ var c = t[s], u = void 0;
817
+ u === void 0 && (u = e[c]), a ? Dt(r, c, u) : zr(r, c, u);
818
+ }
819
+ return r;
820
+ }
821
+ var cr = Math.max;
822
+ function Ko(e, t, r) {
823
+ return t = cr(t === void 0 ? e.length - 1 : t, 0), function() {
824
+ for (var n = arguments, a = -1, s = cr(n.length - t, 0), i = Array(s); ++a < s; )
825
+ i[a] = n[t + a];
826
+ a = -1;
827
+ for (var c = Array(t + 1); ++a < t; )
828
+ c[a] = n[a];
829
+ return c[t] = r(i), Io(e, this, c);
830
+ };
831
+ }
832
+ function Xo(e, t) {
833
+ return Vo(Ko(e, t, Yr), e + "");
834
+ }
835
+ var Jo = 9007199254740991;
836
+ function Gr(e) {
837
+ return typeof e == "number" && e > -1 && e % 1 == 0 && e <= Jo;
838
+ }
839
+ function st(e) {
840
+ return e != null && Gr(e.length) && !te(e);
841
+ }
842
+ function Zo(e, t, r) {
843
+ if (!ie(r))
844
+ return !1;
845
+ var n = typeof t;
846
+ return (n == "number" ? st(r) && Ft(t, r.length) : n == "string" && t in r) ? Ye(r[t], e) : !1;
847
+ }
848
+ function Qo(e) {
849
+ return Xo(function(t, r) {
850
+ var n = -1, a = r.length, s = a > 1 ? r[a - 1] : void 0, i = a > 2 ? r[2] : void 0;
851
+ for (s = e.length > 3 && typeof s == "function" ? (a--, s) : void 0, i && Zo(r[0], r[1], i) && (s = a < 3 ? void 0 : s, a = 1), t = Object(t); ++n < a; ) {
852
+ var c = r[n];
853
+ c && e(t, c, n, s);
854
+ }
855
+ return t;
856
+ });
857
+ }
858
+ var ea = Object.prototype;
859
+ function It(e) {
860
+ var t = e && e.constructor, r = typeof t == "function" && t.prototype || ea;
861
+ return e === r;
862
+ }
863
+ function ta(e, t) {
864
+ for (var r = -1, n = Array(e); ++r < e; )
865
+ n[r] = t(r);
866
+ return n;
867
+ }
868
+ var ra = "[object Arguments]";
869
+ function ur(e) {
870
+ return le(e) && ge(e) == ra;
871
+ }
872
+ var Hr = Object.prototype, na = Hr.hasOwnProperty, oa = Hr.propertyIsEnumerable, St = ur(/* @__PURE__ */ function() {
873
+ return arguments;
874
+ }()) ? ur : function(e) {
875
+ return le(e) && na.call(e, "callee") && !oa.call(e, "callee");
876
+ };
877
+ function aa() {
878
+ return !1;
879
+ }
880
+ var qr = typeof exports == "object" && exports && !exports.nodeType && exports, lr = qr && typeof module == "object" && module && !module.nodeType && module, sa = lr && lr.exports === qr, fr = sa ? he.Buffer : void 0, ia = fr ? fr.isBuffer : void 0, Ze = ia || aa, ca = "[object Arguments]", ua = "[object Array]", la = "[object Boolean]", fa = "[object Date]", da = "[object Error]", pa = "[object Function]", ha = "[object Map]", ga = "[object Number]", ma = "[object Object]", va = "[object RegExp]", ba = "[object Set]", ya = "[object String]", _a = "[object WeakMap]", wa = "[object ArrayBuffer]", Ta = "[object DataView]", Ca = "[object Float32Array]", Sa = "[object Float64Array]", xa = "[object Int8Array]", Pa = "[object Int16Array]", Oa = "[object Int32Array]", $a = "[object Uint8Array]", Ea = "[object Uint8ClampedArray]", ja = "[object Uint16Array]", Aa = "[object Uint32Array]", Y = {};
881
+ Y[Ca] = Y[Sa] = Y[xa] = Y[Pa] = Y[Oa] = Y[$a] = Y[Ea] = Y[ja] = Y[Aa] = !0;
882
+ Y[ca] = Y[ua] = Y[wa] = Y[la] = Y[Ta] = Y[fa] = Y[da] = Y[pa] = Y[ha] = Y[ga] = Y[ma] = Y[va] = Y[ba] = Y[ya] = Y[_a] = !1;
883
+ function Ra(e) {
884
+ return le(e) && Gr(e.length) && !!Y[ge(e)];
885
+ }
886
+ function Fa(e) {
887
+ return function(t) {
888
+ return e(t);
889
+ };
890
+ }
891
+ var Kr = typeof exports == "object" && exports && !exports.nodeType && exports, Be = Kr && typeof module == "object" && module && !module.nodeType && module, Da = Be && Be.exports === Kr, vt = Da && Br.process, dr = function() {
892
+ try {
893
+ var e = Be && Be.require && Be.require("util").types;
894
+ return e || vt && vt.binding && vt.binding("util");
895
+ } catch {
896
+ }
897
+ }(), pr = dr && dr.isTypedArray, Mt = pr ? Fa(pr) : Ra, Ia = Object.prototype, Ma = Ia.hasOwnProperty;
898
+ function Xr(e, t) {
899
+ var r = ae(e), n = !r && St(e), a = !r && !n && Ze(e), s = !r && !n && !a && Mt(e), i = r || n || a || s, c = i ? ta(e.length, String) : [], u = c.length;
900
+ for (var l in e)
901
+ (t || Ma.call(e, l)) && !(i && // Safari 9 has enumerable `arguments.length` in strict mode.
902
+ (l == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
903
+ a && (l == "offset" || l == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
904
+ s && (l == "buffer" || l == "byteLength" || l == "byteOffset") || // Skip index properties.
905
+ Ft(l, u))) && c.push(l);
906
+ return c;
907
+ }
908
+ function Jr(e, t) {
909
+ return function(r) {
910
+ return e(t(r));
911
+ };
912
+ }
913
+ var ka = Jr(Object.keys, Object), La = Object.prototype, Na = La.hasOwnProperty;
914
+ function Ua(e) {
915
+ if (!It(e))
916
+ return ka(e);
917
+ var t = [];
918
+ for (var r in Object(e))
919
+ Na.call(e, r) && r != "constructor" && t.push(r);
920
+ return t;
921
+ }
922
+ function Ba(e) {
923
+ return st(e) ? Xr(e) : Ua(e);
924
+ }
925
+ function Wa(e) {
926
+ var t = [];
927
+ if (e != null)
928
+ for (var r in Object(e))
929
+ t.push(r);
930
+ return t;
931
+ }
932
+ var Va = Object.prototype, Ya = Va.hasOwnProperty;
933
+ function za(e) {
934
+ if (!ie(e))
935
+ return Wa(e);
936
+ var t = It(e), r = [];
937
+ for (var n in e)
938
+ n == "constructor" && (t || !Ya.call(e, n)) || r.push(n);
939
+ return r;
940
+ }
941
+ function Zr(e) {
942
+ return st(e) ? Xr(e, !0) : za(e);
943
+ }
944
+ var Ga = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, Ha = /^\w*$/;
945
+ function qa(e, t) {
946
+ if (ae(e))
947
+ return !1;
948
+ var r = typeof e;
949
+ return r == "number" || r == "symbol" || r == "boolean" || e == null || Rt(e) ? !0 : Ha.test(e) || !Ga.test(e) || t != null && e in Object(t);
950
+ }
951
+ var We = Ae(Object, "create");
952
+ function Ka() {
953
+ this.__data__ = We ? We(null) : {}, this.size = 0;
954
+ }
955
+ function Xa(e) {
956
+ var t = this.has(e) && delete this.__data__[e];
957
+ return this.size -= t ? 1 : 0, t;
958
+ }
959
+ var Ja = "__lodash_hash_undefined__", Za = Object.prototype, Qa = Za.hasOwnProperty;
960
+ function es(e) {
961
+ var t = this.__data__;
962
+ if (We) {
963
+ var r = t[e];
964
+ return r === Ja ? void 0 : r;
965
+ }
966
+ return Qa.call(t, e) ? t[e] : void 0;
967
+ }
968
+ var ts = Object.prototype, rs = ts.hasOwnProperty;
969
+ function ns(e) {
970
+ var t = this.__data__;
971
+ return We ? t[e] !== void 0 : rs.call(t, e);
972
+ }
973
+ var os = "__lodash_hash_undefined__";
974
+ function as(e, t) {
975
+ var r = this.__data__;
976
+ return this.size += this.has(e) ? 0 : 1, r[e] = We && t === void 0 ? os : t, this;
977
+ }
978
+ function Oe(e) {
979
+ var t = -1, r = e == null ? 0 : e.length;
980
+ for (this.clear(); ++t < r; ) {
981
+ var n = e[t];
982
+ this.set(n[0], n[1]);
983
+ }
984
+ }
985
+ Oe.prototype.clear = Ka;
986
+ Oe.prototype.delete = Xa;
987
+ Oe.prototype.get = es;
988
+ Oe.prototype.has = ns;
989
+ Oe.prototype.set = as;
990
+ function ss() {
991
+ this.__data__ = [], this.size = 0;
992
+ }
993
+ function it(e, t) {
994
+ for (var r = e.length; r--; )
995
+ if (Ye(e[r][0], t))
996
+ return r;
997
+ return -1;
998
+ }
999
+ var is = Array.prototype, cs = is.splice;
1000
+ function us(e) {
1001
+ var t = this.__data__, r = it(t, e);
1002
+ if (r < 0)
1003
+ return !1;
1004
+ var n = t.length - 1;
1005
+ return r == n ? t.pop() : cs.call(t, r, 1), --this.size, !0;
1006
+ }
1007
+ function ls(e) {
1008
+ var t = this.__data__, r = it(t, e);
1009
+ return r < 0 ? void 0 : t[r][1];
1010
+ }
1011
+ function fs(e) {
1012
+ return it(this.__data__, e) > -1;
1013
+ }
1014
+ function ds(e, t) {
1015
+ var r = this.__data__, n = it(r, e);
1016
+ return n < 0 ? (++this.size, r.push([e, t])) : r[n][1] = t, this;
1017
+ }
1018
+ function _e(e) {
1019
+ var t = -1, r = e == null ? 0 : e.length;
1020
+ for (this.clear(); ++t < r; ) {
1021
+ var n = e[t];
1022
+ this.set(n[0], n[1]);
1023
+ }
1024
+ }
1025
+ _e.prototype.clear = ss;
1026
+ _e.prototype.delete = us;
1027
+ _e.prototype.get = ls;
1028
+ _e.prototype.has = fs;
1029
+ _e.prototype.set = ds;
1030
+ var Ve = Ae(he, "Map");
1031
+ function ps() {
1032
+ this.size = 0, this.__data__ = {
1033
+ hash: new Oe(),
1034
+ map: new (Ve || _e)(),
1035
+ string: new Oe()
1036
+ };
1037
+ }
1038
+ function hs(e) {
1039
+ var t = typeof e;
1040
+ return t == "string" || t == "number" || t == "symbol" || t == "boolean" ? e !== "__proto__" : e === null;
1041
+ }
1042
+ function ct(e, t) {
1043
+ var r = e.__data__;
1044
+ return hs(t) ? r[typeof t == "string" ? "string" : "hash"] : r.map;
1045
+ }
1046
+ function gs(e) {
1047
+ var t = ct(this, e).delete(e);
1048
+ return this.size -= t ? 1 : 0, t;
1049
+ }
1050
+ function ms(e) {
1051
+ return ct(this, e).get(e);
1052
+ }
1053
+ function vs(e) {
1054
+ return ct(this, e).has(e);
1055
+ }
1056
+ function bs(e, t) {
1057
+ var r = ct(this, e), n = r.size;
1058
+ return r.set(e, t), this.size += r.size == n ? 0 : 1, this;
1059
+ }
1060
+ function we(e) {
1061
+ var t = -1, r = e == null ? 0 : e.length;
1062
+ for (this.clear(); ++t < r; ) {
1063
+ var n = e[t];
1064
+ this.set(n[0], n[1]);
1065
+ }
1066
+ }
1067
+ we.prototype.clear = ps;
1068
+ we.prototype.delete = gs;
1069
+ we.prototype.get = ms;
1070
+ we.prototype.has = vs;
1071
+ we.prototype.set = bs;
1072
+ var ys = "Expected a function";
1073
+ function kt(e, t) {
1074
+ if (typeof e != "function" || t != null && typeof t != "function")
1075
+ throw new TypeError(ys);
1076
+ var r = function() {
1077
+ var n = arguments, a = t ? t.apply(this, n) : n[0], s = r.cache;
1078
+ if (s.has(a))
1079
+ return s.get(a);
1080
+ var i = e.apply(this, n);
1081
+ return r.cache = s.set(a, i) || s, i;
1082
+ };
1083
+ return r.cache = new (kt.Cache || we)(), r;
1084
+ }
1085
+ kt.Cache = we;
1086
+ var _s = 500;
1087
+ function ws(e) {
1088
+ var t = kt(e, function(n) {
1089
+ return r.size === _s && r.clear(), n;
1090
+ }), r = t.cache;
1091
+ return t;
1092
+ }
1093
+ var Ts = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, Cs = /\\(\\)?/g, Ss = ws(function(e) {
1094
+ var t = [];
1095
+ return e.charCodeAt(0) === 46 && t.push(""), e.replace(Ts, function(r, n, a, s) {
1096
+ t.push(a ? s.replace(Cs, "$1") : n || r);
1097
+ }), t;
1098
+ });
1099
+ function xs(e) {
1100
+ return e == null ? "" : Vr(e);
1101
+ }
1102
+ function Ps(e, t) {
1103
+ return ae(e) ? e : qa(e, t) ? [e] : Ss(xs(e));
1104
+ }
1105
+ var Os = 1 / 0;
1106
+ function $s(e) {
1107
+ if (typeof e == "string" || Rt(e))
1108
+ return e;
1109
+ var t = e + "";
1110
+ return t == "0" && 1 / e == -Os ? "-0" : t;
1111
+ }
1112
+ function Es(e, t) {
1113
+ for (var r = -1, n = t.length, a = e.length; ++r < n; )
1114
+ e[a + r] = t[r];
1115
+ return e;
1116
+ }
1117
+ var Qr = Jr(Object.getPrototypeOf, Object), js = "[object Object]", As = Function.prototype, Rs = Object.prototype, en = As.toString, Fs = Rs.hasOwnProperty, Ds = en.call(Object);
1118
+ function Is(e) {
1119
+ if (!le(e) || ge(e) != js)
1120
+ return !1;
1121
+ var t = Qr(e);
1122
+ if (t === null)
1123
+ return !0;
1124
+ var r = Fs.call(t, "constructor") && t.constructor;
1125
+ return typeof r == "function" && r instanceof r && en.call(r) == Ds;
1126
+ }
1127
+ function Ms() {
1128
+ this.__data__ = new _e(), this.size = 0;
1129
+ }
1130
+ function ks(e) {
1131
+ var t = this.__data__, r = t.delete(e);
1132
+ return this.size = t.size, r;
1133
+ }
1134
+ function Ls(e) {
1135
+ return this.__data__.get(e);
1136
+ }
1137
+ function Ns(e) {
1138
+ return this.__data__.has(e);
1139
+ }
1140
+ var Us = 200;
1141
+ function Bs(e, t) {
1142
+ var r = this.__data__;
1143
+ if (r instanceof _e) {
1144
+ var n = r.__data__;
1145
+ if (!Ve || n.length < Us - 1)
1146
+ return n.push([e, t]), this.size = ++r.size, this;
1147
+ r = this.__data__ = new we(n);
1148
+ }
1149
+ return r.set(e, t), this.size = r.size, this;
1150
+ }
1151
+ function be(e) {
1152
+ var t = this.__data__ = new _e(e);
1153
+ this.size = t.size;
1154
+ }
1155
+ be.prototype.clear = Ms;
1156
+ be.prototype.delete = ks;
1157
+ be.prototype.get = Ls;
1158
+ be.prototype.has = Ns;
1159
+ be.prototype.set = Bs;
1160
+ var tn = typeof exports == "object" && exports && !exports.nodeType && exports, hr = tn && typeof module == "object" && module && !module.nodeType && module, Ws = hr && hr.exports === tn, gr = Ws ? he.Buffer : void 0;
1161
+ gr && gr.allocUnsafe;
1162
+ function Vs(e, t) {
1163
+ return e.slice();
1164
+ }
1165
+ function Ys(e, t) {
1166
+ for (var r = -1, n = e == null ? 0 : e.length, a = 0, s = []; ++r < n; ) {
1167
+ var i = e[r];
1168
+ t(i, r, e) && (s[a++] = i);
1169
+ }
1170
+ return s;
1171
+ }
1172
+ function zs() {
1173
+ return [];
1174
+ }
1175
+ var Gs = Object.prototype, Hs = Gs.propertyIsEnumerable, mr = Object.getOwnPropertySymbols, qs = mr ? function(e) {
1176
+ return e == null ? [] : (e = Object(e), Ys(mr(e), function(t) {
1177
+ return Hs.call(e, t);
1178
+ }));
1179
+ } : zs;
1180
+ function Ks(e, t, r) {
1181
+ var n = t(e);
1182
+ return ae(e) ? n : Es(n, r(e));
1183
+ }
1184
+ function vr(e) {
1185
+ return Ks(e, Ba, qs);
1186
+ }
1187
+ var xt = Ae(he, "DataView"), Pt = Ae(he, "Promise"), Ot = Ae(he, "Set"), br = "[object Map]", Xs = "[object Object]", yr = "[object Promise]", _r = "[object Set]", wr = "[object WeakMap]", Tr = "[object DataView]", Js = je(xt), Zs = je(Ve), Qs = je(Pt), ei = je(Ot), ti = je(Ct), Ce = ge;
1188
+ (xt && Ce(new xt(new ArrayBuffer(1))) != Tr || Ve && Ce(new Ve()) != br || Pt && Ce(Pt.resolve()) != yr || Ot && Ce(new Ot()) != _r || Ct && Ce(new Ct()) != wr) && (Ce = function(e) {
1189
+ var t = ge(e), r = t == Xs ? e.constructor : void 0, n = r ? je(r) : "";
1190
+ if (n)
1191
+ switch (n) {
1192
+ case Js:
1193
+ return Tr;
1194
+ case Zs:
1195
+ return br;
1196
+ case Qs:
1197
+ return yr;
1198
+ case ei:
1199
+ return _r;
1200
+ case ti:
1201
+ return wr;
1202
+ }
1203
+ return t;
1204
+ });
1205
+ var Qe = he.Uint8Array;
1206
+ function ri(e) {
1207
+ var t = new e.constructor(e.byteLength);
1208
+ return new Qe(t).set(new Qe(e)), t;
1209
+ }
1210
+ function ni(e, t) {
1211
+ var r = ri(e.buffer);
1212
+ return new e.constructor(r, e.byteOffset, e.length);
1213
+ }
1214
+ function oi(e) {
1215
+ return typeof e.constructor == "function" && !It(e) ? Do(Qr(e)) : {};
1216
+ }
1217
+ var ai = "__lodash_hash_undefined__";
1218
+ function si(e) {
1219
+ return this.__data__.set(e, ai), this;
1220
+ }
1221
+ function ii(e) {
1222
+ return this.__data__.has(e);
1223
+ }
1224
+ function et(e) {
1225
+ var t = -1, r = e == null ? 0 : e.length;
1226
+ for (this.__data__ = new we(); ++t < r; )
1227
+ this.add(e[t]);
1228
+ }
1229
+ et.prototype.add = et.prototype.push = si;
1230
+ et.prototype.has = ii;
1231
+ function ci(e, t) {
1232
+ for (var r = -1, n = e == null ? 0 : e.length; ++r < n; )
1233
+ if (t(e[r], r, e))
1234
+ return !0;
1235
+ return !1;
1236
+ }
1237
+ function ui(e, t) {
1238
+ return e.has(t);
1239
+ }
1240
+ var li = 1, fi = 2;
1241
+ function rn(e, t, r, n, a, s) {
1242
+ var i = r & li, c = e.length, u = t.length;
1243
+ if (c != u && !(i && u > c))
1244
+ return !1;
1245
+ var l = s.get(e), d = s.get(t);
1246
+ if (l && d)
1247
+ return l == t && d == e;
1248
+ var h = -1, p = !0, C = r & fi ? new et() : void 0;
1249
+ for (s.set(e, t), s.set(t, e); ++h < c; ) {
1250
+ var g = e[h], O = t[h];
1251
+ if (n)
1252
+ var E = i ? n(O, g, h, t, e, s) : n(g, O, h, e, t, s);
1253
+ if (E !== void 0) {
1254
+ if (E)
1255
+ continue;
1256
+ p = !1;
1257
+ break;
1258
+ }
1259
+ if (C) {
1260
+ if (!ci(t, function(M, D) {
1261
+ if (!ui(C, D) && (g === M || a(g, M, r, n, s)))
1262
+ return C.push(D);
1263
+ })) {
1264
+ p = !1;
1265
+ break;
1266
+ }
1267
+ } else if (!(g === O || a(g, O, r, n, s))) {
1268
+ p = !1;
1269
+ break;
1270
+ }
1271
+ }
1272
+ return s.delete(e), s.delete(t), p;
1273
+ }
1274
+ function di(e) {
1275
+ var t = -1, r = Array(e.size);
1276
+ return e.forEach(function(n, a) {
1277
+ r[++t] = [a, n];
1278
+ }), r;
1279
+ }
1280
+ function pi(e) {
1281
+ var t = -1, r = Array(e.size);
1282
+ return e.forEach(function(n) {
1283
+ r[++t] = n;
1284
+ }), r;
1285
+ }
1286
+ var hi = 1, gi = 2, mi = "[object Boolean]", vi = "[object Date]", bi = "[object Error]", yi = "[object Map]", _i = "[object Number]", wi = "[object RegExp]", Ti = "[object Set]", Ci = "[object String]", Si = "[object Symbol]", xi = "[object ArrayBuffer]", Pi = "[object DataView]", Cr = Pe ? Pe.prototype : void 0, bt = Cr ? Cr.valueOf : void 0;
1287
+ function Oi(e, t, r, n, a, s, i) {
1288
+ switch (r) {
1289
+ case Pi:
1290
+ if (e.byteLength != t.byteLength || e.byteOffset != t.byteOffset)
1291
+ return !1;
1292
+ e = e.buffer, t = t.buffer;
1293
+ case xi:
1294
+ return !(e.byteLength != t.byteLength || !s(new Qe(e), new Qe(t)));
1295
+ case mi:
1296
+ case vi:
1297
+ case _i:
1298
+ return Ye(+e, +t);
1299
+ case bi:
1300
+ return e.name == t.name && e.message == t.message;
1301
+ case wi:
1302
+ case Ci:
1303
+ return e == t + "";
1304
+ case yi:
1305
+ var c = di;
1306
+ case Ti:
1307
+ var u = n & hi;
1308
+ if (c || (c = pi), e.size != t.size && !u)
1309
+ return !1;
1310
+ var l = i.get(e);
1311
+ if (l)
1312
+ return l == t;
1313
+ n |= gi, i.set(e, t);
1314
+ var d = rn(c(e), c(t), n, a, s, i);
1315
+ return i.delete(e), d;
1316
+ case Si:
1317
+ if (bt)
1318
+ return bt.call(e) == bt.call(t);
1319
+ }
1320
+ return !1;
1321
+ }
1322
+ var $i = 1, Ei = Object.prototype, ji = Ei.hasOwnProperty;
1323
+ function Ai(e, t, r, n, a, s) {
1324
+ var i = r & $i, c = vr(e), u = c.length, l = vr(t), d = l.length;
1325
+ if (u != d && !i)
1326
+ return !1;
1327
+ for (var h = u; h--; ) {
1328
+ var p = c[h];
1329
+ if (!(i ? p in t : ji.call(t, p)))
1330
+ return !1;
1331
+ }
1332
+ var C = s.get(e), g = s.get(t);
1333
+ if (C && g)
1334
+ return C == t && g == e;
1335
+ var O = !0;
1336
+ s.set(e, t), s.set(t, e);
1337
+ for (var E = i; ++h < u; ) {
1338
+ p = c[h];
1339
+ var M = e[p], D = t[p];
1340
+ if (n)
1341
+ var G = i ? n(D, M, p, t, e, s) : n(M, D, p, e, t, s);
1342
+ if (!(G === void 0 ? M === D || a(M, D, r, n, s) : G)) {
1343
+ O = !1;
1344
+ break;
1345
+ }
1346
+ E || (E = p == "constructor");
1347
+ }
1348
+ if (O && !E) {
1349
+ var q = e.constructor, H = t.constructor;
1350
+ q != H && "constructor" in e && "constructor" in t && !(typeof q == "function" && q instanceof q && typeof H == "function" && H instanceof H) && (O = !1);
1351
+ }
1352
+ return s.delete(e), s.delete(t), O;
1353
+ }
1354
+ var Ri = 1, Sr = "[object Arguments]", xr = "[object Array]", qe = "[object Object]", Fi = Object.prototype, Pr = Fi.hasOwnProperty;
1355
+ function Di(e, t, r, n, a, s) {
1356
+ var i = ae(e), c = ae(t), u = i ? xr : Ce(e), l = c ? xr : Ce(t);
1357
+ u = u == Sr ? qe : u, l = l == Sr ? qe : l;
1358
+ var d = u == qe, h = l == qe, p = u == l;
1359
+ if (p && Ze(e)) {
1360
+ if (!Ze(t))
1361
+ return !1;
1362
+ i = !0, d = !1;
1363
+ }
1364
+ if (p && !d)
1365
+ return s || (s = new be()), i || Mt(e) ? rn(e, t, r, n, a, s) : Oi(e, t, u, r, n, a, s);
1366
+ if (!(r & Ri)) {
1367
+ var C = d && Pr.call(e, "__wrapped__"), g = h && Pr.call(t, "__wrapped__");
1368
+ if (C || g) {
1369
+ var O = C ? e.value() : e, E = g ? t.value() : t;
1370
+ return s || (s = new be()), a(O, E, r, n, s);
1371
+ }
1372
+ }
1373
+ return p ? (s || (s = new be()), Ai(e, t, r, n, a, s)) : !1;
1374
+ }
1375
+ function nn(e, t, r, n, a) {
1376
+ return e === t ? !0 : e == null || t == null || !le(e) && !le(t) ? e !== e && t !== t : Di(e, t, r, n, nn, a);
1377
+ }
1378
+ function Ii(e) {
1379
+ return function(t, r, n) {
1380
+ for (var a = -1, s = Object(t), i = n(t), c = i.length; c--; ) {
1381
+ var u = i[++a];
1382
+ if (r(s[u], u, s) === !1)
1383
+ break;
1384
+ }
1385
+ return t;
1386
+ };
1387
+ }
1388
+ var Mi = Ii();
1389
+ function $t(e, t, r) {
1390
+ (r !== void 0 && !Ye(e[t], r) || r === void 0 && !(t in e)) && Dt(e, t, r);
1391
+ }
1392
+ function ki(e) {
1393
+ return le(e) && st(e);
1394
+ }
1395
+ function Et(e, t) {
1396
+ if (!(t === "constructor" && typeof e[t] == "function") && t != "__proto__")
1397
+ return e[t];
1398
+ }
1399
+ function Li(e) {
1400
+ return qo(e, Zr(e));
1401
+ }
1402
+ function Ni(e, t, r, n, a, s, i) {
1403
+ var c = Et(e, r), u = Et(t, r), l = i.get(u);
1404
+ if (l) {
1405
+ $t(e, r, l);
1406
+ return;
1407
+ }
1408
+ var d = s ? s(c, u, r + "", e, t, i) : void 0, h = d === void 0;
1409
+ if (h) {
1410
+ var p = ae(u), C = !p && Ze(u), g = !p && !C && Mt(u);
1411
+ d = u, p || C || g ? ae(c) ? d = c : ki(c) ? d = Mo(c) : C ? (h = !1, d = Vs(u)) : g ? (h = !1, d = ni(u)) : d = [] : Is(u) || St(u) ? (d = c, St(c) ? d = Li(c) : (!ie(c) || te(c)) && (d = oi(u))) : h = !1;
1412
+ }
1413
+ h && (i.set(u, d), a(d, u, n, s, i), i.delete(u)), $t(e, r, d);
1414
+ }
1415
+ function on(e, t, r, n, a) {
1416
+ e !== t && Mi(t, function(s, i) {
1417
+ if (a || (a = new be()), ie(s))
1418
+ Ni(e, t, i, r, on, n, a);
1419
+ else {
1420
+ var c = n ? n(Et(e, i), s, i + "", e, t, a) : void 0;
1421
+ c === void 0 && (c = s), $t(e, i, c);
1422
+ }
1423
+ }, Zr);
1424
+ }
1425
+ var Ui = "[object String]";
1426
+ function an(e) {
1427
+ return typeof e == "string" || !ae(e) && le(e) && ge(e) == Ui;
1428
+ }
1429
+ var Bi = "[object Boolean]";
1430
+ function jt(e) {
1431
+ return e === !0 || e === !1 || le(e) && ge(e) == Bi;
1432
+ }
1433
+ function tt(e, t) {
1434
+ return nn(e, t);
1435
+ }
1436
+ var Wi = "[object Number]";
1437
+ function Vi(e) {
1438
+ return typeof e == "number" || le(e) && ge(e) == Wi;
1439
+ }
1440
+ function Or(e) {
1441
+ return e == null;
1442
+ }
1443
+ function Yi(e) {
1444
+ return e === null;
1445
+ }
1446
+ var Ie = Qo(function(e, t, r) {
1447
+ on(e, t, r);
1448
+ });
1449
+ function zi(e, t, r, n) {
1450
+ if (!ie(e))
1451
+ return e;
1452
+ t = Ps(t, e);
1453
+ for (var a = -1, s = t.length, i = s - 1, c = e; c != null && ++a < s; ) {
1454
+ var u = $s(t[a]), l = r;
1455
+ if (u === "__proto__" || u === "constructor" || u === "prototype")
1456
+ return e;
1457
+ if (a != i) {
1458
+ var d = c[u];
1459
+ l = void 0, l === void 0 && (l = ie(d) ? d : Ft(t[a + 1]) ? [] : {});
1460
+ }
1461
+ zr(c, u, l), c = c[u];
1462
+ }
1463
+ return e;
1464
+ }
1465
+ function sn(e, t, r) {
1466
+ return e == null ? e : zi(e, t, r);
1467
+ }
1468
+ function Gi(e) {
1469
+ const { extendActionsProps: t } = fn();
1470
+ return {
1471
+ actionsProps: {
1472
+ ...Ie(Ie({
1473
+ items: [],
1474
+ max: 10
1475
+ }, t), e)
1476
+ }
1477
+ };
1478
+ }
1479
+ function cn(e) {
1480
+ return "component" in e;
1481
+ }
1482
+ function Hi(e) {
1483
+ return "render" in e;
1484
+ }
1485
+ function qi(e) {
1486
+ const { type: t, disabled: r, items: n, max: a } = e, s = n.map((c) => {
1487
+ const u = { ...c };
1488
+ return cn(u) && (u.componentProps = {
1489
+ type: t,
1490
+ disabled: r,
1491
+ ...u.componentProps
1492
+ }), u;
1493
+ }), i = Vi(a) && a >= 0;
1494
+ return {
1495
+ showActionItems: s.slice(
1496
+ 0,
1497
+ i ? a : s.length
1498
+ ),
1499
+ ellipsisActionItems: s.slice(
1500
+ i ? a : s.length
1501
+ )
1502
+ };
1503
+ }
1504
+ const Ki = (e) => {
1505
+ const { componentProps: t } = e, r = () => {
1506
+ const { ...n } = t;
1507
+ return n;
1508
+ };
1509
+ return /* @__PURE__ */ w.jsx(xe, { ...r() });
1510
+ }, Xi = (e) => {
1511
+ const { componentProps: t } = e, n = (() => {
1512
+ const { dropDownItems: a, onClick: s, ...i } = t;
1513
+ return i;
1514
+ })();
1515
+ return (
1516
+ /** items: [] 一定要给不然antd会报错 */
1517
+ /* @__PURE__ */ w.jsx(
1518
+ Rr,
1519
+ {
1520
+ disabled: n.disabled,
1521
+ menu: {
1522
+ items: (t == null ? void 0 : t.dropDownItems) || [],
1523
+ onClick: t == null ? void 0 : t.onClick
1524
+ },
1525
+ trigger: ["click"],
1526
+ children: /* @__PURE__ */ w.jsx("div", { children: /* @__PURE__ */ w.jsxs(xe, { ...n, children: [
1527
+ n.children,
1528
+ /* @__PURE__ */ w.jsx(Ur, {})
1529
+ ] }) })
1530
+ }
1531
+ )
1532
+ );
1533
+ }, rt = /* @__PURE__ */ new Map();
1534
+ rt.set("Button", Ki);
1535
+ rt.set("Dropdown", Xi);
1536
+ function un() {
1537
+ const { setExtendActionsComp: e } = fn();
1538
+ return e(rt), {
1539
+ renderContent: yt(
1540
+ (r, n) => {
1541
+ const a = cn(r), s = Hi(r);
1542
+ if (a) {
1543
+ const i = rt.get(r.component);
1544
+ return /* @__PURE__ */ w.jsx(i, { ...r }, n);
1545
+ }
1546
+ return s ? /* @__PURE__ */ w.jsx("div", { children: r.render }, n) : null;
1547
+ },
1548
+ []
1549
+ )
1550
+ };
1551
+ }
1552
+ const ln = Ln({}), su = (e) => {
1553
+ const { extendProps: t, extendComp: r } = e.value;
1554
+ return /* @__PURE__ */ w.jsx(
1555
+ ln.Provider,
1556
+ {
1557
+ value: {
1558
+ extendProps: t,
1559
+ extendComp: r
1560
+ },
1561
+ children: e.children
1562
+ }
1563
+ );
1564
+ }, Lt = () => Nn(ln), fn = () => {
1565
+ const { extendProps: e, extendComp: t } = Lt(), r = (n) => {
1566
+ const a = t == null ? void 0 : t.actions;
1567
+ a && Object.keys(a).forEach((s) => {
1568
+ n.set(s, a[s]);
1569
+ });
1570
+ };
1571
+ return {
1572
+ extendActionsProps: e == null ? void 0 : e.actions,
1573
+ setExtendActionsComp: r
1574
+ };
1575
+ }, { useToken: Ji } = Fr, Zi = ({
1576
+ items: e,
1577
+ actionsProps: t
1578
+ }) => {
1579
+ const { type: r, disabled: n } = t, { renderContent: a } = un(), { token: s } = Ji(), i = {
1580
+ backgroundColor: s.colorBgElevated,
1581
+ borderRadius: s.borderRadiusLG,
1582
+ boxShadow: s.boxShadowSecondary
1583
+ }, c = () => /* @__PURE__ */ w.jsx("div", { style: i, children: /* @__PURE__ */ w.jsx(Bn, { style: { padding: 8 }, children: e == null ? void 0 : e.map((u, l) => a(u, l)) }) });
1584
+ return (
1585
+ /** items: [] 一定要给不然antd会报错 */
1586
+ /* @__PURE__ */ w.jsx(
1587
+ Rr,
1588
+ {
1589
+ disabled: n,
1590
+ menu: { items: [] },
1591
+ dropdownRender: c,
1592
+ trigger: ["click"],
1593
+ children: /* @__PURE__ */ w.jsxs(xe, { type: r, children: [
1594
+ "更多",
1595
+ /* @__PURE__ */ w.jsx(Ur, {})
1596
+ ] })
1597
+ }
1598
+ )
1599
+ );
1600
+ }, dn = (e) => {
1601
+ const { actionsProps: t } = Gi(e), { showActionItems: r, ellipsisActionItems: n } = qi(t), { renderContent: a } = un();
1602
+ return t != null && t.render ? t.render : /* @__PURE__ */ w.jsxs(Ar, { children: [
1603
+ r == null ? void 0 : r.map((s, i) => a(s, i)),
1604
+ n != null && n.length ? /* @__PURE__ */ w.jsx(Zi, { actionsProps: t, items: n }) : null
1605
+ ] });
1606
+ }, iu = () => /* @__PURE__ */ w.jsx(w.Fragment, {});
1607
+ function Nt(e) {
1608
+ return "component" in e;
1609
+ }
1610
+ function Ut(e) {
1611
+ return "render" in e;
1612
+ }
1613
+ function Qi(e) {
1614
+ return e.includes("Input") || e.includes("Complete") ? "请输入" : e.includes("Picker") || e.includes("Select") || e.includes("Cascader") || e.includes("Checkbox") || e.includes("Radio") || e.includes("Switch") ? "请选择" : "";
1615
+ }
1616
+ function ec(e, t, r) {
1617
+ ["DatePicker", "MonthPicker", "WeekPicker", "TimePicker"].includes(
1618
+ t
1619
+ ) ? e.type = r ? "string" : "object" : ["RangePicker", "Upload", "CheckboxGroup", "TimePicker"].includes(t) ? e.type = "array" : ["InputNumber"].includes(t) && (e.type = "number");
1620
+ }
1621
+ const tc = [
1622
+ "DatePicker",
1623
+ "MonthPicker",
1624
+ "RangePicker",
1625
+ "WeekPicker",
1626
+ "TimePicker"
1627
+ ], rc = (e) => {
1628
+ const { show: t, ifShow: r, required: n, disabled: a, componentProps: s } = e;
1629
+ return !!(te(t) || te(r) || te(n) || te(a) || te(s) || Ut(e));
1630
+ }, nc = (e) => [
1631
+ "application/json",
1632
+ "application/javascript",
1633
+ "text/plain",
1634
+ "text/html",
1635
+ "text/css"
1636
+ ].includes(e) ? `${e}; charset=utf-8` : e, oc = (e, t, r) => {
1637
+ const n = re(null), a = re(null), { handleCollapseChangeFalse: s } = r.current || {}, { show: i, ifShow: c } = e;
1638
+ let u = !0, l = !0;
1639
+ if (jt(i) && (u = i), jt(c) && (l = c), te(i)) {
1640
+ u = i({ model: t });
1641
+ const d = Or(n.current) ? u : n.current;
1642
+ ye(() => {
1643
+ tt(u, d) || s && s();
1644
+ }, [t]);
1645
+ }
1646
+ if (te(c)) {
1647
+ l = c({ model: t });
1648
+ const d = Or(a.current) ? l : a.current;
1649
+ ye(() => {
1650
+ tt(l, d) || s && s();
1651
+ }, [t]);
1652
+ }
1653
+ return n.current = u, a.current = l, { isShow: u, isIfShow: l };
1654
+ }, ac = (e, t) => {
1655
+ const { collapsible: r, collapseNum: n } = e, [a, s] = Se(
1656
+ !!(r && t >= n)
1657
+ );
1658
+ return {
1659
+ itemCollapse: a,
1660
+ setItemCollapse: s
1661
+ };
1662
+ }, sc = ({
1663
+ item: e,
1664
+ model: t,
1665
+ isShow: r,
1666
+ componentProps: n
1667
+ }) => {
1668
+ const { rules: a = [], label: s, required: i } = e;
1669
+ let c = a;
1670
+ const u = Nt(e), l = u ? Qi(e.component) + s : "";
1671
+ function d(g, O) {
1672
+ const E = g.message || l;
1673
+ return O === void 0 || Yi(O) || Array.isArray(O) && O.length === 0 || typeof O == "string" && O.trim() === "" || typeof O == "object" && Reflect.has(O, "checked") && Reflect.has(O, "halfChecked") && Array.isArray(O.checked) && Array.isArray(O.halfChecked) && O.checked.length === 0 && O.halfChecked.length === 0 ? Promise.reject(E) : Promise.resolve();
1674
+ }
1675
+ const h = te(i) ? i({ model: t }) : i;
1676
+ h && (!c || c.length === 0 ? c = [{ required: h, validator: d }] : c.findIndex(
1677
+ (O) => Reflect.has(O, "required")
1678
+ ) === -1 && c.push({ required: h, validator: d }));
1679
+ const p = c.findIndex(
1680
+ (g) => Reflect.has(g, "required") && !Reflect.has(g, "validator")
1681
+ );
1682
+ if (p !== -1) {
1683
+ const g = c[p];
1684
+ if (r || (g.required = !1), u) {
1685
+ const { component: O } = e;
1686
+ Reflect.has(g, "type") || (g.type = O === "InputNumber" ? "number" : "string"), g.message = g.message || l, (O.includes("Input") || O.includes("Textarea")) && (g.whitespace = !0);
1687
+ const E = n.valueFormat;
1688
+ ec(g, O, E);
1689
+ }
1690
+ }
1691
+ const C = c.findIndex((g) => g.max);
1692
+ return C !== -1 && !c[C].validator && (c[C].message = c[C].message || `字符数应小于${c[C].max}位`), {
1693
+ rules: c
1694
+ };
1695
+ }, ic = (e, t, r) => {
1696
+ const { disabled: n } = e;
1697
+ let a = !1;
1698
+ const { disabled: s } = t;
1699
+ return te(s) && (a = s({ model: r })), jt(s) && (a = s), {
1700
+ disabled: Reflect.has(t, "disabled") ? a : n
1701
+ };
1702
+ }, cc = (e, t) => {
1703
+ const r = {}, { componentProps: n = {} } = e;
1704
+ return te(n) && Object.assign(r, n({ model: t })), Object.assign(r, n), {
1705
+ componentProps: r
1706
+ };
1707
+ }, uc = (e, t) => {
1708
+ const { colProps: r = {} } = e, { colProps: n = { span: 24 } } = t;
1709
+ return { colProps: { ...n, ...r } };
1710
+ }, lc = ({ formProps: e }) => {
1711
+ const { items: t } = e;
1712
+ return { formItems: t.map((n) => ({ ...n })) };
1713
+ }, fc = (e, t) => {
1714
+ const r = (c) => (Object.keys(c).forEach((u) => {
1715
+ Object.defineProperty(c, u, {
1716
+ value: c[u],
1717
+ // 保留原始值
1718
+ writable: !1,
1719
+ // 设置为不可写
1720
+ enumerable: !0,
1721
+ // 可枚举
1722
+ configurable: !1
1723
+ // 可配置
1724
+ });
1725
+ }), c), n = {};
1726
+ e.items.forEach((c) => {
1727
+ n[c.name] = c.initialValue;
1728
+ });
1729
+ const a = rc(t), s = a ? Xe.useWatch((c) => r(c)) : null;
1730
+ return {
1731
+ rewritingModel: ot(() => s || r(n), [s]),
1732
+ isusewatch: a
1733
+ };
1734
+ }, cu = () => {
1735
+ const e = re(null);
1736
+ function t(n) {
1737
+ e.current = n;
1738
+ }
1739
+ const r = {
1740
+ getFieldsValue: (...n) => {
1741
+ if (!e.current)
1742
+ throw new Error("表单还没初始化完成");
1743
+ return e.current.getFieldsValue(...n);
1744
+ },
1745
+ setFieldsValue: (...n) => {
1746
+ if (!e.current)
1747
+ throw new Error("表单还没初始化完成");
1748
+ return e.current.setFieldsValue(...n);
1749
+ },
1750
+ resetFields: (...n) => {
1751
+ if (!e.current)
1752
+ throw new Error("表单还没初始化完成");
1753
+ return e.current.resetFields(...n);
1754
+ },
1755
+ validator: (...n) => {
1756
+ if (!e.current)
1757
+ throw new Error("表单还没初始化完成");
1758
+ return e.current.validator(...n);
1759
+ },
1760
+ scrollToField: (...n) => {
1761
+ if (!e.current)
1762
+ throw new Error("表单还没初始化完成");
1763
+ return e.current.scrollToField(...n);
1764
+ }
1765
+ };
1766
+ return ye(() => (console.log(
1767
+ "ParentComponent is mounted====================================="
1768
+ ), () => {
1769
+ console.log(
1770
+ "ParentComponent is unmounted===================================="
1771
+ ), e.current = null;
1772
+ }), []), [t, r];
1773
+ };
1774
+ var pn = { exports: {} };
1775
+ (function(e, t) {
1776
+ (function(r, n) {
1777
+ e.exports = n();
1778
+ })(to, function() {
1779
+ var r = 1e3, n = 6e4, a = 36e5, s = "millisecond", i = "second", c = "minute", u = "hour", l = "day", d = "week", h = "month", p = "quarter", C = "year", g = "date", O = "Invalid Date", E = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, M = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, D = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(T) {
1780
+ var m = ["th", "st", "nd", "rd"], v = T % 100;
1781
+ return "[" + T + (m[(v - 20) % 10] || m[v] || m[0]) + "]";
1782
+ } }, G = function(T, m, v) {
1783
+ var P = String(T);
1784
+ return !P || P.length >= m ? T : "" + Array(m + 1 - P.length).join(v) + T;
1785
+ }, q = { s: G, z: function(T) {
1786
+ var m = -T.utcOffset(), v = Math.abs(m), P = Math.floor(v / 60), y = v % 60;
1787
+ return (m <= 0 ? "+" : "-") + G(P, 2, "0") + ":" + G(y, 2, "0");
1788
+ }, m: function T(m, v) {
1789
+ if (m.date() < v.date())
1790
+ return -T(v, m);
1791
+ var P = 12 * (v.year() - m.year()) + (v.month() - m.month()), y = m.clone().add(P, h), A = v - y < 0, R = m.clone().add(P + (A ? -1 : 1), h);
1792
+ return +(-(P + (v - y) / (A ? y - R : R - y)) || 0);
1793
+ }, a: function(T) {
1794
+ return T < 0 ? Math.ceil(T) || 0 : Math.floor(T);
1795
+ }, p: function(T) {
1796
+ return { M: h, y: C, w: d, d: l, D: g, h: u, m: c, s: i, ms: s, Q: p }[T] || String(T || "").toLowerCase().replace(/s$/, "");
1797
+ }, u: function(T) {
1798
+ return T === void 0;
1799
+ } }, H = "en", Q = {};
1800
+ Q[H] = D;
1801
+ var F = "$isDayjsObject", _ = function(T) {
1802
+ return T instanceof k || !(!T || !T[F]);
1803
+ }, $ = function T(m, v, P) {
1804
+ var y;
1805
+ if (!m)
1806
+ return H;
1807
+ if (typeof m == "string") {
1808
+ var A = m.toLowerCase();
1809
+ Q[A] && (y = A), v && (Q[A] = v, y = A);
1810
+ var R = m.split("-");
1811
+ if (!y && R.length > 1)
1812
+ return T(R[0]);
1813
+ } else {
1814
+ var U = m.name;
1815
+ Q[U] = m, y = U;
1816
+ }
1817
+ return !P && y && (H = y), y || !P && H;
1818
+ }, S = function(T, m) {
1819
+ if (_(T))
1820
+ return T.clone();
1821
+ var v = typeof m == "object" ? m : {};
1822
+ return v.date = T, v.args = arguments, new k(v);
1823
+ }, x = q;
1824
+ x.l = $, x.i = _, x.w = function(T, m) {
1825
+ return S(T, { locale: m.$L, utc: m.$u, x: m.$x, $offset: m.$offset });
1826
+ };
1827
+ var k = function() {
1828
+ function T(v) {
1829
+ this.$L = $(v.locale, null, !0), this.parse(v), this.$x = this.$x || v.x || {}, this[F] = !0;
1830
+ }
1831
+ var m = T.prototype;
1832
+ return m.parse = function(v) {
1833
+ this.$d = function(P) {
1834
+ var y = P.date, A = P.utc;
1835
+ if (y === null)
1836
+ return /* @__PURE__ */ new Date(NaN);
1837
+ if (x.u(y))
1838
+ return /* @__PURE__ */ new Date();
1839
+ if (y instanceof Date)
1840
+ return new Date(y);
1841
+ if (typeof y == "string" && !/Z$/i.test(y)) {
1842
+ var R = y.match(E);
1843
+ if (R) {
1844
+ var U = R[2] - 1 || 0, z = (R[7] || "0").substring(0, 3);
1845
+ return A ? new Date(Date.UTC(R[1], U, R[3] || 1, R[4] || 0, R[5] || 0, R[6] || 0, z)) : new Date(R[1], U, R[3] || 1, R[4] || 0, R[5] || 0, R[6] || 0, z);
1846
+ }
1847
+ }
1848
+ return new Date(y);
1849
+ }(v), this.init();
1850
+ }, m.init = function() {
1851
+ var v = this.$d;
1852
+ this.$y = v.getFullYear(), this.$M = v.getMonth(), this.$D = v.getDate(), this.$W = v.getDay(), this.$H = v.getHours(), this.$m = v.getMinutes(), this.$s = v.getSeconds(), this.$ms = v.getMilliseconds();
1853
+ }, m.$utils = function() {
1854
+ return x;
1855
+ }, m.isValid = function() {
1856
+ return this.$d.toString() !== O;
1857
+ }, m.isSame = function(v, P) {
1858
+ var y = S(v);
1859
+ return this.startOf(P) <= y && y <= this.endOf(P);
1860
+ }, m.isAfter = function(v, P) {
1861
+ return S(v) < this.startOf(P);
1862
+ }, m.isBefore = function(v, P) {
1863
+ return this.endOf(P) < S(v);
1864
+ }, m.$g = function(v, P, y) {
1865
+ return x.u(v) ? this[P] : this.set(y, v);
1866
+ }, m.unix = function() {
1867
+ return Math.floor(this.valueOf() / 1e3);
1868
+ }, m.valueOf = function() {
1869
+ return this.$d.getTime();
1870
+ }, m.startOf = function(v, P) {
1871
+ var y = this, A = !!x.u(P) || P, R = x.p(v), U = function(ue, Z) {
1872
+ var pe = x.w(y.$u ? Date.UTC(y.$y, Z, ue) : new Date(y.$y, Z, ue), y);
1873
+ return A ? pe : pe.endOf(l);
1874
+ }, z = function(ue, Z) {
1875
+ return x.w(y.toDate()[ue].apply(y.toDate("s"), (A ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(Z)), y);
1876
+ }, K = this.$W, ee = this.$M, oe = this.$D, fe = "set" + (this.$u ? "UTC" : "");
1877
+ switch (R) {
1878
+ case C:
1879
+ return A ? U(1, 0) : U(31, 11);
1880
+ case h:
1881
+ return A ? U(1, ee) : U(0, ee + 1);
1882
+ case d:
1883
+ var ce = this.$locale().weekStart || 0, de = (K < ce ? K + 7 : K) - ce;
1884
+ return U(A ? oe - de : oe + (6 - de), ee);
1885
+ case l:
1886
+ case g:
1887
+ return z(fe + "Hours", 0);
1888
+ case u:
1889
+ return z(fe + "Minutes", 1);
1890
+ case c:
1891
+ return z(fe + "Seconds", 2);
1892
+ case i:
1893
+ return z(fe + "Milliseconds", 3);
1894
+ default:
1895
+ return this.clone();
1896
+ }
1897
+ }, m.endOf = function(v) {
1898
+ return this.startOf(v, !1);
1899
+ }, m.$set = function(v, P) {
1900
+ var y, A = x.p(v), R = "set" + (this.$u ? "UTC" : ""), U = (y = {}, y[l] = R + "Date", y[g] = R + "Date", y[h] = R + "Month", y[C] = R + "FullYear", y[u] = R + "Hours", y[c] = R + "Minutes", y[i] = R + "Seconds", y[s] = R + "Milliseconds", y)[A], z = A === l ? this.$D + (P - this.$W) : P;
1901
+ if (A === h || A === C) {
1902
+ var K = this.clone().set(g, 1);
1903
+ K.$d[U](z), K.init(), this.$d = K.set(g, Math.min(this.$D, K.daysInMonth())).$d;
1904
+ } else
1905
+ U && this.$d[U](z);
1906
+ return this.init(), this;
1907
+ }, m.set = function(v, P) {
1908
+ return this.clone().$set(v, P);
1909
+ }, m.get = function(v) {
1910
+ return this[x.p(v)]();
1911
+ }, m.add = function(v, P) {
1912
+ var y, A = this;
1913
+ v = Number(v);
1914
+ var R = x.p(P), U = function(ee) {
1915
+ var oe = S(A);
1916
+ return x.w(oe.date(oe.date() + Math.round(ee * v)), A);
1917
+ };
1918
+ if (R === h)
1919
+ return this.set(h, this.$M + v);
1920
+ if (R === C)
1921
+ return this.set(C, this.$y + v);
1922
+ if (R === l)
1923
+ return U(1);
1924
+ if (R === d)
1925
+ return U(7);
1926
+ var z = (y = {}, y[c] = n, y[u] = a, y[i] = r, y)[R] || 1, K = this.$d.getTime() + v * z;
1927
+ return x.w(K, this);
1928
+ }, m.subtract = function(v, P) {
1929
+ return this.add(-1 * v, P);
1930
+ }, m.format = function(v) {
1931
+ var P = this, y = this.$locale();
1932
+ if (!this.isValid())
1933
+ return y.invalidDate || O;
1934
+ var A = v || "YYYY-MM-DDTHH:mm:ssZ", R = x.z(this), U = this.$H, z = this.$m, K = this.$M, ee = y.weekdays, oe = y.months, fe = y.meridiem, ce = function(Z, pe, Te, Re) {
1935
+ return Z && (Z[pe] || Z(P, A)) || Te[pe].slice(0, Re);
1936
+ }, de = function(Z) {
1937
+ return x.s(U % 12 || 12, Z, "0");
1938
+ }, ue = fe || function(Z, pe, Te) {
1939
+ var Re = Z < 12 ? "AM" : "PM";
1940
+ return Te ? Re.toLowerCase() : Re;
1941
+ };
1942
+ return A.replace(M, function(Z, pe) {
1943
+ return pe || function(Te) {
1944
+ switch (Te) {
1945
+ case "YY":
1946
+ return String(P.$y).slice(-2);
1947
+ case "YYYY":
1948
+ return x.s(P.$y, 4, "0");
1949
+ case "M":
1950
+ return K + 1;
1951
+ case "MM":
1952
+ return x.s(K + 1, 2, "0");
1953
+ case "MMM":
1954
+ return ce(y.monthsShort, K, oe, 3);
1955
+ case "MMMM":
1956
+ return ce(oe, K);
1957
+ case "D":
1958
+ return P.$D;
1959
+ case "DD":
1960
+ return x.s(P.$D, 2, "0");
1961
+ case "d":
1962
+ return String(P.$W);
1963
+ case "dd":
1964
+ return ce(y.weekdaysMin, P.$W, ee, 2);
1965
+ case "ddd":
1966
+ return ce(y.weekdaysShort, P.$W, ee, 3);
1967
+ case "dddd":
1968
+ return ee[P.$W];
1969
+ case "H":
1970
+ return String(U);
1971
+ case "HH":
1972
+ return x.s(U, 2, "0");
1973
+ case "h":
1974
+ return de(1);
1975
+ case "hh":
1976
+ return de(2);
1977
+ case "a":
1978
+ return ue(U, z, !0);
1979
+ case "A":
1980
+ return ue(U, z, !1);
1981
+ case "m":
1982
+ return String(z);
1983
+ case "mm":
1984
+ return x.s(z, 2, "0");
1985
+ case "s":
1986
+ return String(P.$s);
1987
+ case "ss":
1988
+ return x.s(P.$s, 2, "0");
1989
+ case "SSS":
1990
+ return x.s(P.$ms, 3, "0");
1991
+ case "Z":
1992
+ return R;
1993
+ }
1994
+ return null;
1995
+ }(Z) || R.replace(":", "");
1996
+ });
1997
+ }, m.utcOffset = function() {
1998
+ return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
1999
+ }, m.diff = function(v, P, y) {
2000
+ var A, R = this, U = x.p(P), z = S(v), K = (z.utcOffset() - this.utcOffset()) * n, ee = this - z, oe = function() {
2001
+ return x.m(R, z);
2002
+ };
2003
+ switch (U) {
2004
+ case C:
2005
+ A = oe() / 12;
2006
+ break;
2007
+ case h:
2008
+ A = oe();
2009
+ break;
2010
+ case p:
2011
+ A = oe() / 3;
2012
+ break;
2013
+ case d:
2014
+ A = (ee - K) / 6048e5;
2015
+ break;
2016
+ case l:
2017
+ A = (ee - K) / 864e5;
2018
+ break;
2019
+ case u:
2020
+ A = ee / a;
2021
+ break;
2022
+ case c:
2023
+ A = ee / n;
2024
+ break;
2025
+ case i:
2026
+ A = ee / r;
2027
+ break;
2028
+ default:
2029
+ A = ee;
2030
+ }
2031
+ return y ? A : x.a(A);
2032
+ }, m.daysInMonth = function() {
2033
+ return this.endOf(h).$D;
2034
+ }, m.$locale = function() {
2035
+ return Q[this.$L];
2036
+ }, m.locale = function(v, P) {
2037
+ if (!v)
2038
+ return this.$L;
2039
+ var y = this.clone(), A = $(v, P, !0);
2040
+ return A && (y.$L = A), y;
2041
+ }, m.clone = function() {
2042
+ return x.w(this.$d, this);
2043
+ }, m.toDate = function() {
2044
+ return new Date(this.valueOf());
2045
+ }, m.toJSON = function() {
2046
+ return this.isValid() ? this.toISOString() : null;
2047
+ }, m.toISOString = function() {
2048
+ return this.$d.toISOString();
2049
+ }, m.toString = function() {
2050
+ return this.$d.toUTCString();
2051
+ }, T;
2052
+ }(), B = k.prototype;
2053
+ return S.prototype = B, [["$ms", s], ["$s", i], ["$m", c], ["$H", u], ["$W", l], ["$M", h], ["$y", C], ["$D", g]].forEach(function(T) {
2054
+ B[T[1]] = function(m) {
2055
+ return this.$g(m, T[0], T[1]);
2056
+ };
2057
+ }), S.extend = function(T, m) {
2058
+ return T.$i || (T(m, k, S), T.$i = !0), S;
2059
+ }, S.locale = $, S.isDayjs = _, S.unix = function(T) {
2060
+ return S(1e3 * T);
2061
+ }, S.en = Q[H], S.Ls = Q, S.p = {}, S;
2062
+ });
2063
+ })(pn);
2064
+ var dc = pn.exports;
2065
+ const nt = /* @__PURE__ */ ro(dc);
2066
+ function pc(e, t = {}) {
2067
+ const r = /^\[(.+)\]$/;
2068
+ if (r.test(e)) {
2069
+ const n = e.match(r);
2070
+ if (n && n[1]) {
2071
+ const a = n[1].split(",");
2072
+ if (!a.length)
2073
+ return;
2074
+ const s = [];
2075
+ return a.forEach((i, c) => {
2076
+ sn(s, c, t[i.trim()]);
2077
+ }), s.filter(Boolean).length ? s : void 0;
2078
+ }
2079
+ }
2080
+ }
2081
+ function hc(e, t = {}) {
2082
+ const r = /^\{(.+)\}$/;
2083
+ if (r.test(e)) {
2084
+ const n = e.match(r);
2085
+ if (n && n[1]) {
2086
+ const a = n[1].split(",");
2087
+ if (!a.length)
2088
+ return;
2089
+ const s = {};
2090
+ return a.forEach((i) => {
2091
+ sn(s, i.trim(), t[i.trim()]);
2092
+ }), Object.values(s).filter(Boolean).length ? s : void 0;
2093
+ }
2094
+ }
2095
+ }
2096
+ function gc(e, t) {
2097
+ const r = t.fieldMapToTime;
2098
+ if (!r || !Array.isArray(r))
2099
+ return e;
2100
+ for (const [
2101
+ n,
2102
+ [a, s],
2103
+ i = "YYYY-MM-DD"
2104
+ ] of r) {
2105
+ if (!n || !a || !s)
2106
+ continue;
2107
+ if (!e[n]) {
2108
+ Reflect.deleteProperty(e, n);
2109
+ continue;
2110
+ }
2111
+ const [c, u] = e[n], [l, d] = Array.isArray(i) ? i : [i, i];
2112
+ e[a] = nt(c).format(l), e[s] = nt(u).format(d), Reflect.deleteProperty(e, n);
2113
+ }
2114
+ return e;
2115
+ }
2116
+ const mc = (e, t, r) => {
2117
+ const n = e.filter((i) => i.name);
2118
+ return {
2119
+ handleFormatRenderValues: (i) => {
2120
+ const c = {}, u = [];
2121
+ return n.forEach((l) => {
2122
+ const d = Reflect.has(i, l.name), h = pc(l.name, i) || hc(l.name, i);
2123
+ if (d || h) {
2124
+ const p = h || i[l.name];
2125
+ if (Nt(l))
2126
+ if (tc.includes(l.component)) {
2127
+ if (ae(p)) {
2128
+ const C = [];
2129
+ for (const g of p)
2130
+ C.push(g ? nt(g) : null);
2131
+ c[l.name] = C;
2132
+ } else
2133
+ c[l.name] = p ? nt(p) : null;
2134
+ u.push(l.name);
2135
+ } else
2136
+ c[l.name] = p, u.push(l.name);
2137
+ Ut(l) && (c[l.name] = p, u.push(l.name));
2138
+ }
2139
+ }), {
2140
+ renderValues: c,
2141
+ validKeys: u
2142
+ };
2143
+ },
2144
+ handleFormatReturnValues: (i) => {
2145
+ var u, l, d, h, p;
2146
+ if (!ie(i))
2147
+ return {};
2148
+ const c = {};
2149
+ for (const C of Object.entries(i)) {
2150
+ let [, g] = C;
2151
+ const [O] = C;
2152
+ if (!O || ae(g) && g.length === 0 || te(g))
2153
+ continue;
2154
+ const { transformDateFunc: E } = t, M = (d = (l = (u = r.current) == null ? void 0 : u.get(O)) == null ? void 0 : l.current) == null ? void 0 : d.componentProps, D = M == null ? void 0 : M.valueFormat;
2155
+ if (ie(g)) {
2156
+ const G = g;
2157
+ G.format && (g = E == null ? void 0 : E(G, D));
2158
+ }
2159
+ ae(g) && ((h = g[0]) != null && h.format) && ((p = g[1]) != null && p.format) && (g = g.map(
2160
+ (G) => E == null ? void 0 : E(G, D)
2161
+ )), an(g) && (g === "" ? g = void 0 : g = g.trim()), c[O] = g;
2162
+ }
2163
+ return gc(c, t);
2164
+ }
2165
+ };
2166
+ }, vc = (e, t, r) => ({
2167
+ getFieldsValue: (...u) => r(
2168
+ e.getFieldsValue(...u)
2169
+ ),
2170
+ setFieldsValue: (u) => {
2171
+ const { renderValues: l, validKeys: d } = t(u);
2172
+ e.setFieldsValue(l), e.validateFields(d);
2173
+ },
2174
+ resetFields: async () => e.resetFields(),
2175
+ validator: async (u) => e.validateFields(u).then((l) => r(l)),
2176
+ scrollToField: async (u, l) => e.scrollToField(u, l)
2177
+ }), bc = (e) => {
2178
+ const { extendFormProps: t } = hn();
2179
+ return {
2180
+ formProps: {
2181
+ ...Ie(Ie({
2182
+ collapseNum: 5,
2183
+ colon: !1,
2184
+ items: [],
2185
+ labelWrap: !0,
2186
+ transformDateFunc: (a, s) => {
2187
+ var i;
2188
+ return ((i = a == null ? void 0 : a.format) == null ? void 0 : i.call(a, s || "YYYY-MM-DD HH:mm:ss")) ?? a;
2189
+ },
2190
+ fieldMapToTime: []
2191
+ }, t), e)
2192
+ }
2193
+ };
2194
+ }, ut = (e) => {
2195
+ const { immediate: t = !0, params: r, api: n, apiCallback: a, isUseWatch: s } = e, i = re(!0), c = re(r), u = () => {
2196
+ n && te(n) && (r ? n(r).then(a) : n().then(a), c.current = r);
2197
+ };
2198
+ return ye(() => {
2199
+ i.current && (t && u(), i.current = !1), !i.current && s && (tt(r, c.current) || t && u());
2200
+ }, [r]), {
2201
+ getApiData: u
2202
+ };
2203
+ }, yc = (e, t) => {
2204
+ const { collapsible: r, collapseNum: n } = e, a = re();
2205
+ return {
2206
+ collapsible: r,
2207
+ collapseNum: n,
2208
+ collapseRef: a,
2209
+ onClickCollapseToTrue: () => {
2210
+ var c;
2211
+ (c = t.current) == null || c.forEach((u) => {
2212
+ if (u.current) {
2213
+ const { itemIndex: l } = u.current;
2214
+ l >= n && r && u.current.setItemCollapse(!0);
2215
+ }
2216
+ });
2217
+ },
2218
+ onClickCollapseToFalse: () => {
2219
+ var c;
2220
+ (c = t.current) == null || c.forEach((u) => {
2221
+ if (u.current) {
2222
+ const { itemCollapse: l } = u.current;
2223
+ l && u.current.setItemCollapse(!1);
2224
+ }
2225
+ });
2226
+ }
2227
+ };
2228
+ }, hn = () => {
2229
+ const { extendProps: e, extendComp: t } = Lt(), r = (n) => {
2230
+ const a = t == null ? void 0 : t.form;
2231
+ a && Object.keys(a).forEach((s) => {
2232
+ n.set(s, a[s]);
2233
+ });
2234
+ };
2235
+ return {
2236
+ extendFormProps: e == null ? void 0 : e.form,
2237
+ setExtendFormComp: r
2238
+ };
2239
+ }, _c = (e) => {
2240
+ console.log("render ApiSelect");
2241
+ const {
2242
+ api: t,
2243
+ params: r,
2244
+ immediate: n = !0,
2245
+ isusewatch: a,
2246
+ onDropdownVisibleChange: s
2247
+ } = e, i = a === "true", [c, u] = $e.useState([]), { getApiData: l } = ut({
2248
+ api: t,
2249
+ immediate: n,
2250
+ params: r,
2251
+ apiCallback: u,
2252
+ isUseWatch: i
2253
+ }), d = (p) => {
2254
+ p && !n && l(), s && s(p);
2255
+ }, h = () => {
2256
+ const { api: p, params: C, immediate: g, isusewatch: O, ...E } = e;
2257
+ return E;
2258
+ };
2259
+ return /* @__PURE__ */ w.jsx(
2260
+ Dr,
2261
+ {
2262
+ ...h(),
2263
+ options: c,
2264
+ onDropdownVisibleChange: d
2265
+ }
2266
+ );
2267
+ }, wc = (e) => {
2268
+ console.log("render ApiTreeSelect");
2269
+ const {
2270
+ api: t,
2271
+ params: r,
2272
+ immediate: n = !0,
2273
+ isusewatch: a,
2274
+ onDropdownVisibleChange: s
2275
+ } = e, i = a === "true", [c, u] = $e.useState([]), { getApiData: l } = ut({
2276
+ api: t,
2277
+ immediate: n,
2278
+ params: r,
2279
+ apiCallback: u,
2280
+ isUseWatch: i
2281
+ }), d = (p) => {
2282
+ p && !n && l(), s && s(p);
2283
+ }, h = () => {
2284
+ const { api: p, params: C, immediate: g, isusewatch: O, ...E } = e;
2285
+ return E;
2286
+ };
2287
+ return /* @__PURE__ */ w.jsx(
2288
+ Ir,
2289
+ {
2290
+ ...h(),
2291
+ treeData: c,
2292
+ onDropdownVisibleChange: d
2293
+ }
2294
+ );
2295
+ }, Tc = (e) => {
2296
+ console.log("render ApiTransfer");
2297
+ const { api: t, params: r, isusewatch: n } = e, a = n === "true", [s, i] = $e.useState([]);
2298
+ ut({
2299
+ api: t,
2300
+ params: r,
2301
+ apiCallback: i,
2302
+ isUseWatch: a
2303
+ });
2304
+ const c = () => {
2305
+ const { api: u, params: l, isusewatch: d, ...h } = e;
2306
+ return h;
2307
+ };
2308
+ return /* @__PURE__ */ w.jsx(Mr, { ...c(), dataSource: s });
2309
+ }, Cc = (e) => {
2310
+ console.log("render ApiAutoComplete");
2311
+ const {
2312
+ api: t,
2313
+ params: r,
2314
+ immediate: n = !0,
2315
+ isusewatch: a,
2316
+ onDropdownVisibleChange: s
2317
+ } = e, i = a === "true", [c, u] = $e.useState([]), { getApiData: l } = ut({
2318
+ api: t,
2319
+ immediate: n,
2320
+ params: r,
2321
+ apiCallback: u,
2322
+ isUseWatch: i
2323
+ }), d = (p) => {
2324
+ p && !n && l(), s && s(p);
2325
+ }, h = () => {
2326
+ const { api: p, params: C, immediate: g, isusewatch: O, ...E } = e;
2327
+ return E;
2328
+ };
2329
+ return /* @__PURE__ */ w.jsx(
2330
+ kr,
2331
+ {
2332
+ ...h(),
2333
+ options: c,
2334
+ onDropdownVisibleChange: d
2335
+ }
2336
+ );
2337
+ }, ve = {
2338
+ String: "String",
2339
+ "String[]": "String[]",
2340
+ "File[]": "File[]",
2341
+ FileList: "FileList"
2342
+ }, Sc = (e) => {
2343
+ console.log("render AutoUpload"), console.log(er());
2344
+ const t = "", {
2345
+ api: r,
2346
+ maxCount: n = 1,
2347
+ // 默认只能上传一个文件
2348
+ maxSize: a = 2,
2349
+ // 默认最大2M
2350
+ listType: s = "picture-card",
2351
+ // 默认展示文件列表
2352
+ openCrop: i = !1,
2353
+ // 默认不开启裁剪
2354
+ data: c,
2355
+ // 默认带上的参数
2356
+ returnType: u = ve.String,
2357
+ // 默认返回String(如果多文件默认","拼接)
2358
+ value: l = t,
2359
+ // 默认文件列表
2360
+ onChange: d
2361
+ } = e, h = re(!0), p = re(0), C = re([]), [g, O] = Se([]), E = (_) => {
2362
+ C.current = _, O([..._]);
2363
+ }, M = () => {
2364
+ const {
2365
+ api: _,
2366
+ maxCount: $,
2367
+ maxSize: S,
2368
+ openCrop: x,
2369
+ beforeUpload: k,
2370
+ fileList: B,
2371
+ returnType: T,
2372
+ ...m
2373
+ } = e;
2374
+ return m;
2375
+ }, D = (_) => {
2376
+ const $ = _.size / 1024 / 1024 < a;
2377
+ $ || gt.error(`文件大小超过:${a}M, 请重试`);
2378
+ const S = C.current.length + p.current < n;
2379
+ return S || gt.error(`文件数量不能超过${n}个`), $ && S && p.current++, $ && S && G(_), _t.LIST_IGNORE;
2380
+ }, G = (_) => {
2381
+ i ? (gt.error("暂时不支持裁剪功能,后续兼容。。。。"), q({ file: _ })) : q({ file: _ });
2382
+ }, q = (_) => {
2383
+ r ? r({ file: _.file, ...c }).then(($) => {
2384
+ E([...C.current, ...$]);
2385
+ }).finally(() => {
2386
+ p.current--;
2387
+ }) : (Object.assign(_.file, {
2388
+ status: "done",
2389
+ url: URL.createObjectURL(
2390
+ new Blob([_.file], {
2391
+ type: nc(_.file.type)
2392
+ })
2393
+ )
2394
+ }), E([...C.current, _.file]), p.current--);
2395
+ }, H = (_) => {
2396
+ const { file: $, fileList: S } = _, { status: x } = $;
2397
+ switch (x) {
2398
+ case "removed": {
2399
+ E([...S]);
2400
+ break;
2401
+ }
2402
+ }
2403
+ }, Q = (_) => {
2404
+ const $ = (x) => {
2405
+ const k = x.split("/"), B = k[k.length - 1], [T] = B.split("?");
2406
+ return T;
2407
+ };
2408
+ return { uid: ((x) => {
2409
+ const k = C.current.find((B) => B.url === x);
2410
+ return k ? k.uid : er();
2411
+ })(_), name: $(_), url: _, status: "done" };
2412
+ }, F = () => {
2413
+ switch (u) {
2414
+ case ve.String:
2415
+ return g.map((_) => _.url).join(",");
2416
+ case ve["String[]"]:
2417
+ return g.map((_) => _.url);
2418
+ case ve["File[]"]:
2419
+ return [...g];
2420
+ case ve.FileList:
2421
+ return [...g];
2422
+ }
2423
+ };
2424
+ return ye(() => {
2425
+ const _ = F();
2426
+ if (tt(_, l))
2427
+ return;
2428
+ let $ = [];
2429
+ switch (u) {
2430
+ case ve.String: {
2431
+ $ = (l || "").split(",").filter((S) => S).map((S) => Q(S));
2432
+ break;
2433
+ }
2434
+ case ve["String[]"]: {
2435
+ $ = (l || []).map((S) => Q(S));
2436
+ break;
2437
+ }
2438
+ case ve["File[]"]: {
2439
+ $ = (l || []).map((S) => S);
2440
+ break;
2441
+ }
2442
+ case ve.FileList: {
2443
+ $ = (l || []).map((S) => S);
2444
+ break;
2445
+ }
2446
+ }
2447
+ E($);
2448
+ }, [l]), ye(() => {
2449
+ if (h.current) {
2450
+ h.current = !1;
2451
+ return;
2452
+ }
2453
+ const _ = F();
2454
+ d == null || d(_);
2455
+ }, [g]), /* @__PURE__ */ w.jsx(
2456
+ _t,
2457
+ {
2458
+ listType: s,
2459
+ ...M(),
2460
+ fileList: g,
2461
+ beforeUpload: D,
2462
+ onChange: H,
2463
+ children: "上传"
2464
+ }
2465
+ );
2466
+ }, W = /* @__PURE__ */ new Map();
2467
+ W.set("Input", At);
2468
+ W.set("ApiSelect", _c);
2469
+ W.set("Select", Dr);
2470
+ W.set("InputNumber", Wn);
2471
+ W.set("ApiTreeSelect", wc);
2472
+ W.set("TreeSelect", Ir);
2473
+ W.set("ApiTransfer", Tc);
2474
+ W.set("Transfer", Mr);
2475
+ W.set("Switch", Vn);
2476
+ W.set("Button", xe);
2477
+ W.set("Radio", Lr);
2478
+ W.set("RadioGroup", Lr.Group);
2479
+ W.set("Checkbox", Nr);
2480
+ W.set("CheckboxGroup", Nr.Group);
2481
+ W.set("Cascader", Yn);
2482
+ W.set("TimePicker", zn);
2483
+ W.set("DatePicker", at);
2484
+ W.set("MonthPicker", at.MonthPicker);
2485
+ W.set("WeekPicker", at.WeekPicker);
2486
+ W.set("RangePicker", at.RangePicker);
2487
+ W.set("InputPassword", At.Password);
2488
+ W.set("InputTextArea", At.TextArea);
2489
+ W.set("ApiAutoComplete", Cc);
2490
+ W.set("AutoComplete", kr);
2491
+ W.set("Upload", _t);
2492
+ W.set("AutoUpload", Sc);
2493
+ const $r = {
2494
+ "form-item-force": "_form-item-force_1hsf3_1",
2495
+ "form-item-hidden": "_form-item-hidden_1hsf3_9"
2496
+ }, xc = Ee(
2497
+ ({
2498
+ itemIndex: e,
2499
+ itemProps: t,
2500
+ methods: r,
2501
+ formProps: n,
2502
+ collapseRef: a
2503
+ }, s) => {
2504
+ console.log("render FormItem", t.name);
2505
+ const { rewritingModel: i, isusewatch: c } = fc(n, t), { isIfShow: u, isShow: l } = oc(
2506
+ t,
2507
+ i,
2508
+ a
2509
+ ), { colProps: d } = uc(t, n), { componentProps: h } = cc(
2510
+ t,
2511
+ i
2512
+ ), { rules: p } = sc({
2513
+ item: t,
2514
+ model: i,
2515
+ isShow: l,
2516
+ componentProps: h
2517
+ }), { disabled: C } = ic(
2518
+ n,
2519
+ t,
2520
+ i
2521
+ ), { itemCollapse: g, setItemCollapse: O } = ac(
2522
+ n,
2523
+ e
2524
+ ), {
2525
+ name: E,
2526
+ label: M,
2527
+ wrapperCol: D,
2528
+ labelCol: G,
2529
+ valuePropName: q,
2530
+ initialValue: H,
2531
+ forceRow: Q
2532
+ } = t;
2533
+ Me(s, () => ({
2534
+ itemIndex: e,
2535
+ componentProps: h,
2536
+ itemCollapse: g,
2537
+ setItemCollapse: O
2538
+ }));
2539
+ const F = () => ({
2540
+ name: E,
2541
+ label: M,
2542
+ rules: p,
2543
+ wrapperCol: D,
2544
+ labelCol: G,
2545
+ valuePropName: q,
2546
+ initialValue: H
2547
+ }), { setExtendFormComp: _ } = hn();
2548
+ _(W);
2549
+ const $ = Nt(t), S = Ut(t), x = () => {
2550
+ if ($) {
2551
+ const k = W.get(t.component);
2552
+ return /* @__PURE__ */ w.jsx(
2553
+ k,
2554
+ {
2555
+ ...h,
2556
+ disabled: C,
2557
+ isusewatch: c.toString()
2558
+ }
2559
+ );
2560
+ }
2561
+ return S ? t.render({
2562
+ model: i,
2563
+ name: E,
2564
+ disabled: C,
2565
+ methods: r,
2566
+ componentProps: h
2567
+ }) : null;
2568
+ };
2569
+ return /* @__PURE__ */ w.jsxs(Ar, { children: [
2570
+ Q ? /* @__PURE__ */ w.jsx("div", { className: $r["form-item-force"] }) : null,
2571
+ u ? /* @__PURE__ */ w.jsx(
2572
+ Gn,
2573
+ {
2574
+ ...d,
2575
+ className: l && !g ? void 0 : $r["form-item-hidden"],
2576
+ children: /* @__PURE__ */ w.jsx(Xe.Item, { ...F(), children: x() })
2577
+ }
2578
+ ) : null
2579
+ ] });
2580
+ }
2581
+ ), Pc = {
2582
+ "collapse-wrapper": "_collapse-wrapper_ylm01_1"
2583
+ }, Oc = Ee(
2584
+ ({
2585
+ collapsible: e,
2586
+ onClickExpand: t,
2587
+ onClickFold: r
2588
+ }, n) => {
2589
+ const [a, s] = Se(e), i = ot(() => a, [a]), c = () => {
2590
+ r(), s(!0);
2591
+ }, u = () => {
2592
+ t(), s(!1);
2593
+ };
2594
+ return Me(n, () => ({
2595
+ handleCollapseChangeFalse: u
2596
+ })), /* @__PURE__ */ w.jsx("div", { className: Pc["collapse-wrapper"], children: i ? /* @__PURE__ */ w.jsx(
2597
+ xe,
2598
+ {
2599
+ onClick: u,
2600
+ type: "link",
2601
+ icon: /* @__PURE__ */ w.jsx(Jn, {}),
2602
+ children: "展开"
2603
+ }
2604
+ ) : /* @__PURE__ */ w.jsx(
2605
+ xe,
2606
+ {
2607
+ onClick: c,
2608
+ type: "link",
2609
+ icon: /* @__PURE__ */ w.jsx(Zn, {}),
2610
+ children: "折叠"
2611
+ }
2612
+ ) });
2613
+ }
2614
+ ), $c = {
2615
+ "group-wrapper": "_group-wrapper_g8zqi_1"
2616
+ }, Ec = ({ formProps: e }) => {
2617
+ const { renderActions: t } = e;
2618
+ return /* @__PURE__ */ w.jsx("div", { className: $c["group-wrapper"], children: t == null ? void 0 : t() });
2619
+ }, jc = {
2620
+ "xph-form-action": "_xph-form-action_8ws73_1"
2621
+ }, Ac = (e, t) => {
2622
+ console.log("render Form");
2623
+ const [r] = Xe.useForm(), { formProps: n } = bc(e), { formItems: a } = lc({ formProps: n }), s = re(/* @__PURE__ */ new Map()), {
2624
+ collapsible: i,
2625
+ collapseNum: c,
2626
+ collapseRef: u,
2627
+ onClickCollapseToFalse: l,
2628
+ onClickCollapseToTrue: d
2629
+ } = yc(n, s), { handleFormatRenderValues: h, handleFormatReturnValues: p } = mc(
2630
+ a,
2631
+ n,
2632
+ s
2633
+ ), {
2634
+ setFieldsValue: C,
2635
+ getFieldsValue: g,
2636
+ resetFields: O,
2637
+ validator: E,
2638
+ scrollToField: M
2639
+ } = vc(
2640
+ r,
2641
+ h,
2642
+ p
2643
+ ), D = () => {
2644
+ const {
2645
+ layout: q,
2646
+ wrapperCol: H,
2647
+ labelCol: Q,
2648
+ colon: F,
2649
+ disabled: _,
2650
+ labelWrap: $,
2651
+ labelAlign: S,
2652
+ scrollToFirstError: x,
2653
+ size: k
2654
+ } = n;
2655
+ return {
2656
+ layout: q,
2657
+ wrapperCol: H,
2658
+ labelCol: Q,
2659
+ colon: F,
2660
+ disabled: _,
2661
+ labelWrap: $,
2662
+ labelAlign: S,
2663
+ scrollToFirstError: x,
2664
+ size: k
2665
+ };
2666
+ }, G = {
2667
+ setFieldsValue: C,
2668
+ getFieldsValue: g,
2669
+ resetFields: O,
2670
+ validator: E,
2671
+ scrollToField: M
2672
+ };
2673
+ return Me(t, () => ({
2674
+ ...G
2675
+ })), ye(() => (console.log("Form is mounted======================="), n.register && n.register(G), () => {
2676
+ console.log("Form is unmounted========================="), s.current.clear();
2677
+ }), []), /* @__PURE__ */ w.jsxs(Xe, { form: r, ...D(), children: [
2678
+ /* @__PURE__ */ w.jsx(Hn, { children: a.map((q, H) => (s.current.has(q.name) || s.current.set(q.name, $e.createRef()), /* @__PURE__ */ w.jsx(
2679
+ xc,
2680
+ {
2681
+ ref: s.current.get(q.name),
2682
+ itemIndex: H,
2683
+ itemProps: q,
2684
+ formProps: n,
2685
+ methods: G,
2686
+ collapseRef: u
2687
+ },
2688
+ H
2689
+ ))) }),
2690
+ /* @__PURE__ */ w.jsxs("div", { className: jc["xph-form-action"], children: [
2691
+ /* @__PURE__ */ w.jsx(Ec, { formProps: n }),
2692
+ i ? /* @__PURE__ */ w.jsx(
2693
+ Oc,
2694
+ {
2695
+ ref: u,
2696
+ collapsible: a.length > c,
2697
+ onClickExpand: l,
2698
+ onClickFold: d
2699
+ }
2700
+ ) : null
2701
+ ] })
2702
+ ] });
2703
+ }, Rc = Ee(Ac), Fc = Ee(({ getBindProps: e }, t) => {
2704
+ const { formProps: r, setFormLoading: n } = e(), a = re(null);
2705
+ return Me(t, () => ({
2706
+ /** 扩展了loading方法,让table调用 */
2707
+ setFormLoading: n,
2708
+ ...a.current
2709
+ })), /* @__PURE__ */ w.jsx(Rc, { ref: a, ...r });
2710
+ }), Dc = Un(Fc), Ic = Ee((e, t) => {
2711
+ const { renderActions: r, showSearch: n, tableRef: a } = e, [s, i] = Se(!1), c = yt(() => {
2712
+ const { renderActions: p, ...C } = e;
2713
+ return C;
2714
+ }, []), u = () => {
2715
+ const { reloadData: p } = a.current;
2716
+ p();
2717
+ }, l = () => {
2718
+ const { resetData: p } = a.current;
2719
+ p();
2720
+ }, d = () => /* @__PURE__ */ w.jsxs("div", { style: { width: "100%", display: "flex" }, children: [
2721
+ /* @__PURE__ */ w.jsx("div", { style: { flex: 1, width: 0 }, children: r == null ? void 0 : r() }),
2722
+ n && /* @__PURE__ */ w.jsxs("div", { style: { display: "flex", gap: "8px" }, children: [
2723
+ /* @__PURE__ */ w.jsx(
2724
+ xe,
2725
+ {
2726
+ type: "primary",
2727
+ icon: /* @__PURE__ */ w.jsx(Qn, {}),
2728
+ onClick: u,
2729
+ children: "搜索"
2730
+ }
2731
+ ),
2732
+ /* @__PURE__ */ w.jsx(xe, { icon: /* @__PURE__ */ w.jsx(eo, {}), onClick: l, children: "重置" })
2733
+ ] })
2734
+ ] }), h = yt(() => ({
2735
+ setFormLoading: i,
2736
+ formProps: {
2737
+ ...c(),
2738
+ renderActions: d
2739
+ }
2740
+ }), []);
2741
+ return /* @__PURE__ */ w.jsx(qn, { spinning: s, children: /* @__PURE__ */ w.jsx(Dc, { ref: t, getBindProps: h }) });
2742
+ });
2743
+ function Mc({ searchForm: e }) {
2744
+ return {
2745
+ searchFormRef: re(null),
2746
+ searchFormProps: e
2747
+ };
2748
+ }
2749
+ function kc(e) {
2750
+ return "cellFunc" in e;
2751
+ }
2752
+ function Lc(e) {
2753
+ return "children" in e;
2754
+ }
2755
+ const { useToken: Nc } = Fr, Uc = (e, t, r) => {
2756
+ const { curComponentProps: n, cellFuncProps: a } = t, { url: s, onClick: i } = n, { token: c } = Nc(), u = {
2757
+ color: c.colorLink,
2758
+ cursor: "pointer"
2759
+ }, l = () => {
2760
+ if (r.mainClick && r.mainClick(), i) {
2761
+ i();
2762
+ return;
2763
+ }
2764
+ if (s) {
2765
+ window.open(s, "_blank");
2766
+ return;
2767
+ }
2768
+ };
2769
+ return /* @__PURE__ */ w.jsx(
2770
+ e,
2771
+ {
2772
+ ...r,
2773
+ mainClick: l,
2774
+ mainStyle: Object.assign(u, (r == null ? void 0 : r.mainStyle) || {})
2775
+ }
2776
+ );
2777
+ }, Bc = {
2778
+ "cellfunc-actions": "_cellfunc-actions_14drt_1"
2779
+ }, Wc = (e, t, r) => {
2780
+ const { curComponentProps: n, cellFuncProps: a } = t;
2781
+ return /* @__PURE__ */ w.jsx("div", { className: Bc["cellfunc-actions"], children: /* @__PURE__ */ w.jsx(dn, { ...n }) });
2782
+ }, Er = {
2783
+ /** 超链接 */
2784
+ link: {
2785
+ Comp: Uc
2786
+ },
2787
+ /** 操作组 */
2788
+ actions: {
2789
+ Comp: Wc
2790
+ }
2791
+ }, Vc = (e, t) => {
2792
+ const {
2793
+ renderPrams: { text: r }
2794
+ } = e;
2795
+ return /* @__PURE__ */ w.jsx("span", { onClick: t == null ? void 0 : t.mainClick, style: t == null ? void 0 : t.mainStyle, children: r });
2796
+ }, Yc = (e) => {
2797
+ const { setExtendTableCellComp: t } = mn();
2798
+ t(Er);
2799
+ const { dslConfig: r } = e;
2800
+ let n = Vc.bind(null, e), a = 0;
2801
+ for (; a < r.length; ) {
2802
+ const s = a++, i = Er[r[s].component];
2803
+ i && (n = i.Comp.bind(null, n, {
2804
+ curComponentProps: r[s].componentProps || {},
2805
+ cellFuncProps: e
2806
+ }));
2807
+ }
2808
+ return /* @__PURE__ */ w.jsx(n, {});
2809
+ };
2810
+ function gn(e) {
2811
+ return e.map((t) => {
2812
+ let r = { ...t };
2813
+ if (kc(r)) {
2814
+ const { cellFunc: n, ...a } = r;
2815
+ r = {
2816
+ ...a,
2817
+ render: (...s) => {
2818
+ const i = te(n), [c, u, l] = s, d = { text: c, record: u, index: l }, h = i ? n(d) : n;
2819
+ return /* @__PURE__ */ w.jsx(Yc, { dslConfig: h, renderPrams: d });
2820
+ }
2821
+ };
2822
+ }
2823
+ return Lc(r) && r.children && Array.isArray(r.children) && (r.children = gn(r.children)), r;
2824
+ });
2825
+ }
2826
+ function zc(e) {
2827
+ const { columns: t } = e.table, r = gn(t);
2828
+ return console.log(r), {
2829
+ columns: r
2830
+ };
2831
+ }
2832
+ const Gc = (e) => {
2833
+ const { extendTableProps: t } = mn();
2834
+ return {
2835
+ tableProps: {
2836
+ ...Ie(Ie({
2837
+ table: {
2838
+ columns: [],
2839
+ fullHeight: !1,
2840
+ autoRequest: !0,
2841
+ pagination: {
2842
+ pageSize: 20,
2843
+ total: 0,
2844
+ showTotal: (a) => `共:${a} 条`,
2845
+ current: 1,
2846
+ pageSizeOptions: [10, 20, 50, 100],
2847
+ showSizeChanger: !0,
2848
+ showQuickJumper: !0
2849
+ }
2850
+ },
2851
+ crudForm: {
2852
+ items: []
2853
+ },
2854
+ searchForm: {
2855
+ showSearch: !0,
2856
+ items: []
2857
+ }
2858
+ }, t), e)
2859
+ }
2860
+ };
2861
+ };
2862
+ function Hc(e) {
2863
+ const { pagination: t, autoPagination: r } = e.table, [n, a] = Se(
2864
+ t
2865
+ ), s = re(
2866
+ t
2867
+ ), i = ot(() => n && (r === !0 || r === void 0) || !1, [n]);
2868
+ return {
2869
+ pagination: {
2870
+ model: n,
2871
+ update: (u) => {
2872
+ if (!s.current)
2873
+ return;
2874
+ const l = { ...s.current, ...u };
2875
+ a(l), s.current = l;
2876
+ },
2877
+ show: i
2878
+ },
2879
+ lastPaginationState: s
2880
+ };
2881
+ }
2882
+ function qc(e, t) {
2883
+ const { api: r, formatDataSource: n, autoPagination: a, onChange: s } = e.table, i = e.onPaginationChange, { pagination: c, lastPaginationState: u } = Hc(e), [l, d] = Se({
2884
+ loading: !1,
2885
+ dataSource: [],
2886
+ selection: [],
2887
+ backupsDataSource: []
2888
+ }), h = re({
2889
+ loading: !1,
2890
+ dataSource: [],
2891
+ selection: [],
2892
+ backupsDataSource: []
2893
+ }), p = {
2894
+ model: l,
2895
+ update: (F) => {
2896
+ const _ = { ...h.current, ...F };
2897
+ d(_), h.current = _;
2898
+ const { setFormLoading: $ } = t.current;
2899
+ $(_.loading);
2900
+ }
2901
+ }, C = async () => {
2902
+ ye(() => {
2903
+ const { autoRequest: F } = e.table, { validator: _ } = t.current;
2904
+ F && _().then(($) => {
2905
+ M({ searchFormParams: $ });
2906
+ });
2907
+ }, []);
2908
+ }, g = async ({
2909
+ searchFormParams: F,
2910
+ paginationParams: _
2911
+ }) => {
2912
+ const $ = {
2913
+ ...F,
2914
+ /** 没传paginationParams默认就是上一次 */
2915
+ current: u.current.current,
2916
+ pageSize: u.current.pageSize,
2917
+ ..._
2918
+ };
2919
+ return r($).then((S) => {
2920
+ const { data: x, current: k, total: B } = S;
2921
+ p.update({
2922
+ dataSource: n ? n(x) : x
2923
+ }), c.update({
2924
+ total: B,
2925
+ current: k
2926
+ });
2927
+ }).finally(() => {
2928
+ p.update({ loading: !1 });
2929
+ });
2930
+ }, O = async ({
2931
+ searchFormParams: F,
2932
+ paginationParams: _
2933
+ }) => {
2934
+ const $ = { ...F };
2935
+ return r($).then((S) => {
2936
+ const x = n ? n(S) : S;
2937
+ p.update({
2938
+ selection: [],
2939
+ dataSource: x
2940
+ }), c.update({
2941
+ current: 1,
2942
+ total: S.length
2943
+ });
2944
+ }).finally(() => {
2945
+ p.update({ loading: !1 });
2946
+ });
2947
+ }, E = async ({
2948
+ searchFormParams: F,
2949
+ paginationParams: _
2950
+ }) => {
2951
+ var S;
2952
+ const $ = { ...F };
2953
+ if (_) {
2954
+ const { current: x, pageSize: k } = _;
2955
+ c.update({
2956
+ current: x,
2957
+ pageSize: k
2958
+ });
2959
+ const B = (x - 1) * k, T = B + k, m = (S = h.current.backupsDataSource) == null ? void 0 : S.slice(
2960
+ B,
2961
+ T
2962
+ );
2963
+ return p.update({
2964
+ loading: !1,
2965
+ selection: [],
2966
+ dataSource: m
2967
+ });
2968
+ } else
2969
+ return r($).then((x) => {
2970
+ let k = n ? n(x) : x;
2971
+ const B = [...k], T = 0, m = T + u.current.pageSize;
2972
+ k = k.slice(T, m), p.update({
2973
+ selection: [],
2974
+ dataSource: k,
2975
+ backupsDataSource: B
2976
+ }), c.update({
2977
+ current: 1,
2978
+ total: x.length
2979
+ });
2980
+ }).finally(() => {
2981
+ p.update({ loading: !1 });
2982
+ });
2983
+ }, M = async ({
2984
+ searchFormParams: F,
2985
+ paginationParams: _
2986
+ }) => {
2987
+ if (p.update({ loading: !0, selection: [] }), r)
2988
+ switch (!!u.current) {
2989
+ case !0:
2990
+ return a === !0 ? E({
2991
+ searchFormParams: F,
2992
+ paginationParams: _
2993
+ }) : a === !1 ? O({
2994
+ searchFormParams: F,
2995
+ paginationParams: _
2996
+ }) : g({
2997
+ searchFormParams: F,
2998
+ paginationParams: _
2999
+ });
3000
+ case !1:
3001
+ return O({
3002
+ searchFormParams: F,
3003
+ paginationParams: _
3004
+ });
3005
+ }
3006
+ return p.update({ loading: !1 });
3007
+ };
3008
+ return {
3009
+ table: p,
3010
+ pagination: c,
3011
+ firstGetTableData: C,
3012
+ onPaginationChange: (F, _) => {
3013
+ const { validator: $ } = t.current;
3014
+ $().then((S) => {
3015
+ M({
3016
+ searchFormParams: S,
3017
+ paginationParams: { current: F, pageSize: _ }
3018
+ });
3019
+ }), i && i(F, _);
3020
+ },
3021
+ onAllChange: async (...F) => {
3022
+ const [_, $, S, x] = F, k = [];
3023
+ for (let B = 0; B < k.length && !k[B](); B++)
3024
+ ;
3025
+ s && s($, S, x);
3026
+ },
3027
+ resetData: async () => {
3028
+ const { resetFields: F, validator: _ } = t.current;
3029
+ return F().then(async () => {
3030
+ const $ = await _();
3031
+ return M({ searchFormParams: $ });
3032
+ });
3033
+ },
3034
+ resetAllData: async () => {
3035
+ const { resetFields: F, validator: _ } = t.current;
3036
+ return F().then(async () => {
3037
+ const $ = {};
3038
+ if (u.current) {
3039
+ const { pageSize: S } = u.current;
3040
+ a === void 0 && ($.paginationParams = { current: 1, pageSize: S });
3041
+ }
3042
+ return $.searchFormParams = await _(), M($);
3043
+ });
3044
+ },
3045
+ reloadData: async () => {
3046
+ const { validator: F } = t.current;
3047
+ return F().then((_) => M({
3048
+ searchFormParams: _
3049
+ }));
3050
+ }
3051
+ };
3052
+ }
3053
+ const Kc = (e, t) => {
3054
+ const { onRowSelectionChange: r } = e, { rowSelection: n } = e.table, a = () => {
3055
+ if (an(n))
3056
+ return {
3057
+ type: n,
3058
+ onChange: (s, i, c) => {
3059
+ t.update({
3060
+ selection: i
3061
+ }), r && r(s, i);
3062
+ }
3063
+ };
3064
+ if (ie(n)) {
3065
+ const { onChange: s } = n;
3066
+ return {
3067
+ ...n,
3068
+ onChange: (i, c, u) => {
3069
+ t.update({
3070
+ selection: c
3071
+ }), s && s(i, c, u), r && r(i, c);
3072
+ }
3073
+ };
3074
+ }
3075
+ return n;
3076
+ };
3077
+ return {
3078
+ rowSelection: a(),
3079
+ getNewRowSelection: a
3080
+ };
3081
+ };
3082
+ function Xc(e, t) {
3083
+ const { scroll: r, virtual: n } = e.table, a = re(null), [s, i] = Se(0), [c, u] = Se(0);
3084
+ ye(() => {
3085
+ const d = () => {
3086
+ a.current && (i(a.current.offsetWidth), u(a.current.offsetHeight));
3087
+ };
3088
+ d();
3089
+ const h = new ResizeObserver(d);
3090
+ return a.current && h.observe(a.current), () => {
3091
+ h && a.current && h.unobserve(a.current);
3092
+ };
3093
+ }, []);
3094
+ const l = ot(() => t ? n ? { x: s, y: c - 70, ...r } : { x: "max-content", y: c - 70, ...r } : {
3095
+ x: "max-content",
3096
+ ...r
3097
+ }, [c]);
3098
+ return {
3099
+ divRef: a,
3100
+ scroll: l
3101
+ };
3102
+ }
3103
+ function Jc(e, t) {
3104
+ const { toolbar: r } = e.table;
3105
+ return {
3106
+ getTopToolbarBindProps: () => {
3107
+ if (te(r)) {
3108
+ const a = r({
3109
+ loading: t.model.loading,
3110
+ selection: t.model.selection
3111
+ });
3112
+ return {
3113
+ ...a,
3114
+ /** 这里代理了一下禁用,获取数据的时候禁用 */
3115
+ disabled: t.model.loading || a.disabled
3116
+ };
3117
+ }
3118
+ return {
3119
+ ...r,
3120
+ /** 这里代理了一下禁用,获取数据的时候禁用 */
3121
+ disabled: t.model.loading || (r == null ? void 0 : r.disabled)
3122
+ };
3123
+ }
3124
+ };
3125
+ }
3126
+ const mn = () => {
3127
+ const { extendProps: e, extendComp: t } = Lt(), r = (n) => {
3128
+ const a = t == null ? void 0 : t.tableCellFunc;
3129
+ a && Object.keys(a).forEach((s) => {
3130
+ const i = a[s];
3131
+ n[s] = {
3132
+ Comp: i
3133
+ };
3134
+ });
3135
+ };
3136
+ return {
3137
+ extendTableProps: e == null ? void 0 : e.table,
3138
+ setExtendTableCellComp: r
3139
+ };
3140
+ }, Zc = "_container__toolbar_1yx5k_13", Qc = "_container__table_1yx5k_27", eu = "_container__pagination_1yx5k_35", Ke = {
3141
+ "main-container": "_main-container_1yx5k_1",
3142
+ container__toolbar: Zc,
3143
+ container__table: Qc,
3144
+ container__pagination: eu
3145
+ }, tu = Ee(({ tableProps: e, searchFormRef: t, fullHeight: r }, n) => {
3146
+ const { columns: a } = zc(e), s = re(null), {
3147
+ table: i,
3148
+ pagination: c,
3149
+ firstGetTableData: u,
3150
+ onPaginationChange: l,
3151
+ onAllChange: d,
3152
+ resetData: h,
3153
+ resetAllData: p,
3154
+ reloadData: C
3155
+ } = qc(e, t), { rowSelection: g } = Kc(e, i), { divRef: O, scroll: E } = Xc(e, r), { getTopToolbarBindProps: M } = Jc(e, i), D = () => {
3156
+ const {
3157
+ autoRequest: G,
3158
+ api: q,
3159
+ formatDataSource: H,
3160
+ autoPagination: Q,
3161
+ columns: F,
3162
+ scroll: _,
3163
+ pagination: $,
3164
+ rowSelection: S,
3165
+ onChange: x,
3166
+ ...k
3167
+ } = e.table;
3168
+ return k;
3169
+ };
3170
+ return u(), Me(n, () => ({
3171
+ resetData: h,
3172
+ resetAllData: p,
3173
+ reloadData: C,
3174
+ /** 合并一下antd中table实例的方法 */
3175
+ ...s.current
3176
+ })), console.log("render Table"), /* @__PURE__ */ w.jsxs("div", { className: r ? Ke["main-container"] : void 0, children: [
3177
+ /* @__PURE__ */ w.jsx("div", { className: Ke.container__toolbar, children: /* @__PURE__ */ w.jsx(dn, { ...M() }) }),
3178
+ /* @__PURE__ */ w.jsx(
3179
+ "div",
3180
+ {
3181
+ ref: O,
3182
+ className: r ? Ke.container__table : void 0,
3183
+ children: /* @__PURE__ */ w.jsx(
3184
+ Kn,
3185
+ {
3186
+ ref: s,
3187
+ ...D(),
3188
+ loading: i.model.loading,
3189
+ columns: a,
3190
+ dataSource: i.model.dataSource,
3191
+ pagination: !1,
3192
+ rowSelection: g,
3193
+ scroll: E,
3194
+ onChange: d
3195
+ }
3196
+ )
3197
+ }
3198
+ ),
3199
+ c.show ? /* @__PURE__ */ w.jsx("div", { className: Ke.container__pagination, children: /* @__PURE__ */ w.jsx(
3200
+ Xn,
3201
+ {
3202
+ disabled: i.model.loading,
3203
+ ...c.model,
3204
+ onChange: l
3205
+ }
3206
+ ) }) : null
3207
+ ] });
3208
+ }), jr = {
3209
+ "xph-table-full-wrapper": "_xph-table-full-wrapper_mdv0g_1",
3210
+ "full-wrapper__table": "_full-wrapper__table_mdv0g_13"
3211
+ }, ru = (e, t) => {
3212
+ const { tableProps: r } = Gc(e), n = re(null), { searchFormRef: a, searchFormProps: s } = Mc(r);
3213
+ let { fullHeight: i } = r.table;
3214
+ const { virtual: c } = r.table;
3215
+ return c && (i = !0), Me(t, () => ({
3216
+ ...n.current
3217
+ })), /* @__PURE__ */ w.jsxs("div", { className: i ? jr["xph-table-full-wrapper"] : void 0, children: [
3218
+ /* @__PURE__ */ w.jsx("div", { children: /* @__PURE__ */ w.jsx(
3219
+ Ic,
3220
+ {
3221
+ ref: a,
3222
+ tableRef: n,
3223
+ ...s
3224
+ }
3225
+ ) }),
3226
+ /* @__PURE__ */ w.jsx("div", { className: i ? jr["full-wrapper__table"] : void 0, children: /* @__PURE__ */ w.jsx(
3227
+ tu,
3228
+ {
3229
+ ref: n,
3230
+ searchFormRef: a,
3231
+ fullHeight: i,
3232
+ tableProps: r
3233
+ }
3234
+ ) })
3235
+ ] });
3236
+ }, uu = Ee(ru);
3237
+ export {
3238
+ dn as XphActions,
3239
+ iu as XphDialog,
3240
+ su as XphExtendCompPropsProvider,
3241
+ Rc as XphForm,
3242
+ uu as XphTable,
3243
+ er as buildUUID,
3244
+ Lt as useXphExtendCompProps,
3245
+ cu as useXphForm
3246
+ };