@yester/virtual-table 1.1.4 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,10 +1,10 @@
1
1
  import * as re from "react";
2
- import Ye, { version as Tr, isValidElement as Pr, forwardRef as jr, useMemo as ye, memo as Ut, useState as Ie, useImperativeHandle as Ar, useEffect as Ze, createElement as Mt, useLayoutEffect as Et, useRef as ze, useCallback as ge } from "react";
3
- import zt from "react-dom";
4
- function Mr(e) {
2
+ import Ye, { version as Pr, isValidElement as jr, forwardRef as Ar, useMemo as ye, memo as Jt, useState as Ie, useImperativeHandle as Mr, useEffect as Qe, createElement as It, useLayoutEffect as _t, useRef as ze, useCallback as ge } from "react";
3
+ import $t from "react-dom";
4
+ function zr(e) {
5
5
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
6
6
  }
7
- var dt = { exports: {} }, We = {};
7
+ var ht = { exports: {} }, We = {};
8
8
  /**
9
9
  * @license React
10
10
  * react-jsx-runtime.production.min.js
@@ -14,21 +14,21 @@ var dt = { exports: {} }, We = {};
14
14
  * This source code is licensed under the MIT license found in the
15
15
  * LICENSE file in the root directory of this source tree.
16
16
  */
17
- var It;
18
- function zr() {
19
- if (It)
17
+ var Lt;
18
+ function Ir() {
19
+ if (Lt)
20
20
  return We;
21
- It = 1;
21
+ Lt = 1;
22
22
  var e = Ye, t = Symbol.for("react.element"), r = Symbol.for("react.fragment"), n = Object.prototype.hasOwnProperty, i = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, s = { key: !0, ref: !0, __self: !0, __source: !0 };
23
- function a(l, c, f) {
24
- var h, E = {}, v = null, A = null;
25
- f !== void 0 && (v = "" + f), c.key !== void 0 && (v = "" + c.key), c.ref !== void 0 && (A = c.ref);
26
- for (h in c)
27
- n.call(c, h) && !s.hasOwnProperty(h) && (E[h] = c[h]);
28
- if (l && l.defaultProps)
29
- for (h in c = l.defaultProps, c)
30
- E[h] === void 0 && (E[h] = c[h]);
31
- return { $$typeof: t, type: l, key: v, ref: A, props: E, _owner: i.current };
23
+ function a(h, l, c) {
24
+ var f, E = {}, b = null, I = null;
25
+ c !== void 0 && (b = "" + c), l.key !== void 0 && (b = "" + l.key), l.ref !== void 0 && (I = l.ref);
26
+ for (f in l)
27
+ n.call(l, f) && !s.hasOwnProperty(f) && (E[f] = l[f]);
28
+ if (h && h.defaultProps)
29
+ for (f in l = h.defaultProps, l)
30
+ E[f] === void 0 && (E[f] = l[f]);
31
+ return { $$typeof: t, type: h, key: b, ref: I, props: E, _owner: i.current };
32
32
  }
33
33
  return We.Fragment = r, We.jsx = a, We.jsxs = a, We;
34
34
  }
@@ -42,57 +42,57 @@ var Ve = {};
42
42
  * This source code is licensed under the MIT license found in the
43
43
  * LICENSE file in the root directory of this source tree.
44
44
  */
45
- var Lt;
46
- function Ir() {
47
- return Lt || (Lt = 1, process.env.NODE_ENV !== "production" && function() {
48
- var e = Ye, t = Symbol.for("react.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), s = Symbol.for("react.profiler"), a = Symbol.for("react.provider"), l = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), f = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), E = Symbol.for("react.memo"), v = Symbol.for("react.lazy"), A = Symbol.for("react.offscreen"), P = Symbol.iterator, _ = "@@iterator";
49
- function d(o) {
45
+ var kt;
46
+ function $r() {
47
+ return kt || (kt = 1, process.env.NODE_ENV !== "production" && function() {
48
+ var e = Ye, t = Symbol.for("react.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), s = Symbol.for("react.profiler"), a = Symbol.for("react.provider"), h = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), c = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), E = Symbol.for("react.memo"), b = Symbol.for("react.lazy"), I = Symbol.for("react.offscreen"), A = Symbol.iterator, x = "@@iterator";
49
+ function u(o) {
50
50
  if (o === null || typeof o != "object")
51
51
  return null;
52
- var u = P && o[P] || o[_];
53
- return typeof u == "function" ? u : null;
52
+ var d = A && o[A] || o[x];
53
+ return typeof d == "function" ? d : null;
54
54
  }
55
- var k = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
56
- function $(o) {
55
+ var j = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
56
+ function P(o) {
57
57
  {
58
- for (var u = arguments.length, g = new Array(u > 1 ? u - 1 : 0), L = 1; L < u; L++)
59
- g[L - 1] = arguments[L];
60
- J("error", o, g);
58
+ for (var d = arguments.length, m = new Array(d > 1 ? d - 1 : 0), L = 1; L < d; L++)
59
+ m[L - 1] = arguments[L];
60
+ J("error", o, m);
61
61
  }
62
62
  }
63
- function J(o, u, g) {
63
+ function J(o, d, m) {
64
64
  {
65
- var L = k.ReactDebugCurrentFrame, K = L.getStackAddendum();
66
- K !== "" && (u += "%s", g = g.concat([K]));
67
- var X = g.map(function(V) {
68
- return String(V);
65
+ var L = j.ReactDebugCurrentFrame, G = L.getStackAddendum();
66
+ G !== "" && (d += "%s", m = m.concat([G]));
67
+ var X = m.map(function(B) {
68
+ return String(B);
69
69
  });
70
- X.unshift("Warning: " + u), Function.prototype.apply.call(console[o], console, X);
70
+ X.unshift("Warning: " + d), Function.prototype.apply.call(console[o], console, X);
71
71
  }
72
72
  }
73
- var j = !1, F = !1, D = !1, z = !1, p = !1, B;
74
- B = Symbol.for("react.module.reference");
73
+ var z = !1, N = !1, D = !1, k = !1, p = !1, F;
74
+ F = Symbol.for("react.module.reference");
75
75
  function M(o) {
76
- return !!(typeof o == "string" || typeof o == "function" || o === n || o === s || p || o === i || o === f || o === h || z || o === A || j || F || D || typeof o == "object" && o !== null && (o.$$typeof === v || o.$$typeof === E || o.$$typeof === a || o.$$typeof === l || o.$$typeof === c || // This needs to include all possible module reference object
76
+ return !!(typeof o == "string" || typeof o == "function" || o === n || o === s || p || o === i || o === c || o === f || k || o === I || z || N || D || typeof o == "object" && o !== null && (o.$$typeof === b || o.$$typeof === E || o.$$typeof === a || o.$$typeof === h || o.$$typeof === l || // This needs to include all possible module reference object
77
77
  // types supported by any Flight configuration anywhere since
78
78
  // we don't know which Flight build this will end up being used
79
79
  // with.
80
- o.$$typeof === B || o.getModuleId !== void 0));
80
+ o.$$typeof === F || o.getModuleId !== void 0));
81
81
  }
82
- function W(o, u, g) {
82
+ function W(o, d, m) {
83
83
  var L = o.displayName;
84
84
  if (L)
85
85
  return L;
86
- var K = u.displayName || u.name || "";
87
- return K !== "" ? g + "(" + K + ")" : g;
86
+ var G = d.displayName || d.name || "";
87
+ return G !== "" ? m + "(" + G + ")" : m;
88
88
  }
89
- function Y(o) {
89
+ function H(o) {
90
90
  return o.displayName || "Context";
91
91
  }
92
- function q(o) {
92
+ function K(o) {
93
93
  if (o == null)
94
94
  return null;
95
- if (typeof o.tag == "number" && $("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof o == "function")
95
+ if (typeof o.tag == "number" && P("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof o == "function")
96
96
  return o.displayName || o.name || null;
97
97
  if (typeof o == "string")
98
98
  return o;
@@ -105,28 +105,28 @@ function Ir() {
105
105
  return "Profiler";
106
106
  case i:
107
107
  return "StrictMode";
108
- case f:
108
+ case c:
109
109
  return "Suspense";
110
- case h:
110
+ case f:
111
111
  return "SuspenseList";
112
112
  }
113
113
  if (typeof o == "object")
114
114
  switch (o.$$typeof) {
115
- case l:
116
- var u = o;
117
- return Y(u) + ".Consumer";
115
+ case h:
116
+ var d = o;
117
+ return H(d) + ".Consumer";
118
118
  case a:
119
- var g = o;
120
- return Y(g._context) + ".Provider";
121
- case c:
119
+ var m = o;
120
+ return H(m._context) + ".Provider";
121
+ case l:
122
122
  return W(o, o.render, "ForwardRef");
123
123
  case E:
124
124
  var L = o.displayName || null;
125
- return L !== null ? L : q(o.type) || "Memo";
126
- case v: {
127
- var K = o, X = K._payload, V = K._init;
125
+ return L !== null ? L : K(o.type) || "Memo";
126
+ case b: {
127
+ var G = o, X = G._payload, B = G._init;
128
128
  try {
129
- return q(V(X));
129
+ return K(B(X));
130
130
  } catch {
131
131
  return null;
132
132
  }
@@ -134,14 +134,14 @@ function Ir() {
134
134
  }
135
135
  return null;
136
136
  }
137
- var te = Object.assign, he = 0, be, Te, _e, Ee, Se, y, C;
137
+ var te = Object.assign, he = 0, be, Te, _e, Ee, Se, g, C;
138
138
  function w() {
139
139
  }
140
140
  w.__reactDisabledLog = !0;
141
- function b() {
141
+ function y() {
142
142
  {
143
143
  if (he === 0) {
144
- be = console.log, Te = console.info, _e = console.warn, Ee = console.error, Se = console.group, y = console.groupCollapsed, C = console.groupEnd;
144
+ be = console.log, Te = console.info, _e = console.warn, Ee = console.error, Se = console.group, g = console.groupCollapsed, C = console.groupEnd;
145
145
  var o = {
146
146
  configurable: !0,
147
147
  enumerable: !0,
@@ -161,7 +161,7 @@ function Ir() {
161
161
  he++;
162
162
  }
163
163
  }
164
- function m() {
164
+ function v() {
165
165
  {
166
166
  if (he--, he === 0) {
167
167
  var o = {
@@ -186,72 +186,72 @@ function Ir() {
186
186
  value: Se
187
187
  }),
188
188
  groupCollapsed: te({}, o, {
189
- value: y
189
+ value: g
190
190
  }),
191
191
  groupEnd: te({}, o, {
192
192
  value: C
193
193
  })
194
194
  });
195
195
  }
196
- he < 0 && $("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
196
+ he < 0 && P("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
197
197
  }
198
198
  }
199
- var O = k.ReactCurrentDispatcher, R;
200
- function S(o, u, g) {
199
+ var O = j.ReactCurrentDispatcher, _;
200
+ function R(o, d, m) {
201
201
  {
202
- if (R === void 0)
202
+ if (_ === void 0)
203
203
  try {
204
204
  throw Error();
205
- } catch (K) {
206
- var L = K.stack.trim().match(/\n( *(at )?)/);
207
- R = L && L[1] || "";
205
+ } catch (G) {
206
+ var L = G.stack.trim().match(/\n( *(at )?)/);
207
+ _ = L && L[1] || "";
208
208
  }
209
209
  return `
210
- ` + R + o;
210
+ ` + _ + o;
211
211
  }
212
212
  }
213
- var x = !1, I;
213
+ var S = !1, $;
214
214
  {
215
- var H = typeof WeakMap == "function" ? WeakMap : Map;
216
- I = new H();
215
+ var Y = typeof WeakMap == "function" ? WeakMap : Map;
216
+ $ = new Y();
217
217
  }
218
- function ae(o, u) {
219
- if (!o || x)
218
+ function ae(o, d) {
219
+ if (!o || S)
220
220
  return "";
221
221
  {
222
- var g = I.get(o);
223
- if (g !== void 0)
224
- return g;
222
+ var m = $.get(o);
223
+ if (m !== void 0)
224
+ return m;
225
225
  }
226
226
  var L;
227
- x = !0;
228
- var K = Error.prepareStackTrace;
227
+ S = !0;
228
+ var G = Error.prepareStackTrace;
229
229
  Error.prepareStackTrace = void 0;
230
230
  var X;
231
- X = O.current, O.current = null, b();
231
+ X = O.current, O.current = null, y();
232
232
  try {
233
- if (u) {
234
- var V = function() {
233
+ if (d) {
234
+ var B = function() {
235
235
  throw Error();
236
236
  };
237
- if (Object.defineProperty(V.prototype, "props", {
237
+ if (Object.defineProperty(B.prototype, "props", {
238
238
  set: function() {
239
239
  throw Error();
240
240
  }
241
241
  }), typeof Reflect == "object" && Reflect.construct) {
242
242
  try {
243
- Reflect.construct(V, []);
243
+ Reflect.construct(B, []);
244
244
  } catch (ve) {
245
245
  L = ve;
246
246
  }
247
- Reflect.construct(o, [], V);
247
+ Reflect.construct(o, [], B);
248
248
  } else {
249
249
  try {
250
- V.call();
250
+ B.call();
251
251
  } catch (ve) {
252
252
  L = ve;
253
253
  }
254
- o.call(V.prototype);
254
+ o.call(B.prototype);
255
255
  }
256
256
  } else {
257
257
  try {
@@ -263,89 +263,89 @@ function Ir() {
263
263
  }
264
264
  } catch (ve) {
265
265
  if (ve && L && typeof ve.stack == "string") {
266
- for (var N = ve.stack.split(`
266
+ for (var V = ve.stack.split(`
267
267
  `), de = L.stack.split(`
268
- `), ne = N.length - 1, se = de.length - 1; ne >= 1 && se >= 0 && N[ne] !== de[se]; )
268
+ `), ne = V.length - 1, se = de.length - 1; ne >= 1 && se >= 0 && V[ne] !== de[se]; )
269
269
  se--;
270
270
  for (; ne >= 1 && se >= 0; ne--, se--)
271
- if (N[ne] !== de[se]) {
271
+ if (V[ne] !== de[se]) {
272
272
  if (ne !== 1 || se !== 1)
273
273
  do
274
- if (ne--, se--, se < 0 || N[ne] !== de[se]) {
274
+ if (ne--, se--, se < 0 || V[ne] !== de[se]) {
275
275
  var we = `
276
- ` + N[ne].replace(" at new ", " at ");
277
- return o.displayName && we.includes("<anonymous>") && (we = we.replace("<anonymous>", o.displayName)), typeof o == "function" && I.set(o, we), we;
276
+ ` + V[ne].replace(" at new ", " at ");
277
+ return o.displayName && we.includes("<anonymous>") && (we = we.replace("<anonymous>", o.displayName)), typeof o == "function" && $.set(o, we), we;
278
278
  }
279
279
  while (ne >= 1 && se >= 0);
280
280
  break;
281
281
  }
282
282
  }
283
283
  } finally {
284
- x = !1, O.current = X, m(), Error.prepareStackTrace = K;
284
+ S = !1, O.current = X, v(), Error.prepareStackTrace = G;
285
285
  }
286
- var ke = o ? o.displayName || o.name : "", Me = ke ? S(ke) : "";
287
- return typeof o == "function" && I.set(o, Me), Me;
286
+ var ke = o ? o.displayName || o.name : "", Me = ke ? R(ke) : "";
287
+ return typeof o == "function" && $.set(o, Me), Me;
288
288
  }
289
- function le(o, u, g) {
289
+ function le(o, d, m) {
290
290
  return ae(o, !1);
291
291
  }
292
292
  function T(o) {
293
- var u = o.prototype;
294
- return !!(u && u.isReactComponent);
293
+ var d = o.prototype;
294
+ return !!(d && d.isReactComponent);
295
295
  }
296
- function Q(o, u, g) {
296
+ function Q(o, d, m) {
297
297
  if (o == null)
298
298
  return "";
299
299
  if (typeof o == "function")
300
300
  return ae(o, T(o));
301
301
  if (typeof o == "string")
302
- return S(o);
302
+ return R(o);
303
303
  switch (o) {
304
+ case c:
305
+ return R("Suspense");
304
306
  case f:
305
- return S("Suspense");
306
- case h:
307
- return S("SuspenseList");
307
+ return R("SuspenseList");
308
308
  }
309
309
  if (typeof o == "object")
310
310
  switch (o.$$typeof) {
311
- case c:
311
+ case l:
312
312
  return le(o.render);
313
313
  case E:
314
- return Q(o.type, u, g);
315
- case v: {
316
- var L = o, K = L._payload, X = L._init;
314
+ return Q(o.type, d, m);
315
+ case b: {
316
+ var L = o, G = L._payload, X = L._init;
317
317
  try {
318
- return Q(X(K), u, g);
318
+ return Q(X(G), d, m);
319
319
  } catch {
320
320
  }
321
321
  }
322
322
  }
323
323
  return "";
324
324
  }
325
- var ee = Object.prototype.hasOwnProperty, fe = {}, Le = k.ReactDebugCurrentFrame;
325
+ var ee = Object.prototype.hasOwnProperty, fe = {}, $e = j.ReactDebugCurrentFrame;
326
326
  function pe(o) {
327
327
  if (o) {
328
- var u = o._owner, g = Q(o.type, o._source, u ? u.type : null);
329
- Le.setExtraStackFrame(g);
328
+ var d = o._owner, m = Q(o.type, o._source, d ? d.type : null);
329
+ $e.setExtraStackFrame(m);
330
330
  } else
331
- Le.setExtraStackFrame(null);
331
+ $e.setExtraStackFrame(null);
332
332
  }
333
- function oe(o, u, g, L, K) {
333
+ function oe(o, d, m, L, G) {
334
334
  {
335
335
  var X = Function.call.bind(ee);
336
- for (var V in o)
337
- if (X(o, V)) {
338
- var N = void 0;
336
+ for (var B in o)
337
+ if (X(o, B)) {
338
+ var V = void 0;
339
339
  try {
340
- if (typeof o[V] != "function") {
341
- var de = Error((L || "React class") + ": " + g + " type `" + V + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof o[V] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
340
+ if (typeof o[B] != "function") {
341
+ var de = Error((L || "React class") + ": " + m + " type `" + B + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof o[B] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
342
342
  throw de.name = "Invariant Violation", de;
343
343
  }
344
- N = o[V](u, V, L, g, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
344
+ V = o[B](d, B, L, m, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
345
345
  } catch (ne) {
346
- N = ne;
346
+ V = ne;
347
347
  }
348
- N && !(N instanceof Error) && (pe(K), $("%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).", L || "React class", g, V, typeof N), pe(null)), N instanceof Error && !(N.message in fe) && (fe[N.message] = !0, pe(K), $("Failed %s type: %s", g, N.message), pe(null));
348
+ V && !(V instanceof Error) && (pe(G), P("%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).", L || "React class", m, B, typeof V), pe(null)), V instanceof Error && !(V.message in fe) && (fe[V.message] = !0, pe(G), P("Failed %s type: %s", m, V.message), pe(null));
349
349
  }
350
350
  }
351
351
  }
@@ -355,8 +355,8 @@ function Ir() {
355
355
  }
356
356
  function je(o) {
357
357
  {
358
- var u = typeof Symbol == "function" && Symbol.toStringTag, g = u && o[Symbol.toStringTag] || o.constructor.name || "Object";
359
- return g;
358
+ var d = typeof Symbol == "function" && Symbol.toStringTag, m = d && o[Symbol.toStringTag] || o.constructor.name || "Object";
359
+ return m;
360
360
  }
361
361
  }
362
362
  function Ke(o) {
@@ -371,123 +371,123 @@ function Ir() {
371
371
  }
372
372
  function Ne(o) {
373
373
  if (Ke(o))
374
- return $("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", je(o)), Ae(o);
374
+ return P("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", je(o)), Ae(o);
375
375
  }
376
- var xe = k.ReactCurrentOwner, ur = {
376
+ var Ce = j.ReactCurrentOwner, fr = {
377
377
  key: !0,
378
378
  ref: !0,
379
379
  __self: !0,
380
380
  __source: !0
381
- }, Rt, St, et;
382
- et = {};
383
- function fr(o) {
381
+ }, Ct, xt, tt;
382
+ tt = {};
383
+ function dr(o) {
384
384
  if (ee.call(o, "ref")) {
385
- var u = Object.getOwnPropertyDescriptor(o, "ref").get;
386
- if (u && u.isReactWarning)
385
+ var d = Object.getOwnPropertyDescriptor(o, "ref").get;
386
+ if (d && d.isReactWarning)
387
387
  return !1;
388
388
  }
389
389
  return o.ref !== void 0;
390
390
  }
391
- function dr(o) {
391
+ function hr(o) {
392
392
  if (ee.call(o, "key")) {
393
- var u = Object.getOwnPropertyDescriptor(o, "key").get;
394
- if (u && u.isReactWarning)
393
+ var d = Object.getOwnPropertyDescriptor(o, "key").get;
394
+ if (d && d.isReactWarning)
395
395
  return !1;
396
396
  }
397
397
  return o.key !== void 0;
398
398
  }
399
- function hr(o, u) {
400
- if (typeof o.ref == "string" && xe.current && u && xe.current.stateNode !== u) {
401
- var g = q(xe.current.type);
402
- et[g] || ($('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', q(xe.current.type), o.ref), et[g] = !0);
399
+ function pr(o, d) {
400
+ if (typeof o.ref == "string" && Ce.current && d && Ce.current.stateNode !== d) {
401
+ var m = K(Ce.current.type);
402
+ tt[m] || (P('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', K(Ce.current.type), o.ref), tt[m] = !0);
403
403
  }
404
404
  }
405
- function pr(o, u) {
405
+ function vr(o, d) {
406
406
  {
407
- var g = function() {
408
- Rt || (Rt = !0, $("%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)", u));
407
+ var m = function() {
408
+ Ct || (Ct = !0, P("%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)", d));
409
409
  };
410
- g.isReactWarning = !0, Object.defineProperty(o, "key", {
411
- get: g,
410
+ m.isReactWarning = !0, Object.defineProperty(o, "key", {
411
+ get: m,
412
412
  configurable: !0
413
413
  });
414
414
  }
415
415
  }
416
- function vr(o, u) {
416
+ function mr(o, d) {
417
417
  {
418
- var g = function() {
419
- St || (St = !0, $("%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)", u));
418
+ var m = function() {
419
+ xt || (xt = !0, P("%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)", d));
420
420
  };
421
- g.isReactWarning = !0, Object.defineProperty(o, "ref", {
422
- get: g,
421
+ m.isReactWarning = !0, Object.defineProperty(o, "ref", {
422
+ get: m,
423
423
  configurable: !0
424
424
  });
425
425
  }
426
426
  }
427
- var mr = function(o, u, g, L, K, X, V) {
428
- var N = {
427
+ var gr = function(o, d, m, L, G, X, B) {
428
+ var V = {
429
429
  // This tag allows us to uniquely identify this as a React Element
430
430
  $$typeof: t,
431
431
  // Built-in properties that belong on the element
432
432
  type: o,
433
- key: u,
434
- ref: g,
435
- props: V,
433
+ key: d,
434
+ ref: m,
435
+ props: B,
436
436
  // Record the component responsible for creating this element.
437
437
  _owner: X
438
438
  };
439
- return N._store = {}, Object.defineProperty(N._store, "validated", {
439
+ return V._store = {}, Object.defineProperty(V._store, "validated", {
440
440
  configurable: !1,
441
441
  enumerable: !1,
442
442
  writable: !0,
443
443
  value: !1
444
- }), Object.defineProperty(N, "_self", {
444
+ }), Object.defineProperty(V, "_self", {
445
445
  configurable: !1,
446
446
  enumerable: !1,
447
447
  writable: !1,
448
448
  value: L
449
- }), Object.defineProperty(N, "_source", {
449
+ }), Object.defineProperty(V, "_source", {
450
450
  configurable: !1,
451
451
  enumerable: !1,
452
452
  writable: !1,
453
- value: K
454
- }), Object.freeze && (Object.freeze(N.props), Object.freeze(N)), N;
453
+ value: G
454
+ }), Object.freeze && (Object.freeze(V.props), Object.freeze(V)), V;
455
455
  };
456
- function gr(o, u, g, L, K) {
456
+ function yr(o, d, m, L, G) {
457
457
  {
458
- var X, V = {}, N = null, de = null;
459
- g !== void 0 && (Ne(g), N = "" + g), dr(u) && (Ne(u.key), N = "" + u.key), fr(u) && (de = u.ref, hr(u, K));
460
- for (X in u)
461
- ee.call(u, X) && !ur.hasOwnProperty(X) && (V[X] = u[X]);
458
+ var X, B = {}, V = null, de = null;
459
+ m !== void 0 && (Ne(m), V = "" + m), hr(d) && (Ne(d.key), V = "" + d.key), dr(d) && (de = d.ref, pr(d, G));
460
+ for (X in d)
461
+ ee.call(d, X) && !fr.hasOwnProperty(X) && (B[X] = d[X]);
462
462
  if (o && o.defaultProps) {
463
463
  var ne = o.defaultProps;
464
464
  for (X in ne)
465
- V[X] === void 0 && (V[X] = ne[X]);
465
+ B[X] === void 0 && (B[X] = ne[X]);
466
466
  }
467
- if (N || de) {
467
+ if (V || de) {
468
468
  var se = typeof o == "function" ? o.displayName || o.name || "Unknown" : o;
469
- N && pr(V, se), de && vr(V, se);
469
+ V && vr(B, se), de && mr(B, se);
470
470
  }
471
- return mr(o, N, de, K, L, xe.current, V);
471
+ return gr(o, V, de, G, L, Ce.current, B);
472
472
  }
473
473
  }
474
- var tt = k.ReactCurrentOwner, xt = k.ReactDebugCurrentFrame;
475
- function $e(o) {
474
+ var rt = j.ReactCurrentOwner, Ot = j.ReactDebugCurrentFrame;
475
+ function Le(o) {
476
476
  if (o) {
477
- var u = o._owner, g = Q(o.type, o._source, u ? u.type : null);
478
- xt.setExtraStackFrame(g);
477
+ var d = o._owner, m = Q(o.type, o._source, d ? d.type : null);
478
+ Ot.setExtraStackFrame(m);
479
479
  } else
480
- xt.setExtraStackFrame(null);
480
+ Ot.setExtraStackFrame(null);
481
481
  }
482
- var rt;
483
- rt = !1;
484
- function nt(o) {
482
+ var nt;
483
+ nt = !1;
484
+ function ot(o) {
485
485
  return typeof o == "object" && o !== null && o.$$typeof === t;
486
486
  }
487
- function Ct() {
487
+ function Tt() {
488
488
  {
489
- if (tt.current) {
490
- var o = q(tt.current.type);
489
+ if (rt.current) {
490
+ var o = K(rt.current.type);
491
491
  if (o)
492
492
  return `
493
493
 
@@ -496,165 +496,165 @@ Check the render method of \`` + o + "`.";
496
496
  return "";
497
497
  }
498
498
  }
499
- function yr(o) {
499
+ function br(o) {
500
500
  {
501
501
  if (o !== void 0) {
502
- var u = o.fileName.replace(/^.*[\\\/]/, ""), g = o.lineNumber;
502
+ var d = o.fileName.replace(/^.*[\\\/]/, ""), m = o.lineNumber;
503
503
  return `
504
504
 
505
- Check your code at ` + u + ":" + g + ".";
505
+ Check your code at ` + d + ":" + m + ".";
506
506
  }
507
507
  return "";
508
508
  }
509
509
  }
510
- var Ot = {};
511
- function br(o) {
510
+ var Pt = {};
511
+ function Er(o) {
512
512
  {
513
- var u = Ct();
514
- if (!u) {
515
- var g = typeof o == "string" ? o : o.displayName || o.name;
516
- g && (u = `
513
+ var d = Tt();
514
+ if (!d) {
515
+ var m = typeof o == "string" ? o : o.displayName || o.name;
516
+ m && (d = `
517
517
 
518
- Check the top-level render call using <` + g + ">.");
518
+ Check the top-level render call using <` + m + ">.");
519
519
  }
520
- return u;
520
+ return d;
521
521
  }
522
522
  }
523
- function Tt(o, u) {
523
+ function jt(o, d) {
524
524
  {
525
525
  if (!o._store || o._store.validated || o.key != null)
526
526
  return;
527
527
  o._store.validated = !0;
528
- var g = br(u);
529
- if (Ot[g])
528
+ var m = Er(d);
529
+ if (Pt[m])
530
530
  return;
531
- Ot[g] = !0;
531
+ Pt[m] = !0;
532
532
  var L = "";
533
- o && o._owner && o._owner !== tt.current && (L = " It was passed a child from " + q(o._owner.type) + "."), $e(o), $('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', g, L), $e(null);
533
+ o && o._owner && o._owner !== rt.current && (L = " It was passed a child from " + K(o._owner.type) + "."), Le(o), P('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', m, L), Le(null);
534
534
  }
535
535
  }
536
- function Pt(o, u) {
536
+ function At(o, d) {
537
537
  {
538
538
  if (typeof o != "object")
539
539
  return;
540
540
  if (ce(o))
541
- for (var g = 0; g < o.length; g++) {
542
- var L = o[g];
543
- nt(L) && Tt(L, u);
541
+ for (var m = 0; m < o.length; m++) {
542
+ var L = o[m];
543
+ ot(L) && jt(L, d);
544
544
  }
545
- else if (nt(o))
545
+ else if (ot(o))
546
546
  o._store && (o._store.validated = !0);
547
547
  else if (o) {
548
- var K = d(o);
549
- if (typeof K == "function" && K !== o.entries)
550
- for (var X = K.call(o), V; !(V = X.next()).done; )
551
- nt(V.value) && Tt(V.value, u);
548
+ var G = u(o);
549
+ if (typeof G == "function" && G !== o.entries)
550
+ for (var X = G.call(o), B; !(B = X.next()).done; )
551
+ ot(B.value) && jt(B.value, d);
552
552
  }
553
553
  }
554
554
  }
555
- function Er(o) {
555
+ function wr(o) {
556
556
  {
557
- var u = o.type;
558
- if (u == null || typeof u == "string")
557
+ var d = o.type;
558
+ if (d == null || typeof d == "string")
559
559
  return;
560
- var g;
561
- if (typeof u == "function")
562
- g = u.propTypes;
563
- else if (typeof u == "object" && (u.$$typeof === c || // Note: Memo only checks outer props here.
560
+ var m;
561
+ if (typeof d == "function")
562
+ m = d.propTypes;
563
+ else if (typeof d == "object" && (d.$$typeof === l || // Note: Memo only checks outer props here.
564
564
  // Inner props are checked in the reconciler.
565
- u.$$typeof === E))
566
- g = u.propTypes;
565
+ d.$$typeof === E))
566
+ m = d.propTypes;
567
567
  else
568
568
  return;
569
- if (g) {
570
- var L = q(u);
571
- oe(g, o.props, "prop", L, o);
572
- } else if (u.PropTypes !== void 0 && !rt) {
573
- rt = !0;
574
- var K = q(u);
575
- $("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", K || "Unknown");
569
+ if (m) {
570
+ var L = K(d);
571
+ oe(m, o.props, "prop", L, o);
572
+ } else if (d.PropTypes !== void 0 && !nt) {
573
+ nt = !0;
574
+ var G = K(d);
575
+ P("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", G || "Unknown");
576
576
  }
577
- typeof u.getDefaultProps == "function" && !u.getDefaultProps.isReactClassApproved && $("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
577
+ typeof d.getDefaultProps == "function" && !d.getDefaultProps.isReactClassApproved && P("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
578
578
  }
579
579
  }
580
- function wr(o) {
580
+ function _r(o) {
581
581
  {
582
- for (var u = Object.keys(o.props), g = 0; g < u.length; g++) {
583
- var L = u[g];
582
+ for (var d = Object.keys(o.props), m = 0; m < d.length; m++) {
583
+ var L = d[m];
584
584
  if (L !== "children" && L !== "key") {
585
- $e(o), $("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", L), $e(null);
585
+ Le(o), P("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", L), Le(null);
586
586
  break;
587
587
  }
588
588
  }
589
- o.ref !== null && ($e(o), $("Invalid attribute `ref` supplied to `React.Fragment`."), $e(null));
589
+ o.ref !== null && (Le(o), P("Invalid attribute `ref` supplied to `React.Fragment`."), Le(null));
590
590
  }
591
591
  }
592
- var jt = {};
593
- function At(o, u, g, L, K, X) {
592
+ var Mt = {};
593
+ function zt(o, d, m, L, G, X) {
594
594
  {
595
- var V = M(o);
596
- if (!V) {
597
- var N = "";
598
- (o === void 0 || typeof o == "object" && o !== null && Object.keys(o).length === 0) && (N += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
599
- var de = yr(K);
600
- de ? N += de : N += Ct();
595
+ var B = M(o);
596
+ if (!B) {
597
+ var V = "";
598
+ (o === void 0 || typeof o == "object" && o !== null && Object.keys(o).length === 0) && (V += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
599
+ var de = br(G);
600
+ de ? V += de : V += Tt();
601
601
  var ne;
602
- o === null ? ne = "null" : ce(o) ? ne = "array" : o !== void 0 && o.$$typeof === t ? (ne = "<" + (q(o.type) || "Unknown") + " />", N = " Did you accidentally export a JSX literal instead of a component?") : ne = typeof o, $("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", ne, N);
602
+ o === null ? ne = "null" : ce(o) ? ne = "array" : o !== void 0 && o.$$typeof === t ? (ne = "<" + (K(o.type) || "Unknown") + " />", V = " Did you accidentally export a JSX literal instead of a component?") : ne = typeof o, P("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", ne, V);
603
603
  }
604
- var se = gr(o, u, g, K, X);
604
+ var se = yr(o, d, m, G, X);
605
605
  if (se == null)
606
606
  return se;
607
- if (V) {
608
- var we = u.children;
607
+ if (B) {
608
+ var we = d.children;
609
609
  if (we !== void 0)
610
610
  if (L)
611
611
  if (ce(we)) {
612
612
  for (var ke = 0; ke < we.length; ke++)
613
- Pt(we[ke], o);
613
+ At(we[ke], o);
614
614
  Object.freeze && Object.freeze(we);
615
615
  } else
616
- $("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
616
+ P("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
617
617
  else
618
- Pt(we, o);
618
+ At(we, o);
619
619
  }
620
- if (ee.call(u, "key")) {
621
- var Me = q(o), ve = Object.keys(u).filter(function(Or) {
622
- return Or !== "key";
623
- }), ot = ve.length > 0 ? "{key: someKey, " + ve.join(": ..., ") + ": ...}" : "{key: someKey}";
624
- if (!jt[Me + ot]) {
625
- var Cr = ve.length > 0 ? "{" + ve.join(": ..., ") + ": ...}" : "{}";
626
- $(`A props object containing a "key" prop is being spread into JSX:
620
+ if (ee.call(d, "key")) {
621
+ var Me = K(o), ve = Object.keys(d).filter(function(Tr) {
622
+ return Tr !== "key";
623
+ }), it = ve.length > 0 ? "{key: someKey, " + ve.join(": ..., ") + ": ...}" : "{key: someKey}";
624
+ if (!Mt[Me + it]) {
625
+ var Or = ve.length > 0 ? "{" + ve.join(": ..., ") + ": ...}" : "{}";
626
+ P(`A props object containing a "key" prop is being spread into JSX:
627
627
  let props = %s;
628
628
  <%s {...props} />
629
629
  React keys must be passed directly to JSX without using spread:
630
630
  let props = %s;
631
- <%s key={someKey} {...props} />`, ot, Me, Cr, Me), jt[Me + ot] = !0;
631
+ <%s key={someKey} {...props} />`, it, Me, Or, Me), Mt[Me + it] = !0;
632
632
  }
633
633
  }
634
- return o === n ? wr(se) : Er(se), se;
634
+ return o === n ? _r(se) : wr(se), se;
635
635
  }
636
636
  }
637
- function _r(o, u, g) {
638
- return At(o, u, g, !0);
637
+ function Rr(o, d, m) {
638
+ return zt(o, d, m, !0);
639
639
  }
640
- function Rr(o, u, g) {
641
- return At(o, u, g, !1);
640
+ function Sr(o, d, m) {
641
+ return zt(o, d, m, !1);
642
642
  }
643
- var Sr = Rr, xr = _r;
644
- Ve.Fragment = n, Ve.jsx = Sr, Ve.jsxs = xr;
643
+ var Cr = Sr, xr = Rr;
644
+ Ve.Fragment = n, Ve.jsx = Cr, Ve.jsxs = xr;
645
645
  }()), Ve;
646
646
  }
647
- process.env.NODE_ENV === "production" ? dt.exports = zr() : dt.exports = Ir();
648
- var Z = dt.exports;
649
- function ht() {
650
- return ht = Object.assign ? Object.assign.bind() : function(e) {
647
+ process.env.NODE_ENV === "production" ? ht.exports = Ir() : ht.exports = $r();
648
+ var Z = ht.exports;
649
+ function pt() {
650
+ return pt = Object.assign ? Object.assign.bind() : function(e) {
651
651
  for (var t = 1; t < arguments.length; t++) {
652
652
  var r = arguments[t];
653
653
  for (var n in r)
654
654
  ({}).hasOwnProperty.call(r, n) && (e[n] = r[n]);
655
655
  }
656
656
  return e;
657
- }, ht.apply(null, arguments);
657
+ }, pt.apply(null, arguments);
658
658
  }
659
659
  function Re(e) {
660
660
  "@babel/helpers - typeof";
@@ -664,29 +664,29 @@ function Re(e) {
664
664
  return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
665
665
  }, Re(e);
666
666
  }
667
- var Lr = Symbol.for("react.element"), $r = Symbol.for("react.transitional.element"), kr = Symbol.for("react.fragment");
668
- function qt(e) {
667
+ var Lr = Symbol.for("react.element"), kr = Symbol.for("react.transitional.element"), Dr = Symbol.for("react.fragment");
668
+ function Xt(e) {
669
669
  return (
670
670
  // Base object type
671
671
  e && Re(e) === "object" && // React Element type
672
- (e.$$typeof === Lr || e.$$typeof === $r) && // React Fragment type
673
- e.type === kr
672
+ (e.$$typeof === Lr || e.$$typeof === kr) && // React Fragment type
673
+ e.type === Dr
674
674
  );
675
675
  }
676
- function pt(e) {
676
+ function vt(e) {
677
677
  var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = [];
678
678
  return Ye.Children.forEach(e, function(n) {
679
- n == null && !t.keepEmpty || (Array.isArray(n) ? r = r.concat(pt(n)) : qt(n) && n.props ? r = r.concat(pt(n.props.children, t)) : r.push(n));
679
+ n == null && !t.keepEmpty || (Array.isArray(n) ? r = r.concat(vt(n)) : Xt(n) && n.props ? r = r.concat(vt(n.props.children, t)) : r.push(n));
680
680
  }), r;
681
681
  }
682
- var Dr = [];
683
- function $t(e, t) {
682
+ var Fr = [];
683
+ function Dt(e, t) {
684
684
  if (process.env.NODE_ENV !== "production" && !e && console !== void 0)
685
- var r = Dr.reduce(function(n, i) {
685
+ var r = Fr.reduce(function(n, i) {
686
686
  return i(n ?? "", "warning");
687
687
  }, t);
688
688
  }
689
- function Fr(e, t) {
689
+ function Nr(e, t) {
690
690
  if (Re(e) != "object" || !e)
691
691
  return e;
692
692
  var r = e[Symbol.toPrimitive];
@@ -698,19 +698,19 @@ function Fr(e, t) {
698
698
  }
699
699
  return (t === "string" ? String : Number)(e);
700
700
  }
701
- function Jt(e) {
702
- var t = Fr(e, "string");
701
+ function Zt(e) {
702
+ var t = Nr(e, "string");
703
703
  return Re(t) == "symbol" ? t : t + "";
704
704
  }
705
- function Nr(e, t, r) {
706
- return (t = Jt(t)) in e ? Object.defineProperty(e, t, {
705
+ function Wr(e, t, r) {
706
+ return (t = Zt(t)) in e ? Object.defineProperty(e, t, {
707
707
  value: r,
708
708
  enumerable: !0,
709
709
  configurable: !0,
710
710
  writable: !0
711
711
  }) : e[t] = r, e;
712
712
  }
713
- function kt(e, t) {
713
+ function Ft(e, t) {
714
714
  var r = Object.keys(e);
715
715
  if (Object.getOwnPropertySymbols) {
716
716
  var n = Object.getOwnPropertySymbols(e);
@@ -720,34 +720,34 @@ function kt(e, t) {
720
720
  }
721
721
  return r;
722
722
  }
723
- function Dt(e) {
723
+ function Nt(e) {
724
724
  for (var t = 1; t < arguments.length; t++) {
725
725
  var r = arguments[t] != null ? arguments[t] : {};
726
- t % 2 ? kt(Object(r), !0).forEach(function(n) {
727
- Nr(e, n, r[n]);
728
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : kt(Object(r)).forEach(function(n) {
726
+ t % 2 ? Ft(Object(r), !0).forEach(function(n) {
727
+ Wr(e, n, r[n]);
728
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : Ft(Object(r)).forEach(function(n) {
729
729
  Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
730
730
  });
731
731
  }
732
732
  return e;
733
733
  }
734
- function Ft(e) {
734
+ function Wt(e) {
735
735
  return e instanceof HTMLElement || e instanceof SVGElement;
736
736
  }
737
- function Wr(e) {
738
- return e && Re(e) === "object" && Ft(e.nativeElement) ? e.nativeElement : Ft(e) ? e : null;
737
+ function Vr(e) {
738
+ return e && Re(e) === "object" && Wt(e.nativeElement) ? e.nativeElement : Wt(e) ? e : null;
739
739
  }
740
- function it(e) {
741
- var t = Wr(e);
740
+ function st(e) {
741
+ var t = Vr(e);
742
742
  if (t)
743
743
  return t;
744
744
  if (e instanceof Ye.Component) {
745
745
  var r;
746
- return (r = zt.findDOMNode) === null || r === void 0 ? void 0 : r.call(zt, e);
746
+ return (r = $t.findDOMNode) === null || r === void 0 ? void 0 : r.call($t, e);
747
747
  }
748
748
  return null;
749
749
  }
750
- var vt = { exports: {} }, G = {};
750
+ var mt = { exports: {} }, U = {};
751
751
  /**
752
752
  * @license React
753
753
  * react-is.production.min.js
@@ -757,76 +757,76 @@ var vt = { exports: {} }, G = {};
757
757
  * This source code is licensed under the MIT license found in the
758
758
  * LICENSE file in the root directory of this source tree.
759
759
  */
760
- var Nt;
761
- function Vr() {
762
- if (Nt)
763
- return G;
764
- Nt = 1;
765
- var e = Symbol.for("react.element"), t = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), n = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), a = Symbol.for("react.context"), l = Symbol.for("react.server_context"), c = Symbol.for("react.forward_ref"), f = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), E = Symbol.for("react.memo"), v = Symbol.for("react.lazy"), A = Symbol.for("react.offscreen"), P;
766
- P = Symbol.for("react.module.reference");
767
- function _(d) {
768
- if (typeof d == "object" && d !== null) {
769
- var k = d.$$typeof;
770
- switch (k) {
760
+ var Vt;
761
+ function Hr() {
762
+ if (Vt)
763
+ return U;
764
+ Vt = 1;
765
+ var e = Symbol.for("react.element"), t = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), n = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), a = Symbol.for("react.context"), h = Symbol.for("react.server_context"), l = Symbol.for("react.forward_ref"), c = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), E = Symbol.for("react.memo"), b = Symbol.for("react.lazy"), I = Symbol.for("react.offscreen"), A;
766
+ A = Symbol.for("react.module.reference");
767
+ function x(u) {
768
+ if (typeof u == "object" && u !== null) {
769
+ var j = u.$$typeof;
770
+ switch (j) {
771
771
  case e:
772
- switch (d = d.type, d) {
772
+ switch (u = u.type, u) {
773
773
  case r:
774
774
  case i:
775
775
  case n:
776
+ case c:
776
777
  case f:
777
- case h:
778
- return d;
778
+ return u;
779
779
  default:
780
- switch (d = d && d.$$typeof, d) {
781
- case l:
780
+ switch (u = u && u.$$typeof, u) {
781
+ case h:
782
782
  case a:
783
- case c:
784
- case v:
783
+ case l:
784
+ case b:
785
785
  case E:
786
786
  case s:
787
- return d;
787
+ return u;
788
788
  default:
789
- return k;
789
+ return j;
790
790
  }
791
791
  }
792
792
  case t:
793
- return k;
793
+ return j;
794
794
  }
795
795
  }
796
796
  }
797
- return G.ContextConsumer = a, G.ContextProvider = s, G.Element = e, G.ForwardRef = c, G.Fragment = r, G.Lazy = v, G.Memo = E, G.Portal = t, G.Profiler = i, G.StrictMode = n, G.Suspense = f, G.SuspenseList = h, G.isAsyncMode = function() {
797
+ return U.ContextConsumer = a, U.ContextProvider = s, U.Element = e, U.ForwardRef = l, U.Fragment = r, U.Lazy = b, U.Memo = E, U.Portal = t, U.Profiler = i, U.StrictMode = n, U.Suspense = c, U.SuspenseList = f, U.isAsyncMode = function() {
798
798
  return !1;
799
- }, G.isConcurrentMode = function() {
799
+ }, U.isConcurrentMode = function() {
800
800
  return !1;
801
- }, G.isContextConsumer = function(d) {
802
- return _(d) === a;
803
- }, G.isContextProvider = function(d) {
804
- return _(d) === s;
805
- }, G.isElement = function(d) {
806
- return typeof d == "object" && d !== null && d.$$typeof === e;
807
- }, G.isForwardRef = function(d) {
808
- return _(d) === c;
809
- }, G.isFragment = function(d) {
810
- return _(d) === r;
811
- }, G.isLazy = function(d) {
812
- return _(d) === v;
813
- }, G.isMemo = function(d) {
814
- return _(d) === E;
815
- }, G.isPortal = function(d) {
816
- return _(d) === t;
817
- }, G.isProfiler = function(d) {
818
- return _(d) === i;
819
- }, G.isStrictMode = function(d) {
820
- return _(d) === n;
821
- }, G.isSuspense = function(d) {
822
- return _(d) === f;
823
- }, G.isSuspenseList = function(d) {
824
- return _(d) === h;
825
- }, G.isValidElementType = function(d) {
826
- return typeof d == "string" || typeof d == "function" || d === r || d === i || d === n || d === f || d === h || d === A || typeof d == "object" && d !== null && (d.$$typeof === v || d.$$typeof === E || d.$$typeof === s || d.$$typeof === a || d.$$typeof === c || d.$$typeof === P || d.getModuleId !== void 0);
827
- }, G.typeOf = _, G;
828
- }
829
- var U = {};
801
+ }, U.isContextConsumer = function(u) {
802
+ return x(u) === a;
803
+ }, U.isContextProvider = function(u) {
804
+ return x(u) === s;
805
+ }, U.isElement = function(u) {
806
+ return typeof u == "object" && u !== null && u.$$typeof === e;
807
+ }, U.isForwardRef = function(u) {
808
+ return x(u) === l;
809
+ }, U.isFragment = function(u) {
810
+ return x(u) === r;
811
+ }, U.isLazy = function(u) {
812
+ return x(u) === b;
813
+ }, U.isMemo = function(u) {
814
+ return x(u) === E;
815
+ }, U.isPortal = function(u) {
816
+ return x(u) === t;
817
+ }, U.isProfiler = function(u) {
818
+ return x(u) === i;
819
+ }, U.isStrictMode = function(u) {
820
+ return x(u) === n;
821
+ }, U.isSuspense = function(u) {
822
+ return x(u) === c;
823
+ }, U.isSuspenseList = function(u) {
824
+ return x(u) === f;
825
+ }, U.isValidElementType = function(u) {
826
+ return typeof u == "string" || typeof u == "function" || u === r || u === i || u === n || u === c || u === f || u === I || typeof u == "object" && u !== null && (u.$$typeof === b || u.$$typeof === E || u.$$typeof === s || u.$$typeof === a || u.$$typeof === l || u.$$typeof === A || u.getModuleId !== void 0);
827
+ }, U.typeOf = x, U;
828
+ }
829
+ var q = {};
830
830
  /**
831
831
  * @license React
832
832
  * react-is.development.js
@@ -836,19 +836,19 @@ var U = {};
836
836
  * This source code is licensed under the MIT license found in the
837
837
  * LICENSE file in the root directory of this source tree.
838
838
  */
839
- var Wt;
840
- function Hr() {
841
- return Wt || (Wt = 1, process.env.NODE_ENV !== "production" && function() {
842
- var e = Symbol.for("react.element"), t = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), n = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), a = Symbol.for("react.context"), l = Symbol.for("react.server_context"), c = Symbol.for("react.forward_ref"), f = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), E = Symbol.for("react.memo"), v = Symbol.for("react.lazy"), A = Symbol.for("react.offscreen"), P = !1, _ = !1, d = !1, k = !1, $ = !1, J;
839
+ var Ht;
840
+ function Br() {
841
+ return Ht || (Ht = 1, process.env.NODE_ENV !== "production" && function() {
842
+ var e = Symbol.for("react.element"), t = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), n = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), a = Symbol.for("react.context"), h = Symbol.for("react.server_context"), l = Symbol.for("react.forward_ref"), c = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), E = Symbol.for("react.memo"), b = Symbol.for("react.lazy"), I = Symbol.for("react.offscreen"), A = !1, x = !1, u = !1, j = !1, P = !1, J;
843
843
  J = Symbol.for("react.module.reference");
844
- function j(T) {
845
- return !!(typeof T == "string" || typeof T == "function" || T === r || T === i || $ || T === n || T === f || T === h || k || T === A || P || _ || d || typeof T == "object" && T !== null && (T.$$typeof === v || T.$$typeof === E || T.$$typeof === s || T.$$typeof === a || T.$$typeof === c || // This needs to include all possible module reference object
844
+ function z(T) {
845
+ return !!(typeof T == "string" || typeof T == "function" || T === r || T === i || P || T === n || T === c || T === f || j || T === I || A || x || u || typeof T == "object" && T !== null && (T.$$typeof === b || T.$$typeof === E || T.$$typeof === s || T.$$typeof === a || T.$$typeof === l || // This needs to include all possible module reference object
846
846
  // types supported by any Flight configuration anywhere since
847
847
  // we don't know which Flight build this will end up being used
848
848
  // with.
849
849
  T.$$typeof === J || T.getModuleId !== void 0));
850
850
  }
851
- function F(T) {
851
+ function N(T) {
852
852
  if (typeof T == "object" && T !== null) {
853
853
  var Q = T.$$typeof;
854
854
  switch (Q) {
@@ -858,16 +858,16 @@ function Hr() {
858
858
  case r:
859
859
  case i:
860
860
  case n:
861
+ case c:
861
862
  case f:
862
- case h:
863
863
  return ee;
864
864
  default:
865
865
  var fe = ee && ee.$$typeof;
866
866
  switch (fe) {
867
- case l:
867
+ case h:
868
868
  case a:
869
- case c:
870
- case v:
869
+ case l:
870
+ case b:
871
871
  case E:
872
872
  case s:
873
873
  return fe;
@@ -880,115 +880,115 @@ function Hr() {
880
880
  }
881
881
  }
882
882
  }
883
- var D = a, z = s, p = e, B = c, M = r, W = v, Y = E, q = t, te = i, he = n, be = f, Te = h, _e = !1, Ee = !1;
883
+ var D = a, k = s, p = e, F = l, M = r, W = b, H = E, K = t, te = i, he = n, be = c, Te = f, _e = !1, Ee = !1;
884
884
  function Se(T) {
885
885
  return _e || (_e = !0), !1;
886
886
  }
887
- function y(T) {
887
+ function g(T) {
888
888
  return Ee || (Ee = !0), !1;
889
889
  }
890
890
  function C(T) {
891
- return F(T) === a;
891
+ return N(T) === a;
892
892
  }
893
893
  function w(T) {
894
- return F(T) === s;
894
+ return N(T) === s;
895
895
  }
896
- function b(T) {
896
+ function y(T) {
897
897
  return typeof T == "object" && T !== null && T.$$typeof === e;
898
898
  }
899
- function m(T) {
900
- return F(T) === c;
899
+ function v(T) {
900
+ return N(T) === l;
901
901
  }
902
902
  function O(T) {
903
- return F(T) === r;
903
+ return N(T) === r;
904
+ }
905
+ function _(T) {
906
+ return N(T) === b;
904
907
  }
905
908
  function R(T) {
906
- return F(T) === v;
909
+ return N(T) === E;
907
910
  }
908
911
  function S(T) {
909
- return F(T) === E;
910
- }
911
- function x(T) {
912
- return F(T) === t;
912
+ return N(T) === t;
913
913
  }
914
- function I(T) {
915
- return F(T) === i;
914
+ function $(T) {
915
+ return N(T) === i;
916
916
  }
917
- function H(T) {
918
- return F(T) === n;
917
+ function Y(T) {
918
+ return N(T) === n;
919
919
  }
920
920
  function ae(T) {
921
- return F(T) === f;
921
+ return N(T) === c;
922
922
  }
923
923
  function le(T) {
924
- return F(T) === h;
924
+ return N(T) === f;
925
925
  }
926
- U.ContextConsumer = D, U.ContextProvider = z, U.Element = p, U.ForwardRef = B, U.Fragment = M, U.Lazy = W, U.Memo = Y, U.Portal = q, U.Profiler = te, U.StrictMode = he, U.Suspense = be, U.SuspenseList = Te, U.isAsyncMode = Se, U.isConcurrentMode = y, U.isContextConsumer = C, U.isContextProvider = w, U.isElement = b, U.isForwardRef = m, U.isFragment = O, U.isLazy = R, U.isMemo = S, U.isPortal = x, U.isProfiler = I, U.isStrictMode = H, U.isSuspense = ae, U.isSuspenseList = le, U.isValidElementType = j, U.typeOf = F;
927
- }()), U;
926
+ q.ContextConsumer = D, q.ContextProvider = k, q.Element = p, q.ForwardRef = F, q.Fragment = M, q.Lazy = W, q.Memo = H, q.Portal = K, q.Profiler = te, q.StrictMode = he, q.Suspense = be, q.SuspenseList = Te, q.isAsyncMode = Se, q.isConcurrentMode = g, q.isContextConsumer = C, q.isContextProvider = w, q.isElement = y, q.isForwardRef = v, q.isFragment = O, q.isLazy = _, q.isMemo = R, q.isPortal = S, q.isProfiler = $, q.isStrictMode = Y, q.isSuspense = ae, q.isSuspenseList = le, q.isValidElementType = z, q.typeOf = N;
927
+ }()), q;
928
928
  }
929
- process.env.NODE_ENV === "production" ? vt.exports = Vr() : vt.exports = Hr();
930
- var st = vt.exports;
931
- function Br(e, t, r) {
929
+ process.env.NODE_ENV === "production" ? mt.exports = Hr() : mt.exports = Br();
930
+ var at = mt.exports;
931
+ function Yr(e, t, r) {
932
932
  var n = re.useRef({});
933
933
  return (!("value" in n.current) || r(n.current.condition, t)) && (n.current.value = e(), n.current.condition = t), n.current.value;
934
934
  }
935
- var Yr = Number(Tr.split(".")[0]), Kr = function(t, r) {
935
+ var Kr = Number(Pr.split(".")[0]), Gr = function(t, r) {
936
936
  typeof t == "function" ? t(r) : Re(t) === "object" && t && "current" in t && (t.current = r);
937
- }, Gr = function() {
937
+ }, Ur = function() {
938
938
  for (var t = arguments.length, r = new Array(t), n = 0; n < t; n++)
939
939
  r[n] = arguments[n];
940
940
  var i = r.filter(Boolean);
941
941
  return i.length <= 1 ? i[0] : function(s) {
942
942
  r.forEach(function(a) {
943
- Kr(a, s);
943
+ Gr(a, s);
944
944
  });
945
945
  };
946
- }, Ur = function() {
946
+ }, qr = function() {
947
947
  for (var t = arguments.length, r = new Array(t), n = 0; n < t; n++)
948
948
  r[n] = arguments[n];
949
- return Br(function() {
950
- return Gr.apply(void 0, r);
949
+ return Yr(function() {
950
+ return Ur.apply(void 0, r);
951
951
  }, r, function(i, s) {
952
- return i.length !== s.length || i.every(function(a, l) {
953
- return a !== s[l];
952
+ return i.length !== s.length || i.every(function(a, h) {
953
+ return a !== s[h];
954
954
  });
955
955
  });
956
- }, qr = function(t) {
956
+ }, Jr = function(t) {
957
957
  var r, n;
958
958
  if (!t)
959
959
  return !1;
960
- if (Xt(t) && Yr >= 19)
960
+ if (Qt(t) && Kr >= 19)
961
961
  return !0;
962
- var i = st.isMemo(t) ? t.type.type : t.type;
963
- return !(typeof i == "function" && !((r = i.prototype) !== null && r !== void 0 && r.render) && i.$$typeof !== st.ForwardRef || typeof t == "function" && !((n = t.prototype) !== null && n !== void 0 && n.render) && t.$$typeof !== st.ForwardRef);
962
+ var i = at.isMemo(t) ? t.type.type : t.type;
963
+ return !(typeof i == "function" && !((r = i.prototype) !== null && r !== void 0 && r.render) && i.$$typeof !== at.ForwardRef || typeof t == "function" && !((n = t.prototype) !== null && n !== void 0 && n.render) && t.$$typeof !== at.ForwardRef);
964
964
  };
965
- function Xt(e) {
966
- return /* @__PURE__ */ Pr(e) && !qt(e);
965
+ function Qt(e) {
966
+ return /* @__PURE__ */ jr(e) && !Xt(e);
967
967
  }
968
- var Jr = function(t) {
969
- if (t && Xt(t)) {
968
+ var Xr = function(t) {
969
+ if (t && Qt(t)) {
970
970
  var r = t;
971
971
  return r.props.propertyIsEnumerable("ref") ? r.props.ref : r.ref;
972
972
  }
973
973
  return null;
974
- }, mt = /* @__PURE__ */ re.createContext(null);
975
- function Xr(e) {
976
- var t = e.children, r = e.onBatchResize, n = re.useRef(0), i = re.useRef([]), s = re.useContext(mt), a = re.useCallback(function(l, c, f) {
974
+ }, gt = /* @__PURE__ */ re.createContext(null);
975
+ function Zr(e) {
976
+ var t = e.children, r = e.onBatchResize, n = re.useRef(0), i = re.useRef([]), s = re.useContext(gt), a = re.useCallback(function(h, l, c) {
977
977
  n.current += 1;
978
- var h = n.current;
978
+ var f = n.current;
979
979
  i.current.push({
980
- size: l,
981
- element: c,
982
- data: f
980
+ size: h,
981
+ element: l,
982
+ data: c
983
983
  }), Promise.resolve().then(function() {
984
- h === n.current && (r == null || r(i.current), i.current = []);
985
- }), s == null || s(l, c, f);
984
+ f === n.current && (r == null || r(i.current), i.current = []);
985
+ }), s == null || s(h, l, c);
986
986
  }, [r, s]);
987
- return /* @__PURE__ */ re.createElement(mt.Provider, {
987
+ return /* @__PURE__ */ re.createElement(gt.Provider, {
988
988
  value: a
989
989
  }, t);
990
990
  }
991
- var Zt = function() {
991
+ var er = function() {
992
992
  if (typeof Map < "u")
993
993
  return Map;
994
994
  function e(t, r) {
@@ -1034,40 +1034,40 @@ var Zt = function() {
1034
1034
  }, t;
1035
1035
  }()
1036
1036
  );
1037
- }(), gt = typeof window < "u" && typeof document < "u" && window.document === document, Ue = function() {
1037
+ }(), yt = typeof window < "u" && typeof document < "u" && window.document === document, Ue = function() {
1038
1038
  return typeof global < "u" && global.Math === Math ? global : typeof self < "u" && self.Math === Math ? self : typeof window < "u" && window.Math === Math ? window : Function("return this")();
1039
- }(), Zr = function() {
1039
+ }(), Qr = function() {
1040
1040
  return typeof requestAnimationFrame == "function" ? requestAnimationFrame.bind(Ue) : function(e) {
1041
1041
  return setTimeout(function() {
1042
1042
  return e(Date.now());
1043
1043
  }, 1e3 / 60);
1044
1044
  };
1045
- }(), Qr = 2;
1046
- function en(e, t) {
1045
+ }(), en = 2;
1046
+ function tn(e, t) {
1047
1047
  var r = !1, n = !1, i = 0;
1048
1048
  function s() {
1049
- r && (r = !1, e()), n && l();
1049
+ r && (r = !1, e()), n && h();
1050
1050
  }
1051
1051
  function a() {
1052
- Zr(s);
1052
+ Qr(s);
1053
1053
  }
1054
- function l() {
1055
- var c = Date.now();
1054
+ function h() {
1055
+ var l = Date.now();
1056
1056
  if (r) {
1057
- if (c - i < Qr)
1057
+ if (l - i < en)
1058
1058
  return;
1059
1059
  n = !0;
1060
1060
  } else
1061
1061
  r = !0, n = !1, setTimeout(a, t);
1062
- i = c;
1062
+ i = l;
1063
1063
  }
1064
- return l;
1064
+ return h;
1065
1065
  }
1066
- var tn = 20, rn = ["top", "right", "bottom", "left", "width", "height", "size", "weight"], nn = typeof MutationObserver < "u", on = (
1066
+ var rn = 20, nn = ["top", "right", "bottom", "left", "width", "height", "size", "weight"], on = typeof MutationObserver < "u", sn = (
1067
1067
  /** @class */
1068
1068
  function() {
1069
1069
  function e() {
1070
- this.connected_ = !1, this.mutationEventsAdded_ = !1, this.mutationsObserver_ = null, this.observers_ = [], this.onTransitionEnd_ = this.onTransitionEnd_.bind(this), this.refresh = en(this.refresh.bind(this), tn);
1070
+ this.connected_ = !1, this.mutationEventsAdded_ = !1, this.mutationsObserver_ = null, this.observers_ = [], this.onTransitionEnd_ = this.onTransitionEnd_.bind(this), this.refresh = tn(this.refresh.bind(this), rn);
1071
1071
  }
1072
1072
  return e.prototype.addObserver = function(t) {
1073
1073
  ~this.observers_.indexOf(t) || this.observers_.push(t), this.connected_ || this.connect_();
@@ -1085,16 +1085,16 @@ var tn = 20, rn = ["top", "right", "bottom", "left", "width", "height", "size",
1085
1085
  return r.broadcastActive();
1086
1086
  }), t.length > 0;
1087
1087
  }, e.prototype.connect_ = function() {
1088
- !gt || this.connected_ || (document.addEventListener("transitionend", this.onTransitionEnd_), window.addEventListener("resize", this.refresh), nn ? (this.mutationsObserver_ = new MutationObserver(this.refresh), this.mutationsObserver_.observe(document, {
1088
+ !yt || this.connected_ || (document.addEventListener("transitionend", this.onTransitionEnd_), window.addEventListener("resize", this.refresh), on ? (this.mutationsObserver_ = new MutationObserver(this.refresh), this.mutationsObserver_.observe(document, {
1089
1089
  attributes: !0,
1090
1090
  childList: !0,
1091
1091
  characterData: !0,
1092
1092
  subtree: !0
1093
1093
  })) : (document.addEventListener("DOMSubtreeModified", this.refresh), this.mutationEventsAdded_ = !0), this.connected_ = !0);
1094
1094
  }, e.prototype.disconnect_ = function() {
1095
- !gt || !this.connected_ || (document.removeEventListener("transitionend", this.onTransitionEnd_), window.removeEventListener("resize", this.refresh), this.mutationsObserver_ && this.mutationsObserver_.disconnect(), this.mutationEventsAdded_ && document.removeEventListener("DOMSubtreeModified", this.refresh), this.mutationsObserver_ = null, this.mutationEventsAdded_ = !1, this.connected_ = !1);
1095
+ !yt || !this.connected_ || (document.removeEventListener("transitionend", this.onTransitionEnd_), window.removeEventListener("resize", this.refresh), this.mutationsObserver_ && this.mutationsObserver_.disconnect(), this.mutationEventsAdded_ && document.removeEventListener("DOMSubtreeModified", this.refresh), this.mutationsObserver_ = null, this.mutationEventsAdded_ = !1, this.connected_ = !1);
1096
1096
  }, e.prototype.onTransitionEnd_ = function(t) {
1097
- var r = t.propertyName, n = r === void 0 ? "" : r, i = rn.some(function(s) {
1097
+ var r = t.propertyName, n = r === void 0 ? "" : r, i = nn.some(function(s) {
1098
1098
  return !!~n.indexOf(s);
1099
1099
  });
1100
1100
  i && this.refresh();
@@ -1102,7 +1102,7 @@ var tn = 20, rn = ["top", "right", "bottom", "left", "width", "height", "size",
1102
1102
  return this.instance_ || (this.instance_ = new e()), this.instance_;
1103
1103
  }, e.instance_ = null, e;
1104
1104
  }()
1105
- ), Qt = function(e, t) {
1105
+ ), tr = function(e, t) {
1106
1106
  for (var r = 0, n = Object.keys(t); r < n.length; r++) {
1107
1107
  var i = n[r];
1108
1108
  Object.defineProperty(e, i, {
@@ -1116,11 +1116,11 @@ var tn = 20, rn = ["top", "right", "bottom", "left", "width", "height", "size",
1116
1116
  }, Fe = function(e) {
1117
1117
  var t = e && e.ownerDocument && e.ownerDocument.defaultView;
1118
1118
  return t || Ue;
1119
- }, er = Qe(0, 0, 0, 0);
1119
+ }, rr = et(0, 0, 0, 0);
1120
1120
  function qe(e) {
1121
1121
  return parseFloat(e) || 0;
1122
1122
  }
1123
- function Vt(e) {
1123
+ function Bt(e) {
1124
1124
  for (var t = [], r = 1; r < arguments.length; r++)
1125
1125
  t[r - 1] = arguments[r];
1126
1126
  return t.reduce(function(n, i) {
@@ -1128,44 +1128,44 @@ function Vt(e) {
1128
1128
  return n + qe(s);
1129
1129
  }, 0);
1130
1130
  }
1131
- function sn(e) {
1131
+ function an(e) {
1132
1132
  for (var t = ["top", "right", "bottom", "left"], r = {}, n = 0, i = t; n < i.length; n++) {
1133
1133
  var s = i[n], a = e["padding-" + s];
1134
1134
  r[s] = qe(a);
1135
1135
  }
1136
1136
  return r;
1137
1137
  }
1138
- function an(e) {
1138
+ function ln(e) {
1139
1139
  var t = e.getBBox();
1140
- return Qe(0, 0, t.width, t.height);
1140
+ return et(0, 0, t.width, t.height);
1141
1141
  }
1142
- function ln(e) {
1142
+ function cn(e) {
1143
1143
  var t = e.clientWidth, r = e.clientHeight;
1144
1144
  if (!t && !r)
1145
- return er;
1146
- var n = Fe(e).getComputedStyle(e), i = sn(n), s = i.left + i.right, a = i.top + i.bottom, l = qe(n.width), c = qe(n.height);
1147
- if (n.boxSizing === "border-box" && (Math.round(l + s) !== t && (l -= Vt(n, "left", "right") + s), Math.round(c + a) !== r && (c -= Vt(n, "top", "bottom") + a)), !un(e)) {
1148
- var f = Math.round(l + s) - t, h = Math.round(c + a) - r;
1149
- Math.abs(f) !== 1 && (l -= f), Math.abs(h) !== 1 && (c -= h);
1145
+ return rr;
1146
+ var n = Fe(e).getComputedStyle(e), i = an(n), s = i.left + i.right, a = i.top + i.bottom, h = qe(n.width), l = qe(n.height);
1147
+ if (n.boxSizing === "border-box" && (Math.round(h + s) !== t && (h -= Bt(n, "left", "right") + s), Math.round(l + a) !== r && (l -= Bt(n, "top", "bottom") + a)), !fn(e)) {
1148
+ var c = Math.round(h + s) - t, f = Math.round(l + a) - r;
1149
+ Math.abs(c) !== 1 && (h -= c), Math.abs(f) !== 1 && (l -= f);
1150
1150
  }
1151
- return Qe(i.left, i.top, l, c);
1151
+ return et(i.left, i.top, h, l);
1152
1152
  }
1153
- var cn = function() {
1153
+ var un = function() {
1154
1154
  return typeof SVGGraphicsElement < "u" ? function(e) {
1155
1155
  return e instanceof Fe(e).SVGGraphicsElement;
1156
1156
  } : function(e) {
1157
1157
  return e instanceof Fe(e).SVGElement && typeof e.getBBox == "function";
1158
1158
  };
1159
1159
  }();
1160
- function un(e) {
1161
- return e === Fe(e).document.documentElement;
1162
- }
1163
1160
  function fn(e) {
1164
- return gt ? cn(e) ? an(e) : ln(e) : er;
1161
+ return e === Fe(e).document.documentElement;
1165
1162
  }
1166
1163
  function dn(e) {
1164
+ return yt ? un(e) ? ln(e) : cn(e) : rr;
1165
+ }
1166
+ function hn(e) {
1167
1167
  var t = e.x, r = e.y, n = e.width, i = e.height, s = typeof DOMRectReadOnly < "u" ? DOMRectReadOnly : Object, a = Object.create(s.prototype);
1168
- return Qt(a, {
1168
+ return tr(a, {
1169
1169
  x: t,
1170
1170
  y: r,
1171
1171
  width: n,
@@ -1176,37 +1176,37 @@ function dn(e) {
1176
1176
  left: t
1177
1177
  }), a;
1178
1178
  }
1179
- function Qe(e, t, r, n) {
1179
+ function et(e, t, r, n) {
1180
1180
  return { x: e, y: t, width: r, height: n };
1181
1181
  }
1182
- var hn = (
1182
+ var pn = (
1183
1183
  /** @class */
1184
1184
  function() {
1185
1185
  function e(t) {
1186
- this.broadcastWidth = 0, this.broadcastHeight = 0, this.contentRect_ = Qe(0, 0, 0, 0), this.target = t;
1186
+ this.broadcastWidth = 0, this.broadcastHeight = 0, this.contentRect_ = et(0, 0, 0, 0), this.target = t;
1187
1187
  }
1188
1188
  return e.prototype.isActive = function() {
1189
- var t = fn(this.target);
1189
+ var t = dn(this.target);
1190
1190
  return this.contentRect_ = t, t.width !== this.broadcastWidth || t.height !== this.broadcastHeight;
1191
1191
  }, e.prototype.broadcastRect = function() {
1192
1192
  var t = this.contentRect_;
1193
1193
  return this.broadcastWidth = t.width, this.broadcastHeight = t.height, t;
1194
1194
  }, e;
1195
1195
  }()
1196
- ), pn = (
1196
+ ), vn = (
1197
1197
  /** @class */
1198
1198
  function() {
1199
1199
  function e(t, r) {
1200
- var n = dn(r);
1201
- Qt(this, { target: t, contentRect: n });
1200
+ var n = hn(r);
1201
+ tr(this, { target: t, contentRect: n });
1202
1202
  }
1203
1203
  return e;
1204
1204
  }()
1205
- ), vn = (
1205
+ ), mn = (
1206
1206
  /** @class */
1207
1207
  function() {
1208
1208
  function e(t, r, n) {
1209
- if (this.activeObservations_ = [], this.observations_ = new Zt(), typeof t != "function")
1209
+ if (this.activeObservations_ = [], this.observations_ = new er(), typeof t != "function")
1210
1210
  throw new TypeError("The callback provided as parameter 1 is not a function.");
1211
1211
  this.callback_ = t, this.controller_ = r, this.callbackCtx_ = n;
1212
1212
  }
@@ -1217,7 +1217,7 @@ var hn = (
1217
1217
  if (!(t instanceof Fe(t).Element))
1218
1218
  throw new TypeError('parameter 1 is not of type "Element".');
1219
1219
  var r = this.observations_;
1220
- r.has(t) || (r.set(t, new hn(t)), this.controller_.addObserver(this), this.controller_.refresh());
1220
+ r.has(t) || (r.set(t, new pn(t)), this.controller_.addObserver(this), this.controller_.refresh());
1221
1221
  }
1222
1222
  }, e.prototype.unobserve = function(t) {
1223
1223
  if (!arguments.length)
@@ -1238,7 +1238,7 @@ var hn = (
1238
1238
  }, e.prototype.broadcastActive = function() {
1239
1239
  if (this.hasActive()) {
1240
1240
  var t = this.callbackCtx_, r = this.activeObservations_.map(function(n) {
1241
- return new pn(n.target, n.broadcastRect());
1241
+ return new vn(n.target, n.broadcastRect());
1242
1242
  });
1243
1243
  this.callback_.call(t, r, t), this.clearActive();
1244
1244
  }
@@ -1248,7 +1248,7 @@ var hn = (
1248
1248
  return this.activeObservations_.length > 0;
1249
1249
  }, e;
1250
1250
  }()
1251
- ), tr = typeof WeakMap < "u" ? /* @__PURE__ */ new WeakMap() : new Zt(), rr = (
1251
+ ), nr = typeof WeakMap < "u" ? /* @__PURE__ */ new WeakMap() : new er(), or = (
1252
1252
  /** @class */
1253
1253
  function() {
1254
1254
  function e(t) {
@@ -1256,8 +1256,8 @@ var hn = (
1256
1256
  throw new TypeError("Cannot call a class as a function.");
1257
1257
  if (!arguments.length)
1258
1258
  throw new TypeError("1 argument required, but only 0 present.");
1259
- var r = on.getInstance(), n = new vn(t, r, this);
1260
- tr.set(this, n);
1259
+ var r = sn.getInstance(), n = new mn(t, r, this);
1260
+ nr.set(this, n);
1261
1261
  }
1262
1262
  return e;
1263
1263
  }()
@@ -1267,15 +1267,15 @@ var hn = (
1267
1267
  "unobserve",
1268
1268
  "disconnect"
1269
1269
  ].forEach(function(e) {
1270
- rr.prototype[e] = function() {
1270
+ or.prototype[e] = function() {
1271
1271
  var t;
1272
- return (t = tr.get(this))[e].apply(t, arguments);
1272
+ return (t = nr.get(this))[e].apply(t, arguments);
1273
1273
  };
1274
1274
  });
1275
- var mn = function() {
1276
- return typeof Ue.ResizeObserver < "u" ? Ue.ResizeObserver : rr;
1275
+ var gn = function() {
1276
+ return typeof Ue.ResizeObserver < "u" ? Ue.ResizeObserver : or;
1277
1277
  }(), Oe = /* @__PURE__ */ new Map();
1278
- function nr(e) {
1278
+ function ir(e) {
1279
1279
  e.forEach(function(t) {
1280
1280
  var r, n = t.target;
1281
1281
  (r = Oe.get(n)) === null || r === void 0 || r.forEach(function(i) {
@@ -1283,36 +1283,36 @@ function nr(e) {
1283
1283
  });
1284
1284
  });
1285
1285
  }
1286
- var or = new mn(nr);
1286
+ var sr = new gn(ir);
1287
1287
  process.env.NODE_ENV;
1288
1288
  process.env.NODE_ENV;
1289
- function gn(e, t) {
1290
- Oe.has(e) || (Oe.set(e, /* @__PURE__ */ new Set()), or.observe(e)), Oe.get(e).add(t);
1291
- }
1292
1289
  function yn(e, t) {
1293
- Oe.has(e) && (Oe.get(e).delete(t), Oe.get(e).size || (or.unobserve(e), Oe.delete(e)));
1290
+ Oe.has(e) || (Oe.set(e, /* @__PURE__ */ new Set()), sr.observe(e)), Oe.get(e).add(t);
1294
1291
  }
1295
1292
  function bn(e, t) {
1293
+ Oe.has(e) && (Oe.get(e).delete(t), Oe.get(e).size || (sr.unobserve(e), Oe.delete(e)));
1294
+ }
1295
+ function En(e, t) {
1296
1296
  if (!(e instanceof t))
1297
1297
  throw new TypeError("Cannot call a class as a function");
1298
1298
  }
1299
- function Ht(e, t) {
1299
+ function Yt(e, t) {
1300
1300
  for (var r = 0; r < t.length; r++) {
1301
1301
  var n = t[r];
1302
- n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, Jt(n.key), n);
1302
+ n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, Zt(n.key), n);
1303
1303
  }
1304
1304
  }
1305
- function En(e, t, r) {
1306
- return t && Ht(e.prototype, t), r && Ht(e, r), Object.defineProperty(e, "prototype", {
1305
+ function wn(e, t, r) {
1306
+ return t && Yt(e.prototype, t), r && Yt(e, r), Object.defineProperty(e, "prototype", {
1307
1307
  writable: !1
1308
1308
  }), e;
1309
1309
  }
1310
- function yt(e, t) {
1311
- return yt = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(r, n) {
1310
+ function bt(e, t) {
1311
+ return bt = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(r, n) {
1312
1312
  return r.__proto__ = n, r;
1313
- }, yt(e, t);
1313
+ }, bt(e, t);
1314
1314
  }
1315
- function wn(e, t) {
1315
+ function _n(e, t) {
1316
1316
  if (typeof t != "function" && t !== null)
1317
1317
  throw new TypeError("Super expression must either be null or a function");
1318
1318
  e.prototype = Object.create(t && t.prototype, {
@@ -1323,37 +1323,37 @@ function wn(e, t) {
1323
1323
  }
1324
1324
  }), Object.defineProperty(e, "prototype", {
1325
1325
  writable: !1
1326
- }), t && yt(e, t);
1326
+ }), t && bt(e, t);
1327
1327
  }
1328
1328
  function Je(e) {
1329
1329
  return Je = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(t) {
1330
1330
  return t.__proto__ || Object.getPrototypeOf(t);
1331
1331
  }, Je(e);
1332
1332
  }
1333
- function ir() {
1333
+ function ar() {
1334
1334
  try {
1335
1335
  var e = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
1336
1336
  }));
1337
1337
  } catch {
1338
1338
  }
1339
- return (ir = function() {
1339
+ return (ar = function() {
1340
1340
  return !!e;
1341
1341
  })();
1342
1342
  }
1343
- function _n(e) {
1343
+ function Rn(e) {
1344
1344
  if (e === void 0)
1345
1345
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
1346
1346
  return e;
1347
1347
  }
1348
- function Rn(e, t) {
1348
+ function Sn(e, t) {
1349
1349
  if (t && (Re(t) == "object" || typeof t == "function"))
1350
1350
  return t;
1351
1351
  if (t !== void 0)
1352
1352
  throw new TypeError("Derived constructors may only return object or undefined");
1353
- return _n(e);
1353
+ return Rn(e);
1354
1354
  }
1355
- function Sn(e) {
1356
- var t = ir();
1355
+ function Cn(e) {
1356
+ var t = ar();
1357
1357
  return function() {
1358
1358
  var r, n = Je(e);
1359
1359
  if (t) {
@@ -1361,85 +1361,85 @@ function Sn(e) {
1361
1361
  r = Reflect.construct(n, arguments, i);
1362
1362
  } else
1363
1363
  r = n.apply(this, arguments);
1364
- return Rn(this, r);
1364
+ return Sn(this, r);
1365
1365
  };
1366
1366
  }
1367
1367
  var xn = /* @__PURE__ */ function(e) {
1368
- wn(r, e);
1369
- var t = Sn(r);
1368
+ _n(r, e);
1369
+ var t = Cn(r);
1370
1370
  function r() {
1371
- return bn(this, r), t.apply(this, arguments);
1371
+ return En(this, r), t.apply(this, arguments);
1372
1372
  }
1373
- return En(r, [{
1373
+ return wn(r, [{
1374
1374
  key: "render",
1375
1375
  value: function() {
1376
1376
  return this.props.children;
1377
1377
  }
1378
1378
  }]), r;
1379
1379
  }(re.Component);
1380
- function Cn(e, t) {
1381
- var r = e.children, n = e.disabled, i = re.useRef(null), s = re.useRef(null), a = re.useContext(mt), l = typeof r == "function", c = l ? r(i) : r, f = re.useRef({
1380
+ function On(e, t) {
1381
+ var r = e.children, n = e.disabled, i = re.useRef(null), s = re.useRef(null), a = re.useContext(gt), h = typeof r == "function", l = h ? r(i) : r, c = re.useRef({
1382
1382
  width: -1,
1383
1383
  height: -1,
1384
1384
  offsetWidth: -1,
1385
1385
  offsetHeight: -1
1386
- }), h = !l && /* @__PURE__ */ re.isValidElement(c) && qr(c), E = h ? Jr(c) : null, v = Ur(E, i), A = function() {
1387
- var k;
1388
- return it(i.current) || // Support `nativeElement` format
1389
- (i.current && Re(i.current) === "object" ? it((k = i.current) === null || k === void 0 ? void 0 : k.nativeElement) : null) || it(s.current);
1386
+ }), f = !h && /* @__PURE__ */ re.isValidElement(l) && Jr(l), E = f ? Xr(l) : null, b = qr(E, i), I = function() {
1387
+ var j;
1388
+ return st(i.current) || // Support `nativeElement` format
1389
+ (i.current && Re(i.current) === "object" ? st((j = i.current) === null || j === void 0 ? void 0 : j.nativeElement) : null) || st(s.current);
1390
1390
  };
1391
1391
  re.useImperativeHandle(t, function() {
1392
- return A();
1392
+ return I();
1393
1393
  });
1394
- var P = re.useRef(e);
1395
- P.current = e;
1396
- var _ = re.useCallback(function(d) {
1397
- var k = P.current, $ = k.onResize, J = k.data, j = d.getBoundingClientRect(), F = j.width, D = j.height, z = d.offsetWidth, p = d.offsetHeight, B = Math.floor(F), M = Math.floor(D);
1398
- if (f.current.width !== B || f.current.height !== M || f.current.offsetWidth !== z || f.current.offsetHeight !== p) {
1394
+ var A = re.useRef(e);
1395
+ A.current = e;
1396
+ var x = re.useCallback(function(u) {
1397
+ var j = A.current, P = j.onResize, J = j.data, z = u.getBoundingClientRect(), N = z.width, D = z.height, k = u.offsetWidth, p = u.offsetHeight, F = Math.floor(N), M = Math.floor(D);
1398
+ if (c.current.width !== F || c.current.height !== M || c.current.offsetWidth !== k || c.current.offsetHeight !== p) {
1399
1399
  var W = {
1400
- width: B,
1400
+ width: F,
1401
1401
  height: M,
1402
- offsetWidth: z,
1402
+ offsetWidth: k,
1403
1403
  offsetHeight: p
1404
1404
  };
1405
- f.current = W;
1406
- var Y = z === Math.round(F) ? F : z, q = p === Math.round(D) ? D : p, te = Dt(Dt({}, W), {}, {
1407
- offsetWidth: Y,
1408
- offsetHeight: q
1405
+ c.current = W;
1406
+ var H = k === Math.round(N) ? N : k, K = p === Math.round(D) ? D : p, te = Nt(Nt({}, W), {}, {
1407
+ offsetWidth: H,
1408
+ offsetHeight: K
1409
1409
  });
1410
- a == null || a(te, d, J), $ && Promise.resolve().then(function() {
1411
- $(te, d);
1410
+ a == null || a(te, u, J), P && Promise.resolve().then(function() {
1411
+ P(te, u);
1412
1412
  });
1413
1413
  }
1414
1414
  }, []);
1415
1415
  return re.useEffect(function() {
1416
- var d = A();
1417
- return d && !n && gn(d, _), function() {
1418
- return yn(d, _);
1416
+ var u = I();
1417
+ return u && !n && yn(u, x), function() {
1418
+ return bn(u, x);
1419
1419
  };
1420
1420
  }, [i.current, n]), /* @__PURE__ */ re.createElement(xn, {
1421
1421
  ref: s
1422
- }, h ? /* @__PURE__ */ re.cloneElement(c, {
1423
- ref: v
1424
- }) : c);
1425
- }
1426
- var sr = /* @__PURE__ */ re.forwardRef(Cn);
1427
- process.env.NODE_ENV !== "production" && (sr.displayName = "SingleObserver");
1428
- var On = "rc-observer-key";
1429
- function Tn(e, t) {
1430
- var r = e.children, n = typeof r == "function" ? [r] : pt(r);
1431
- return process.env.NODE_ENV !== "production" && (n.length > 1 ? $t(!1, "Find more than one child node with `children` in ResizeObserver. Please use ResizeObserver.Collection instead.") : n.length === 0 && $t(!1, "`children` of ResizeObserver is empty. Nothing is in observe.")), n.map(function(i, s) {
1432
- var a = (i == null ? void 0 : i.key) || "".concat(On, "-").concat(s);
1433
- return /* @__PURE__ */ re.createElement(sr, ht({}, e, {
1422
+ }, f ? /* @__PURE__ */ re.cloneElement(l, {
1423
+ ref: b
1424
+ }) : l);
1425
+ }
1426
+ var lr = /* @__PURE__ */ re.forwardRef(On);
1427
+ process.env.NODE_ENV !== "production" && (lr.displayName = "SingleObserver");
1428
+ var Tn = "rc-observer-key";
1429
+ function Pn(e, t) {
1430
+ var r = e.children, n = typeof r == "function" ? [r] : vt(r);
1431
+ return process.env.NODE_ENV !== "production" && (n.length > 1 ? Dt(!1, "Find more than one child node with `children` in ResizeObserver. Please use ResizeObserver.Collection instead.") : n.length === 0 && Dt(!1, "`children` of ResizeObserver is empty. Nothing is in observe.")), n.map(function(i, s) {
1432
+ var a = (i == null ? void 0 : i.key) || "".concat(Tn, "-").concat(s);
1433
+ return /* @__PURE__ */ re.createElement(lr, pt({}, e, {
1434
1434
  key: a,
1435
1435
  ref: s === 0 ? t : void 0
1436
1436
  }), i);
1437
1437
  });
1438
1438
  }
1439
- var wt = /* @__PURE__ */ re.forwardRef(Tn);
1440
- process.env.NODE_ENV !== "production" && (wt.displayName = "ResizeObserver");
1441
- wt.Collection = Xr;
1442
- var ar = { exports: {} };
1439
+ var Rt = /* @__PURE__ */ re.forwardRef(Pn);
1440
+ process.env.NODE_ENV !== "production" && (Rt.displayName = "ResizeObserver");
1441
+ Rt.Collection = Zr;
1442
+ var cr = { exports: {} };
1443
1443
  /*!
1444
1444
  Copyright (c) 2018 Jed Watson.
1445
1445
  Licensed under the MIT License (MIT), see
@@ -1450,8 +1450,8 @@ var ar = { exports: {} };
1450
1450
  var t = {}.hasOwnProperty;
1451
1451
  function r() {
1452
1452
  for (var s = "", a = 0; a < arguments.length; a++) {
1453
- var l = arguments[a];
1454
- l && (s = i(s, n(l)));
1453
+ var h = arguments[a];
1454
+ h && (s = i(s, n(h)));
1455
1455
  }
1456
1456
  return s;
1457
1457
  }
@@ -1465,8 +1465,8 @@ var ar = { exports: {} };
1465
1465
  if (s.toString !== Object.prototype.toString && !s.toString.toString().includes("[native code]"))
1466
1466
  return s.toString();
1467
1467
  var a = "";
1468
- for (var l in s)
1469
- t.call(s, l) && s[l] && (a = i(a, l));
1468
+ for (var h in s)
1469
+ t.call(s, h) && s[h] && (a = i(a, h));
1470
1470
  return a;
1471
1471
  }
1472
1472
  function i(s, a) {
@@ -1474,52 +1474,52 @@ var ar = { exports: {} };
1474
1474
  }
1475
1475
  e.exports ? (r.default = r, e.exports = r) : window.classNames = r;
1476
1476
  })();
1477
- })(ar);
1478
- var Pn = ar.exports;
1479
- const _t = /* @__PURE__ */ Mr(Pn);
1480
- const jn = jr(({ columns: e, width: t, onScroll: r, meta: n }, i) => {
1477
+ })(cr);
1478
+ var jn = cr.exports;
1479
+ const St = /* @__PURE__ */ zr(jn);
1480
+ const An = Ar(({ columns: e, width: t, onScroll: r, meta: n }, i) => {
1481
1481
  const s = ye(() => {
1482
- const a = [], l = (h) => {
1482
+ const a = [], h = (f) => {
1483
1483
  let E = 0;
1484
- return h.forEach((v) => {
1485
- if (v.children && v.children.length > 0) {
1486
- const A = l(v.children);
1487
- A > E && (E = A);
1484
+ return f.forEach((b) => {
1485
+ if (b.children && b.children.length > 0) {
1486
+ const I = h(b.children);
1487
+ I > E && (E = I);
1488
1488
  }
1489
1489
  }), E + 1;
1490
- }, c = l(e), f = (h, E) => {
1491
- a[E] || (a[E] = []), h.forEach((v) => {
1492
- var d, k;
1493
- let A = "left";
1494
- (d = v.style) != null && d.textAlign && (A = v.style.textAlign);
1495
- let P = n == null ? void 0 : n.find(($) => $.field === v.field);
1496
- if (!P) {
1497
- const $ = v.field.split("||");
1498
- if ($.length > 1) {
1499
- const J = $[$.length - 1];
1500
- P = n == null ? void 0 : n.find((j) => j.field === J);
1490
+ }, l = h(e), c = (f, E) => {
1491
+ a[E] || (a[E] = []), f.forEach((b) => {
1492
+ var u, j;
1493
+ let I = "left";
1494
+ (u = b.style) != null && u.textAlign && (I = b.style.textAlign);
1495
+ let A = n == null ? void 0 : n.find((P) => P.field === b.field);
1496
+ if (!A) {
1497
+ const P = b.field.split("||");
1498
+ if (P.length > 1) {
1499
+ const J = P[P.length - 1];
1500
+ A = n == null ? void 0 : n.find((z) => z.field === J);
1501
1501
  } else
1502
- v.field.includes("__") && (P = n == null ? void 0 : n.find((J) => v.field.startsWith(`${J.field}_`)));
1502
+ b.field.includes("__") && (A = n == null ? void 0 : n.find((J) => b.field.startsWith(`${J.field}_`)));
1503
1503
  }
1504
- (k = P == null ? void 0 : P.style) != null && k.textAlign && (A = P.style.textAlign);
1505
- const _ = {
1506
- key: v.field || v.dataIndex || v.title || String(Math.random()),
1507
- title: v.title,
1508
- width: v.width,
1509
- align: A,
1510
- className: v.field,
1504
+ (j = A == null ? void 0 : A.style) != null && j.textAlign && (I = A.style.textAlign);
1505
+ const x = {
1506
+ key: b.field || b.dataIndex || b.title || String(Math.random()),
1507
+ title: b.title,
1508
+ width: b.width,
1509
+ align: I,
1510
+ className: b.field,
1511
1511
  // col.className not in type, ignore
1512
1512
  colSpan: 1,
1513
1513
  rowSpan: 1
1514
1514
  };
1515
- if (v.children && v.children.length > 0) {
1516
- const $ = (J) => J.children && J.children.length > 0 ? J.children.reduce((j, F) => j + $(F), 0) : 1;
1517
- _.colSpan = $(v), a[E].push(_), f(v.children, E + 1);
1515
+ if (b.children && b.children.length > 0) {
1516
+ const P = (J) => J.children && J.children.length > 0 ? J.children.reduce((z, N) => z + P(N), 0) : 1;
1517
+ x.colSpan = P(b), a[E].push(x), c(b.children, E + 1);
1518
1518
  } else
1519
- _.rowSpan = c - E, a[E].push(_);
1519
+ x.rowSpan = l - E, a[E].push(x);
1520
1520
  });
1521
1521
  };
1522
- return f(e, 0), a;
1522
+ return c(e, 0), a;
1523
1523
  }, [e, n]);
1524
1524
  return /* @__PURE__ */ Z.jsx(
1525
1525
  "div",
@@ -1529,38 +1529,38 @@ const jn = jr(({ columns: e, width: t, onScroll: r, meta: n }, i) => {
1529
1529
  style: { overflow: "auto", width: t },
1530
1530
  onScroll: r,
1531
1531
  children: /* @__PURE__ */ Z.jsxs("table", { style: { tableLayout: "fixed", width: "100%" }, children: [
1532
- /* @__PURE__ */ Z.jsx("colgroup", { children: e.map((a, l) => {
1533
- const c = (f) => f.children && f.children.length > 0 ? f.children.flatMap(c) : [f.width];
1534
- return c(a).map((f, h) => /* @__PURE__ */ Z.jsx("col", { style: { width: f, minWidth: f } }, `${l}-${h}`));
1532
+ /* @__PURE__ */ Z.jsx("colgroup", { children: e.map((a, h) => {
1533
+ const l = (c) => c.children && c.children.length > 0 ? c.children.flatMap(l) : [c.width];
1534
+ return l(a).map((c, f) => /* @__PURE__ */ Z.jsx("col", { style: { width: c, minWidth: c } }, `${h}-${f}`));
1535
1535
  }).flat() }),
1536
- /* @__PURE__ */ Z.jsx("thead", { className: "virtual-table-thead", children: s.map((a, l) => /* @__PURE__ */ Z.jsx("tr", { className: "virtual-table-row", children: a.map((c, f) => /* @__PURE__ */ Z.jsx(
1536
+ /* @__PURE__ */ Z.jsx("thead", { className: "virtual-table-thead", children: s.map((a, h) => /* @__PURE__ */ Z.jsx("tr", { className: "virtual-table-row", children: a.map((l, c) => /* @__PURE__ */ Z.jsx(
1537
1537
  "th",
1538
1538
  {
1539
- className: _t("virtual-table-cell", c.className),
1540
- colSpan: c.colSpan,
1541
- rowSpan: c.rowSpan,
1542
- title: c.title,
1539
+ className: St("virtual-table-cell", l.className),
1540
+ colSpan: l.colSpan,
1541
+ rowSpan: l.rowSpan,
1542
+ title: l.title,
1543
1543
  style: {
1544
- textAlign: c.align
1544
+ textAlign: l.align
1545
1545
  },
1546
- children: c.title
1546
+ children: l.title
1547
1547
  },
1548
- f
1549
- )) }, l)) })
1548
+ c
1549
+ )) }, h)) })
1550
1550
  ] })
1551
1551
  }
1552
1552
  );
1553
- }), bt = (e) => {
1553
+ }), Et = (e) => {
1554
1554
  if (e === null || typeof e != "object")
1555
1555
  return e;
1556
1556
  if (Array.isArray(e))
1557
- return e.map((r) => bt(r));
1557
+ return e.map((r) => Et(r));
1558
1558
  const t = {};
1559
1559
  for (const r in e)
1560
- Object.prototype.hasOwnProperty.call(e, r) && (t[r] = bt(e[r]));
1560
+ Object.prototype.hasOwnProperty.call(e, r) && (t[r] = Et(e[r]));
1561
1561
  return t;
1562
- }, lr = 43, An = 100, Ce = "-", Bt = "合计";
1563
- function Mn(e) {
1562
+ }, wt = 43, Mn = 100, xe = "-", Kt = "合计", Xe = 20;
1563
+ function zn(e) {
1564
1564
  let t = e;
1565
1565
  for (; t; ) {
1566
1566
  if (t.dir)
@@ -1569,14 +1569,14 @@ function Mn(e) {
1569
1569
  }
1570
1570
  return !1;
1571
1571
  }
1572
- function zn(e, t) {
1572
+ function In(e, t) {
1573
1573
  const [r, n] = Ie(t === "rtl");
1574
- return Et(() => {
1575
- e && (t || n(Mn(e)));
1574
+ return _t(() => {
1575
+ e && (t || n(zn(e)));
1576
1576
  }, [t, e]), r;
1577
1577
  }
1578
- const Xe = typeof window < "u" ? Et : Ze;
1579
- function Yt(e) {
1578
+ const Ze = typeof window < "u" ? _t : Qe;
1579
+ function Gt(e) {
1580
1580
  if (e !== void 0)
1581
1581
  switch (typeof e) {
1582
1582
  case "number":
@@ -1588,7 +1588,7 @@ function Yt(e) {
1588
1588
  }
1589
1589
  }
1590
1590
  }
1591
- function In({
1591
+ function $n({
1592
1592
  box: e,
1593
1593
  defaultHeight: t,
1594
1594
  defaultWidth: r,
@@ -1597,44 +1597,44 @@ function In({
1597
1597
  mode: s,
1598
1598
  style: a
1599
1599
  }) {
1600
- const { styleHeight: l, styleWidth: c } = ye(
1600
+ const { styleHeight: h, styleWidth: l } = ye(
1601
1601
  () => ({
1602
- styleHeight: Yt(a == null ? void 0 : a.height),
1603
- styleWidth: Yt(a == null ? void 0 : a.width)
1602
+ styleHeight: Gt(a == null ? void 0 : a.height),
1603
+ styleWidth: Gt(a == null ? void 0 : a.width)
1604
1604
  }),
1605
1605
  [a == null ? void 0 : a.height, a == null ? void 0 : a.width]
1606
- ), [f, h] = Ie({
1606
+ ), [c, f] = Ie({
1607
1607
  height: t,
1608
1608
  width: r
1609
- }), E = n || s === "only-height" && l !== void 0 || s === "only-width" && c !== void 0 || l !== void 0 && c !== void 0;
1610
- return Xe(() => {
1609
+ }), E = n || s === "only-height" && h !== void 0 || s === "only-width" && l !== void 0 || h !== void 0 && l !== void 0;
1610
+ return Ze(() => {
1611
1611
  if (i === null || E)
1612
1612
  return;
1613
- const v = new ResizeObserver((A) => {
1614
- for (const P of A) {
1615
- const { contentRect: _, target: d } = P;
1616
- i === d && h((k) => k.height === _.height && k.width === _.width ? k : {
1617
- height: _.height,
1618
- width: _.width
1613
+ const b = new ResizeObserver((I) => {
1614
+ for (const A of I) {
1615
+ const { contentRect: x, target: u } = A;
1616
+ i === u && f((j) => j.height === x.height && j.width === x.width ? j : {
1617
+ height: x.height,
1618
+ width: x.width
1619
1619
  });
1620
1620
  }
1621
1621
  });
1622
- return v.observe(i, { box: e }), () => {
1623
- v == null || v.unobserve(i);
1622
+ return b.observe(i, { box: e }), () => {
1623
+ b == null || b.unobserve(i);
1624
1624
  };
1625
- }, [e, E, i, l, c]), ye(
1625
+ }, [e, E, i, h, l]), ye(
1626
1626
  () => ({
1627
- height: l ?? f.height,
1628
- width: c ?? f.width
1627
+ height: h ?? c.height,
1628
+ width: l ?? c.width
1629
1629
  }),
1630
- [f, l, c]
1630
+ [c, h, l]
1631
1631
  );
1632
1632
  }
1633
1633
  function Ln(e) {
1634
1634
  const t = ze(() => {
1635
1635
  throw new Error("Cannot call during render.");
1636
1636
  });
1637
- return Xe(() => {
1637
+ return Ze(() => {
1638
1638
  t.current = e;
1639
1639
  }, [e]), ge((r) => {
1640
1640
  var n;
@@ -1642,7 +1642,7 @@ function Ln(e) {
1642
1642
  }, [t]);
1643
1643
  }
1644
1644
  let De = null;
1645
- function $n(e = !1) {
1645
+ function kn(e = !1) {
1646
1646
  if (De === null || e) {
1647
1647
  const t = document.createElement("div"), r = t.style;
1648
1648
  r.width = "50px", r.height = "50px", r.overflow = "scroll", r.direction = "rtl";
@@ -1651,14 +1651,14 @@ function $n(e = !1) {
1651
1651
  }
1652
1652
  return De;
1653
1653
  }
1654
- function at({
1654
+ function lt({
1655
1655
  containerElement: e,
1656
1656
  direction: t,
1657
1657
  isRtl: r,
1658
1658
  scrollOffset: n
1659
1659
  }) {
1660
1660
  if (t === "horizontal" && r)
1661
- switch ($n()) {
1661
+ switch (kn()) {
1662
1662
  case "negative":
1663
1663
  return -n;
1664
1664
  case "positive-descending": {
@@ -1685,7 +1685,7 @@ function Be(e, t) {
1685
1685
  return !1;
1686
1686
  return !0;
1687
1687
  }
1688
- function cr({
1688
+ function ur({
1689
1689
  cachedBounds: e,
1690
1690
  itemCount: t,
1691
1691
  itemSize: r
@@ -1703,7 +1703,7 @@ function cr({
1703
1703
  return t * i;
1704
1704
  }
1705
1705
  }
1706
- function kn({
1706
+ function Dn({
1707
1707
  align: e,
1708
1708
  cachedBounds: t,
1709
1709
  index: r,
@@ -1716,30 +1716,30 @@ function kn({
1716
1716
  throw RangeError(`Invalid index specified: ${r}`, {
1717
1717
  cause: `Index ${r} is not within the range of 0 - ${n - 1}`
1718
1718
  });
1719
- const l = cr({
1719
+ const h = ur({
1720
1720
  cachedBounds: t,
1721
1721
  itemCount: n,
1722
1722
  itemSize: i
1723
- }), c = t.get(r), f = Math.max(
1723
+ }), l = t.get(r), c = Math.max(
1724
1724
  0,
1725
- Math.min(l - a, c.scrollOffset)
1726
- ), h = Math.max(
1725
+ Math.min(h - a, l.scrollOffset)
1726
+ ), f = Math.max(
1727
1727
  0,
1728
- c.scrollOffset - a + c.size
1728
+ l.scrollOffset - a + l.size
1729
1729
  );
1730
- switch (e === "smart" && (s >= h && s <= f ? e = "auto" : e = "center"), e) {
1730
+ switch (e === "smart" && (s >= f && s <= c ? e = "auto" : e = "center"), e) {
1731
1731
  case "start":
1732
- return f;
1732
+ return c;
1733
1733
  case "end":
1734
- return h;
1734
+ return f;
1735
1735
  case "center":
1736
- return c.scrollOffset <= a / 2 ? 0 : c.scrollOffset + c.size / 2 >= l - a / 2 ? l - a : c.scrollOffset + c.size / 2 - a / 2;
1736
+ return l.scrollOffset <= a / 2 ? 0 : l.scrollOffset + l.size / 2 >= h - a / 2 ? h - a : l.scrollOffset + l.size / 2 - a / 2;
1737
1737
  case "auto":
1738
1738
  default:
1739
- return s >= h && s <= f ? s : s < h ? h : f;
1739
+ return s >= f && s <= c ? s : s < f ? f : c;
1740
1740
  }
1741
1741
  }
1742
- function lt({
1742
+ function ct({
1743
1743
  cachedBounds: e,
1744
1744
  containerScrollOffset: t,
1745
1745
  containerSize: r,
@@ -1747,27 +1747,27 @@ function lt({
1747
1747
  overscanCount: i
1748
1748
  }) {
1749
1749
  const s = n - 1;
1750
- let a = 0, l = -1, c = 0, f = -1, h = 0;
1751
- for (; h < s; ) {
1752
- const E = e.get(h);
1750
+ let a = 0, h = -1, l = 0, c = -1, f = 0;
1751
+ for (; f < s; ) {
1752
+ const E = e.get(f);
1753
1753
  if (E.scrollOffset + E.size > t)
1754
1754
  break;
1755
- h++;
1755
+ f++;
1756
1756
  }
1757
- for (a = h, c = Math.max(0, a - i); h < s; ) {
1758
- const E = e.get(h);
1757
+ for (a = f, l = Math.max(0, a - i); f < s; ) {
1758
+ const E = e.get(f);
1759
1759
  if (E.scrollOffset + E.size >= t + r)
1760
1760
  break;
1761
- h++;
1761
+ f++;
1762
1762
  }
1763
- return l = Math.min(s, h), f = Math.min(n - 1, l + i), a < 0 && (a = 0, l = -1, c = 0, f = -1), {
1763
+ return h = Math.min(s, f), c = Math.min(n - 1, h + i), a < 0 && (a = 0, h = -1, l = 0, c = -1), {
1764
1764
  startIndexVisible: a,
1765
- stopIndexVisible: l,
1766
- startIndexOverscan: c,
1767
- stopIndexOverscan: f
1765
+ stopIndexVisible: h,
1766
+ startIndexOverscan: l,
1767
+ stopIndexOverscan: c
1768
1768
  };
1769
1769
  }
1770
- function Dn({
1770
+ function Fn({
1771
1771
  itemCount: e,
1772
1772
  itemProps: t,
1773
1773
  itemSize: r
@@ -1777,30 +1777,30 @@ function Dn({
1777
1777
  get(i) {
1778
1778
  for (Pe(i < e, `Invalid index ${i}`); n.size - 1 < i; ) {
1779
1779
  const a = n.size;
1780
- let l;
1780
+ let h;
1781
1781
  switch (typeof r) {
1782
1782
  case "function": {
1783
- l = r(a, t);
1783
+ h = r(a, t);
1784
1784
  break;
1785
1785
  }
1786
1786
  case "number": {
1787
- l = r;
1787
+ h = r;
1788
1788
  break;
1789
1789
  }
1790
1790
  }
1791
1791
  if (a === 0)
1792
1792
  n.set(a, {
1793
- size: l,
1793
+ size: h,
1794
1794
  scrollOffset: 0
1795
1795
  });
1796
1796
  else {
1797
- const c = n.get(a - 1);
1797
+ const l = n.get(a - 1);
1798
1798
  Pe(
1799
- c !== void 0,
1799
+ l !== void 0,
1800
1800
  `Unexpected bounds cache miss for index ${i}`
1801
1801
  ), n.set(a, {
1802
- scrollOffset: c.scrollOffset + c.size,
1803
- size: l
1802
+ scrollOffset: l.scrollOffset + l.size,
1803
+ size: h
1804
1804
  });
1805
1805
  }
1806
1806
  }
@@ -1818,13 +1818,13 @@ function Dn({
1818
1818
  }
1819
1819
  };
1820
1820
  }
1821
- function Fn({
1821
+ function Nn({
1822
1822
  itemCount: e,
1823
1823
  itemProps: t,
1824
1824
  itemSize: r
1825
1825
  }) {
1826
1826
  return ye(
1827
- () => Dn({
1827
+ () => Fn({
1828
1828
  itemCount: e,
1829
1829
  itemProps: t,
1830
1830
  itemSize: r
@@ -1832,7 +1832,7 @@ function Fn({
1832
1832
  [e, t, r]
1833
1833
  );
1834
1834
  }
1835
- function Nn({
1835
+ function Wn({
1836
1836
  containerSize: e,
1837
1837
  itemSize: t
1838
1838
  }) {
@@ -1855,7 +1855,7 @@ function Nn({
1855
1855
  }
1856
1856
  return r;
1857
1857
  }
1858
- function Kt({
1858
+ function Ut({
1859
1859
  containerElement: e,
1860
1860
  containerStyle: t,
1861
1861
  defaultContainerSize: r = 0,
@@ -1863,104 +1863,104 @@ function Kt({
1863
1863
  isRtl: i = !1,
1864
1864
  itemCount: s,
1865
1865
  itemProps: a,
1866
- itemSize: l,
1867
- onResize: c,
1868
- overscanCount: f
1866
+ itemSize: h,
1867
+ onResize: l,
1868
+ overscanCount: c
1869
1869
  }) {
1870
- const { height: h = r, width: E = r } = In({
1870
+ const { height: f = r, width: E = r } = $n({
1871
1871
  defaultHeight: n === "vertical" ? r : void 0,
1872
1872
  defaultWidth: n === "horizontal" ? r : void 0,
1873
1873
  element: e,
1874
1874
  mode: n === "vertical" ? "only-height" : "only-width",
1875
1875
  style: t
1876
- }), v = ze({
1876
+ }), b = ze({
1877
1877
  height: 0,
1878
1878
  width: 0
1879
- }), A = n === "vertical" ? h : E, P = Nn({ containerSize: A, itemSize: l });
1880
- Et(() => {
1881
- if (typeof c == "function") {
1882
- const M = v.current;
1883
- (M.height !== h || M.width !== E) && (c({ height: h, width: E }, { ...M }), M.height = h, M.width = E);
1884
- }
1885
- }, [h, c, E]);
1886
- const _ = Fn({
1879
+ }), I = n === "vertical" ? f : E, A = Wn({ containerSize: I, itemSize: h });
1880
+ _t(() => {
1881
+ if (typeof l == "function") {
1882
+ const M = b.current;
1883
+ (M.height !== f || M.width !== E) && (l({ height: f, width: E }, { ...M }), M.height = f, M.width = E);
1884
+ }
1885
+ }, [f, l, E]);
1886
+ const x = Nn({
1887
1887
  itemCount: s,
1888
1888
  itemProps: a,
1889
- itemSize: P
1890
- }), d = ge(
1891
- (M) => _.get(M),
1892
- [_]
1893
- ), [k, $] = Ie(
1894
- () => lt({
1895
- cachedBounds: _,
1889
+ itemSize: A
1890
+ }), u = ge(
1891
+ (M) => x.get(M),
1892
+ [x]
1893
+ ), [j, P] = Ie(
1894
+ () => ct({
1895
+ cachedBounds: x,
1896
1896
  // TODO Potentially support a defaultScrollOffset prop?
1897
1897
  containerScrollOffset: 0,
1898
- containerSize: A,
1898
+ containerSize: I,
1899
1899
  itemCount: s,
1900
- overscanCount: f
1900
+ overscanCount: c
1901
1901
  })
1902
1902
  ), {
1903
1903
  startIndexVisible: J,
1904
- startIndexOverscan: j,
1905
- stopIndexVisible: F,
1904
+ startIndexOverscan: z,
1905
+ stopIndexVisible: N,
1906
1906
  stopIndexOverscan: D
1907
1907
  } = {
1908
- startIndexVisible: Math.min(s - 1, k.startIndexVisible),
1909
- startIndexOverscan: Math.min(s - 1, k.startIndexOverscan),
1910
- stopIndexVisible: Math.min(s - 1, k.stopIndexVisible),
1911
- stopIndexOverscan: Math.min(s - 1, k.stopIndexOverscan)
1912
- }, z = ge(
1913
- () => cr({
1914
- cachedBounds: _,
1908
+ startIndexVisible: Math.min(s - 1, j.startIndexVisible),
1909
+ startIndexOverscan: Math.min(s - 1, j.startIndexOverscan),
1910
+ stopIndexVisible: Math.min(s - 1, j.stopIndexVisible),
1911
+ stopIndexOverscan: Math.min(s - 1, j.stopIndexOverscan)
1912
+ }, k = ge(
1913
+ () => ur({
1914
+ cachedBounds: x,
1915
1915
  itemCount: s,
1916
- itemSize: P
1916
+ itemSize: A
1917
1917
  }),
1918
- [_, s, P]
1918
+ [x, s, A]
1919
1919
  ), p = ge(
1920
1920
  (M) => {
1921
- const W = at({
1921
+ const W = lt({
1922
1922
  containerElement: e,
1923
1923
  direction: n,
1924
1924
  isRtl: i,
1925
1925
  scrollOffset: M
1926
1926
  });
1927
- return lt({
1928
- cachedBounds: _,
1927
+ return ct({
1928
+ cachedBounds: x,
1929
1929
  containerScrollOffset: W,
1930
- containerSize: A,
1930
+ containerSize: I,
1931
1931
  itemCount: s,
1932
- overscanCount: f
1932
+ overscanCount: c
1933
1933
  });
1934
1934
  },
1935
1935
  [
1936
- _,
1936
+ x,
1937
1937
  e,
1938
- A,
1938
+ I,
1939
1939
  n,
1940
1940
  i,
1941
1941
  s,
1942
- f
1942
+ c
1943
1943
  ]
1944
1944
  );
1945
- Xe(() => {
1945
+ Ze(() => {
1946
1946
  const M = (n === "vertical" ? e == null ? void 0 : e.scrollTop : e == null ? void 0 : e.scrollLeft) ?? 0;
1947
- $(p(M));
1948
- }, [e, n, p]), Xe(() => {
1947
+ P(p(M));
1948
+ }, [e, n, p]), Ze(() => {
1949
1949
  if (!e)
1950
1950
  return;
1951
1951
  const M = () => {
1952
- $((W) => {
1953
- const { scrollLeft: Y, scrollTop: q } = e, te = at({
1952
+ P((W) => {
1953
+ const { scrollLeft: H, scrollTop: K } = e, te = lt({
1954
1954
  containerElement: e,
1955
1955
  direction: n,
1956
1956
  isRtl: i,
1957
- scrollOffset: n === "vertical" ? q : Y
1958
- }), he = lt({
1959
- cachedBounds: _,
1957
+ scrollOffset: n === "vertical" ? K : H
1958
+ }), he = ct({
1959
+ cachedBounds: x,
1960
1960
  containerScrollOffset: te,
1961
- containerSize: A,
1961
+ containerSize: I,
1962
1962
  itemCount: s,
1963
- overscanCount: f
1963
+ overscanCount: c
1964
1964
  });
1965
1965
  return Be(he, W) ? W : he;
1966
1966
  });
@@ -1969,56 +1969,56 @@ function Kt({
1969
1969
  e.removeEventListener("scroll", M);
1970
1970
  };
1971
1971
  }, [
1972
- _,
1972
+ x,
1973
1973
  e,
1974
- A,
1974
+ I,
1975
1975
  n,
1976
1976
  s,
1977
- f
1977
+ c
1978
1978
  ]);
1979
- const B = Ln(
1979
+ const F = Ln(
1980
1980
  ({
1981
1981
  align: M = "auto",
1982
1982
  containerScrollOffset: W,
1983
- index: Y
1983
+ index: H
1984
1984
  }) => {
1985
- let q = kn({
1985
+ let K = Dn({
1986
1986
  align: M,
1987
- cachedBounds: _,
1987
+ cachedBounds: x,
1988
1988
  containerScrollOffset: W,
1989
- containerSize: A,
1990
- index: Y,
1989
+ containerSize: I,
1990
+ index: H,
1991
1991
  itemCount: s,
1992
- itemSize: P
1992
+ itemSize: A
1993
1993
  });
1994
1994
  if (e) {
1995
- if (q = at({
1995
+ if (K = lt({
1996
1996
  containerElement: e,
1997
1997
  direction: n,
1998
1998
  isRtl: i,
1999
- scrollOffset: q
1999
+ scrollOffset: K
2000
2000
  }), typeof e.scrollTo != "function") {
2001
- const te = p(q);
2002
- Be(k, te) || $(te);
2001
+ const te = p(K);
2002
+ Be(j, te) || P(te);
2003
2003
  }
2004
- return q;
2004
+ return K;
2005
2005
  }
2006
2006
  }
2007
2007
  );
2008
2008
  return {
2009
- getCellBounds: d,
2010
- getEstimatedSize: z,
2011
- scrollToIndex: B,
2012
- startIndexOverscan: j,
2009
+ getCellBounds: u,
2010
+ getEstimatedSize: k,
2011
+ scrollToIndex: F,
2012
+ startIndexOverscan: z,
2013
2013
  startIndexVisible: J,
2014
2014
  stopIndexOverscan: D,
2015
- stopIndexVisible: F
2015
+ stopIndexVisible: N
2016
2016
  };
2017
2017
  }
2018
- function Wn(e) {
2018
+ function Vn(e) {
2019
2019
  return ye(() => e, Object.values(e));
2020
2020
  }
2021
- function Vn(e, t) {
2021
+ function Hn(e, t) {
2022
2022
  const {
2023
2023
  ariaAttributes: r,
2024
2024
  style: n,
@@ -2026,11 +2026,11 @@ function Vn(e, t) {
2026
2026
  } = e, {
2027
2027
  ariaAttributes: s,
2028
2028
  style: a,
2029
- ...l
2029
+ ...h
2030
2030
  } = t;
2031
- return Be(r, s) && Be(n, a) && Be(i, l);
2031
+ return Be(r, s) && Be(n, a) && Be(i, h);
2032
2032
  }
2033
- function Hn({
2033
+ function Bn({
2034
2034
  cellComponent: e,
2035
2035
  cellProps: t,
2036
2036
  children: r,
@@ -2038,40 +2038,40 @@ function Hn({
2038
2038
  columnCount: i,
2039
2039
  columnWidth: s,
2040
2040
  defaultHeight: a = 0,
2041
- defaultWidth: l = 0,
2042
- dir: c,
2043
- gridRef: f,
2044
- onCellsRendered: h,
2041
+ defaultWidth: h = 0,
2042
+ dir: l,
2043
+ gridRef: c,
2044
+ onCellsRendered: f,
2045
2045
  onResize: E,
2046
- overscanCount: v = 3,
2047
- rowCount: A,
2048
- rowHeight: P,
2049
- style: _,
2050
- tagName: d = "div",
2051
- ...k
2046
+ overscanCount: b = 3,
2047
+ rowCount: I,
2048
+ rowHeight: A,
2049
+ style: x,
2050
+ tagName: u = "div",
2051
+ ...j
2052
2052
  }) {
2053
- const $ = Wn(t), J = ye(
2054
- () => Ut(e, Vn),
2053
+ const P = Vn(t), J = ye(
2054
+ () => Jt(e, Hn),
2055
2055
  [e]
2056
- ), [j, F] = Ie(null), D = zn(j, c), {
2057
- getCellBounds: z,
2056
+ ), [z, N] = Ie(null), D = In(z, l), {
2057
+ getCellBounds: k,
2058
2058
  getEstimatedSize: p,
2059
- startIndexOverscan: B,
2059
+ startIndexOverscan: F,
2060
2060
  startIndexVisible: M,
2061
2061
  scrollToIndex: W,
2062
- stopIndexOverscan: Y,
2063
- stopIndexVisible: q
2064
- } = Kt({
2065
- containerElement: j,
2066
- containerStyle: _,
2067
- defaultContainerSize: l,
2062
+ stopIndexOverscan: H,
2063
+ stopIndexVisible: K
2064
+ } = Ut({
2065
+ containerElement: z,
2066
+ containerStyle: x,
2067
+ defaultContainerSize: h,
2068
2068
  direction: "horizontal",
2069
2069
  isRtl: D,
2070
2070
  itemCount: i,
2071
- itemProps: $,
2071
+ itemProps: P,
2072
2072
  itemSize: s,
2073
2073
  onResize: E,
2074
- overscanCount: v
2074
+ overscanCount: b
2075
2075
  }), {
2076
2076
  getCellBounds: te,
2077
2077
  getEstimatedSize: he,
@@ -2080,149 +2080,149 @@ function Hn({
2080
2080
  scrollToIndex: _e,
2081
2081
  stopIndexOverscan: Ee,
2082
2082
  stopIndexVisible: Se
2083
- } = Kt({
2084
- containerElement: j,
2085
- containerStyle: _,
2083
+ } = Ut({
2084
+ containerElement: z,
2085
+ containerStyle: x,
2086
2086
  defaultContainerSize: a,
2087
2087
  direction: "vertical",
2088
- itemCount: A,
2089
- itemProps: $,
2090
- itemSize: P,
2088
+ itemCount: I,
2089
+ itemProps: P,
2090
+ itemSize: A,
2091
2091
  onResize: E,
2092
- overscanCount: v
2092
+ overscanCount: b
2093
2093
  });
2094
- Ar(
2095
- f,
2094
+ Mr(
2095
+ c,
2096
2096
  () => ({
2097
2097
  get element() {
2098
- return j;
2098
+ return z;
2099
2099
  },
2100
2100
  scrollToCell({
2101
2101
  behavior: w = "auto",
2102
- columnAlign: b = "auto",
2103
- columnIndex: m,
2102
+ columnAlign: y = "auto",
2103
+ columnIndex: v,
2104
2104
  rowAlign: O = "auto",
2105
- rowIndex: R
2105
+ rowIndex: _
2106
2106
  }) {
2107
- const S = W({
2108
- align: b,
2109
- containerScrollOffset: (j == null ? void 0 : j.scrollLeft) ?? 0,
2110
- index: m
2111
- }), x = _e({
2107
+ const R = W({
2108
+ align: y,
2109
+ containerScrollOffset: (z == null ? void 0 : z.scrollLeft) ?? 0,
2110
+ index: v
2111
+ }), S = _e({
2112
2112
  align: O,
2113
- containerScrollOffset: (j == null ? void 0 : j.scrollTop) ?? 0,
2114
- index: R
2113
+ containerScrollOffset: (z == null ? void 0 : z.scrollTop) ?? 0,
2114
+ index: _
2115
2115
  });
2116
- typeof (j == null ? void 0 : j.scrollTo) == "function" && j.scrollTo({
2116
+ typeof (z == null ? void 0 : z.scrollTo) == "function" && z.scrollTo({
2117
2117
  behavior: w,
2118
- left: S,
2119
- top: x
2118
+ left: R,
2119
+ top: S
2120
2120
  });
2121
2121
  },
2122
2122
  scrollToColumn({
2123
2123
  align: w = "auto",
2124
- behavior: b = "auto",
2125
- index: m
2124
+ behavior: y = "auto",
2125
+ index: v
2126
2126
  }) {
2127
2127
  const O = W({
2128
2128
  align: w,
2129
- containerScrollOffset: (j == null ? void 0 : j.scrollLeft) ?? 0,
2130
- index: m
2129
+ containerScrollOffset: (z == null ? void 0 : z.scrollLeft) ?? 0,
2130
+ index: v
2131
2131
  });
2132
- typeof (j == null ? void 0 : j.scrollTo) == "function" && j.scrollTo({
2133
- behavior: b,
2132
+ typeof (z == null ? void 0 : z.scrollTo) == "function" && z.scrollTo({
2133
+ behavior: y,
2134
2134
  left: O
2135
2135
  });
2136
2136
  },
2137
2137
  scrollToRow({
2138
2138
  align: w = "auto",
2139
- behavior: b = "auto",
2140
- index: m
2139
+ behavior: y = "auto",
2140
+ index: v
2141
2141
  }) {
2142
2142
  const O = _e({
2143
2143
  align: w,
2144
- containerScrollOffset: (j == null ? void 0 : j.scrollTop) ?? 0,
2145
- index: m
2144
+ containerScrollOffset: (z == null ? void 0 : z.scrollTop) ?? 0,
2145
+ index: v
2146
2146
  });
2147
- typeof (j == null ? void 0 : j.scrollTo) == "function" && j.scrollTo({
2148
- behavior: b,
2147
+ typeof (z == null ? void 0 : z.scrollTo) == "function" && z.scrollTo({
2148
+ behavior: y,
2149
2149
  top: O
2150
2150
  });
2151
2151
  }
2152
2152
  }),
2153
- [j, W, _e]
2154
- ), Ze(() => {
2155
- B >= 0 && Y >= 0 && be >= 0 && Ee >= 0 && h && h(
2153
+ [z, W, _e]
2154
+ ), Qe(() => {
2155
+ F >= 0 && H >= 0 && be >= 0 && Ee >= 0 && f && f(
2156
2156
  {
2157
2157
  columnStartIndex: M,
2158
- columnStopIndex: q,
2158
+ columnStopIndex: K,
2159
2159
  rowStartIndex: Te,
2160
2160
  rowStopIndex: Se
2161
2161
  },
2162
2162
  {
2163
- columnStartIndex: B,
2164
- columnStopIndex: Y,
2163
+ columnStartIndex: F,
2164
+ columnStopIndex: H,
2165
2165
  rowStartIndex: be,
2166
2166
  rowStopIndex: Ee
2167
2167
  }
2168
2168
  );
2169
2169
  }, [
2170
- h,
2171
- B,
2170
+ f,
2171
+ F,
2172
2172
  M,
2173
- Y,
2174
- q,
2173
+ H,
2174
+ K,
2175
2175
  be,
2176
2176
  Te,
2177
2177
  Ee,
2178
2178
  Se
2179
2179
  ]);
2180
- const y = ye(() => {
2180
+ const g = ye(() => {
2181
2181
  const w = [];
2182
- if (i > 0 && A > 0)
2183
- for (let b = be; b <= Ee; b++) {
2184
- const m = te(b), O = [];
2185
- for (let R = B; R <= Y; R++) {
2186
- const S = z(R);
2182
+ if (i > 0 && I > 0)
2183
+ for (let y = be; y <= Ee; y++) {
2184
+ const v = te(y), O = [];
2185
+ for (let _ = F; _ <= H; _++) {
2186
+ const R = k(_);
2187
2187
  O.push(
2188
- /* @__PURE__ */ Mt(
2188
+ /* @__PURE__ */ It(
2189
2189
  J,
2190
2190
  {
2191
- ...$,
2191
+ ...P,
2192
2192
  ariaAttributes: {
2193
- "aria-colindex": R + 1,
2193
+ "aria-colindex": _ + 1,
2194
2194
  role: "gridcell"
2195
2195
  },
2196
- columnIndex: R,
2197
- key: R,
2198
- rowIndex: b,
2196
+ columnIndex: _,
2197
+ key: _,
2198
+ rowIndex: y,
2199
2199
  style: {
2200
2200
  position: "absolute",
2201
2201
  left: D ? void 0 : 0,
2202
2202
  right: D ? 0 : void 0,
2203
- transform: `translate(${D ? -S.scrollOffset : S.scrollOffset}px, ${m.scrollOffset}px)`,
2204
- height: m.size,
2205
- width: S.size
2203
+ transform: `translate(${D ? -R.scrollOffset : R.scrollOffset}px, ${v.scrollOffset}px)`,
2204
+ height: v.size,
2205
+ width: R.size
2206
2206
  }
2207
2207
  }
2208
2208
  )
2209
2209
  );
2210
2210
  }
2211
2211
  w.push(
2212
- /* @__PURE__ */ Z.jsx("div", { role: "row", "aria-rowindex": b + 1, children: O }, b)
2212
+ /* @__PURE__ */ Z.jsx("div", { role: "row", "aria-rowindex": y + 1, children: O }, y)
2213
2213
  );
2214
2214
  }
2215
2215
  return w;
2216
2216
  }, [
2217
2217
  J,
2218
- $,
2218
+ P,
2219
2219
  i,
2220
- B,
2221
- Y,
2222
- z,
2220
+ F,
2221
+ H,
2222
+ k,
2223
2223
  te,
2224
2224
  D,
2225
- A,
2225
+ I,
2226
2226
  be,
2227
2227
  Ee
2228
2228
  ]), C = /* @__PURE__ */ Z.jsx(
@@ -2236,170 +2236,208 @@ function Hn({
2236
2236
  }
2237
2237
  }
2238
2238
  );
2239
- return Mt(
2240
- d,
2239
+ return It(
2240
+ u,
2241
2241
  {
2242
2242
  "aria-colcount": i,
2243
- "aria-rowcount": A,
2243
+ "aria-rowcount": I,
2244
2244
  role: "grid",
2245
- ...k,
2245
+ ...j,
2246
2246
  className: n,
2247
- dir: c,
2248
- ref: F,
2247
+ dir: l,
2248
+ ref: N,
2249
2249
  style: {
2250
2250
  position: "relative",
2251
2251
  maxHeight: "100%",
2252
2252
  maxWidth: "100%",
2253
2253
  flexGrow: 1,
2254
2254
  overflow: "auto",
2255
- ..._
2255
+ ...x
2256
2256
  }
2257
2257
  },
2258
- y,
2258
+ g,
2259
2259
  r,
2260
2260
  C
2261
2261
  );
2262
2262
  }
2263
- const Bn = (e) => /* @__PURE__ */ Z.jsxs("svg", { viewBox: "64 64 896 896", focusable: "false", width: "1em", height: "1em", fill: "currentColor", "aria-hidden": "true", ...e, children: [
2263
+ const Yn = (e) => /* @__PURE__ */ Z.jsxs("svg", { viewBox: "64 64 896 896", focusable: "false", width: "1em", height: "1em", fill: "currentColor", "aria-hidden": "true", ...e, children: [
2264
2264
  /* @__PURE__ */ Z.jsx("path", { d: "M518.5 360.3a7.95 7.95 0 00-12.9 0l-178 246c-3.8 5.3 0 12.7 6.5 12.7H381c10.2 0 19.9-4.9 25.9-13.2L512 460.4l105.2 145.4c6 8.3 15.6 13.2 25.9 13.2H690c6.5 0 10.3-7.4 6.5-12.7l-178-246z" }),
2265
2265
  /* @__PURE__ */ Z.jsx("path", { d: "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" })
2266
- ] }), Yn = (e) => /* @__PURE__ */ Z.jsxs("svg", { viewBox: "64 64 896 896", focusable: "false", width: "1em", height: "1em", fill: "currentColor", "aria-hidden": "true", ...e, children: [
2266
+ ] }), Kn = (e) => /* @__PURE__ */ Z.jsxs("svg", { viewBox: "64 64 896 896", focusable: "false", width: "1em", height: "1em", fill: "currentColor", "aria-hidden": "true", ...e, children: [
2267
2267
  /* @__PURE__ */ Z.jsx("path", { d: "M690 405h-46.9c-10.2 0-19.9 4.9-25.9 13.2L512 563.6 406.8 418.2c-6-8.3-15.6-13.2-25.9-13.2H334c-6.5 0-10.3 7.4-6.5 12.7l178 246c3.2 4.4 9.7 4.4 12.9 0l178-246c3.9-5.3.1-12.7-6.4-12.7z" }),
2268
2268
  /* @__PURE__ */ Z.jsx("path", { d: "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" })
2269
- ] }), Kn = (e, t, r) => {
2269
+ ] }), Gn = (e, t, r) => {
2270
2270
  var i;
2271
2271
  const n = (i = r[e]) == null ? void 0 : i[t];
2272
- return !n || n.rowspan === 0 || n.colspan === 0;
2273
- }, Gn = (e, t, r, n, i, s) => {
2274
- var A, P;
2275
- const a = (A = n[e]) == null ? void 0 : A[t];
2276
- if (!a || a.rowspan === 0 || a.colspan === 0)
2272
+ return n ? n.rowspan === 0 || n.colspan === 0 : !1;
2273
+ }, Un = (e, t, r, n, i, s, a) => {
2274
+ var x, u;
2275
+ const h = (x = n[e]) == null ? void 0 : x[t], l = a || h;
2276
+ if (!l)
2277
2277
  return;
2278
- const l = { ...r };
2279
- let c = i[t];
2280
- const f = c.field.split("||"), h = f[f.length - 1], E = s == null ? void 0 : s.find((_) => _.field === h || _.field === c.field);
2281
- E && E.style;
2282
- const v = (E == null ? void 0 : E.style) || (c == null ? void 0 : c.style);
2283
- if (a.colspan > 1) {
2284
- let _ = 0;
2285
- for (let d = t; d < t + a.colspan; d++)
2286
- _ += Number((P = i[d]) == null ? void 0 : P.width) || 100;
2287
- l.width = _;
2278
+ const c = { ...r };
2279
+ let f = i[t];
2280
+ const E = f.field.split("||"), b = E[E.length - 1], I = s == null ? void 0 : s.find((j) => j.field === b || j.field === f.field), A = (I == null ? void 0 : I.style) || (f == null ? void 0 : f.style);
2281
+ if (l.colspan > 1) {
2282
+ let j = 0;
2283
+ for (let P = t; P < t + l.colspan; P++)
2284
+ j += Number((u = i[P]) == null ? void 0 : u.width) || 100;
2285
+ c.width = j;
2288
2286
  }
2289
- return a.rowspan > 1 && (l.height = a.rowspan * lr), v != null && v.textAlign && (l.textAlign = v.textAlign, v.textAlign === "right" && (l.justifyContent = "flex-end"), v.textAlign === "center" && (l.justifyContent = "center")), l.border = "1px solid #f0f0f0", l.padding = "8px 16px", l.display = "flex", l.alignItems = "center", l.backgroundColor = "#fff", l;
2290
- }, Un = ({ columnIndex: e, rowIndex: t, style: r, mergedData: n, columns: i, handleExpand: s, meta: a }) => {
2291
- if (Kn(t, e, n))
2287
+ return l.rowspan > 1 && (c.height = l.rowspan * wt), c.height || (c.height = wt), A != null && A.textAlign && (c.textAlign = A.textAlign, A.textAlign === "right" && (c.justifyContent = "flex-end"), A.textAlign === "center" && (c.justifyContent = "center")), c.border = "1px solid #f0f0f0", c.padding = "8px 16px", c.display = "flex", c.alignItems = "center", c.backgroundColor = "#fff", l.rowspan > Xe && (c.zIndex = 1e4 - e, c.position = "absolute"), c;
2288
+ }, qn = ({
2289
+ columnIndex: e,
2290
+ rowIndex: t,
2291
+ style: r,
2292
+ mergedData: n,
2293
+ columns: i,
2294
+ handleExpand: s,
2295
+ meta: a,
2296
+ mergedCellsMap: h
2297
+ }) => {
2298
+ let l = n[t][e], c = !1;
2299
+ if (l.rowspan === 0 && h) {
2300
+ const j = `${t}-${e}`, P = h.get(j);
2301
+ if (P && P.rowspan > Xe && P.startIndex < t) {
2302
+ const J = P.rowspan - (t - P.startIndex);
2303
+ l = {
2304
+ ...l,
2305
+ ...P,
2306
+ rowspan: J
2307
+ // We might need to adjust content if it relies on being at the top, but usually content is same.
2308
+ // onClick and others are copied from mergeInfo
2309
+ }, c = !0;
2310
+ }
2311
+ }
2312
+ if (!c && Gn(t, e, n))
2292
2313
  return null;
2293
- const l = n[t][e], c = Gn(t, e, r, n, i, a), f = i[e], h = f.field.split("||"), E = h[h.length - 1], v = a == null ? void 0 : a.find((_) => _.field === E || _.field === f.field), A = Ye.isValidElement(l.content);
2294
- let P;
2295
- if (P = l.content, "formatter" in f && f.formatter && !A && (P = f.formatter(P, l.data)), v != null && v.clickHandler && !A && P !== null && P !== void 0) {
2296
- const _ = l.data;
2297
- P = /* @__PURE__ */ Z.jsx(
2314
+ const f = Un(t, e, r, n, i, a, l), E = i[e], b = E.field.split("||"), I = b[b.length - 1], A = a == null ? void 0 : a.find((j) => j.field === I || j.field === E.field), x = Ye.isValidElement(l.content);
2315
+ let u;
2316
+ if (u = l.content, "formatter" in E && E.formatter && !x && (u = E.formatter(u, l.data)), A != null && A.clickHandler && !x && u !== null && u !== void 0) {
2317
+ const j = l.data;
2318
+ u = /* @__PURE__ */ Z.jsx(
2298
2319
  "a",
2299
2320
  {
2300
2321
  href: "javascript:void(0)",
2301
- onClick: (d) => {
2302
- d.preventDefault(), d.stopPropagation(), v.clickHandler(_);
2322
+ onClick: (P) => {
2323
+ P.preventDefault(), P.stopPropagation(), A.clickHandler(j);
2303
2324
  },
2304
2325
  className: "virtual-table-cell-link",
2305
- children: P
2326
+ children: u
2306
2327
  }
2307
2328
  );
2308
2329
  }
2309
2330
  return /* @__PURE__ */ Z.jsxs(
2310
2331
  "div",
2311
2332
  {
2312
- style: c,
2313
- className: _t("table-cell", "virtual-table-cell", {
2333
+ style: f,
2334
+ className: St("table-cell", "virtual-table-cell", {
2314
2335
  "virtual-table-cell-last": e === i.length - 1
2315
2336
  }),
2316
- title: typeof P == "string" ? P : void 0,
2337
+ title: typeof u == "string" ? u : void 0,
2317
2338
  children: [
2318
- /* @__PURE__ */ Z.jsx("span", { className: "expand-icon", children: l.expandable ? l.expanded ? /* @__PURE__ */ Z.jsx(Bn, { onClick: () => {
2339
+ /* @__PURE__ */ Z.jsx("span", { className: "expand-icon", children: l.expandable ? l.expanded ? /* @__PURE__ */ Z.jsx(Yn, { onClick: () => {
2319
2340
  l.onClick && l.onClick(l), s(l);
2320
- } }) : /* @__PURE__ */ Z.jsx(Yn, { onClick: () => {
2341
+ } }) : /* @__PURE__ */ Z.jsx(Kn, { onClick: () => {
2321
2342
  l.onClick && l.onClick(l), s(l);
2322
2343
  } }) : null }),
2323
- P
2344
+ u
2324
2345
  ]
2325
2346
  }
2326
2347
  );
2327
- }, qn = (e) => {
2328
- const { data: t, info: r, scroll: n, columns: i, tableWidth: s } = e, { ref: a, onScroll: l } = r, c = ze(), f = ye(() => {
2348
+ }, Jn = (e) => {
2349
+ const { data: t, info: r, scroll: n, columns: i, tableWidth: s } = e, { ref: a, onScroll: h } = r, l = ze(), c = ye(() => {
2329
2350
  const D = {};
2330
2351
  return Object.defineProperty(D, "scrollLeft", {
2331
2352
  get: () => {
2332
- var z, p;
2333
- return ((p = (z = c.current) == null ? void 0 : z.element) == null ? void 0 : p.scrollLeft) || 0;
2353
+ var k, p;
2354
+ return ((p = (k = l.current) == null ? void 0 : k.element) == null ? void 0 : p.scrollLeft) || 0;
2334
2355
  },
2335
- set: (z) => {
2356
+ set: (k) => {
2336
2357
  var p;
2337
- (p = c.current) != null && p.element && (c.current.element.scrollLeft = z);
2358
+ (p = l.current) != null && p.element && (l.current.element.scrollLeft = k);
2338
2359
  }
2339
2360
  }), Object.defineProperty(D, "scrollTop", {
2340
2361
  get: () => {
2341
- var z, p;
2342
- return ((p = (z = c.current) == null ? void 0 : z.element) == null ? void 0 : p.scrollTop) || 0;
2362
+ var k, p;
2363
+ return ((p = (k = l.current) == null ? void 0 : k.element) == null ? void 0 : p.scrollTop) || 0;
2343
2364
  },
2344
- set: (z) => {
2365
+ set: (k) => {
2345
2366
  var p;
2346
- (p = c.current) != null && p.element && (c.current.element.scrollTop = z);
2367
+ (p = l.current) != null && p.element && (l.current.element.scrollTop = k);
2347
2368
  }
2348
2369
  }), D;
2349
2370
  }, []);
2350
- Ze(() => {
2351
- a && (a.current = f);
2352
- }, [a, f]);
2353
- const h = t, E = h.length, v = ge((D) => {
2354
- let z = 0;
2371
+ Qe(() => {
2372
+ a && (a.current = c);
2373
+ }, [a, c]);
2374
+ const f = t, E = f.length, b = ge((D) => {
2375
+ let k = 0;
2355
2376
  return D.forEach((p) => {
2356
- p != null && p.children && p.children.length > 0 ? z += v(p.children) : z += 1;
2357
- }), z;
2358
- }, []), A = v(i), P = ge((D) => {
2359
- let z = [];
2377
+ p != null && p.children && p.children.length > 0 ? k += b(p.children) : k += 1;
2378
+ }), k;
2379
+ }, []), I = b(i), A = ge((D) => {
2380
+ let k = [];
2360
2381
  return D.forEach((p) => {
2361
- p != null && p.children && p.children.length > 0 ? z = [...z, ...P(p.children)] : z.push(p);
2362
- }), z;
2363
- }, []), _ = P(i), d = ge((D) => {
2364
- const z = _[D];
2365
- let p = (z == null ? void 0 : z.width) || 100;
2382
+ p != null && p.children && p.children.length > 0 ? k = [...k, ...A(p.children)] : k.push(p);
2383
+ }), k;
2384
+ }, []), x = A(i), u = ge((D) => {
2385
+ const k = x[D];
2386
+ let p = (k == null ? void 0 : k.width) || 100;
2366
2387
  return typeof p == "string" && (p = parseInt(p.replace("px", "")) || 100), p;
2367
- }, [_]), k = ge((D) => lr, []), $ = ye(() => h.map((D) => D.cells), [h]), J = ge((D) => {
2388
+ }, [x]), j = ge((D) => wt, []), P = ye(() => f.map((D) => D.cells), [f]), J = ge((D) => {
2368
2389
  if (D && typeof D.scrollLeft == "number") {
2369
- l && l(D);
2390
+ h && h(D);
2370
2391
  return;
2371
2392
  }
2372
2393
  if (D && D.target) {
2373
- const { scrollLeft: z, scrollTop: p } = D.target;
2374
- l && l({ scrollLeft: z, scrollTop: p });
2375
- }
2376
- }, [l]), j = ye(() => {
2377
- let D = 1;
2378
- return t && t.length > 0 && t.forEach((z) => {
2379
- z.cells && z.cells.forEach((p) => {
2380
- p.rowspan > D && (D = p.rowspan);
2394
+ const { scrollLeft: k, scrollTop: p } = D.target;
2395
+ h && h({ scrollLeft: k, scrollTop: p });
2396
+ }
2397
+ }, [h]), z = ye(() => {
2398
+ const D = /* @__PURE__ */ new Map();
2399
+ return f.forEach((k, p) => {
2400
+ k.cells.forEach((F, M) => {
2401
+ if (F.rowspan > Xe) {
2402
+ const W = {
2403
+ startIndex: p,
2404
+ rowspan: F.rowspan,
2405
+ content: F.content,
2406
+ data: F.data,
2407
+ expandable: F.expandable,
2408
+ expanded: F.expanded,
2409
+ level: F.level,
2410
+ rowKey: F.rowKey,
2411
+ onClick: F.onClick
2412
+ };
2413
+ for (let H = 0; H < F.rowspan; H++) {
2414
+ const K = `${p + H}-${M}`;
2415
+ D.set(K, W);
2416
+ }
2417
+ }
2381
2418
  });
2382
2419
  }), D;
2383
- }, [t]), F = (typeof (n == null ? void 0 : n.y) == "number" ? n.y : parseInt((n == null ? void 0 : n.y) || "400")) || 400;
2420
+ }, [f]), N = (typeof (n == null ? void 0 : n.y) == "number" ? n.y : parseInt((n == null ? void 0 : n.y) || "400")) || 400;
2384
2421
  return /* @__PURE__ */ Z.jsx(
2385
- Hn,
2422
+ Bn,
2386
2423
  {
2387
- gridRef: c,
2388
- columnCount: A,
2389
- columnWidth: d,
2424
+ gridRef: l,
2425
+ columnCount: I,
2426
+ columnWidth: u,
2390
2427
  rowCount: E,
2391
- rowHeight: k,
2392
- style: { height: F - 40, width: s, overflowY: "auto" },
2428
+ rowHeight: j,
2429
+ style: { height: N - 40, width: s, overflowY: "auto" },
2393
2430
  onScroll: J,
2394
- className: `virtual-grid row-${j}`,
2395
- overscanCount: j + 3,
2396
- cellComponent: Un,
2431
+ className: "virtual-grid",
2432
+ overscanCount: Xe,
2433
+ cellComponent: qn,
2397
2434
  cellProps: {
2398
- mergedData: $,
2399
- columns: _,
2400
- data: h,
2435
+ mergedData: P,
2436
+ columns: x,
2437
+ data: f,
2401
2438
  handleExpand: e.handleExpand,
2402
- meta: e.meta
2439
+ meta: e.meta,
2440
+ mergedCellsMap: z
2403
2441
  }
2404
2442
  }
2405
2443
  );
@@ -2416,8 +2454,8 @@ const Bn = (e) => /* @__PURE__ */ Z.jsxs("svg", { viewBox: "64 64 896 896", focu
2416
2454
  return n;
2417
2455
  n = n[i];
2418
2456
  }
2419
- return n == null && (n = Ce), n;
2420
- }, ct = (e, t) => "|" + t.map((n) => me(e, n)).join("|"), Gt = (e, t) => {
2457
+ return n == null && (n = xe), n;
2458
+ }, ut = (e, t) => "|" + t.map((n) => me(e, n)).join("|"), qt = (e, t) => {
2421
2459
  if (!e)
2422
2460
  return null;
2423
2461
  try {
@@ -2432,8 +2470,8 @@ const Bn = (e) => /* @__PURE__ */ Z.jsxs("svg", { viewBox: "64 64 896 896", focu
2432
2470
  }, Ge = {
2433
2471
  sum: (e) => e.reduce((t, r) => t + (Number(r) || 0), 0),
2434
2472
  avg: (e) => {
2435
- const t = e.filter((r) => !isNaN(Number(r)));
2436
- return t.length > 0 ? t.reduce((r, n) => r + Number(n), 0) / t.length : 0;
2473
+ const t = e;
2474
+ return t.length > 0 ? t.reduce((r, n) => r + (isNaN(Number(n)) ? 0 : Number(n)), 0) / t.length : 0;
2437
2475
  },
2438
2476
  count: (e) => e.length,
2439
2477
  min: (e) => Math.min(...e.map((t) => Number(t) || 1 / 0)),
@@ -2453,133 +2491,133 @@ const Bn = (e) => /* @__PURE__ */ Z.jsxs("svg", { viewBox: "64 64 896 896", focu
2453
2491
  const r = t.reduce((s, a) => s + a, 0) / t.length, i = t.map((s) => Math.pow(s - r, 2)).reduce((s, a) => s + a, 0) / t.length;
2454
2492
  return Math.sqrt(i);
2455
2493
  }
2456
- }, ue = /* @__PURE__ */ new Map(), ut = /* @__PURE__ */ new Map(), ft = /* @__PURE__ */ new Map(), Jn = (e) => {
2494
+ }, ue = /* @__PURE__ */ new Map(), ft = /* @__PURE__ */ new Map(), dt = /* @__PURE__ */ new Map(), Xn = (e) => {
2457
2495
  const { data: t, sortParams: r, fields: n } = e, { rows: i, columns: s, values: a } = n;
2458
2496
  if (!t || t.length === 0 || !i.length && !s.length && !a.length)
2459
2497
  return {
2460
2498
  list: [],
2461
- dataExpandFilter: (y) => y
2499
+ dataExpandFilter: (g) => g
2462
2500
  };
2463
- const l = He(i), c = He(s), f = He(a).filter((y) => !y.hidden), h = l.map((y) => y.field), E = c.map((y) => y.field), v = /* @__PURE__ */ new Map(), A = /* @__PURE__ */ new Map(), P = /* @__PURE__ */ new Map();
2464
- t.forEach((y) => {
2465
- const C = ct(y, h);
2466
- v.has(C) || v.set(C, []), v.get(C).push(y);
2467
- const w = ct(y, E);
2468
- A.has(w) || A.set(w, []), A.get(w).push(y);
2469
- const b = `${C}||${w}`;
2470
- P.has(b) || P.set(b, []), P.get(b).push(y);
2501
+ const h = He(i), l = He(s), c = He(a).filter((g) => !g.hidden), f = h.map((g) => g.field), E = l.map((g) => g.field), b = /* @__PURE__ */ new Map(), I = /* @__PURE__ */ new Map(), A = /* @__PURE__ */ new Map();
2502
+ t.forEach((g) => {
2503
+ const C = ut(g, f);
2504
+ b.has(C) || b.set(C, []), b.get(C).push(g);
2505
+ const w = ut(g, E);
2506
+ I.has(w) || I.set(w, []), I.get(w).push(g);
2507
+ const y = `${C}||${w}`;
2508
+ A.has(y) || A.set(y, []), A.get(y).push(g);
2471
2509
  });
2472
- const _ = () => Array.from(v.entries()).sort(([y, C], [w, b]) => {
2510
+ const x = () => Array.from(b.entries()).sort(([g, C], [w, y]) => {
2473
2511
  if (r && r.length > 0)
2474
- for (const m of r) {
2475
- const { field: O, sortType: R } = m, S = R === "asc", x = me(C[0], O), I = me(b[0], O);
2476
- if (x < I)
2477
- return S ? -1 : 1;
2478
- if (x > I)
2479
- return S ? 1 : -1;
2512
+ for (const v of r) {
2513
+ const { field: O, sortType: _ } = v, R = _ === "asc", S = me(C[0], O), $ = me(y[0], O);
2514
+ if (S < $)
2515
+ return R ? -1 : 1;
2516
+ if (S > $)
2517
+ return R ? 1 : -1;
2480
2518
  }
2481
- for (let m = 0; m < h.length; m++) {
2482
- const O = h[m], R = l[m], S = me(C[0], O), x = me(b[0], O);
2483
- if (S !== x)
2484
- if (R.sort && R.sort.enabled) {
2485
- const I = R.sort.type === "asc";
2486
- if (S < x)
2487
- return I ? -1 : 1;
2488
- if (S > x)
2489
- return I ? 1 : -1;
2519
+ for (let v = 0; v < f.length; v++) {
2520
+ const O = f[v], _ = h[v], R = me(C[0], O), S = me(y[0], O);
2521
+ if (R !== S)
2522
+ if (_.sort && _.sort.enabled) {
2523
+ const $ = _.sort.type === "asc";
2524
+ if (R < S)
2525
+ return $ ? -1 : 1;
2526
+ if (R > S)
2527
+ return $ ? 1 : -1;
2490
2528
  } else {
2491
- if (S < x)
2529
+ if (R < S)
2492
2530
  return -1;
2493
- if (S > x)
2531
+ if (R > S)
2494
2532
  return 1;
2495
2533
  }
2496
2534
  }
2497
2535
  return 0;
2498
- }), d = () => Array.from(A.entries()).sort(([y, C], [w, b]) => {
2499
- for (let m = 0; m < E.length; m++) {
2500
- const O = E[m], R = c[m], S = me(C[0], O), x = me(b[0], O);
2501
- if (S !== x)
2502
- if (R.sort && R.sort.enabled) {
2503
- const I = R.sort.type === "asc";
2504
- if (S < x)
2505
- return I ? -1 : 1;
2506
- if (S > x)
2507
- return I ? 1 : -1;
2536
+ }), u = () => Array.from(I.entries()).sort(([g, C], [w, y]) => {
2537
+ for (let v = 0; v < E.length; v++) {
2538
+ const O = E[v], _ = l[v], R = me(C[0], O), S = me(y[0], O);
2539
+ if (R !== S)
2540
+ if (_.sort && _.sort.enabled) {
2541
+ const $ = _.sort.type === "asc";
2542
+ if (R < S)
2543
+ return $ ? -1 : 1;
2544
+ if (R > S)
2545
+ return $ ? 1 : -1;
2508
2546
  } else {
2509
- if (S < x)
2547
+ if (R < S)
2510
2548
  return -1;
2511
- if (S > x)
2549
+ if (R > S)
2512
2550
  return 1;
2513
2551
  }
2514
2552
  }
2515
2553
  return 0;
2516
- }), k = () => {
2517
- const y = [], C = He(i);
2554
+ }), j = () => {
2555
+ const g = [], C = He(i);
2518
2556
  for (let w = 1; w <= C.length; w++)
2519
- y.push(C.slice(0, w));
2520
- return y;
2521
- }, $ = () => {
2522
- const y = k(), C = /* @__PURE__ */ new Set();
2523
- return y.forEach((w, b) => {
2524
- const m = w[w.length - 1];
2525
- m.total && m.total.enabled && C.add(b);
2557
+ g.push(C.slice(0, w));
2558
+ return g;
2559
+ }, P = () => {
2560
+ const g = j(), C = /* @__PURE__ */ new Set();
2561
+ return g.forEach((w, y) => {
2562
+ const v = w[w.length - 1];
2563
+ v.total && v.total.enabled && C.add(y);
2526
2564
  }), C;
2527
2565
  }, J = () => {
2528
- const y = k(), C = [], w = $();
2529
- return w.size === 0 || w.forEach((b) => {
2530
- let m = [];
2531
- b > 0 && (m = y[b - 1]);
2566
+ const g = j(), C = [], w = P();
2567
+ return w.size === 0 || w.forEach((y) => {
2568
+ let v = [];
2569
+ y > 0 && (v = g[y - 1]);
2532
2570
  const O = {};
2533
- t.forEach((R) => {
2534
- let S = "";
2535
- if (b > 0 ? S = m.map((x) => me(R, x.field)).join("|") : S = "__GLOBAL__", !O[S]) {
2536
- const I = y[b][b].total;
2537
- O[S] = {
2571
+ t.forEach((_) => {
2572
+ let R = "";
2573
+ if (y > 0 ? R = v.map((S) => me(_, S.field)).join("|") : R = "__GLOBAL__", !O[R]) {
2574
+ const $ = g[y][y].total;
2575
+ O[R] = {
2538
2576
  records: [],
2539
- config: I
2577
+ config: $
2540
2578
  };
2541
2579
  }
2542
- O[S].records.push(R);
2543
- }), C.push({ level: b, data: O });
2580
+ O[R].records.push(_);
2581
+ }), C.push({ level: y, data: O });
2544
2582
  }), C;
2545
- }, j = d(), F = /* @__PURE__ */ new Map(), D = (y, C) => {
2546
- if (ue.has(y)) {
2547
- const w = ue.get(y), m = !w.get(C);
2548
- w.set(C, m), ut.set("rowKey", C), ut.set("level", y), ut.set("expanded", m);
2549
- const O = y - 1;
2550
- if (O >= 0 && O < l.length && l[O].clickExpandChildren && m === !0) {
2551
- const S = y + 1;
2552
- if (ue.has(S)) {
2553
- const x = ue.get(S), I = C + "|";
2554
- x.forEach((H, ae) => {
2555
- ae.startsWith(I) && (x.set(ae, !0), z(S, ae));
2583
+ }, z = u(), N = /* @__PURE__ */ new Map(), D = (g, C) => {
2584
+ if (ue.has(g)) {
2585
+ const w = ue.get(g), v = !w.get(C);
2586
+ w.set(C, v), ft.set("rowKey", C), ft.set("level", g), ft.set("expanded", v);
2587
+ const O = g - 1;
2588
+ if (O >= 0 && O < h.length && h[O].clickExpandChildren && v === !0) {
2589
+ const R = g + 1;
2590
+ if (ue.has(R)) {
2591
+ const S = ue.get(R), $ = C + "|";
2592
+ S.forEach((Y, ae) => {
2593
+ ae.startsWith($) && (S.set(ae, !0), k(R, ae));
2556
2594
  });
2557
2595
  }
2558
2596
  }
2559
2597
  }
2560
- }, z = (y, C) => {
2561
- const w = y + 1;
2598
+ }, k = (g, C) => {
2599
+ const w = g + 1;
2562
2600
  if (ue.has(w)) {
2563
- const b = ue.get(w), m = C + "|";
2564
- b.forEach((O, R) => {
2565
- R.startsWith(m) && (b.set(R, !0), z(w, R));
2601
+ const y = ue.get(w), v = C + "|";
2602
+ y.forEach((O, _) => {
2603
+ _.startsWith(v) && (y.set(_, !0), k(w, _));
2566
2604
  });
2567
2605
  }
2568
- }, p = (y) => {
2569
- const C = J(), w = [...y];
2606
+ }, p = (g) => {
2607
+ const C = J(), w = [...g];
2570
2608
  if (C.length === 0)
2571
2609
  return w;
2572
- for (let b = 0; b < C.length; b++) {
2573
- const { level: m, data: O } = C[b];
2574
- Object.keys(O).forEach((R) => {
2575
- const { records: S, config: x } = O[R], { label: I = Bt, position: H = "bottom" } = x || {}, ae = R.split("|");
2610
+ for (let y = 0; y < C.length; y++) {
2611
+ const { level: v, data: O } = C[y];
2612
+ Object.keys(O).forEach((_) => {
2613
+ const { records: R, config: S } = O[_], { label: $ = Kt, position: Y = "bottom" } = S || {}, ae = _.split("|");
2576
2614
  let le = -1, T = -1;
2577
- if (m === 0)
2615
+ if (v === 0)
2578
2616
  le = 0, T = w.length - 1;
2579
2617
  else
2580
2618
  for (let Q = 0; Q < w.length; Q++) {
2581
2619
  const ee = w[Q];
2582
- h.slice(0, m).every((Le, pe) => {
2620
+ f.slice(0, v).every(($e, pe) => {
2583
2621
  var oe;
2584
2622
  return ((oe = ee[pe]) == null ? void 0 : oe.content) === ae[pe];
2585
2623
  }) && (le === -1 && (le = Q), T = Q);
@@ -2587,38 +2625,38 @@ const Bn = (e) => /* @__PURE__ */ Z.jsxs("svg", { viewBox: "64 64 896 896", focu
2587
2625
  if (le !== -1) {
2588
2626
  const Q = [];
2589
2627
  let ee = "";
2590
- h.forEach((Le, pe) => {
2591
- let oe = Ce;
2592
- const ie = pe + 1, ce = ie < h.length, je = l[pe];
2593
- pe <= m && (pe === m ? oe = I : oe = ae[pe], ee += `|${oe}`);
2628
+ f.forEach(($e, pe) => {
2629
+ let oe = xe;
2630
+ const ie = pe + 1, ce = ie < f.length, je = h[pe];
2631
+ pe <= v && (pe === v ? oe = $ : oe = ae[pe], ee += `|${oe}`);
2594
2632
  const Ke = ue.has(ie) && ue.get(ie).get(ee) || !0;
2595
- (oe === Ce || oe === null || oe === void 0) && je.emptyReplace && (oe = je.emptyReplace), Q.push({
2633
+ (oe === xe || oe === null || oe === void 0) && je.emptyReplace && (oe = je.emptyReplace), Q.push({
2596
2634
  content: oe,
2597
2635
  rowspan: 1,
2598
2636
  colspan: 1,
2599
2637
  data: null,
2600
2638
  rowKey: ee,
2601
- expandable: H === "top" && ce && oe !== Ce && oe !== Bt,
2602
- expanded: H === "top" ? Ke : !1,
2639
+ expandable: Y === "top" && ce && oe !== xe && oe !== Kt,
2640
+ expanded: Y === "top" ? Ke : !1,
2603
2641
  level: ie,
2604
- onClick: H === "top" && ce ? (Ae) => D(Ae.level, Ae.rowKey) : void 0
2642
+ onClick: Y === "top" && ce ? (Ae) => D(Ae.level, Ae.rowKey) : void 0
2605
2643
  });
2606
- }), j.forEach(([Le, pe]) => {
2644
+ }), z.forEach(([$e, pe]) => {
2607
2645
  const oe = {};
2608
- f.forEach((ie) => {
2646
+ c.forEach((ie) => {
2609
2647
  if (ie.calculateType === "expr")
2610
2648
  return;
2611
- const ce = ie.field, je = ie.calculateType || "sum", Ae = S.filter((xe) => ct(xe, E) === Le).map((xe) => me(xe, ce));
2649
+ const ce = ie.field, je = ie.calculateType || "sum", Ae = R.filter((Ce) => ut(Ce, E) === $e).map((Ce) => me(Ce, ce));
2612
2650
  let Ne = 0;
2613
2651
  Ge[je] && (Ne = Ge[je](Ae)), oe[ie.field] = Ne;
2614
- }), f.forEach((ie) => {
2652
+ }), c.forEach((ie) => {
2615
2653
  if (ie.calculateType === "expr" && ie.expression) {
2616
- const ce = Gt(ie.expression, oe);
2654
+ const ce = qt(ie.expression, oe);
2617
2655
  oe[ie.field] = ce !== null ? ce : 0;
2618
2656
  }
2619
- }), f.forEach((ie) => {
2657
+ }), c.forEach((ie) => {
2620
2658
  let ce = oe[ie.field];
2621
- (ce === Ce || ce === null || ce === void 0 || typeof ce == "number" && isNaN(ce)) && ie.emptyReplace && (ce = ie.emptyReplace), Q.push({
2659
+ (ce === xe || ce === null || ce === void 0 || typeof ce == "number" && isNaN(ce)) && ie.emptyReplace && (ce = ie.emptyReplace), Q.push({
2622
2660
  content: ce,
2623
2661
  rowspan: 1,
2624
2662
  colspan: 1,
@@ -2626,140 +2664,140 @@ const Bn = (e) => /* @__PURE__ */ Z.jsxs("svg", { viewBox: "64 64 896 896", focu
2626
2664
  });
2627
2665
  });
2628
2666
  });
2629
- const fe = H === "top" ? le : T + 1;
2630
- ft.has(ee) || (w.splice(fe, 0, Q), ft.set(ee, 1), H === "top" && m > 0 && F.set(R, ee));
2667
+ const fe = Y === "top" ? le : T + 1;
2668
+ dt.has(ee) || (w.splice(fe, 0, Q), dt.set(ee, 1), Y === "top" && v > 0 && N.set(_, ee));
2631
2669
  }
2632
2670
  });
2633
2671
  }
2634
2672
  return w;
2635
- }, B = He(i);
2636
- ue.clear(), t.forEach((y) => {
2673
+ }, F = He(i);
2674
+ ue.clear(), t.forEach((g) => {
2637
2675
  let C = "";
2638
- h.forEach((w, b) => {
2639
- const m = b + 1, O = me(y, w);
2640
- C += `|${O}`, ue.has(m) || ue.set(m, /* @__PURE__ */ new Map());
2641
- const R = l[b].collapsed;
2642
- ue.get(m).set(C, !R);
2676
+ f.forEach((w, y) => {
2677
+ const v = y + 1, O = me(g, w);
2678
+ C += `|${O}`, ue.has(v) || ue.set(v, /* @__PURE__ */ new Map());
2679
+ const _ = h[y].collapsed;
2680
+ ue.get(v).set(C, !_);
2643
2681
  });
2644
2682
  });
2645
- const M = _();
2683
+ const M = x();
2646
2684
  let W = [];
2647
- const Y = /* @__PURE__ */ new Map();
2648
- M.forEach(([y, C]) => {
2685
+ const H = /* @__PURE__ */ new Map();
2686
+ M.forEach(([g, C]) => {
2649
2687
  const w = C[0];
2650
- let b = "";
2651
- h.forEach((m, O) => {
2652
- const R = me(w, m), S = O + 1;
2653
- b += `|${R}`, Y.has(S) || Y.set(S, /* @__PURE__ */ new Map());
2654
- const x = Y.get(S);
2655
- x.set(b, (x.get(b) || 0) + 1);
2688
+ let y = "";
2689
+ f.forEach((v, O) => {
2690
+ const _ = me(w, v), R = O + 1;
2691
+ y += `|${_}`, H.has(R) || H.set(R, /* @__PURE__ */ new Map());
2692
+ const S = H.get(R);
2693
+ S.set(y, (S.get(y) || 0) + 1);
2656
2694
  });
2657
- }), M.forEach(([y, C]) => {
2658
- const w = C[0], b = [];
2659
- let m = "";
2660
- h.forEach((O, R) => {
2695
+ }), M.forEach(([g, C]) => {
2696
+ const w = C[0], y = [];
2697
+ let v = "";
2698
+ f.forEach((O, _) => {
2661
2699
  var ee;
2662
- let S = me(w, O);
2663
- const x = R + 1, I = x < h.length, H = l[R];
2664
- m += `|${S}`;
2665
- let ae = y;
2666
- const le = B.find((fe) => fe.field === O);
2667
- if ((ee = le == null ? void 0 : le.total) != null && ee.enabled && le.total.label && (ae = `${m}|${le.total.label}`), I) {
2668
- const fe = m;
2669
- F.has(fe) || F.set(fe, ae);
2700
+ let R = me(w, O);
2701
+ const S = _ + 1, $ = S < f.length, Y = h[_];
2702
+ v += `|${R}`;
2703
+ let ae = g;
2704
+ const le = F.find((fe) => fe.field === O);
2705
+ if ((ee = le == null ? void 0 : le.total) != null && ee.enabled && le.total.label && (ae = `${v}|${le.total.label}`), $) {
2706
+ const fe = v;
2707
+ N.has(fe) || N.set(fe, ae);
2670
2708
  }
2671
- const T = ue.has(x) && ue.get(x).get(m) || !0, Q = x < h.length ? (Y.get(x).get(m) || 0) > 1 : !1;
2672
- (S === Ce || S === null || S === void 0) && H.emptyReplace && (S = H.emptyReplace), b.push({
2673
- content: S,
2709
+ const T = ue.has(S) && ue.get(S).get(v) || !0, Q = S < f.length ? (H.get(S).get(v) || 0) > 1 : !1;
2710
+ (R === xe || R === null || R === void 0) && Y.emptyReplace && (R = Y.emptyReplace), y.push({
2711
+ content: R,
2674
2712
  rowspan: 1,
2675
2713
  colspan: 1,
2676
2714
  data: w,
2677
- expandable: I && Q,
2715
+ expandable: $ && Q,
2678
2716
  expanded: T,
2679
- level: x,
2680
- rowKey: m,
2681
- onClick: I && Q ? (fe) => D(fe.level, fe.rowKey) : void 0
2717
+ level: S,
2718
+ rowKey: v,
2719
+ onClick: $ && Q ? (fe) => D(fe.level, fe.rowKey) : void 0
2682
2720
  });
2683
- }), j.forEach(([O, R]) => {
2684
- const S = {};
2685
- f.forEach((x) => {
2686
- if (x.calculateType === "expr")
2721
+ }), z.forEach(([O, _]) => {
2722
+ const R = {};
2723
+ c.forEach((S) => {
2724
+ if (S.calculateType === "expr")
2687
2725
  return;
2688
- const I = x.field, H = x.calculateType || "sum", ae = `${y}||${O}`, T = (P.get(ae) || []).map((ee) => me(ee, I));
2726
+ const $ = S.field, Y = S.calculateType || "sum", ae = `${g}||${O}`, T = (A.get(ae) || []).map((ee) => me(ee, $));
2689
2727
  let Q = 0;
2690
- Ge[H] && (Q = Ge[H](T)), S[x.field] = Q;
2691
- }), f.forEach((x) => {
2692
- if (x.calculateType === "expr" && x.expression) {
2693
- const I = Gt(x.expression, S);
2694
- S[x.field] = I !== null ? I : 0;
2728
+ Ge[Y] && (Q = Ge[Y](T)), R[S.field] = Q;
2729
+ }), c.forEach((S) => {
2730
+ if (S.calculateType === "expr" && S.expression) {
2731
+ const $ = qt(S.expression, R);
2732
+ R[S.field] = $ !== null ? $ : 0;
2695
2733
  }
2696
- }), f.forEach((x) => {
2697
- let I = S[x.field];
2698
- (I === Ce || I === null || I === void 0 || typeof I == "number" && isNaN(I)) && x.emptyReplace && (I = x.emptyReplace), b.push({
2699
- content: I,
2734
+ }), c.forEach((S) => {
2735
+ let $ = R[S.field];
2736
+ ($ === xe || $ === null || $ === void 0 || typeof $ == "number" && isNaN($)) && S.emptyReplace && ($ = S.emptyReplace), y.push({
2737
+ content: $,
2700
2738
  rowspan: 1,
2701
2739
  colspan: 1,
2702
2740
  data: w
2703
2741
  });
2704
2742
  });
2705
- }), W.push({ cells: b, rowKey: m });
2743
+ }), W.push({ cells: y, rowKey: v });
2706
2744
  });
2707
- const q = (y) => {
2708
- const w = y.split("|").filter(Boolean).length;
2709
- for (let b = 1; b < w; b++)
2710
- if (ue.has(b)) {
2711
- const m = ue.get(b), O = y.split("|").slice(0, b + 1).join("|");
2712
- if (m.has(O) && !m.get(O)) {
2713
- const R = O, S = F.get(R);
2714
- if (y !== S)
2745
+ const K = (g) => {
2746
+ const w = g.split("|").filter(Boolean).length;
2747
+ for (let y = 1; y < w; y++)
2748
+ if (ue.has(y)) {
2749
+ const v = ue.get(y), O = g.split("|").slice(0, y + 1).join("|");
2750
+ if (v.has(O) && !v.get(O)) {
2751
+ const _ = O, R = N.get(_);
2752
+ if (g !== R)
2715
2753
  return !1;
2716
2754
  }
2717
2755
  }
2718
2756
  return !0;
2719
- }, te = (y) => {
2757
+ }, te = (g) => {
2720
2758
  var C, w;
2721
- if (!y || y.length === 0)
2722
- return y;
2723
- for (let b = 0; b < l.length; b++) {
2724
- let m = y[0][b].content, O = 0, R = l[b], S = (C = R.total) == null ? void 0 : C.enabled, x = ((w = R.total) == null ? void 0 : w.label) || "";
2725
- for (let I = 1; I < y.length; I++) {
2726
- const H = y[I][b];
2727
- H.content !== Ce && (!S || H.content !== x) && H.content === m ? (H.rowspan = 0, y[O][b].rowspan++) : (m = H.content, O = I);
2759
+ if (!g || g.length === 0)
2760
+ return g;
2761
+ for (let y = 0; y < h.length; y++) {
2762
+ let v = g[0][y].content, O = 0, _ = h[y], R = (C = _.total) == null ? void 0 : C.enabled, S = ((w = _.total) == null ? void 0 : w.label) || "";
2763
+ for (let $ = 1; $ < g.length; $++) {
2764
+ const Y = g[$][y];
2765
+ Y.content !== xe && (!R || Y.content !== S) && Y.content === v ? (Y.rowspan = 0, g[O][y].rowspan++) : (v = Y.content, O = $);
2728
2766
  }
2729
2767
  }
2730
- return y;
2731
- }, he = (y) => {
2732
- const C = y.filter((m) => q(m.rowKey)), w = C.map((m) => m.cells.map((O) => {
2733
- const R = { ...O };
2734
- if (R.expandable && R.level && R.rowKey && ue.has(R.level)) {
2735
- const S = ue.get(R.level);
2736
- S.has(R.rowKey) && (R.expanded = S.get(R.rowKey));
2768
+ return g;
2769
+ }, he = (g) => {
2770
+ const C = g.filter((v) => K(v.rowKey)), w = C.map((v) => v.cells.map((O) => {
2771
+ const _ = { ...O };
2772
+ if (_.expandable && _.level && _.rowKey && ue.has(_.level)) {
2773
+ const R = ue.get(_.level);
2774
+ R.has(_.rowKey) && (_.expanded = R.get(_.rowKey));
2737
2775
  }
2738
- return R;
2776
+ return _;
2739
2777
  }));
2740
- return te(w), C.map((m, O) => ({
2741
- rowKey: m.rowKey,
2778
+ return te(w), C.map((v, O) => ({
2779
+ rowKey: v.rowKey,
2742
2780
  cells: w[O]
2743
2781
  }));
2744
2782
  };
2745
- ft.clear();
2746
- const be = W.map((y) => y.cells), _e = p(be).map((y, C) => {
2783
+ dt.clear();
2784
+ const be = W.map((g) => g.cells), _e = p(be).map((g, C) => {
2747
2785
  let w = "";
2748
- return y.forEach((b, m) => {
2749
- m < h.length && b.rowKey && (w = b.rowKey);
2750
- }), { cells: y, rowKey: w };
2786
+ return g.forEach((y, v) => {
2787
+ v < f.length && y.rowKey && (w = y.rowKey);
2788
+ }), { cells: g, rowKey: w };
2751
2789
  }), Se = (() => {
2752
- const y = [];
2753
- if (l.forEach((C) => {
2754
- y.push({
2790
+ const g = [];
2791
+ if (h.forEach((C) => {
2792
+ g.push({
2755
2793
  ...C,
2756
2794
  width: C.width || 100,
2757
2795
  fixed: "left",
2758
2796
  key: C.field
2759
2797
  });
2760
- }), c.length === 0)
2761
- f.forEach((C) => {
2762
- y.push({
2798
+ }), l.length === 0)
2799
+ c.forEach((C) => {
2800
+ g.push({
2763
2801
  ...C,
2764
2802
  width: C.width || 100,
2765
2803
  key: C.field
@@ -2767,156 +2805,156 @@ const Bn = (e) => /* @__PURE__ */ Z.jsxs("svg", { viewBox: "64 64 896 896", focu
2767
2805
  });
2768
2806
  else {
2769
2807
  const C = [];
2770
- j.forEach(([w, b]) => {
2771
- const m = w.split("|").filter((R) => R !== "");
2808
+ z.forEach(([w, y]) => {
2809
+ const v = w.split("|").filter((_) => _ !== "");
2772
2810
  let O = C;
2773
- m.forEach((R, S) => {
2774
- var I;
2775
- let x = O.find((H) => H.title === R);
2776
- if (!x) {
2777
- const ae = `${((I = c[S]) == null ? void 0 : I.field) || "unknown"}_${R}`, le = {
2811
+ v.forEach((_, R) => {
2812
+ var $;
2813
+ let S = O.find((Y) => Y.title === _);
2814
+ if (!S) {
2815
+ const ae = `${(($ = l[R]) == null ? void 0 : $.field) || "unknown"}__${_}`, le = {
2778
2816
  field: ae,
2779
- title: R,
2817
+ title: _,
2780
2818
  children: [],
2781
2819
  key: ae
2782
2820
  };
2783
- O.push(le), x = le;
2821
+ O.push(le), S = le;
2784
2822
  }
2785
- S === m.length - 1 ? f.forEach((H) => {
2786
- x.children || (x.children = []), x.children.push({
2787
- ...H,
2788
- field: `${w}||${H.field}`,
2789
- title: H.title || H.field,
2790
- width: H.width || 100,
2791
- key: `${w}||${H.field}`
2823
+ R === v.length - 1 ? c.forEach((Y) => {
2824
+ S.children || (S.children = []), S.children.push({
2825
+ ...Y,
2826
+ field: `${w}||${Y.field}`,
2827
+ title: Y.title || Y.field,
2828
+ width: Y.width || 100,
2829
+ key: `${w}||${Y.field}`
2792
2830
  });
2793
- }) : (x.children || (x.children = []), O = x.children);
2831
+ }) : (S.children || (S.children = []), O = S.children);
2794
2832
  });
2795
- }), y.push(...C);
2833
+ }), g.push(...C);
2796
2834
  }
2797
- return y;
2835
+ return g;
2798
2836
  })();
2799
2837
  return {
2800
2838
  list: _e,
2801
2839
  dataExpandFilter: he,
2802
2840
  tableColumns: Se
2803
2841
  };
2804
- }, Xn = (e) => {
2842
+ }, Zn = (e) => {
2805
2843
  const { data: t, fields: r } = e, { rows: n, columns: i, values: s } = r;
2806
2844
  if (!s || s.length === 0)
2807
2845
  return { list: [], dataExpandFilter: (a) => a };
2808
2846
  if (!t || t.length === 0)
2809
2847
  return { list: [], dataExpandFilter: (a) => a };
2810
2848
  if (n.length === 0 && i.length === 0) {
2811
- const a = s.filter((f) => !f.hidden), l = a.map((f) => ({
2812
- ...f,
2813
- width: f.width || 100,
2814
- key: f.field
2849
+ const a = s.filter((c) => !c.hidden), h = a.map((c) => ({
2850
+ ...c,
2851
+ width: c.width || 100,
2852
+ key: c.field
2815
2853
  }));
2816
2854
  return {
2817
- list: t.map((f, h) => ({ cells: a.map((v) => ({
2818
- content: f[v.field] ?? Ce,
2855
+ list: t.map((c, f) => ({ cells: a.map((b) => ({
2856
+ content: c[b.field] ?? xe,
2819
2857
  rowspan: 1,
2820
2858
  colspan: 1,
2821
- style: v.style,
2822
- data: f
2859
+ style: b.style,
2860
+ data: c
2823
2861
  // Pass original record for detail view cells
2824
- })), rowKey: h.toString() })),
2825
- dataExpandFilter: (f) => f,
2826
- tableColumns: l
2862
+ })), rowKey: f.toString() })),
2863
+ dataExpandFilter: (c) => c,
2864
+ tableColumns: h
2827
2865
  };
2828
2866
  }
2829
- return Jn(e);
2830
- }, eo = Ut((e) => {
2831
- const { scroll: t, data: r, meta: n, sortParams: i, fields: s } = e, [a, l] = Ie(0), [c, f] = Ie([]), [h, E] = Ie([]), v = ze(null), A = ge(() => {
2832
- if (v.current) {
2833
- let p = v.current;
2867
+ return Xn(e);
2868
+ }, to = Jt((e) => {
2869
+ const { scroll: t, data: r, meta: n, sortParams: i, fields: s } = e, [a, h] = Ie(0), [l, c] = Ie([]), [f, E] = Ie([]), b = ze(null), I = ge(() => {
2870
+ if (b.current) {
2871
+ let p = b.current;
2834
2872
  if (!p || !p.list || !p.dataExpandFilter)
2835
2873
  return;
2836
- f(p.dataExpandFilter(p.list));
2874
+ c(p.dataExpandFilter(p.list));
2837
2875
  }
2838
2876
  }, []);
2839
- Ze(() => {
2840
- let B = Xn({
2877
+ Qe(() => {
2878
+ let F = Zn({
2841
2879
  data: r,
2842
2880
  meta: n,
2843
2881
  sortParams: i,
2844
2882
  fields: s
2845
2883
  });
2846
- v.current = B, B.tableColumns && E(B.tableColumns), A();
2847
- }, [r, n, i, s, A]);
2848
- const P = ge((p) => p ? typeof p == "string" ? parseInt(p.replace("px", "")) || 0 : typeof p == "number" ? p : 0 : 0, []), { baseWidth: _, colCount: d } = ye(() => {
2849
- let p = 0, B = 0;
2884
+ b.current = F, F.tableColumns && E(F.tableColumns), I();
2885
+ }, [r, n, i, s, I]);
2886
+ const A = ge((p) => p ? typeof p == "string" ? parseInt(p.replace("px", "")) || 0 : typeof p == "number" ? p : 0 : 0, []), { baseWidth: x, colCount: u } = ye(() => {
2887
+ let p = 0, F = 0;
2850
2888
  const M = (W) => {
2851
- W.forEach((Y) => {
2852
- (!("type" in Y) || Y.type !== "group") && (p += P(Y.width), B += 1), Y != null && Y.children && Y.children.length > 0 && M(Y.children);
2889
+ W.forEach((H) => {
2890
+ (!("type" in H) || H.type !== "group") && (p += A(H.width), F += 1), H != null && H.children && H.children.length > 0 && M(H.children);
2853
2891
  });
2854
2892
  };
2855
- return M(h), { baseWidth: p, colCount: B };
2856
- }, [h, P]), k = ye(() => {
2857
- const p = (B) => B.map((M) => {
2893
+ return M(f), { baseWidth: p, colCount: F };
2894
+ }, [f, A]), j = ye(() => {
2895
+ const p = (F) => F.map((M) => {
2858
2896
  let W = 0;
2859
- _ < a && d > 0 && (W = Math.floor((a - _) / d));
2860
- const q = (M.width ? P(M.width) : An) + W;
2861
- return M.colSpan && M.colSpan > 1 ? M.width = q * M.colSpan : M.width = q, M.fixed && (M.fixed = !1), M != null && M.children && M.children.length > 0 && (M.children = p(M.children)), M;
2897
+ x < a && u > 0 && (W = Math.floor((a - x) / u));
2898
+ const K = (M.width ? A(M.width) : Mn) + W;
2899
+ return M.colSpan && M.colSpan > 1 ? M.width = K * M.colSpan : M.width = K, M.fixed && (M.fixed = !1), M != null && M.children && M.children.length > 0 && (M.children = p(M.children)), M;
2862
2900
  });
2863
- return p(bt(h));
2864
- }, [h, _, a, d, P]), $ = ye(() => {
2901
+ return p(Et(f));
2902
+ }, [f, x, a, u, A]), P = ye(() => {
2865
2903
  let p = 0;
2866
- const B = (M) => {
2904
+ const F = (M) => {
2867
2905
  M.forEach((W) => {
2868
- (!("type" in W) || W.type !== "group") && (p += P(W.width)), W != null && W.children && W.children.length > 0 && B(W.children);
2906
+ (!("type" in W) || W.type !== "group") && (p += A(W.width)), W != null && W.children && W.children.length > 0 && F(W.children);
2869
2907
  });
2870
2908
  };
2871
- return B(k), p;
2872
- }, [k, P]), J = ze(null), j = ze(null), F = ze(!1), D = ge(({ scrollLeft: p }) => {
2873
- F.current || (F.current = !0, J.current && (J.current.scrollLeft = p), requestAnimationFrame(() => {
2874
- F.current = !1;
2909
+ return F(j), p;
2910
+ }, [j, A]), J = ze(null), z = ze(null), N = ze(!1), D = ge(({ scrollLeft: p }) => {
2911
+ N.current || (N.current = !0, J.current && (J.current.scrollLeft = p), requestAnimationFrame(() => {
2912
+ N.current = !1;
2875
2913
  }));
2876
- }, []), z = ge((p) => {
2877
- if (F.current)
2914
+ }, []), k = ge((p) => {
2915
+ if (N.current)
2878
2916
  return;
2879
- F.current = !0;
2880
- const B = p.currentTarget.scrollLeft;
2881
- j.current && (j.current.scrollLeft = B), requestAnimationFrame(() => {
2882
- F.current = !1;
2917
+ N.current = !0;
2918
+ const F = p.currentTarget.scrollLeft;
2919
+ z.current && (z.current.scrollLeft = F), requestAnimationFrame(() => {
2920
+ N.current = !1;
2883
2921
  });
2884
2922
  }, []);
2885
2923
  return /* @__PURE__ */ Z.jsx(
2886
- wt,
2924
+ Rt,
2887
2925
  {
2888
2926
  onResize: ({ width: p }) => {
2889
- p && p !== a && l(p);
2927
+ p && p !== a && h(p);
2890
2928
  },
2891
2929
  children: /* @__PURE__ */ Z.jsxs(
2892
2930
  "div",
2893
2931
  {
2894
- className: _t("virtual-table", e.className),
2932
+ className: St("virtual-table", e.className),
2895
2933
  style: { width: "100%", ...e.style },
2896
2934
  children: [
2897
2935
  /* @__PURE__ */ Z.jsx(
2898
- jn,
2936
+ An,
2899
2937
  {
2900
2938
  ref: J,
2901
- columns: k,
2939
+ columns: j,
2902
2940
  width: a - 8,
2903
- onScroll: z,
2941
+ onScroll: k,
2904
2942
  meta: n
2905
2943
  }
2906
2944
  ),
2907
2945
  /* @__PURE__ */ Z.jsx("div", { className: "virtual-table-body", style: { width: "100%" }, children: /* @__PURE__ */ Z.jsx(
2908
- qn,
2946
+ Jn,
2909
2947
  {
2910
- data: c,
2948
+ data: l,
2911
2949
  info: {
2912
- ref: j,
2950
+ ref: z,
2913
2951
  onScroll: D
2914
2952
  },
2915
2953
  scroll: t,
2916
- columns: k,
2954
+ columns: j,
2917
2955
  tableWidth: a,
2918
- gridWidth: $,
2919
- handleExpand: A,
2956
+ gridWidth: P,
2957
+ handleExpand: I,
2920
2958
  meta: n
2921
2959
  }
2922
2960
  ) })
@@ -2927,8 +2965,8 @@ const Bn = (e) => /* @__PURE__ */ Z.jsxs("svg", { viewBox: "64 64 896 896", focu
2927
2965
  );
2928
2966
  });
2929
2967
  export {
2930
- eo as VirtualTable,
2931
- Xn as dataHandler,
2932
- Jn as pivotDataHandler
2968
+ to as VirtualTable,
2969
+ Zn as dataHandler,
2970
+ Xn as pivotDataHandler
2933
2971
  };
2934
2972
  //# sourceMappingURL=virtual-table.es.js.map