react-composable-treeview 1.0.21 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import Le, { createContext as We, useRef as H, useState as Ue, useCallback as Ge, forwardRef as Z, useContext as N, useEffect as oe } from "react";
2
- var de = { exports: {} }, J = {};
1
+ import Le, { createContext as We, useRef as J, useState as Ue, useCallback as Ge, forwardRef as H, useContext as I, useEffect as ne } from "react";
2
+ var le = { exports: {} }, q = {};
3
3
  /**
4
4
  * @license React
5
5
  * react-jsx-runtime.production.min.js
@@ -10,20 +10,20 @@ var de = { exports: {} }, J = {};
10
10
  * LICENSE file in the root directory of this source tree.
11
11
  */
12
12
  var $e;
13
- function Rr() {
14
- if ($e) return J;
13
+ function Er() {
14
+ if ($e) return q;
15
15
  $e = 1;
16
- var r = Le, a = Symbol.for("react.element"), n = Symbol.for("react.fragment"), o = Object.prototype.hasOwnProperty, i = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, f = { key: !0, ref: !0, __self: !0, __source: !0 };
17
- function m(s, v, S) {
18
- var y, h = {}, x = null, k = null;
19
- S !== void 0 && (x = "" + S), v.key !== void 0 && (x = "" + v.key), v.ref !== void 0 && (k = v.ref);
20
- for (y in v) o.call(v, y) && !f.hasOwnProperty(y) && (h[y] = v[y]);
21
- if (s && s.defaultProps) for (y in v = s.defaultProps, v) h[y] === void 0 && (h[y] = v[y]);
22
- return { $$typeof: a, type: s, key: x, ref: k, props: h, _owner: i.current };
16
+ var r = Le, o = Symbol.for("react.element"), n = Symbol.for("react.fragment"), u = Object.prototype.hasOwnProperty, i = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, s = { key: !0, ref: !0, __self: !0, __source: !0 };
17
+ function y(f, l, x) {
18
+ var g, h = {}, w = null, S = null;
19
+ x !== void 0 && (w = "" + x), l.key !== void 0 && (w = "" + l.key), l.ref !== void 0 && (S = l.ref);
20
+ for (g in l) u.call(l, g) && !s.hasOwnProperty(g) && (h[g] = l[g]);
21
+ if (f && f.defaultProps) for (g in l = f.defaultProps, l) h[g] === void 0 && (h[g] = l[g]);
22
+ return { $$typeof: o, type: f, key: w, ref: S, props: h, _owner: i.current };
23
23
  }
24
- return J.Fragment = n, J.jsx = m, J.jsxs = m, J;
24
+ return q.Fragment = n, q.jsx = y, q.jsxs = y, q;
25
25
  }
26
- var z = {};
26
+ var K = {};
27
27
  /**
28
28
  * @license React
29
29
  * react-jsx-runtime.development.js
@@ -34,53 +34,53 @@ var z = {};
34
34
  * LICENSE file in the root directory of this source tree.
35
35
  */
36
36
  var Ye;
37
- function mr() {
37
+ function Rr() {
38
38
  return Ye || (Ye = 1, process.env.NODE_ENV !== "production" && function() {
39
- var r = Le, a = Symbol.for("react.element"), n = Symbol.for("react.portal"), o = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), f = Symbol.for("react.profiler"), m = Symbol.for("react.provider"), s = Symbol.for("react.context"), v = Symbol.for("react.forward_ref"), S = Symbol.for("react.suspense"), y = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), x = Symbol.for("react.lazy"), k = Symbol.for("react.offscreen"), P = Symbol.iterator, V = "@@iterator";
40
- function $(e) {
39
+ var r = Le, o = Symbol.for("react.element"), n = Symbol.for("react.portal"), u = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), s = Symbol.for("react.profiler"), y = Symbol.for("react.provider"), f = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), x = Symbol.for("react.suspense"), g = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), w = Symbol.for("react.lazy"), S = Symbol.for("react.offscreen"), j = Symbol.iterator, $ = "@@iterator";
40
+ function R(e) {
41
41
  if (e === null || typeof e != "object")
42
42
  return null;
43
- var t = P && e[P] || e[V];
43
+ var t = j && e[j] || e[$];
44
44
  return typeof t == "function" ? t : null;
45
45
  }
46
- var g = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
46
+ var P = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
47
47
  function b(e) {
48
48
  {
49
- for (var t = arguments.length, u = new Array(t > 1 ? t - 1 : 0), c = 1; c < t; c++)
50
- u[c - 1] = arguments[c];
51
- Y("error", e, u);
49
+ for (var t = arguments.length, a = new Array(t > 1 ? t - 1 : 0), c = 1; c < t; c++)
50
+ a[c - 1] = arguments[c];
51
+ T("error", e, a);
52
52
  }
53
53
  }
54
- function Y(e, t, u) {
54
+ function T(e, t, a) {
55
55
  {
56
- var c = g.ReactDebugCurrentFrame, p = c.getStackAddendum();
57
- p !== "" && (t += "%s", u = u.concat([p]));
58
- var _ = u.map(function(d) {
59
- return String(d);
56
+ var c = P.ReactDebugCurrentFrame, p = c.getStackAddendum();
57
+ p !== "" && (t += "%s", a = a.concat([p]));
58
+ var _ = a.map(function(v) {
59
+ return String(v);
60
60
  });
61
61
  _.unshift("Warning: " + t), Function.prototype.apply.call(console[e], console, _);
62
62
  }
63
63
  }
64
- var w = !1, D = !1, j = !1, T = !1, A = !1, q;
65
- q = Symbol.for("react.module.reference");
66
- function Je(e) {
67
- return !!(typeof e == "string" || typeof e == "function" || e === o || e === f || A || e === i || e === S || e === y || T || e === k || w || D || j || typeof e == "object" && e !== null && (e.$$typeof === x || e.$$typeof === h || e.$$typeof === m || e.$$typeof === s || e.$$typeof === v || // This needs to include all possible module reference object
64
+ var F = !1, D = !1, O = !1, N = !1, Z = !1, ve;
65
+ ve = Symbol.for("react.module.reference");
66
+ function Ke(e) {
67
+ return !!(typeof e == "string" || typeof e == "function" || e === u || e === s || Z || e === i || e === x || e === g || N || e === S || F || D || O || typeof e == "object" && e !== null && (e.$$typeof === w || e.$$typeof === h || e.$$typeof === y || e.$$typeof === f || e.$$typeof === l || // This needs to include all possible module reference object
68
68
  // types supported by any Flight configuration anywhere since
69
69
  // we don't know which Flight build this will end up being used
70
70
  // with.
71
- e.$$typeof === q || e.getModuleId !== void 0));
71
+ e.$$typeof === ve || e.getModuleId !== void 0));
72
72
  }
73
- function ze(e, t, u) {
73
+ function Je(e, t, a) {
74
74
  var c = e.displayName;
75
75
  if (c)
76
76
  return c;
77
77
  var p = t.displayName || t.name || "";
78
- return p !== "" ? u + "(" + p + ")" : u;
78
+ return p !== "" ? a + "(" + p + ")" : a;
79
79
  }
80
80
  function pe(e) {
81
81
  return e.displayName || "Context";
82
82
  }
83
- function L(e) {
83
+ function Y(e) {
84
84
  if (e == null)
85
85
  return null;
86
86
  if (typeof e.tag == "number" && b("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
@@ -88,36 +88,36 @@ function mr() {
88
88
  if (typeof e == "string")
89
89
  return e;
90
90
  switch (e) {
91
- case o:
91
+ case u:
92
92
  return "Fragment";
93
93
  case n:
94
94
  return "Portal";
95
- case f:
95
+ case s:
96
96
  return "Profiler";
97
97
  case i:
98
98
  return "StrictMode";
99
- case S:
99
+ case x:
100
100
  return "Suspense";
101
- case y:
101
+ case g:
102
102
  return "SuspenseList";
103
103
  }
104
104
  if (typeof e == "object")
105
105
  switch (e.$$typeof) {
106
- case s:
106
+ case f:
107
107
  var t = e;
108
108
  return pe(t) + ".Consumer";
109
- case m:
110
- var u = e;
111
- return pe(u._context) + ".Provider";
112
- case v:
113
- return ze(e, e.render, "ForwardRef");
109
+ case y:
110
+ var a = e;
111
+ return pe(a._context) + ".Provider";
112
+ case l:
113
+ return Je(e, e.render, "ForwardRef");
114
114
  case h:
115
115
  var c = e.displayName || null;
116
- return c !== null ? c : L(e.type) || "Memo";
117
- case x: {
118
- var p = e, _ = p._payload, d = p._init;
116
+ return c !== null ? c : Y(e.type) || "Memo";
117
+ case w: {
118
+ var p = e, _ = p._payload, v = p._init;
119
119
  try {
120
- return L(d(_));
120
+ return Y(v(_));
121
121
  } catch {
122
122
  return null;
123
123
  }
@@ -125,13 +125,13 @@ function mr() {
125
125
  }
126
126
  return null;
127
127
  }
128
- var W = Object.assign, K = 0, _e, ge, he, be, Ee, Re, me;
128
+ var L = Object.assign, B = 0, _e, ge, he, be, Ee, Re, me;
129
129
  function ye() {
130
130
  }
131
131
  ye.__reactDisabledLog = !0;
132
- function He() {
132
+ function ze() {
133
133
  {
134
- if (K === 0) {
134
+ if (B === 0) {
135
135
  _e = console.log, ge = console.info, he = console.warn, be = console.error, Ee = console.group, Re = console.groupCollapsed, me = console.groupEnd;
136
136
  var e = {
137
137
  configurable: !0,
@@ -149,332 +149,332 @@ function mr() {
149
149
  groupEnd: e
150
150
  });
151
151
  }
152
- K++;
152
+ B++;
153
153
  }
154
154
  }
155
- function Xe() {
155
+ function He() {
156
156
  {
157
- if (K--, K === 0) {
157
+ if (B--, B === 0) {
158
158
  var e = {
159
159
  configurable: !0,
160
160
  enumerable: !0,
161
161
  writable: !0
162
162
  };
163
163
  Object.defineProperties(console, {
164
- log: W({}, e, {
164
+ log: L({}, e, {
165
165
  value: _e
166
166
  }),
167
- info: W({}, e, {
167
+ info: L({}, e, {
168
168
  value: ge
169
169
  }),
170
- warn: W({}, e, {
170
+ warn: L({}, e, {
171
171
  value: he
172
172
  }),
173
- error: W({}, e, {
173
+ error: L({}, e, {
174
174
  value: be
175
175
  }),
176
- group: W({}, e, {
176
+ group: L({}, e, {
177
177
  value: Ee
178
178
  }),
179
- groupCollapsed: W({}, e, {
179
+ groupCollapsed: L({}, e, {
180
180
  value: Re
181
181
  }),
182
- groupEnd: W({}, e, {
182
+ groupEnd: L({}, e, {
183
183
  value: me
184
184
  })
185
185
  });
186
186
  }
187
- K < 0 && b("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
187
+ B < 0 && b("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
188
188
  }
189
189
  }
190
- var ae = g.ReactCurrentDispatcher, ue;
191
- function Q(e, t, u) {
190
+ var oe = P.ReactCurrentDispatcher, ae;
191
+ function Q(e, t, a) {
192
192
  {
193
- if (ue === void 0)
193
+ if (ae === void 0)
194
194
  try {
195
195
  throw Error();
196
196
  } catch (p) {
197
197
  var c = p.stack.trim().match(/\n( *(at )?)/);
198
- ue = c && c[1] || "";
198
+ ae = c && c[1] || "";
199
199
  }
200
200
  return `
201
- ` + ue + e;
201
+ ` + ae + e;
202
202
  }
203
203
  }
204
- var ie = !1, ee;
204
+ var ue = !1, M;
205
205
  {
206
- var Ze = typeof WeakMap == "function" ? WeakMap : Map;
207
- ee = new Ze();
206
+ var Xe = typeof WeakMap == "function" ? WeakMap : Map;
207
+ M = new Xe();
208
208
  }
209
- function xe(e, t) {
210
- if (!e || ie)
209
+ function we(e, t) {
210
+ if (!e || ue)
211
211
  return "";
212
212
  {
213
- var u = ee.get(e);
214
- if (u !== void 0)
215
- return u;
213
+ var a = M.get(e);
214
+ if (a !== void 0)
215
+ return a;
216
216
  }
217
217
  var c;
218
- ie = !0;
218
+ ue = !0;
219
219
  var p = Error.prepareStackTrace;
220
220
  Error.prepareStackTrace = void 0;
221
221
  var _;
222
- _ = ae.current, ae.current = null, He();
222
+ _ = oe.current, oe.current = null, ze();
223
223
  try {
224
224
  if (t) {
225
- var d = function() {
225
+ var v = function() {
226
226
  throw Error();
227
227
  };
228
- if (Object.defineProperty(d.prototype, "props", {
228
+ if (Object.defineProperty(v.prototype, "props", {
229
229
  set: function() {
230
230
  throw Error();
231
231
  }
232
232
  }), typeof Reflect == "object" && Reflect.construct) {
233
233
  try {
234
- Reflect.construct(d, []);
235
- } catch (F) {
236
- c = F;
234
+ Reflect.construct(v, []);
235
+ } catch (A) {
236
+ c = A;
237
237
  }
238
- Reflect.construct(e, [], d);
238
+ Reflect.construct(e, [], v);
239
239
  } else {
240
240
  try {
241
- d.call();
242
- } catch (F) {
243
- c = F;
241
+ v.call();
242
+ } catch (A) {
243
+ c = A;
244
244
  }
245
- e.call(d.prototype);
245
+ e.call(v.prototype);
246
246
  }
247
247
  } else {
248
248
  try {
249
249
  throw Error();
250
- } catch (F) {
251
- c = F;
250
+ } catch (A) {
251
+ c = A;
252
252
  }
253
253
  e();
254
254
  }
255
- } catch (F) {
256
- if (F && c && typeof F.stack == "string") {
257
- for (var l = F.stack.split(`
255
+ } catch (A) {
256
+ if (A && c && typeof A.stack == "string") {
257
+ for (var d = A.stack.split(`
258
258
  `), C = c.stack.split(`
259
- `), E = l.length - 1, R = C.length - 1; E >= 1 && R >= 0 && l[E] !== C[R]; )
260
- R--;
261
- for (; E >= 1 && R >= 0; E--, R--)
262
- if (l[E] !== C[R]) {
263
- if (E !== 1 || R !== 1)
259
+ `), E = d.length - 1, m = C.length - 1; E >= 1 && m >= 0 && d[E] !== C[m]; )
260
+ m--;
261
+ for (; E >= 1 && m >= 0; E--, m--)
262
+ if (d[E] !== C[m]) {
263
+ if (E !== 1 || m !== 1)
264
264
  do
265
- if (E--, R--, R < 0 || l[E] !== C[R]) {
266
- var O = `
267
- ` + l[E].replace(" at new ", " at ");
268
- return e.displayName && O.includes("<anonymous>") && (O = O.replace("<anonymous>", e.displayName)), typeof e == "function" && ee.set(e, O), O;
265
+ if (E--, m--, m < 0 || d[E] !== C[m]) {
266
+ var k = `
267
+ ` + d[E].replace(" at new ", " at ");
268
+ return e.displayName && k.includes("<anonymous>") && (k = k.replace("<anonymous>", e.displayName)), typeof e == "function" && M.set(e, k), k;
269
269
  }
270
- while (E >= 1 && R >= 0);
270
+ while (E >= 1 && m >= 0);
271
271
  break;
272
272
  }
273
273
  }
274
274
  } finally {
275
- ie = !1, ae.current = _, Xe(), Error.prepareStackTrace = p;
275
+ ue = !1, oe.current = _, He(), Error.prepareStackTrace = p;
276
276
  }
277
- var G = e ? e.displayName || e.name : "", Ve = G ? Q(G) : "";
278
- return typeof e == "function" && ee.set(e, Ve), Ve;
277
+ var U = e ? e.displayName || e.name : "", Ie = U ? Q(U) : "";
278
+ return typeof e == "function" && M.set(e, Ie), Ie;
279
279
  }
280
- function Me(e, t, u) {
281
- return xe(e, !1);
280
+ function Ze(e, t, a) {
281
+ return we(e, !1);
282
282
  }
283
283
  function Qe(e) {
284
284
  var t = e.prototype;
285
285
  return !!(t && t.isReactComponent);
286
286
  }
287
- function re(e, t, u) {
287
+ function ee(e, t, a) {
288
288
  if (e == null)
289
289
  return "";
290
290
  if (typeof e == "function")
291
- return xe(e, Qe(e));
291
+ return we(e, Qe(e));
292
292
  if (typeof e == "string")
293
293
  return Q(e);
294
294
  switch (e) {
295
- case S:
295
+ case x:
296
296
  return Q("Suspense");
297
- case y:
297
+ case g:
298
298
  return Q("SuspenseList");
299
299
  }
300
300
  if (typeof e == "object")
301
301
  switch (e.$$typeof) {
302
- case v:
303
- return Me(e.render);
302
+ case l:
303
+ return Ze(e.render);
304
304
  case h:
305
- return re(e.type, t, u);
306
- case x: {
305
+ return ee(e.type, t, a);
306
+ case w: {
307
307
  var c = e, p = c._payload, _ = c._init;
308
308
  try {
309
- return re(_(p), t, u);
309
+ return ee(_(p), t, a);
310
310
  } catch {
311
311
  }
312
312
  }
313
313
  }
314
314
  return "";
315
315
  }
316
- var te = Object.prototype.hasOwnProperty, we = {}, Te = g.ReactDebugCurrentFrame;
317
- function ne(e) {
316
+ var re = Object.prototype.hasOwnProperty, Te = {}, Ce = P.ReactDebugCurrentFrame;
317
+ function te(e) {
318
318
  if (e) {
319
- var t = e._owner, u = re(e.type, e._source, t ? t.type : null);
320
- Te.setExtraStackFrame(u);
319
+ var t = e._owner, a = ee(e.type, e._source, t ? t.type : null);
320
+ Ce.setExtraStackFrame(a);
321
321
  } else
322
- Te.setExtraStackFrame(null);
322
+ Ce.setExtraStackFrame(null);
323
323
  }
324
- function er(e, t, u, c, p) {
324
+ function Me(e, t, a, c, p) {
325
325
  {
326
- var _ = Function.call.bind(te);
327
- for (var d in e)
328
- if (_(e, d)) {
329
- var l = void 0;
326
+ var _ = Function.call.bind(re);
327
+ for (var v in e)
328
+ if (_(e, v)) {
329
+ var d = void 0;
330
330
  try {
331
- if (typeof e[d] != "function") {
332
- var C = Error((c || "React class") + ": " + u + " type `" + d + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[d] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
331
+ if (typeof e[v] != "function") {
332
+ var C = Error((c || "React class") + ": " + a + " type `" + v + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[v] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
333
333
  throw C.name = "Invariant Violation", C;
334
334
  }
335
- l = e[d](t, d, c, u, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
335
+ d = e[v](t, v, c, a, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
336
336
  } catch (E) {
337
- l = E;
337
+ d = E;
338
338
  }
339
- l && !(l instanceof Error) && (ne(p), b("%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).", c || "React class", u, d, typeof l), ne(null)), l instanceof Error && !(l.message in we) && (we[l.message] = !0, ne(p), b("Failed %s type: %s", u, l.message), ne(null));
339
+ d && !(d instanceof Error) && (te(p), b("%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).", c || "React class", a, v, typeof d), te(null)), d instanceof Error && !(d.message in Te) && (Te[d.message] = !0, te(p), b("Failed %s type: %s", a, d.message), te(null));
340
340
  }
341
341
  }
342
342
  }
343
- var rr = Array.isArray;
344
- function ce(e) {
345
- return rr(e);
343
+ var er = Array.isArray;
344
+ function ie(e) {
345
+ return er(e);
346
346
  }
347
- function tr(e) {
347
+ function rr(e) {
348
348
  {
349
- var t = typeof Symbol == "function" && Symbol.toStringTag, u = t && e[Symbol.toStringTag] || e.constructor.name || "Object";
350
- return u;
349
+ var t = typeof Symbol == "function" && Symbol.toStringTag, a = t && e[Symbol.toStringTag] || e.constructor.name || "Object";
350
+ return a;
351
351
  }
352
352
  }
353
- function nr(e) {
353
+ function tr(e) {
354
354
  try {
355
- return Ce(e), !1;
355
+ return xe(e), !1;
356
356
  } catch {
357
357
  return !0;
358
358
  }
359
359
  }
360
- function Ce(e) {
360
+ function xe(e) {
361
361
  return "" + e;
362
362
  }
363
363
  function Se(e) {
364
- if (nr(e))
365
- return b("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", tr(e)), Ce(e);
364
+ if (tr(e))
365
+ return b("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", rr(e)), xe(e);
366
366
  }
367
- var Pe = g.ReactCurrentOwner, or = {
367
+ var Pe = P.ReactCurrentOwner, nr = {
368
368
  key: !0,
369
369
  ref: !0,
370
370
  __self: !0,
371
371
  __source: !0
372
372
  }, Oe, ke;
373
- function ar(e) {
374
- if (te.call(e, "ref")) {
373
+ function or(e) {
374
+ if (re.call(e, "ref")) {
375
375
  var t = Object.getOwnPropertyDescriptor(e, "ref").get;
376
376
  if (t && t.isReactWarning)
377
377
  return !1;
378
378
  }
379
379
  return e.ref !== void 0;
380
380
  }
381
- function ur(e) {
382
- if (te.call(e, "key")) {
381
+ function ar(e) {
382
+ if (re.call(e, "key")) {
383
383
  var t = Object.getOwnPropertyDescriptor(e, "key").get;
384
384
  if (t && t.isReactWarning)
385
385
  return !1;
386
386
  }
387
387
  return e.key !== void 0;
388
388
  }
389
- function ir(e, t) {
389
+ function ur(e, t) {
390
390
  typeof e.ref == "string" && Pe.current;
391
391
  }
392
- function cr(e, t) {
392
+ function ir(e, t) {
393
393
  {
394
- var u = function() {
394
+ var a = function() {
395
395
  Oe || (Oe = !0, b("%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)", t));
396
396
  };
397
- u.isReactWarning = !0, Object.defineProperty(e, "key", {
398
- get: u,
397
+ a.isReactWarning = !0, Object.defineProperty(e, "key", {
398
+ get: a,
399
399
  configurable: !0
400
400
  });
401
401
  }
402
402
  }
403
- function sr(e, t) {
403
+ function cr(e, t) {
404
404
  {
405
- var u = function() {
405
+ var a = function() {
406
406
  ke || (ke = !0, b("%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)", t));
407
407
  };
408
- u.isReactWarning = !0, Object.defineProperty(e, "ref", {
409
- get: u,
408
+ a.isReactWarning = !0, Object.defineProperty(e, "ref", {
409
+ get: a,
410
410
  configurable: !0
411
411
  });
412
412
  }
413
413
  }
414
- var fr = function(e, t, u, c, p, _, d) {
415
- var l = {
414
+ var sr = function(e, t, a, c, p, _, v) {
415
+ var d = {
416
416
  // This tag allows us to uniquely identify this as a React Element
417
- $$typeof: a,
417
+ $$typeof: o,
418
418
  // Built-in properties that belong on the element
419
419
  type: e,
420
420
  key: t,
421
- ref: u,
422
- props: d,
421
+ ref: a,
422
+ props: v,
423
423
  // Record the component responsible for creating this element.
424
424
  _owner: _
425
425
  };
426
- return l._store = {}, Object.defineProperty(l._store, "validated", {
426
+ return d._store = {}, Object.defineProperty(d._store, "validated", {
427
427
  configurable: !1,
428
428
  enumerable: !1,
429
429
  writable: !0,
430
430
  value: !1
431
- }), Object.defineProperty(l, "_self", {
431
+ }), Object.defineProperty(d, "_self", {
432
432
  configurable: !1,
433
433
  enumerable: !1,
434
434
  writable: !1,
435
435
  value: c
436
- }), Object.defineProperty(l, "_source", {
436
+ }), Object.defineProperty(d, "_source", {
437
437
  configurable: !1,
438
438
  enumerable: !1,
439
439
  writable: !1,
440
440
  value: p
441
- }), Object.freeze && (Object.freeze(l.props), Object.freeze(l)), l;
441
+ }), Object.freeze && (Object.freeze(d.props), Object.freeze(d)), d;
442
442
  };
443
- function lr(e, t, u, c, p) {
443
+ function fr(e, t, a, c, p) {
444
444
  {
445
- var _, d = {}, l = null, C = null;
446
- u !== void 0 && (Se(u), l = "" + u), ur(t) && (Se(t.key), l = "" + t.key), ar(t) && (C = t.ref, ir(t, p));
445
+ var _, v = {}, d = null, C = null;
446
+ a !== void 0 && (Se(a), d = "" + a), ar(t) && (Se(t.key), d = "" + t.key), or(t) && (C = t.ref, ur(t, p));
447
447
  for (_ in t)
448
- te.call(t, _) && !or.hasOwnProperty(_) && (d[_] = t[_]);
448
+ re.call(t, _) && !nr.hasOwnProperty(_) && (v[_] = t[_]);
449
449
  if (e && e.defaultProps) {
450
450
  var E = e.defaultProps;
451
451
  for (_ in E)
452
- d[_] === void 0 && (d[_] = E[_]);
452
+ v[_] === void 0 && (v[_] = E[_]);
453
453
  }
454
- if (l || C) {
455
- var R = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
456
- l && cr(d, R), C && sr(d, R);
454
+ if (d || C) {
455
+ var m = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
456
+ d && ir(v, m), C && cr(v, m);
457
457
  }
458
- return fr(e, l, C, p, c, Pe.current, d);
458
+ return sr(e, d, C, p, c, Pe.current, v);
459
459
  }
460
460
  }
461
- var se = g.ReactCurrentOwner, je = g.ReactDebugCurrentFrame;
462
- function U(e) {
461
+ var ce = P.ReactCurrentOwner, je = P.ReactDebugCurrentFrame;
462
+ function W(e) {
463
463
  if (e) {
464
- var t = e._owner, u = re(e.type, e._source, t ? t.type : null);
465
- je.setExtraStackFrame(u);
464
+ var t = e._owner, a = ee(e.type, e._source, t ? t.type : null);
465
+ je.setExtraStackFrame(a);
466
466
  } else
467
467
  je.setExtraStackFrame(null);
468
468
  }
469
- var fe;
470
- fe = !1;
471
- function le(e) {
472
- return typeof e == "object" && e !== null && e.$$typeof === a;
469
+ var se;
470
+ se = !1;
471
+ function fe(e) {
472
+ return typeof e == "object" && e !== null && e.$$typeof === o;
473
473
  }
474
474
  function De() {
475
475
  {
476
- if (se.current) {
477
- var e = L(se.current.type);
476
+ if (ce.current) {
477
+ var e = Y(ce.current.type);
478
478
  if (e)
479
479
  return `
480
480
 
@@ -483,18 +483,18 @@ Check the render method of \`` + e + "`.";
483
483
  return "";
484
484
  }
485
485
  }
486
- function dr(e) {
486
+ function lr(e) {
487
487
  return "";
488
488
  }
489
489
  var Fe = {};
490
- function vr(e) {
490
+ function dr(e) {
491
491
  {
492
492
  var t = De();
493
493
  if (!t) {
494
- var u = typeof e == "string" ? e : e.displayName || e.name;
495
- u && (t = `
494
+ var a = typeof e == "string" ? e : e.displayName || e.name;
495
+ a && (t = `
496
496
 
497
- Check the top-level render call using <` + u + ">.");
497
+ Check the top-level render call using <` + a + ">.");
498
498
  }
499
499
  return t;
500
500
  }
@@ -504,113 +504,113 @@ Check the top-level render call using <` + u + ">.");
504
504
  if (!e._store || e._store.validated || e.key != null)
505
505
  return;
506
506
  e._store.validated = !0;
507
- var u = vr(t);
508
- if (Fe[u])
507
+ var a = dr(t);
508
+ if (Fe[a])
509
509
  return;
510
- Fe[u] = !0;
510
+ Fe[a] = !0;
511
511
  var c = "";
512
- e && e._owner && e._owner !== se.current && (c = " It was passed a child from " + L(e._owner.type) + "."), U(e), b('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', u, c), U(null);
512
+ e && e._owner && e._owner !== ce.current && (c = " It was passed a child from " + Y(e._owner.type) + "."), W(e), b('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', a, c), W(null);
513
513
  }
514
514
  }
515
- function Ie(e, t) {
515
+ function Ne(e, t) {
516
516
  {
517
517
  if (typeof e != "object")
518
518
  return;
519
- if (ce(e))
520
- for (var u = 0; u < e.length; u++) {
521
- var c = e[u];
522
- le(c) && Ae(c, t);
519
+ if (ie(e))
520
+ for (var a = 0; a < e.length; a++) {
521
+ var c = e[a];
522
+ fe(c) && Ae(c, t);
523
523
  }
524
- else if (le(e))
524
+ else if (fe(e))
525
525
  e._store && (e._store.validated = !0);
526
526
  else if (e) {
527
- var p = $(e);
527
+ var p = R(e);
528
528
  if (typeof p == "function" && p !== e.entries)
529
- for (var _ = p.call(e), d; !(d = _.next()).done; )
530
- le(d.value) && Ae(d.value, t);
529
+ for (var _ = p.call(e), v; !(v = _.next()).done; )
530
+ fe(v.value) && Ae(v.value, t);
531
531
  }
532
532
  }
533
533
  }
534
- function pr(e) {
534
+ function vr(e) {
535
535
  {
536
536
  var t = e.type;
537
537
  if (t == null || typeof t == "string")
538
538
  return;
539
- var u;
539
+ var a;
540
540
  if (typeof t == "function")
541
- u = t.propTypes;
542
- else if (typeof t == "object" && (t.$$typeof === v || // Note: Memo only checks outer props here.
541
+ a = t.propTypes;
542
+ else if (typeof t == "object" && (t.$$typeof === l || // Note: Memo only checks outer props here.
543
543
  // Inner props are checked in the reconciler.
544
544
  t.$$typeof === h))
545
- u = t.propTypes;
545
+ a = t.propTypes;
546
546
  else
547
547
  return;
548
- if (u) {
549
- var c = L(t);
550
- er(u, e.props, "prop", c, e);
551
- } else if (t.PropTypes !== void 0 && !fe) {
552
- fe = !0;
553
- var p = L(t);
548
+ if (a) {
549
+ var c = Y(t);
550
+ Me(a, e.props, "prop", c, e);
551
+ } else if (t.PropTypes !== void 0 && !se) {
552
+ se = !0;
553
+ var p = Y(t);
554
554
  b("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", p || "Unknown");
555
555
  }
556
556
  typeof t.getDefaultProps == "function" && !t.getDefaultProps.isReactClassApproved && b("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
557
557
  }
558
558
  }
559
- function _r(e) {
559
+ function pr(e) {
560
560
  {
561
- for (var t = Object.keys(e.props), u = 0; u < t.length; u++) {
562
- var c = t[u];
561
+ for (var t = Object.keys(e.props), a = 0; a < t.length; a++) {
562
+ var c = t[a];
563
563
  if (c !== "children" && c !== "key") {
564
- U(e), b("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", c), U(null);
564
+ W(e), b("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", c), W(null);
565
565
  break;
566
566
  }
567
567
  }
568
- e.ref !== null && (U(e), b("Invalid attribute `ref` supplied to `React.Fragment`."), U(null));
568
+ e.ref !== null && (W(e), b("Invalid attribute `ref` supplied to `React.Fragment`."), W(null));
569
569
  }
570
570
  }
571
- function Ne(e, t, u, c, p, _) {
571
+ function Ve(e, t, a, c, p, _) {
572
572
  {
573
- var d = Je(e);
574
- if (!d) {
575
- var l = "";
576
- (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (l += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
577
- var C = dr();
578
- C ? l += C : l += De();
573
+ var v = Ke(e);
574
+ if (!v) {
575
+ var d = "";
576
+ (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (d += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
577
+ var C = lr();
578
+ C ? d += C : d += De();
579
579
  var E;
580
- e === null ? E = "null" : ce(e) ? E = "array" : e !== void 0 && e.$$typeof === a ? (E = "<" + (L(e.type) || "Unknown") + " />", l = " Did you accidentally export a JSX literal instead of a component?") : E = typeof e, b("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", E, l);
580
+ e === null ? E = "null" : ie(e) ? E = "array" : e !== void 0 && e.$$typeof === o ? (E = "<" + (Y(e.type) || "Unknown") + " />", d = " Did you accidentally export a JSX literal instead of a component?") : E = typeof e, b("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", E, d);
581
581
  }
582
- var R = lr(e, t, u, p, _);
583
- if (R == null)
584
- return R;
585
- if (d) {
586
- var O = t.children;
587
- if (O !== void 0)
582
+ var m = fr(e, t, a, p, _);
583
+ if (m == null)
584
+ return m;
585
+ if (v) {
586
+ var k = t.children;
587
+ if (k !== void 0)
588
588
  if (c)
589
- if (ce(O)) {
590
- for (var G = 0; G < O.length; G++)
591
- Ie(O[G], e);
592
- Object.freeze && Object.freeze(O);
589
+ if (ie(k)) {
590
+ for (var U = 0; U < k.length; U++)
591
+ Ne(k[U], e);
592
+ Object.freeze && Object.freeze(k);
593
593
  } else
594
594
  b("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
595
595
  else
596
- Ie(O, e);
596
+ Ne(k, e);
597
597
  }
598
- return e === o ? _r(R) : pr(R), R;
598
+ return e === u ? pr(m) : vr(m), m;
599
599
  }
600
600
  }
601
- function gr(e, t, u) {
602
- return Ne(e, t, u, !0);
601
+ function _r(e, t, a) {
602
+ return Ve(e, t, a, !0);
603
603
  }
604
- function hr(e, t, u) {
605
- return Ne(e, t, u, !1);
604
+ function gr(e, t, a) {
605
+ return Ve(e, t, a, !1);
606
606
  }
607
- var br = hr, Er = gr;
608
- z.Fragment = o, z.jsx = br, z.jsxs = Er;
609
- }()), z;
607
+ var hr = gr, br = _r;
608
+ K.Fragment = u, K.jsx = hr, K.jsxs = br;
609
+ }()), K;
610
610
  }
611
- process.env.NODE_ENV === "production" ? de.exports = Rr() : de.exports = mr();
612
- var I = de.exports;
613
- const M = We({
611
+ process.env.NODE_ENV === "production" ? le.exports = Er() : le.exports = Rr();
612
+ var V = le.exports;
613
+ const X = We({
614
614
  rootValue: /* @__PURE__ */ new Set(),
615
615
  setRootValue: () => {
616
616
  },
@@ -624,300 +624,289 @@ const M = We({
624
624
  removeNode: () => {
625
625
  }
626
626
  });
627
- function yr() {
628
- const r = H(/* @__PURE__ */ new Map([
627
+ function mr() {
628
+ const r = J(/* @__PURE__ */ new Map([
629
629
  ["__root__", { value: "__root__", parent: "", index: 0, isGroup: !0, ref: { current: null } }]
630
630
  ]));
631
- return [r, (o, i, f, m, s) => {
632
- var v;
633
- (v = r.current) == null || v.set(o, { value: o, parent: i, index: f, isGroup: m, ref: s });
634
- }, (o) => {
631
+ return [r, (u, i, s, y, f) => {
632
+ var l;
633
+ (l = r.current) == null || l.set(u, { value: u, parent: i, index: s, isGroup: y, ref: f });
634
+ }, (u) => {
635
635
  var i;
636
- (i = r.current) == null || i.delete(o);
636
+ (i = r.current) == null || i.delete(u);
637
637
  }];
638
638
  }
639
- function Be(r, a) {
639
+ function Be(r, o) {
640
640
  if (!r.current) return "";
641
- for (const [n, o] of r.current)
642
- if (o.parent == a && o.index == 0)
643
- return o.value;
641
+ for (const [n, u] of r.current)
642
+ if (u.parent == o && u.index == 0)
643
+ return u.value;
644
644
  return "";
645
645
  }
646
- function xr(r, a) {
646
+ function yr(r, o) {
647
647
  if (!r.current) return "";
648
- const n = r.current.get(a);
648
+ const n = r.current.get(o);
649
649
  if (n) {
650
- for (const [o, i] of r.current)
650
+ for (const [u, i] of r.current)
651
651
  if (i.parent == n.parent && i.index == n.index - 1)
652
652
  return i.value;
653
653
  return "";
654
654
  } else
655
655
  return "";
656
656
  }
657
- function wr(r, a) {
657
+ function wr(r, o) {
658
658
  if (!r.current) return "";
659
- const n = r.current.get(a);
659
+ const n = r.current.get(o);
660
660
  if (n) {
661
661
  if (n.index == 0)
662
662
  return n.parent;
663
663
  {
664
- let o = r.current.get(xr(r, n.value));
665
- for (; o && o.isGroup; ) {
666
- const i = r.current.get(qe(r, o.value));
664
+ let u = r.current.get(yr(r, n.value));
665
+ for (; u && u.isGroup; ) {
666
+ const i = r.current.get(qe(r, u.value));
667
667
  if (!i)
668
- return o.value;
669
- o = i;
668
+ return u.value;
669
+ u = i;
670
670
  }
671
- return o ? o.value : "";
671
+ return u ? u.value : "";
672
672
  }
673
673
  } else
674
674
  return "";
675
675
  }
676
- function Tr(r, a) {
676
+ function Tr(r, o) {
677
677
  if (!r.current) return "";
678
- const n = r.current.get(a);
678
+ const n = r.current.get(o);
679
679
  if (n) {
680
- for (const [o, i] of r.current)
680
+ for (const [u, i] of r.current)
681
681
  if (i.parent == n.parent && i.index == n.index + 1)
682
682
  return i.value;
683
683
  return "";
684
684
  } else
685
685
  return "";
686
686
  }
687
- function Cr(r, a) {
687
+ function Cr(r, o) {
688
688
  if (!r.current) return "";
689
- const n = r.current.get(a);
689
+ const n = r.current.get(o);
690
690
  if (n) {
691
691
  if (n.isGroup) {
692
- const i = Be(r, a);
692
+ const i = Be(r, o);
693
693
  if (i)
694
694
  return i;
695
695
  }
696
- let o = n;
696
+ let u = n;
697
697
  for (; ; ) {
698
- const i = Tr(r, o.value);
698
+ const i = Tr(r, u.value);
699
699
  if (i)
700
700
  return i;
701
701
  {
702
- const f = r.current.get(o.parent);
703
- if (!f || o.value == "__root__")
702
+ const s = r.current.get(u.parent);
703
+ if (!s || u.value == "__root__")
704
704
  return "";
705
- o = f;
705
+ u = s;
706
706
  }
707
707
  }
708
708
  } else
709
709
  return "";
710
710
  }
711
- function Sr(r) {
711
+ function xr(r) {
712
712
  if (!r.current) return "";
713
- for (const [a, n] of r.current)
713
+ for (const [o, n] of r.current)
714
714
  if (n.parent == "__root__" && n.index == 0)
715
715
  return n.value;
716
716
  return "";
717
717
  }
718
- function qe(r, a) {
718
+ function qe(r, o) {
719
719
  if (!r.current) return "";
720
720
  let n = null;
721
- for (const [o, i] of r.current)
722
- i.parent == a && (!n || i.index > n.index) && (n = i);
721
+ for (const [u, i] of r.current)
722
+ i.parent == o && (!n || i.index > n.index) && (n = i);
723
723
  return n ? n.value : "";
724
724
  }
725
- function Pr(r) {
725
+ function Sr(r) {
726
726
  if (!r.current) return "";
727
- let a = r.current.get("__root__");
728
- for (; a && a.isGroup; ) {
729
- const n = r.current.get(qe(r, a.value));
727
+ let o = r.current.get("__root__");
728
+ for (; o && o.isGroup; ) {
729
+ const n = r.current.get(qe(r, o.value));
730
730
  if (!n)
731
- return a.value;
732
- a = n;
731
+ return o.value;
732
+ o = n;
733
733
  }
734
- return a ? a.value : "";
734
+ return o ? o.value : "";
735
735
  }
736
- const B = We({
736
+ const G = We({
737
737
  parent: "",
738
- getIndex: () => -1,
739
738
  depth: -1
740
739
  });
741
- function Or(r, a, n) {
742
- const [o, i] = Ue(n), f = r !== void 0 ? r : o;
743
- return [f, (s) => {
744
- const v = typeof s == "function" ? s(f) : s;
745
- a && a(v), i(v);
740
+ function Pr(r, o, n) {
741
+ const [u, i] = Ue(n), s = r !== void 0 ? r : u;
742
+ return [s, (f) => {
743
+ const l = typeof f == "function" ? f(s) : f;
744
+ o && o(l), i(l);
746
745
  }];
747
746
  }
748
- function X(r, a) {
749
- return function(o) {
750
- const i = o.defaultPrevented;
751
- i && (o.defaultPrevented = !1), r == null || r(o);
752
- let f;
753
- return o.defaultPrevented || (f = a == null ? void 0 : a(o), i && (o.defaultPrevented = !0)), f;
747
+ function z(r, o) {
748
+ return function(u) {
749
+ const i = u.defaultPrevented;
750
+ i && (u.defaultPrevented = !1), r == null || r(u);
751
+ let s;
752
+ return u.defaultPrevented || (s = o == null ? void 0 : o(u), i && (u.defaultPrevented = !0)), s;
754
753
  };
755
754
  }
756
- function ve(...r) {
757
- return Ge((a) => {
755
+ function de(...r) {
756
+ return Ge((o) => {
758
757
  for (const n of r)
759
- typeof n == "function" ? n(a) : n != null && (n.current = a);
758
+ typeof n == "function" ? n(o) : n != null && (n.current = o);
760
759
  }, [r]);
761
760
  }
762
- function Ke() {
763
- let r = -1;
764
- const a = {};
765
- function n(o) {
766
- return a[o] == null && (a[o] = ++r), a[o];
767
- }
768
- return n;
769
- }
770
- const kr = ["ArrowRight", "ArrowUp", "ArrowLeft", "ArrowDown", "Home", "End", "Enter"];
771
- function jr(r, a) {
772
- var o, i, f;
773
- const n = Be(r, a);
774
- n && ((f = (i = (o = r.current) == null ? void 0 : o.get(n)) == null ? void 0 : i.ref.current) == null || f.focus());
761
+ const Or = ["ArrowRight", "ArrowUp", "ArrowLeft", "ArrowDown", "Home", "End", "Enter"];
762
+ function kr(r, o) {
763
+ var u, i, s;
764
+ const n = Be(r, o);
765
+ n && ((s = (i = (u = r.current) == null ? void 0 : u.get(n)) == null ? void 0 : i.ref.current) == null || s.focus());
775
766
  }
776
- function Dr(r, a) {
777
- var o, i, f, m, s;
778
- const n = (i = (o = r.current) == null ? void 0 : o.get(a)) == null ? void 0 : i.parent;
779
- n && n != "__root__" && ((s = (m = (f = r.current) == null ? void 0 : f.get(n)) == null ? void 0 : m.ref.current) == null || s.focus());
767
+ function jr(r, o) {
768
+ var u, i, s, y, f;
769
+ const n = (i = (u = r.current) == null ? void 0 : u.get(o)) == null ? void 0 : i.parent;
770
+ n && n != "__root__" && ((f = (y = (s = r.current) == null ? void 0 : s.get(n)) == null ? void 0 : y.ref.current) == null || f.focus());
780
771
  }
781
- function Fr(r, a) {
782
- var o, i, f;
783
- const n = wr(r, a);
784
- n && n != "__root__" && ((f = (i = (o = r.current) == null ? void 0 : o.get(n)) == null ? void 0 : i.ref.current) == null || f.focus());
772
+ function Dr(r, o) {
773
+ var u, i, s;
774
+ const n = wr(r, o);
775
+ n && n != "__root__" && ((s = (i = (u = r.current) == null ? void 0 : u.get(n)) == null ? void 0 : i.ref.current) == null || s.focus());
785
776
  }
786
- function Ar(r, a) {
787
- var o, i, f;
788
- const n = Cr(r, a);
789
- n && n != "__root__" && ((f = (i = (o = r.current) == null ? void 0 : o.get(n)) == null ? void 0 : i.ref.current) == null || f.focus());
777
+ function Fr(r, o) {
778
+ var u, i, s;
779
+ const n = Cr(r, o);
780
+ n && n != "__root__" && ((s = (i = (u = r.current) == null ? void 0 : u.get(n)) == null ? void 0 : i.ref.current) == null || s.focus());
790
781
  }
791
- function Ir(r) {
792
- var n, o, i;
793
- const a = Sr(r);
794
- a && a != "__root__" && ((i = (o = (n = r.current) == null ? void 0 : n.get(a)) == null ? void 0 : o.ref.current) == null || i.focus());
782
+ function Ar(r) {
783
+ var n, u, i;
784
+ const o = xr(r);
785
+ o && o != "__root__" && ((i = (u = (n = r.current) == null ? void 0 : n.get(o)) == null ? void 0 : u.ref.current) == null || i.focus());
795
786
  }
796
787
  function Nr(r) {
797
- var n, o, i;
798
- const a = Pr(r);
799
- a && a != "__root__" && ((i = (o = (n = r.current) == null ? void 0 : n.get(a)) == null ? void 0 : o.ref.current) == null || i.focus());
788
+ var n, u, i;
789
+ const o = Sr(r);
790
+ o && o != "__root__" && ((i = (u = (n = r.current) == null ? void 0 : n.get(o)) == null ? void 0 : u.ref.current) == null || i.focus());
800
791
  }
801
- const Vr = Z(({ value: r, onValueChange: a, defaultValue: n, defaultSelection: o, onKeyDown: i, ...f }, m) => {
802
- const [s, v, S] = yr(), y = Ke(), [h, x] = Or(r, a, n ?? /* @__PURE__ */ new Set()), [k, P] = Ue(""), V = H(null), $ = ve(V, m), g = H(""), b = Ge((w) => {
803
- var D;
804
- if (!(!kr.includes(w.key) || !s))
805
- switch (w.key) {
792
+ const Vr = H(({ value: r, onValueChange: o, defaultValue: n, defaultSelection: u, onKeyDown: i, ...s }, y) => {
793
+ const [f, l, x] = mr(), [g, h] = Pr(r, o, n ?? /* @__PURE__ */ new Set()), [w, S] = Ue(""), j = J(null), $ = de(j, y), R = J(""), P = Ge((T) => {
794
+ var F;
795
+ if (!(!Or.includes(T.key) || !f))
796
+ switch (T.key) {
806
797
  case "ArrowRight":
807
- const j = (D = s.current) == null ? void 0 : D.get(g.current);
808
- if (!j || !j.isGroup) break;
809
- w.preventDefault(), h.has(g.current) ? jr(s, g.current) : x((T) => /* @__PURE__ */ new Set([...T, g.current]));
798
+ const D = (F = f.current) == null ? void 0 : F.get(R.current);
799
+ if (!D || !D.isGroup) break;
800
+ T.preventDefault(), g.has(R.current) ? kr(f, R.current) : h((O) => /* @__PURE__ */ new Set([...O, R.current]));
810
801
  break;
811
802
  case "ArrowLeft":
812
- w.preventDefault(), h.has(g.current) ? x((T) => new Set([...T].filter((A) => A !== g.current))) : Dr(s, g.current);
803
+ T.preventDefault(), g.has(R.current) ? h((O) => new Set([...O].filter((N) => N !== R.current))) : jr(f, R.current);
813
804
  break;
814
805
  case "ArrowUp":
815
- w.preventDefault(), Fr(s, g.current);
806
+ T.preventDefault(), Dr(f, R.current);
816
807
  break;
817
808
  case "ArrowDown":
818
- w.preventDefault(), Ar(s, g.current);
809
+ T.preventDefault(), Fr(f, R.current);
819
810
  break;
820
811
  case "Home":
821
- w.preventDefault(), Ir(s);
812
+ T.preventDefault(), Ar(f);
822
813
  break;
823
814
  case "End":
824
- w.preventDefault(), Nr(s);
815
+ T.preventDefault(), Nr(f);
825
816
  break;
826
817
  case "Enter":
827
- w.preventDefault(), P(g.current), h.has(g.current) ? x((T) => new Set([...T].filter((A) => A !== g.current))) : x((T) => /* @__PURE__ */ new Set([...T, g.current]));
818
+ T.preventDefault(), S(R.current), g.has(R.current) ? h((O) => new Set([...O].filter((N) => N !== R.current))) : h((O) => /* @__PURE__ */ new Set([...O, R.current]));
828
819
  break;
829
820
  }
830
- }, [h]), Y = X(i, b);
831
- return /* @__PURE__ */ I.jsx(M.Provider, { value: { rootValue: h, setRootValue: x, selection: k, setSelection: P, focus: g, nodeMap: s, registerNode: v, removeNode: S }, children: /* @__PURE__ */ I.jsx(B.Provider, { value: { parent: "__root__", getIndex: y, depth: 0 }, children: /* @__PURE__ */ I.jsx(
821
+ }, [g]), b = z(i, P);
822
+ return /* @__PURE__ */ V.jsx(X.Provider, { value: { rootValue: g, setRootValue: h, selection: w, setSelection: S, focus: R, nodeMap: f, registerNode: l, removeNode: x }, children: /* @__PURE__ */ V.jsx(G.Provider, { value: { parent: "__root__", depth: 0 }, children: /* @__PURE__ */ V.jsx(
832
823
  "ul",
833
824
  {
834
825
  ref: $,
835
826
  role: "tree",
836
827
  "aria-multiselectable": "false",
837
- onKeyDown: Y,
838
- ...f
828
+ onKeyDown: b,
829
+ ...s
839
830
  }
840
831
  ) }) });
841
- }), $r = Z(({ value: r, onFocus: a, onClick: n, ...o }, i) => {
842
- const { selection: f, setSelection: m, focus: s, nodeMap: v, registerNode: S, removeNode: y } = N(M), { parent: h, getIndex: x, depth: k } = N(B), P = H(null), V = ve(P, i), $ = X(a, b), g = X(n, Y);
843
- function b(D) {
844
- var j, T, A, q;
845
- (A = (T = (j = v.current) == null ? void 0 : j.get(s.current)) == null ? void 0 : T.ref.current) == null || A.setAttribute("tabindex", "-1"), (q = P.current) == null || q.setAttribute("tabindex", "0"), s.current = r, D.stopPropagation();
832
+ }), Ir = H(({ value: r, index: o, onFocus: n, onClick: u, ...i }, s) => {
833
+ const { selection: y, setSelection: f, focus: l, nodeMap: x, registerNode: g, removeNode: h } = I(X), { parent: w, depth: S } = I(G), j = J(null), $ = de(j, s), R = z(n, b), P = z(u, T);
834
+ function b(F) {
835
+ var D, O, N, Z;
836
+ (N = (O = (D = x.current) == null ? void 0 : D.get(l.current)) == null ? void 0 : O.ref.current) == null || N.setAttribute("tabindex", "-1"), (Z = j.current) == null || Z.setAttribute("tabindex", "0"), l.current = r, F.stopPropagation();
846
837
  }
847
- function Y() {
848
- m(r);
838
+ function T() {
839
+ f(r);
849
840
  }
850
- const w = x(r);
851
- return s.current == "" && h == "__root__" && w == 0 && (s.current = r), oe(() => (S(r, h, w, !1, P), () => y(r)), []), oe(() => () => {
852
- s.current == r && (s.current = "");
853
- }, []), /* @__PURE__ */ I.jsx(
841
+ return l.current == "" && w == "__root__" && o == 0 && (l.current = r), ne(() => (g(r, w, o, !1, j), () => h(r)), [r, w, o]), ne(() => () => {
842
+ l.current == r && (l.current = "");
843
+ }, []), /* @__PURE__ */ V.jsx(
854
844
  "li",
855
845
  {
856
- ref: V,
846
+ ref: $,
857
847
  role: "treeitem",
858
- "aria-selected": f == r,
859
- tabIndex: s.current == r ? 0 : -1,
860
- onFocus: $,
861
- onClick: g,
862
- "data-depth": k,
863
- ...o
848
+ "aria-selected": y == r,
849
+ tabIndex: l.current == r ? 0 : -1,
850
+ onFocus: R,
851
+ onClick: P,
852
+ "data-depth": S,
853
+ ...i
864
854
  }
865
855
  );
866
- }), Yr = Z(({ value: r, onFocus: a, ...n }, o) => {
867
- const i = Ke(), { rootValue: f, selection: m, focus: s, nodeMap: v, registerNode: S, removeNode: y } = N(M), { parent: h, getIndex: x, depth: k } = N(B), P = H(null), V = ve(P, o), $ = X(a, g);
868
- function g(Y) {
869
- var w, D, j, T;
870
- (j = (D = (w = v.current) == null ? void 0 : w.get(s.current)) == null ? void 0 : D.ref.current) == null || j.setAttribute("tabindex", "-1"), (T = P.current) == null || T.setAttribute("tabindex", "0"), s.current = r, Y.stopPropagation();
856
+ }), $r = H(({ value: r, index: o, onFocus: n, ...u }, i) => {
857
+ const { rootValue: s, selection: y, focus: f, nodeMap: l, registerNode: x, removeNode: g } = I(X), { parent: h, depth: w } = I(G), S = J(null), j = de(S, i), $ = z(n, R);
858
+ function R(P) {
859
+ var b, T, F, D;
860
+ (F = (T = (b = l.current) == null ? void 0 : b.get(f.current)) == null ? void 0 : T.ref.current) == null || F.setAttribute("tabindex", "-1"), (D = S.current) == null || D.setAttribute("tabindex", "0"), f.current = r, P.stopPropagation();
871
861
  }
872
- const b = x(r);
873
- return s.current == "" && h == "__root__" && b == 0 && (s.current = r), oe(() => (S(r, h, b, !0, P), () => y(r)), []), oe(() => () => {
874
- s.current == r && (s.current = "");
875
- }, []), /* @__PURE__ */ I.jsx(B.Provider, { value: { parent: r, getIndex: i, depth: k + 1 }, children: /* @__PURE__ */ I.jsx(
862
+ return f.current == "" && h == "__root__" && o == 0 && (f.current = r), ne(() => (x(r, h, o, !0, S), () => g(r)), [r, h, o]), ne(() => () => {
863
+ f.current == r && (f.current = "");
864
+ }, []), /* @__PURE__ */ V.jsx(G.Provider, { value: { parent: r, depth: w + 1 }, children: /* @__PURE__ */ V.jsx(
876
865
  "li",
877
866
  {
878
- ref: V,
867
+ ref: j,
879
868
  role: "treeitem",
880
- "data-state": f.has(r) ? "open" : "closed",
881
- "data-depth": k,
882
- "aria-expanded": f.has(r),
883
- "aria-selected": m == r,
884
- tabIndex: s.current == r ? 0 : -1,
869
+ "data-state": s.has(r) ? "open" : "closed",
870
+ "data-depth": w,
871
+ "aria-expanded": s.has(r),
872
+ "aria-selected": y == r,
873
+ tabIndex: f.current == r ? 0 : -1,
885
874
  onFocus: $,
886
- ...n
875
+ ...u
887
876
  }
888
877
  ) });
889
- }), Lr = Z(({ onClick: r, ...a }, n) => {
890
- const { setRootValue: o, setSelection: i } = N(M), { parent: f } = N(B), m = X(r, s);
891
- function s() {
892
- i(f), o((v) => v.has(f) ? new Set([...v].filter((S) => S !== f)) : /* @__PURE__ */ new Set([...v, f]));
878
+ }), Yr = H(({ onClick: r, ...o }, n) => {
879
+ const { setRootValue: u, setSelection: i } = I(X), { parent: s } = I(G), y = z(r, f);
880
+ function f() {
881
+ i(s), u((l) => l.has(s) ? new Set([...l].filter((x) => x !== s)) : /* @__PURE__ */ new Set([...l, s]));
893
882
  }
894
- return /* @__PURE__ */ I.jsx(
883
+ return /* @__PURE__ */ V.jsx(
895
884
  "div",
896
885
  {
897
886
  ref: n,
898
- onClick: m,
899
- ...a
887
+ onClick: y,
888
+ ...o
900
889
  }
901
890
  );
902
- }), Wr = Z(({ ...r }, a) => {
903
- const { rootValue: n } = N(M), { parent: o } = N(B);
904
- if (n.has(o))
905
- return /* @__PURE__ */ I.jsx(
891
+ }), Lr = H(({ ...r }, o) => {
892
+ const { rootValue: n } = I(X), { parent: u } = I(G);
893
+ if (n.has(u))
894
+ return /* @__PURE__ */ V.jsx(
906
895
  "ul",
907
896
  {
908
- ref: a,
897
+ ref: o,
909
898
  role: "group",
910
899
  ...r
911
900
  }
912
901
  );
913
- }), Gr = {
902
+ }), Ur = {
914
903
  Root: Vr,
915
- Group: Yr,
916
- Trigger: Lr,
917
- Content: Wr,
918
- Item: $r
904
+ Group: $r,
905
+ Trigger: Yr,
906
+ Content: Lr,
907
+ Item: Ir
919
908
  };
920
909
  export {
921
- Gr as default
910
+ Ur as default
922
911
  };
923
912
  //# sourceMappingURL=index.js.map