@yester/virtual-table 1.2.3 → 1.3.0

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