@yester/virtual-table 1.1.2 → 1.1.4

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,5 +1,5 @@
1
1
  import * as re from "react";
2
- import Ye, { version as Tr, isValidElement as Pr, forwardRef as jr, useMemo as we, 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";
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
3
  import zt from "react-dom";
4
4
  function Mr(e) {
5
5
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
@@ -19,16 +19,16 @@ function zr() {
19
19
  if (It)
20
20
  return We;
21
21
  It = 1;
22
- var e = Ye, t = Symbol.for("react.element"), r = Symbol.for("react.fragment"), n = Object.prototype.hasOwnProperty, o = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, s = { key: !0, ref: !0, __self: !0, __source: !0 };
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
23
  function a(l, c, f) {
24
- var h, b = {}, p = null, j = null;
25
- f !== void 0 && (p = "" + f), c.key !== void 0 && (p = "" + c.key), c.ref !== void 0 && (j = c.ref);
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
26
  for (h in c)
27
- n.call(c, h) && !s.hasOwnProperty(h) && (b[h] = c[h]);
27
+ n.call(c, h) && !s.hasOwnProperty(h) && (E[h] = c[h]);
28
28
  if (l && l.defaultProps)
29
29
  for (h in c = l.defaultProps, c)
30
- b[h] === void 0 && (b[h] = c[h]);
31
- return { $$typeof: t, type: l, key: p, ref: j, props: b, _owner: o.current };
30
+ E[h] === void 0 && (E[h] = c[h]);
31
+ return { $$typeof: t, type: l, key: v, ref: A, props: E, _owner: i.current };
32
32
  }
33
33
  return We.Fragment = r, We.jsx = a, We.jsxs = a, We;
34
34
  }
@@ -45,86 +45,86 @@ var Ve = {};
45
45
  var Lt;
46
46
  function Ir() {
47
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"), o = 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"), b = Symbol.for("react.memo"), p = Symbol.for("react.lazy"), j = Symbol.for("react.offscreen"), T = Symbol.iterator, w = "@@iterator";
49
- function d(i) {
50
- if (i === null || typeof i != "object")
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) {
50
+ if (o === null || typeof o != "object")
51
51
  return null;
52
- var u = T && i[T] || i[w];
52
+ var u = P && o[P] || o[_];
53
53
  return typeof u == "function" ? u : null;
54
54
  }
55
- var F = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
56
- function k(i) {
55
+ var k = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
56
+ function $(o) {
57
57
  {
58
- for (var u = arguments.length, m = new Array(u > 1 ? u - 1 : 0), $ = 1; $ < u; $++)
59
- m[$ - 1] = arguments[$];
60
- J("error", i, m);
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);
61
61
  }
62
62
  }
63
- function J(i, u, m) {
63
+ function J(o, u, g) {
64
64
  {
65
- var $ = F.ReactDebugCurrentFrame, K = $.getStackAddendum();
66
- K !== "" && (u += "%s", m = m.concat([K]));
67
- var X = m.map(function(V) {
65
+ var L = k.ReactDebugCurrentFrame, K = L.getStackAddendum();
66
+ K !== "" && (u += "%s", g = g.concat([K]));
67
+ var X = g.map(function(V) {
68
68
  return String(V);
69
69
  });
70
- X.unshift("Warning: " + u), Function.prototype.apply.call(console[i], console, X);
70
+ X.unshift("Warning: " + u), Function.prototype.apply.call(console[o], console, X);
71
71
  }
72
72
  }
73
- var A = !1, P = !1, D = !1, z = !1, I = !1, B;
73
+ var j = !1, F = !1, D = !1, z = !1, p = !1, B;
74
74
  B = Symbol.for("react.module.reference");
75
- function M(i) {
76
- return !!(typeof i == "string" || typeof i == "function" || i === n || i === s || I || i === o || i === f || i === h || z || i === j || A || P || D || typeof i == "object" && i !== null && (i.$$typeof === p || i.$$typeof === b || i.$$typeof === a || i.$$typeof === l || i.$$typeof === c || // This needs to include all possible module reference object
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
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
- i.$$typeof === B || i.getModuleId !== void 0));
80
+ o.$$typeof === B || o.getModuleId !== void 0));
81
81
  }
82
- function W(i, u, m) {
83
- var $ = i.displayName;
84
- if ($)
85
- return $;
82
+ function W(o, u, g) {
83
+ var L = o.displayName;
84
+ if (L)
85
+ return L;
86
86
  var K = u.displayName || u.name || "";
87
- return K !== "" ? m + "(" + K + ")" : m;
87
+ return K !== "" ? g + "(" + K + ")" : g;
88
88
  }
89
- function Y(i) {
90
- return i.displayName || "Context";
89
+ function Y(o) {
90
+ return o.displayName || "Context";
91
91
  }
92
- function q(i) {
93
- if (i == null)
92
+ function q(o) {
93
+ if (o == null)
94
94
  return null;
95
- if (typeof i.tag == "number" && k("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof i == "function")
96
- return i.displayName || i.name || null;
97
- if (typeof i == "string")
98
- return i;
99
- switch (i) {
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")
96
+ return o.displayName || o.name || null;
97
+ if (typeof o == "string")
98
+ return o;
99
+ switch (o) {
100
100
  case n:
101
101
  return "Fragment";
102
102
  case r:
103
103
  return "Portal";
104
104
  case s:
105
105
  return "Profiler";
106
- case o:
106
+ case i:
107
107
  return "StrictMode";
108
108
  case f:
109
109
  return "Suspense";
110
110
  case h:
111
111
  return "SuspenseList";
112
112
  }
113
- if (typeof i == "object")
114
- switch (i.$$typeof) {
113
+ if (typeof o == "object")
114
+ switch (o.$$typeof) {
115
115
  case l:
116
- var u = i;
116
+ var u = o;
117
117
  return Y(u) + ".Consumer";
118
118
  case a:
119
- var m = i;
120
- return Y(m._context) + ".Provider";
119
+ var g = o;
120
+ return Y(g._context) + ".Provider";
121
121
  case c:
122
- return W(i, i.render, "ForwardRef");
123
- case b:
124
- var $ = i.displayName || null;
125
- return $ !== null ? $ : q(i.type) || "Memo";
126
- case p: {
127
- var K = i, X = K._payload, V = K._init;
122
+ return W(o, o.render, "ForwardRef");
123
+ case E:
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;
128
128
  try {
129
129
  return q(V(X));
130
130
  } catch {
@@ -134,101 +134,101 @@ function Ir() {
134
134
  }
135
135
  return null;
136
136
  }
137
- var te = Object.assign, he = 0, ye, Te, _e, be, Se, g, C;
138
- function E() {
137
+ var te = Object.assign, he = 0, be, Te, _e, Ee, Se, y, C;
138
+ function w() {
139
139
  }
140
- E.__reactDisabledLog = !0;
141
- function y() {
140
+ w.__reactDisabledLog = !0;
141
+ function b() {
142
142
  {
143
143
  if (he === 0) {
144
- ye = console.log, Te = console.info, _e = console.warn, be = console.error, Se = console.group, g = console.groupCollapsed, C = console.groupEnd;
145
- var i = {
144
+ be = console.log, Te = console.info, _e = console.warn, Ee = console.error, Se = console.group, y = console.groupCollapsed, C = console.groupEnd;
145
+ var o = {
146
146
  configurable: !0,
147
147
  enumerable: !0,
148
- value: E,
148
+ value: w,
149
149
  writable: !0
150
150
  };
151
151
  Object.defineProperties(console, {
152
- info: i,
153
- log: i,
154
- warn: i,
155
- error: i,
156
- group: i,
157
- groupCollapsed: i,
158
- groupEnd: i
152
+ info: o,
153
+ log: o,
154
+ warn: o,
155
+ error: o,
156
+ group: o,
157
+ groupCollapsed: o,
158
+ groupEnd: o
159
159
  });
160
160
  }
161
161
  he++;
162
162
  }
163
163
  }
164
- function v() {
164
+ function m() {
165
165
  {
166
166
  if (he--, he === 0) {
167
- var i = {
167
+ var o = {
168
168
  configurable: !0,
169
169
  enumerable: !0,
170
170
  writable: !0
171
171
  };
172
172
  Object.defineProperties(console, {
173
- log: te({}, i, {
174
- value: ye
173
+ log: te({}, o, {
174
+ value: be
175
175
  }),
176
- info: te({}, i, {
176
+ info: te({}, o, {
177
177
  value: Te
178
178
  }),
179
- warn: te({}, i, {
179
+ warn: te({}, o, {
180
180
  value: _e
181
181
  }),
182
- error: te({}, i, {
183
- value: be
182
+ error: te({}, o, {
183
+ value: Ee
184
184
  }),
185
- group: te({}, i, {
185
+ group: te({}, o, {
186
186
  value: Se
187
187
  }),
188
- groupCollapsed: te({}, i, {
189
- value: g
188
+ groupCollapsed: te({}, o, {
189
+ value: y
190
190
  }),
191
- groupEnd: te({}, i, {
191
+ groupEnd: te({}, o, {
192
192
  value: C
193
193
  })
194
194
  });
195
195
  }
196
- he < 0 && k("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
196
+ he < 0 && $("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
197
197
  }
198
198
  }
199
- var x = F.ReactCurrentDispatcher, _;
200
- function R(i, u, m) {
199
+ var O = k.ReactCurrentDispatcher, R;
200
+ function S(o, u, g) {
201
201
  {
202
- if (_ === void 0)
202
+ if (R === void 0)
203
203
  try {
204
204
  throw Error();
205
205
  } catch (K) {
206
- var $ = K.stack.trim().match(/\n( *(at )?)/);
207
- _ = $ && $[1] || "";
206
+ var L = K.stack.trim().match(/\n( *(at )?)/);
207
+ R = L && L[1] || "";
208
208
  }
209
209
  return `
210
- ` + _ + i;
210
+ ` + R + o;
211
211
  }
212
212
  }
213
- var S = !1, L;
213
+ var x = !1, I;
214
214
  {
215
215
  var H = typeof WeakMap == "function" ? WeakMap : Map;
216
- L = new H();
216
+ I = new H();
217
217
  }
218
- function ae(i, u) {
219
- if (!i || S)
218
+ function ae(o, u) {
219
+ if (!o || x)
220
220
  return "";
221
221
  {
222
- var m = L.get(i);
223
- if (m !== void 0)
224
- return m;
222
+ var g = I.get(o);
223
+ if (g !== void 0)
224
+ return g;
225
225
  }
226
- var $;
227
- S = !0;
226
+ var L;
227
+ x = !0;
228
228
  var K = Error.prepareStackTrace;
229
229
  Error.prepareStackTrace = void 0;
230
230
  var X;
231
- X = x.current, x.current = null, y();
231
+ X = O.current, O.current = null, b();
232
232
  try {
233
233
  if (u) {
234
234
  var V = function() {
@@ -242,29 +242,29 @@ function Ir() {
242
242
  try {
243
243
  Reflect.construct(V, []);
244
244
  } catch (ve) {
245
- $ = ve;
245
+ L = ve;
246
246
  }
247
- Reflect.construct(i, [], V);
247
+ Reflect.construct(o, [], V);
248
248
  } else {
249
249
  try {
250
250
  V.call();
251
251
  } catch (ve) {
252
- $ = ve;
252
+ L = ve;
253
253
  }
254
- i.call(V.prototype);
254
+ o.call(V.prototype);
255
255
  }
256
256
  } else {
257
257
  try {
258
258
  throw Error();
259
259
  } catch (ve) {
260
- $ = ve;
260
+ L = ve;
261
261
  }
262
- i();
262
+ o();
263
263
  }
264
264
  } catch (ve) {
265
- if (ve && $ && typeof ve.stack == "string") {
265
+ if (ve && L && typeof ve.stack == "string") {
266
266
  for (var N = ve.stack.split(`
267
- `), de = $.stack.split(`
267
+ `), de = L.stack.split(`
268
268
  `), ne = N.length - 1, se = de.length - 1; ne >= 1 && se >= 0 && N[ne] !== de[se]; )
269
269
  se--;
270
270
  for (; ne >= 1 && se >= 0; ne--, se--)
@@ -272,166 +272,166 @@ function Ir() {
272
272
  if (ne !== 1 || se !== 1)
273
273
  do
274
274
  if (ne--, se--, se < 0 || N[ne] !== de[se]) {
275
- var Ee = `
275
+ var we = `
276
276
  ` + N[ne].replace(" at new ", " at ");
277
- return i.displayName && Ee.includes("<anonymous>") && (Ee = Ee.replace("<anonymous>", i.displayName)), typeof i == "function" && L.set(i, Ee), Ee;
277
+ return o.displayName && we.includes("<anonymous>") && (we = we.replace("<anonymous>", o.displayName)), typeof o == "function" && I.set(o, we), we;
278
278
  }
279
279
  while (ne >= 1 && se >= 0);
280
280
  break;
281
281
  }
282
282
  }
283
283
  } finally {
284
- S = !1, x.current = X, v(), Error.prepareStackTrace = K;
284
+ x = !1, O.current = X, m(), Error.prepareStackTrace = K;
285
285
  }
286
- var ke = i ? i.displayName || i.name : "", Me = ke ? R(ke) : "";
287
- return typeof i == "function" && L.set(i, Me), Me;
286
+ var ke = o ? o.displayName || o.name : "", Me = ke ? S(ke) : "";
287
+ return typeof o == "function" && I.set(o, Me), Me;
288
288
  }
289
- function le(i, u, m) {
290
- return ae(i, !1);
289
+ function le(o, u, g) {
290
+ return ae(o, !1);
291
291
  }
292
- function O(i) {
293
- var u = i.prototype;
292
+ function T(o) {
293
+ var u = o.prototype;
294
294
  return !!(u && u.isReactComponent);
295
295
  }
296
- function Q(i, u, m) {
297
- if (i == null)
296
+ function Q(o, u, g) {
297
+ if (o == null)
298
298
  return "";
299
- if (typeof i == "function")
300
- return ae(i, O(i));
301
- if (typeof i == "string")
302
- return R(i);
303
- switch (i) {
299
+ if (typeof o == "function")
300
+ return ae(o, T(o));
301
+ if (typeof o == "string")
302
+ return S(o);
303
+ switch (o) {
304
304
  case f:
305
- return R("Suspense");
305
+ return S("Suspense");
306
306
  case h:
307
- return R("SuspenseList");
307
+ return S("SuspenseList");
308
308
  }
309
- if (typeof i == "object")
310
- switch (i.$$typeof) {
309
+ if (typeof o == "object")
310
+ switch (o.$$typeof) {
311
311
  case c:
312
- return le(i.render);
313
- case b:
314
- return Q(i.type, u, m);
315
- case p: {
316
- var $ = i, K = $._payload, X = $._init;
312
+ return le(o.render);
313
+ case E:
314
+ return Q(o.type, u, g);
315
+ case v: {
316
+ var L = o, K = L._payload, X = L._init;
317
317
  try {
318
- return Q(X(K), u, m);
318
+ return Q(X(K), u, g);
319
319
  } catch {
320
320
  }
321
321
  }
322
322
  }
323
323
  return "";
324
324
  }
325
- var ee = Object.prototype.hasOwnProperty, fe = {}, Le = F.ReactDebugCurrentFrame;
326
- function pe(i) {
327
- if (i) {
328
- var u = i._owner, m = Q(i.type, i._source, u ? u.type : null);
329
- Le.setExtraStackFrame(m);
325
+ var ee = Object.prototype.hasOwnProperty, fe = {}, Le = k.ReactDebugCurrentFrame;
326
+ function pe(o) {
327
+ if (o) {
328
+ var u = o._owner, g = Q(o.type, o._source, u ? u.type : null);
329
+ Le.setExtraStackFrame(g);
330
330
  } else
331
331
  Le.setExtraStackFrame(null);
332
332
  }
333
- function ie(i, u, m, $, K) {
333
+ function oe(o, u, g, L, K) {
334
334
  {
335
335
  var X = Function.call.bind(ee);
336
- for (var V in i)
337
- if (X(i, V)) {
336
+ for (var V in o)
337
+ if (X(o, V)) {
338
338
  var N = void 0;
339
339
  try {
340
- if (typeof i[V] != "function") {
341
- var de = Error(($ || "React class") + ": " + m + " type `" + V + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof i[V] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
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`.");
342
342
  throw de.name = "Invariant Violation", de;
343
343
  }
344
- N = i[V](u, V, $, m, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
344
+ N = o[V](u, V, L, g, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
345
345
  } catch (ne) {
346
346
  N = ne;
347
347
  }
348
- N && !(N instanceof Error) && (pe(K), 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).", $ || "React class", m, V, typeof N), pe(null)), N instanceof Error && !(N.message in fe) && (fe[N.message] = !0, pe(K), k("Failed %s type: %s", m, N.message), pe(null));
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));
349
349
  }
350
350
  }
351
351
  }
352
- var oe = Array.isArray;
353
- function ce(i) {
354
- return oe(i);
352
+ var ie = Array.isArray;
353
+ function ce(o) {
354
+ return ie(o);
355
355
  }
356
- function je(i) {
356
+ function je(o) {
357
357
  {
358
- var u = typeof Symbol == "function" && Symbol.toStringTag, m = u && i[Symbol.toStringTag] || i.constructor.name || "Object";
359
- return m;
358
+ var u = typeof Symbol == "function" && Symbol.toStringTag, g = u && o[Symbol.toStringTag] || o.constructor.name || "Object";
359
+ return g;
360
360
  }
361
361
  }
362
- function Ke(i) {
362
+ function Ke(o) {
363
363
  try {
364
- return Ae(i), !1;
364
+ return Ae(o), !1;
365
365
  } catch {
366
366
  return !0;
367
367
  }
368
368
  }
369
- function Ae(i) {
370
- return "" + i;
369
+ function Ae(o) {
370
+ return "" + o;
371
371
  }
372
- function Ne(i) {
373
- if (Ke(i))
374
- return k("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", je(i)), Ae(i);
372
+ function Ne(o) {
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);
375
375
  }
376
- var Ce = F.ReactCurrentOwner, ur = {
376
+ var xe = k.ReactCurrentOwner, ur = {
377
377
  key: !0,
378
378
  ref: !0,
379
379
  __self: !0,
380
380
  __source: !0
381
381
  }, Rt, St, et;
382
382
  et = {};
383
- function fr(i) {
384
- if (ee.call(i, "ref")) {
385
- var u = Object.getOwnPropertyDescriptor(i, "ref").get;
383
+ function fr(o) {
384
+ if (ee.call(o, "ref")) {
385
+ var u = Object.getOwnPropertyDescriptor(o, "ref").get;
386
386
  if (u && u.isReactWarning)
387
387
  return !1;
388
388
  }
389
- return i.ref !== void 0;
389
+ return o.ref !== void 0;
390
390
  }
391
- function dr(i) {
392
- if (ee.call(i, "key")) {
393
- var u = Object.getOwnPropertyDescriptor(i, "key").get;
391
+ function dr(o) {
392
+ if (ee.call(o, "key")) {
393
+ var u = Object.getOwnPropertyDescriptor(o, "key").get;
394
394
  if (u && u.isReactWarning)
395
395
  return !1;
396
396
  }
397
- return i.key !== void 0;
397
+ return o.key !== void 0;
398
398
  }
399
- function hr(i, u) {
400
- if (typeof i.ref == "string" && Ce.current && u && Ce.current.stateNode !== u) {
401
- var m = q(Ce.current.type);
402
- et[m] || (k('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(Ce.current.type), i.ref), et[m] = !0);
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);
403
403
  }
404
404
  }
405
- function pr(i, u) {
405
+ function pr(o, u) {
406
406
  {
407
- var m = function() {
408
- Rt || (Rt = !0, k("%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 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));
409
409
  };
410
- m.isReactWarning = !0, Object.defineProperty(i, "key", {
411
- get: m,
410
+ g.isReactWarning = !0, Object.defineProperty(o, "key", {
411
+ get: g,
412
412
  configurable: !0
413
413
  });
414
414
  }
415
415
  }
416
- function vr(i, u) {
416
+ function vr(o, u) {
417
417
  {
418
- var m = function() {
419
- St || (St = !0, k("%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 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));
420
420
  };
421
- m.isReactWarning = !0, Object.defineProperty(i, "ref", {
422
- get: m,
421
+ g.isReactWarning = !0, Object.defineProperty(o, "ref", {
422
+ get: g,
423
423
  configurable: !0
424
424
  });
425
425
  }
426
426
  }
427
- var mr = function(i, u, m, $, K, X, V) {
427
+ var mr = function(o, u, g, L, K, X, V) {
428
428
  var N = {
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
- type: i,
432
+ type: o,
433
433
  key: u,
434
- ref: m,
434
+ ref: g,
435
435
  props: V,
436
436
  // Record the component responsible for creating this element.
437
437
  _owner: X
@@ -445,7 +445,7 @@ function Ir() {
445
445
  configurable: !1,
446
446
  enumerable: !1,
447
447
  writable: !1,
448
- value: $
448
+ value: L
449
449
  }), Object.defineProperty(N, "_source", {
450
450
  configurable: !1,
451
451
  enumerable: !1,
@@ -453,195 +453,195 @@ function Ir() {
453
453
  value: K
454
454
  }), Object.freeze && (Object.freeze(N.props), Object.freeze(N)), N;
455
455
  };
456
- function gr(i, u, m, $, K) {
456
+ function gr(o, u, g, L, K) {
457
457
  {
458
458
  var X, V = {}, N = null, de = null;
459
- m !== void 0 && (Ne(m), N = "" + m), dr(u) && (Ne(u.key), N = "" + u.key), fr(u) && (de = u.ref, hr(u, K));
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
460
  for (X in u)
461
461
  ee.call(u, X) && !ur.hasOwnProperty(X) && (V[X] = u[X]);
462
- if (i && i.defaultProps) {
463
- var ne = i.defaultProps;
462
+ if (o && o.defaultProps) {
463
+ var ne = o.defaultProps;
464
464
  for (X in ne)
465
465
  V[X] === void 0 && (V[X] = ne[X]);
466
466
  }
467
467
  if (N || de) {
468
- var se = typeof i == "function" ? i.displayName || i.name || "Unknown" : i;
468
+ var se = typeof o == "function" ? o.displayName || o.name || "Unknown" : o;
469
469
  N && pr(V, se), de && vr(V, se);
470
470
  }
471
- return mr(i, N, de, K, $, Ce.current, V);
471
+ return mr(o, N, de, K, L, xe.current, V);
472
472
  }
473
473
  }
474
- var tt = F.ReactCurrentOwner, Ct = F.ReactDebugCurrentFrame;
475
- function $e(i) {
476
- if (i) {
477
- var u = i._owner, m = Q(i.type, i._source, u ? u.type : null);
478
- Ct.setExtraStackFrame(m);
474
+ var tt = k.ReactCurrentOwner, xt = k.ReactDebugCurrentFrame;
475
+ function $e(o) {
476
+ if (o) {
477
+ var u = o._owner, g = Q(o.type, o._source, u ? u.type : null);
478
+ xt.setExtraStackFrame(g);
479
479
  } else
480
- Ct.setExtraStackFrame(null);
480
+ xt.setExtraStackFrame(null);
481
481
  }
482
482
  var rt;
483
483
  rt = !1;
484
- function nt(i) {
485
- return typeof i == "object" && i !== null && i.$$typeof === t;
484
+ function nt(o) {
485
+ return typeof o == "object" && o !== null && o.$$typeof === t;
486
486
  }
487
- function xt() {
487
+ function Ct() {
488
488
  {
489
489
  if (tt.current) {
490
- var i = q(tt.current.type);
491
- if (i)
490
+ var o = q(tt.current.type);
491
+ if (o)
492
492
  return `
493
493
 
494
- Check the render method of \`` + i + "`.";
494
+ Check the render method of \`` + o + "`.";
495
495
  }
496
496
  return "";
497
497
  }
498
498
  }
499
- function yr(i) {
499
+ function yr(o) {
500
500
  {
501
- if (i !== void 0) {
502
- var u = i.fileName.replace(/^.*[\\\/]/, ""), m = i.lineNumber;
501
+ if (o !== void 0) {
502
+ var u = o.fileName.replace(/^.*[\\\/]/, ""), g = o.lineNumber;
503
503
  return `
504
504
 
505
- Check your code at ` + u + ":" + m + ".";
505
+ Check your code at ` + u + ":" + g + ".";
506
506
  }
507
507
  return "";
508
508
  }
509
509
  }
510
510
  var Ot = {};
511
- function br(i) {
511
+ function br(o) {
512
512
  {
513
- var u = xt();
513
+ var u = Ct();
514
514
  if (!u) {
515
- var m = typeof i == "string" ? i : i.displayName || i.name;
516
- m && (u = `
515
+ var g = typeof o == "string" ? o : o.displayName || o.name;
516
+ g && (u = `
517
517
 
518
- Check the top-level render call using <` + m + ">.");
518
+ Check the top-level render call using <` + g + ">.");
519
519
  }
520
520
  return u;
521
521
  }
522
522
  }
523
- function Tt(i, u) {
523
+ function Tt(o, u) {
524
524
  {
525
- if (!i._store || i._store.validated || i.key != null)
525
+ if (!o._store || o._store.validated || o.key != null)
526
526
  return;
527
- i._store.validated = !0;
528
- var m = br(u);
529
- if (Ot[m])
527
+ o._store.validated = !0;
528
+ var g = br(u);
529
+ if (Ot[g])
530
530
  return;
531
- Ot[m] = !0;
532
- var $ = "";
533
- i && i._owner && i._owner !== tt.current && ($ = " It was passed a child from " + q(i._owner.type) + "."), $e(i), k('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', m, $), $e(null);
531
+ Ot[g] = !0;
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);
534
534
  }
535
535
  }
536
- function Pt(i, u) {
536
+ function Pt(o, u) {
537
537
  {
538
- if (typeof i != "object")
538
+ if (typeof o != "object")
539
539
  return;
540
- if (ce(i))
541
- for (var m = 0; m < i.length; m++) {
542
- var $ = i[m];
543
- nt($) && Tt($, u);
540
+ if (ce(o))
541
+ for (var g = 0; g < o.length; g++) {
542
+ var L = o[g];
543
+ nt(L) && Tt(L, u);
544
544
  }
545
- else if (nt(i))
546
- i._store && (i._store.validated = !0);
547
- else if (i) {
548
- var K = d(i);
549
- if (typeof K == "function" && K !== i.entries)
550
- for (var X = K.call(i), V; !(V = X.next()).done; )
545
+ else if (nt(o))
546
+ o._store && (o._store.validated = !0);
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
551
  nt(V.value) && Tt(V.value, u);
552
552
  }
553
553
  }
554
554
  }
555
- function Er(i) {
555
+ function Er(o) {
556
556
  {
557
- var u = i.type;
557
+ var u = o.type;
558
558
  if (u == null || typeof u == "string")
559
559
  return;
560
- var m;
560
+ var g;
561
561
  if (typeof u == "function")
562
- m = u.propTypes;
562
+ g = u.propTypes;
563
563
  else if (typeof u == "object" && (u.$$typeof === c || // Note: Memo only checks outer props here.
564
564
  // Inner props are checked in the reconciler.
565
- u.$$typeof === b))
566
- m = u.propTypes;
565
+ u.$$typeof === E))
566
+ g = u.propTypes;
567
567
  else
568
568
  return;
569
- if (m) {
570
- var $ = q(u);
571
- ie(m, i.props, "prop", $, i);
569
+ if (g) {
570
+ var L = q(u);
571
+ oe(g, o.props, "prop", L, o);
572
572
  } else if (u.PropTypes !== void 0 && !rt) {
573
573
  rt = !0;
574
574
  var K = q(u);
575
- k("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", K || "Unknown");
575
+ $("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", K || "Unknown");
576
576
  }
577
- typeof u.getDefaultProps == "function" && !u.getDefaultProps.isReactClassApproved && k("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
577
+ typeof u.getDefaultProps == "function" && !u.getDefaultProps.isReactClassApproved && $("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
578
578
  }
579
579
  }
580
- function wr(i) {
580
+ function wr(o) {
581
581
  {
582
- for (var u = Object.keys(i.props), m = 0; m < u.length; m++) {
583
- var $ = u[m];
584
- if ($ !== "children" && $ !== "key") {
585
- $e(i), k("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", $), $e(null);
582
+ for (var u = Object.keys(o.props), g = 0; g < u.length; g++) {
583
+ var L = u[g];
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);
586
586
  break;
587
587
  }
588
588
  }
589
- i.ref !== null && ($e(i), k("Invalid attribute `ref` supplied to `React.Fragment`."), $e(null));
589
+ o.ref !== null && ($e(o), $("Invalid attribute `ref` supplied to `React.Fragment`."), $e(null));
590
590
  }
591
591
  }
592
592
  var jt = {};
593
- function At(i, u, m, $, K, X) {
593
+ function At(o, u, g, L, K, X) {
594
594
  {
595
- var V = M(i);
595
+ var V = M(o);
596
596
  if (!V) {
597
597
  var N = "";
598
- (i === void 0 || typeof i == "object" && i !== null && Object.keys(i).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.");
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
599
  var de = yr(K);
600
- de ? N += de : N += xt();
600
+ de ? N += de : N += Ct();
601
601
  var ne;
602
- i === null ? ne = "null" : ce(i) ? ne = "array" : i !== void 0 && i.$$typeof === t ? (ne = "<" + (q(i.type) || "Unknown") + " />", N = " Did you accidentally export a JSX literal instead of a component?") : ne = typeof i, k("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 = "<" + (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);
603
603
  }
604
- var se = gr(i, u, m, K, X);
604
+ var se = gr(o, u, g, K, X);
605
605
  if (se == null)
606
606
  return se;
607
607
  if (V) {
608
- var Ee = u.children;
609
- if (Ee !== void 0)
610
- if ($)
611
- if (ce(Ee)) {
612
- for (var ke = 0; ke < Ee.length; ke++)
613
- Pt(Ee[ke], i);
614
- Object.freeze && Object.freeze(Ee);
608
+ var we = u.children;
609
+ if (we !== void 0)
610
+ if (L)
611
+ if (ce(we)) {
612
+ for (var ke = 0; ke < we.length; ke++)
613
+ Pt(we[ke], o);
614
+ Object.freeze && Object.freeze(we);
615
615
  } else
616
- k("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
+ $("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(Ee, i);
618
+ Pt(we, o);
619
619
  }
620
620
  if (ee.call(u, "key")) {
621
- var Me = q(i), ve = Object.keys(u).filter(function(Or) {
621
+ var Me = q(o), ve = Object.keys(u).filter(function(Or) {
622
622
  return Or !== "key";
623
- }), it = ve.length > 0 ? "{key: someKey, " + ve.join(": ..., ") + ": ...}" : "{key: someKey}";
624
- if (!jt[Me + it]) {
625
- var xr = ve.length > 0 ? "{" + ve.join(": ..., ") + ": ...}" : "{}";
626
- k(`A props object containing a "key" prop is being spread into JSX:
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:
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} />`, it, Me, xr, Me), jt[Me + it] = !0;
631
+ <%s key={someKey} {...props} />`, ot, Me, Cr, Me), jt[Me + ot] = !0;
632
632
  }
633
633
  }
634
- return i === n ? wr(se) : Er(se), se;
634
+ return o === n ? wr(se) : Er(se), se;
635
635
  }
636
636
  }
637
- function _r(i, u, m) {
638
- return At(i, u, m, !0);
637
+ function _r(o, u, g) {
638
+ return At(o, u, g, !0);
639
639
  }
640
- function Rr(i, u, m) {
641
- return At(i, u, m, !1);
640
+ function Rr(o, u, g) {
641
+ return At(o, u, g, !1);
642
642
  }
643
- var Sr = Rr, Cr = _r;
644
- Ve.Fragment = n, Ve.jsx = Sr, Ve.jsxs = Cr;
643
+ var Sr = Rr, xr = _r;
644
+ Ve.Fragment = n, Ve.jsx = Sr, Ve.jsxs = xr;
645
645
  }()), Ve;
646
646
  }
647
647
  process.env.NODE_ENV === "production" ? dt.exports = zr() : dt.exports = Ir();
@@ -682,8 +682,8 @@ function pt(e) {
682
682
  var Dr = [];
683
683
  function $t(e, t) {
684
684
  if (process.env.NODE_ENV !== "production" && !e && console !== void 0)
685
- var r = Dr.reduce(function(n, o) {
686
- return o(n ?? "", "warning");
685
+ var r = Dr.reduce(function(n, i) {
686
+ return i(n ?? "", "warning");
687
687
  }, t);
688
688
  }
689
689
  function Fr(e, t) {
@@ -714,8 +714,8 @@ function kt(e, t) {
714
714
  var r = Object.keys(e);
715
715
  if (Object.getOwnPropertySymbols) {
716
716
  var n = Object.getOwnPropertySymbols(e);
717
- t && (n = n.filter(function(o) {
718
- return Object.getOwnPropertyDescriptor(e, o).enumerable;
717
+ t && (n = n.filter(function(i) {
718
+ return Object.getOwnPropertyDescriptor(e, i).enumerable;
719
719
  })), r.push.apply(r, n);
720
720
  }
721
721
  return r;
@@ -737,7 +737,7 @@ function Ft(e) {
737
737
  function Wr(e) {
738
738
  return e && Re(e) === "object" && Ft(e.nativeElement) ? e.nativeElement : Ft(e) ? e : null;
739
739
  }
740
- function ot(e) {
740
+ function it(e) {
741
741
  var t = Wr(e);
742
742
  if (t)
743
743
  return t;
@@ -762,16 +762,16 @@ function Vr() {
762
762
  if (Nt)
763
763
  return G;
764
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"), o = 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"), b = Symbol.for("react.memo"), p = Symbol.for("react.lazy"), j = Symbol.for("react.offscreen"), T;
766
- T = Symbol.for("react.module.reference");
767
- function w(d) {
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
768
  if (typeof d == "object" && d !== null) {
769
- var F = d.$$typeof;
770
- switch (F) {
769
+ var k = d.$$typeof;
770
+ switch (k) {
771
771
  case e:
772
772
  switch (d = d.type, d) {
773
773
  case r:
774
- case o:
774
+ case i:
775
775
  case n:
776
776
  case f:
777
777
  case h:
@@ -781,50 +781,50 @@ function Vr() {
781
781
  case l:
782
782
  case a:
783
783
  case c:
784
- case p:
785
- case b:
784
+ case v:
785
+ case E:
786
786
  case s:
787
787
  return d;
788
788
  default:
789
- return F;
789
+ return k;
790
790
  }
791
791
  }
792
792
  case t:
793
- return F;
793
+ return k;
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 = p, G.Memo = b, G.Portal = t, G.Profiler = o, G.StrictMode = n, G.Suspense = f, G.SuspenseList = h, G.isAsyncMode = function() {
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() {
798
798
  return !1;
799
799
  }, G.isConcurrentMode = function() {
800
800
  return !1;
801
801
  }, G.isContextConsumer = function(d) {
802
- return w(d) === a;
802
+ return _(d) === a;
803
803
  }, G.isContextProvider = function(d) {
804
- return w(d) === s;
804
+ return _(d) === s;
805
805
  }, G.isElement = function(d) {
806
806
  return typeof d == "object" && d !== null && d.$$typeof === e;
807
807
  }, G.isForwardRef = function(d) {
808
- return w(d) === c;
808
+ return _(d) === c;
809
809
  }, G.isFragment = function(d) {
810
- return w(d) === r;
810
+ return _(d) === r;
811
811
  }, G.isLazy = function(d) {
812
- return w(d) === p;
812
+ return _(d) === v;
813
813
  }, G.isMemo = function(d) {
814
- return w(d) === b;
814
+ return _(d) === E;
815
815
  }, G.isPortal = function(d) {
816
- return w(d) === t;
816
+ return _(d) === t;
817
817
  }, G.isProfiler = function(d) {
818
- return w(d) === o;
818
+ return _(d) === i;
819
819
  }, G.isStrictMode = function(d) {
820
- return w(d) === n;
820
+ return _(d) === n;
821
821
  }, G.isSuspense = function(d) {
822
- return w(d) === f;
822
+ return _(d) === f;
823
823
  }, G.isSuspenseList = function(d) {
824
- return w(d) === h;
824
+ return _(d) === h;
825
825
  }, G.isValidElementType = function(d) {
826
- return typeof d == "string" || typeof d == "function" || d === r || d === o || d === n || d === f || d === h || d === j || typeof d == "object" && d !== null && (d.$$typeof === p || d.$$typeof === b || d.$$typeof === s || d.$$typeof === a || d.$$typeof === c || d.$$typeof === T || d.getModuleId !== void 0);
827
- }, G.typeOf = w, G;
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
828
  }
829
829
  var U = {};
830
830
  /**
@@ -839,24 +839,24 @@ var U = {};
839
839
  var Wt;
840
840
  function Hr() {
841
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"), o = 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"), b = Symbol.for("react.memo"), p = Symbol.for("react.lazy"), j = Symbol.for("react.offscreen"), T = !1, w = !1, d = !1, F = !1, k = !1, J;
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;
843
843
  J = Symbol.for("react.module.reference");
844
- function A(O) {
845
- return !!(typeof O == "string" || typeof O == "function" || O === r || O === o || k || O === n || O === f || O === h || F || O === j || T || w || d || typeof O == "object" && O !== null && (O.$$typeof === p || O.$$typeof === b || O.$$typeof === s || O.$$typeof === a || O.$$typeof === c || // This needs to include all possible module reference object
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
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
- O.$$typeof === J || O.getModuleId !== void 0));
849
+ T.$$typeof === J || T.getModuleId !== void 0));
850
850
  }
851
- function P(O) {
852
- if (typeof O == "object" && O !== null) {
853
- var Q = O.$$typeof;
851
+ function F(T) {
852
+ if (typeof T == "object" && T !== null) {
853
+ var Q = T.$$typeof;
854
854
  switch (Q) {
855
855
  case e:
856
- var ee = O.type;
856
+ var ee = T.type;
857
857
  switch (ee) {
858
858
  case r:
859
- case o:
859
+ case i:
860
860
  case n:
861
861
  case f:
862
862
  case h:
@@ -867,8 +867,8 @@ function Hr() {
867
867
  case l:
868
868
  case a:
869
869
  case c:
870
- case p:
871
- case b:
870
+ case v:
871
+ case E:
872
872
  case s:
873
873
  return fe;
874
874
  default:
@@ -880,50 +880,50 @@ function Hr() {
880
880
  }
881
881
  }
882
882
  }
883
- var D = a, z = s, I = e, B = c, M = r, W = p, Y = b, q = t, te = o, he = n, ye = f, Te = h, _e = !1, be = !1;
884
- function Se(O) {
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;
884
+ function Se(T) {
885
885
  return _e || (_e = !0), !1;
886
886
  }
887
- function g(O) {
888
- return be || (be = !0), !1;
887
+ function y(T) {
888
+ return Ee || (Ee = !0), !1;
889
889
  }
890
- function C(O) {
891
- return P(O) === a;
890
+ function C(T) {
891
+ return F(T) === a;
892
892
  }
893
- function E(O) {
894
- return P(O) === s;
893
+ function w(T) {
894
+ return F(T) === s;
895
895
  }
896
- function y(O) {
897
- return typeof O == "object" && O !== null && O.$$typeof === e;
896
+ function b(T) {
897
+ return typeof T == "object" && T !== null && T.$$typeof === e;
898
898
  }
899
- function v(O) {
900
- return P(O) === c;
899
+ function m(T) {
900
+ return F(T) === c;
901
901
  }
902
- function x(O) {
903
- return P(O) === r;
902
+ function O(T) {
903
+ return F(T) === r;
904
904
  }
905
- function _(O) {
906
- return P(O) === p;
905
+ function R(T) {
906
+ return F(T) === v;
907
907
  }
908
- function R(O) {
909
- return P(O) === b;
908
+ function S(T) {
909
+ return F(T) === E;
910
910
  }
911
- function S(O) {
912
- return P(O) === t;
911
+ function x(T) {
912
+ return F(T) === t;
913
913
  }
914
- function L(O) {
915
- return P(O) === o;
914
+ function I(T) {
915
+ return F(T) === i;
916
916
  }
917
- function H(O) {
918
- return P(O) === n;
917
+ function H(T) {
918
+ return F(T) === n;
919
919
  }
920
- function ae(O) {
921
- return P(O) === f;
920
+ function ae(T) {
921
+ return F(T) === f;
922
922
  }
923
- function le(O) {
924
- return P(O) === h;
923
+ function le(T) {
924
+ return F(T) === h;
925
925
  }
926
- U.ContextConsumer = D, U.ContextProvider = z, U.Element = I, U.ForwardRef = B, U.Fragment = M, U.Lazy = W, U.Memo = Y, U.Portal = q, U.Profiler = te, U.StrictMode = he, U.Suspense = ye, U.SuspenseList = Te, U.isAsyncMode = Se, U.isConcurrentMode = g, U.isContextConsumer = C, U.isContextProvider = E, U.isElement = y, U.isForwardRef = v, U.isFragment = x, U.isLazy = _, U.isMemo = R, U.isPortal = S, U.isProfiler = L, U.isStrictMode = H, U.isSuspense = ae, U.isSuspenseList = le, U.isValidElementType = A, U.typeOf = P;
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
927
  }()), U;
928
928
  }
929
929
  process.env.NODE_ENV === "production" ? vt.exports = Vr() : vt.exports = Hr();
@@ -937,8 +937,8 @@ var Yr = Number(Tr.split(".")[0]), Kr = function(t, r) {
937
937
  }, Gr = function() {
938
938
  for (var t = arguments.length, r = new Array(t), n = 0; n < t; n++)
939
939
  r[n] = arguments[n];
940
- var o = r.filter(Boolean);
941
- return o.length <= 1 ? o[0] : function(s) {
940
+ var i = r.filter(Boolean);
941
+ return i.length <= 1 ? i[0] : function(s) {
942
942
  r.forEach(function(a) {
943
943
  Kr(a, s);
944
944
  });
@@ -948,8 +948,8 @@ var Yr = Number(Tr.split(".")[0]), Kr = function(t, r) {
948
948
  r[n] = arguments[n];
949
949
  return Br(function() {
950
950
  return Gr.apply(void 0, r);
951
- }, r, function(o, s) {
952
- return o.length !== s.length || o.every(function(a, l) {
951
+ }, r, function(i, s) {
952
+ return i.length !== s.length || i.every(function(a, l) {
953
953
  return a !== s[l];
954
954
  });
955
955
  });
@@ -959,8 +959,8 @@ var Yr = Number(Tr.split(".")[0]), Kr = function(t, r) {
959
959
  return !1;
960
960
  if (Xt(t) && Yr >= 19)
961
961
  return !0;
962
- var o = st.isMemo(t) ? t.type.type : t.type;
963
- return !(typeof o == "function" && !((r = o.prototype) !== null && r !== void 0 && r.render) && o.$$typeof !== st.ForwardRef || typeof t == "function" && !((n = t.prototype) !== null && n !== void 0 && n.render) && t.$$typeof !== st.ForwardRef);
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);
964
964
  };
965
965
  function Xt(e) {
966
966
  return /* @__PURE__ */ Pr(e) && !qt(e);
@@ -973,15 +973,15 @@ var Jr = function(t) {
973
973
  return null;
974
974
  }, mt = /* @__PURE__ */ re.createContext(null);
975
975
  function Xr(e) {
976
- var t = e.children, r = e.onBatchResize, n = re.useRef(0), o = re.useRef([]), s = re.useContext(mt), a = re.useCallback(function(l, c, f) {
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) {
977
977
  n.current += 1;
978
978
  var h = n.current;
979
- o.current.push({
979
+ i.current.push({
980
980
  size: l,
981
981
  element: c,
982
982
  data: f
983
983
  }), Promise.resolve().then(function() {
984
- h === n.current && (r == null || r(o.current), o.current = []);
984
+ h === n.current && (r == null || r(i.current), i.current = []);
985
985
  }), s == null || s(l, c, f);
986
986
  }, [r, s]);
987
987
  return /* @__PURE__ */ re.createElement(mt.Provider, {
@@ -993,8 +993,8 @@ var Zt = function() {
993
993
  return Map;
994
994
  function e(t, r) {
995
995
  var n = -1;
996
- return t.some(function(o, s) {
997
- return o[0] === r ? (n = s, !0) : !1;
996
+ return t.some(function(i, s) {
997
+ return i[0] === r ? (n = s, !0) : !1;
998
998
  }), n;
999
999
  }
1000
1000
  return (
@@ -1013,22 +1013,22 @@ var Zt = function() {
1013
1013
  enumerable: !0,
1014
1014
  configurable: !0
1015
1015
  }), t.prototype.get = function(r) {
1016
- var n = e(this.__entries__, r), o = this.__entries__[n];
1017
- return o && o[1];
1016
+ var n = e(this.__entries__, r), i = this.__entries__[n];
1017
+ return i && i[1];
1018
1018
  }, t.prototype.set = function(r, n) {
1019
- var o = e(this.__entries__, r);
1020
- ~o ? this.__entries__[o][1] = n : this.__entries__.push([r, n]);
1019
+ var i = e(this.__entries__, r);
1020
+ ~i ? this.__entries__[i][1] = n : this.__entries__.push([r, n]);
1021
1021
  }, t.prototype.delete = function(r) {
1022
- var n = this.__entries__, o = e(n, r);
1023
- ~o && n.splice(o, 1);
1022
+ var n = this.__entries__, i = e(n, r);
1023
+ ~i && n.splice(i, 1);
1024
1024
  }, t.prototype.has = function(r) {
1025
1025
  return !!~e(this.__entries__, r);
1026
1026
  }, t.prototype.clear = function() {
1027
1027
  this.__entries__.splice(0);
1028
1028
  }, t.prototype.forEach = function(r, n) {
1029
1029
  n === void 0 && (n = null);
1030
- for (var o = 0, s = this.__entries__; o < s.length; o++) {
1031
- var a = s[o];
1030
+ for (var i = 0, s = this.__entries__; i < s.length; i++) {
1031
+ var a = s[i];
1032
1032
  r.call(n, a[1], a[0]);
1033
1033
  }
1034
1034
  }, t;
@@ -1044,7 +1044,7 @@ var Zt = function() {
1044
1044
  };
1045
1045
  }(), Qr = 2;
1046
1046
  function en(e, t) {
1047
- var r = !1, n = !1, o = 0;
1047
+ var r = !1, n = !1, i = 0;
1048
1048
  function s() {
1049
1049
  r && (r = !1, e()), n && l();
1050
1050
  }
@@ -1054,12 +1054,12 @@ function en(e, t) {
1054
1054
  function l() {
1055
1055
  var c = Date.now();
1056
1056
  if (r) {
1057
- if (c - o < Qr)
1057
+ if (c - i < Qr)
1058
1058
  return;
1059
1059
  n = !0;
1060
1060
  } else
1061
1061
  r = !0, n = !1, setTimeout(a, t);
1062
- o = c;
1062
+ i = c;
1063
1063
  }
1064
1064
  return l;
1065
1065
  }
@@ -1094,19 +1094,19 @@ var tn = 20, rn = ["top", "right", "bottom", "left", "width", "height", "size",
1094
1094
  }, e.prototype.disconnect_ = function() {
1095
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);
1096
1096
  }, e.prototype.onTransitionEnd_ = function(t) {
1097
- var r = t.propertyName, n = r === void 0 ? "" : r, o = rn.some(function(s) {
1097
+ var r = t.propertyName, n = r === void 0 ? "" : r, i = rn.some(function(s) {
1098
1098
  return !!~n.indexOf(s);
1099
1099
  });
1100
- o && this.refresh();
1100
+ i && this.refresh();
1101
1101
  }, e.getInstance = function() {
1102
1102
  return this.instance_ || (this.instance_ = new e()), this.instance_;
1103
1103
  }, e.instance_ = null, e;
1104
1104
  }()
1105
1105
  ), Qt = function(e, t) {
1106
1106
  for (var r = 0, n = Object.keys(t); r < n.length; r++) {
1107
- var o = n[r];
1108
- Object.defineProperty(e, o, {
1109
- value: t[o],
1107
+ var i = n[r];
1108
+ Object.defineProperty(e, i, {
1109
+ value: t[i],
1110
1110
  enumerable: !1,
1111
1111
  writable: !1,
1112
1112
  configurable: !0
@@ -1123,14 +1123,14 @@ function qe(e) {
1123
1123
  function Vt(e) {
1124
1124
  for (var t = [], r = 1; r < arguments.length; r++)
1125
1125
  t[r - 1] = arguments[r];
1126
- return t.reduce(function(n, o) {
1127
- var s = e["border-" + o + "-width"];
1126
+ return t.reduce(function(n, i) {
1127
+ var s = e["border-" + i + "-width"];
1128
1128
  return n + qe(s);
1129
1129
  }, 0);
1130
1130
  }
1131
1131
  function sn(e) {
1132
- for (var t = ["top", "right", "bottom", "left"], r = {}, n = 0, o = t; n < o.length; n++) {
1133
- var s = o[n], a = e["padding-" + s];
1132
+ for (var t = ["top", "right", "bottom", "left"], r = {}, n = 0, i = t; n < i.length; n++) {
1133
+ var s = i[n], a = e["padding-" + s];
1134
1134
  r[s] = qe(a);
1135
1135
  }
1136
1136
  return r;
@@ -1143,12 +1143,12 @@ function ln(e) {
1143
1143
  var t = e.clientWidth, r = e.clientHeight;
1144
1144
  if (!t && !r)
1145
1145
  return er;
1146
- var n = Fe(e).getComputedStyle(e), o = sn(n), s = o.left + o.right, a = o.top + o.bottom, l = qe(n.width), c = qe(n.height);
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
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
1148
  var f = Math.round(l + s) - t, h = Math.round(c + a) - r;
1149
1149
  Math.abs(f) !== 1 && (l -= f), Math.abs(h) !== 1 && (c -= h);
1150
1150
  }
1151
- return Qe(o.left, o.top, l, c);
1151
+ return Qe(i.left, i.top, l, c);
1152
1152
  }
1153
1153
  var cn = function() {
1154
1154
  return typeof SVGGraphicsElement < "u" ? function(e) {
@@ -1164,15 +1164,15 @@ function fn(e) {
1164
1164
  return gt ? cn(e) ? an(e) : ln(e) : er;
1165
1165
  }
1166
1166
  function dn(e) {
1167
- var t = e.x, r = e.y, n = e.width, o = e.height, s = typeof DOMRectReadOnly < "u" ? DOMRectReadOnly : Object, a = Object.create(s.prototype);
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
1168
  return Qt(a, {
1169
1169
  x: t,
1170
1170
  y: r,
1171
1171
  width: n,
1172
- height: o,
1172
+ height: i,
1173
1173
  top: r,
1174
1174
  right: t + n,
1175
- bottom: o + r,
1175
+ bottom: i + r,
1176
1176
  left: t
1177
1177
  }), a;
1178
1178
  }
@@ -1278,19 +1278,19 @@ var mn = function() {
1278
1278
  function nr(e) {
1279
1279
  e.forEach(function(t) {
1280
1280
  var r, n = t.target;
1281
- (r = Oe.get(n)) === null || r === void 0 || r.forEach(function(o) {
1282
- return o(n);
1281
+ (r = Oe.get(n)) === null || r === void 0 || r.forEach(function(i) {
1282
+ return i(n);
1283
1283
  });
1284
1284
  });
1285
1285
  }
1286
- var ir = new mn(nr);
1286
+ var or = new mn(nr);
1287
1287
  process.env.NODE_ENV;
1288
1288
  process.env.NODE_ENV;
1289
1289
  function gn(e, t) {
1290
- Oe.has(e) || (Oe.set(e, /* @__PURE__ */ new Set()), ir.observe(e)), Oe.get(e).add(t);
1290
+ Oe.has(e) || (Oe.set(e, /* @__PURE__ */ new Set()), or.observe(e)), Oe.get(e).add(t);
1291
1291
  }
1292
1292
  function yn(e, t) {
1293
- Oe.has(e) && (Oe.get(e).delete(t), Oe.get(e).size || (ir.unobserve(e), Oe.delete(e)));
1293
+ Oe.has(e) && (Oe.get(e).delete(t), Oe.get(e).size || (or.unobserve(e), Oe.delete(e)));
1294
1294
  }
1295
1295
  function bn(e, t) {
1296
1296
  if (!(e instanceof t))
@@ -1330,13 +1330,13 @@ function Je(e) {
1330
1330
  return t.__proto__ || Object.getPrototypeOf(t);
1331
1331
  }, Je(e);
1332
1332
  }
1333
- function or() {
1333
+ function ir() {
1334
1334
  try {
1335
1335
  var e = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
1336
1336
  }));
1337
1337
  } catch {
1338
1338
  }
1339
- return (or = function() {
1339
+ return (ir = function() {
1340
1340
  return !!e;
1341
1341
  })();
1342
1342
  }
@@ -1353,18 +1353,18 @@ function Rn(e, t) {
1353
1353
  return _n(e);
1354
1354
  }
1355
1355
  function Sn(e) {
1356
- var t = or();
1356
+ var t = ir();
1357
1357
  return function() {
1358
1358
  var r, n = Je(e);
1359
1359
  if (t) {
1360
- var o = Je(this).constructor;
1361
- r = Reflect.construct(n, arguments, o);
1360
+ var i = Je(this).constructor;
1361
+ r = Reflect.construct(n, arguments, i);
1362
1362
  } else
1363
1363
  r = n.apply(this, arguments);
1364
1364
  return Rn(this, r);
1365
1365
  };
1366
1366
  }
1367
- var Cn = /* @__PURE__ */ function(e) {
1367
+ var xn = /* @__PURE__ */ function(e) {
1368
1368
  wn(r, e);
1369
1369
  var t = Sn(r);
1370
1370
  function r() {
@@ -1377,63 +1377,63 @@ var Cn = /* @__PURE__ */ function(e) {
1377
1377
  }
1378
1378
  }]), r;
1379
1379
  }(re.Component);
1380
- function xn(e, t) {
1381
- var r = e.children, n = e.disabled, o = re.useRef(null), s = re.useRef(null), a = re.useContext(mt), l = typeof r == "function", c = l ? r(o) : r, f = re.useRef({
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({
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), b = h ? Jr(c) : null, p = Ur(b, o), j = function() {
1387
- var F;
1388
- return ot(o.current) || // Support `nativeElement` format
1389
- (o.current && Re(o.current) === "object" ? ot((F = o.current) === null || F === void 0 ? void 0 : F.nativeElement) : null) || ot(s.current);
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);
1390
1390
  };
1391
1391
  re.useImperativeHandle(t, function() {
1392
- return j();
1392
+ return A();
1393
1393
  });
1394
- var T = re.useRef(e);
1395
- T.current = e;
1396
- var w = re.useCallback(function(d) {
1397
- var F = T.current, k = F.onResize, J = F.data, A = d.getBoundingClientRect(), P = A.width, D = A.height, z = d.offsetWidth, I = d.offsetHeight, B = Math.floor(P), M = Math.floor(D);
1398
- if (f.current.width !== B || f.current.height !== M || f.current.offsetWidth !== z || f.current.offsetHeight !== I) {
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) {
1399
1399
  var W = {
1400
1400
  width: B,
1401
1401
  height: M,
1402
1402
  offsetWidth: z,
1403
- offsetHeight: I
1403
+ offsetHeight: p
1404
1404
  };
1405
1405
  f.current = W;
1406
- var Y = z === Math.round(P) ? P : z, q = I === Math.round(D) ? D : I, te = Dt(Dt({}, W), {}, {
1406
+ var Y = z === Math.round(F) ? F : z, q = p === Math.round(D) ? D : p, te = Dt(Dt({}, W), {}, {
1407
1407
  offsetWidth: Y,
1408
1408
  offsetHeight: q
1409
1409
  });
1410
- a == null || a(te, d, J), k && Promise.resolve().then(function() {
1411
- k(te, d);
1410
+ a == null || a(te, d, J), $ && Promise.resolve().then(function() {
1411
+ $(te, d);
1412
1412
  });
1413
1413
  }
1414
1414
  }, []);
1415
1415
  return re.useEffect(function() {
1416
- var d = j();
1417
- return d && !n && gn(d, w), function() {
1418
- return yn(d, w);
1416
+ var d = A();
1417
+ return d && !n && gn(d, _), function() {
1418
+ return yn(d, _);
1419
1419
  };
1420
- }, [o.current, n]), /* @__PURE__ */ re.createElement(Cn, {
1420
+ }, [i.current, n]), /* @__PURE__ */ re.createElement(xn, {
1421
1421
  ref: s
1422
1422
  }, h ? /* @__PURE__ */ re.cloneElement(c, {
1423
- ref: p
1423
+ ref: v
1424
1424
  }) : c);
1425
1425
  }
1426
- var sr = /* @__PURE__ */ re.forwardRef(xn);
1426
+ var sr = /* @__PURE__ */ re.forwardRef(Cn);
1427
1427
  process.env.NODE_ENV !== "production" && (sr.displayName = "SingleObserver");
1428
1428
  var On = "rc-observer-key";
1429
1429
  function Tn(e, t) {
1430
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(o, s) {
1432
- var a = (o == null ? void 0 : o.key) || "".concat(On, "-").concat(s);
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
1433
  return /* @__PURE__ */ re.createElement(sr, ht({}, e, {
1434
1434
  key: a,
1435
1435
  ref: s === 0 ? t : void 0
1436
- }), o);
1436
+ }), i);
1437
1437
  });
1438
1438
  }
1439
1439
  var wt = /* @__PURE__ */ re.forwardRef(Tn);
@@ -1451,7 +1451,7 @@ var ar = { exports: {} };
1451
1451
  function r() {
1452
1452
  for (var s = "", a = 0; a < arguments.length; a++) {
1453
1453
  var l = arguments[a];
1454
- l && (s = o(s, n(l)));
1454
+ l && (s = i(s, n(l)));
1455
1455
  }
1456
1456
  return s;
1457
1457
  }
@@ -1466,10 +1466,10 @@ var ar = { exports: {} };
1466
1466
  return s.toString();
1467
1467
  var a = "";
1468
1468
  for (var l in s)
1469
- t.call(s, l) && s[l] && (a = o(a, l));
1469
+ t.call(s, l) && s[l] && (a = i(a, l));
1470
1470
  return a;
1471
1471
  }
1472
- function o(s, a) {
1472
+ function i(s, a) {
1473
1473
  return a ? s ? s + " " + a : s + a : s;
1474
1474
  }
1475
1475
  e.exports ? (r.default = r, e.exports = r) : window.classNames = r;
@@ -1477,46 +1477,46 @@ var ar = { exports: {} };
1477
1477
  })(ar);
1478
1478
  var Pn = ar.exports;
1479
1479
  const _t = /* @__PURE__ */ Mr(Pn);
1480
- const jn = jr(({ columns: e, width: t, onScroll: r, meta: n }, o) => {
1481
- const s = we(() => {
1480
+ const jn = jr(({ columns: e, width: t, onScroll: r, meta: n }, i) => {
1481
+ const s = ye(() => {
1482
1482
  const a = [], l = (h) => {
1483
- let b = 0;
1484
- return h.forEach((p) => {
1485
- if (p.children && p.children.length > 0) {
1486
- const j = l(p.children);
1487
- j > b && (b = j);
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);
1488
1488
  }
1489
- }), b + 1;
1490
- }, c = l(e), f = (h, b) => {
1491
- a[b] || (a[b] = []), h.forEach((p) => {
1492
- var d, F;
1493
- let j = "left";
1494
- (d = p.style) != null && d.textAlign && (j = p.style.textAlign);
1495
- let T = n == null ? void 0 : n.find((k) => k.field === p.field);
1496
- if (!T) {
1497
- const k = p.field.split("||");
1498
- if (k.length > 1) {
1499
- const J = k[k.length - 1];
1500
- T = n == null ? void 0 : n.find((A) => A.field === J);
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);
1501
1501
  } else
1502
- p.field.includes("__") && (T = n == null ? void 0 : n.find((J) => p.field.startsWith(`${J.field}_`)));
1502
+ v.field.includes("__") && (P = n == null ? void 0 : n.find((J) => v.field.startsWith(`${J.field}_`)));
1503
1503
  }
1504
- (F = T == null ? void 0 : T.style) != null && F.textAlign && (j = T.style.textAlign);
1505
- const w = {
1506
- key: p.field || p.dataIndex || p.title || String(Math.random()),
1507
- title: p.title,
1508
- width: p.width,
1509
- align: j,
1510
- className: p.field,
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,
1511
1511
  // col.className not in type, ignore
1512
1512
  colSpan: 1,
1513
1513
  rowSpan: 1
1514
1514
  };
1515
- if (p.children && p.children.length > 0) {
1516
- const k = (J) => J.children && J.children.length > 0 ? J.children.reduce((A, P) => A + k(P), 0) : 1;
1517
- w.colSpan = k(p), a[b].push(w), f(p.children, b + 1);
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);
1518
1518
  } else
1519
- w.rowSpan = c - b, a[b].push(w);
1519
+ _.rowSpan = c - E, a[E].push(_);
1520
1520
  });
1521
1521
  };
1522
1522
  return f(e, 0), a;
@@ -1524,7 +1524,7 @@ const jn = jr(({ columns: e, width: t, onScroll: r, meta: n }, o) => {
1524
1524
  return /* @__PURE__ */ Z.jsx(
1525
1525
  "div",
1526
1526
  {
1527
- ref: o,
1527
+ ref: i,
1528
1528
  className: "virtual-table-header hide-scrollbar",
1529
1529
  style: { overflow: "auto", width: t },
1530
1530
  onScroll: r,
@@ -1559,7 +1559,7 @@ const jn = jr(({ columns: e, width: t, onScroll: r, meta: n }, o) => {
1559
1559
  for (const r in e)
1560
1560
  Object.prototype.hasOwnProperty.call(e, r) && (t[r] = bt(e[r]));
1561
1561
  return t;
1562
- }, lr = 43, An = 100, xe = "-", Bt = "合计";
1562
+ }, lr = 43, An = 100, Ce = "-", Bt = "合计";
1563
1563
  function Mn(e) {
1564
1564
  let t = e;
1565
1565
  for (; t; ) {
@@ -1593,11 +1593,11 @@ function In({
1593
1593
  defaultHeight: t,
1594
1594
  defaultWidth: r,
1595
1595
  disabled: n,
1596
- element: o,
1596
+ element: i,
1597
1597
  mode: s,
1598
1598
  style: a
1599
1599
  }) {
1600
- const { styleHeight: l, styleWidth: c } = we(
1600
+ const { styleHeight: l, styleWidth: c } = ye(
1601
1601
  () => ({
1602
1602
  styleHeight: Yt(a == null ? void 0 : a.height),
1603
1603
  styleWidth: Yt(a == null ? void 0 : a.width)
@@ -1606,23 +1606,23 @@ function In({
1606
1606
  ), [f, h] = Ie({
1607
1607
  height: t,
1608
1608
  width: r
1609
- }), b = n || s === "only-height" && l !== void 0 || s === "only-width" && c !== void 0 || l !== void 0 && c !== void 0;
1609
+ }), E = n || s === "only-height" && l !== void 0 || s === "only-width" && c !== void 0 || l !== void 0 && c !== void 0;
1610
1610
  return Xe(() => {
1611
- if (o === null || b)
1611
+ if (i === null || E)
1612
1612
  return;
1613
- const p = new ResizeObserver((j) => {
1614
- for (const T of j) {
1615
- const { contentRect: w, target: d } = T;
1616
- o === d && h((F) => F.height === w.height && F.width === w.width ? F : {
1617
- height: w.height,
1618
- width: w.width
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
1619
1619
  });
1620
1620
  }
1621
1621
  });
1622
- return p.observe(o, { box: e }), () => {
1623
- p == null || p.unobserve(o);
1622
+ return v.observe(i, { box: e }), () => {
1623
+ v == null || v.unobserve(i);
1624
1624
  };
1625
- }, [e, b, o, l, c]), we(
1625
+ }, [e, E, i, l, c]), ye(
1626
1626
  () => ({
1627
1627
  height: l ?? f.height,
1628
1628
  width: c ?? f.width
@@ -1646,8 +1646,8 @@ function $n(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";
1649
- const n = document.createElement("div"), o = n.style;
1650
- return o.width = "100px", o.height = "100px", t.appendChild(n), document.body.appendChild(t), t.scrollLeft > 0 ? De = "positive-descending" : (t.scrollLeft = 1, t.scrollLeft === 0 ? De = "negative" : De = "positive-ascending"), document.body.removeChild(t), De;
1649
+ const n = document.createElement("div"), i = n.style;
1650
+ return i.width = "100px", i.height = "100px", t.appendChild(n), document.body.appendChild(t), t.scrollLeft > 0 ? De = "positive-descending" : (t.scrollLeft = 1, t.scrollLeft === 0 ? De = "negative" : De = "positive-ascending"), document.body.removeChild(t), De;
1651
1651
  }
1652
1652
  return De;
1653
1653
  }
@@ -1663,8 +1663,8 @@ function at({
1663
1663
  return -n;
1664
1664
  case "positive-descending": {
1665
1665
  if (e) {
1666
- const { clientWidth: o, scrollLeft: s, scrollWidth: a } = e;
1667
- return a - o - s;
1666
+ const { clientWidth: i, scrollLeft: s, scrollWidth: a } = e;
1667
+ return a - i - s;
1668
1668
  }
1669
1669
  break;
1670
1670
  }
@@ -1699,8 +1699,8 @@ function cr({
1699
1699
  e.size === 0 ? 0 : e.size - 1
1700
1700
  );
1701
1701
  Pe(n !== void 0, "Unexpected bounds cache miss");
1702
- const o = (n.scrollOffset + n.size) / e.size;
1703
- return t * o;
1702
+ const i = (n.scrollOffset + n.size) / e.size;
1703
+ return t * i;
1704
1704
  }
1705
1705
  }
1706
1706
  function kn({
@@ -1708,7 +1708,7 @@ function kn({
1708
1708
  cachedBounds: t,
1709
1709
  index: r,
1710
1710
  itemCount: n,
1711
- itemSize: o,
1711
+ itemSize: i,
1712
1712
  containerScrollOffset: s,
1713
1713
  containerSize: a
1714
1714
  }) {
@@ -1719,7 +1719,7 @@ function kn({
1719
1719
  const l = cr({
1720
1720
  cachedBounds: t,
1721
1721
  itemCount: n,
1722
- itemSize: o
1722
+ itemSize: i
1723
1723
  }), c = t.get(r), f = Math.max(
1724
1724
  0,
1725
1725
  Math.min(l - a, c.scrollOffset)
@@ -1744,23 +1744,23 @@ function lt({
1744
1744
  containerScrollOffset: t,
1745
1745
  containerSize: r,
1746
1746
  itemCount: n,
1747
- overscanCount: o
1747
+ overscanCount: i
1748
1748
  }) {
1749
1749
  const s = n - 1;
1750
1750
  let a = 0, l = -1, c = 0, f = -1, h = 0;
1751
1751
  for (; h < s; ) {
1752
- const b = e.get(h);
1753
- if (b.scrollOffset + b.size > t)
1752
+ const E = e.get(h);
1753
+ if (E.scrollOffset + E.size > t)
1754
1754
  break;
1755
1755
  h++;
1756
1756
  }
1757
- for (a = h, c = Math.max(0, a - o); h < s; ) {
1758
- const b = e.get(h);
1759
- if (b.scrollOffset + b.size >= t + r)
1757
+ for (a = h, c = Math.max(0, a - i); h < s; ) {
1758
+ const E = e.get(h);
1759
+ if (E.scrollOffset + E.size >= t + r)
1760
1760
  break;
1761
1761
  h++;
1762
1762
  }
1763
- return l = Math.min(s, h), f = Math.min(n - 1, l + o), a < 0 && (a = 0, l = -1, c = 0, f = -1), {
1763
+ return l = Math.min(s, h), f = Math.min(n - 1, l + i), a < 0 && (a = 0, l = -1, c = 0, f = -1), {
1764
1764
  startIndexVisible: a,
1765
1765
  stopIndexVisible: l,
1766
1766
  startIndexOverscan: c,
@@ -1774,8 +1774,8 @@ function Dn({
1774
1774
  }) {
1775
1775
  const n = /* @__PURE__ */ new Map();
1776
1776
  return {
1777
- get(o) {
1778
- for (Pe(o < e, `Invalid index ${o}`); n.size - 1 < o; ) {
1777
+ get(i) {
1778
+ for (Pe(i < e, `Invalid index ${i}`); n.size - 1 < i; ) {
1779
1779
  const a = n.size;
1780
1780
  let l;
1781
1781
  switch (typeof r) {
@@ -1797,21 +1797,21 @@ function Dn({
1797
1797
  const c = n.get(a - 1);
1798
1798
  Pe(
1799
1799
  c !== void 0,
1800
- `Unexpected bounds cache miss for index ${o}`
1800
+ `Unexpected bounds cache miss for index ${i}`
1801
1801
  ), n.set(a, {
1802
1802
  scrollOffset: c.scrollOffset + c.size,
1803
1803
  size: l
1804
1804
  });
1805
1805
  }
1806
1806
  }
1807
- const s = n.get(o);
1807
+ const s = n.get(i);
1808
1808
  return Pe(
1809
1809
  s !== void 0,
1810
- `Unexpected bounds cache miss for index ${o}`
1810
+ `Unexpected bounds cache miss for index ${i}`
1811
1811
  ), s;
1812
1812
  },
1813
- set(o, s) {
1814
- n.set(o, s);
1813
+ set(i, s) {
1814
+ n.set(i, s);
1815
1815
  },
1816
1816
  get size() {
1817
1817
  return n.size;
@@ -1823,7 +1823,7 @@ function Fn({
1823
1823
  itemProps: t,
1824
1824
  itemSize: r
1825
1825
  }) {
1826
- return we(
1826
+ return ye(
1827
1827
  () => Dn({
1828
1828
  itemCount: e,
1829
1829
  itemProps: t,
@@ -1860,105 +1860,105 @@ function Kt({
1860
1860
  containerStyle: t,
1861
1861
  defaultContainerSize: r = 0,
1862
1862
  direction: n,
1863
- isRtl: o = !1,
1863
+ isRtl: i = !1,
1864
1864
  itemCount: s,
1865
1865
  itemProps: a,
1866
1866
  itemSize: l,
1867
1867
  onResize: c,
1868
1868
  overscanCount: f
1869
1869
  }) {
1870
- const { height: h = r, width: b = r } = In({
1870
+ const { height: h = r, width: E = r } = In({
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
- }), p = ze({
1876
+ }), v = ze({
1877
1877
  height: 0,
1878
1878
  width: 0
1879
- }), j = n === "vertical" ? h : b, T = Nn({ containerSize: j, itemSize: l });
1879
+ }), A = n === "vertical" ? h : E, P = Nn({ containerSize: A, itemSize: l });
1880
1880
  Et(() => {
1881
1881
  if (typeof c == "function") {
1882
- const M = p.current;
1883
- (M.height !== h || M.width !== b) && (c({ height: h, width: b }, { ...M }), M.height = h, M.width = b);
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
1884
  }
1885
- }, [h, c, b]);
1886
- const w = Fn({
1885
+ }, [h, c, E]);
1886
+ const _ = Fn({
1887
1887
  itemCount: s,
1888
1888
  itemProps: a,
1889
- itemSize: T
1889
+ itemSize: P
1890
1890
  }), d = ge(
1891
- (M) => w.get(M),
1892
- [w]
1893
- ), [F, k] = Ie(
1891
+ (M) => _.get(M),
1892
+ [_]
1893
+ ), [k, $] = Ie(
1894
1894
  () => lt({
1895
- cachedBounds: w,
1895
+ cachedBounds: _,
1896
1896
  // TODO Potentially support a defaultScrollOffset prop?
1897
1897
  containerScrollOffset: 0,
1898
- containerSize: j,
1898
+ containerSize: A,
1899
1899
  itemCount: s,
1900
1900
  overscanCount: f
1901
1901
  })
1902
1902
  ), {
1903
1903
  startIndexVisible: J,
1904
- startIndexOverscan: A,
1905
- stopIndexVisible: P,
1904
+ startIndexOverscan: j,
1905
+ stopIndexVisible: F,
1906
1906
  stopIndexOverscan: D
1907
1907
  } = {
1908
- startIndexVisible: Math.min(s - 1, F.startIndexVisible),
1909
- startIndexOverscan: Math.min(s - 1, F.startIndexOverscan),
1910
- stopIndexVisible: Math.min(s - 1, F.stopIndexVisible),
1911
- stopIndexOverscan: Math.min(s - 1, F.stopIndexOverscan)
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
1912
  }, z = ge(
1913
1913
  () => cr({
1914
- cachedBounds: w,
1914
+ cachedBounds: _,
1915
1915
  itemCount: s,
1916
- itemSize: T
1916
+ itemSize: P
1917
1917
  }),
1918
- [w, s, T]
1919
- ), I = ge(
1918
+ [_, s, P]
1919
+ ), p = ge(
1920
1920
  (M) => {
1921
1921
  const W = at({
1922
1922
  containerElement: e,
1923
1923
  direction: n,
1924
- isRtl: o,
1924
+ isRtl: i,
1925
1925
  scrollOffset: M
1926
1926
  });
1927
1927
  return lt({
1928
- cachedBounds: w,
1928
+ cachedBounds: _,
1929
1929
  containerScrollOffset: W,
1930
- containerSize: j,
1930
+ containerSize: A,
1931
1931
  itemCount: s,
1932
1932
  overscanCount: f
1933
1933
  });
1934
1934
  },
1935
1935
  [
1936
- w,
1936
+ _,
1937
1937
  e,
1938
- j,
1938
+ A,
1939
1939
  n,
1940
- o,
1940
+ i,
1941
1941
  s,
1942
1942
  f
1943
1943
  ]
1944
1944
  );
1945
1945
  Xe(() => {
1946
1946
  const M = (n === "vertical" ? e == null ? void 0 : e.scrollTop : e == null ? void 0 : e.scrollLeft) ?? 0;
1947
- k(I(M));
1948
- }, [e, n, I]), Xe(() => {
1947
+ $(p(M));
1948
+ }, [e, n, p]), Xe(() => {
1949
1949
  if (!e)
1950
1950
  return;
1951
1951
  const M = () => {
1952
- k((W) => {
1952
+ $((W) => {
1953
1953
  const { scrollLeft: Y, scrollTop: q } = e, te = at({
1954
1954
  containerElement: e,
1955
1955
  direction: n,
1956
- isRtl: o,
1956
+ isRtl: i,
1957
1957
  scrollOffset: n === "vertical" ? q : Y
1958
1958
  }), he = lt({
1959
- cachedBounds: w,
1959
+ cachedBounds: _,
1960
1960
  containerScrollOffset: te,
1961
- containerSize: j,
1961
+ containerSize: A,
1962
1962
  itemCount: s,
1963
1963
  overscanCount: f
1964
1964
  });
@@ -1969,9 +1969,9 @@ function Kt({
1969
1969
  e.removeEventListener("scroll", M);
1970
1970
  };
1971
1971
  }, [
1972
- w,
1972
+ _,
1973
1973
  e,
1974
- j,
1974
+ A,
1975
1975
  n,
1976
1976
  s,
1977
1977
  f
@@ -1984,22 +1984,22 @@ function Kt({
1984
1984
  }) => {
1985
1985
  let q = kn({
1986
1986
  align: M,
1987
- cachedBounds: w,
1987
+ cachedBounds: _,
1988
1988
  containerScrollOffset: W,
1989
- containerSize: j,
1989
+ containerSize: A,
1990
1990
  index: Y,
1991
1991
  itemCount: s,
1992
- itemSize: T
1992
+ itemSize: P
1993
1993
  });
1994
1994
  if (e) {
1995
1995
  if (q = at({
1996
1996
  containerElement: e,
1997
1997
  direction: n,
1998
- isRtl: o,
1998
+ isRtl: i,
1999
1999
  scrollOffset: q
2000
2000
  }), typeof e.scrollTo != "function") {
2001
- const te = I(q);
2002
- Be(F, te) || k(te);
2001
+ const te = p(q);
2002
+ Be(k, te) || $(te);
2003
2003
  }
2004
2004
  return q;
2005
2005
  }
@@ -2009,150 +2009,150 @@ function Kt({
2009
2009
  getCellBounds: d,
2010
2010
  getEstimatedSize: z,
2011
2011
  scrollToIndex: B,
2012
- startIndexOverscan: A,
2012
+ startIndexOverscan: j,
2013
2013
  startIndexVisible: J,
2014
2014
  stopIndexOverscan: D,
2015
- stopIndexVisible: P
2015
+ stopIndexVisible: F
2016
2016
  };
2017
2017
  }
2018
2018
  function Wn(e) {
2019
- return we(() => e, Object.values(e));
2019
+ return ye(() => e, Object.values(e));
2020
2020
  }
2021
2021
  function Vn(e, t) {
2022
2022
  const {
2023
2023
  ariaAttributes: r,
2024
2024
  style: n,
2025
- ...o
2025
+ ...i
2026
2026
  } = e, {
2027
2027
  ariaAttributes: s,
2028
2028
  style: a,
2029
2029
  ...l
2030
2030
  } = t;
2031
- return Be(r, s) && Be(n, a) && Be(o, l);
2031
+ return Be(r, s) && Be(n, a) && Be(i, l);
2032
2032
  }
2033
2033
  function Hn({
2034
2034
  cellComponent: e,
2035
2035
  cellProps: t,
2036
2036
  children: r,
2037
2037
  className: n,
2038
- columnCount: o,
2038
+ columnCount: i,
2039
2039
  columnWidth: s,
2040
2040
  defaultHeight: a = 0,
2041
2041
  defaultWidth: l = 0,
2042
2042
  dir: c,
2043
2043
  gridRef: f,
2044
2044
  onCellsRendered: h,
2045
- onResize: b,
2046
- overscanCount: p = 3,
2047
- rowCount: j,
2048
- rowHeight: T,
2049
- style: w,
2045
+ onResize: E,
2046
+ overscanCount: v = 3,
2047
+ rowCount: A,
2048
+ rowHeight: P,
2049
+ style: _,
2050
2050
  tagName: d = "div",
2051
- ...F
2051
+ ...k
2052
2052
  }) {
2053
- const k = Wn(t), J = we(
2053
+ const $ = Wn(t), J = ye(
2054
2054
  () => Ut(e, Vn),
2055
2055
  [e]
2056
- ), [A, P] = Ie(null), D = zn(A, c), {
2056
+ ), [j, F] = Ie(null), D = zn(j, c), {
2057
2057
  getCellBounds: z,
2058
- getEstimatedSize: I,
2058
+ getEstimatedSize: p,
2059
2059
  startIndexOverscan: B,
2060
2060
  startIndexVisible: M,
2061
2061
  scrollToIndex: W,
2062
2062
  stopIndexOverscan: Y,
2063
2063
  stopIndexVisible: q
2064
2064
  } = Kt({
2065
- containerElement: A,
2066
- containerStyle: w,
2065
+ containerElement: j,
2066
+ containerStyle: _,
2067
2067
  defaultContainerSize: l,
2068
2068
  direction: "horizontal",
2069
2069
  isRtl: D,
2070
- itemCount: o,
2071
- itemProps: k,
2070
+ itemCount: i,
2071
+ itemProps: $,
2072
2072
  itemSize: s,
2073
- onResize: b,
2074
- overscanCount: p
2073
+ onResize: E,
2074
+ overscanCount: v
2075
2075
  }), {
2076
2076
  getCellBounds: te,
2077
2077
  getEstimatedSize: he,
2078
- startIndexOverscan: ye,
2078
+ startIndexOverscan: be,
2079
2079
  startIndexVisible: Te,
2080
2080
  scrollToIndex: _e,
2081
- stopIndexOverscan: be,
2081
+ stopIndexOverscan: Ee,
2082
2082
  stopIndexVisible: Se
2083
2083
  } = Kt({
2084
- containerElement: A,
2085
- containerStyle: w,
2084
+ containerElement: j,
2085
+ containerStyle: _,
2086
2086
  defaultContainerSize: a,
2087
2087
  direction: "vertical",
2088
- itemCount: j,
2089
- itemProps: k,
2090
- itemSize: T,
2091
- onResize: b,
2092
- overscanCount: p
2088
+ itemCount: A,
2089
+ itemProps: $,
2090
+ itemSize: P,
2091
+ onResize: E,
2092
+ overscanCount: v
2093
2093
  });
2094
2094
  Ar(
2095
2095
  f,
2096
2096
  () => ({
2097
2097
  get element() {
2098
- return A;
2098
+ return j;
2099
2099
  },
2100
2100
  scrollToCell({
2101
- behavior: E = "auto",
2102
- columnAlign: y = "auto",
2103
- columnIndex: v,
2104
- rowAlign: x = "auto",
2105
- rowIndex: _
2101
+ behavior: w = "auto",
2102
+ columnAlign: b = "auto",
2103
+ columnIndex: m,
2104
+ rowAlign: O = "auto",
2105
+ rowIndex: R
2106
2106
  }) {
2107
- const R = W({
2108
- align: y,
2109
- containerScrollOffset: (A == null ? void 0 : A.scrollLeft) ?? 0,
2110
- index: v
2111
- }), S = _e({
2112
- align: x,
2113
- containerScrollOffset: (A == null ? void 0 : A.scrollTop) ?? 0,
2114
- index: _
2107
+ const S = W({
2108
+ align: b,
2109
+ containerScrollOffset: (j == null ? void 0 : j.scrollLeft) ?? 0,
2110
+ index: m
2111
+ }), x = _e({
2112
+ align: O,
2113
+ containerScrollOffset: (j == null ? void 0 : j.scrollTop) ?? 0,
2114
+ index: R
2115
2115
  });
2116
- typeof (A == null ? void 0 : A.scrollTo) == "function" && A.scrollTo({
2117
- behavior: E,
2118
- left: R,
2119
- top: S
2116
+ typeof (j == null ? void 0 : j.scrollTo) == "function" && j.scrollTo({
2117
+ behavior: w,
2118
+ left: S,
2119
+ top: x
2120
2120
  });
2121
2121
  },
2122
2122
  scrollToColumn({
2123
- align: E = "auto",
2124
- behavior: y = "auto",
2125
- index: v
2123
+ align: w = "auto",
2124
+ behavior: b = "auto",
2125
+ index: m
2126
2126
  }) {
2127
- const x = W({
2128
- align: E,
2129
- containerScrollOffset: (A == null ? void 0 : A.scrollLeft) ?? 0,
2130
- index: v
2127
+ const O = W({
2128
+ align: w,
2129
+ containerScrollOffset: (j == null ? void 0 : j.scrollLeft) ?? 0,
2130
+ index: m
2131
2131
  });
2132
- typeof (A == null ? void 0 : A.scrollTo) == "function" && A.scrollTo({
2133
- behavior: y,
2134
- left: x
2132
+ typeof (j == null ? void 0 : j.scrollTo) == "function" && j.scrollTo({
2133
+ behavior: b,
2134
+ left: O
2135
2135
  });
2136
2136
  },
2137
2137
  scrollToRow({
2138
- align: E = "auto",
2139
- behavior: y = "auto",
2140
- index: v
2138
+ align: w = "auto",
2139
+ behavior: b = "auto",
2140
+ index: m
2141
2141
  }) {
2142
- const x = _e({
2143
- align: E,
2144
- containerScrollOffset: (A == null ? void 0 : A.scrollTop) ?? 0,
2145
- index: v
2142
+ const O = _e({
2143
+ align: w,
2144
+ containerScrollOffset: (j == null ? void 0 : j.scrollTop) ?? 0,
2145
+ index: m
2146
2146
  });
2147
- typeof (A == null ? void 0 : A.scrollTo) == "function" && A.scrollTo({
2148
- behavior: y,
2149
- top: x
2147
+ typeof (j == null ? void 0 : j.scrollTo) == "function" && j.scrollTo({
2148
+ behavior: b,
2149
+ top: O
2150
2150
  });
2151
2151
  }
2152
2152
  }),
2153
- [A, W, _e]
2153
+ [j, W, _e]
2154
2154
  ), Ze(() => {
2155
- B >= 0 && Y >= 0 && ye >= 0 && be >= 0 && h && h(
2155
+ B >= 0 && Y >= 0 && be >= 0 && Ee >= 0 && h && h(
2156
2156
  {
2157
2157
  columnStartIndex: M,
2158
2158
  columnStopIndex: q,
@@ -2162,8 +2162,8 @@ function Hn({
2162
2162
  {
2163
2163
  columnStartIndex: B,
2164
2164
  columnStopIndex: Y,
2165
- rowStartIndex: ye,
2166
- rowStopIndex: be
2165
+ rowStartIndex: be,
2166
+ rowStopIndex: Ee
2167
2167
  }
2168
2168
  );
2169
2169
  }, [
@@ -2172,66 +2172,66 @@ function Hn({
2172
2172
  M,
2173
2173
  Y,
2174
2174
  q,
2175
- ye,
2176
- Te,
2177
2175
  be,
2176
+ Te,
2177
+ Ee,
2178
2178
  Se
2179
2179
  ]);
2180
- const g = we(() => {
2181
- const E = [];
2182
- if (o > 0 && j > 0)
2183
- for (let y = ye; y <= be; y++) {
2184
- const v = te(y), x = [];
2185
- for (let _ = B; _ <= Y; _++) {
2186
- const R = z(_);
2187
- x.push(
2180
+ const y = ye(() => {
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);
2187
+ O.push(
2188
2188
  /* @__PURE__ */ Mt(
2189
2189
  J,
2190
2190
  {
2191
- ...k,
2191
+ ...$,
2192
2192
  ariaAttributes: {
2193
- "aria-colindex": _ + 1,
2193
+ "aria-colindex": R + 1,
2194
2194
  role: "gridcell"
2195
2195
  },
2196
- columnIndex: _,
2197
- key: _,
2198
- rowIndex: y,
2196
+ columnIndex: R,
2197
+ key: R,
2198
+ rowIndex: b,
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 ? -R.scrollOffset : R.scrollOffset}px, ${v.scrollOffset}px)`,
2204
- height: v.size,
2205
- width: R.size
2203
+ transform: `translate(${D ? -S.scrollOffset : S.scrollOffset}px, ${m.scrollOffset}px)`,
2204
+ height: m.size,
2205
+ width: S.size
2206
2206
  }
2207
2207
  }
2208
2208
  )
2209
2209
  );
2210
2210
  }
2211
- E.push(
2212
- /* @__PURE__ */ Z.jsx("div", { role: "row", "aria-rowindex": y + 1, children: x }, y)
2211
+ w.push(
2212
+ /* @__PURE__ */ Z.jsx("div", { role: "row", "aria-rowindex": b + 1, children: O }, b)
2213
2213
  );
2214
2214
  }
2215
- return E;
2215
+ return w;
2216
2216
  }, [
2217
2217
  J,
2218
- k,
2219
- o,
2218
+ $,
2219
+ i,
2220
2220
  B,
2221
2221
  Y,
2222
2222
  z,
2223
2223
  te,
2224
2224
  D,
2225
- j,
2226
- ye,
2227
- be
2225
+ A,
2226
+ be,
2227
+ Ee
2228
2228
  ]), C = /* @__PURE__ */ Z.jsx(
2229
2229
  "div",
2230
2230
  {
2231
2231
  "aria-hidden": !0,
2232
2232
  style: {
2233
2233
  height: he(),
2234
- width: I(),
2234
+ width: p(),
2235
2235
  zIndex: -1
2236
2236
  }
2237
2237
  }
@@ -2239,23 +2239,23 @@ function Hn({
2239
2239
  return Mt(
2240
2240
  d,
2241
2241
  {
2242
- "aria-colcount": o,
2243
- "aria-rowcount": j,
2242
+ "aria-colcount": i,
2243
+ "aria-rowcount": A,
2244
2244
  role: "grid",
2245
- ...F,
2245
+ ...k,
2246
2246
  className: n,
2247
2247
  dir: c,
2248
- ref: P,
2248
+ ref: F,
2249
2249
  style: {
2250
2250
  position: "relative",
2251
2251
  maxHeight: "100%",
2252
2252
  maxWidth: "100%",
2253
2253
  flexGrow: 1,
2254
2254
  overflow: "auto",
2255
- ...w
2255
+ ..._
2256
2256
  }
2257
2257
  },
2258
- g,
2258
+ y,
2259
2259
  r,
2260
2260
  C
2261
2261
  );
@@ -2267,42 +2267,42 @@ const Bn = (e) => /* @__PURE__ */ Z.jsxs("svg", { viewBox: "64 64 896 896", focu
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
2269
  ] }), Kn = (e, t, r) => {
2270
- var o;
2271
- const n = (o = r[e]) == null ? void 0 : o[t];
2270
+ var i;
2271
+ const n = (i = r[e]) == null ? void 0 : i[t];
2272
2272
  return !n || n.rowspan === 0 || n.colspan === 0;
2273
- }, Gn = (e, t, r, n, o, s) => {
2274
- var j, T;
2275
- const a = (j = n[e]) == null ? void 0 : j[t];
2273
+ }, Gn = (e, t, r, n, i, s) => {
2274
+ var A, P;
2275
+ const a = (A = n[e]) == null ? void 0 : A[t];
2276
2276
  if (!a || a.rowspan === 0 || a.colspan === 0)
2277
2277
  return;
2278
2278
  const l = { ...r };
2279
- let c = o[t];
2280
- const f = c.field.split("||"), h = f[f.length - 1], b = s == null ? void 0 : s.find((w) => w.field === h || w.field === c.field);
2281
- b && b.style;
2282
- const p = (b == null ? void 0 : b.style) || (c == null ? void 0 : c.style);
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
2283
  if (a.colspan > 1) {
2284
- let w = 0;
2284
+ let _ = 0;
2285
2285
  for (let d = t; d < t + a.colspan; d++)
2286
- w += Number((T = o[d]) == null ? void 0 : T.width) || 100;
2287
- l.width = w;
2286
+ _ += Number((P = i[d]) == null ? void 0 : P.width) || 100;
2287
+ l.width = _;
2288
2288
  }
2289
- return a.rowspan > 1 && (l.height = a.rowspan * lr), p != null && p.textAlign && (l.textAlign = p.textAlign, p.textAlign === "right" && (l.justifyContent = "flex-end"), p.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: o, handleExpand: s, meta: a }) => {
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
2291
  if (Kn(t, e, n))
2292
2292
  return null;
2293
- const l = n[t][e], c = Gn(t, e, r, n, o, a), f = o[e], h = f.field.split("||"), b = h[h.length - 1], p = a == null ? void 0 : a.find((w) => w.field === b || w.field === f.field), j = Ye.isValidElement(l.content);
2294
- let T;
2295
- if (T = l.content, "formatter" in f && f.formatter && !j && (T = f.formatter(T, l.data)), p != null && p.clickHandler && !j && T !== null && T !== void 0) {
2296
- const w = l.data;
2297
- T = /* @__PURE__ */ Z.jsx(
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(
2298
2298
  "a",
2299
2299
  {
2300
2300
  href: "javascript:void(0)",
2301
2301
  onClick: (d) => {
2302
- d.preventDefault(), d.stopPropagation(), p.clickHandler(w);
2302
+ d.preventDefault(), d.stopPropagation(), v.clickHandler(_);
2303
2303
  },
2304
2304
  className: "virtual-table-cell-link",
2305
- children: T
2305
+ children: P
2306
2306
  }
2307
2307
  );
2308
2308
  }
@@ -2311,85 +2311,92 @@ const Bn = (e) => /* @__PURE__ */ Z.jsxs("svg", { viewBox: "64 64 896 896", focu
2311
2311
  {
2312
2312
  style: c,
2313
2313
  className: _t("table-cell", "virtual-table-cell", {
2314
- "virtual-table-cell-last": e === o.length - 1
2314
+ "virtual-table-cell-last": e === i.length - 1
2315
2315
  }),
2316
- title: typeof T == "string" ? T : void 0,
2316
+ title: typeof P == "string" ? P : void 0,
2317
2317
  children: [
2318
2318
  /* @__PURE__ */ Z.jsx("span", { className: "expand-icon", children: l.expandable ? l.expanded ? /* @__PURE__ */ Z.jsx(Bn, { onClick: () => {
2319
2319
  l.onClick && l.onClick(l), s(l);
2320
2320
  } }) : /* @__PURE__ */ Z.jsx(Yn, { onClick: () => {
2321
2321
  l.onClick && l.onClick(l), s(l);
2322
2322
  } }) : null }),
2323
- T
2323
+ P
2324
2324
  ]
2325
2325
  }
2326
2326
  );
2327
2327
  }, qn = (e) => {
2328
- const { data: t, info: r, scroll: n, columns: o, tableWidth: s } = e, { ref: a, onScroll: l } = r, c = ze(), f = we(() => {
2329
- const P = {};
2330
- return Object.defineProperty(P, "scrollLeft", {
2328
+ const { data: t, info: r, scroll: n, columns: i, tableWidth: s } = e, { ref: a, onScroll: l } = r, c = ze(), f = ye(() => {
2329
+ const D = {};
2330
+ return Object.defineProperty(D, "scrollLeft", {
2331
2331
  get: () => {
2332
- var D, z;
2333
- return ((z = (D = c.current) == null ? void 0 : D.element) == null ? void 0 : z.scrollLeft) || 0;
2332
+ var z, p;
2333
+ return ((p = (z = c.current) == null ? void 0 : z.element) == null ? void 0 : p.scrollLeft) || 0;
2334
2334
  },
2335
- set: (D) => {
2336
- var z;
2337
- (z = c.current) != null && z.element && (c.current.element.scrollLeft = D);
2335
+ set: (z) => {
2336
+ var p;
2337
+ (p = c.current) != null && p.element && (c.current.element.scrollLeft = z);
2338
2338
  }
2339
- }), Object.defineProperty(P, "scrollTop", {
2339
+ }), Object.defineProperty(D, "scrollTop", {
2340
2340
  get: () => {
2341
- var D, z;
2342
- return ((z = (D = c.current) == null ? void 0 : D.element) == null ? void 0 : z.scrollTop) || 0;
2341
+ var z, p;
2342
+ return ((p = (z = c.current) == null ? void 0 : z.element) == null ? void 0 : p.scrollTop) || 0;
2343
2343
  },
2344
- set: (D) => {
2345
- var z;
2346
- (z = c.current) != null && z.element && (c.current.element.scrollTop = D);
2344
+ set: (z) => {
2345
+ var p;
2346
+ (p = c.current) != null && p.element && (c.current.element.scrollTop = z);
2347
2347
  }
2348
- }), P;
2348
+ }), D;
2349
2349
  }, []);
2350
2350
  Ze(() => {
2351
2351
  a && (a.current = f);
2352
2352
  }, [a, f]);
2353
- const h = t, b = h.length, p = ge((P) => {
2354
- let D = 0;
2355
- return P.forEach((z) => {
2356
- z != null && z.children && z.children.length > 0 ? D += p(z.children) : D += 1;
2357
- }), D;
2358
- }, []), j = p(o), T = ge((P) => {
2359
- let D = [];
2360
- return P.forEach((z) => {
2361
- z != null && z.children && z.children.length > 0 ? D = [...D, ...T(z.children)] : D.push(z);
2362
- }), D;
2363
- }, []), w = T(o), d = ge((P) => {
2364
- const D = w[P];
2365
- let z = (D == null ? void 0 : D.width) || 100;
2366
- return typeof z == "string" && (z = parseInt(z.replace("px", "")) || 100), z;
2367
- }, [w]), F = ge((P) => lr, []), k = we(() => h.map((P) => P.cells), [h]), J = ge((P) => {
2368
- if (P && typeof P.scrollLeft == "number") {
2369
- l && l(P);
2353
+ const h = t, E = h.length, v = ge((D) => {
2354
+ let z = 0;
2355
+ 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 = [];
2360
+ 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;
2366
+ 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) => {
2368
+ if (D && typeof D.scrollLeft == "number") {
2369
+ l && l(D);
2370
2370
  return;
2371
2371
  }
2372
- if (P && P.target) {
2373
- const { scrollLeft: D, scrollTop: z } = P.target;
2374
- l && l({ scrollLeft: D, scrollTop: z });
2372
+ if (D && D.target) {
2373
+ const { scrollLeft: z, scrollTop: p } = D.target;
2374
+ l && l({ scrollLeft: z, scrollTop: p });
2375
2375
  }
2376
- }, [l]), A = (typeof (n == null ? void 0 : n.y) == "number" ? n.y : parseInt((n == null ? void 0 : n.y) || "400")) || 400;
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);
2381
+ });
2382
+ }), D;
2383
+ }, [t]), F = (typeof (n == null ? void 0 : n.y) == "number" ? n.y : parseInt((n == null ? void 0 : n.y) || "400")) || 400;
2377
2384
  return /* @__PURE__ */ Z.jsx(
2378
2385
  Hn,
2379
2386
  {
2380
2387
  gridRef: c,
2381
- columnCount: j,
2388
+ columnCount: A,
2382
2389
  columnWidth: d,
2383
- rowCount: b,
2384
- rowHeight: F,
2385
- style: { height: A - 40, width: s },
2390
+ rowCount: E,
2391
+ rowHeight: k,
2392
+ style: { height: F - 40, width: s, overflowY: "auto" },
2386
2393
  onScroll: J,
2387
- className: "virtual-grid",
2388
- overscanCount: 20,
2394
+ className: `virtual-grid row-${j}`,
2395
+ overscanCount: j + 3,
2389
2396
  cellComponent: Un,
2390
2397
  cellProps: {
2391
- mergedData: k,
2392
- columns: w,
2398
+ mergedData: $,
2399
+ columns: _,
2393
2400
  data: h,
2394
2401
  handleExpand: e.handleExpand,
2395
2402
  meta: e.meta
@@ -2398,24 +2405,24 @@ const Bn = (e) => /* @__PURE__ */ Z.jsxs("svg", { viewBox: "64 64 896 896", focu
2398
2405
  );
2399
2406
  }, He = (e) => {
2400
2407
  const t = [], r = (n) => {
2401
- n.children && n.children.length > 0 ? n.children.forEach((o) => r(o)) : t.push(n);
2408
+ n.children && n.children.length > 0 ? n.children.forEach((i) => r(i)) : t.push(n);
2402
2409
  };
2403
2410
  return e.forEach((n) => r(n)), t;
2404
2411
  }, me = (e, t) => {
2405
2412
  const r = t.split(".");
2406
2413
  let n = e;
2407
- for (const o of r) {
2414
+ for (const i of r) {
2408
2415
  if (n == null)
2409
2416
  return n;
2410
- n = n[o];
2417
+ n = n[i];
2411
2418
  }
2412
- return n == null && (n = xe), n;
2419
+ return n == null && (n = Ce), n;
2413
2420
  }, ct = (e, t) => "|" + t.map((n) => me(e, n)).join("|"), Gt = (e, t) => {
2414
2421
  if (!e)
2415
2422
  return null;
2416
2423
  try {
2417
- const r = e.replace(/\{(\w+)\}/g, (n, o) => {
2418
- const s = t[o];
2424
+ const r = e.replace(/\{(\w+)\}/g, (n, i) => {
2425
+ const s = t[i];
2419
2426
  return s != null && !isNaN(s) ? String(s) : "0";
2420
2427
  });
2421
2428
  return /^[\d\.\+\-\*\/\(\)\s]+$/.test(r) ? new Function(`return ${r}`)() : null;
@@ -2433,185 +2440,185 @@ const Bn = (e) => /* @__PURE__ */ Z.jsxs("svg", { viewBox: "64 64 896 896", focu
2433
2440
  max: (e) => Math.max(...e.map((t) => Number(t) || -1 / 0)),
2434
2441
  d_count: (e) => new Set(e).size,
2435
2442
  variance: (e) => {
2436
- const t = e.map((o) => Number(o)).filter((o) => !isNaN(o));
2443
+ const t = e.map((i) => Number(i)).filter((i) => !isNaN(i));
2437
2444
  if (t.length === 0)
2438
2445
  return 0;
2439
- const r = t.reduce((o, s) => o + s, 0) / t.length;
2440
- return t.map((o) => Math.pow(o - r, 2)).reduce((o, s) => o + s, 0) / t.length;
2446
+ const r = t.reduce((i, s) => i + s, 0) / t.length;
2447
+ return t.map((i) => Math.pow(i - r, 2)).reduce((i, s) => i + s, 0) / t.length;
2441
2448
  },
2442
2449
  stddev: (e) => {
2443
2450
  const t = e.map((s) => Number(s)).filter((s) => !isNaN(s));
2444
2451
  if (t.length === 0)
2445
2452
  return 0;
2446
- const r = t.reduce((s, a) => s + a, 0) / t.length, o = t.map((s) => Math.pow(s - r, 2)).reduce((s, a) => s + a, 0) / t.length;
2447
- return Math.sqrt(o);
2453
+ 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
+ return Math.sqrt(i);
2448
2455
  }
2449
2456
  }, ue = /* @__PURE__ */ new Map(), ut = /* @__PURE__ */ new Map(), ft = /* @__PURE__ */ new Map(), Jn = (e) => {
2450
- const { data: t, sortParams: r, fields: n } = e, { rows: o, columns: s, values: a } = n;
2451
- if (!t || t.length === 0 || !o.length && !s.length && !a.length)
2457
+ const { data: t, sortParams: r, fields: n } = e, { rows: i, columns: s, values: a } = n;
2458
+ if (!t || t.length === 0 || !i.length && !s.length && !a.length)
2452
2459
  return {
2453
2460
  list: [],
2454
- dataExpandFilter: (g) => g
2461
+ dataExpandFilter: (y) => y
2455
2462
  };
2456
- const l = He(o), c = He(s), f = He(a).filter((g) => !g.hidden), h = l.map((g) => g.field), b = c.map((g) => g.field), p = /* @__PURE__ */ new Map(), j = /* @__PURE__ */ new Map(), T = /* @__PURE__ */ new Map();
2457
- t.forEach((g) => {
2458
- const C = ct(g, h);
2459
- p.has(C) || p.set(C, []), p.get(C).push(g);
2460
- const E = ct(g, b);
2461
- j.has(E) || j.set(E, []), j.get(E).push(g);
2462
- const y = `${C}||${E}`;
2463
- T.has(y) || T.set(y, []), T.get(y).push(g);
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);
2464
2471
  });
2465
- const w = () => Array.from(p.entries()).sort(([g, C], [E, y]) => {
2472
+ const _ = () => Array.from(v.entries()).sort(([y, C], [w, b]) => {
2466
2473
  if (r && r.length > 0)
2467
- for (const v of r) {
2468
- const { field: x, sortType: _ } = v, R = _ === "asc", S = me(C[0], x), L = me(y[0], x);
2469
- if (S < L)
2470
- return R ? -1 : 1;
2471
- if (S > L)
2472
- return R ? 1 : -1;
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;
2473
2480
  }
2474
- for (let v = 0; v < h.length; v++) {
2475
- const x = h[v], _ = l[v], R = me(C[0], x), S = me(y[0], x);
2476
- if (R !== S)
2477
- if (_.sort && _.sort.enabled) {
2478
- const L = _.sort.type === "asc";
2479
- if (R < S)
2480
- return L ? -1 : 1;
2481
- if (R > S)
2482
- return L ? 1 : -1;
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;
2483
2490
  } else {
2484
- if (R < S)
2491
+ if (S < x)
2485
2492
  return -1;
2486
- if (R > S)
2493
+ if (S > x)
2487
2494
  return 1;
2488
2495
  }
2489
2496
  }
2490
2497
  return 0;
2491
- }), d = () => Array.from(j.entries()).sort(([g, C], [E, y]) => {
2492
- for (let v = 0; v < b.length; v++) {
2493
- const x = b[v], _ = c[v], R = me(C[0], x), S = me(y[0], x);
2494
- if (R !== S)
2495
- if (_.sort && _.sort.enabled) {
2496
- const L = _.sort.type === "asc";
2497
- if (R < S)
2498
- return L ? -1 : 1;
2499
- if (R > S)
2500
- return L ? 1 : -1;
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;
2501
2508
  } else {
2502
- if (R < S)
2509
+ if (S < x)
2503
2510
  return -1;
2504
- if (R > S)
2511
+ if (S > x)
2505
2512
  return 1;
2506
2513
  }
2507
2514
  }
2508
2515
  return 0;
2509
- }), F = () => {
2510
- const g = [], C = He(o);
2511
- for (let E = 1; E <= C.length; E++)
2512
- g.push(C.slice(0, E));
2513
- return g;
2514
- }, k = () => {
2515
- const g = F(), C = /* @__PURE__ */ new Set();
2516
- return g.forEach((E, y) => {
2517
- const v = E[E.length - 1];
2518
- v.total && v.total.enabled && C.add(y);
2516
+ }), k = () => {
2517
+ const y = [], C = He(i);
2518
+ 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);
2519
2526
  }), C;
2520
2527
  }, J = () => {
2521
- const g = F(), C = [], E = k();
2522
- return E.size === 0 || E.forEach((y) => {
2523
- let v = [];
2524
- y > 0 && (v = g[y - 1]);
2525
- const x = {};
2526
- t.forEach((_) => {
2527
- let R = "";
2528
- if (y > 0 ? R = v.map((S) => me(_, S.field)).join("|") : R = "__GLOBAL__", !x[R]) {
2529
- const L = g[y][y].total;
2530
- x[R] = {
2528
+ const y = k(), C = [], w = $();
2529
+ return w.size === 0 || w.forEach((b) => {
2530
+ let m = [];
2531
+ b > 0 && (m = y[b - 1]);
2532
+ 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] = {
2531
2538
  records: [],
2532
- config: L
2539
+ config: I
2533
2540
  };
2534
2541
  }
2535
- x[R].records.push(_);
2536
- }), C.push({ level: y, data: x });
2542
+ O[S].records.push(R);
2543
+ }), C.push({ level: b, data: O });
2537
2544
  }), C;
2538
- }, A = d(), P = /* @__PURE__ */ new Map(), D = (g, C) => {
2539
- if (ue.has(g)) {
2540
- const E = ue.get(g), v = !E.get(C);
2541
- E.set(C, v), ut.set("rowKey", C), ut.set("level", g), ut.set("expanded", v);
2542
- const x = g - 1;
2543
- if (x >= 0 && x < l.length && l[x].clickExpandChildren && v === !0) {
2544
- const R = g + 1;
2545
- if (ue.has(R)) {
2546
- const S = ue.get(R), L = C + "|";
2547
- S.forEach((H, ae) => {
2548
- ae.startsWith(L) && (S.set(ae, !0), z(R, ae));
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));
2549
2556
  });
2550
2557
  }
2551
2558
  }
2552
2559
  }
2553
- }, z = (g, C) => {
2554
- const E = g + 1;
2555
- if (ue.has(E)) {
2556
- const y = ue.get(E), v = C + "|";
2557
- y.forEach((x, _) => {
2558
- _.startsWith(v) && (y.set(_, !0), z(E, _));
2560
+ }, z = (y, C) => {
2561
+ const w = y + 1;
2562
+ 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));
2559
2566
  });
2560
2567
  }
2561
- }, I = (g) => {
2562
- const C = J(), E = [...g];
2568
+ }, p = (y) => {
2569
+ const C = J(), w = [...y];
2563
2570
  if (C.length === 0)
2564
- return E;
2565
- for (let y = 0; y < C.length; y++) {
2566
- const { level: v, data: x } = C[y];
2567
- Object.keys(x).forEach((_) => {
2568
- const { records: R, config: S } = x[_], { label: L = Bt, position: H = "bottom" } = S || {}, ae = _.split("|");
2569
- let le = -1, O = -1;
2570
- if (v === 0)
2571
- le = 0, O = E.length - 1;
2571
+ 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("|");
2576
+ let le = -1, T = -1;
2577
+ if (m === 0)
2578
+ le = 0, T = w.length - 1;
2572
2579
  else
2573
- for (let Q = 0; Q < E.length; Q++) {
2574
- const ee = E[Q];
2575
- h.slice(0, v).every((Le, pe) => {
2576
- var ie;
2577
- return ((ie = ee[pe]) == null ? void 0 : ie.content) === ae[pe];
2578
- }) && (le === -1 && (le = Q), O = Q);
2580
+ for (let Q = 0; Q < w.length; Q++) {
2581
+ const ee = w[Q];
2582
+ h.slice(0, m).every((Le, pe) => {
2583
+ var oe;
2584
+ return ((oe = ee[pe]) == null ? void 0 : oe.content) === ae[pe];
2585
+ }) && (le === -1 && (le = Q), T = Q);
2579
2586
  }
2580
2587
  if (le !== -1) {
2581
2588
  const Q = [];
2582
2589
  let ee = "";
2583
2590
  h.forEach((Le, pe) => {
2584
- let ie = xe;
2585
- const oe = pe + 1, ce = oe < h.length, je = l[pe];
2586
- pe <= v && (pe === v ? ie = L : ie = ae[pe], ee += `|${ie}`);
2587
- const Ke = ue.has(oe) && ue.get(oe).get(ee) || !0;
2588
- (ie === xe || ie === null || ie === void 0) && je.emptyReplace && (ie = je.emptyReplace), Q.push({
2589
- content: ie,
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}`);
2594
+ 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({
2596
+ content: oe,
2590
2597
  rowspan: 1,
2591
2598
  colspan: 1,
2592
2599
  data: null,
2593
2600
  rowKey: ee,
2594
- expandable: H === "top" && ce && ie !== xe && ie !== Bt,
2601
+ expandable: H === "top" && ce && oe !== Ce && oe !== Bt,
2595
2602
  expanded: H === "top" ? Ke : !1,
2596
- level: oe,
2603
+ level: ie,
2597
2604
  onClick: H === "top" && ce ? (Ae) => D(Ae.level, Ae.rowKey) : void 0
2598
2605
  });
2599
- }), A.forEach(([Le, pe]) => {
2600
- const ie = {};
2601
- f.forEach((oe) => {
2602
- if (oe.calculateType === "expr")
2606
+ }), j.forEach(([Le, pe]) => {
2607
+ const oe = {};
2608
+ f.forEach((ie) => {
2609
+ if (ie.calculateType === "expr")
2603
2610
  return;
2604
- const ce = oe.field, je = oe.calculateType || "sum", Ae = R.filter((Ce) => ct(Ce, b) === Le).map((Ce) => me(Ce, ce));
2611
+ const ce = ie.field, je = ie.calculateType || "sum", Ae = S.filter((xe) => ct(xe, E) === Le).map((xe) => me(xe, ce));
2605
2612
  let Ne = 0;
2606
- Ge[je] && (Ne = Ge[je](Ae)), ie[oe.field] = Ne;
2607
- }), f.forEach((oe) => {
2608
- if (oe.calculateType === "expr" && oe.expression) {
2609
- const ce = Gt(oe.expression, ie);
2610
- ie[oe.field] = ce !== null ? ce : 0;
2613
+ Ge[je] && (Ne = Ge[je](Ae)), oe[ie.field] = Ne;
2614
+ }), f.forEach((ie) => {
2615
+ if (ie.calculateType === "expr" && ie.expression) {
2616
+ const ce = Gt(ie.expression, oe);
2617
+ oe[ie.field] = ce !== null ? ce : 0;
2611
2618
  }
2612
- }), f.forEach((oe) => {
2613
- let ce = ie[oe.field];
2614
- (ce === xe || ce === null || ce === void 0 || typeof ce == "number" && isNaN(ce)) && oe.emptyReplace && (ce = oe.emptyReplace), Q.push({
2619
+ }), f.forEach((ie) => {
2620
+ 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({
2615
2622
  content: ce,
2616
2623
  rowspan: 1,
2617
2624
  colspan: 1,
@@ -2619,132 +2626,132 @@ const Bn = (e) => /* @__PURE__ */ Z.jsxs("svg", { viewBox: "64 64 896 896", focu
2619
2626
  });
2620
2627
  });
2621
2628
  });
2622
- const fe = H === "top" ? le : O + 1;
2623
- ft.has(ee) || (E.splice(fe, 0, Q), ft.set(ee, 1), H === "top" && v > 0 && P.set(_, ee));
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));
2624
2631
  }
2625
2632
  });
2626
2633
  }
2627
- return E;
2628
- }, B = He(o);
2629
- ue.clear(), t.forEach((g) => {
2634
+ return w;
2635
+ }, B = He(i);
2636
+ ue.clear(), t.forEach((y) => {
2630
2637
  let C = "";
2631
- h.forEach((E, y) => {
2632
- const v = y + 1, x = me(g, E);
2633
- C += `|${x}`, ue.has(v) || ue.set(v, /* @__PURE__ */ new Map());
2634
- const _ = l[y].collapsed;
2635
- ue.get(v).set(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);
2636
2643
  });
2637
2644
  });
2638
- const M = w();
2645
+ const M = _();
2639
2646
  let W = [];
2640
2647
  const Y = /* @__PURE__ */ new Map();
2641
- M.forEach(([g, C]) => {
2642
- const E = C[0];
2643
- let y = "";
2644
- h.forEach((v, x) => {
2645
- const _ = me(E, v), R = x + 1;
2646
- y += `|${_}`, Y.has(R) || Y.set(R, /* @__PURE__ */ new Map());
2647
- const S = Y.get(R);
2648
- S.set(y, (S.get(y) || 0) + 1);
2648
+ M.forEach(([y, C]) => {
2649
+ 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);
2649
2656
  });
2650
- }), M.forEach(([g, C]) => {
2651
- const E = C[0], y = [];
2652
- let v = "";
2653
- h.forEach((x, _) => {
2657
+ }), M.forEach(([y, C]) => {
2658
+ const w = C[0], b = [];
2659
+ let m = "";
2660
+ h.forEach((O, R) => {
2654
2661
  var ee;
2655
- let R = me(E, x);
2656
- const S = _ + 1, L = S < h.length, H = l[_];
2657
- v += `|${R}`;
2658
- let ae = g;
2659
- const le = B.find((fe) => fe.field === x);
2660
- if ((ee = le == null ? void 0 : le.total) != null && ee.enabled && le.total.label && (ae = `${v}|${le.total.label}`), L) {
2661
- const fe = v;
2662
- P.has(fe) || P.set(fe, ae);
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);
2663
2670
  }
2664
- const O = ue.has(S) && ue.get(S).get(v) || !0, Q = S < h.length ? (Y.get(S).get(v) || 0) > 1 : !1;
2665
- (R === xe || R === null || R === void 0) && H.emptyReplace && (R = H.emptyReplace), y.push({
2666
- content: R,
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,
2667
2674
  rowspan: 1,
2668
2675
  colspan: 1,
2669
- data: E,
2670
- expandable: L && Q,
2671
- expanded: O,
2672
- level: S,
2673
- rowKey: v,
2674
- onClick: L && Q ? (fe) => D(fe.level, fe.rowKey) : void 0
2676
+ data: w,
2677
+ expandable: I && Q,
2678
+ expanded: T,
2679
+ level: x,
2680
+ rowKey: m,
2681
+ onClick: I && Q ? (fe) => D(fe.level, fe.rowKey) : void 0
2675
2682
  });
2676
- }), A.forEach(([x, _]) => {
2677
- const R = {};
2678
- f.forEach((S) => {
2679
- if (S.calculateType === "expr")
2683
+ }), j.forEach(([O, R]) => {
2684
+ const S = {};
2685
+ f.forEach((x) => {
2686
+ if (x.calculateType === "expr")
2680
2687
  return;
2681
- const L = S.field, H = S.calculateType || "sum", ae = `${g}||${x}`, O = (T.get(ae) || []).map((ee) => me(ee, L));
2688
+ const I = x.field, H = x.calculateType || "sum", ae = `${y}||${O}`, T = (P.get(ae) || []).map((ee) => me(ee, I));
2682
2689
  let Q = 0;
2683
- Ge[H] && (Q = Ge[H](O)), R[S.field] = Q;
2684
- }), f.forEach((S) => {
2685
- if (S.calculateType === "expr" && S.expression) {
2686
- const L = Gt(S.expression, R);
2687
- R[S.field] = L !== null ? L : 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;
2688
2695
  }
2689
- }), f.forEach((S) => {
2690
- let L = R[S.field];
2691
- (L === xe || L === null || L === void 0 || typeof L == "number" && isNaN(L)) && S.emptyReplace && (L = S.emptyReplace), y.push({
2692
- content: L,
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,
2693
2700
  rowspan: 1,
2694
2701
  colspan: 1,
2695
- data: E
2702
+ data: w
2696
2703
  });
2697
2704
  });
2698
- }), W.push({ cells: y, rowKey: v });
2705
+ }), W.push({ cells: b, rowKey: m });
2699
2706
  });
2700
- const q = (g) => {
2701
- const E = g.split("|").filter(Boolean).length;
2702
- for (let y = 1; y < E; y++)
2703
- if (ue.has(y)) {
2704
- const v = ue.get(y), x = g.split("|").slice(0, y + 1).join("|");
2705
- if (v.has(x) && !v.get(x)) {
2706
- const _ = x, R = P.get(_);
2707
- if (g !== R)
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)
2708
2715
  return !1;
2709
2716
  }
2710
2717
  }
2711
2718
  return !0;
2712
- }, te = (g) => {
2713
- var C, E;
2714
- if (!g || g.length === 0)
2715
- return g;
2716
- for (let y = 0; y < l.length; y++) {
2717
- let v = g[0][y].content, x = 0, _ = l[y], R = (C = _.total) == null ? void 0 : C.enabled, S = ((E = _.total) == null ? void 0 : E.label) || "";
2718
- for (let L = 1; L < g.length; L++) {
2719
- const H = g[L][y];
2720
- H.content !== xe && (!R || H.content !== S) && H.content === v ? (H.rowspan = 0, g[x][y].rowspan++) : (v = H.content, x = L);
2719
+ }, te = (y) => {
2720
+ 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);
2721
2728
  }
2722
2729
  }
2723
- return g;
2724
- }, he = (g) => {
2725
- const C = g.filter((v) => q(v.rowKey)), E = C.map((v) => v.cells.map((x) => {
2726
- const _ = { ...x };
2727
- if (_.expandable && _.level && _.rowKey && ue.has(_.level)) {
2728
- const R = ue.get(_.level);
2729
- R.has(_.rowKey) && (_.expanded = R.get(_.rowKey));
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));
2730
2737
  }
2731
- return _;
2738
+ return R;
2732
2739
  }));
2733
- return te(E), C.map((v, x) => ({
2734
- rowKey: v.rowKey,
2735
- cells: E[x]
2740
+ return te(w), C.map((m, O) => ({
2741
+ rowKey: m.rowKey,
2742
+ cells: w[O]
2736
2743
  }));
2737
2744
  };
2738
2745
  ft.clear();
2739
- const ye = W.map((g) => g.cells), _e = I(ye).map((g, C) => {
2740
- let E = "";
2741
- return g.forEach((y, v) => {
2742
- v < h.length && y.rowKey && (E = y.rowKey);
2743
- }), { cells: g, rowKey: E };
2746
+ const be = W.map((y) => y.cells), _e = p(be).map((y, C) => {
2747
+ let w = "";
2748
+ return y.forEach((b, m) => {
2749
+ m < h.length && b.rowKey && (w = b.rowKey);
2750
+ }), { cells: y, rowKey: w };
2744
2751
  }), Se = (() => {
2745
- const g = [];
2752
+ const y = [];
2746
2753
  if (l.forEach((C) => {
2747
- g.push({
2754
+ y.push({
2748
2755
  ...C,
2749
2756
  width: C.width || 100,
2750
2757
  fixed: "left",
@@ -2752,7 +2759,7 @@ const Bn = (e) => /* @__PURE__ */ Z.jsxs("svg", { viewBox: "64 64 896 896", focu
2752
2759
  });
2753
2760
  }), c.length === 0)
2754
2761
  f.forEach((C) => {
2755
- g.push({
2762
+ y.push({
2756
2763
  ...C,
2757
2764
  width: C.width || 100,
2758
2765
  key: C.field
@@ -2760,34 +2767,34 @@ const Bn = (e) => /* @__PURE__ */ Z.jsxs("svg", { viewBox: "64 64 896 896", focu
2760
2767
  });
2761
2768
  else {
2762
2769
  const C = [];
2763
- A.forEach(([E, y]) => {
2764
- const v = E.split("|").filter((_) => _ !== "");
2765
- let x = C;
2766
- v.forEach((_, R) => {
2767
- var L;
2768
- let S = x.find((H) => H.title === _);
2769
- if (!S) {
2770
- const ae = `${((L = c[R]) == null ? void 0 : L.field) || "unknown"}__${_}`, le = {
2770
+ j.forEach(([w, b]) => {
2771
+ const m = w.split("|").filter((R) => R !== "");
2772
+ 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 = {
2771
2778
  field: ae,
2772
- title: _,
2779
+ title: R,
2773
2780
  children: [],
2774
2781
  key: ae
2775
2782
  };
2776
- x.push(le), S = le;
2783
+ O.push(le), x = le;
2777
2784
  }
2778
- R === v.length - 1 ? f.forEach((H) => {
2779
- S.children || (S.children = []), S.children.push({
2785
+ S === m.length - 1 ? f.forEach((H) => {
2786
+ x.children || (x.children = []), x.children.push({
2780
2787
  ...H,
2781
- field: `${E}||${H.field}`,
2788
+ field: `${w}||${H.field}`,
2782
2789
  title: H.title || H.field,
2783
2790
  width: H.width || 100,
2784
- key: `${E}||${H.field}`
2791
+ key: `${w}||${H.field}`
2785
2792
  });
2786
- }) : (S.children || (S.children = []), x = S.children);
2793
+ }) : (x.children || (x.children = []), O = x.children);
2787
2794
  });
2788
- }), g.push(...C);
2795
+ }), y.push(...C);
2789
2796
  }
2790
- return g;
2797
+ return y;
2791
2798
  })();
2792
2799
  return {
2793
2800
  list: _e,
@@ -2795,23 +2802,23 @@ const Bn = (e) => /* @__PURE__ */ Z.jsxs("svg", { viewBox: "64 64 896 896", focu
2795
2802
  tableColumns: Se
2796
2803
  };
2797
2804
  }, Xn = (e) => {
2798
- const { data: t, fields: r } = e, { rows: n, columns: o, values: s } = r;
2805
+ const { data: t, fields: r } = e, { rows: n, columns: i, values: s } = r;
2799
2806
  if (!s || s.length === 0)
2800
2807
  return { list: [], dataExpandFilter: (a) => a };
2801
2808
  if (!t || t.length === 0)
2802
2809
  return { list: [], dataExpandFilter: (a) => a };
2803
- if (n.length === 0 && o.length === 0) {
2810
+ if (n.length === 0 && i.length === 0) {
2804
2811
  const a = s.filter((f) => !f.hidden), l = a.map((f) => ({
2805
2812
  ...f,
2806
2813
  width: f.width || 100,
2807
2814
  key: f.field
2808
2815
  }));
2809
2816
  return {
2810
- list: t.map((f, h) => ({ cells: a.map((p) => ({
2811
- content: f[p.field] ?? xe,
2817
+ list: t.map((f, h) => ({ cells: a.map((v) => ({
2818
+ content: f[v.field] ?? Ce,
2812
2819
  rowspan: 1,
2813
2820
  colspan: 1,
2814
- style: p.style,
2821
+ style: v.style,
2815
2822
  data: f
2816
2823
  // Pass original record for detail view cells
2817
2824
  })), rowKey: h.toString() })),
@@ -2820,66 +2827,66 @@ const Bn = (e) => /* @__PURE__ */ Z.jsxs("svg", { viewBox: "64 64 896 896", focu
2820
2827
  };
2821
2828
  }
2822
2829
  return Jn(e);
2823
- }, ei = Ut((e) => {
2824
- const { scroll: t, data: r, meta: n, sortParams: o, fields: s } = e, [a, l] = Ie(0), [c, f] = Ie([]), [h, b] = Ie([]), p = ze(null), j = ge(() => {
2825
- if (p.current) {
2826
- let I = p.current;
2827
- if (!I || !I.list || !I.dataExpandFilter)
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;
2834
+ if (!p || !p.list || !p.dataExpandFilter)
2828
2835
  return;
2829
- f(I.dataExpandFilter(I.list));
2836
+ f(p.dataExpandFilter(p.list));
2830
2837
  }
2831
2838
  }, []);
2832
2839
  Ze(() => {
2833
2840
  let B = Xn({
2834
2841
  data: r,
2835
2842
  meta: n,
2836
- sortParams: o,
2843
+ sortParams: i,
2837
2844
  fields: s
2838
2845
  });
2839
- p.current = B, B.tableColumns && b(B.tableColumns), j();
2840
- }, [r, n, o, s, j]);
2841
- const T = ge((I) => I ? typeof I == "string" ? parseInt(I.replace("px", "")) || 0 : typeof I == "number" ? I : 0 : 0, []), { baseWidth: w, colCount: d } = we(() => {
2842
- let I = 0, B = 0;
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;
2843
2850
  const M = (W) => {
2844
2851
  W.forEach((Y) => {
2845
- (!("type" in Y) || Y.type !== "group") && (I += T(Y.width), B += 1), Y != null && Y.children && Y.children.length > 0 && M(Y.children);
2852
+ (!("type" in Y) || Y.type !== "group") && (p += P(Y.width), B += 1), Y != null && Y.children && Y.children.length > 0 && M(Y.children);
2846
2853
  });
2847
2854
  };
2848
- return M(h), { baseWidth: I, colCount: B };
2849
- }, [h, T]), F = we(() => {
2850
- const I = (B) => B.map((M) => {
2855
+ return M(h), { baseWidth: p, colCount: B };
2856
+ }, [h, P]), k = ye(() => {
2857
+ const p = (B) => B.map((M) => {
2851
2858
  let W = 0;
2852
- w < a && d > 0 && (W = Math.floor((a - w) / d));
2853
- const q = (M.width ? T(M.width) : An) + W;
2854
- 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 = I(M.children)), M;
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;
2855
2862
  });
2856
- return I(bt(h));
2857
- }, [h, w, a, d, T]), k = we(() => {
2858
- let I = 0;
2863
+ return p(bt(h));
2864
+ }, [h, _, a, d, P]), $ = ye(() => {
2865
+ let p = 0;
2859
2866
  const B = (M) => {
2860
2867
  M.forEach((W) => {
2861
- (!("type" in W) || W.type !== "group") && (I += T(W.width)), W != null && W.children && W.children.length > 0 && B(W.children);
2868
+ (!("type" in W) || W.type !== "group") && (p += P(W.width)), W != null && W.children && W.children.length > 0 && B(W.children);
2862
2869
  });
2863
2870
  };
2864
- return B(F), I;
2865
- }, [F, T]), J = ze(null), A = ze(null), P = ze(!1), D = ge(({ scrollLeft: I }) => {
2866
- P.current || (P.current = !0, J.current && (J.current.scrollLeft = I), requestAnimationFrame(() => {
2867
- P.current = !1;
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;
2868
2875
  }));
2869
- }, []), z = ge((I) => {
2870
- if (P.current)
2876
+ }, []), z = ge((p) => {
2877
+ if (F.current)
2871
2878
  return;
2872
- P.current = !0;
2873
- const B = I.currentTarget.scrollLeft;
2874
- A.current && (A.current.scrollLeft = B), requestAnimationFrame(() => {
2875
- P.current = !1;
2879
+ F.current = !0;
2880
+ const B = p.currentTarget.scrollLeft;
2881
+ j.current && (j.current.scrollLeft = B), requestAnimationFrame(() => {
2882
+ F.current = !1;
2876
2883
  });
2877
2884
  }, []);
2878
2885
  return /* @__PURE__ */ Z.jsx(
2879
2886
  wt,
2880
2887
  {
2881
- onResize: ({ width: I }) => {
2882
- I && I !== a && l(I);
2888
+ onResize: ({ width: p }) => {
2889
+ p && p !== a && l(p);
2883
2890
  },
2884
2891
  children: /* @__PURE__ */ Z.jsxs(
2885
2892
  "div",
@@ -2891,8 +2898,8 @@ const Bn = (e) => /* @__PURE__ */ Z.jsxs("svg", { viewBox: "64 64 896 896", focu
2891
2898
  jn,
2892
2899
  {
2893
2900
  ref: J,
2894
- columns: F,
2895
- width: a,
2901
+ columns: k,
2902
+ width: a - 8,
2896
2903
  onScroll: z,
2897
2904
  meta: n
2898
2905
  }
@@ -2902,14 +2909,14 @@ const Bn = (e) => /* @__PURE__ */ Z.jsxs("svg", { viewBox: "64 64 896 896", focu
2902
2909
  {
2903
2910
  data: c,
2904
2911
  info: {
2905
- ref: A,
2912
+ ref: j,
2906
2913
  onScroll: D
2907
2914
  },
2908
2915
  scroll: t,
2909
- columns: F,
2916
+ columns: k,
2910
2917
  tableWidth: a,
2911
- gridWidth: k,
2912
- handleExpand: j,
2918
+ gridWidth: $,
2919
+ handleExpand: A,
2913
2920
  meta: n
2914
2921
  }
2915
2922
  ) })
@@ -2920,7 +2927,7 @@ const Bn = (e) => /* @__PURE__ */ Z.jsxs("svg", { viewBox: "64 64 896 896", focu
2920
2927
  );
2921
2928
  });
2922
2929
  export {
2923
- ei as VirtualTable,
2930
+ eo as VirtualTable,
2924
2931
  Xn as dataHandler,
2925
2932
  Jn as pivotDataHandler
2926
2933
  };