@valbuild/ui 0.40.0 → 0.41.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.
@@ -1982,7 +1982,7 @@ function requireReact_production_min() {
1982
1982
  H.constructor = G;
1983
1983
  C(H, E.prototype);
1984
1984
  H.isPureReactComponent = true;
1985
- var I = Array.isArray, J = Object.prototype.hasOwnProperty, K = { current: null }, L = { key: true, ref: true, __self: true, __source: true };
1985
+ var I = Array.isArray, J = Object.prototype.hasOwnProperty, K2 = { current: null }, L = { key: true, ref: true, __self: true, __source: true };
1986
1986
  function M(a, b, e) {
1987
1987
  var d, c = {}, k = null, h = null;
1988
1988
  if (null != b)
@@ -1999,9 +1999,9 @@ function requireReact_production_min() {
1999
1999
  if (a && a.defaultProps)
2000
2000
  for (d in g = a.defaultProps, g)
2001
2001
  void 0 === c[d] && (c[d] = g[d]);
2002
- return { $$typeof: l, type: a, key: k, ref: h, props: c, _owner: K.current };
2002
+ return { $$typeof: l, type: a, key: k, ref: h, props: c, _owner: K2.current };
2003
2003
  }
2004
- function N(a, b) {
2004
+ function N2(a, b) {
2005
2005
  return { $$typeof: l, type: a.type, key: b, ref: a.ref, props: a.props, _owner: a._owner };
2006
2006
  }
2007
2007
  function O(a) {
@@ -2040,7 +2040,7 @@ function requireReact_production_min() {
2040
2040
  if (h)
2041
2041
  return h = a, c = c(h), a = "" === d ? "." + Q(h, 0) : d, I(c) ? (e = "", null != a && (e = a.replace(P, "$&/") + "/"), R(c, b, e, "", function(a2) {
2042
2042
  return a2;
2043
- })) : null != c && (O(c) && (c = N(c, e + (!c.key || h && h.key === c.key ? "" : ("" + c.key).replace(P, "$&/") + "/") + a)), b.push(c)), 1;
2043
+ })) : null != c && (O(c) && (c = N2(c, e + (!c.key || h && h.key === c.key ? "" : ("" + c.key).replace(P, "$&/") + "/") + a)), b.push(c)), 1;
2044
2044
  h = 0;
2045
2045
  d = "" === d ? "." : d + ":";
2046
2046
  if (I(a))
@@ -2082,7 +2082,7 @@ function requireReact_production_min() {
2082
2082
  return a._result.default;
2083
2083
  throw a._result;
2084
2084
  }
2085
- var U = { current: null }, V = { transition: null }, W = { ReactCurrentDispatcher: U, ReactCurrentBatchConfig: V, ReactCurrentOwner: K };
2085
+ var U = { current: null }, V = { transition: null }, W2 = { ReactCurrentDispatcher: U, ReactCurrentBatchConfig: V, ReactCurrentOwner: K2 };
2086
2086
  react_production_min.Children = { map: S, forEach: function(a, b, e) {
2087
2087
  S(a, function() {
2088
2088
  b.apply(this, arguments);
@@ -2108,13 +2108,13 @@ function requireReact_production_min() {
2108
2108
  react_production_min.PureComponent = G;
2109
2109
  react_production_min.StrictMode = q;
2110
2110
  react_production_min.Suspense = w;
2111
- react_production_min.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = W;
2111
+ react_production_min.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = W2;
2112
2112
  react_production_min.cloneElement = function(a, b, e) {
2113
2113
  if (null === a || void 0 === a)
2114
2114
  throw Error("React.cloneElement(...): The argument must be a React element, but you passed " + a + ".");
2115
2115
  var d = C({}, a.props), c = a.key, k = a.ref, h = a._owner;
2116
2116
  if (null != b) {
2117
- void 0 !== b.ref && (k = b.ref, h = K.current);
2117
+ void 0 !== b.ref && (k = b.ref, h = K2.current);
2118
2118
  void 0 !== b.key && (c = "" + b.key);
2119
2119
  if (a.type && a.type.defaultProps)
2120
2120
  var g = a.type.defaultProps;
@@ -2769,7 +2769,7 @@ function requireScheduler_production_min() {
2769
2769
  A = true, I(J);
2770
2770
  else {
2771
2771
  var b = h(t);
2772
- null !== b && K(H, b.startTime - a);
2772
+ null !== b && K2(H, b.startTime - a);
2773
2773
  }
2774
2774
  }
2775
2775
  function J(a, b) {
@@ -2796,7 +2796,7 @@ function requireScheduler_production_min() {
2796
2796
  var w = true;
2797
2797
  else {
2798
2798
  var m2 = h(t);
2799
- null !== m2 && K(H, m2.startTime - b);
2799
+ null !== m2 && K2(H, m2.startTime - b);
2800
2800
  w = false;
2801
2801
  }
2802
2802
  return w;
@@ -2804,7 +2804,7 @@ function requireScheduler_production_min() {
2804
2804
  v = null, y = c, z = false;
2805
2805
  }
2806
2806
  }
2807
- var N = false, O = null, L = -1, P = 5, Q = -1;
2807
+ var N2 = false, O = null, L = -1, P = 5, Q = -1;
2808
2808
  function M() {
2809
2809
  return exports.unstable_now() - Q < P ? false : true;
2810
2810
  }
@@ -2816,10 +2816,10 @@ function requireScheduler_production_min() {
2816
2816
  try {
2817
2817
  b = O(true, a);
2818
2818
  } finally {
2819
- b ? S() : (N = false, O = null);
2819
+ b ? S() : (N2 = false, O = null);
2820
2820
  }
2821
2821
  } else
2822
- N = false;
2822
+ N2 = false;
2823
2823
  }
2824
2824
  var S;
2825
2825
  if ("function" === typeof F)
@@ -2838,9 +2838,9 @@ function requireScheduler_production_min() {
2838
2838
  };
2839
2839
  function I(a) {
2840
2840
  O = a;
2841
- N || (N = true, S());
2841
+ N2 || (N2 = true, S());
2842
2842
  }
2843
- function K(a, b) {
2843
+ function K2(a, b) {
2844
2844
  L = D(function() {
2845
2845
  a(exports.unstable_now());
2846
2846
  }, b);
@@ -2928,7 +2928,7 @@ function requireScheduler_production_min() {
2928
2928
  }
2929
2929
  e = c + e;
2930
2930
  a = { id: u++, callback: b, priorityLevel: a, startTime: c, expirationTime: e, sortIndex: -1 };
2931
- c > d ? (a.sortIndex = c, f(t, a), null === h(r2) && a === h(t) && (B ? (E(L), L = -1) : B = true, K(H, c - d))) : (a.sortIndex = e, f(r2, a), A || z || (A = true, I(J)));
2931
+ c > d ? (a.sortIndex = c, f(t, a), null === h(r2) && a === h(t) && (B ? (E(L), L = -1) : B = true, K2(H, c - d))) : (a.sortIndex = e, f(r2, a), A || z || (A = true, I(J)));
2932
2932
  return a;
2933
2933
  };
2934
2934
  exports.unstable_shouldYield = M;
@@ -26597,7 +26597,7 @@ function requireReactDom_production_min() {
26597
26597
  a = a.updateQueue;
26598
26598
  b.updateQueue === a && (b.updateQueue = { baseState: a.baseState, firstBaseUpdate: a.firstBaseUpdate, lastBaseUpdate: a.lastBaseUpdate, shared: a.shared, effects: a.effects });
26599
26599
  }
26600
- function ch(a, b) {
26600
+ function ch3(a, b) {
26601
26601
  return { eventTime: a, lane: b, tag: 0, payload: null, callback: null, next: null };
26602
26602
  }
26603
26603
  function dh(a, b, c) {
@@ -26605,7 +26605,7 @@ function requireReactDom_production_min() {
26605
26605
  if (null === d)
26606
26606
  return null;
26607
26607
  d = d.shared;
26608
- if (0 !== (K & 2)) {
26608
+ if (0 !== (K2 & 2)) {
26609
26609
  var e = d.pending;
26610
26610
  null === e ? b.next = b : (b.next = e.next, e.next = b);
26611
26611
  d.pending = b;
@@ -26757,14 +26757,14 @@ function requireReactDom_production_min() {
26757
26757
  return (a = a._reactInternals) ? Vb(a) === a : false;
26758
26758
  }, enqueueSetState: function(a, b, c) {
26759
26759
  a = a._reactInternals;
26760
- var d = L(), e = lh(a), f = ch(d, e);
26760
+ var d = L(), e = lh(a), f = ch3(d, e);
26761
26761
  f.payload = b;
26762
26762
  void 0 !== c && null !== c && (f.callback = c);
26763
26763
  b = dh(a, f, e);
26764
26764
  null !== b && (mh(b, a, e, d), eh(b, a, e));
26765
26765
  }, enqueueReplaceState: function(a, b, c) {
26766
26766
  a = a._reactInternals;
26767
- var d = L(), e = lh(a), f = ch(d, e);
26767
+ var d = L(), e = lh(a), f = ch3(d, e);
26768
26768
  f.tag = 1;
26769
26769
  f.payload = b;
26770
26770
  void 0 !== c && null !== c && (f.callback = c);
@@ -26772,7 +26772,7 @@ function requireReactDom_production_min() {
26772
26772
  null !== b && (mh(b, a, e, d), eh(b, a, e));
26773
26773
  }, enqueueForceUpdate: function(a, b) {
26774
26774
  a = a._reactInternals;
26775
- var c = L(), d = lh(a), e = ch(c, d);
26775
+ var c = L(), d = lh(a), e = ch3(c, d);
26776
26776
  e.tag = 2;
26777
26777
  void 0 !== b && null !== b && (e.callback = b);
26778
26778
  b = dh(a, e, d);
@@ -27193,7 +27193,7 @@ function requireReactDom_production_min() {
27193
27193
  Nh[a]._workInProgressVersionPrimary = null;
27194
27194
  Nh.length = 0;
27195
27195
  }
27196
- var Ph = ua.ReactCurrentDispatcher, Qh = ua.ReactCurrentBatchConfig, Rh = 0, N = null, O = null, P = null, Sh = false, Th = false, Uh = 0, Vh = 0;
27196
+ var Ph = ua.ReactCurrentDispatcher, Qh = ua.ReactCurrentBatchConfig, Rh = 0, N2 = null, O = null, P = null, Sh = false, Th = false, Uh = 0, Vh = 0;
27197
27197
  function Q() {
27198
27198
  throw Error(p(321));
27199
27199
  }
@@ -27207,7 +27207,7 @@ function requireReactDom_production_min() {
27207
27207
  }
27208
27208
  function Xh(a, b, c, d, e, f) {
27209
27209
  Rh = f;
27210
- N = b;
27210
+ N2 = b;
27211
27211
  b.memoizedState = null;
27212
27212
  b.updateQueue = null;
27213
27213
  b.lanes = 0;
@@ -27230,7 +27230,7 @@ function requireReactDom_production_min() {
27230
27230
  Ph.current = ai;
27231
27231
  b = null !== O && null !== O.next;
27232
27232
  Rh = 0;
27233
- P = O = N = null;
27233
+ P = O = N2 = null;
27234
27234
  Sh = false;
27235
27235
  if (b)
27236
27236
  throw Error(p(300));
@@ -27243,16 +27243,16 @@ function requireReactDom_production_min() {
27243
27243
  }
27244
27244
  function ci() {
27245
27245
  var a = { memoizedState: null, baseState: null, baseQueue: null, queue: null, next: null };
27246
- null === P ? N.memoizedState = P = a : P = P.next = a;
27246
+ null === P ? N2.memoizedState = P = a : P = P.next = a;
27247
27247
  return P;
27248
27248
  }
27249
27249
  function di() {
27250
27250
  if (null === O) {
27251
- var a = N.alternate;
27251
+ var a = N2.alternate;
27252
27252
  a = null !== a ? a.memoizedState : null;
27253
27253
  } else
27254
27254
  a = O.next;
27255
- var b = null === P ? N.memoizedState : P.next;
27255
+ var b = null === P ? N2.memoizedState : P.next;
27256
27256
  if (null !== b)
27257
27257
  P = b, O = a;
27258
27258
  else {
@@ -27260,7 +27260,7 @@ function requireReactDom_production_min() {
27260
27260
  throw Error(p(310));
27261
27261
  O = a;
27262
27262
  a = { memoizedState: O.memoizedState, baseState: O.baseState, baseQueue: O.baseQueue, queue: O.queue, next: null };
27263
- null === P ? N.memoizedState = P = a : P = P.next = a;
27263
+ null === P ? N2.memoizedState = P = a : P = P.next = a;
27264
27264
  }
27265
27265
  return P;
27266
27266
  }
@@ -27299,7 +27299,7 @@ function requireReactDom_production_min() {
27299
27299
  next: null
27300
27300
  };
27301
27301
  null === k ? (h = k = q, g = d) : k = k.next = q;
27302
- N.lanes |= m2;
27302
+ N2.lanes |= m2;
27303
27303
  hh |= m2;
27304
27304
  }
27305
27305
  l = l.next;
@@ -27315,7 +27315,7 @@ function requireReactDom_production_min() {
27315
27315
  if (null !== a) {
27316
27316
  e = a;
27317
27317
  do
27318
- f = e.lane, N.lanes |= f, hh |= f, e = e.next;
27318
+ f = e.lane, N2.lanes |= f, hh |= f, e = e.next;
27319
27319
  while (e !== a);
27320
27320
  } else
27321
27321
  null === e && (c.lanes = 0);
@@ -27343,7 +27343,7 @@ function requireReactDom_production_min() {
27343
27343
  function hi() {
27344
27344
  }
27345
27345
  function ii(a, b) {
27346
- var c = N, d = di(), e = b(), f = !He(d.memoizedState, e);
27346
+ var c = N2, d = di(), e = b(), f = !He(d.memoizedState, e);
27347
27347
  f && (d.memoizedState = e, Ug = true);
27348
27348
  d = d.queue;
27349
27349
  ji(ki.bind(null, c, d, a), [a]);
@@ -27359,8 +27359,8 @@ function requireReactDom_production_min() {
27359
27359
  function ni(a, b, c) {
27360
27360
  a.flags |= 16384;
27361
27361
  a = { getSnapshot: b, value: c };
27362
- b = N.updateQueue;
27363
- null === b ? (b = { lastEffect: null, stores: null }, N.updateQueue = b, b.stores = [a]) : (c = b.stores, null === c ? b.stores = [a] : c.push(a));
27362
+ b = N2.updateQueue;
27363
+ null === b ? (b = { lastEffect: null, stores: null }, N2.updateQueue = b, b.stores = [a]) : (c = b.stores, null === c ? b.stores = [a] : c.push(a));
27364
27364
  }
27365
27365
  function mi(a, b, c, d) {
27366
27366
  b.value = c;
@@ -27392,13 +27392,13 @@ function requireReactDom_production_min() {
27392
27392
  b.memoizedState = b.baseState = a;
27393
27393
  a = { pending: null, interleaved: null, lanes: 0, dispatch: null, lastRenderedReducer: ei, lastRenderedState: a };
27394
27394
  b.queue = a;
27395
- a = a.dispatch = ri.bind(null, N, a);
27395
+ a = a.dispatch = ri.bind(null, N2, a);
27396
27396
  return [b.memoizedState, a];
27397
27397
  }
27398
27398
  function li(a, b, c, d) {
27399
27399
  a = { tag: a, create: b, destroy: c, deps: d, next: null };
27400
- b = N.updateQueue;
27401
- null === b ? (b = { lastEffect: null, stores: null }, N.updateQueue = b, b.lastEffect = a.next = a) : (c = b.lastEffect, null === c ? b.lastEffect = a.next = a : (d = c.next, c.next = a, a.next = d, b.lastEffect = a));
27400
+ b = N2.updateQueue;
27401
+ null === b ? (b = { lastEffect: null, stores: null }, N2.updateQueue = b, b.lastEffect = a.next = a) : (c = b.lastEffect, null === c ? b.lastEffect = a.next = a : (d = c.next, c.next = a, a.next = d, b.lastEffect = a));
27402
27402
  return a;
27403
27403
  }
27404
27404
  function si() {
@@ -27406,7 +27406,7 @@ function requireReactDom_production_min() {
27406
27406
  }
27407
27407
  function ti(a, b, c, d) {
27408
27408
  var e = ci();
27409
- N.flags |= a;
27409
+ N2.flags |= a;
27410
27410
  e.memoizedState = li(1 | b, c, void 0, void 0 === d ? null : d);
27411
27411
  }
27412
27412
  function ui(a, b, c, d) {
@@ -27421,7 +27421,7 @@ function requireReactDom_production_min() {
27421
27421
  return;
27422
27422
  }
27423
27423
  }
27424
- N.flags |= a;
27424
+ N2.flags |= a;
27425
27425
  e.memoizedState = li(1 | b, c, f, d);
27426
27426
  }
27427
27427
  function vi(a, b) {
@@ -27474,7 +27474,7 @@ function requireReactDom_production_min() {
27474
27474
  function Di(a, b, c) {
27475
27475
  if (0 === (Rh & 21))
27476
27476
  return a.baseState && (a.baseState = false, Ug = true), a.memoizedState = c;
27477
- He(c, b) || (c = yc(), N.lanes |= c, hh |= c, a.baseState = true);
27477
+ He(c, b) || (c = yc(), N2.lanes |= c, hh |= c, a.baseState = true);
27478
27478
  return b;
27479
27479
  }
27480
27480
  function Ei(a, b) {
@@ -27529,7 +27529,7 @@ function requireReactDom_production_min() {
27529
27529
  }
27530
27530
  function Hi(a) {
27531
27531
  var b = a.alternate;
27532
- return a === N || null !== b && b === N;
27532
+ return a === N2 || null !== b && b === N2;
27533
27533
  }
27534
27534
  function Ii(a, b) {
27535
27535
  Th = Sh = true;
@@ -27573,7 +27573,7 @@ function requireReactDom_production_min() {
27573
27573
  d.memoizedState = d.baseState = b;
27574
27574
  a = { pending: null, interleaved: null, lanes: 0, dispatch: null, lastRenderedReducer: a, lastRenderedState: b };
27575
27575
  d.queue = a;
27576
- a = a.dispatch = Gi.bind(null, N, a);
27576
+ a = a.dispatch = Gi.bind(null, N2, a);
27577
27577
  return [d.memoizedState, a];
27578
27578
  }, useRef: function(a) {
27579
27579
  var b = ci();
@@ -27588,7 +27588,7 @@ function requireReactDom_production_min() {
27588
27588
  return [b, a];
27589
27589
  }, useMutableSource: function() {
27590
27590
  }, useSyncExternalStore: function(a, b, c) {
27591
- var d = N, e = ci();
27591
+ var d = N2, e = ci();
27592
27592
  if (I) {
27593
27593
  if (void 0 === c)
27594
27594
  throw Error(p(407));
@@ -27686,7 +27686,7 @@ function requireReactDom_production_min() {
27686
27686
  }
27687
27687
  var Ni = "function" === typeof WeakMap ? WeakMap : Map;
27688
27688
  function Oi(a, b, c) {
27689
- c = ch(-1, c);
27689
+ c = ch3(-1, c);
27690
27690
  c.tag = 3;
27691
27691
  c.payload = { element: null };
27692
27692
  var d = b.value;
@@ -27697,7 +27697,7 @@ function requireReactDom_production_min() {
27697
27697
  return c;
27698
27698
  }
27699
27699
  function Ri(a, b, c) {
27700
- c = ch(-1, c);
27700
+ c = ch3(-1, c);
27701
27701
  c.tag = 3;
27702
27702
  var d = a.type.getDerivedStateFromError;
27703
27703
  if ("function" === typeof d) {
@@ -27741,7 +27741,7 @@ function requireReactDom_production_min() {
27741
27741
  }
27742
27742
  function Wi(a, b, c, d, e) {
27743
27743
  if (0 === (a.mode & 1))
27744
- return a === b ? a.flags |= 65536 : (a.flags |= 128, c.flags |= 131072, c.flags &= -52805, 1 === c.tag && (null === c.alternate ? c.tag = 17 : (b = ch(-1, 1), b.tag = 2, dh(c, b, 1))), c.lanes |= 1), a;
27744
+ return a === b ? a.flags |= 65536 : (a.flags |= 128, c.flags |= 131072, c.flags &= -52805, 1 === c.tag && (null === c.alternate ? c.tag = 17 : (b = ch3(-1, 1), b.tag = 2, dh(c, b, 1))), c.lanes |= 1), a;
27745
27745
  a.flags |= 65536;
27746
27746
  a.lanes = e;
27747
27747
  return a;
@@ -28726,7 +28726,7 @@ function requireReactDom_production_min() {
28726
28726
  try {
28727
28727
  c(null);
28728
28728
  } catch (d) {
28729
- W(a, b, d);
28729
+ W2(a, b, d);
28730
28730
  }
28731
28731
  else
28732
28732
  c.current = null;
@@ -28735,7 +28735,7 @@ function requireReactDom_production_min() {
28735
28735
  try {
28736
28736
  c();
28737
28737
  } catch (d) {
28738
- W(a, b, d);
28738
+ W2(a, b, d);
28739
28739
  }
28740
28740
  }
28741
28741
  var Oj = false;
@@ -28825,7 +28825,7 @@ function requireReactDom_production_min() {
28825
28825
  throw Error(p(163));
28826
28826
  }
28827
28827
  } catch (F) {
28828
- W(b, b.return, F);
28828
+ W2(b, b.return, F);
28829
28829
  }
28830
28830
  a = b.sibling;
28831
28831
  if (null !== a) {
@@ -28992,7 +28992,7 @@ function requireReactDom_production_min() {
28992
28992
  try {
28993
28993
  d.props = c.memoizedProps, d.state = c.memoizedState, d.componentWillUnmount();
28994
28994
  } catch (h) {
28995
- W(c, b, h);
28995
+ W2(c, b, h);
28996
28996
  }
28997
28997
  Zj(a, b, c);
28998
28998
  break;
@@ -29052,7 +29052,7 @@ function requireReactDom_production_min() {
29052
29052
  null !== k && (k.return = null);
29053
29053
  e.return = null;
29054
29054
  } catch (l) {
29055
- W(e, b, l);
29055
+ W2(e, b, l);
29056
29056
  }
29057
29057
  }
29058
29058
  if (b.subtreeFlags & 12854)
@@ -29072,12 +29072,12 @@ function requireReactDom_production_min() {
29072
29072
  try {
29073
29073
  Qj(3, a, a.return), Rj(3, a);
29074
29074
  } catch (t) {
29075
- W(a, a.return, t);
29075
+ W2(a, a.return, t);
29076
29076
  }
29077
29077
  try {
29078
29078
  Qj(5, a, a.return);
29079
29079
  } catch (t) {
29080
- W(a, a.return, t);
29080
+ W2(a, a.return, t);
29081
29081
  }
29082
29082
  }
29083
29083
  break;
@@ -29095,7 +29095,7 @@ function requireReactDom_production_min() {
29095
29095
  try {
29096
29096
  ob(e, "");
29097
29097
  } catch (t) {
29098
- W(a, a.return, t);
29098
+ W2(a, a.return, t);
29099
29099
  }
29100
29100
  }
29101
29101
  if (d & 4 && (e = a.stateNode, null != e)) {
@@ -29130,7 +29130,7 @@ function requireReactDom_production_min() {
29130
29130
  }
29131
29131
  e[Pf] = f;
29132
29132
  } catch (t) {
29133
- W(a, a.return, t);
29133
+ W2(a, a.return, t);
29134
29134
  }
29135
29135
  }
29136
29136
  break;
@@ -29145,7 +29145,7 @@ function requireReactDom_production_min() {
29145
29145
  try {
29146
29146
  e.nodeValue = f;
29147
29147
  } catch (t) {
29148
- W(a, a.return, t);
29148
+ W2(a, a.return, t);
29149
29149
  }
29150
29150
  }
29151
29151
  break;
@@ -29156,7 +29156,7 @@ function requireReactDom_production_min() {
29156
29156
  try {
29157
29157
  bd(b.containerInfo);
29158
29158
  } catch (t) {
29159
- W(a, a.return, t);
29159
+ W2(a, a.return, t);
29160
29160
  }
29161
29161
  break;
29162
29162
  case 4:
@@ -29197,7 +29197,7 @@ function requireReactDom_production_min() {
29197
29197
  try {
29198
29198
  b = d, n.props = b.memoizedProps, n.state = b.memoizedState, n.componentWillUnmount();
29199
29199
  } catch (t) {
29200
- W(d, c, t);
29200
+ W2(d, c, t);
29201
29201
  }
29202
29202
  }
29203
29203
  break;
@@ -29222,7 +29222,7 @@ function requireReactDom_production_min() {
29222
29222
  try {
29223
29223
  e = q.stateNode, l ? (f = e.style, "function" === typeof f.setProperty ? f.setProperty("display", "none", "important") : f.display = "none") : (h = q.stateNode, k = q.memoizedProps.style, g = void 0 !== k && null !== k && k.hasOwnProperty("display") ? k.display : null, h.style.display = rb("display", g));
29224
29224
  } catch (t) {
29225
- W(a, a.return, t);
29225
+ W2(a, a.return, t);
29226
29226
  }
29227
29227
  }
29228
29228
  } else if (6 === q.tag) {
@@ -29230,7 +29230,7 @@ function requireReactDom_production_min() {
29230
29230
  try {
29231
29231
  q.stateNode.nodeValue = l ? "" : q.memoizedProps;
29232
29232
  } catch (t) {
29233
- W(a, a.return, t);
29233
+ W2(a, a.return, t);
29234
29234
  }
29235
29235
  } else if ((22 !== q.tag && 23 !== q.tag || null === q.memoizedState || q === a) && null !== q.child) {
29236
29236
  q.child.return = q;
@@ -29295,7 +29295,7 @@ function requireReactDom_production_min() {
29295
29295
  throw Error(p(161));
29296
29296
  }
29297
29297
  } catch (k) {
29298
- W(a, a.return, k);
29298
+ W2(a, a.return, k);
29299
29299
  }
29300
29300
  a.flags &= -3;
29301
29301
  }
@@ -29416,7 +29416,7 @@ function requireReactDom_production_min() {
29416
29416
  }
29417
29417
  U || b.flags & 512 && Sj(b);
29418
29418
  } catch (r2) {
29419
- W(b, b.return, r2);
29419
+ W2(b, b.return, r2);
29420
29420
  }
29421
29421
  }
29422
29422
  if (b === a) {
@@ -29460,7 +29460,7 @@ function requireReactDom_production_min() {
29460
29460
  try {
29461
29461
  Rj(4, b);
29462
29462
  } catch (k) {
29463
- W(b, c, k);
29463
+ W2(b, c, k);
29464
29464
  }
29465
29465
  break;
29466
29466
  case 1:
@@ -29470,14 +29470,14 @@ function requireReactDom_production_min() {
29470
29470
  try {
29471
29471
  d.componentDidMount();
29472
29472
  } catch (k) {
29473
- W(b, e, k);
29473
+ W2(b, e, k);
29474
29474
  }
29475
29475
  }
29476
29476
  var f = b.return;
29477
29477
  try {
29478
29478
  Sj(b);
29479
29479
  } catch (k) {
29480
- W(b, f, k);
29480
+ W2(b, f, k);
29481
29481
  }
29482
29482
  break;
29483
29483
  case 5:
@@ -29485,11 +29485,11 @@ function requireReactDom_production_min() {
29485
29485
  try {
29486
29486
  Sj(b);
29487
29487
  } catch (k) {
29488
- W(b, g, k);
29488
+ W2(b, g, k);
29489
29489
  }
29490
29490
  }
29491
29491
  } catch (k) {
29492
- W(b, b.return, k);
29492
+ W2(b, b.return, k);
29493
29493
  }
29494
29494
  if (b === a) {
29495
29495
  V = null;
@@ -29504,14 +29504,14 @@ function requireReactDom_production_min() {
29504
29504
  V = b.return;
29505
29505
  }
29506
29506
  }
29507
- var mk = Math.ceil, nk = ua.ReactCurrentDispatcher, ok2 = ua.ReactCurrentOwner, pk = ua.ReactCurrentBatchConfig, K = 0, R = null, Y = null, Z = 0, gj = 0, fj = Uf(0), T = 0, qk = null, hh = 0, rk = 0, sk = 0, tk = null, uk = null, gk = 0, Hj = Infinity, vk = null, Pi = false, Qi = null, Si = null, wk = false, xk = null, yk = 0, zk = 0, Ak = null, Bk = -1, Ck = 0;
29507
+ var mk = Math.ceil, nk = ua.ReactCurrentDispatcher, ok2 = ua.ReactCurrentOwner, pk = ua.ReactCurrentBatchConfig, K2 = 0, R = null, Y = null, Z = 0, gj = 0, fj = Uf(0), T = 0, qk = null, hh = 0, rk = 0, sk = 0, tk = null, uk = null, gk = 0, Hj = Infinity, vk = null, Pi = false, Qi = null, Si = null, wk = false, xk = null, yk = 0, zk = 0, Ak = null, Bk = -1, Ck = 0;
29508
29508
  function L() {
29509
- return 0 !== (K & 6) ? B() : -1 !== Bk ? Bk : Bk = B();
29509
+ return 0 !== (K2 & 6) ? B() : -1 !== Bk ? Bk : Bk = B();
29510
29510
  }
29511
29511
  function lh(a) {
29512
29512
  if (0 === (a.mode & 1))
29513
29513
  return 1;
29514
- if (0 !== (K & 2) && 0 !== Z)
29514
+ if (0 !== (K2 & 2) && 0 !== Z)
29515
29515
  return Z & -Z;
29516
29516
  if (null !== Kg.transition)
29517
29517
  return 0 === Ck && (Ck = yc()), Ck;
@@ -29526,8 +29526,8 @@ function requireReactDom_production_min() {
29526
29526
  if (50 < zk)
29527
29527
  throw zk = 0, Ak = null, Error(p(185));
29528
29528
  Ac(a, c, d);
29529
- if (0 === (K & 2) || a !== R)
29530
- a === R && (0 === (K & 2) && (rk |= c), 4 === T && Dk(a, Z)), Ek(a, d), 1 === c && 0 === K && 0 === (b.mode & 1) && (Hj = B() + 500, fg && jg());
29529
+ if (0 === (K2 & 2) || a !== R)
29530
+ a === R && (0 === (K2 & 2) && (rk |= c), 4 === T && Dk(a, Z)), Ek(a, d), 1 === c && 0 === K2 && 0 === (b.mode & 1) && (Hj = B() + 500, fg && jg());
29531
29531
  }
29532
29532
  function Ek(a, b) {
29533
29533
  var c = a.callbackNode;
@@ -29539,7 +29539,7 @@ function requireReactDom_production_min() {
29539
29539
  null != c && bc(c);
29540
29540
  if (1 === b)
29541
29541
  0 === a.tag ? ig(Fk.bind(null, a)) : hg(Fk.bind(null, a)), Jf(function() {
29542
- 0 === (K & 6) && jg();
29542
+ 0 === (K2 & 6) && jg();
29543
29543
  }), c = null;
29544
29544
  else {
29545
29545
  switch (Dc(d)) {
@@ -29567,7 +29567,7 @@ function requireReactDom_production_min() {
29567
29567
  function Hk(a, b) {
29568
29568
  Bk = -1;
29569
29569
  Ck = 0;
29570
- if (0 !== (K & 6))
29570
+ if (0 !== (K2 & 6))
29571
29571
  throw Error(p(327));
29572
29572
  var c = a.callbackNode;
29573
29573
  if (Ik() && a.callbackNode !== c)
@@ -29579,8 +29579,8 @@ function requireReactDom_production_min() {
29579
29579
  b = Jk(a, d);
29580
29580
  else {
29581
29581
  b = d;
29582
- var e = K;
29583
- K |= 2;
29582
+ var e = K2;
29583
+ K2 |= 2;
29584
29584
  var f = Kk();
29585
29585
  if (R !== a || Z !== b)
29586
29586
  vk = null, Hj = B() + 500, Lk(a, b);
@@ -29594,7 +29594,7 @@ function requireReactDom_production_min() {
29594
29594
  while (1);
29595
29595
  Qg();
29596
29596
  nk.current = f;
29597
- K = e;
29597
+ K2 = e;
29598
29598
  null !== Y ? b = 0 : (R = null, Z = 0, b = T);
29599
29599
  }
29600
29600
  if (0 !== b) {
@@ -29719,7 +29719,7 @@ function requireReactDom_production_min() {
29719
29719
  }
29720
29720
  }
29721
29721
  function Fk(a) {
29722
- if (0 !== (K & 6))
29722
+ if (0 !== (K2 & 6))
29723
29723
  throw Error(p(327));
29724
29724
  Ik();
29725
29725
  var b = uc(a, 0);
@@ -29741,24 +29741,24 @@ function requireReactDom_production_min() {
29741
29741
  return null;
29742
29742
  }
29743
29743
  function Rk(a, b) {
29744
- var c = K;
29745
- K |= 1;
29744
+ var c = K2;
29745
+ K2 |= 1;
29746
29746
  try {
29747
29747
  return a(b);
29748
29748
  } finally {
29749
- K = c, 0 === K && (Hj = B() + 500, fg && jg());
29749
+ K2 = c, 0 === K2 && (Hj = B() + 500, fg && jg());
29750
29750
  }
29751
29751
  }
29752
29752
  function Sk(a) {
29753
- null !== xk && 0 === xk.tag && 0 === (K & 6) && Ik();
29754
- var b = K;
29755
- K |= 1;
29753
+ null !== xk && 0 === xk.tag && 0 === (K2 & 6) && Ik();
29754
+ var b = K2;
29755
+ K2 |= 1;
29756
29756
  var c = pk.transition, d = C;
29757
29757
  try {
29758
29758
  if (pk.transition = null, C = 1, a)
29759
29759
  return a();
29760
29760
  } finally {
29761
- C = d, pk.transition = c, K = b, 0 === (K & 6) && jg();
29761
+ C = d, pk.transition = c, K2 = b, 0 === (K2 & 6) && jg();
29762
29762
  }
29763
29763
  }
29764
29764
  function Ij() {
@@ -29836,7 +29836,7 @@ function requireReactDom_production_min() {
29836
29836
  Qg();
29837
29837
  Ph.current = ai;
29838
29838
  if (Sh) {
29839
- for (var d = N.memoizedState; null !== d; ) {
29839
+ for (var d = N2.memoizedState; null !== d; ) {
29840
29840
  var e = d.queue;
29841
29841
  null !== e && (e.pending = null);
29842
29842
  d = d.next;
@@ -29844,7 +29844,7 @@ function requireReactDom_production_min() {
29844
29844
  Sh = false;
29845
29845
  }
29846
29846
  Rh = 0;
29847
- P = O = N = null;
29847
+ P = O = N2 = null;
29848
29848
  Th = false;
29849
29849
  Uh = 0;
29850
29850
  ok2.current = null;
@@ -29944,8 +29944,8 @@ function requireReactDom_production_min() {
29944
29944
  null === R || 0 === (hh & 268435455) && 0 === (rk & 268435455) || Dk(R, Z);
29945
29945
  }
29946
29946
  function Jk(a, b) {
29947
- var c = K;
29948
- K |= 2;
29947
+ var c = K2;
29948
+ K2 |= 2;
29949
29949
  var d = Kk();
29950
29950
  if (R !== a || Z !== b)
29951
29951
  vk = null, Lk(a, b);
@@ -29958,7 +29958,7 @@ function requireReactDom_production_min() {
29958
29958
  }
29959
29959
  while (1);
29960
29960
  Qg();
29961
- K = c;
29961
+ K2 = c;
29962
29962
  nk.current = d;
29963
29963
  if (null !== Y)
29964
29964
  throw Error(p(261));
@@ -30027,7 +30027,7 @@ function requireReactDom_production_min() {
30027
30027
  do
30028
30028
  Ik();
30029
30029
  while (null !== xk);
30030
- if (0 !== (K & 6))
30030
+ if (0 !== (K2 & 6))
30031
30031
  throw Error(p(327));
30032
30032
  c = a.finishedWork;
30033
30033
  var e = a.finishedLanes;
@@ -30052,8 +30052,8 @@ function requireReactDom_production_min() {
30052
30052
  pk.transition = null;
30053
30053
  var g = C;
30054
30054
  C = 1;
30055
- var h = K;
30056
- K |= 4;
30055
+ var h = K2;
30056
+ K2 |= 4;
30057
30057
  ok2.current = null;
30058
30058
  Pj(a, c);
30059
30059
  ek(c, a);
@@ -30063,7 +30063,7 @@ function requireReactDom_production_min() {
30063
30063
  a.current = c;
30064
30064
  ik(c);
30065
30065
  dc();
30066
- K = h;
30066
+ K2 = h;
30067
30067
  C = g;
30068
30068
  pk.transition = f;
30069
30069
  } else
@@ -30096,10 +30096,10 @@ function requireReactDom_production_min() {
30096
30096
  a = xk;
30097
30097
  xk = null;
30098
30098
  yk = 0;
30099
- if (0 !== (K & 6))
30099
+ if (0 !== (K2 & 6))
30100
30100
  throw Error(p(331));
30101
- var e = K;
30102
- K |= 4;
30101
+ var e = K2;
30102
+ K2 |= 4;
30103
30103
  for (V = a.current; null !== V; ) {
30104
30104
  var f = V, g = f.child;
30105
30105
  if (0 !== (V.flags & 16)) {
@@ -30192,7 +30192,7 @@ function requireReactDom_production_min() {
30192
30192
  Rj(9, h);
30193
30193
  }
30194
30194
  } catch (na) {
30195
- W(h, h.return, na);
30195
+ W2(h, h.return, na);
30196
30196
  }
30197
30197
  if (h === g) {
30198
30198
  V = null;
@@ -30207,7 +30207,7 @@ function requireReactDom_production_min() {
30207
30207
  V = h.return;
30208
30208
  }
30209
30209
  }
30210
- K = e;
30210
+ K2 = e;
30211
30211
  jg();
30212
30212
  if (lc && "function" === typeof lc.onPostCommitFiberRoot)
30213
30213
  try {
@@ -30230,7 +30230,7 @@ function requireReactDom_production_min() {
30230
30230
  b = L();
30231
30231
  null !== a && (Ac(a, 1, b), Ek(a, b));
30232
30232
  }
30233
- function W(a, b, c) {
30233
+ function W2(a, b, c) {
30234
30234
  if (3 === a.tag)
30235
30235
  Yk(a, a, c);
30236
30236
  else
@@ -30421,7 +30421,7 @@ function requireReactDom_production_min() {
30421
30421
  for (var k = h.firstContext; null !== k; ) {
30422
30422
  if (k.context === d) {
30423
30423
  if (1 === f.tag) {
30424
- k = ch(-1, c & -c);
30424
+ k = ch3(-1, c & -c);
30425
30425
  k.tag = 2;
30426
30426
  var l = f.updateQueue;
30427
30427
  if (null !== l) {
@@ -30687,7 +30687,7 @@ function requireReactDom_production_min() {
30687
30687
  c = a.current;
30688
30688
  d = L();
30689
30689
  e = lh(c);
30690
- f = ch(d, e);
30690
+ f = ch3(d, e);
30691
30691
  f.callback = void 0 !== b && null !== b ? b : null;
30692
30692
  dh(c, f, e);
30693
30693
  a.current.lanes = e;
@@ -30699,7 +30699,7 @@ function requireReactDom_production_min() {
30699
30699
  var e = b.current, f = L(), g = lh(e);
30700
30700
  c = el(c);
30701
30701
  null === b.context ? b.context = c : b.pendingContext = c;
30702
- b = ch(f, g);
30702
+ b = ch3(f, g);
30703
30703
  b.payload = { element: a };
30704
30704
  d = void 0 === d ? null : d;
30705
30705
  null !== d && (b.callback = d);
@@ -30832,7 +30832,7 @@ function requireReactDom_production_min() {
30832
30832
  var b = a.stateNode;
30833
30833
  if (b.current.memoizedState.isDehydrated) {
30834
30834
  var c = tc(b.pendingLanes);
30835
- 0 !== c && (Cc(b, c | 1), Ek(b, B()), 0 === (K & 6) && (Hj = B() + 500, jg()));
30835
+ 0 !== c && (Cc(b, c | 1), Ek(b, B()), 0 === (K2 & 6) && (Hj = B() + 500, jg()));
30836
30836
  }
30837
30837
  break;
30838
30838
  case 13:
@@ -32903,24 +32903,33 @@ var UnionSchema = /* @__PURE__ */ function(_Schema) {
32903
32903
  _createClass(UnionSchema2, [{
32904
32904
  key: "validate",
32905
32905
  value: function validate(path, src) {
32906
- throw new Error("Method not implemented.");
32906
+ return false;
32907
32907
  }
32908
32908
  }, {
32909
32909
  key: "assert",
32910
32910
  value: function assert(src) {
32911
- throw new Error("Method not implemented.");
32911
+ return true;
32912
32912
  }
32913
32913
  }, {
32914
32914
  key: "optional",
32915
32915
  value: function optional() {
32916
- throw new Error("Method not implemented.");
32916
+ return new UnionSchema2(this.key, this.items, true);
32917
32917
  }
32918
32918
  }, {
32919
32919
  key: "serialize",
32920
32920
  value: function serialize() {
32921
+ if (typeof this.key === "string") {
32922
+ return {
32923
+ type: "union",
32924
+ key: this.key,
32925
+ items: this.items.map(function(o) {
32926
+ return o.serialize();
32927
+ }),
32928
+ opt: this.opt
32929
+ };
32930
+ }
32921
32931
  return {
32922
32932
  type: "union",
32923
- key: this.key,
32924
32933
  items: this.items.map(function(o) {
32925
32934
  return o.serialize();
32926
32935
  }),
@@ -33143,6 +33152,22 @@ function resolvePath$1(path, valModule, schema) {
33143
33152
  };
33144
33153
  } else if (isUnionSchema(resolvedSchema)) {
33145
33154
  var _key = resolvedSchema.key;
33155
+ if (!_key) {
33156
+ return {
33157
+ v: {
33158
+ path: origParts.map(function(p) {
33159
+ if (!Number.isNaN(Number(p))) {
33160
+ return p;
33161
+ } else {
33162
+ return JSON.stringify(p);
33163
+ }
33164
+ }).join("."),
33165
+ // TODO: create a function generate path from parts (not sure if this always works)
33166
+ schema: resolvedSchema,
33167
+ source: resolvedSource
33168
+ }
33169
+ };
33170
+ }
33146
33171
  var keyValue = resolvedSource[_key];
33147
33172
  if (!keyValue) {
33148
33173
  throw Error("Invalid path: union source ".concat(resolvedSchema, " did not have required key ").concat(_key, " in path: ").concat(path));
@@ -33345,6 +33370,261 @@ function newValProxy(val) {
33345
33370
  function hasOwn(obj, prop) {
33346
33371
  return Object.prototype.hasOwnProperty.call(obj, prop);
33347
33372
  }
33373
+ var K = [1116352408 | 0, 1899447441 | 0, 3049323471 | 0, 3921009573 | 0, 961987163 | 0, 1508970993 | 0, 2453635748 | 0, 2870763221 | 0, 3624381080 | 0, 310598401 | 0, 607225278 | 0, 1426881987 | 0, 1925078388 | 0, 2162078206 | 0, 2614888103 | 0, 3248222580 | 0, 3835390401 | 0, 4022224774 | 0, 264347078 | 0, 604807628 | 0, 770255983 | 0, 1249150122 | 0, 1555081692 | 0, 1996064986 | 0, 2554220882 | 0, 2821834349 | 0, 2952996808 | 0, 3210313671 | 0, 3336571891 | 0, 3584528711 | 0, 113926993 | 0, 338241895 | 0, 666307205 | 0, 773529912 | 0, 1294757372 | 0, 1396182291 | 0, 1695183700 | 0, 1986661051 | 0, 2177026350 | 0, 2456956037 | 0, 2730485921 | 0, 2820302411 | 0, 3259730800 | 0, 3345764771 | 0, 3516065817 | 0, 3600352804 | 0, 4094571909 | 0, 275423344 | 0, 430227734 | 0, 506948616 | 0, 659060556 | 0, 883997877 | 0, 958139571 | 0, 1322822218 | 0, 1537002063 | 0, 1747873779 | 0, 1955562222 | 0, 2024104815 | 0, 2227730452 | 0, 2361852424 | 0, 2428436474 | 0, 2756734187 | 0, 3204031479 | 0, 3329325298 | 0];
33374
+ var N = /* @__PURE__ */ function(N2) {
33375
+ N2[N2["inputBytes"] = 64] = "inputBytes";
33376
+ N2[N2["inputWords"] = 16] = "inputWords";
33377
+ N2[N2["highIndex"] = 14] = "highIndex";
33378
+ N2[N2["lowIndex"] = 15] = "lowIndex";
33379
+ N2[N2["workWords"] = 64] = "workWords";
33380
+ N2[N2["allocBytes"] = 80] = "allocBytes";
33381
+ N2[N2["allocWords"] = 20] = "allocWords";
33382
+ N2[N2["allocTotal"] = 8e3] = "allocTotal";
33383
+ return N2;
33384
+ }(N || {});
33385
+ var algorithms = {
33386
+ sha256: 1
33387
+ };
33388
+ function createHash(algorithm) {
33389
+ if (algorithm && !algorithms[algorithm] && !algorithms[algorithm.toLowerCase()]) {
33390
+ throw new Error("Digest method not supported");
33391
+ }
33392
+ return new Hash();
33393
+ }
33394
+ var Hash = /* @__PURE__ */ function() {
33395
+ function Hash2() {
33396
+ _classCallCheck(this, Hash2);
33397
+ _defineProperty$1(this, "A", 1779033703 | 0);
33398
+ _defineProperty$1(this, "B", 3144134277 | 0);
33399
+ _defineProperty$1(this, "C", 1013904242 | 0);
33400
+ _defineProperty$1(this, "D", 2773480762 | 0);
33401
+ _defineProperty$1(this, "E", 1359893119 | 0);
33402
+ _defineProperty$1(this, "F", 2600822924 | 0);
33403
+ _defineProperty$1(this, "G", 528734635 | 0);
33404
+ _defineProperty$1(this, "H", 1541459225 | 0);
33405
+ _defineProperty$1(this, "_size", 0);
33406
+ _defineProperty$1(this, "_sp", 0);
33407
+ if (!sharedBuffer || sharedOffset >= N.allocTotal) {
33408
+ sharedBuffer = new ArrayBuffer(N.allocTotal);
33409
+ sharedOffset = 0;
33410
+ }
33411
+ this._byte = new Uint8Array(sharedBuffer, sharedOffset, N.allocBytes);
33412
+ this._word = new Int32Array(sharedBuffer, sharedOffset, N.allocWords);
33413
+ sharedOffset += N.allocBytes;
33414
+ }
33415
+ _createClass(Hash2, [{
33416
+ key: "update",
33417
+ value: function update(data) {
33418
+ if ("string" === typeof data) {
33419
+ return this._utf8(data);
33420
+ }
33421
+ if (data == null) {
33422
+ throw new TypeError("Invalid type: " + _typeof(data));
33423
+ }
33424
+ var byteOffset = data.byteOffset;
33425
+ var length = data.byteLength;
33426
+ var blocks = length / N.inputBytes | 0;
33427
+ var offset2 = 0;
33428
+ if (blocks && !(byteOffset & 3) && !(this._size % N.inputBytes)) {
33429
+ var block2 = new Int32Array(data.buffer, byteOffset, blocks * N.inputWords);
33430
+ while (blocks--) {
33431
+ this._int32(block2, offset2 >> 2);
33432
+ offset2 += N.inputBytes;
33433
+ }
33434
+ this._size += offset2;
33435
+ }
33436
+ var BYTES_PER_ELEMENT = data.BYTES_PER_ELEMENT;
33437
+ if (BYTES_PER_ELEMENT !== 1 && data.buffer) {
33438
+ var rest = new Uint8Array(data.buffer, byteOffset + offset2, length - offset2);
33439
+ return this._uint8(rest);
33440
+ }
33441
+ if (offset2 === length)
33442
+ return this;
33443
+ return this._uint8(data, offset2);
33444
+ }
33445
+ }, {
33446
+ key: "_uint8",
33447
+ value: function _uint8(data, offset2) {
33448
+ var _byte = this._byte, _word = this._word;
33449
+ var length = data.length;
33450
+ offset2 = offset2 | 0;
33451
+ while (offset2 < length) {
33452
+ var start = this._size % N.inputBytes;
33453
+ var index2 = start;
33454
+ while (offset2 < length && index2 < N.inputBytes) {
33455
+ _byte[index2++] = data[offset2++];
33456
+ }
33457
+ if (index2 >= N.inputBytes) {
33458
+ this._int32(_word);
33459
+ }
33460
+ this._size += index2 - start;
33461
+ }
33462
+ return this;
33463
+ }
33464
+ }, {
33465
+ key: "_utf8",
33466
+ value: function _utf8(text) {
33467
+ var _byte = this._byte, _word = this._word;
33468
+ var length = text.length;
33469
+ var surrogate = this._sp;
33470
+ for (var offset2 = 0; offset2 < length; ) {
33471
+ var start = this._size % N.inputBytes;
33472
+ var index2 = start;
33473
+ while (offset2 < length && index2 < N.inputBytes) {
33474
+ var code = text.charCodeAt(offset2++) | 0;
33475
+ if (code < 128) {
33476
+ _byte[index2++] = code;
33477
+ } else if (code < 2048) {
33478
+ _byte[index2++] = 192 | code >>> 6;
33479
+ _byte[index2++] = 128 | code & 63;
33480
+ } else if (code < 55296 || code > 57343) {
33481
+ _byte[index2++] = 224 | code >>> 12;
33482
+ _byte[index2++] = 128 | code >>> 6 & 63;
33483
+ _byte[index2++] = 128 | code & 63;
33484
+ } else if (surrogate) {
33485
+ code = ((surrogate & 1023) << 10) + (code & 1023) + 65536;
33486
+ _byte[index2++] = 240 | code >>> 18;
33487
+ _byte[index2++] = 128 | code >>> 12 & 63;
33488
+ _byte[index2++] = 128 | code >>> 6 & 63;
33489
+ _byte[index2++] = 128 | code & 63;
33490
+ surrogate = 0;
33491
+ } else {
33492
+ surrogate = code;
33493
+ }
33494
+ }
33495
+ if (index2 >= N.inputBytes) {
33496
+ this._int32(_word);
33497
+ _word[0] = _word[N.inputWords];
33498
+ }
33499
+ this._size += index2 - start;
33500
+ }
33501
+ this._sp = surrogate;
33502
+ return this;
33503
+ }
33504
+ }, {
33505
+ key: "_int32",
33506
+ value: function _int32(data, offset2) {
33507
+ var A = this.A, B = this.B, C = this.C, D = this.D, E = this.E, F = this.F, G = this.G, H = this.H;
33508
+ var i = 0;
33509
+ offset2 = offset2 | 0;
33510
+ while (i < N.inputWords) {
33511
+ W[i++] = swap32(data[offset2++]);
33512
+ }
33513
+ for (i = N.inputWords; i < N.workWords; i++) {
33514
+ W[i] = gamma1(W[i - 2]) + W[i - 7] + gamma0(W[i - 15]) + W[i - 16] | 0;
33515
+ }
33516
+ for (i = 0; i < N.workWords; i++) {
33517
+ var T1 = H + sigma1(E) + ch(E, F, G) + K[i] + W[i] | 0;
33518
+ var T2 = sigma0(A) + maj(A, B, C) | 0;
33519
+ H = G;
33520
+ G = F;
33521
+ F = E;
33522
+ E = D + T1 | 0;
33523
+ D = C;
33524
+ C = B;
33525
+ B = A;
33526
+ A = T1 + T2 | 0;
33527
+ }
33528
+ this.A = A + this.A | 0;
33529
+ this.B = B + this.B | 0;
33530
+ this.C = C + this.C | 0;
33531
+ this.D = D + this.D | 0;
33532
+ this.E = E + this.E | 0;
33533
+ this.F = F + this.F | 0;
33534
+ this.G = G + this.G | 0;
33535
+ this.H = H + this.H | 0;
33536
+ }
33537
+ }, {
33538
+ key: "digest",
33539
+ value: function digest(encoding) {
33540
+ var _byte = this._byte, _word = this._word;
33541
+ var i = this._size % N.inputBytes | 0;
33542
+ _byte[i++] = 128;
33543
+ while (i & 3) {
33544
+ _byte[i++] = 0;
33545
+ }
33546
+ i >>= 2;
33547
+ if (i > N.highIndex) {
33548
+ while (i < N.inputWords) {
33549
+ _word[i++] = 0;
33550
+ }
33551
+ i = 0;
33552
+ this._int32(_word);
33553
+ }
33554
+ while (i < N.inputWords) {
33555
+ _word[i++] = 0;
33556
+ }
33557
+ var bits64 = this._size * 8;
33558
+ var low32 = (bits64 & 4294967295) >>> 0;
33559
+ var high32 = (bits64 - low32) / 4294967296;
33560
+ if (high32)
33561
+ _word[N.highIndex] = swap32(high32);
33562
+ if (low32)
33563
+ _word[N.lowIndex] = swap32(low32);
33564
+ this._int32(_word);
33565
+ return encoding === "hex" ? this._hex() : this._bin();
33566
+ }
33567
+ }, {
33568
+ key: "_hex",
33569
+ value: function _hex() {
33570
+ var A = this.A, B = this.B, C = this.C, D = this.D, E = this.E, F = this.F, G = this.G, H = this.H;
33571
+ return hex32(A) + hex32(B) + hex32(C) + hex32(D) + hex32(E) + hex32(F) + hex32(G) + hex32(H);
33572
+ }
33573
+ }, {
33574
+ key: "_bin",
33575
+ value: function _bin() {
33576
+ var A = this.A, B = this.B, C = this.C, D = this.D, E = this.E, F = this.F, G = this.G, H = this.H, _byte = this._byte, _word = this._word;
33577
+ _word[0] = swap32(A);
33578
+ _word[1] = swap32(B);
33579
+ _word[2] = swap32(C);
33580
+ _word[3] = swap32(D);
33581
+ _word[4] = swap32(E);
33582
+ _word[5] = swap32(F);
33583
+ _word[6] = swap32(G);
33584
+ _word[7] = swap32(H);
33585
+ return _byte.slice(0, 32);
33586
+ }
33587
+ }]);
33588
+ return Hash2;
33589
+ }();
33590
+ var W = new Int32Array(N.workWords);
33591
+ var sharedBuffer;
33592
+ var sharedOffset = 0;
33593
+ var hex32 = function hex322(num) {
33594
+ return (num + 4294967296).toString(16).substr(-8);
33595
+ };
33596
+ var swapLE = function swapLE2(c) {
33597
+ return c << 24 & 4278190080 | c << 8 & 16711680 | c >> 8 & 65280 | c >> 24 & 255;
33598
+ };
33599
+ var swapBE = function swapBE2(c) {
33600
+ return c;
33601
+ };
33602
+ var swap32 = isBE() ? swapBE : swapLE;
33603
+ var ch = function ch2(x, y, z) {
33604
+ return z ^ x & (y ^ z);
33605
+ };
33606
+ var maj = function maj2(x, y, z) {
33607
+ return x & y | z & (x | y);
33608
+ };
33609
+ var sigma0 = function sigma02(x) {
33610
+ return (x >>> 2 | x << 30) ^ (x >>> 13 | x << 19) ^ (x >>> 22 | x << 10);
33611
+ };
33612
+ var sigma1 = function sigma12(x) {
33613
+ return (x >>> 6 | x << 26) ^ (x >>> 11 | x << 21) ^ (x >>> 25 | x << 7);
33614
+ };
33615
+ var gamma0 = function gamma02(x) {
33616
+ return (x >>> 7 | x << 25) ^ (x >>> 18 | x << 14) ^ x >>> 3;
33617
+ };
33618
+ var gamma1 = function gamma12(x) {
33619
+ return (x >>> 17 | x << 15) ^ (x >>> 19 | x << 13) ^ x >>> 10;
33620
+ };
33621
+ function isBE() {
33622
+ var buf = new Uint8Array(new Uint16Array([65279]).buffer);
33623
+ return buf[0] === 254;
33624
+ }
33625
+ var getSHA256Hash = function getSHA256Hash2(bits) {
33626
+ return createHash().update(bits).digest("hex");
33627
+ };
33348
33628
  function _regeneratorRuntime$1() {
33349
33629
  _regeneratorRuntime$1 = function() {
33350
33630
  return e;
@@ -33685,32 +33965,6 @@ function _asyncToGenerator$1(fn) {
33685
33965
  });
33686
33966
  };
33687
33967
  }
33688
- var getSHA256Hash = /* @__PURE__ */ function() {
33689
- var _ref = _asyncToGenerator$1(/* @__PURE__ */ _regeneratorRuntime$1().mark(function _callee(bits) {
33690
- var hashBuffer, hashArray, hash;
33691
- return _regeneratorRuntime$1().wrap(function _callee$(_context) {
33692
- while (1)
33693
- switch (_context.prev = _context.next) {
33694
- case 0:
33695
- _context.next = 2;
33696
- return crypto.subtle.digest("SHA-256", bits);
33697
- case 2:
33698
- hashBuffer = _context.sent;
33699
- hashArray = Array.from(new Uint8Array(hashBuffer));
33700
- hash = hashArray.map(function(item) {
33701
- return item.toString(16).padStart(2, "0");
33702
- }).join("");
33703
- return _context.abrupt("return", hash);
33704
- case 6:
33705
- case "end":
33706
- return _context.stop();
33707
- }
33708
- }, _callee);
33709
- }));
33710
- return function getSHA256Hash2(_x) {
33711
- return _ref.apply(this, arguments);
33712
- };
33713
- }();
33714
33968
  var ValApi = /* @__PURE__ */ function() {
33715
33969
  function ValApi2(host) {
33716
33970
  _classCallCheck(this, ValApi2);
@@ -33721,11 +33975,6 @@ var ValApi = /* @__PURE__ */ function() {
33721
33975
  value: function getDisableUrl(redirectTo) {
33722
33976
  return "".concat(this.host, "/disable?redirect_to=").concat(encodeURIComponent(redirectTo));
33723
33977
  }
33724
- }, {
33725
- key: "getEditUrl",
33726
- value: function getEditUrl() {
33727
- return "".concat(this.host, "/static/edit");
33728
- }
33729
33978
  }, {
33730
33979
  key: "getLoginUrl",
33731
33980
  value: function getLoginUrl(redirectTo) {
@@ -33767,6 +34016,11 @@ var ValApi = /* @__PURE__ */ function() {
33767
34016
  }
33768
34017
  return getPatches;
33769
34018
  }()
34019
+ }, {
34020
+ key: "getEditUrl",
34021
+ value: function getEditUrl() {
34022
+ return "".concat(this.host, "/static/edit");
34023
+ }
33770
34024
  }, {
33771
34025
  key: "postPatches",
33772
34026
  value: function postPatches(moduleId, patches, headers) {
@@ -37849,7 +38103,7 @@ const escapeReplacements = {
37849
38103
  '"': "&quot;",
37850
38104
  "'": "&#39;"
37851
38105
  };
37852
- const getEscapeReplacement = (ch) => escapeReplacements[ch];
38106
+ const getEscapeReplacement = (ch3) => escapeReplacements[ch3];
37853
38107
  function escape(html, encode) {
37854
38108
  if (encode) {
37855
38109
  if (escapeTest.test(html)) {
@@ -40955,9 +41209,6 @@ function parseRichTextSource(_ref) {
40955
41209
  }
40956
41210
  return _defineProperty(_defineProperty({}, VAL_EXTENSION, "richtext"), "children", children);
40957
41211
  }
40958
- Internal.VAL_SESSION_COOKIE;
40959
- Internal.VAL_STATE_COOKIE;
40960
- Internal.VAL_ENABLE_COOKIE_NAME;
40961
41212
  var LexicalList_prod = {};
40962
41213
  var Lexical_prod = {};
40963
41214
  var hasRequiredLexical_prod;
@@ -41388,7 +41639,7 @@ function requireLexical_prod() {
41388
41639
  return "insertFromPaste" === a || "insertFromPasteAsQuotation" === a;
41389
41640
  }
41390
41641
  function uc(a) {
41391
- return !K(a) && !a.isLastChild() && !a.isInline();
41642
+ return !K2(a) && !a.isLastChild() && !a.isInline();
41392
41643
  }
41393
41644
  function vc(a, b) {
41394
41645
  a = a._keyToDOMMap.get(b);
@@ -41418,7 +41669,7 @@ function requireLexical_prod() {
41418
41669
  return a;
41419
41670
  }
41420
41671
  function yc(a) {
41421
- return K(a) || D(a) && a.isShadowRoot();
41672
+ return K2(a) || D(a) && a.isShadowRoot();
41422
41673
  }
41423
41674
  function zc(a) {
41424
41675
  a = a.constructor.clone(a);
@@ -41435,7 +41686,7 @@ function requireLexical_prod() {
41435
41686
  }
41436
41687
  function Bc(a, b) {
41437
41688
  a = a.getParent();
41438
- !K(a) || D(b) || z(b) || r2(99);
41689
+ !K2(a) || D(b) || z(b) || r2(99);
41439
41690
  }
41440
41691
  function Cc(a) {
41441
41692
  return (z(a) || D(a) && !a.canBeEmpty()) && !a.isInline();
@@ -41505,14 +41756,14 @@ function requireLexical_prod() {
41505
41756
  for (let f of c)
41506
41757
  d = b.get(f), void 0 === d || d.isAttached() || (a.has(f) || c.delete(f), b.delete(f));
41507
41758
  }
41508
- let L = "", M = "", Kc = "", Lc, N, Mc, Nc = false, Oc = false, Pc, Qc = null, Rc, Sc, Tc, Uc, Vc, ed;
41759
+ let L = "", M = "", Kc = "", Lc, N2, Mc, Nc = false, Oc = false, Pc, Qc = null, Rc, Sc, Tc, Uc, Vc, ed;
41509
41760
  function fd(a, b) {
41510
41761
  let c = Tc.get(a);
41511
41762
  if (null !== b) {
41512
41763
  let d = gd(a);
41513
41764
  d.parentNode === b && b.removeChild(d);
41514
41765
  }
41515
- Uc.has(a) || N._keyToDOMMap.delete(a);
41766
+ Uc.has(a) || N2._keyToDOMMap.delete(a);
41516
41767
  D(c) && (a = hd(c, Tc), id(a, 0, a.length - 1, null));
41517
41768
  void 0 !== c && rc(ed, Mc, Pc, c, "destroyed");
41518
41769
  }
@@ -41541,9 +41792,9 @@ function requireLexical_prod() {
41541
41792
  function md(a, b, c) {
41542
41793
  let d = Uc.get(a);
41543
41794
  void 0 === d && r2(60);
41544
- let e = d.createDOM(Lc, N);
41545
- var f = N._keyToDOMMap;
41546
- e["__lexicalKey_" + N._key] = a;
41795
+ let e = d.createDOM(Lc, N2);
41796
+ var f = N2._keyToDOMMap;
41797
+ e["__lexicalKey_" + N2._key] = a;
41547
41798
  f.set(a, e);
41548
41799
  B(d) ? e.setAttribute("data-lexical-text", "true") : z(d) && e.setAttribute("data-lexical-decorator", "true");
41549
41800
  if (D(d)) {
@@ -41564,7 +41815,7 @@ function requireLexical_prod() {
41564
41815
  d.isInline() || pd(null, d, e);
41565
41816
  uc(d) && (L += "\n\n", Kc += "\n\n");
41566
41817
  } else
41567
- f = d.getTextContent(), z(d) ? (g = d.decorate(N, Lc), null !== g && qd(a, g), e.contentEditable = "false") : B(d) && (d.isDirectionless() || (M += f)), L += f, Kc += f;
41818
+ f = d.getTextContent(), z(d) ? (g = d.decorate(N2, Lc), null !== g && qd(a, g), e.contentEditable = "false") : B(d) && (d.isDirectionless() || (M += f)), L += f, Kc += f;
41568
41819
  null !== b && (null != c ? b.insertBefore(e, c) : (c = b.__lexicalLineBreak, null != c ? b.insertBefore(e, c) : b.appendChild(e)));
41569
41820
  rc(ed, Mc, Pc, d, "created");
41570
41821
  return e;
@@ -41621,7 +41872,7 @@ function requireLexical_prod() {
41621
41872
  var c = Tc.get(a), d = Uc.get(a);
41622
41873
  void 0 !== c && void 0 !== d || r2(61);
41623
41874
  var e = Nc || Sc.has(a) || Rc.has(a);
41624
- let f = vc(N, a);
41875
+ let f = vc(N2, a);
41625
41876
  if (c === d && !e)
41626
41877
  return D(c) ? (d = f.__lexicalTextContent, void 0 !== d && (L += d, Kc += d), d = f.__lexicalDirTextContent, void 0 !== d && (M += d)) : (d = c.getTextContent(), B(c) && !c.isDirectionless() && (M += d), Kc += d, L += d), f;
41627
41878
  c !== d && e && rc(ed, Mc, Pc, d, "updated");
@@ -41671,12 +41922,12 @@ function requireLexical_prod() {
41671
41922
  void 0 === k && (k = new Set(l));
41672
41923
  void 0 === n && (n = new Set(m2));
41673
41924
  let A = n.has(q), Z = k.has(y);
41674
- A ? (Z ? (q = vc(N, y), q === u ? u = td(sd(y, f)) : (null != u ? f.insertBefore(q, u) : f.appendChild(q), sd(y, f)), x++) : md(y, f, u), h++) : (u = td(gd(q)), fd(q, f), x++);
41925
+ A ? (Z ? (q = vc(N2, y), q === u ? u = td(sd(y, f)) : (null != u ? f.insertBefore(q, u) : f.appendChild(q), sd(y, f)), x++) : md(y, f, u), h++) : (u = td(gd(q)), fd(q, f), x++);
41675
41926
  }
41676
41927
  }
41677
41928
  k = x > p;
41678
41929
  n = h > g;
41679
- k && !n ? (k = m2[g + 1], k = void 0 === k ? null : N.getElementByKey(k), nd(m2, a, h, g, f, k)) : n && !k && id(l, x, p, f);
41930
+ k && !n ? (k = m2[g + 1], k = void 0 === k ? null : N2.getElementByKey(k), nd(m2, a, h, g, f, k)) : n && !k && id(l, x, p, f);
41680
41931
  }
41681
41932
  }
41682
41933
  uc(a) && (L += "\n\n");
@@ -41684,26 +41935,26 @@ function requireLexical_prod() {
41684
41935
  L = b + L;
41685
41936
  od(a, f);
41686
41937
  M = e;
41687
- K(d) || d.isInline() || pd(c, d, f);
41938
+ K2(d) || d.isInline() || pd(c, d, f);
41688
41939
  }
41689
41940
  uc(d) && (L += "\n\n", Kc += "\n\n");
41690
41941
  } else
41691
- c = d.getTextContent(), z(d) ? (e = d.decorate(N, Lc), null !== e && qd(a, e)) : B(d) && !d.isDirectionless() && (M += c), L += c, Kc += c;
41692
- !Oc && K(d) && d.__cachedText !== Kc && (d = d.getWritable(), d.__cachedText = Kc);
41942
+ c = d.getTextContent(), z(d) ? (e = d.decorate(N2, Lc), null !== e && qd(a, e)) : B(d) && !d.isDirectionless() && (M += c), L += c, Kc += c;
41943
+ !Oc && K2(d) && d.__cachedText !== Kc && (d = d.getWritable(), d.__cachedText = Kc);
41693
41944
  return f;
41694
41945
  }
41695
41946
  function qd(a, b) {
41696
- let c = N._pendingDecorators, d = N._decorators;
41947
+ let c = N2._pendingDecorators, d = N2._decorators;
41697
41948
  if (null === c) {
41698
41949
  if (d[a] === b)
41699
41950
  return;
41700
- c = fc(N);
41951
+ c = fc(N2);
41701
41952
  }
41702
41953
  c[a] = b;
41703
41954
  }
41704
41955
  function td(a) {
41705
41956
  a = a.nextSibling;
41706
- null !== a && a === N._blockCursorElement && (a = a.nextSibling);
41957
+ null !== a && a === N2._blockCursorElement && (a = a.nextSibling);
41707
41958
  return a;
41708
41959
  }
41709
41960
  function gd(a) {
@@ -41768,7 +42019,7 @@ function requireLexical_prod() {
41768
42019
  if (C(c)) {
41769
42020
  let g = c.anchor;
41770
42021
  var f = g.getNode();
41771
- "element" === g.type && 0 === g.offset && c.isCollapsed() && !K(f) && 1 === hc().getChildrenSize() && f.getTopLevelElementOrThrow().isEmpty() && null !== e && c.is(e) ? (d.removeAllRanges(), c.dirty = true) : 3 !== a.detail || c.isCollapsed() || (d = c.focus.getNode(), f !== d && (D(f) ? f.select(0) : f.getParentOrThrow().select(0)));
42022
+ "element" === g.type && 0 === g.offset && c.isCollapsed() && !K2(f) && 1 === hc().getChildrenSize() && f.getTopLevelElementOrThrow().isEmpty() && null !== e && c.is(e) ? (d.removeAllRanges(), c.dirty = true) : 3 !== a.detail || c.isCollapsed() || (d = c.focus.getNode(), f !== d && (D(f) ? f.select(0) : f.getParentOrThrow().select(0)));
41772
42023
  } else
41773
42024
  "touch" === a.pointerType && (f = d.anchorNode, null !== f && (f = f.nodeType, 1 === f || 3 === f)) && (d = Qd(e, d, b), yb(d));
41774
42025
  O(b, ba, a);
@@ -41813,7 +42064,7 @@ function requireLexical_prod() {
41813
42064
  if (C(e)) {
41814
42065
  f = a.data;
41815
42066
  null !== Gd && nc(false, b, Gd);
41816
- e.dirty && null === Gd || !e.isCollapsed() || K(e.anchor.getNode()) || null === d || e.applyDOMRange(d);
42067
+ e.dirty && null === Gd || !e.isCollapsed() || K2(e.anchor.getNode()) || null === d || e.applyDOMRange(d);
41817
42068
  Gd = null;
41818
42069
  var g = e.focus, h = e.anchor.getNode();
41819
42070
  g = g.getNode();
@@ -42084,7 +42335,7 @@ function requireLexical_prod() {
42084
42335
  Ud(k) && b && a.isSelected() && a.selectPrevious();
42085
42336
  C(k) && b && !m2 ? (d = a.getIndexWithinParent(), bc(a), ae(k, e, d, -1)) : bc(a);
42086
42337
  c || yc(e) || e.canBeEmpty() || !e.isEmpty() || Zd(e, b);
42087
- b && K(e) && e.isEmpty() && e.selectEnd();
42338
+ b && K2(e) && e.isEmpty() && e.selectEnd();
42088
42339
  }
42089
42340
  }
42090
42341
  class be {
@@ -42974,7 +43225,7 @@ function requireLexical_prod() {
42974
43225
  Ae(a, b);
42975
43226
  }
42976
43227
  function Be(a, b, c, d) {
42977
- let e = a.getNode(), f = e.getChildAtIndex(a.offset), g = J(), h = K(e) ? de().append(g) : g;
43228
+ let e = a.getNode(), f = e.getChildAtIndex(a.offset), g = J(), h = K2(e) ? de().append(g) : g;
42978
43229
  g.setFormat(c);
42979
43230
  g.setStyle(d);
42980
43231
  null === f ? e.append(h) : (f.insertBefore(h), "element" === b.type && b.key === a.key && b.offset !== a.offset && b.set(b.key, b.offset + 1, "element"));
@@ -43387,7 +43638,7 @@ function requireLexical_prod() {
43387
43638
  p.replace(q);
43388
43639
  p = q;
43389
43640
  }
43390
- K(k.getNode()) || (p = p.spliceText(0, m2, ""));
43641
+ K2(k.getNode()) || (p = p.spliceText(0, m2, ""));
43391
43642
  e.add(p.__key);
43392
43643
  } else
43393
43644
  k = p.getParentOrThrow(), k.canBeEmpty() || 1 !== k.getChildrenSize() ? p.remove() : k.remove();
@@ -43545,7 +43796,7 @@ function requireLexical_prod() {
43545
43796
  d = 1 === a.length && d.canBeEmpty() && d.isEmpty() ? d.insertBefore(n, false) : d.insertAfter(n, false);
43546
43797
  else if (D(n)) {
43547
43798
  if (n.canBeEmpty() || !n.isEmpty())
43548
- K(d) ? (p = d.getChildAtIndex(c), null !== p ? p.insertBefore(n) : d.append(n), d = n) : n.isInline() ? (d.append(n), d = n) : d = d.insertAfter(n, false);
43799
+ K2(d) ? (p = d.getChildAtIndex(c), null !== p ? p.insertBefore(n) : d.append(n), d = n) : n.isInline() ? (d.append(n), d = n) : d = d.insertAfter(n, false);
43549
43800
  } else
43550
43801
  p = d.getFirstChild(), null !== p ? p.insertBefore(n) : d.append(n), d = n;
43551
43802
  else
@@ -43606,7 +43857,7 @@ function requireLexical_prod() {
43606
43857
  insertLineBreak(a) {
43607
43858
  let b = ge();
43608
43859
  var c = this.anchor;
43609
- "element" === c.type && (c = c.getNode(), K(c) && this.insertParagraph());
43860
+ "element" === c.type && (c = c.getNode(), K2(c) && this.insertParagraph());
43610
43861
  a ? this.insertNodes([b], true) : this.insertNodes([b]) && b.selectNext(0, 0);
43611
43862
  }
43612
43863
  getCharacterOffsets() {
@@ -43634,7 +43885,7 @@ function requireLexical_prod() {
43634
43885
  var h = e._blockCursorElement, k = e._rootElement;
43635
43886
  null === k || null === h || !D(g) || g.isInline() || g.canBeEmpty() || Dc(h, e, k);
43636
43887
  d.modify(a, b ? "backward" : "forward", c);
43637
- if (0 < d.rangeCount && (g = d.getRangeAt(0), e = this.anchor.getNode(), e = K(e) ? e : xc(e), this.applyDOMRange(g), this.dirty = true, !f)) {
43888
+ if (0 < d.rangeCount && (g = d.getRangeAt(0), e = this.anchor.getNode(), e = K2(e) ? e : xc(e), this.applyDOMRange(g), this.dirty = true, !f)) {
43638
43889
  f = this.getNodes();
43639
43890
  a = [];
43640
43891
  c = false;
@@ -43695,7 +43946,7 @@ function requireLexical_prod() {
43695
43946
  return;
43696
43947
  }
43697
43948
  this.removeText();
43698
- a && !b && this.isCollapsed() && "element" === this.anchor.type && 0 === this.anchor.offset && (a = this.anchor.getNode(), a.isEmpty() && K(a.getParent()) && 0 === a.getIndexWithinParent() && a.collapseAtStart(this));
43949
+ a && !b && this.isCollapsed() && "element" === this.anchor.type && 0 === this.anchor.offset && (a = this.anchor.getNode(), a.isEmpty() && K2(a.getParent()) && 0 === a.getIndexWithinParent() && a.collapseAtStart(this));
43699
43950
  }
43700
43951
  deleteLine(a) {
43701
43952
  this.isCollapsed() && ("text" === this.anchor.type && this.modify("extend", a, "lineboundary"), 0 === (a ? this.focus : this.anchor).offset && this.modify("extend", a, "character"));
@@ -44035,10 +44286,10 @@ function requireLexical_prod() {
44035
44286
  M = Kc = L = "";
44036
44287
  Nc = 2 === x;
44037
44288
  Qc = null;
44038
- N = a;
44289
+ N2 = a;
44039
44290
  Lc = a._config;
44040
44291
  Mc = a._nodes;
44041
- Pc = N._listeners.mutation;
44292
+ Pc = N2._listeners.mutation;
44042
44293
  Rc = y;
44043
44294
  Sc = A;
44044
44295
  Tc = f._nodeMap;
@@ -44048,7 +44299,7 @@ function requireLexical_prod() {
44048
44299
  let ia = /* @__PURE__ */ new Map();
44049
44300
  ed = ia;
44050
44301
  sd("root", null);
44051
- ed = Vc = Lc = Uc = Tc = Sc = Rc = Mc = N = void 0;
44302
+ ed = Vc = Lc = Uc = Tc = Sc = Rc = Mc = N2 = void 0;
44052
44303
  u = ia;
44053
44304
  } catch (E) {
44054
44305
  E instanceof Error && a._onError(E);
@@ -44081,8 +44332,8 @@ function requireLexical_prod() {
44081
44332
  let E = a._blockCursorElement;
44082
44333
  null !== E && Dc(E, a, d);
44083
44334
  a: {
44084
- let Q = ja.anchorNode, R = ja.focusNode, ia = ja.anchorOffset, lb = ja.focusOffset, W = document.activeElement;
44085
- if (!(la.has("collaboration") && W !== d || null !== W && Kb(W)))
44335
+ let Q = ja.anchorNode, R = ja.focusNode, ia = ja.anchorOffset, lb = ja.focusOffset, W2 = document.activeElement;
44336
+ if (!(la.has("collaboration") && W2 !== d || null !== W2 && Kb(W2)))
44086
44337
  if (C(h)) {
44087
44338
  var mb = h.anchor, Yc = h.focus, Fe = mb.key, Ff = Yc.key, Ge = vc(a, Fe), He = vc(a, Ff), Qb = mb.offset, Ie = Yc.offset, Zc = h.format, $c = h.style, Je = h.isCollapsed(), nb = Ge, Rb = He, ad = false;
44088
44339
  if ("text" === mb.type) {
@@ -44097,7 +44348,7 @@ function requireLexical_prod() {
44097
44348
  var Gf = performance.now();
44098
44349
  Md = [Zc, $c, Qb, Fe, Gf];
44099
44350
  }
44100
- if (ia === Qb && lb === Ie && Q === nb && R === Rb && ("Range" !== ja.type || !Je) && (null !== W && d.contains(W) || d.focus({ preventScroll: true }), "element" !== mb.type))
44351
+ if (ia === Qb && lb === Ie && Q === nb && R === Rb && ("Range" !== ja.type || !Je) && (null !== W2 && d.contains(W2) || d.focus({ preventScroll: true }), "element" !== mb.type))
44101
44352
  break a;
44102
44353
  try {
44103
44354
  ja.setBaseAndExtent(nb, Qb, Rb, Ie);
@@ -44151,19 +44402,19 @@ function requireLexical_prod() {
44151
44402
  a: {
44152
44403
  let E = a._blockCursorElement;
44153
44404
  if (C(h) && h.isCollapsed() && "element" === h.anchor.type && d.contains(document.activeElement)) {
44154
- let Q = h.anchor, R = Q.getNode(), ia = Q.offset, lb = R.getChildrenSize(), W = false, X2 = null;
44405
+ let Q = h.anchor, R = Q.getNode(), ia = Q.offset, lb = R.getChildrenSize(), W2 = false, X2 = null;
44155
44406
  if (ia === lb) {
44156
44407
  let Y = R.getChildAtIndex(ia - 1);
44157
- Cc(Y) && (W = true);
44408
+ Cc(Y) && (W2 = true);
44158
44409
  } else {
44159
44410
  let Y = R.getChildAtIndex(ia);
44160
44411
  if (Cc(Y)) {
44161
44412
  let wa = Y.getPreviousSibling();
44162
44413
  if (null === wa || Cc(wa))
44163
- W = true, X2 = a.getElementByKey(Y.__key);
44414
+ W2 = true, X2 = a.getElementByKey(Y.__key);
44164
44415
  }
44165
44416
  }
44166
- if (W) {
44417
+ if (W2) {
44167
44418
  let Y = a.getElementByKey(R.__key);
44168
44419
  if (null === E) {
44169
44420
  let wa = a._config.theme, Da = document.createElement("div");
@@ -44195,8 +44446,8 @@ function requireLexical_prod() {
44195
44446
  var Hf = u;
44196
44447
  let E = Array.from(a._listeners.mutation), Q = E.length;
44197
44448
  for (let R = 0; R < Q; R++) {
44198
- let [ia, lb] = E[R], W = Hf.get(lb);
44199
- void 0 !== W && ia(W, { dirtyLeaves: Z, prevEditorState: f, updateTags: la });
44449
+ let [ia, lb] = E[R], W2 = Hf.get(lb);
44450
+ void 0 !== W2 && ia(W2, { dirtyLeaves: Z, prevEditorState: f, updateTags: la });
44200
44451
  }
44201
44452
  }
44202
44453
  C(h) || null === h || null !== g && g.is(h) || a.dispatchCommand(aa, void 0);
@@ -44710,7 +44961,7 @@ function requireLexical_prod() {
44710
44961
  return true;
44711
44962
  }
44712
44963
  }
44713
- function K(a) {
44964
+ function K2(a) {
44714
44965
  return a instanceof zf;
44715
44966
  }
44716
44967
  function vf(a, b) {
@@ -45174,7 +45425,7 @@ function requireLexical_prod() {
45174
45425
  return a instanceof Cf;
45175
45426
  };
45176
45427
  Lexical_prod.$isRangeSelection = C;
45177
- Lexical_prod.$isRootNode = K;
45428
+ Lexical_prod.$isRootNode = K2;
45178
45429
  Lexical_prod.$isRootOrShadowRoot = yc;
45179
45430
  Lexical_prod.$isTabNode = function(a) {
45180
45431
  return a instanceof ye;
@@ -56106,7 +56357,7 @@ function requireLexicalList_prod() {
56106
56357
  };
56107
56358
  }
56108
56359
  static importDOM() {
56109
- return { li: () => ({ conversion: K, priority: 0 }) };
56360
+ return { li: () => ({ conversion: K2, priority: 0 }) };
56110
56361
  }
56111
56362
  static importJSON(a) {
56112
56363
  let b = y();
@@ -56310,7 +56561,7 @@ function requireLexicalList_prod() {
56310
56561
  function I(a, b, c) {
56311
56562
  q(b.getFirstChild()) ? (a.removeAttribute("role"), a.removeAttribute("tabIndex"), a.removeAttribute("aria-checked")) : (a.setAttribute("role", "checkbox"), a.setAttribute("tabIndex", "-1"), c && b.__checked === c.__checked || a.setAttribute("aria-checked", b.getChecked() ? "true" : "false"));
56312
56563
  }
56313
- function K(a) {
56564
+ function K2(a) {
56314
56565
  a = k.isHTMLElement(a) && "true" === a.getAttribute("aria-checked");
56315
56566
  return { node: y(a) };
56316
56567
  }
@@ -56325,11 +56576,11 @@ function requireLexicalList_prod() {
56325
56576
  return "list";
56326
56577
  }
56327
56578
  static clone(a) {
56328
- return new L(a.__listType || N[a.__tag], a.__start, a.__key);
56579
+ return new L(a.__listType || N2[a.__tag], a.__start, a.__key);
56329
56580
  }
56330
56581
  constructor(a, b, c) {
56331
56582
  super(c);
56332
- this.__listType = a = N[a] || a;
56583
+ this.__listType = a = N2[a] || a;
56333
56584
  this.__tag = "number" === a ? "ol" : "ul";
56334
56585
  this.__start = b;
56335
56586
  }
@@ -56440,7 +56691,7 @@ function requireLexicalList_prod() {
56440
56691
  "ol" === b ? c = D("number", a.start) : "ul" === b && (c = k.isHTMLElement(a) && "check" === a.getAttribute("__lexicallisttype") ? D("check") : D("bullet"));
56441
56692
  return { after: Q, node: c };
56442
56693
  }
56443
- let N = { ol: "number", ul: "bullet" };
56694
+ let N2 = { ol: "number", ul: "bullet" };
56444
56695
  function D(a, b = 1) {
56445
56696
  return h.$applyNodeReplacement(new L(a, b));
56446
56697
  }
@@ -59337,12 +59588,12 @@ function requireLexicalClipboard_prod() {
59337
59588
  let H = y[G];
59338
59589
  u.DEPRECATED_$isGridCellNode(H) || z(25);
59339
59590
  l === f && v === c ? n = w.getKey() : l === k && v === h && (q = w.getKey());
59340
- let N = w.getChildren();
59591
+ let N2 = w.getChildren();
59341
59592
  H.getChildren().forEach((x) => {
59342
59593
  u.$isTextNode(x) && u.$createParagraphNode().append(x);
59343
59594
  w.append(x);
59344
59595
  });
59345
- N.forEach((x) => x.remove());
59596
+ N2.forEach((x) => x.remove());
59346
59597
  G++;
59347
59598
  }
59348
59599
  g++;
@@ -59379,7 +59630,7 @@ function requireLexicalClipboard_prod() {
59379
59630
  J(a, b, e[f], c);
59380
59631
  return { namespace: a._config.namespace, nodes: c };
59381
59632
  }
59382
- function K(a) {
59633
+ function K2(a) {
59383
59634
  let b = [];
59384
59635
  for (let c = 0; c < a.length; c++) {
59385
59636
  let e = u.$parseSerializedNode(a[c]);
@@ -59412,7 +59663,7 @@ function requireLexicalClipboard_prod() {
59412
59663
  return true;
59413
59664
  }
59414
59665
  LexicalClipboard_prod.$generateJSONFromSelectedNodes = D;
59415
- LexicalClipboard_prod.$generateNodesFromSerializedNodes = K;
59666
+ LexicalClipboard_prod.$generateNodesFromSerializedNodes = K2;
59416
59667
  LexicalClipboard_prod.$getHtmlContent = B;
59417
59668
  LexicalClipboard_prod.$getLexicalContent = C;
59418
59669
  LexicalClipboard_prod.$insertDataTransferForPlainText = function(a, b) {
@@ -59425,7 +59676,7 @@ function requireLexicalClipboard_prod() {
59425
59676
  try {
59426
59677
  let g = JSON.parse(e);
59427
59678
  if (g.namespace === c._config.namespace && Array.isArray(g.nodes)) {
59428
- let k = K(g.nodes);
59679
+ let k = K2(g.nodes);
59429
59680
  return E(c, k, b);
59430
59681
  }
59431
59682
  } catch {
@@ -60276,8 +60527,8 @@ function requireLexicalRichText_prod() {
60276
60527
  if (0 < d.length) {
60277
60528
  var e = l(a.clientX, a.clientY);
60278
60529
  if (null !== e) {
60279
- const { offset: m2, node: K } = e;
60280
- var f = k.$getNearestNodeFromDOMNode(K);
60530
+ const { offset: m2, node: K2 } = e;
60531
+ var f = k.$getNearestNodeFromDOMNode(K2);
60281
60532
  if (null !== f) {
60282
60533
  e = k.$createRangeSelection();
60283
60534
  if (k.$isTextNode(f))
@@ -68792,6 +69043,29 @@ function ValFormField({
68792
69043
  }
68793
69044
  );
68794
69045
  }
69046
+ if ((typeof source === "number" || source === null) && (schema == null ? void 0 : schema.type) === "number") {
69047
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(
69048
+ NumberField,
69049
+ {
69050
+ defaultValue: source,
69051
+ disabled,
69052
+ registerPatchCallback,
69053
+ onSubmit
69054
+ }
69055
+ );
69056
+ }
69057
+ if ((typeof source === "number" || typeof source === "string" || source === null) && (schema == null ? void 0 : schema.type) === "keyOf") {
69058
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(
69059
+ KeyOfField,
69060
+ {
69061
+ defaultValue: source,
69062
+ disabled,
69063
+ registerPatchCallback,
69064
+ onSubmit,
69065
+ selector: schema.selector
69066
+ }
69067
+ );
69068
+ }
68795
69069
  if ((typeof source === "object" || source === null) && (schema == null ? void 0 : schema.type) === "richtext") {
68796
69070
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
68797
69071
  RichTextField,
@@ -69040,7 +69314,7 @@ function KeyOfField({
69040
69314
  };
69041
69315
  };
69042
69316
  const typeAndValues = getValuesFromModule(valModule);
69043
- const [value, setValue] = reactExports.useState(defaultValue ?? typeAndValues.values[0]);
69317
+ const [value, setValue] = reactExports.useState(defaultValue || typeAndValues.values[0]);
69044
69318
  const [loading, setLoading] = reactExports.useState(false);
69045
69319
  reactExports.useEffect(() => {
69046
69320
  setLoading(disabled);