@ikonai/sdk-react-ui-standard 1.0.12 → 1.0.13

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.
Files changed (2) hide show
  1. package/index.js +437 -432
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as f from "react";
2
- import de, { useState as Me, useRef as ye, useEffect as xe, useCallback as ce, memo as O, Fragment as Ht, createElement as so, useLayoutEffect as w2, createContext as jn, useContext as mt, useMemo as Ee, isValidElement as xc, Children as hm, forwardRef as p1, useReducer as pm, cloneElement as ym } from "react";
2
+ import de, { useState as Me, useRef as ye, useEffect as xe, useCallback as ce, memo as O, Fragment as Ht, createElement as so, useLayoutEffect as w2, createContext as jn, useContext as mt, useMemo as Ie, isValidElement as xc, Children as hm, forwardRef as p1, useReducer as pm, cloneElement as ym } from "react";
3
3
  import { useUiNode as z, renderMotionLetters as y1 } from "@ikonai/sdk-react-ui";
4
4
  import * as la from "react-dom";
5
5
  import gn, { unstable_batchedUpdates as ja, createPortal as fm } from "react-dom";
@@ -207,10 +207,10 @@ function xm() {
207
207
  else h(oe);
208
208
  if (L.call(X, "key")) {
209
209
  oe = e(b);
210
- var me = Object.keys(X).filter(function(fe) {
211
- return fe !== "key";
210
+ var fe = Object.keys(X).filter(function(ve) {
211
+ return ve !== "key";
212
212
  });
213
- I = 0 < me.length ? "{key: someKey, " + me.join(": ..., ") + ": ...}" : "{key: someKey}", Z[oe + I] || (me = 0 < me.length ? "{" + me.join(": ..., ") + ": ...}" : "{}", console.error(
213
+ I = 0 < fe.length ? "{key: someKey, " + fe.join(": ..., ") + ": ...}" : "{key: someKey}", Z[oe + I] || (fe = 0 < fe.length ? "{" + fe.join(": ..., ") + ": ...}" : "{}", console.error(
214
214
  `A props object containing a "key" prop is being spread into JSX:
215
215
  let props = %s;
216
216
  <%s {...props} />
@@ -219,7 +219,7 @@ React keys must be passed directly to JSX without using spread:
219
219
  <%s key={someKey} {...props} />`,
220
220
  I,
221
221
  oe,
222
- me,
222
+ fe,
223
223
  oe
224
224
  ), Z[oe + I] = !0);
225
225
  }
@@ -627,40 +627,45 @@ function Tm() {
627
627
  if (!le || !ne)
628
628
  return;
629
629
  if (s.current) {
630
- const ke = s.current;
631
- if ("isActive" in ke ? ke.isActive : !0) {
632
- "startSegment" in ke && typeof ke.startSegment == "function" && ke.startSegment(), c.current = !0, y(!0), E(A, { StreamId: ke.streamId, Kind: M });
630
+ const be = s.current;
631
+ if ("isActive" in be ? be.isActive : !0) {
632
+ "startSegment" in be && typeof be.startSegment == "function" && be.startSegment(), c.current = !0, y(!0), E(A, { StreamId: be.streamId, Kind: M });
633
633
  return;
634
634
  }
635
635
  s.current = null;
636
636
  }
637
- const J = Im(C), oe = { userGesture: !0 }, me = async () => {
638
- const ke = J && typeof J == "object" ? J : void 0, Te = ke?.constraints;
639
- return M === "audio" ? await ne.audio.startMic({ ...oe, options: ke, constraints: Te }) : M === "camera" ? await ne.video.startCamera({ ...oe, options: ke, constraints: Te }) : await ne.video.startScreen({ ...oe, options: ke, constraints: Te });
637
+ const J = Im(C), oe = { userGesture: !0 }, fe = () => {
638
+ if (!s.current)
639
+ return;
640
+ const be = s.current.streamId;
641
+ s.current = null, c.current = !1, y(!1), E(S, { StreamId: be, Kind: M });
642
+ }, ie = async () => {
643
+ const be = J && typeof J == "object" ? J : void 0, De = be?.constraints;
644
+ return M === "audio" ? await ne.audio.startMic({ ...oe, options: be, constraints: De, onStopped: fe }) : M === "camera" ? await ne.video.startCamera({ ...oe, options: be, constraints: De, onStopped: fe }) : await ne.video.startScreen({ ...oe, options: be, constraints: De, onStopped: fe });
640
645
  };
641
646
  u.current = !1;
642
- const ie = me();
643
- d.current = ie;
644
- let fe = null;
647
+ const ve = ie();
648
+ d.current = ve;
649
+ let ke = null;
645
650
  try {
646
- fe = await ie;
651
+ ke = await ve;
647
652
  } finally {
648
653
  d.current = null;
649
654
  }
650
- if (!fe) {
655
+ if (!ke) {
651
656
  u.current = !1;
652
657
  return;
653
658
  }
654
659
  if (u.current) {
655
660
  u.current = !1;
656
661
  try {
657
- await fe.stop();
662
+ await ke.stop();
658
663
  } catch {
659
664
  }
660
665
  return;
661
666
  }
662
- s.current = fe, "startSegment" in fe && typeof fe.startSegment == "function" && fe.startSegment(), c.current = !0, y(!0), E(A, { StreamId: fe.streamId, Kind: M });
663
- }, [o, E, M, A, C]);
667
+ s.current = ke, "startSegment" in ke && typeof ke.startSegment == "function" && ke.startSegment(), c.current = !0, y(!0), E(A, { StreamId: ke.streamId, Kind: M });
668
+ }, [o, E, M, A, S, C]);
664
669
  xe(() => () => {
665
670
  const le = s.current;
666
671
  le && (le.stop(), s.current = null);
@@ -1144,17 +1149,17 @@ function Km(...e) {
1144
1149
  };
1145
1150
  return n.scopeName = t.scopeName, n;
1146
1151
  }
1147
- var Se = globalThis?.document ? f.useLayoutEffect : () => {
1152
+ var Re = globalThis?.document ? f.useLayoutEffect : () => {
1148
1153
  }, Zm = f[" useId ".trim().toString()] || (() => {
1149
1154
  }), Ym = 0;
1150
- function je(e) {
1155
+ function Oe(e) {
1151
1156
  const [t, n] = f.useState(Zm());
1152
- return Se(() => {
1157
+ return Re(() => {
1153
1158
  n((a) => a ?? String(Ym++));
1154
1159
  }, [e]), e || (t ? `radix-${t}` : "");
1155
1160
  }
1156
- var Xm = f[" useInsertionEffect ".trim().toString()] || Se;
1157
- function Le({
1161
+ var Xm = f[" useInsertionEffect ".trim().toString()] || Re;
1162
+ function je({
1158
1163
  prop: e,
1159
1164
  defaultProp: t,
1160
1165
  onChange: n = () => {
@@ -1200,14 +1205,14 @@ function Jm({
1200
1205
  function Qm(e) {
1201
1206
  return typeof e == "function";
1202
1207
  }
1203
- function Ae(e) {
1208
+ function Ee(e) {
1204
1209
  const t = f.useRef(e);
1205
1210
  return f.useEffect(() => {
1206
1211
  t.current = e;
1207
1212
  }), f.useMemo(() => (...n) => t.current?.(...n), []);
1208
1213
  }
1209
1214
  function e5(e, t = globalThis?.document) {
1210
- const n = Ae(e);
1215
+ const n = Ee(e);
1211
1216
  f.useEffect(() => {
1212
1217
  const a = (o) => {
1213
1218
  o.key === "Escape" && n(o);
@@ -1280,7 +1285,7 @@ var a5 = "DismissableLayerBranch", E2 = f.forwardRef((e, t) => {
1280
1285
  });
1281
1286
  E2.displayName = a5;
1282
1287
  function o5(e, t = globalThis?.document) {
1283
- const n = Ae(e), a = f.useRef(!1), o = f.useRef(() => {
1288
+ const n = Ee(e), a = f.useRef(!1), o = f.useRef(() => {
1284
1289
  });
1285
1290
  return f.useEffect(() => {
1286
1291
  const r = (s) => {
@@ -1310,7 +1315,7 @@ function o5(e, t = globalThis?.document) {
1310
1315
  };
1311
1316
  }
1312
1317
  function i5(e, t = globalThis?.document) {
1313
- const n = Ae(e), a = f.useRef(!1);
1318
+ const n = Ee(e), a = f.useRef(!1);
1314
1319
  return f.useEffect(() => {
1315
1320
  const o = (r) => {
1316
1321
  r.target && !a.current && I2(r5, n, { originalEvent: r }, {
@@ -1338,7 +1343,7 @@ var s5 = tn, l5 = E2, ji = "focusScope.autoFocusOnMount", Oi = "focusScope.autoF
1338
1343
  onMountAutoFocus: o,
1339
1344
  onUnmountAutoFocus: r,
1340
1345
  ...i
1341
- } = e, [s, c] = f.useState(null), d = Ae(o), u = Ae(r), h = f.useRef(null), y = se(t, (g) => c(g)), p = f.useRef({
1346
+ } = e, [s, c] = f.useState(null), d = Ee(o), u = Ee(r), h = f.useRef(null), y = se(t, (g) => c(g)), p = f.useRef({
1342
1347
  paused: !1,
1343
1348
  pause() {
1344
1349
  this.paused = !0;
@@ -1461,7 +1466,7 @@ function f5(e) {
1461
1466
  }
1462
1467
  var k5 = "Portal", P2 = f.forwardRef((e, t) => {
1463
1468
  const { container: n, ...a } = e, [o, r] = f.useState(!1);
1464
- Se(() => r(!0), []);
1469
+ Re(() => r(!0), []);
1465
1470
  const i = n || o && globalThis?.document?.body;
1466
1471
  return i ? gn.createPortal(/* @__PURE__ */ k.jsx(K.div, { ...a, ref: t }), i) : null;
1467
1472
  });
@@ -1491,13 +1496,13 @@ function g5(e) {
1491
1496
  return f.useEffect(() => {
1492
1497
  const d = Va(a.current);
1493
1498
  r.current = s === "mounted" ? d : "none";
1494
- }, [s]), Se(() => {
1499
+ }, [s]), Re(() => {
1495
1500
  const d = a.current, u = o.current;
1496
1501
  if (u !== e) {
1497
1502
  const y = r.current, p = Va(d);
1498
1503
  e ? c("MOUNT") : p === "none" || d?.display === "none" ? c("UNMOUNT") : c(u && y !== p ? "ANIMATION_OUT" : "UNMOUNT"), o.current = e;
1499
1504
  }
1500
- }, [e, c]), Se(() => {
1505
+ }, [e, c]), Re(() => {
1501
1506
  if (t) {
1502
1507
  let d;
1503
1508
  const u = t.ownerDocument.defaultView ?? window, h = (p) => {
@@ -2074,7 +2079,7 @@ var ng = function(e) {
2074
2079
  defaultOpen: o,
2075
2080
  onOpenChange: r,
2076
2081
  modal: i = !0
2077
- } = e, s = f.useRef(null), c = f.useRef(null), [d, u] = Le({
2082
+ } = e, s = f.useRef(null), c = f.useRef(null), [d, u] = je({
2078
2083
  prop: a,
2079
2084
  defaultProp: o ?? !1,
2080
2085
  onChange: r,
@@ -2086,9 +2091,9 @@ var ng = function(e) {
2086
2091
  scope: t,
2087
2092
  triggerRef: s,
2088
2093
  contentRef: c,
2089
- contentId: je(),
2090
- titleId: je(),
2091
- descriptionId: je(),
2094
+ contentId: Oe(),
2095
+ titleId: Oe(),
2096
+ descriptionId: Oe(),
2092
2097
  open: d,
2093
2098
  onOpenChange: u,
2094
2099
  onOpenToggle: f.useCallback(() => u((h) => !h), [u]),
@@ -3875,7 +3880,7 @@ mu.displayName = Bv;
3875
3880
  var Uv = mu;
3876
3881
  function ha(e) {
3877
3882
  const [t, n] = f.useState(void 0);
3878
- return Se(() => {
3883
+ return Re(() => {
3879
3884
  if (e) {
3880
3885
  n({ width: e.offsetWidth, height: e.offsetHeight });
3881
3886
  const a = new ResizeObserver((o) => {
@@ -3953,21 +3958,21 @@ var L1 = "PopperContent", [Gv, Wv] = gu(L1), bu = f.forwardRef(
3953
3958
  c && zv({ ...G }),
3954
3959
  Fv({
3955
3960
  ...G,
3956
- apply: ({ elements: J, rects: oe, availableWidth: me, availableHeight: ie }) => {
3957
- const { width: fe, height: ke } = oe.reference, Te = J.floating.style;
3958
- Te.setProperty("--radix-popper-available-width", `${me}px`), Te.setProperty("--radix-popper-available-height", `${ie}px`), Te.setProperty("--radix-popper-anchor-width", `${fe}px`), Te.setProperty("--radix-popper-anchor-height", `${ke}px`);
3961
+ apply: ({ elements: J, rects: oe, availableWidth: fe, availableHeight: ie }) => {
3962
+ const { width: ve, height: ke } = oe.reference, be = J.floating.style;
3963
+ be.setProperty("--radix-popper-available-width", `${fe}px`), be.setProperty("--radix-popper-available-height", `${ie}px`), be.setProperty("--radix-popper-anchor-width", `${ve}px`), be.setProperty("--radix-popper-anchor-height", `${ke}px`);
3959
3964
  }
3960
3965
  }),
3961
3966
  C && qv({ element: C, padding: s }),
3962
3967
  Yv({ arrowWidth: E, arrowHeight: P }),
3963
3968
  y && Hv({ strategy: "referenceHidden", ...G })
3964
3969
  ]
3965
- }), [Z, b] = Ru(q), X = Ae(m);
3966
- Se(() => {
3970
+ }), [Z, b] = Ru(q), X = Ee(m);
3971
+ Re(() => {
3967
3972
  j && X?.();
3968
3973
  }, [j, X]);
3969
3974
  const re = $.arrow?.x, I = $.arrow?.y, he = $.arrow?.centerOffset !== 0, [le, ne] = f.useState();
3970
- return Se(() => {
3975
+ return Re(() => {
3971
3976
  x && ne(window.getComputedStyle(x).zIndex);
3972
3977
  }, [x]), /* @__PURE__ */ k.jsx(
3973
3978
  "div",
@@ -4093,7 +4098,7 @@ function Ru(e) {
4093
4098
  }
4094
4099
  var gr = xu, vr = wu, pa = bu, ya = Su, Xv = "Portal", Au = f.forwardRef((e, t) => {
4095
4100
  const { container: n, ...a } = e, [o, r] = f.useState(!1);
4096
- Se(() => r(!0), []);
4101
+ Re(() => r(!0), []);
4097
4102
  const i = n || o && globalThis?.document?.body;
4098
4103
  return i ? gn.createPortal(/* @__PURE__ */ k.jsx(K.div, { ...a, ref: t }), i) : null;
4099
4104
  });
@@ -4108,7 +4113,7 @@ var Jo = "Popover", [Eu] = _e(Jo, [
4108
4113
  defaultOpen: o,
4109
4114
  onOpenChange: r,
4110
4115
  modal: i = !1
4111
- } = e, s = fa(t), c = f.useRef(null), [d, u] = f.useState(!1), [h, y] = Le({
4116
+ } = e, s = fa(t), c = f.useRef(null), [d, u] = f.useState(!1), [h, y] = je({
4112
4117
  prop: a,
4113
4118
  defaultProp: o ?? !1,
4114
4119
  onChange: r,
@@ -4118,7 +4123,7 @@ var Jo = "Popover", [Eu] = _e(Jo, [
4118
4123
  Jv,
4119
4124
  {
4120
4125
  scope: t,
4121
- contentId: je(),
4126
+ contentId: Oe(),
4122
4127
  triggerRef: c,
4123
4128
  open: h,
4124
4129
  onOpenChange: y,
@@ -4506,14 +4511,14 @@ et.prototype.property = "";
4506
4511
  et.prototype.spaceSeparated = !1;
4507
4512
  et.prototype.space = void 0;
4508
4513
  let x3 = 0;
4509
- const ve = Vn(), Ve = Vn(), Rs = Vn(), Q = Vn(), Pe = Vn(), nr = Vn(), it = Vn();
4514
+ const ge = Vn(), ze = Vn(), Rs = Vn(), Q = Vn(), Pe = Vn(), nr = Vn(), it = Vn();
4510
4515
  function Vn() {
4511
4516
  return 2 ** ++x3;
4512
4517
  }
4513
4518
  const As = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4514
4519
  __proto__: null,
4515
- boolean: ve,
4516
- booleanish: Ve,
4520
+ boolean: ge,
4521
+ booleanish: ze,
4517
4522
  commaOrSpaceSeparated: it,
4518
4523
  commaSeparated: nr,
4519
4524
  number: Q,
@@ -4566,10 +4571,10 @@ function xr(e) {
4566
4571
  const $u = xr({
4567
4572
  properties: {
4568
4573
  ariaActiveDescendant: null,
4569
- ariaAtomic: Ve,
4574
+ ariaAtomic: ze,
4570
4575
  ariaAutoComplete: null,
4571
- ariaBusy: Ve,
4572
- ariaChecked: Ve,
4576
+ ariaBusy: ze,
4577
+ ariaChecked: ze,
4573
4578
  ariaColCount: Q,
4574
4579
  ariaColIndex: Q,
4575
4580
  ariaColSpan: Q,
@@ -4577,36 +4582,36 @@ const $u = xr({
4577
4582
  ariaCurrent: null,
4578
4583
  ariaDescribedBy: Pe,
4579
4584
  ariaDetails: null,
4580
- ariaDisabled: Ve,
4585
+ ariaDisabled: ze,
4581
4586
  ariaDropEffect: Pe,
4582
4587
  ariaErrorMessage: null,
4583
- ariaExpanded: Ve,
4588
+ ariaExpanded: ze,
4584
4589
  ariaFlowTo: Pe,
4585
- ariaGrabbed: Ve,
4590
+ ariaGrabbed: ze,
4586
4591
  ariaHasPopup: null,
4587
- ariaHidden: Ve,
4592
+ ariaHidden: ze,
4588
4593
  ariaInvalid: null,
4589
4594
  ariaKeyShortcuts: null,
4590
4595
  ariaLabel: null,
4591
4596
  ariaLabelledBy: Pe,
4592
4597
  ariaLevel: Q,
4593
4598
  ariaLive: null,
4594
- ariaModal: Ve,
4595
- ariaMultiLine: Ve,
4596
- ariaMultiSelectable: Ve,
4599
+ ariaModal: ze,
4600
+ ariaMultiLine: ze,
4601
+ ariaMultiSelectable: ze,
4597
4602
  ariaOrientation: null,
4598
4603
  ariaOwns: Pe,
4599
4604
  ariaPlaceholder: null,
4600
4605
  ariaPosInSet: Q,
4601
- ariaPressed: Ve,
4602
- ariaReadOnly: Ve,
4606
+ ariaPressed: ze,
4607
+ ariaReadOnly: ze,
4603
4608
  ariaRelevant: null,
4604
- ariaRequired: Ve,
4609
+ ariaRequired: ze,
4605
4610
  ariaRoleDescription: Pe,
4606
4611
  ariaRowCount: Q,
4607
4612
  ariaRowIndex: Q,
4608
4613
  ariaRowSpan: Q,
4609
- ariaSelected: Ve,
4614
+ ariaSelected: ze,
4610
4615
  ariaSetSize: Q,
4611
4616
  ariaSort: null,
4612
4617
  ariaValueMax: Q,
@@ -4641,40 +4646,40 @@ const M3 = xr({
4641
4646
  accessKey: Pe,
4642
4647
  action: null,
4643
4648
  allow: null,
4644
- allowFullScreen: ve,
4645
- allowPaymentRequest: ve,
4646
- allowUserMedia: ve,
4649
+ allowFullScreen: ge,
4650
+ allowPaymentRequest: ge,
4651
+ allowUserMedia: ge,
4647
4652
  alt: null,
4648
4653
  as: null,
4649
- async: ve,
4654
+ async: ge,
4650
4655
  autoCapitalize: null,
4651
4656
  autoComplete: Pe,
4652
- autoFocus: ve,
4653
- autoPlay: ve,
4657
+ autoFocus: ge,
4658
+ autoPlay: ge,
4654
4659
  blocking: Pe,
4655
4660
  capture: null,
4656
4661
  charSet: null,
4657
- checked: ve,
4662
+ checked: ge,
4658
4663
  cite: null,
4659
4664
  className: Pe,
4660
4665
  cols: Q,
4661
4666
  colSpan: null,
4662
4667
  content: null,
4663
- contentEditable: Ve,
4664
- controls: ve,
4668
+ contentEditable: ze,
4669
+ controls: ge,
4665
4670
  controlsList: Pe,
4666
4671
  coords: Q | nr,
4667
4672
  crossOrigin: null,
4668
4673
  data: null,
4669
4674
  dateTime: null,
4670
4675
  decoding: null,
4671
- default: ve,
4672
- defer: ve,
4676
+ default: ge,
4677
+ defer: ge,
4673
4678
  dir: null,
4674
4679
  dirName: null,
4675
- disabled: ve,
4680
+ disabled: ge,
4676
4681
  download: Rs,
4677
- draggable: Ve,
4682
+ draggable: ze,
4678
4683
  encType: null,
4679
4684
  enterKeyHint: null,
4680
4685
  fetchPriority: null,
@@ -4682,7 +4687,7 @@ const M3 = xr({
4682
4687
  formAction: null,
4683
4688
  formEncType: null,
4684
4689
  formMethod: null,
4685
- formNoValidate: ve,
4690
+ formNoValidate: ge,
4686
4691
  formTarget: null,
4687
4692
  headers: Pe,
4688
4693
  height: Q,
@@ -4695,15 +4700,15 @@ const M3 = xr({
4695
4700
  id: null,
4696
4701
  imageSizes: null,
4697
4702
  imageSrcSet: null,
4698
- inert: ve,
4703
+ inert: ge,
4699
4704
  inputMode: null,
4700
4705
  integrity: null,
4701
4706
  is: null,
4702
- isMap: ve,
4707
+ isMap: ge,
4703
4708
  itemId: null,
4704
4709
  itemProp: Pe,
4705
4710
  itemRef: Pe,
4706
- itemScope: ve,
4711
+ itemScope: ge,
4707
4712
  itemType: Pe,
4708
4713
  kind: null,
4709
4714
  label: null,
@@ -4711,7 +4716,7 @@ const M3 = xr({
4711
4716
  language: null,
4712
4717
  list: null,
4713
4718
  loading: null,
4714
- loop: ve,
4719
+ loop: ge,
4715
4720
  low: Q,
4716
4721
  manifest: null,
4717
4722
  max: null,
@@ -4720,12 +4725,12 @@ const M3 = xr({
4720
4725
  method: null,
4721
4726
  min: null,
4722
4727
  minLength: Q,
4723
- multiple: ve,
4724
- muted: ve,
4728
+ multiple: ge,
4729
+ muted: ge,
4725
4730
  name: null,
4726
4731
  nonce: null,
4727
- noModule: ve,
4728
- noValidate: ve,
4732
+ noModule: ge,
4733
+ noValidate: ge,
4729
4734
  onAbort: null,
4730
4735
  onAfterPrint: null,
4731
4736
  onAuxClick: null,
@@ -4814,38 +4819,38 @@ const M3 = xr({
4814
4819
  onVolumeChange: null,
4815
4820
  onWaiting: null,
4816
4821
  onWheel: null,
4817
- open: ve,
4822
+ open: ge,
4818
4823
  optimum: Q,
4819
4824
  pattern: null,
4820
4825
  ping: Pe,
4821
4826
  placeholder: null,
4822
- playsInline: ve,
4827
+ playsInline: ge,
4823
4828
  popover: null,
4824
4829
  popoverTarget: null,
4825
4830
  popoverTargetAction: null,
4826
4831
  poster: null,
4827
4832
  preload: null,
4828
- readOnly: ve,
4833
+ readOnly: ge,
4829
4834
  referrerPolicy: null,
4830
4835
  rel: Pe,
4831
- required: ve,
4832
- reversed: ve,
4836
+ required: ge,
4837
+ reversed: ge,
4833
4838
  rows: Q,
4834
4839
  rowSpan: Q,
4835
4840
  sandbox: Pe,
4836
4841
  scope: null,
4837
- scoped: ve,
4838
- seamless: ve,
4839
- selected: ve,
4840
- shadowRootClonable: ve,
4841
- shadowRootDelegatesFocus: ve,
4842
+ scoped: ge,
4843
+ seamless: ge,
4844
+ selected: ge,
4845
+ shadowRootClonable: ge,
4846
+ shadowRootDelegatesFocus: ge,
4842
4847
  shadowRootMode: null,
4843
4848
  shape: null,
4844
4849
  size: Q,
4845
4850
  sizes: null,
4846
4851
  slot: null,
4847
4852
  span: Q,
4848
- spellCheck: Ve,
4853
+ spellCheck: ze,
4849
4854
  src: null,
4850
4855
  srcDoc: null,
4851
4856
  srcLang: null,
@@ -4858,9 +4863,9 @@ const M3 = xr({
4858
4863
  title: null,
4859
4864
  translate: null,
4860
4865
  type: null,
4861
- typeMustMatch: ve,
4866
+ typeMustMatch: ge,
4862
4867
  useMap: null,
4863
- value: Ve,
4868
+ value: ze,
4864
4869
  width: Q,
4865
4870
  wrap: null,
4866
4871
  writingSuggestions: null,
@@ -4904,9 +4909,9 @@ const M3 = xr({
4904
4909
  // `<object>`
4905
4910
  color: null,
4906
4911
  // `<font>` and `<hr>`. Use CSS instead
4907
- compact: ve,
4912
+ compact: ge,
4908
4913
  // Lists. Use CSS to reduce space between items instead
4909
- declare: ve,
4914
+ declare: ge,
4910
4915
  // `<object>`
4911
4916
  event: null,
4912
4917
  // `<script>`
@@ -4930,13 +4935,13 @@ const M3 = xr({
4930
4935
  // `<body>`
4931
4936
  marginWidth: Q,
4932
4937
  // `<body>`
4933
- noResize: ve,
4938
+ noResize: ge,
4934
4939
  // `<frame>`
4935
- noHref: ve,
4940
+ noHref: ge,
4936
4941
  // `<area>`. Use no href instead of an explicit `nohref`
4937
- noShade: ve,
4942
+ noShade: ge,
4938
4943
  // `<hr>`. Use background-color and height instead of borders
4939
- noWrap: ve,
4944
+ noWrap: ge,
4940
4945
  // `<td>` and `<th>`
4941
4946
  object: null,
4942
4947
  // `<applet>`
@@ -4952,7 +4957,7 @@ const M3 = xr({
4952
4957
  // `<table>`
4953
4958
  scheme: null,
4954
4959
  // `<meta>`
4955
- scrolling: Ve,
4960
+ scrolling: ze,
4956
4961
  // `<frame>`. Use overflow in the child context
4957
4962
  standby: null,
4958
4963
  // `<object>`
@@ -4976,8 +4981,8 @@ const M3 = xr({
4976
4981
  allowTransparency: null,
4977
4982
  autoCorrect: null,
4978
4983
  autoSave: null,
4979
- disablePictureInPicture: ve,
4980
- disableRemotePlayback: ve,
4984
+ disablePictureInPicture: ge,
4985
+ disableRemotePlayback: ge,
4981
4986
  prefix: null,
4982
4987
  property: null,
4983
4988
  results: Q,
@@ -5212,7 +5217,7 @@ const M3 = xr({
5212
5217
  dur: null,
5213
5218
  divisor: Q,
5214
5219
  dominantBaseline: null,
5215
- download: ve,
5220
+ download: ge,
5216
5221
  dx: null,
5217
5222
  dy: null,
5218
5223
  edgeMode: null,
@@ -6303,7 +6308,7 @@ const Is = Mn(/\d/), d6 = Mn(/[\dA-Fa-f]/), u6 = Mn(/[!-/:-@[-`{-~]/);
6303
6308
  function ue(e) {
6304
6309
  return e !== null && e < -2;
6305
6310
  }
6306
- function Ie(e) {
6311
+ function Te(e) {
6307
6312
  return e !== null && (e < 0 || e === 32);
6308
6313
  }
6309
6314
  function we(e) {
@@ -6335,7 +6340,7 @@ function Mr(e) {
6335
6340
  }
6336
6341
  return t.join("") + e.slice(a);
6337
6342
  }
6338
- function be(e, t, n, a) {
6343
+ function Ce(e, t, n, a) {
6339
6344
  const o = a ? a - 1 : Number.POSITIVE_INFINITY;
6340
6345
  let r = 0;
6341
6346
  return i;
@@ -6358,7 +6363,7 @@ function p6(e) {
6358
6363
  e.consume(s);
6359
6364
  return;
6360
6365
  }
6361
- return e.enter("lineEnding"), e.consume(s), e.exit("lineEnding"), be(e, t, "linePrefix");
6366
+ return e.enter("lineEnding"), e.consume(s), e.exit("lineEnding"), Ce(e, t, "linePrefix");
6362
6367
  }
6363
6368
  function o(s) {
6364
6369
  return e.enter("paragraph"), r(s);
@@ -6496,10 +6501,10 @@ function f6(e) {
6496
6501
  }
6497
6502
  }
6498
6503
  function k6(e, t, n) {
6499
- return be(e, e.attempt(this.parser.constructs.document, t, n), "linePrefix", this.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4);
6504
+ return Ce(e, e.attempt(this.parser.constructs.document, t, n), "linePrefix", this.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4);
6500
6505
  }
6501
6506
  function lr(e) {
6502
- if (e === null || Ie(e) || Nn(e))
6507
+ if (e === null || Te(e) || Nn(e))
6503
6508
  return 1;
6504
6509
  if (Qo(e))
6505
6510
  return 2;
@@ -6636,7 +6641,7 @@ const ma = {
6636
6641
  function M6(e, t, n) {
6637
6642
  return a;
6638
6643
  function a(r) {
6639
- return we(r) ? be(e, o, "linePrefix")(r) : o(r);
6644
+ return we(r) ? Ce(e, o, "linePrefix")(r) : o(r);
6640
6645
  }
6641
6646
  function o(r) {
6642
6647
  return r === null || ue(r) ? t(r) : n(r);
@@ -6670,7 +6675,7 @@ function b6(e, t, n) {
6670
6675
  const a = this;
6671
6676
  return o;
6672
6677
  function o(i) {
6673
- return we(i) ? be(e, r, "linePrefix", a.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(i) : r(i);
6678
+ return we(i) ? Ce(e, r, "linePrefix", a.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(i) : r(i);
6674
6679
  }
6675
6680
  function r(i) {
6676
6681
  return e.attempt(i0, t, n)(i);
@@ -6740,7 +6745,7 @@ function A6(e, t, n) {
6740
6745
  return r = E && E[1].type === "linePrefix" ? E[2].sliceSerialize(E[1], !0).length : 0, s = S, e.enter("codeFenced"), e.enter("codeFencedFence"), e.enter("codeFencedFenceSequence"), u(S);
6741
6746
  }
6742
6747
  function u(S) {
6743
- return S === s ? (i++, e.consume(S), u) : i < 3 ? n(S) : (e.exit("codeFencedFenceSequence"), we(S) ? be(e, h, "whitespace")(S) : h(S));
6748
+ return S === s ? (i++, e.consume(S), u) : i < 3 ? n(S) : (e.exit("codeFencedFenceSequence"), we(S) ? Ce(e, h, "whitespace")(S) : h(S));
6744
6749
  }
6745
6750
  function h(S) {
6746
6751
  return S === null || ue(S) ? (e.exit("codeFencedFence"), a.interrupt ? t(S) : e.check(hd, g, C)(S)) : (e.enter("codeFencedFenceInfo"), e.enter("chunkString", {
@@ -6748,7 +6753,7 @@ function A6(e, t, n) {
6748
6753
  }), y(S));
6749
6754
  }
6750
6755
  function y(S) {
6751
- return S === null || ue(S) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), h(S)) : we(S) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), be(e, p, "whitespace")(S)) : S === 96 && S === s ? n(S) : (e.consume(S), y);
6756
+ return S === null || ue(S) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), h(S)) : we(S) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), Ce(e, p, "whitespace")(S)) : S === 96 && S === s ? n(S) : (e.consume(S), y);
6752
6757
  }
6753
6758
  function p(S) {
6754
6759
  return S === null || ue(S) ? h(S) : (e.enter("codeFencedFenceMeta"), e.enter("chunkString", {
@@ -6765,7 +6770,7 @@ function A6(e, t, n) {
6765
6770
  return e.enter("lineEnding"), e.consume(S), e.exit("lineEnding"), x;
6766
6771
  }
6767
6772
  function x(S) {
6768
- return r > 0 && we(S) ? be(e, M, "linePrefix", r + 1)(S) : M(S);
6773
+ return r > 0 && we(S) ? Ce(e, M, "linePrefix", r + 1)(S) : M(S);
6769
6774
  }
6770
6775
  function M(S) {
6771
6776
  return S === null || ue(S) ? e.check(hd, g, C)(S) : (e.enter("codeFlowValue"), w(S));
@@ -6783,13 +6788,13 @@ function A6(e, t, n) {
6783
6788
  return S.enter("lineEnding"), S.consume(F), S.exit("lineEnding"), T;
6784
6789
  }
6785
6790
  function T(F) {
6786
- return S.enter("codeFencedFence"), we(F) ? be(S, L, "linePrefix", a.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(F) : L(F);
6791
+ return S.enter("codeFencedFence"), we(F) ? Ce(S, L, "linePrefix", a.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(F) : L(F);
6787
6792
  }
6788
6793
  function L(F) {
6789
6794
  return F === s ? (S.enter("codeFencedFenceSequence"), G(F)) : P(F);
6790
6795
  }
6791
6796
  function G(F) {
6792
- return F === s ? (N++, S.consume(F), G) : N >= i ? (S.exit("codeFencedFenceSequence"), we(F) ? be(S, V, "whitespace")(F) : V(F)) : P(F);
6797
+ return F === s ? (N++, S.consume(F), G) : N >= i ? (S.exit("codeFencedFenceSequence"), we(F) ? Ce(S, V, "whitespace")(F) : V(F)) : P(F);
6793
6798
  }
6794
6799
  function V(F) {
6795
6800
  return F === null || ue(F) ? (S.exit("codeFencedFence"), E(F)) : P(F);
@@ -6817,7 +6822,7 @@ function T6(e, t, n) {
6817
6822
  const a = this;
6818
6823
  return o;
6819
6824
  function o(d) {
6820
- return e.enter("codeIndented"), be(e, r, "linePrefix", 5)(d);
6825
+ return e.enter("codeIndented"), Ce(e, r, "linePrefix", 5)(d);
6821
6826
  }
6822
6827
  function r(d) {
6823
6828
  const u = a.events[a.events.length - 1];
@@ -6837,7 +6842,7 @@ function P6(e, t, n) {
6837
6842
  const a = this;
6838
6843
  return o;
6839
6844
  function o(i) {
6840
- return a.parser.lazy[a.now().line] ? n(i) : ue(i) ? (e.enter("lineEnding"), e.consume(i), e.exit("lineEnding"), o) : be(e, r, "linePrefix", 5)(i);
6845
+ return a.parser.lazy[a.now().line] ? n(i) : ue(i) ? (e.enter("lineEnding"), e.consume(i), e.exit("lineEnding"), o) : Ce(e, r, "linePrefix", 5)(i);
6841
6846
  }
6842
6847
  function r(i) {
6843
6848
  const s = a.events[a.events.length - 1];
@@ -7141,7 +7146,7 @@ function q6(e, t, n) {
7141
7146
  const a = this;
7142
7147
  return o;
7143
7148
  function o(i) {
7144
- return e.exit("chunkContent"), e.enter("lineEnding"), e.consume(i), e.exit("lineEnding"), be(e, r, "linePrefix");
7149
+ return e.exit("chunkContent"), e.enter("lineEnding"), e.consume(i), e.exit("lineEnding"), Ce(e, r, "linePrefix");
7145
7150
  }
7146
7151
  function r(i) {
7147
7152
  if (i === null || ue(i))
@@ -7171,7 +7176,7 @@ function d0(e, t, n, a, o, r, i, s, c) {
7171
7176
  return x === 60 || x === 62 || x === 92 ? (e.consume(x), p) : p(x);
7172
7177
  }
7173
7178
  function g(x) {
7174
- return !u && (x === null || x === 41 || Ie(x)) ? (e.exit("chunkString"), e.exit(s), e.exit(i), e.exit(a), t(x)) : u < d && x === 40 ? (e.consume(x), u++, g) : x === 41 ? (e.consume(x), u--, g) : x === null || x === 32 || x === 40 || fo(x) ? n(x) : (e.consume(x), x === 92 ? v : g);
7179
+ return !u && (x === null || x === 41 || Te(x)) ? (e.exit("chunkString"), e.exit(s), e.exit(i), e.exit(a), t(x)) : u < d && x === 40 ? (e.consume(x), u++, g) : x === 41 ? (e.consume(x), u--, g) : x === null || x === 32 || x === 40 || fo(x) ? n(x) : (e.consume(x), x === 92 ? v : g);
7175
7180
  }
7176
7181
  function v(x) {
7177
7182
  return x === 40 || x === 41 || x === 92 ? (e.consume(x), g) : g(x);
@@ -7211,7 +7216,7 @@ function h0(e, t, n, a, o, r) {
7211
7216
  return y === i ? (e.enter(o), e.consume(y), e.exit(o), e.exit(a), t) : (e.enter(r), d(y));
7212
7217
  }
7213
7218
  function d(y) {
7214
- return y === i ? (e.exit(r), c(i)) : y === null ? n(y) : ue(y) ? (e.enter("lineEnding"), e.consume(y), e.exit("lineEnding"), be(e, d, "linePrefix")) : (e.enter("chunkString", {
7219
+ return y === i ? (e.exit(r), c(i)) : y === null ? n(y) : ue(y) ? (e.enter("lineEnding"), e.consume(y), e.exit("lineEnding"), Ce(e, d, "linePrefix")) : (e.enter("chunkString", {
7215
7220
  contentType: "string"
7216
7221
  }), u(y));
7217
7222
  }
@@ -7226,7 +7231,7 @@ function Ur(e, t) {
7226
7231
  let n;
7227
7232
  return a;
7228
7233
  function a(o) {
7229
- return ue(o) ? (e.enter("lineEnding"), e.consume(o), e.exit("lineEnding"), n = !0, a) : we(o) ? be(e, a, n ? "linePrefix" : "lineSuffix")(o) : t(o);
7234
+ return ue(o) ? (e.enter("lineEnding"), e.consume(o), e.exit("lineEnding"), n = !0, a) : we(o) ? Ce(e, a, n ? "linePrefix" : "lineSuffix")(o) : t(o);
7230
7235
  }
7231
7236
  }
7232
7237
  const B6 = {
@@ -7259,7 +7264,7 @@ function $6(e, t, n) {
7259
7264
  return o = Rt(a.sliceSerialize(a.events[a.events.length - 1][1]).slice(1, -1)), p === 58 ? (e.enter("definitionMarker"), e.consume(p), e.exit("definitionMarker"), c) : n(p);
7260
7265
  }
7261
7266
  function c(p) {
7262
- return Ie(p) ? Ur(e, d)(p) : d(p);
7267
+ return Te(p) ? Ur(e, d)(p) : d(p);
7263
7268
  }
7264
7269
  function d(p) {
7265
7270
  return d0(
@@ -7278,7 +7283,7 @@ function $6(e, t, n) {
7278
7283
  return e.attempt(U6, h, h)(p);
7279
7284
  }
7280
7285
  function h(p) {
7281
- return we(p) ? be(e, y, "whitespace")(p) : y(p);
7286
+ return we(p) ? Ce(e, y, "whitespace")(p) : y(p);
7282
7287
  }
7283
7288
  function y(p) {
7284
7289
  return p === null || ue(p) ? (e.exit("definition"), a.parser.defined.push(o), t(p)) : n(p);
@@ -7287,13 +7292,13 @@ function $6(e, t, n) {
7287
7292
  function G6(e, t, n) {
7288
7293
  return a;
7289
7294
  function a(s) {
7290
- return Ie(s) ? Ur(e, o)(s) : n(s);
7295
+ return Te(s) ? Ur(e, o)(s) : n(s);
7291
7296
  }
7292
7297
  function o(s) {
7293
7298
  return h0(e, r, n, "definitionTitle", "definitionTitleMarker", "definitionTitleString")(s);
7294
7299
  }
7295
7300
  function r(s) {
7296
- return we(s) ? be(e, i, "whitespace")(s) : i(s);
7301
+ return we(s) ? Ce(e, i, "whitespace")(s) : i(s);
7297
7302
  }
7298
7303
  function i(s) {
7299
7304
  return s === null || ue(s) ? t(s) : n(s);
@@ -7340,16 +7345,16 @@ function X6(e, t, n) {
7340
7345
  return e.enter("atxHeadingSequence"), i(u);
7341
7346
  }
7342
7347
  function i(u) {
7343
- return u === 35 && a++ < 6 ? (e.consume(u), i) : u === null || Ie(u) ? (e.exit("atxHeadingSequence"), s(u)) : n(u);
7348
+ return u === 35 && a++ < 6 ? (e.consume(u), i) : u === null || Te(u) ? (e.exit("atxHeadingSequence"), s(u)) : n(u);
7344
7349
  }
7345
7350
  function s(u) {
7346
- return u === 35 ? (e.enter("atxHeadingSequence"), c(u)) : u === null || ue(u) ? (e.exit("atxHeading"), t(u)) : we(u) ? be(e, s, "whitespace")(u) : (e.enter("atxHeadingText"), d(u));
7351
+ return u === 35 ? (e.enter("atxHeadingSequence"), c(u)) : u === null || ue(u) ? (e.exit("atxHeading"), t(u)) : we(u) ? Ce(e, s, "whitespace")(u) : (e.enter("atxHeadingText"), d(u));
7347
7352
  }
7348
7353
  function c(u) {
7349
7354
  return u === 35 ? (e.consume(u), c) : (e.exit("atxHeadingSequence"), s(u));
7350
7355
  }
7351
7356
  function d(u) {
7352
- return u === null || u === 35 || Ie(u) ? (e.exit("atxHeadingText"), s(u)) : (e.consume(u), d);
7357
+ return u === null || u === 35 || Te(u) ? (e.exit("atxHeadingText"), s(u)) : (e.consume(u), d);
7353
7358
  }
7354
7359
  }
7355
7360
  const J6 = [
@@ -7460,7 +7465,7 @@ function r8(e, t, n) {
7460
7465
  return Ze(I) ? (e.consume(I), i = String.fromCharCode(I), v) : n(I);
7461
7466
  }
7462
7467
  function v(I) {
7463
- if (I === null || I === 47 || I === 62 || Ie(I)) {
7468
+ if (I === null || I === 47 || I === 62 || Te(I)) {
7464
7469
  const he = I === 47, le = i.toLowerCase();
7465
7470
  return !he && !r && yd.includes(le) ? (o = 1, a.interrupt ? t(I) : L(I)) : J6.includes(i.toLowerCase()) ? (o = 6, he ? (e.consume(I), x) : a.interrupt ? t(I) : L(I)) : (o = 7, a.interrupt && !a.parser.lazy[a.now().line] ? n(I) : r ? M(I) : w(I));
7466
7471
  }
@@ -7488,7 +7493,7 @@ function r8(e, t, n) {
7488
7493
  return I === c ? (e.consume(I), c = null, N) : I === null || ue(I) ? n(I) : (e.consume(I), E);
7489
7494
  }
7490
7495
  function P(I) {
7491
- return I === null || I === 34 || I === 39 || I === 47 || I === 60 || I === 61 || I === 62 || I === 96 || Ie(I) ? A(I) : (e.consume(I), P);
7496
+ return I === null || I === 34 || I === 39 || I === 47 || I === 60 || I === 61 || I === 62 || I === 96 || Te(I) ? A(I) : (e.consume(I), P);
7492
7497
  }
7493
7498
  function N(I) {
7494
7499
  return I === 47 || I === 62 || we(I) ? w(I) : n(I);
@@ -7614,7 +7619,7 @@ function s8(e, t, n) {
7614
7619
  return ue(b) ? (i = E, j(b)) : we(b) ? (e.consume(b), E) : q(b);
7615
7620
  }
7616
7621
  function P(b) {
7617
- return b === 45 || Ge(b) ? (e.consume(b), P) : b === 47 || b === 62 || Ie(b) ? N(b) : n(b);
7622
+ return b === 45 || Ge(b) ? (e.consume(b), P) : b === 47 || b === 62 || Te(b) ? N(b) : n(b);
7618
7623
  }
7619
7624
  function N(b) {
7620
7625
  return b === 47 ? (e.consume(b), q) : b === 58 || b === 95 || Ze(b) ? (e.consume(b), R) : ue(b) ? (i = N, j(b)) : we(b) ? (e.consume(b), N) : q(b);
@@ -7632,10 +7637,10 @@ function s8(e, t, n) {
7632
7637
  return b === o ? (e.consume(b), o = void 0, F) : b === null ? n(b) : ue(b) ? (i = G, j(b)) : (e.consume(b), G);
7633
7638
  }
7634
7639
  function V(b) {
7635
- return b === null || b === 34 || b === 39 || b === 60 || b === 61 || b === 96 ? n(b) : b === 47 || b === 62 || Ie(b) ? N(b) : (e.consume(b), V);
7640
+ return b === null || b === 34 || b === 39 || b === 60 || b === 61 || b === 96 ? n(b) : b === 47 || b === 62 || Te(b) ? N(b) : (e.consume(b), V);
7636
7641
  }
7637
7642
  function F(b) {
7638
- return b === 47 || b === 62 || Ie(b) ? N(b) : n(b);
7643
+ return b === 47 || b === 62 || Te(b) ? N(b) : n(b);
7639
7644
  }
7640
7645
  function q(b) {
7641
7646
  return b === 62 ? (e.consume(b), e.exit("htmlTextData"), e.exit("htmlText"), t) : n(b);
@@ -7644,7 +7649,7 @@ function s8(e, t, n) {
7644
7649
  return e.exit("htmlTextData"), e.enter("lineEnding"), e.consume(b), e.exit("lineEnding"), $;
7645
7650
  }
7646
7651
  function $(b) {
7647
- return we(b) ? be(e, Z, "linePrefix", a.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(b) : Z(b);
7652
+ return we(b) ? Ce(e, Z, "linePrefix", a.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(b) : Z(b);
7648
7653
  }
7649
7654
  function Z(b) {
7650
7655
  return e.enter("htmlTextData"), i(b);
@@ -7748,13 +7753,13 @@ function y8(e, t, n) {
7748
7753
  return e.enter("resource"), e.enter("resourceMarker"), e.consume(h), e.exit("resourceMarker"), o;
7749
7754
  }
7750
7755
  function o(h) {
7751
- return Ie(h) ? Ur(e, r)(h) : r(h);
7756
+ return Te(h) ? Ur(e, r)(h) : r(h);
7752
7757
  }
7753
7758
  function r(h) {
7754
7759
  return h === 41 ? u(h) : d0(e, i, s, "resourceDestination", "resourceDestinationLiteral", "resourceDestinationLiteralMarker", "resourceDestinationRaw", "resourceDestinationString", 32)(h);
7755
7760
  }
7756
7761
  function i(h) {
7757
- return Ie(h) ? Ur(e, c)(h) : u(h);
7762
+ return Te(h) ? Ur(e, c)(h) : u(h);
7758
7763
  }
7759
7764
  function s(h) {
7760
7765
  return n(h);
@@ -7763,7 +7768,7 @@ function y8(e, t, n) {
7763
7768
  return h === 34 || h === 39 || h === 40 ? h0(e, d, n, "resourceTitle", "resourceTitleMarker", "resourceTitleString")(h) : u(h);
7764
7769
  }
7765
7770
  function d(h) {
7766
- return Ie(h) ? Ur(e, u)(h) : u(h);
7771
+ return Te(h) ? Ur(e, u)(h) : u(h);
7767
7772
  }
7768
7773
  function u(h) {
7769
7774
  return h === 41 ? (e.enter("resourceMarker"), e.consume(h), e.exit("resourceMarker"), e.exit("resource"), t) : n(h);
@@ -7831,7 +7836,7 @@ const Zi = {
7831
7836
  function M8(e, t) {
7832
7837
  return n;
7833
7838
  function n(a) {
7834
- return e.enter("lineEnding"), e.consume(a), e.exit("lineEnding"), be(e, t, "linePrefix");
7839
+ return e.enter("lineEnding"), e.consume(a), e.exit("lineEnding"), Ce(e, t, "linePrefix");
7835
7840
  }
7836
7841
  }
7837
7842
  const ro = {
@@ -7851,7 +7856,7 @@ function w8(e, t, n) {
7851
7856
  return d === o ? (e.enter("thematicBreakSequence"), c(d)) : a >= 3 && (d === null || ue(d)) ? (e.exit("thematicBreak"), t(d)) : n(d);
7852
7857
  }
7853
7858
  function c(d) {
7854
- return d === o ? (e.consume(d), a++, c) : (e.exit("thematicBreakSequence"), we(d) ? be(e, s, "whitespace")(d) : s(d));
7859
+ return d === o ? (e.consume(d), a++, c) : (e.exit("thematicBreakSequence"), we(d) ? Ce(e, s, "whitespace")(d) : s(d));
7855
7860
  }
7856
7861
  }
7857
7862
  const Je = {
@@ -7909,18 +7914,18 @@ function R8(e, t, n) {
7909
7914
  const a = this;
7910
7915
  return a.containerState._closeFlow = void 0, e.check(ma, o, r);
7911
7916
  function o(s) {
7912
- return a.containerState.furtherBlankLines = a.containerState.furtherBlankLines || a.containerState.initialBlankLine, be(e, t, "listItemIndent", a.containerState.size + 1)(s);
7917
+ return a.containerState.furtherBlankLines = a.containerState.furtherBlankLines || a.containerState.initialBlankLine, Ce(e, t, "listItemIndent", a.containerState.size + 1)(s);
7913
7918
  }
7914
7919
  function r(s) {
7915
7920
  return a.containerState.furtherBlankLines || !we(s) ? (a.containerState.furtherBlankLines = void 0, a.containerState.initialBlankLine = void 0, i(s)) : (a.containerState.furtherBlankLines = void 0, a.containerState.initialBlankLine = void 0, e.attempt(C8, t, i)(s));
7916
7921
  }
7917
7922
  function i(s) {
7918
- return a.containerState._closeFlow = !0, a.interrupt = void 0, be(e, e.attempt(Je, t, n), "linePrefix", a.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(s);
7923
+ return a.containerState._closeFlow = !0, a.interrupt = void 0, Ce(e, e.attempt(Je, t, n), "linePrefix", a.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(s);
7919
7924
  }
7920
7925
  }
7921
7926
  function A8(e, t, n) {
7922
7927
  const a = this;
7923
- return be(e, o, "listItemIndent", a.containerState.size + 1);
7928
+ return Ce(e, o, "listItemIndent", a.containerState.size + 1);
7924
7929
  function o(r) {
7925
7930
  const i = a.events[a.events.length - 1];
7926
7931
  return i && i[1].type === "listItemIndent" && i[2].sliceSerialize(i[1], !0).length === a.containerState.size ? t(r) : n(r);
@@ -7931,7 +7936,7 @@ function E8(e) {
7931
7936
  }
7932
7937
  function I8(e, t, n) {
7933
7938
  const a = this;
7934
- return be(e, o, "listItemPrefixWhitespace", a.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 5);
7939
+ return Ce(e, o, "listItemPrefixWhitespace", a.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 5);
7935
7940
  function o(r) {
7936
7941
  const i = a.events[a.events.length - 1];
7937
7942
  return !we(r) && i && i[1].type === "listItemPrefixWhitespace" ? t(r) : n(r);
@@ -7983,7 +7988,7 @@ function P8(e, t, n) {
7983
7988
  return e.enter("setextHeadingLineSequence"), s(d);
7984
7989
  }
7985
7990
  function s(d) {
7986
- return d === o ? (e.consume(d), s) : (e.exit("setextHeadingLineSequence"), we(d) ? be(e, c, "lineSuffix")(d) : c(d));
7991
+ return d === o ? (e.consume(d), s) : (e.exit("setextHeadingLineSequence"), we(d) ? Ce(e, c, "lineSuffix")(d) : c(d));
7987
7992
  }
7988
7993
  function c(d) {
7989
7994
  return d === null || ue(d) ? (e.exit("setextHeadingLine"), t(d)) : n(d);
@@ -7998,7 +8003,7 @@ function _8(e) {
7998
8003
  ma,
7999
8004
  a,
8000
8005
  // Try to parse initial flow (essentially, only code).
8001
- e.attempt(this.parser.constructs.flowInitial, o, be(e, e.attempt(this.parser.constructs.flow, o, e.attempt(V6, o)), "linePrefix"))
8006
+ e.attempt(this.parser.constructs.flowInitial, o, Ce(e, e.attempt(this.parser.constructs.flow, o, e.attempt(V6, o)), "linePrefix"))
8002
8007
  );
8003
8008
  return n;
8004
8009
  function a(r) {
@@ -8282,13 +8287,13 @@ function K8(e, t, n) {
8282
8287
  function X(ne) {
8283
8288
  return J;
8284
8289
  function J(oe) {
8285
- const me = oe !== null && ne[oe], ie = oe !== null && ne.null, fe = [
8290
+ const fe = oe !== null && ne[oe], ie = oe !== null && ne.null, ve = [
8286
8291
  // To do: add more extension tests.
8287
8292
  /* c8 ignore next 2 */
8288
- ...Array.isArray(me) ? me : me ? [me] : [],
8293
+ ...Array.isArray(fe) ? fe : fe ? [fe] : [],
8289
8294
  ...Array.isArray(ie) ? ie : ie ? [ie] : []
8290
8295
  ];
8291
- return re(fe)(oe);
8296
+ return re(ve)(oe);
8292
8297
  }
8293
8298
  }
8294
8299
  function re(ne) {
@@ -8479,19 +8484,19 @@ function ax(e) {
8479
8484
  blockQuote: r(ie),
8480
8485
  characterEscape: N,
8481
8486
  characterReference: N,
8482
- codeFenced: r(fe),
8487
+ codeFenced: r(ve),
8483
8488
  codeFencedFenceInfo: i,
8484
8489
  codeFencedFenceMeta: i,
8485
- codeIndented: r(fe, i),
8490
+ codeIndented: r(ve, i),
8486
8491
  codeText: r(ke, i),
8487
8492
  codeTextData: N,
8488
8493
  data: N,
8489
8494
  codeFlowValue: N,
8490
- definition: r(Te),
8495
+ definition: r(be),
8491
8496
  definitionDestinationString: i,
8492
8497
  definitionLabelString: i,
8493
8498
  definitionTitleString: i,
8494
- emphasis: r(ze),
8499
+ emphasis: r(De),
8495
8500
  hardBreakEscape: r(nt),
8496
8501
  hardBreakTrailing: r(nt),
8497
8502
  htmlFlow: r(Zt, i),
@@ -8518,7 +8523,7 @@ function ax(e) {
8518
8523
  atxHeading: c(),
8519
8524
  atxHeadingSequence: A,
8520
8525
  autolink: c(),
8521
- autolinkEmail: me,
8526
+ autolinkEmail: fe,
8522
8527
  autolinkProtocol: oe,
8523
8528
  blockQuote: c(),
8524
8529
  characterEscapeValue: R,
@@ -8583,25 +8588,25 @@ function ax(e) {
8583
8588
  buffer: i,
8584
8589
  resume: u,
8585
8590
  data: n
8586
- }, ge = [];
8587
- let Re = -1;
8588
- for (; ++Re < W.length; )
8589
- if (W[Re][1].type === "listOrdered" || W[Re][1].type === "listUnordered")
8590
- if (W[Re][0] === "enter")
8591
- ge.push(Re);
8591
+ }, me = [];
8592
+ let Ae = -1;
8593
+ for (; ++Ae < W.length; )
8594
+ if (W[Ae][1].type === "listOrdered" || W[Ae][1].type === "listUnordered")
8595
+ if (W[Ae][0] === "enter")
8596
+ me.push(Ae);
8592
8597
  else {
8593
- const Oe = ge.pop();
8594
- Re = o(W, Oe, Re);
8598
+ const Ve = me.pop();
8599
+ Ae = o(W, Ve, Ae);
8595
8600
  }
8596
- for (Re = -1; ++Re < W.length; ) {
8597
- const Oe = t[W[Re][0]];
8598
- f0.call(Oe, W[Re][1].type) && Oe[W[Re][1].type].call(Object.assign({
8599
- sliceSerialize: W[Re][2].sliceSerialize
8600
- }, pe), W[Re][1]);
8601
+ for (Ae = -1; ++Ae < W.length; ) {
8602
+ const Ve = t[W[Ae][0]];
8603
+ f0.call(Ve, W[Ae][1].type) && Ve[W[Ae][1].type].call(Object.assign({
8604
+ sliceSerialize: W[Ae][2].sliceSerialize
8605
+ }, pe), W[Ae][1]);
8601
8606
  }
8602
8607
  if (pe.tokenStack.length > 0) {
8603
- const Oe = pe.tokenStack[pe.tokenStack.length - 1];
8604
- (Oe[1] || md).call(pe, void 0, Oe[0]);
8608
+ const Ve = pe.tokenStack[pe.tokenStack.length - 1];
8609
+ (Ve[1] || md).call(pe, void 0, Ve[0]);
8605
8610
  }
8606
8611
  for (te.position = {
8607
8612
  start: dn(W.length > 0 ? W[0][1].start : {
@@ -8614,23 +8619,23 @@ function ax(e) {
8614
8619
  column: 1,
8615
8620
  offset: 0
8616
8621
  })
8617
- }, Re = -1; ++Re < t.transforms.length; )
8618
- te = t.transforms[Re](te) || te;
8622
+ }, Ae = -1; ++Ae < t.transforms.length; )
8623
+ te = t.transforms[Ae](te) || te;
8619
8624
  return te;
8620
8625
  }
8621
8626
  function o(W, te, pe) {
8622
- let ge = te - 1, Re = -1, Oe = !1, Dt, Ct, Rn, Yt;
8623
- for (; ++ge <= pe; ) {
8624
- const Ue = W[ge];
8627
+ let me = te - 1, Ae = -1, Ve = !1, Dt, Ct, Rn, Yt;
8628
+ for (; ++me <= pe; ) {
8629
+ const Ue = W[me];
8625
8630
  switch (Ue[1].type) {
8626
8631
  case "listUnordered":
8627
8632
  case "listOrdered":
8628
8633
  case "blockQuote": {
8629
- Ue[0] === "enter" ? Re++ : Re--, Yt = void 0;
8634
+ Ue[0] === "enter" ? Ae++ : Ae--, Yt = void 0;
8630
8635
  break;
8631
8636
  }
8632
8637
  case "lineEndingBlank": {
8633
- Ue[0] === "enter" && (Dt && !Yt && !Re && !Rn && (Rn = ge), Yt = void 0);
8638
+ Ue[0] === "enter" && (Dt && !Yt && !Ae && !Rn && (Rn = me), Yt = void 0);
8634
8639
  break;
8635
8640
  }
8636
8641
  case "linePrefix":
@@ -8642,17 +8647,17 @@ function ax(e) {
8642
8647
  default:
8643
8648
  Yt = void 0;
8644
8649
  }
8645
- if (!Re && Ue[0] === "enter" && Ue[1].type === "listItemPrefix" || Re === -1 && Ue[0] === "exit" && (Ue[1].type === "listUnordered" || Ue[1].type === "listOrdered")) {
8650
+ if (!Ae && Ue[0] === "enter" && Ue[1].type === "listItemPrefix" || Ae === -1 && Ue[0] === "exit" && (Ue[1].type === "listUnordered" || Ue[1].type === "listOrdered")) {
8646
8651
  if (Dt) {
8647
- let on = ge;
8652
+ let on = me;
8648
8653
  for (Ct = void 0; on--; ) {
8649
8654
  const ut = W[on];
8650
8655
  if (ut[1].type === "lineEnding" || ut[1].type === "lineEndingBlank") {
8651
8656
  if (ut[0] === "exit") continue;
8652
- Ct && (W[Ct][1].type = "lineEndingBlank", Oe = !0), ut[1].type = "lineEnding", Ct = on;
8657
+ Ct && (W[Ct][1].type = "lineEndingBlank", Ve = !0), ut[1].type = "lineEnding", Ct = on;
8653
8658
  } else if (!(ut[1].type === "linePrefix" || ut[1].type === "blockQuotePrefix" || ut[1].type === "blockQuotePrefixWhitespace" || ut[1].type === "blockQuoteMarker" || ut[1].type === "listItemIndent")) break;
8654
8659
  }
8655
- Rn && (!Ct || Rn < Ct) && (Dt._spread = !0), Dt.end = Object.assign({}, Ct ? W[Ct][1].start : Ue[1].end), W.splice(Ct || ge, 0, ["exit", Dt, Ue[2]]), ge++, pe++;
8660
+ Rn && (!Ct || Rn < Ct) && (Dt._spread = !0), Dt.end = Object.assign({}, Ct ? W[Ct][1].start : Ue[1].end), W.splice(Ct || me, 0, ["exit", Dt, Ue[2]]), me++, pe++;
8656
8661
  }
8657
8662
  if (Ue[1].type === "listItemPrefix") {
8658
8663
  const on = {
@@ -8662,16 +8667,16 @@ function ax(e) {
8662
8667
  // @ts-expect-error: we’ll add `end` in a second.
8663
8668
  end: void 0
8664
8669
  };
8665
- Dt = on, W.splice(ge, 0, ["enter", on, Ue[2]]), ge++, pe++, Rn = void 0, Yt = !0;
8670
+ Dt = on, W.splice(me, 0, ["enter", on, Ue[2]]), me++, pe++, Rn = void 0, Yt = !0;
8666
8671
  }
8667
8672
  }
8668
8673
  }
8669
- return W[te][1]._spread = Oe, pe;
8674
+ return W[te][1]._spread = Ve, pe;
8670
8675
  }
8671
8676
  function r(W, te) {
8672
8677
  return pe;
8673
- function pe(ge) {
8674
- s.call(this, W(ge), ge), te && te.call(this, ge);
8678
+ function pe(me) {
8679
+ s.call(this, W(me), me), te && te.call(this, me);
8675
8680
  }
8676
8681
  }
8677
8682
  function i() {
@@ -8694,9 +8699,9 @@ function ax(e) {
8694
8699
  }
8695
8700
  }
8696
8701
  function d(W, te) {
8697
- const pe = this.stack.pop(), ge = this.tokenStack.pop();
8698
- if (ge)
8699
- ge[0].type !== W.type && (te ? te.call(this, W, ge[0]) : (ge[1] || md).call(this, W, ge[0]));
8702
+ const pe = this.stack.pop(), me = this.tokenStack.pop();
8703
+ if (me)
8704
+ me[0].type !== W.type && (te ? te.call(this, W, me[0]) : (me[1] || md).call(this, W, me[0]));
8700
8705
  else throw new Error("Cannot close `" + W.type + "` (" + Br({
8701
8706
  start: W.start,
8702
8707
  end: W.end
@@ -8765,12 +8770,12 @@ function ax(e) {
8765
8770
  }
8766
8771
  function N(W) {
8767
8772
  const pe = this.stack[this.stack.length - 1].children;
8768
- let ge = pe[pe.length - 1];
8769
- (!ge || ge.type !== "text") && (ge = La(), ge.position = {
8773
+ let me = pe[pe.length - 1];
8774
+ (!me || me.type !== "text") && (me = La(), me.position = {
8770
8775
  start: dn(W.start),
8771
8776
  // @ts-expect-error: we’ll add `end` later.
8772
8777
  end: void 0
8773
- }, pe.push(ge)), this.stack.push(ge);
8778
+ }, pe.push(me)), this.stack.push(me);
8774
8779
  }
8775
8780
  function R(W) {
8776
8781
  const te = this.stack.pop();
@@ -8825,8 +8830,8 @@ function ax(e) {
8825
8830
  function Z() {
8826
8831
  const W = this.stack[this.stack.length - 1], te = this.resume(), pe = this.stack[this.stack.length - 1];
8827
8832
  if (this.data.inReference = !0, pe.type === "link") {
8828
- const ge = W.children;
8829
- pe.children = ge;
8833
+ const me = W.children;
8834
+ pe.children = me;
8830
8835
  } else
8831
8836
  pe.alt = te;
8832
8837
  }
@@ -8853,10 +8858,10 @@ function ax(e) {
8853
8858
  }
8854
8859
  function ne(W) {
8855
8860
  const te = this.sliceSerialize(W), pe = this.data.characterReferenceType;
8856
- let ge;
8857
- pe ? (ge = o0(te, pe === "characterReferenceMarkerNumeric" ? 10 : 16), this.data.characterReferenceType = void 0) : ge = U1(te);
8858
- const Re = this.stack[this.stack.length - 1];
8859
- Re.value += ge;
8861
+ let me;
8862
+ pe ? (me = o0(te, pe === "characterReferenceMarkerNumeric" ? 10 : 16), this.data.characterReferenceType = void 0) : me = U1(te);
8863
+ const Ae = this.stack[this.stack.length - 1];
8864
+ Ae.value += me;
8860
8865
  }
8861
8866
  function J(W) {
8862
8867
  const te = this.stack.pop();
@@ -8867,7 +8872,7 @@ function ax(e) {
8867
8872
  const te = this.stack[this.stack.length - 1];
8868
8873
  te.url = this.sliceSerialize(W);
8869
8874
  }
8870
- function me(W) {
8875
+ function fe(W) {
8871
8876
  R.call(this, W);
8872
8877
  const te = this.stack[this.stack.length - 1];
8873
8878
  te.url = "mailto:" + this.sliceSerialize(W);
@@ -8878,7 +8883,7 @@ function ax(e) {
8878
8883
  children: []
8879
8884
  };
8880
8885
  }
8881
- function fe() {
8886
+ function ve() {
8882
8887
  return {
8883
8888
  type: "code",
8884
8889
  lang: null,
@@ -8892,7 +8897,7 @@ function ax(e) {
8892
8897
  value: ""
8893
8898
  };
8894
8899
  }
8895
- function Te() {
8900
+ function be() {
8896
8901
  return {
8897
8902
  type: "definition",
8898
8903
  identifier: "",
@@ -8901,7 +8906,7 @@ function ax(e) {
8901
8906
  url: ""
8902
8907
  };
8903
8908
  }
8904
- function ze() {
8909
+ function De() {
8905
8910
  return {
8906
8911
  type: "emphasis",
8907
8912
  children: []
@@ -12578,7 +12583,7 @@ function Mw(e, t, n) {
12578
12583
  return h === 47 ? (e.consume(h), r ? d : (r = !0, c)) : n(h);
12579
12584
  }
12580
12585
  function d(h) {
12581
- return h === null || fo(h) || Ie(h) || Nn(h) || Qo(h) ? n(h) : e.attempt(H0, e.attempt(q0, u), n)(h);
12586
+ return h === null || fo(h) || Te(h) || Nn(h) || Qo(h) ? n(h) : e.attempt(H0, e.attempt(q0, u), n)(h);
12582
12587
  }
12583
12588
  function u(h) {
12584
12589
  return e.exit("literalAutolinkHttp"), e.exit("literalAutolink"), t(h);
@@ -12598,7 +12603,7 @@ function bw(e, t, n) {
12598
12603
  let a, o, r;
12599
12604
  return i;
12600
12605
  function i(d) {
12601
- return d === 46 || d === 95 ? e.check(B0, c, s)(d) : d === null || Ie(d) || Nn(d) || d !== 45 && Qo(d) ? c(d) : (r = !0, e.consume(d), i);
12606
+ return d === 46 || d === 95 ? e.check(B0, c, s)(d) : d === null || Te(d) || Nn(d) || d !== 45 && Qo(d) ? c(d) : (r = !0, e.consume(d), i);
12602
12607
  }
12603
12608
  function s(d) {
12604
12609
  return d === 95 ? a = !0 : (o = a, a = void 0), e.consume(d), i;
@@ -12611,7 +12616,7 @@ function Cw(e, t) {
12611
12616
  let n = 0, a = 0;
12612
12617
  return o;
12613
12618
  function o(i) {
12614
- return i === 40 ? (n++, e.consume(i), o) : i === 41 && a < n ? r(i) : i === 33 || i === 34 || i === 38 || i === 39 || i === 41 || i === 42 || i === 44 || i === 46 || i === 58 || i === 59 || i === 60 || i === 63 || i === 93 || i === 95 || i === 126 ? e.check(B0, t, r)(i) : i === null || Ie(i) || Nn(i) ? t(i) : (e.consume(i), o);
12619
+ return i === 40 ? (n++, e.consume(i), o) : i === 41 && a < n ? r(i) : i === 33 || i === 34 || i === 38 || i === 39 || i === 41 || i === 42 || i === 44 || i === 46 || i === 58 || i === 59 || i === 60 || i === 63 || i === 93 || i === 95 || i === 126 ? e.check(B0, t, r)(i) : i === null || Te(i) || Nn(i) ? t(i) : (e.consume(i), o);
12615
12620
  }
12616
12621
  function r(i) {
12617
12622
  return i === 41 && a++, e.consume(i), o;
@@ -12623,11 +12628,11 @@ function Sw(e, t, n) {
12623
12628
  return s === 33 || s === 34 || s === 39 || s === 41 || s === 42 || s === 44 || s === 46 || s === 58 || s === 59 || s === 63 || s === 95 || s === 126 ? (e.consume(s), a) : s === 38 ? (e.consume(s), r) : s === 93 ? (e.consume(s), o) : (
12624
12629
  // `<` is an end.
12625
12630
  s === 60 || // So is whitespace.
12626
- s === null || Ie(s) || Nn(s) ? t(s) : n(s)
12631
+ s === null || Te(s) || Nn(s) ? t(s) : n(s)
12627
12632
  );
12628
12633
  }
12629
12634
  function o(s) {
12630
- return s === null || s === 40 || s === 91 || Ie(s) || Nn(s) ? t(s) : a(s);
12635
+ return s === null || s === 40 || s === 91 || Te(s) || Nn(s) ? t(s) : a(s);
12631
12636
  }
12632
12637
  function r(s) {
12633
12638
  return Ze(s) ? i(s) : n(s);
@@ -12646,7 +12651,7 @@ function Rw(e, t, n) {
12646
12651
  }
12647
12652
  }
12648
12653
  function G0(e) {
12649
- return e === null || e === 40 || e === 42 || e === 95 || e === 91 || e === 93 || e === 126 || Ie(e);
12654
+ return e === null || e === 40 || e === 42 || e === 95 || e === 91 || e === 93 || e === 126 || Te(e);
12650
12655
  }
12651
12656
  function W0(e) {
12652
12657
  return !Ze(e);
@@ -12793,7 +12798,7 @@ function Pw(e, t, n) {
12793
12798
  r > 999 || // Closing brace with nothing.
12794
12799
  h === 93 && !i || // Space or tab is not supported by GFM for some reason.
12795
12800
  // `\n` and `[` not being supported makes sense.
12796
- h === null || h === 91 || Ie(h)
12801
+ h === null || h === 91 || Te(h)
12797
12802
  )
12798
12803
  return n(h);
12799
12804
  if (h === 93) {
@@ -12801,7 +12806,7 @@ function Pw(e, t, n) {
12801
12806
  const y = e.exit("gfmFootnoteCallString");
12802
12807
  return o.includes(Rt(a.sliceSerialize(y))) ? (e.enter("gfmFootnoteCallLabelMarker"), e.consume(h), e.exit("gfmFootnoteCallLabelMarker"), e.exit("gfmFootnoteCall"), t) : n(h);
12803
12808
  }
12804
- return Ie(h) || (i = !0), r++, e.consume(h), h === 92 ? u : d;
12809
+ return Te(h) || (i = !0), r++, e.consume(h), h === 92 ? u : d;
12805
12810
  }
12806
12811
  function u(h) {
12807
12812
  return h === 91 || h === 92 || h === 93 ? (e.consume(h), r++, d) : d(h);
@@ -12823,7 +12828,7 @@ function Nw(e, t, n) {
12823
12828
  i > 999 || // Closing brace with nothing.
12824
12829
  m === 93 && !s || // Space or tab is not supported by GFM for some reason.
12825
12830
  // `\n` and `[` not being supported makes sense.
12826
- m === null || m === 91 || Ie(m)
12831
+ m === null || m === 91 || Te(m)
12827
12832
  )
12828
12833
  return n(m);
12829
12834
  if (m === 93) {
@@ -12831,13 +12836,13 @@ function Nw(e, t, n) {
12831
12836
  const g = e.exit("gfmFootnoteDefinitionLabelString");
12832
12837
  return r = Rt(a.sliceSerialize(g)), e.enter("gfmFootnoteDefinitionLabelMarker"), e.consume(m), e.exit("gfmFootnoteDefinitionLabelMarker"), e.exit("gfmFootnoteDefinitionLabel"), y;
12833
12838
  }
12834
- return Ie(m) || (s = !0), i++, e.consume(m), m === 92 ? h : u;
12839
+ return Te(m) || (s = !0), i++, e.consume(m), m === 92 ? h : u;
12835
12840
  }
12836
12841
  function h(m) {
12837
12842
  return m === 91 || m === 92 || m === 93 ? (e.consume(m), i++, u) : u(m);
12838
12843
  }
12839
12844
  function y(m) {
12840
- return m === 58 ? (e.enter("definitionMarker"), e.consume(m), e.exit("definitionMarker"), o.includes(r) || o.push(r), be(e, p, "gfmFootnoteDefinitionWhitespace")) : n(m);
12845
+ return m === 58 ? (e.enter("definitionMarker"), e.consume(m), e.exit("definitionMarker"), o.includes(r) || o.push(r), Ce(e, p, "gfmFootnoteDefinitionWhitespace")) : n(m);
12841
12846
  }
12842
12847
  function p(m) {
12843
12848
  return t(m);
@@ -12851,7 +12856,7 @@ function Dw(e) {
12851
12856
  }
12852
12857
  function Lw(e, t, n) {
12853
12858
  const a = this;
12854
- return be(e, o, "gfmFootnoteDefinitionIndent", 5);
12859
+ return Ce(e, o, "gfmFootnoteDefinitionIndent", 5);
12855
12860
  function o(r) {
12856
12861
  const i = a.events[a.events.length - 1];
12857
12862
  return i && i[1].type === "gfmFootnoteDefinitionIndent" && i[2].sliceSerialize(i[1], !0).length === 4 ? t(r) : n(r);
@@ -13039,22 +13044,22 @@ function Hw(e, t, n) {
13039
13044
  return R === 124 || (i = !0, r += 1), u(R);
13040
13045
  }
13041
13046
  function u(R) {
13042
- return R === null ? n(R) : ue(R) ? r > 1 ? (r = 0, a.interrupt = !0, e.exit("tableRow"), e.enter("lineEnding"), e.consume(R), e.exit("lineEnding"), p) : n(R) : we(R) ? be(e, u, "whitespace")(R) : (r += 1, i && (i = !1, o += 1), R === 124 ? (e.enter("tableCellDivider"), e.consume(R), e.exit("tableCellDivider"), i = !0, u) : (e.enter("data"), h(R)));
13047
+ return R === null ? n(R) : ue(R) ? r > 1 ? (r = 0, a.interrupt = !0, e.exit("tableRow"), e.enter("lineEnding"), e.consume(R), e.exit("lineEnding"), p) : n(R) : we(R) ? Ce(e, u, "whitespace")(R) : (r += 1, i && (i = !1, o += 1), R === 124 ? (e.enter("tableCellDivider"), e.consume(R), e.exit("tableCellDivider"), i = !0, u) : (e.enter("data"), h(R)));
13043
13048
  }
13044
13049
  function h(R) {
13045
- return R === null || R === 124 || Ie(R) ? (e.exit("data"), u(R)) : (e.consume(R), R === 92 ? y : h);
13050
+ return R === null || R === 124 || Te(R) ? (e.exit("data"), u(R)) : (e.consume(R), R === 92 ? y : h);
13046
13051
  }
13047
13052
  function y(R) {
13048
13053
  return R === 92 || R === 124 ? (e.consume(R), h) : h(R);
13049
13054
  }
13050
13055
  function p(R) {
13051
- return a.interrupt = !1, a.parser.lazy[a.now().line] ? n(R) : (e.enter("tableDelimiterRow"), i = !1, we(R) ? be(e, m, "linePrefix", a.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(R) : m(R));
13056
+ return a.interrupt = !1, a.parser.lazy[a.now().line] ? n(R) : (e.enter("tableDelimiterRow"), i = !1, we(R) ? Ce(e, m, "linePrefix", a.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(R) : m(R));
13052
13057
  }
13053
13058
  function m(R) {
13054
13059
  return R === 45 || R === 58 ? v(R) : R === 124 ? (i = !0, e.enter("tableCellDivider"), e.consume(R), e.exit("tableCellDivider"), g) : A(R);
13055
13060
  }
13056
13061
  function g(R) {
13057
- return we(R) ? be(e, v, "whitespace")(R) : v(R);
13062
+ return we(R) ? Ce(e, v, "whitespace")(R) : v(R);
13058
13063
  }
13059
13064
  function v(R) {
13060
13065
  return R === 58 ? (r += 1, i = !0, e.enter("tableDelimiterMarker"), e.consume(R), e.exit("tableDelimiterMarker"), x) : R === 45 ? (r += 1, x(R)) : R === null || ue(R) ? C(R) : A(R);
@@ -13066,7 +13071,7 @@ function Hw(e, t, n) {
13066
13071
  return R === 45 ? (e.consume(R), M) : R === 58 ? (i = !0, e.exit("tableDelimiterFiller"), e.enter("tableDelimiterMarker"), e.consume(R), e.exit("tableDelimiterMarker"), w) : (e.exit("tableDelimiterFiller"), w(R));
13067
13072
  }
13068
13073
  function w(R) {
13069
- return we(R) ? be(e, C, "whitespace")(R) : C(R);
13074
+ return we(R) ? Ce(e, C, "whitespace")(R) : C(R);
13070
13075
  }
13071
13076
  function C(R) {
13072
13077
  return R === 124 ? m(R) : R === null || ue(R) ? !i || o !== r ? A(R) : (e.exit("tableDelimiterRow"), e.exit("tableHead"), t(R)) : A(R);
@@ -13078,10 +13083,10 @@ function Hw(e, t, n) {
13078
13083
  return e.enter("tableRow"), E(R);
13079
13084
  }
13080
13085
  function E(R) {
13081
- return R === 124 ? (e.enter("tableCellDivider"), e.consume(R), e.exit("tableCellDivider"), E) : R === null || ue(R) ? (e.exit("tableRow"), t(R)) : we(R) ? be(e, E, "whitespace")(R) : (e.enter("data"), P(R));
13086
+ return R === 124 ? (e.enter("tableCellDivider"), e.consume(R), e.exit("tableCellDivider"), E) : R === null || ue(R) ? (e.exit("tableRow"), t(R)) : we(R) ? Ce(e, E, "whitespace")(R) : (e.enter("data"), P(R));
13082
13087
  }
13083
13088
  function P(R) {
13084
- return R === null || R === 124 || Ie(R) ? (e.exit("data"), E(R)) : (e.consume(R), R === 92 ? N : P);
13089
+ return R === null || R === 124 || Te(R) ? (e.exit("data"), E(R)) : (e.consume(R), R === 92 ? N : P);
13085
13090
  }
13086
13091
  function N(R) {
13087
13092
  return R === 92 || R === 124 ? (e.consume(R), P) : P(R);
@@ -13167,7 +13172,7 @@ function $w(e, t, n) {
13167
13172
  );
13168
13173
  }
13169
13174
  function r(c) {
13170
- return Ie(c) ? (e.enter("taskListCheckValueUnchecked"), e.consume(c), e.exit("taskListCheckValueUnchecked"), i) : c === 88 || c === 120 ? (e.enter("taskListCheckValueChecked"), e.consume(c), e.exit("taskListCheckValueChecked"), i) : n(c);
13175
+ return Te(c) ? (e.enter("taskListCheckValueUnchecked"), e.consume(c), e.exit("taskListCheckValueUnchecked"), i) : c === 88 || c === 120 ? (e.enter("taskListCheckValueChecked"), e.consume(c), e.exit("taskListCheckValueChecked"), i) : n(c);
13171
13176
  }
13172
13177
  function i(c) {
13173
13178
  return c === 93 ? (e.enter("taskListCheckMarker"), e.consume(c), e.exit("taskListCheckMarker"), e.exit("taskListCheck"), s) : n(c);
@@ -13179,7 +13184,7 @@ function $w(e, t, n) {
13179
13184
  }
13180
13185
  }
13181
13186
  function Gw(e, t, n) {
13182
- return be(e, a, "whitespace");
13187
+ return Ce(e, a, "whitespace");
13183
13188
  function a(o) {
13184
13189
  return o === null ? n(o) : t(o);
13185
13190
  }
@@ -13282,7 +13287,7 @@ function Qw() {
13282
13287
  }
13283
13288
  var e9 = "Portal", Z0 = f.forwardRef((e, t) => {
13284
13289
  const { container: n, ...a } = e, [o, r] = f.useState(!1);
13285
- Se(() => r(!0), []);
13290
+ Re(() => r(!0), []);
13286
13291
  const i = n || o && globalThis?.document?.body;
13287
13292
  return i ? gn.createPortal(/* @__PURE__ */ k.jsx(K.div, { ...a, ref: t }), i) : null;
13288
13293
  });
@@ -13357,7 +13362,7 @@ var ta = "Tooltip", [i9, va] = oi(ta), Q0 = (e) => {
13357
13362
  onOpenChange: r,
13358
13363
  disableHoverableContent: i,
13359
13364
  delayDuration: s
13360
- } = e, c = tl(ta, e.__scopeTooltip), d = ii(t), [u, h] = f.useState(null), y = je(), p = f.useRef(0), m = i ?? c.disableHoverableContent, g = s ?? c.delayDuration, v = f.useRef(!1), [x, M] = Le({
13365
+ } = e, c = tl(ta, e.__scopeTooltip), d = ii(t), [u, h] = f.useState(null), y = Oe(), p = f.useRef(0), m = i ?? c.disableHoverableContent, g = s ?? c.delayDuration, v = f.useRef(!1), [x, M] = je({
13361
13366
  prop: a,
13362
13367
  defaultProp: o ?? !1,
13363
13368
  onChange: (E) => {
@@ -13782,12 +13787,12 @@ var P9 = f.forwardRef((e, t) => {
13782
13787
  onEntryFocus: d,
13783
13788
  preventScrollOnEntryFocus: u = !1,
13784
13789
  ...h
13785
- } = e, y = f.useRef(null), p = se(t, y), m = vt(r), [g, v] = Le({
13790
+ } = e, y = f.useRef(null), p = se(t, y), m = vt(r), [g, v] = je({
13786
13791
  prop: i,
13787
13792
  defaultProp: s ?? null,
13788
13793
  onChange: c,
13789
13794
  caller: xa
13790
- }), [x, M] = f.useState(!1), w = Ae(d), C = uh(n), A = f.useRef(!1), [S, E] = f.useState(0);
13795
+ }), [x, M] = f.useState(!1), w = Ee(d), C = uh(n), A = f.useRef(!1), [S, E] = f.useState(0);
13791
13796
  return f.useEffect(() => {
13792
13797
  const P = y.current;
13793
13798
  if (P)
@@ -13851,7 +13856,7 @@ var P9 = f.forwardRef((e, t) => {
13851
13856
  tabStopId: r,
13852
13857
  children: i,
13853
13858
  ...s
13854
- } = e, c = je(), d = r || c, u = T9(ph, n), h = u.currentTabStopId === d, y = uh(n), { onFocusableItemAdd: p, onFocusableItemRemove: m, currentTabStopId: g } = u;
13859
+ } = e, c = Oe(), d = r || c, u = T9(ph, n), h = u.currentTabStopId === d, y = uh(n), { onFocusableItemAdd: p, onFocusableItemRemove: m, currentTabStopId: g } = u;
13855
13860
  return f.useEffect(() => {
13856
13861
  if (a)
13857
13862
  return p(), () => m();
@@ -13940,7 +13945,7 @@ var wr = hh, zn = yh, si = "Tabs", [j9] = _e(si, [
13940
13945
  dir: s,
13941
13946
  activationMode: c = "automatic",
13942
13947
  ...d
13943
- } = e, u = vt(s), [h, y] = Le({
13948
+ } = e, u = vt(s), [h, y] = je({
13944
13949
  prop: a,
13945
13950
  onChange: o,
13946
13951
  defaultProp: r ?? "",
@@ -13950,7 +13955,7 @@ var wr = hh, zn = yh, si = "Tabs", [j9] = _e(si, [
13950
13955
  O9,
13951
13956
  {
13952
13957
  scope: n,
13953
- baseId: je(),
13958
+ baseId: Oe(),
13954
13959
  value: h,
13955
13960
  onValueChange: y,
13956
13961
  orientation: i,
@@ -14177,7 +14182,7 @@ var li = "Collapsible", [G9, Rh] = _e(li), [W9, al] = G9(li), Ah = f.forwardRef(
14177
14182
  disabled: r,
14178
14183
  onOpenChange: i,
14179
14184
  ...s
14180
- } = e, [c, d] = Le({
14185
+ } = e, [c, d] = je({
14181
14186
  prop: a,
14182
14187
  defaultProp: o ?? !1,
14183
14188
  onChange: i,
@@ -14188,7 +14193,7 @@ var li = "Collapsible", [G9, Rh] = _e(li), [W9, al] = G9(li), Ah = f.forwardRef(
14188
14193
  {
14189
14194
  scope: n,
14190
14195
  disabled: r,
14191
- contentId: je(),
14196
+ contentId: Oe(),
14192
14197
  open: c,
14193
14198
  onOpenToggle: f.useCallback(() => d((u) => !u), [d]),
14194
14199
  children: /* @__PURE__ */ k.jsx(
@@ -14237,7 +14242,7 @@ var K9 = f.forwardRef((e, t) => {
14237
14242
  return f.useEffect(() => {
14238
14243
  const M = requestAnimationFrame(() => v.current = !1);
14239
14244
  return () => cancelAnimationFrame(M);
14240
- }, []), Se(() => {
14245
+ }, []), Re(() => {
14241
14246
  const M = d.current;
14242
14247
  if (M) {
14243
14248
  x.current = x.current || {
@@ -14290,7 +14295,7 @@ var [Lh, J9] = ci(_t), [jh, Q9] = ci(
14290
14295
  },
14291
14296
  collapsible: r = !1,
14292
14297
  ...i
14293
- } = e, [s, c] = Le({
14298
+ } = e, [s, c] = je({
14294
14299
  prop: n,
14295
14300
  defaultProp: a ?? "",
14296
14301
  onChange: o,
@@ -14314,7 +14319,7 @@ var [Lh, J9] = ci(_t), [jh, Q9] = ci(
14314
14319
  onValueChange: o = () => {
14315
14320
  },
14316
14321
  ...r
14317
- } = e, [i, s] = Le({
14322
+ } = e, [i, s] = je({
14318
14323
  prop: n,
14319
14324
  defaultProp: a ?? [],
14320
14325
  onChange: o,
@@ -14393,7 +14398,7 @@ var [Lh, J9] = ci(_t), [jh, Q9] = ci(
14393
14398
  }
14394
14399
  ), go = "AccordionItem", [rb, cl] = ci(go), Vh = de.forwardRef(
14395
14400
  (e, t) => {
14396
- const { __scopeAccordion: n, value: a, ...o } = e, r = di(go, n), i = J9(go, n), s = ll(n), c = je(), d = a && i.value.includes(a) || !1, u = r.disabled || e.disabled;
14401
+ const { __scopeAccordion: n, value: a, ...o } = e, r = di(go, n), i = J9(go, n), s = ll(n), c = Oe(), d = a && i.value.includes(a) || !1, u = r.disabled || e.disabled;
14397
14402
  return /* @__PURE__ */ k.jsx(
14398
14403
  rb,
14399
14404
  {
@@ -14715,7 +14720,7 @@ function vb(e) {
14715
14720
  value: u = "on",
14716
14721
  // @ts-expect-error
14717
14722
  internal_do_not_use_render: h
14718
- } = e, [y, p] = Le({
14723
+ } = e, [y, p] = je({
14719
14724
  prop: n,
14720
14725
  defaultProp: o ?? !1,
14721
14726
  onChange: c,
@@ -15055,7 +15060,7 @@ var Sb = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], hi = "RadioGroup",
15055
15060
  loop: u = !0,
15056
15061
  onValueChange: h,
15057
15062
  ...y
15058
- } = e, p = ip(n), m = vt(d), [g, v] = Le({
15063
+ } = e, p = ip(n), m = vt(d), [g, v] = je({
15059
15064
  prop: r,
15060
15065
  defaultProp: o ?? null,
15061
15066
  onChange: h,
@@ -15158,7 +15163,7 @@ var Tb = lp, Pb = dp, Nb = up, pi = "Switch", [_b] = _e(pi), [Db, Lb] = _b(pi),
15158
15163
  onCheckedChange: d,
15159
15164
  form: u,
15160
15165
  ...h
15161
- } = e, [y, p] = f.useState(null), m = se(t, (w) => p(w)), g = f.useRef(!1), v = y ? u || !!y.closest("form") : !0, [x, M] = Le({
15166
+ } = e, [y, p] = f.useState(null), m = se(t, (w) => p(w)), g = f.useRef(!1), v = y ? u || !!y.closest("form") : !0, [x, M] = je({
15162
15167
  prop: o,
15163
15168
  defaultProp: r ?? !1,
15164
15169
  onChange: d,
@@ -15262,7 +15267,7 @@ function kp(e) {
15262
15267
  return e ? "checked" : "unchecked";
15263
15268
  }
15264
15269
  var Ob = hp, Vb = yp, mp = "Toggle", hl = f.forwardRef((e, t) => {
15265
- const { pressed: n, defaultPressed: a, onPressedChange: o, ...r } = e, [i, s] = Le({
15270
+ const { pressed: n, defaultPressed: a, onPressedChange: o, ...r } = e, [i, s] = je({
15266
15271
  prop: n,
15267
15272
  onChange: o,
15268
15273
  defaultProp: a ?? !1,
@@ -15306,7 +15311,7 @@ var [Mp, wp] = gp(wn), Fb = de.forwardRef((e, t) => {
15306
15311
  onValueChange: o = () => {
15307
15312
  },
15308
15313
  ...r
15309
- } = e, [i, s] = Le({
15314
+ } = e, [i, s] = je({
15310
15315
  prop: n,
15311
15316
  defaultProp: a ?? "",
15312
15317
  onChange: o,
@@ -15330,7 +15335,7 @@ var [Mp, wp] = gp(wn), Fb = de.forwardRef((e, t) => {
15330
15335
  onValueChange: o = () => {
15331
15336
  },
15332
15337
  ...r
15333
- } = e, [i, s] = Le({
15338
+ } = e, [i, s] = je({
15334
15339
  prop: n,
15335
15340
  defaultProp: a ?? [],
15336
15341
  onChange: o,
@@ -15440,7 +15445,7 @@ var Rp = ["PageUp", "PageDown"], Ap = ["ArrowUp", "ArrowDown", "ArrowLeft", "Arr
15440
15445
  inverted: p = !1,
15441
15446
  form: m,
15442
15447
  ...g
15443
- } = e, v = f.useRef(/* @__PURE__ */ new Set()), x = f.useRef(0), w = i === "horizontal" ? Wb : Kb, [C = [], A] = Le({
15448
+ } = e, v = f.useRef(/* @__PURE__ */ new Set()), x = f.useRef(0), w = i === "horizontal" ? Wb : Kb, [C = [], A] = je({
15444
15449
  prop: u,
15445
15450
  defaultProp: d,
15446
15451
  onChange: (T) => {
@@ -15829,7 +15834,7 @@ function aC(e, t) {
15829
15834
  }
15830
15835
  var oC = Tp, iC = Lp, sC = jp, lC = Op, cC = "Portal", Fp = f.forwardRef((e, t) => {
15831
15836
  const { container: n, ...a } = e, [o, r] = f.useState(!1);
15832
- Se(() => r(!0), []);
15837
+ Re(() => r(!0), []);
15833
15838
  const i = n || o && globalThis?.document?.body;
15834
15839
  return i ? gn.createPortal(/* @__PURE__ */ k.jsx(K.div, { ...a, ref: t }), i) : null;
15835
15840
  });
@@ -15876,12 +15881,12 @@ var hC = [" ", "Enter", "ArrowUp", "ArrowDown"], pC = [" ", "Enter"], _n = "Sele
15876
15881
  disabled: y,
15877
15882
  required: p,
15878
15883
  form: m
15879
- } = e, g = mi(t), [v, x] = f.useState(null), [M, w] = f.useState(null), [C, A] = f.useState(!1), S = vt(d), [E, P] = Le({
15884
+ } = e, g = mi(t), [v, x] = f.useState(null), [M, w] = f.useState(null), [C, A] = f.useState(!1), S = vt(d), [E, P] = je({
15880
15885
  prop: a,
15881
15886
  defaultProp: o ?? !1,
15882
15887
  onChange: r,
15883
15888
  caller: _n
15884
- }), [N, R] = Le({
15889
+ }), [N, R] = je({
15885
15890
  prop: i,
15886
15891
  defaultProp: s,
15887
15892
  onChange: c,
@@ -15898,7 +15903,7 @@ var hC = [" ", "Enter", "ArrowUp", "ArrowDown"], pC = [" ", "Enter"], _n = "Sele
15898
15903
  onValueNodeChange: w,
15899
15904
  valueNodeHasChildren: C,
15900
15905
  onValueNodeHasChildrenChange: A,
15901
- contentId: je(),
15906
+ contentId: Oe(),
15902
15907
  value: N,
15903
15908
  onValueChange: R,
15904
15909
  open: E,
@@ -15994,7 +15999,7 @@ Up.displayName = Bp;
15994
15999
  var $p = "SelectValue", Gp = f.forwardRef(
15995
16000
  (e, t) => {
15996
16001
  const { __scopeSelect: n, className: a, style: o, children: r, placeholder: i = "", ...s } = e, c = bn($p, n), { onValueNodeHasChildrenChange: d } = c, u = r !== void 0, h = se(t, c.onValueNodeChange);
15997
- return Se(() => {
16002
+ return Re(() => {
15998
16003
  d(u);
15999
16004
  }, [d, u]), /* @__PURE__ */ k.jsx(
16000
16005
  K.span,
@@ -16020,7 +16025,7 @@ Kp.displayName = vC;
16020
16025
  var Dn = "SelectContent", Zp = f.forwardRef(
16021
16026
  (e, t) => {
16022
16027
  const n = bn(Dn, e.__scopeSelect), [a, o] = f.useState();
16023
- if (Se(() => {
16028
+ if (Re(() => {
16024
16029
  o(new DocumentFragment());
16025
16030
  }, []), !n.open) {
16026
16031
  const r = a;
@@ -16063,9 +16068,9 @@ var St = 10, [Yp, Cn] = Sr(Dn), xC = "SelectContentImpl", MC = /* @__PURE__ */ I
16063
16068
  }, [w]), Bo();
16064
16069
  const q = f.useCallback(
16065
16070
  (J) => {
16066
- const [oe, ...me] = L().map((ke) => ke.ref.current), [ie] = me.slice(-1), fe = document.activeElement;
16071
+ const [oe, ...fe] = L().map((ke) => ke.ref.current), [ie] = fe.slice(-1), ve = document.activeElement;
16067
16072
  for (const ke of J)
16068
- if (ke === fe || (ke?.scrollIntoView({ block: "nearest" }), ke === oe && A && (A.scrollTop = 0), ke === ie && A && (A.scrollTop = A.scrollHeight), ke?.focus(), document.activeElement !== fe)) return;
16073
+ if (ke === ve || (ke?.scrollIntoView({ block: "nearest" }), ke === oe && A && (A.scrollTop = 0), ke === ie && A && (A.scrollTop = A.scrollHeight), ke?.focus(), document.activeElement !== ve)) return;
16069
16074
  },
16070
16075
  [L, A]
16071
16076
  ), j = f.useCallback(
@@ -16084,11 +16089,11 @@ var St = 10, [Yp, Cn] = Sr(Dn), xC = "SelectContentImpl", MC = /* @__PURE__ */ I
16084
16089
  x: Math.abs(Math.round(ie.pageX) - (Z.current?.x ?? 0)),
16085
16090
  y: Math.abs(Math.round(ie.pageY) - (Z.current?.y ?? 0))
16086
16091
  };
16087
- }, me = (ie) => {
16092
+ }, fe = (ie) => {
16088
16093
  J.x <= 10 && J.y <= 10 ? ie.preventDefault() : w.contains(ie.target) || $(!1), document.removeEventListener("pointermove", oe), Z.current = null;
16089
16094
  };
16090
- return Z.current !== null && (document.addEventListener("pointermove", oe), document.addEventListener("pointerup", me, { capture: !0, once: !0 })), () => {
16091
- document.removeEventListener("pointermove", oe), document.removeEventListener("pointerup", me, { capture: !0 });
16095
+ return Z.current !== null && (document.addEventListener("pointermove", oe), document.addEventListener("pointerup", fe, { capture: !0, once: !0 })), () => {
16096
+ document.removeEventListener("pointermove", oe), document.removeEventListener("pointerup", fe, { capture: !0 });
16092
16097
  };
16093
16098
  }
16094
16099
  }, [w, $, Z]), f.useEffect(() => {
@@ -16098,17 +16103,17 @@ var St = 10, [Yp, Cn] = Sr(Dn), xC = "SelectContentImpl", MC = /* @__PURE__ */ I
16098
16103
  };
16099
16104
  }, [$]);
16100
16105
  const [b, X] = ky((J) => {
16101
- const oe = L().filter((fe) => !fe.disabled), me = oe.find((fe) => fe.ref.current === document.activeElement), ie = my(oe, J, me);
16106
+ const oe = L().filter((ve) => !ve.disabled), fe = oe.find((ve) => ve.ref.current === document.activeElement), ie = my(oe, J, fe);
16102
16107
  ie && setTimeout(() => ie.ref.current.focus());
16103
16108
  }), re = f.useCallback(
16104
- (J, oe, me) => {
16105
- const ie = !F.current && !me;
16109
+ (J, oe, fe) => {
16110
+ const ie = !F.current && !fe;
16106
16111
  (M.value !== void 0 && M.value === oe || ie) && (N(J), ie && (F.current = !0));
16107
16112
  },
16108
16113
  [M.value]
16109
16114
  ), I = f.useCallback(() => w?.focus(), [w]), he = f.useCallback(
16110
- (J, oe, me) => {
16111
- const ie = !F.current && !me;
16115
+ (J, oe, fe) => {
16116
+ const ie = !F.current && !fe;
16112
16117
  (M.value !== void 0 && M.value === oe || ie) && T(J);
16113
16118
  },
16114
16119
  [M.value]
@@ -16183,9 +16188,9 @@ var St = 10, [Yp, Cn] = Sr(Dn), xC = "SelectContentImpl", MC = /* @__PURE__ */ I
16183
16188
  onKeyDown: U(x.onKeyDown, (J) => {
16184
16189
  const oe = J.ctrlKey || J.altKey || J.metaKey;
16185
16190
  if (J.key === "Tab" && J.preventDefault(), !oe && J.key.length === 1 && X(J.key), ["ArrowUp", "ArrowDown", "Home", "End"].includes(J.key)) {
16186
- let ie = L().filter((fe) => !fe.disabled).map((fe) => fe.ref.current);
16191
+ let ie = L().filter((ve) => !ve.disabled).map((ve) => ve.ref.current);
16187
16192
  if (["ArrowUp", "End"].includes(J.key) && (ie = ie.slice().reverse()), ["ArrowUp", "ArrowDown"].includes(J.key)) {
16188
- const fe = J.target, ke = ie.indexOf(fe);
16193
+ const ve = J.target, ke = ie.indexOf(ve);
16189
16194
  ie = ie.slice(ke + 1);
16190
16195
  }
16191
16196
  setTimeout(() => q(ie)), J.preventDefault();
@@ -16207,7 +16212,7 @@ var wC = "SelectItemAlignedPosition", Jp = f.forwardRef((e, t) => {
16207
16212
  if (r.trigger && r.valueNode && s && d && g && v && x) {
16208
16213
  const E = r.trigger.getBoundingClientRect(), P = d.getBoundingClientRect(), N = r.valueNode.getBoundingClientRect(), R = x.getBoundingClientRect();
16209
16214
  if (r.dir !== "rtl") {
16210
- const fe = R.left - P.left, ke = N.left - fe, Te = E.left - ke, ze = E.width + Te, tt = Math.max(ze, P.width), nt = window.innerWidth - St, Zt = na(ke, [
16215
+ const ve = R.left - P.left, ke = N.left - ve, be = E.left - ke, De = E.width + be, tt = Math.max(De, P.width), nt = window.innerWidth - St, Zt = na(ke, [
16211
16216
  St,
16212
16217
  // Prevents the content from going off the starting edge of the
16213
16218
  // viewport. It may still go off the ending edge, but this can be
@@ -16216,33 +16221,33 @@ var wC = "SelectItemAlignedPosition", Jp = f.forwardRef((e, t) => {
16216
16221
  // https://github.com/radix-ui/primitives/issues/2049
16217
16222
  Math.max(St, nt - tt)
16218
16223
  ]);
16219
- s.style.minWidth = ze + "px", s.style.left = Zt + "px";
16224
+ s.style.minWidth = De + "px", s.style.left = Zt + "px";
16220
16225
  } else {
16221
- const fe = P.right - R.right, ke = window.innerWidth - N.right - fe, Te = window.innerWidth - E.right - ke, ze = E.width + Te, tt = Math.max(ze, P.width), nt = window.innerWidth - St, Zt = na(ke, [
16226
+ const ve = P.right - R.right, ke = window.innerWidth - N.right - ve, be = window.innerWidth - E.right - ke, De = E.width + be, tt = Math.max(De, P.width), nt = window.innerWidth - St, Zt = na(ke, [
16222
16227
  St,
16223
16228
  Math.max(St, nt - tt)
16224
16229
  ]);
16225
- s.style.minWidth = ze + "px", s.style.right = Zt + "px";
16230
+ s.style.minWidth = De + "px", s.style.right = Zt + "px";
16226
16231
  }
16227
- const T = y(), L = window.innerHeight - St * 2, G = g.scrollHeight, V = window.getComputedStyle(d), F = parseInt(V.borderTopWidth, 10), q = parseInt(V.paddingTop, 10), j = parseInt(V.borderBottomWidth, 10), $ = parseInt(V.paddingBottom, 10), Z = F + q + G + $ + j, b = Math.min(v.offsetHeight * 5, Z), X = window.getComputedStyle(g), re = parseInt(X.paddingTop, 10), I = parseInt(X.paddingBottom, 10), he = E.top + E.height / 2 - St, le = L - he, ne = v.offsetHeight / 2, J = v.offsetTop + ne, oe = F + q + J, me = Z - oe;
16232
+ const T = y(), L = window.innerHeight - St * 2, G = g.scrollHeight, V = window.getComputedStyle(d), F = parseInt(V.borderTopWidth, 10), q = parseInt(V.paddingTop, 10), j = parseInt(V.borderBottomWidth, 10), $ = parseInt(V.paddingBottom, 10), Z = F + q + G + $ + j, b = Math.min(v.offsetHeight * 5, Z), X = window.getComputedStyle(g), re = parseInt(X.paddingTop, 10), I = parseInt(X.paddingBottom, 10), he = E.top + E.height / 2 - St, le = L - he, ne = v.offsetHeight / 2, J = v.offsetTop + ne, oe = F + q + J, fe = Z - oe;
16228
16233
  if (oe <= he) {
16229
- const fe = T.length > 0 && v === T[T.length - 1].ref.current;
16234
+ const ve = T.length > 0 && v === T[T.length - 1].ref.current;
16230
16235
  s.style.bottom = "0px";
16231
- const ke = d.clientHeight - g.offsetTop - g.offsetHeight, Te = Math.max(
16236
+ const ke = d.clientHeight - g.offsetTop - g.offsetHeight, be = Math.max(
16232
16237
  le,
16233
16238
  ne + // viewport might have padding bottom, include it to avoid a scrollable viewport
16234
- (fe ? I : 0) + ke + j
16235
- ), ze = oe + Te;
16236
- s.style.height = ze + "px";
16239
+ (ve ? I : 0) + ke + j
16240
+ ), De = oe + be;
16241
+ s.style.height = De + "px";
16237
16242
  } else {
16238
- const fe = T.length > 0 && v === T[0].ref.current;
16243
+ const ve = T.length > 0 && v === T[0].ref.current;
16239
16244
  s.style.top = "0px";
16240
- const Te = Math.max(
16245
+ const be = Math.max(
16241
16246
  he,
16242
16247
  F + g.offsetTop + // viewport might have padding top, include it to avoid a scrollable viewport
16243
- (fe ? re : 0) + ne
16244
- ) + me;
16245
- s.style.height = Te + "px", g.scrollTop = oe - he + g.offsetTop;
16248
+ (ve ? re : 0) + ne
16249
+ ) + fe;
16250
+ s.style.height = be + "px", g.scrollTop = oe - he + g.offsetTop;
16246
16251
  }
16247
16252
  s.style.margin = `${St}px 0`, s.style.minHeight = b + "px", s.style.maxHeight = L + "px", a?.(), requestAnimationFrame(() => p.current = !0);
16248
16253
  }
@@ -16258,9 +16263,9 @@ var wC = "SelectItemAlignedPosition", Jp = f.forwardRef((e, t) => {
16258
16263
  r.dir,
16259
16264
  a
16260
16265
  ]);
16261
- Se(() => w(), [w]);
16266
+ Re(() => w(), [w]);
16262
16267
  const [C, A] = f.useState();
16263
- Se(() => {
16268
+ Re(() => {
16264
16269
  d && A(window.getComputedStyle(d).zIndex);
16265
16270
  }, [d]);
16266
16271
  const S = f.useCallback(
@@ -16391,7 +16396,7 @@ var [CC, kl] = Sr(Dn, {}), Us = "SelectViewport", Qp = f.forwardRef(
16391
16396
  Qp.displayName = Us;
16392
16397
  var ey = "SelectGroup", [SC, RC] = Sr(ey), ty = f.forwardRef(
16393
16398
  (e, t) => {
16394
- const { __scopeSelect: n, ...a } = e, o = je();
16399
+ const { __scopeSelect: n, ...a } = e, o = Oe();
16395
16400
  return /* @__PURE__ */ k.jsx(SC, { scope: n, id: o, children: /* @__PURE__ */ k.jsx(K.div, { role: "group", "aria-labelledby": o, ...a, ref: t }) });
16396
16401
  }
16397
16402
  );
@@ -16414,7 +16419,7 @@ var xo = "SelectItem", [AC, ay] = Sr(xo), oy = f.forwardRef(
16414
16419
  } = e, s = bn(xo, n), c = Cn(xo, n), d = s.value === a, [u, h] = f.useState(r ?? ""), [y, p] = f.useState(!1), m = se(
16415
16420
  t,
16416
16421
  (M) => c.itemRefCallback?.(M, a, o)
16417
- ), g = je(), v = f.useRef("touch"), x = () => {
16422
+ ), g = Oe(), v = f.useRef("touch"), x = () => {
16418
16423
  o || (s.onValueChange(a), s.onOpenChange(!1));
16419
16424
  };
16420
16425
  if (a === "")
@@ -16492,7 +16497,7 @@ var Hr = "SelectItemText", iy = f.forwardRef(
16492
16497
  () => /* @__PURE__ */ k.jsx("option", { value: c.value, disabled: c.disabled, children: p }, c.value),
16493
16498
  [c.disabled, c.value, p]
16494
16499
  ), { onNativeOptionAdd: g, onNativeOptionRemove: v } = d;
16495
- return Se(() => (g(m), () => v(m)), [g, v, m]), /* @__PURE__ */ k.jsxs(k.Fragment, { children: [
16500
+ return Re(() => (g(m), () => v(m)), [g, v, m]), /* @__PURE__ */ k.jsxs(k.Fragment, { children: [
16496
16501
  /* @__PURE__ */ k.jsx(K.span, { id: c.textId, ...r, ref: y }),
16497
16502
  c.isSelected && i.valueNode && !i.valueNodeHasChildren ? la.createPortal(r.children, i.valueNode) : null
16498
16503
  ] });
@@ -16508,7 +16513,7 @@ var sy = "SelectItemIndicator", ly = f.forwardRef(
16508
16513
  ly.displayName = sy;
16509
16514
  var $s = "SelectScrollUpButton", cy = f.forwardRef((e, t) => {
16510
16515
  const n = Cn($s, e.__scopeSelect), a = kl($s, e.__scopeSelect), [o, r] = f.useState(!1), i = se(t, a.onScrollButtonChange);
16511
- return Se(() => {
16516
+ return Re(() => {
16512
16517
  if (n.viewport && n.isPositioned) {
16513
16518
  let s = function() {
16514
16519
  const d = c.scrollTop > 0;
@@ -16532,7 +16537,7 @@ var $s = "SelectScrollUpButton", cy = f.forwardRef((e, t) => {
16532
16537
  cy.displayName = $s;
16533
16538
  var Gs = "SelectScrollDownButton", dy = f.forwardRef((e, t) => {
16534
16539
  const n = Cn(Gs, e.__scopeSelect), a = kl(Gs, e.__scopeSelect), [o, r] = f.useState(!1), i = se(t, a.onScrollButtonChange);
16535
- return Se(() => {
16540
+ return Re(() => {
16536
16541
  if (n.viewport && n.isPositioned) {
16537
16542
  let s = function() {
16538
16543
  const d = c.scrollHeight - c.clientHeight, u = Math.ceil(c.scrollTop) < d;
@@ -16558,7 +16563,7 @@ var uy = f.forwardRef((e, t) => {
16558
16563
  const { __scopeSelect: n, onAutoScroll: a, ...o } = e, r = Cn("SelectScrollButton", n), i = f.useRef(null), s = ki(n), c = f.useCallback(() => {
16559
16564
  i.current !== null && (window.clearInterval(i.current), i.current = null);
16560
16565
  }, []);
16561
- return f.useEffect(() => () => c(), [c]), Se(() => {
16566
+ return f.useEffect(() => () => c(), [c]), Re(() => {
16562
16567
  s().find((u) => u.ref.current === document.activeElement)?.ref.current?.scrollIntoView({ block: "nearest" });
16563
16568
  }, [s]), /* @__PURE__ */ k.jsx(
16564
16569
  K.div,
@@ -16622,7 +16627,7 @@ function fy(e) {
16622
16627
  return e === "" || e === void 0;
16623
16628
  }
16624
16629
  function ky(e) {
16625
- const t = Ae(e), n = f.useRef(""), a = f.useRef(0), o = f.useCallback(
16630
+ const t = Ee(e), n = f.useRef(""), a = f.useRef(0), o = f.useCallback(
16626
16631
  (i) => {
16627
16632
  const s = n.current + i;
16628
16633
  t(s), function c(d) {
@@ -17487,7 +17492,7 @@ var [ml] = _e("Form"), gl = "Form", [CS, Rr] = ml(gl), [SS, vy] = ml(gl), xy = f
17487
17492
  xy.displayName = gl;
17488
17493
  var vl = "FormField", [RS, gi] = ml(vl), My = f.forwardRef(
17489
17494
  (e, t) => {
17490
- const { __scopeForm: n, name: a, serverInvalid: o = !1, ...r } = e, s = Rr(vl, n).getFieldValidity(a), c = je();
17495
+ const { __scopeForm: n, name: a, serverInvalid: o = !1, ...r } = e, s = Rr(vl, n).getFieldValidity(a), c = Oe();
17491
17496
  return /* @__PURE__ */ k.jsx(RS, { scope: n, id: c, name: a, serverInvalid: o, children: /* @__PURE__ */ k.jsx(
17492
17497
  K.div,
17493
17498
  {
@@ -17615,14 +17620,14 @@ var ES = f.forwardRef(
17615
17620
  }
17616
17621
  ), IS = f.forwardRef(
17617
17622
  (e, t) => {
17618
- const { match: n, forceMatch: a = !1, name: o, id: r, children: i, ...s } = e, c = Rr(Ma, s.__scopeForm), d = f.useRef(null), u = se(t, d), h = je(), y = r ?? h, p = f.useMemo(() => ({ id: y, match: n }), [y, n]), { onFieldCustomMatcherEntryAdd: m, onFieldCustomMatcherEntryRemove: g } = c;
17623
+ const { match: n, forceMatch: a = !1, name: o, id: r, children: i, ...s } = e, c = Rr(Ma, s.__scopeForm), d = f.useRef(null), u = se(t, d), h = Oe(), y = r ?? h, p = f.useMemo(() => ({ id: y, match: n }), [y, n]), { onFieldCustomMatcherEntryAdd: m, onFieldCustomMatcherEntryRemove: g } = c;
17619
17624
  f.useEffect(() => (m(o, p), () => g(o, p.id)), [p, o, m, g]);
17620
17625
  const v = c.getFieldValidity(o), M = c.getFieldCustomErrors(o)[y];
17621
17626
  return a || v && !Ey(v) && M ? /* @__PURE__ */ k.jsx(xl, { id: y, ref: u, ...s, name: o, children: i ?? ra }) : null;
17622
17627
  }
17623
17628
  ), xl = f.forwardRef(
17624
17629
  (e, t) => {
17625
- const { __scopeForm: n, id: a, name: o, ...r } = e, i = vy(Ma, n), s = je(), c = a ?? s, { onFieldMessageIdAdd: d, onFieldMessageIdRemove: u } = i;
17630
+ const { __scopeForm: n, id: a, name: o, ...r } = e, i = vy(Ma, n), s = Oe(), c = a ?? s, { onFieldMessageIdAdd: d, onFieldMessageIdRemove: u } = i;
17626
17631
  return f.useEffect(() => (d(o, c), () => u(o, c)), [o, c, d, u]), /* @__PURE__ */ k.jsx(K.span, { id: c, ...r, ref: t });
17627
17632
  }
17628
17633
  ), Zs = "FormValidityState", Sy = (e) => {
@@ -17907,7 +17912,7 @@ function eR() {
17907
17912
  }
17908
17913
  function tR() {
17909
17914
  const e = O(function({ nodeId: n, context: a, className: o }) {
17910
- const r = z(a.store, n), i = mt(Iy), s = ae(r?.props?.index), c = Ee(() => i ? Ty(i.value, i.length) : [], [i]);
17915
+ const r = z(a.store, n), i = mt(Iy), s = ae(r?.props?.index), c = Ie(() => i ? Ty(i.value, i.length) : [], [i]);
17911
17916
  if (!r || !i || s === void 0)
17912
17917
  return null;
17913
17918
  const d = c[s] ?? "", u = (m) => {
@@ -18303,10 +18308,10 @@ _y.displayName = Cl;
18303
18308
  var Dy = "AvatarImage", Ly = f.forwardRef(
18304
18309
  (e, t) => {
18305
18310
  const { __scopeAvatar: n, src: a, onLoadingStatusChange: o = () => {
18306
- }, ...r } = e, i = Ny(Dy, n), s = SR(a, r), c = Ae((d) => {
18311
+ }, ...r } = e, i = Ny(Dy, n), s = SR(a, r), c = Ee((d) => {
18307
18312
  o(d), i.onImageLoadingStatusChange(d);
18308
18313
  });
18309
- return Se(() => {
18314
+ return Re(() => {
18310
18315
  s !== "idle" && c(s);
18311
18316
  }, [s, c]), s === "loaded" ? /* @__PURE__ */ k.jsx(bl.img, { ...r, ref: t, src: a }) : null;
18312
18317
  }
@@ -18331,9 +18336,9 @@ function SR(e, { referrerPolicy: t, crossOrigin: n }) {
18331
18336
  const a = MR(), o = f.useRef(null), r = a ? (o.current || (o.current = new window.Image()), o.current) : null, [i, s] = f.useState(
18332
18337
  () => Zd(r, e)
18333
18338
  );
18334
- return Se(() => {
18339
+ return Re(() => {
18335
18340
  s(Zd(r, e));
18336
- }, [r, e]), Se(() => {
18341
+ }, [r, e]), Re(() => {
18337
18342
  const c = (h) => () => {
18338
18343
  s(h);
18339
18344
  };
@@ -18878,7 +18883,7 @@ var YR = f.forwardRef((e, t) => {
18878
18883
  onWheelScroll: u,
18879
18884
  onResize: h,
18880
18885
  ...y
18881
- } = e, p = Mt(Kt, n), [m, g] = f.useState(null), v = se(t, (N) => g(N)), x = f.useRef(null), M = f.useRef(""), w = p.viewport, C = a.content - a.viewport, A = Ae(u), S = Ae(c), E = Mi(h, 10);
18886
+ } = e, p = Mt(Kt, n), [m, g] = f.useState(null), v = se(t, (N) => g(N)), x = f.useRef(null), M = f.useRef(""), w = p.viewport, C = a.content - a.viewport, A = Ee(u), S = Ee(c), E = Mi(h, 10);
18882
18887
  function P(N) {
18883
18888
  if (x.current) {
18884
18889
  const R = N.clientX - x.current.left, T = N.clientY - x.current.top;
@@ -18897,10 +18902,10 @@ var YR = f.forwardRef((e, t) => {
18897
18902
  scope: n,
18898
18903
  scrollbar: m,
18899
18904
  hasThumb: o,
18900
- onThumbChange: Ae(r),
18901
- onThumbPointerUp: Ae(i),
18905
+ onThumbChange: Ee(r),
18906
+ onThumbPointerUp: Ee(i),
18902
18907
  onThumbPositionChange: S,
18903
- onThumbPointerDown: Ae(s),
18908
+ onThumbPointerDown: Ee(s),
18904
18909
  children: /* @__PURE__ */ k.jsx(
18905
18910
  K.div,
18906
18911
  {
@@ -19034,14 +19039,14 @@ var aA = (e, t = () => {
19034
19039
  }(), () => window.cancelAnimationFrame(a);
19035
19040
  };
19036
19041
  function Mi(e, t) {
19037
- const n = Ae(e), a = f.useRef(0);
19042
+ const n = Ee(e), a = f.useRef(0);
19038
19043
  return f.useEffect(() => () => window.clearTimeout(a.current), []), f.useCallback(() => {
19039
19044
  window.clearTimeout(a.current), a.current = window.setTimeout(n, t);
19040
19045
  }, [n, t]);
19041
19046
  }
19042
19047
  function dr(e, t) {
19043
- const n = Ae(t);
19044
- Se(() => {
19048
+ const n = Ee(t);
19049
+ Re(() => {
19045
19050
  let a = 0;
19046
19051
  if (e) {
19047
19052
  const o = new ResizeObserver(() => {
@@ -19324,7 +19329,7 @@ function MA() {
19324
19329
  function wA() {
19325
19330
  for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
19326
19331
  t[n] = arguments[n];
19327
- return Ee(
19332
+ return Ie(
19328
19333
  () => (a) => {
19329
19334
  t.forEach((o) => o(a));
19330
19335
  },
@@ -19388,7 +19393,7 @@ function aa(e, t) {
19388
19393
  }
19389
19394
  function ba(e, t) {
19390
19395
  const n = ye();
19391
- return Ee(
19396
+ return Ie(
19392
19397
  () => {
19393
19398
  const a = e(n.current);
19394
19399
  return n.current = a, a;
@@ -19415,7 +19420,7 @@ function Ao(e) {
19415
19420
  }
19416
19421
  let hs = {};
19417
19422
  function Ca(e, t) {
19418
- return Ee(() => {
19423
+ return Ie(() => {
19419
19424
  if (t)
19420
19425
  return t;
19421
19426
  const n = hs[e] == null ? 0 : hs[e] + 1;
@@ -19647,7 +19652,7 @@ function DA(e) {
19647
19652
  } = TA(), s = Ca("DndLiveRegion"), [c, d] = Me(!1);
19648
19653
  if (xe(() => {
19649
19654
  d(!0);
19650
- }, []), cf(Ee(() => ({
19655
+ }, []), cf(Ie(() => ({
19651
19656
  onDragStart(h) {
19652
19657
  let {
19653
19658
  active: y
@@ -20230,35 +20235,35 @@ function n2(e) {
20230
20235
  function aE(e) {
20231
20236
  e.stopPropagation();
20232
20237
  }
20233
- var Ce;
20238
+ var Se;
20234
20239
  (function(e) {
20235
20240
  e.Space = "Space", e.Down = "ArrowDown", e.Right = "ArrowRight", e.Left = "ArrowLeft", e.Up = "ArrowUp", e.Esc = "Escape", e.Enter = "Enter", e.Tab = "Tab";
20236
- })(Ce || (Ce = {}));
20241
+ })(Se || (Se = {}));
20237
20242
  const xf = {
20238
- start: [Ce.Space, Ce.Enter],
20239
- cancel: [Ce.Esc],
20240
- end: [Ce.Space, Ce.Enter, Ce.Tab]
20243
+ start: [Se.Space, Se.Enter],
20244
+ cancel: [Se.Esc],
20245
+ end: [Se.Space, Se.Enter, Se.Tab]
20241
20246
  }, oE = (e, t) => {
20242
20247
  let {
20243
20248
  currentCoordinates: n
20244
20249
  } = t;
20245
20250
  switch (e.code) {
20246
- case Ce.Right:
20251
+ case Se.Right:
20247
20252
  return {
20248
20253
  ...n,
20249
20254
  x: n.x + 25
20250
20255
  };
20251
- case Ce.Left:
20256
+ case Se.Left:
20252
20257
  return {
20253
20258
  ...n,
20254
20259
  x: n.x - 25
20255
20260
  };
20256
- case Ce.Down:
20261
+ case Se.Down:
20257
20262
  return {
20258
20263
  ...n,
20259
20264
  y: n.y + 25
20260
20265
  };
20261
- case Ce.Up:
20266
+ case Se.Up:
20262
20267
  return {
20263
20268
  ...n,
20264
20269
  y: n.y - 25
@@ -20334,11 +20339,11 @@ class Mf {
20334
20339
  maxScroll: A,
20335
20340
  minScroll: S
20336
20341
  } = mf(g), E = QA(g), P = {
20337
- x: Math.min(v === Ce.Right ? E.right - E.width / 2 : E.right, Math.max(v === Ce.Right ? E.left : E.left + E.width / 2, h.x)),
20338
- y: Math.min(v === Ce.Down ? E.bottom - E.height / 2 : E.bottom, Math.max(v === Ce.Down ? E.top : E.top + E.height / 2, h.y))
20339
- }, N = v === Ce.Right && !M || v === Ce.Left && !w, R = v === Ce.Down && !C || v === Ce.Up && !x;
20342
+ x: Math.min(v === Se.Right ? E.right - E.width / 2 : E.right, Math.max(v === Se.Right ? E.left : E.left + E.width / 2, h.x)),
20343
+ y: Math.min(v === Se.Down ? E.bottom - E.height / 2 : E.bottom, Math.max(v === Se.Down ? E.top : E.top + E.height / 2, h.y))
20344
+ }, N = v === Se.Right && !M || v === Se.Left && !w, R = v === Se.Down && !C || v === Se.Up && !x;
20340
20345
  if (N && P.x !== h.x) {
20341
- const T = g.scrollLeft + y.x, L = v === Ce.Right && T <= A.x || v === Ce.Left && T >= S.x;
20346
+ const T = g.scrollLeft + y.x, L = v === Se.Right && T <= A.x || v === Se.Left && T >= S.x;
20342
20347
  if (L && !y.y) {
20343
20348
  g.scrollTo({
20344
20349
  left: T,
@@ -20346,13 +20351,13 @@ class Mf {
20346
20351
  });
20347
20352
  return;
20348
20353
  }
20349
- L ? p.x = g.scrollLeft - T : p.x = v === Ce.Right ? g.scrollLeft - A.x : g.scrollLeft - S.x, p.x && g.scrollBy({
20354
+ L ? p.x = g.scrollLeft - T : p.x = v === Se.Right ? g.scrollLeft - A.x : g.scrollLeft - S.x, p.x && g.scrollBy({
20350
20355
  left: -p.x,
20351
20356
  behavior: s
20352
20357
  });
20353
20358
  break;
20354
20359
  } else if (R && P.y !== h.y) {
20355
- const T = g.scrollTop + y.y, L = v === Ce.Down && T <= A.y || v === Ce.Up && T >= S.y;
20360
+ const T = g.scrollTop + y.y, L = v === Se.Down && T <= A.y || v === Se.Up && T >= S.y;
20356
20361
  if (L && !y.x) {
20357
20362
  g.scrollTo({
20358
20363
  top: T,
@@ -20360,7 +20365,7 @@ class Mf {
20360
20365
  });
20361
20366
  return;
20362
20367
  }
20363
- L ? p.y = g.scrollTop - T : p.y = v === Ce.Down ? g.scrollTop - A.y : g.scrollTop - S.y, p.y && g.scrollBy({
20368
+ L ? p.y = g.scrollTop - T : p.y = v === Se.Down ? g.scrollTop - A.y : g.scrollTop - S.y, p.y && g.scrollBy({
20364
20369
  top: -p.y,
20365
20370
  behavior: s
20366
20371
  });
@@ -20525,7 +20530,7 @@ class jl {
20525
20530
  this.detach(), this.activated || t(this.props.active), n();
20526
20531
  }
20527
20532
  handleKeydown(t) {
20528
- t.code === Ce.Esc && this.handleCancel();
20533
+ t.code === Se.Esc && this.handleCancel();
20529
20534
  }
20530
20535
  removeTextSelection() {
20531
20536
  var t;
@@ -20668,7 +20673,7 @@ function dE(e) {
20668
20673
  }), x = ye({
20669
20674
  x: 0,
20670
20675
  y: 0
20671
- }), M = Ee(() => {
20676
+ }), M = Ie(() => {
20672
20677
  switch (n) {
20673
20678
  case Wr.Pointer:
20674
20679
  return c ? {
@@ -20686,7 +20691,7 @@ function dE(e) {
20686
20691
  return;
20687
20692
  const E = v.current.x * x.current.x, P = v.current.y * x.current.y;
20688
20693
  S.scrollBy(E, P);
20689
- }, []), A = Ee(() => s === Po.TreeOrder ? [...d].reverse() : d, [s, d]);
20694
+ }, []), A = Ie(() => s === Po.TreeOrder ? [...d].reverse() : d, [s, d]);
20690
20695
  xe(
20691
20696
  () => {
20692
20697
  if (!r || !d.length || !M) {
@@ -20782,7 +20787,7 @@ function pE(e, t) {
20782
20787
  }, [a, t]);
20783
20788
  }
20784
20789
  function yE(e, t) {
20785
- return Ee(() => e.reduce((n, a) => {
20790
+ return Ie(() => e.reduce((n, a) => {
20786
20791
  const {
20787
20792
  sensor: o
20788
20793
  } = a, r = o.activators.map((i) => ({
@@ -20881,7 +20886,7 @@ function mE(e) {
20881
20886
  callback: t,
20882
20887
  disabled: n
20883
20888
  } = e;
20884
- const a = bi(t), o = Ee(() => {
20889
+ const a = bi(t), o = Ie(() => {
20885
20890
  if (n || typeof window > "u" || typeof window.MutationObserver > "u")
20886
20891
  return;
20887
20892
  const {
@@ -20896,7 +20901,7 @@ function Si(e) {
20896
20901
  callback: t,
20897
20902
  disabled: n
20898
20903
  } = e;
20899
- const a = bi(t), o = Ee(
20904
+ const a = bi(t), o = Ie(
20900
20905
  () => {
20901
20906
  if (n || typeof window > "u" || typeof window.ResizeObserver > "u")
20902
20907
  return;
@@ -20989,7 +20994,7 @@ function ME(e) {
20989
20994
  d?.removeEventListener("scroll", o);
20990
20995
  });
20991
20996
  }
20992
- }, [o, e]), Ee(() => e.length ? t ? Array.from(t.values()).reduce((r, i) => rr(r, i), Tt) : gf(e) : Tt, [e, t]);
20997
+ }, [o, e]), Ie(() => e.length ? t ? Array.from(t.values()).reduce((r, i) => rr(r, i), Tt) : gf(e) : Tt, [e, t]);
20993
20998
  }
20994
20999
  function l2(e, t) {
20995
21000
  t === void 0 && (t = []);
@@ -21032,7 +21037,7 @@ function wE(e) {
21032
21037
  );
21033
21038
  }
21034
21039
  function bE(e, t) {
21035
- return Ee(() => e.reduce((n, a) => {
21040
+ return Ie(() => e.reduce((n, a) => {
21036
21041
  let {
21037
21042
  eventName: o,
21038
21043
  handler: r
@@ -21043,7 +21048,7 @@ function bE(e, t) {
21043
21048
  }, {}), [e, t]);
21044
21049
  }
21045
21050
  function bf(e) {
21046
- return Ee(() => e ? KA(e) : null, [e]);
21051
+ return Ie(() => e ? KA(e) : null, [e]);
21047
21052
  }
21048
21053
  const c2 = [];
21049
21054
  function CE(e, t) {
@@ -21092,7 +21097,7 @@ function SE(e) {
21092
21097
  const u = Cf(d);
21093
21098
  r?.disconnect(), u && r?.observe(u), a(u ? t(u) : null);
21094
21099
  }, [t, r]), [s, c] = Ro(i);
21095
- return Ee(() => ({
21100
+ return Ie(() => ({
21096
21101
  nodeRef: s,
21097
21102
  rect: n,
21098
21103
  setRef: c
@@ -21336,7 +21341,7 @@ function Af(e, t) {
21336
21341
  }), n) : n;
21337
21342
  }
21338
21343
  function NE(e) {
21339
- return Ee(
21344
+ return Ie(
21340
21345
  () => ({
21341
21346
  draggable: {
21342
21347
  ...oo.draggable,
@@ -21423,7 +21428,7 @@ const DE = /* @__PURE__ */ O(function(t) {
21423
21428
  } = v, T = E != null ? P.get(E) : null, L = ye({
21424
21429
  initial: null,
21425
21430
  translated: null
21426
- }), G = Ee(() => {
21431
+ }), G = Ie(() => {
21427
21432
  var $e;
21428
21433
  return E != null ? {
21429
21434
  id: E,
@@ -21431,7 +21436,7 @@ const DE = /* @__PURE__ */ O(function(t) {
21431
21436
  data: ($e = T?.data) != null ? $e : AE,
21432
21437
  rect: L
21433
21438
  } : null;
21434
- }, [E, T]), V = ye(null), [F, q] = Me(null), [j, $] = Me(null), Z = aa(m, Object.values(m)), b = Ca("DndDescribedBy", i), X = Ee(() => R.getEnabled(), [R]), re = NE(y), {
21439
+ }, [E, T]), V = ye(null), [F, q] = Me(null), [j, $] = Me(null), Z = aa(m, Object.values(m)), b = Ca("DndDescribedBy", i), X = Ie(() => R.getEnabled(), [R]), re = NE(y), {
21435
21440
  droppableRects: I,
21436
21441
  measureDroppableContainers: he,
21437
21442
  measuringScheduled: le
@@ -21439,14 +21444,14 @@ const DE = /* @__PURE__ */ O(function(t) {
21439
21444
  dragging: S,
21440
21445
  dependencies: [N.x, N.y],
21441
21446
  config: re.droppable
21442
- }), ne = pE(P, E), J = Ee(() => j ? Io(j) : null, [j]), oe = um(), me = kE(ne, re.draggable.measure);
21447
+ }), ne = pE(P, E), J = Ie(() => j ? Io(j) : null, [j]), oe = um(), fe = kE(ne, re.draggable.measure);
21443
21448
  _E({
21444
21449
  activeNode: E != null ? P.get(E) : null,
21445
21450
  config: oe.layoutShiftCompensation,
21446
- initialRect: me,
21451
+ initialRect: fe,
21447
21452
  measure: re.draggable.measure
21448
21453
  });
21449
- const ie = i2(ne, re.draggable.measure, me), fe = i2(ne ? ne.parentElement : null), ke = ye({
21454
+ const ie = i2(ne, re.draggable.measure, fe), ve = i2(ne ? ne.parentElement : null), ke = ye({
21450
21455
  activatorEvent: null,
21451
21456
  active: null,
21452
21457
  activeNode: ne,
@@ -21460,9 +21465,9 @@ const DE = /* @__PURE__ */ O(function(t) {
21460
21465
  over: null,
21461
21466
  scrollableAncestors: [],
21462
21467
  scrollAdjustedTranslate: null
21463
- }), Te = R.getNodeFor((n = ke.current.over) == null ? void 0 : n.id), ze = SE({
21468
+ }), be = R.getNodeFor((n = ke.current.over) == null ? void 0 : n.id), De = SE({
21464
21469
  measure: re.dragOverlay.measure
21465
- }), tt = (a = ze.nodeRef.current) != null ? a : ne, nt = S ? (o = ze.rect) != null ? o : ie : null, Zt = !!(ze.nodeRef.current && ze.rect), _a = vE(Zt ? null : ie), Un = bf(tt ? Ye(tt) : null), bt = xE(S ? Te ?? ne : null), $n = CE(bt), Gn = Af(p, {
21470
+ }), tt = (a = De.nodeRef.current) != null ? a : ne, nt = S ? (o = De.rect) != null ? o : ie : null, Zt = !!(De.nodeRef.current && De.rect), _a = vE(Zt ? null : ie), Un = bf(tt ? Ye(tt) : null), bt = xE(S ? be ?? ne : null), $n = CE(bt), Gn = Af(p, {
21466
21471
  transform: {
21467
21472
  x: N.x - _a.x,
21468
21473
  y: N.y - _a.y,
@@ -21472,20 +21477,20 @@ const DE = /* @__PURE__ */ O(function(t) {
21472
21477
  activatorEvent: j,
21473
21478
  active: G,
21474
21479
  activeNodeRect: ie,
21475
- containerNodeRect: fe,
21480
+ containerNodeRect: ve,
21476
21481
  draggingNodeRect: nt,
21477
21482
  over: ke.current.over,
21478
- overlayNodeRect: ze.rect,
21483
+ overlayNodeRect: De.rect,
21479
21484
  scrollableAncestors: bt,
21480
21485
  scrollableAncestorRects: $n,
21481
21486
  windowRect: Un
21482
- }), Da = J ? rr(J, N) : null, La = ME(bt), Di = l2(La), W = l2(La, [ie]), te = rr(Gn, Di), pe = nt ? $A(nt, Gn) : null, ge = G && pe ? h({
21487
+ }), Da = J ? rr(J, N) : null, La = ME(bt), Di = l2(La), W = l2(La, [ie]), te = rr(Gn, Di), pe = nt ? $A(nt, Gn) : null, me = G && pe ? h({
21483
21488
  active: G,
21484
21489
  collisionRect: pe,
21485
21490
  droppableRects: I,
21486
21491
  droppableContainers: X,
21487
21492
  pointerCoordinates: Da
21488
- }) : null, Re = OA(ge, "id"), [Oe, Dt] = Me(null), Ct = Zt ? Gn : rr(Gn, W), Rn = BA(Ct, (r = Oe?.rect) != null ? r : null, ie), Yt = ye(null), Ue = ce(
21493
+ }) : null, Ae = OA(me, "id"), [Ve, Dt] = Me(null), Ct = Zt ? Gn : rr(Gn, W), Rn = BA(Ct, (r = Ve?.rect) != null ? r : null, ie), Yt = ye(null), Ue = ce(
21489
21494
  ($e, rt) => {
21490
21495
  let {
21491
21496
  sensor: at,
@@ -21672,7 +21677,7 @@ const DE = /* @__PURE__ */ O(function(t) {
21672
21677
  return;
21673
21678
  const {
21674
21679
  onDragOver: ot
21675
- } = Z.current, Lt = sn.get(Re), Wn = Lt && Lt.rect.current ? {
21680
+ } = Z.current, Lt = sn.get(Ae), Wn = Lt && Lt.rect.current ? {
21676
21681
  id: Lt.id,
21677
21682
  rect: Lt.rect.current,
21678
21683
  data: Lt.data,
@@ -21695,27 +21700,27 @@ const DE = /* @__PURE__ */ O(function(t) {
21695
21700
  });
21696
21701
  },
21697
21702
  // eslint-disable-next-line react-hooks/exhaustive-deps
21698
- [Re]
21703
+ [Ae]
21699
21704
  ), It(() => {
21700
21705
  ke.current = {
21701
21706
  activatorEvent: j,
21702
21707
  active: G,
21703
21708
  activeNode: ne,
21704
21709
  collisionRect: pe,
21705
- collisions: ge,
21710
+ collisions: me,
21706
21711
  droppableRects: I,
21707
21712
  draggableNodes: P,
21708
21713
  draggingNode: tt,
21709
21714
  draggingNodeRect: nt,
21710
21715
  droppableContainers: R,
21711
- over: Oe,
21716
+ over: Ve,
21712
21717
  scrollableAncestors: bt,
21713
21718
  scrollAdjustedTranslate: te
21714
21719
  }, L.current = {
21715
21720
  initial: nt,
21716
21721
  translated: pe
21717
21722
  };
21718
- }, [G, ne, ge, pe, P, tt, nt, I, R, Oe, bt, te]), dE({
21723
+ }, [G, ne, me, pe, P, tt, nt, I, R, Ve, bt, te]), dE({
21719
21724
  ...oe,
21720
21725
  delta: N,
21721
21726
  draggingRect: pe,
@@ -21723,25 +21728,25 @@ const DE = /* @__PURE__ */ O(function(t) {
21723
21728
  scrollableAncestors: bt,
21724
21729
  scrollableAncestorRects: $n
21725
21730
  });
21726
- const cm = Ee(() => ({
21731
+ const cm = Ie(() => ({
21727
21732
  active: G,
21728
21733
  activeNode: ne,
21729
21734
  activeNodeRect: ie,
21730
21735
  activatorEvent: j,
21731
- collisions: ge,
21732
- containerNodeRect: fe,
21733
- dragOverlay: ze,
21736
+ collisions: me,
21737
+ containerNodeRect: ve,
21738
+ dragOverlay: De,
21734
21739
  draggableNodes: P,
21735
21740
  droppableContainers: R,
21736
21741
  droppableRects: I,
21737
- over: Oe,
21742
+ over: Ve,
21738
21743
  measureDroppableContainers: he,
21739
21744
  scrollableAncestors: bt,
21740
21745
  scrollableAncestorRects: $n,
21741
21746
  measuringConfiguration: re,
21742
21747
  measuringScheduled: le,
21743
21748
  windowRect: Un
21744
- }), [G, ne, ie, j, ge, fe, ze, P, R, I, Oe, he, bt, $n, re, le, Un]), dm = Ee(() => ({
21749
+ }), [G, ne, ie, j, me, ve, De, P, R, I, Ve, he, bt, $n, re, le, Un]), dm = Ie(() => ({
21745
21750
  activatorEvent: j,
21746
21751
  activators: ut,
21747
21752
  active: G,
@@ -21751,9 +21756,9 @@ const DE = /* @__PURE__ */ O(function(t) {
21751
21756
  },
21752
21757
  dispatch: x,
21753
21758
  draggableNodes: P,
21754
- over: Oe,
21759
+ over: Ve,
21755
21760
  measureDroppableContainers: he
21756
- }), [j, ut, G, ie, x, b, P, Oe, he]);
21761
+ }), [j, ut, G, ie, x, b, P, Ve, he]);
21757
21762
  return de.createElement(lf.Provider, {
21758
21763
  value: w
21759
21764
  }, de.createElement(Sa.Provider, {
@@ -21812,7 +21817,7 @@ function Ef(e) {
21812
21817
  // eslint-disable-next-line react-hooks/exhaustive-deps
21813
21818
  [h, t]
21814
21819
  );
21815
- const P = Ee(() => ({
21820
+ const P = Ie(() => ({
21816
21821
  role: p,
21817
21822
  tabIndex: g,
21818
21823
  "aria-disabled": a,
@@ -22134,7 +22139,7 @@ function ZE(e) {
22134
22139
  }
22135
22140
  let u2 = 0;
22136
22141
  function YE(e) {
22137
- return Ee(() => {
22142
+ return Ie(() => {
22138
22143
  if (e != null)
22139
22144
  return u2++, u2;
22140
22145
  }, [e]);
@@ -22356,13 +22361,13 @@ function oI(e) {
22356
22361
  droppableRects: c,
22357
22362
  over: d,
22358
22363
  measureDroppableContainers: u
22359
- } = If(), h = Ca(Nf, n), y = s.rect !== null, p = Ee(() => a.map((S) => typeof S == "object" && "id" in S ? S.id : S), [a]), m = i != null, g = i ? p.indexOf(i.id) : -1, v = d ? p.indexOf(d.id) : -1, x = ye(p), M = !QE(p, x.current), w = v !== -1 && g === -1 || M, C = eI(r);
22364
+ } = If(), h = Ca(Nf, n), y = s.rect !== null, p = Ie(() => a.map((S) => typeof S == "object" && "id" in S ? S.id : S), [a]), m = i != null, g = i ? p.indexOf(i.id) : -1, v = d ? p.indexOf(d.id) : -1, x = ye(p), M = !QE(p, x.current), w = v !== -1 && g === -1 || M, C = eI(r);
22360
22365
  It(() => {
22361
22366
  M && m && u(p);
22362
22367
  }, [M, p, m, u]), xe(() => {
22363
22368
  x.current = p;
22364
22369
  }, [p]);
22365
- const A = Ee(
22370
+ const A = Ie(
22366
22371
  () => ({
22367
22372
  activeIndex: g,
22368
22373
  containerId: h,
@@ -22462,14 +22467,14 @@ function hI(e) {
22462
22467
  overIndex: v,
22463
22468
  useDragOverlay: x,
22464
22469
  strategy: M
22465
- } = mt(_f), w = pI(a, p), C = u.indexOf(i), A = Ee(() => ({
22470
+ } = mt(_f), w = pI(a, p), C = u.indexOf(i), A = Ie(() => ({
22466
22471
  sortable: {
22467
22472
  containerId: h,
22468
22473
  index: C,
22469
22474
  items: u
22470
22475
  },
22471
22476
  ...o
22472
- }), [h, o, C, u]), S = Ee(() => u.slice(u.indexOf(i)), [u, i]), {
22477
+ }), [h, o, C, u]), S = Ie(() => u.slice(u.indexOf(i)), [u, i]), {
22473
22478
  rect: E,
22474
22479
  node: P,
22475
22480
  isOver: N,
@@ -22512,12 +22517,12 @@ function hI(e) {
22512
22517
  items: u,
22513
22518
  activeIndex: y,
22514
22519
  overIndex: v
22515
- }) : C, me = T?.id, ie = ye({
22516
- activeId: me,
22520
+ }) : C, fe = T?.id, ie = ye({
22521
+ activeId: fe,
22517
22522
  items: u,
22518
22523
  newIndex: oe,
22519
22524
  containerId: h
22520
- }), fe = u !== ie.current.items, ke = t({
22525
+ }), ve = u !== ie.current.items, ke = t({
22521
22526
  active: T,
22522
22527
  containerId: h,
22523
22528
  isDragging: j,
@@ -22530,7 +22535,7 @@ function hI(e) {
22530
22535
  previousContainerId: ie.current.containerId,
22531
22536
  transition: d,
22532
22537
  wasDragging: ie.current.activeId != null
22533
- }), Te = uI({
22538
+ }), be = uI({
22534
22539
  disabled: !ke,
22535
22540
  index: C,
22536
22541
  node: P,
@@ -22539,17 +22544,17 @@ function hI(e) {
22539
22544
  return xe(() => {
22540
22545
  re && ie.current.newIndex !== oe && (ie.current.newIndex = oe), h !== ie.current.containerId && (ie.current.containerId = h), u !== ie.current.items && (ie.current.items = u);
22541
22546
  }, [re, oe, h, u]), xe(() => {
22542
- if (me === ie.current.activeId)
22547
+ if (fe === ie.current.activeId)
22543
22548
  return;
22544
- if (me != null && ie.current.activeId == null) {
22545
- ie.current.activeId = me;
22549
+ if (fe != null && ie.current.activeId == null) {
22550
+ ie.current.activeId = fe;
22546
22551
  return;
22547
22552
  }
22548
22553
  const tt = setTimeout(() => {
22549
- ie.current.activeId = me;
22554
+ ie.current.activeId = fe;
22550
22555
  }, 50);
22551
22556
  return () => clearTimeout(tt);
22552
- }, [me]), {
22557
+ }, [fe]), {
22553
22558
  active: T,
22554
22559
  activeIndex: y,
22555
22560
  attributes: V,
@@ -22569,14 +22574,14 @@ function hI(e) {
22569
22574
  setActivatorNodeRef: Z,
22570
22575
  setDroppableNodeRef: R,
22571
22576
  setDraggableNodeRef: F,
22572
- transform: Te ?? J,
22573
- transition: ze()
22577
+ transform: be ?? J,
22578
+ transition: De()
22574
22579
  };
22575
- function ze() {
22580
+ function De() {
22576
22581
  if (
22577
22582
  // Temporarily disable transitions for a single frame to set up derived transforms
22578
- Te || // Or to prevent items jumping to back to their "new" position when items change
22579
- fe && ie.current.newIndex === C
22583
+ be || // Or to prevent items jumping to back to their "new" position when items change
22584
+ ve && ie.current.newIndex === C
22580
22585
  )
22581
22586
  return cI;
22582
22587
  if (!(he && !Ci(L) || !d) && (re || ke))
@@ -22597,7 +22602,7 @@ function pI(e, t) {
22597
22602
  droppable: (a = e?.droppable) != null ? a : t.droppable
22598
22603
  };
22599
22604
  }
22600
- Ce.Down, Ce.Right, Ce.Up, Ce.Left;
22605
+ Se.Down, Se.Right, Se.Up, Se.Left;
22601
22606
  const yI = /* @__PURE__ */ new Set([
22602
22607
  "collisionDetection",
22603
22608
  "onDragStartId",
@@ -22710,7 +22715,7 @@ function EI() {
22710
22715
  }
22711
22716
  function II() {
22712
22717
  const e = O(function({ nodeId: n, context: a, className: o }) {
22713
- const r = z(a.store, n), i = r?.props?.items, s = Ee(() => qt(i) ?? [], [i]), [c, d] = Me(s), u = ye(s);
22718
+ const r = z(a.store, n), i = r?.props?.items, s = Ie(() => qt(i) ?? [], [i]), [c, d] = Me(s), u = ye(s);
22714
22719
  if (xe(() => {
22715
22720
  const C = s.join(","), A = u.current.join(",");
22716
22721
  C !== A && (u.current = s, d(s));
@@ -22960,7 +22965,7 @@ class Fn {
22960
22965
  this.writeFixedField(t, 2, () => this.buffer.writeByte(n ? 1 : 0));
22961
22966
  }
22962
22967
  writeGuidField(t, n) {
22963
- const a = n instanceof De ? n.asBytes() : n;
22968
+ const a = n instanceof Le ? n.asBytes() : n;
22964
22969
  if (a.length !== 16)
22965
22970
  throw new Error("Guid payload must be 16 bytes");
22966
22971
  this.writeFixedField(t, 14, () => this.buffer.writeBytes(a));
@@ -23056,7 +23061,7 @@ class Ai {
23056
23061
  14
23057
23062
  /* Guid */
23058
23063
  ), this.count++;
23059
- const n = t instanceof De ? t.asBytes() : t;
23064
+ const n = t instanceof Le ? t.asBytes() : t;
23060
23065
  if (n.length !== 16)
23061
23066
  throw new Error("Guid payload must be 16 bytes");
23062
23067
  this.payload.writeBytes(n);
@@ -23189,7 +23194,7 @@ class VI {
23189
23194
  14
23190
23195
  /* Guid */
23191
23196
  );
23192
- const n = t instanceof De ? t.asBytes() : t;
23197
+ const n = t instanceof Le ? t.asBytes() : t;
23193
23198
  if (n.length !== 16)
23194
23199
  throw new Error("Guid payload must be 16 bytes");
23195
23200
  this.payload.writeBytes(n), this.keyWritten = !0;
@@ -23255,7 +23260,7 @@ class VI {
23255
23260
  14
23256
23261
  /* Guid */
23257
23262
  );
23258
- const n = t instanceof De ? t.asBytes() : t;
23263
+ const n = t instanceof Le ? t.asBytes() : t;
23259
23264
  if (n.length !== 16)
23260
23265
  throw new Error("Guid payload must be 16 bytes");
23261
23266
  this.payload.writeBytes(n), this.valueWritten = !0;
@@ -23430,7 +23435,7 @@ class Jt {
23430
23435
  return this.ensureType(
23431
23436
  14
23432
23437
  /* Guid */
23433
- ), De.fromBytes(this.payload);
23438
+ ), Le.fromBytes(this.payload);
23434
23439
  }
23435
23440
  asObject() {
23436
23441
  return this.ensureType(
@@ -23626,7 +23631,7 @@ class FI {
23626
23631
  this.key = t, this.value = n;
23627
23632
  }
23628
23633
  }
23629
- class De {
23634
+ class Le {
23630
23635
  constructor(t) {
23631
23636
  this.bytes = t;
23632
23637
  }
@@ -23636,19 +23641,19 @@ class De {
23636
23641
  const n = t.replace(/-/g, "");
23637
23642
  if (n.length !== 32)
23638
23643
  throw new Error("Guid string must be 32 hex characters");
23639
- const a = new Uint8Array(16), o = De.parseHexSlice(n, 0, 8), r = De.parseHexSlice(n, 8, 4), i = De.parseHexSlice(n, 12, 4);
23640
- De.writeUInt32LE(a, 0, o), De.writeUInt16LE(a, 4, r), De.writeUInt16LE(a, 6, i);
23644
+ const a = new Uint8Array(16), o = Le.parseHexSlice(n, 0, 8), r = Le.parseHexSlice(n, 8, 4), i = Le.parseHexSlice(n, 12, 4);
23645
+ Le.writeUInt32LE(a, 0, o), Le.writeUInt16LE(a, 4, r), Le.writeUInt16LE(a, 6, i);
23641
23646
  for (let s = 0; s < 8; s++)
23642
- a[8 + s] = De.parseHexSlice(n, 16 + s * 2, 2);
23643
- return new De(a);
23647
+ a[8 + s] = Le.parseHexSlice(n, 16 + s * 2, 2);
23648
+ return new Le(a);
23644
23649
  }
23645
23650
  static fromBytes(t) {
23646
23651
  if (t.length !== 16)
23647
23652
  throw new Error("Guid byte array must be 16 bytes");
23648
- return new De(Uint8Array.from(t));
23653
+ return new Le(Uint8Array.from(t));
23649
23654
  }
23650
23655
  static createZero() {
23651
- return new De(new Uint8Array(16));
23656
+ return new Le(new Uint8Array(16));
23652
23657
  }
23653
23658
  static createRandom() {
23654
23659
  const t = new Uint8Array(16), n = globalThis.crypto;
@@ -23657,14 +23662,14 @@ class De {
23657
23662
  else
23658
23663
  for (let a = 0; a < t.length; a++)
23659
23664
  t[a] = Math.floor(Math.random() * 256);
23660
- return t[6] = t[6] & 15 | 64, t[8] = t[8] & 63 | 128, new De(t);
23665
+ return t[6] = t[6] & 15 | 64, t[8] = t[8] & 63 | 128, new Le(t);
23661
23666
  }
23662
23667
  toString() {
23663
23668
  const t = this.bytes;
23664
23669
  return [
23665
- De.toHex(De.readUInt32LE(t, 0), 8),
23666
- De.toHex(De.readUInt16LE(t, 4), 4),
23667
- De.toHex(De.readUInt16LE(t, 6), 4),
23670
+ Le.toHex(Le.readUInt32LE(t, 0), 8),
23671
+ Le.toHex(Le.readUInt16LE(t, 4), 4),
23672
+ Le.toHex(Le.readUInt16LE(t, 6), 4),
23668
23673
  h2(t.subarray(8, 10)),
23669
23674
  h2(t.subarray(10, 16))
23670
23675
  ].join("-");
@@ -24164,7 +24169,7 @@ function FT() {
24164
24169
  context: a,
24165
24170
  className: o
24166
24171
  }) {
24167
- const r = z(a.store, n), i = ye(null), [s, c] = Me(!1), d = _(r?.props?.uploadPath), u = qt(r?.props?.accept), h = B(r?.props?.multiple) ?? !1, y = ae(r?.props?.maxFileSize), p = B(r?.props?.disabled) ?? !1, m = B(r?.props?.allowPaste) ?? !0, g = ee(r?.props?.onFileSelectedId), v = ee(r?.props?.onUploadStartedId), x = ee(r?.props?.onUploadProgressId), M = ee(r?.props?.onUploadCompleteId), w = ee(r?.props?.onUploadErrorId), C = Ee(
24172
+ const r = z(a.store, n), i = ye(null), [s, c] = Me(!1), d = _(r?.props?.uploadPath), u = qt(r?.props?.accept), h = B(r?.props?.multiple) ?? !1, y = ae(r?.props?.maxFileSize), p = B(r?.props?.disabled) ?? !1, m = B(r?.props?.allowPaste) ?? !0, g = ee(r?.props?.onFileSelectedId), v = ee(r?.props?.onUploadStartedId), x = ee(r?.props?.onUploadProgressId), M = ee(r?.props?.onUploadCompleteId), w = ee(r?.props?.onUploadErrorId), C = Ie(
24168
24173
  () => ({
24169
24174
  onFileSelectedId: g,
24170
24175
  onUploadStartedId: v,
@@ -24287,7 +24292,7 @@ function HT() {
24287
24292
  context: a,
24288
24293
  className: o
24289
24294
  }) {
24290
- const r = z(a.store, n), [i, s] = Me(!1), c = _(r?.props?.uploadPath), d = qt(r?.props?.accept), u = B(r?.props?.multiple) ?? !1, h = ae(r?.props?.maxFileSize), y = B(r?.props?.disabled) ?? !1, p = B(r?.props?.allowPaste) ?? !0, m = H(r?.props?.activeStyleIds), g = ee(r?.props?.onDragActiveChangeId), v = ee(r?.props?.onFileSelectedId), x = ee(r?.props?.onUploadStartedId), M = ee(r?.props?.onUploadProgressId), w = ee(r?.props?.onUploadCompleteId), C = ee(r?.props?.onUploadErrorId), A = Ee(
24295
+ const r = z(a.store, n), [i, s] = Me(!1), c = _(r?.props?.uploadPath), d = qt(r?.props?.accept), u = B(r?.props?.multiple) ?? !1, h = ae(r?.props?.maxFileSize), y = B(r?.props?.disabled) ?? !1, p = B(r?.props?.allowPaste) ?? !0, m = H(r?.props?.activeStyleIds), g = ee(r?.props?.onDragActiveChangeId), v = ee(r?.props?.onFileSelectedId), x = ee(r?.props?.onUploadStartedId), M = ee(r?.props?.onUploadProgressId), w = ee(r?.props?.onUploadCompleteId), C = ee(r?.props?.onUploadErrorId), A = Ie(
24291
24296
  () => ({
24292
24297
  onFileSelectedId: v,
24293
24298
  onUploadStartedId: x,
@@ -24615,7 +24620,7 @@ var tP = [
24615
24620
  return a.displayName = `Primitive.${t}`, { ...e, [t]: a };
24616
24621
  }, {}), rP = "Portal", Zf = f.forwardRef((e, t) => {
24617
24622
  const { container: n, ...a } = e, [o, r] = f.useState(!1);
24618
- Se(() => r(!0), []);
24623
+ Re(() => r(!0), []);
24619
24624
  const i = n || o && globalThis?.document?.body;
24620
24625
  return i ? gn.createPortal(/* @__PURE__ */ k.jsx(nP.div, { ...a, ref: t }), i) : null;
24621
24626
  });
@@ -24924,7 +24929,7 @@ function LP() {
24924
24929
  }
24925
24930
  function jP() {
24926
24931
  const e = O(function({ nodeId: n, context: a, className: o }) {
24927
- const r = z(a.store, n), i = r ? _(r.props?.src) : void 0, s = Ee(() => {
24932
+ const r = z(a.store, n), i = r ? _(r.props?.src) : void 0, s = Ie(() => {
24928
24933
  if (!i?.startsWith("payload:"))
24929
24934
  return i;
24930
24935
  const y = i.slice(8), p = a.getPayload(y);
@@ -25014,7 +25019,7 @@ var FP = ek, Hn = "NavigationMenu", [Wl, tk, HP] = rn(Hn), [t1, qP, BP] = rn(Hn)
25014
25019
  orientation: c = "horizontal",
25015
25020
  dir: d,
25016
25021
  ...u
25017
- } = e, [h, y] = f.useState(null), p = se(t, (N) => y(N)), m = vt(d), g = f.useRef(0), v = f.useRef(0), x = f.useRef(0), [M, w] = f.useState(!0), [C, A] = Le({
25022
+ } = e, [h, y] = f.useState(null), p = se(t, (N) => y(N)), m = vt(d), g = f.useRef(0), v = f.useRef(0), x = f.useRef(0), [M, w] = f.useState(!0), [C, A] = je({
25018
25023
  prop: a,
25019
25024
  onChange: (N) => {
25020
25025
  const R = N !== "", T = s > 0;
@@ -25087,7 +25092,7 @@ var n1 = "NavigationMenuSub", WP = f.forwardRef(
25087
25092
  defaultValue: r,
25088
25093
  orientation: i = "horizontal",
25089
25094
  ...s
25090
- } = e, c = wt(n1, n), [d, u] = Le({
25095
+ } = e, c = wt(n1, n), [d, u] = je({
25091
25096
  prop: a,
25092
25097
  onChange: o,
25093
25098
  defaultProp: r ?? "",
@@ -25135,19 +25140,19 @@ var rk = (e) => {
25135
25140
  rootNavigationMenu: a,
25136
25141
  value: s,
25137
25142
  previousValue: br(s),
25138
- baseId: je(),
25143
+ baseId: Oe(),
25139
25144
  dir: o,
25140
25145
  orientation: r,
25141
25146
  viewport: m,
25142
25147
  onViewportChange: g,
25143
25148
  indicatorTrack: M,
25144
25149
  onIndicatorTrackChange: w,
25145
- onTriggerEnter: Ae(u),
25146
- onTriggerLeave: Ae(h),
25147
- onContentEnter: Ae(y),
25148
- onContentLeave: Ae(p),
25149
- onItemSelect: Ae(c),
25150
- onItemDismiss: Ae(d),
25150
+ onTriggerEnter: Ee(u),
25151
+ onTriggerLeave: Ee(h),
25152
+ onContentEnter: Ee(y),
25153
+ onContentLeave: Ee(p),
25154
+ onItemSelect: Ee(c),
25155
+ onItemDismiss: Ee(d),
25151
25156
  onViewportContentChange: f.useCallback((C, A) => {
25152
25157
  x((S) => (S.set(C, A), new Map(S)));
25153
25158
  }, []),
@@ -25166,7 +25171,7 @@ var rk = (e) => {
25166
25171
  ok.displayName = ak;
25167
25172
  var ik = "NavigationMenuItem", [KP, sk] = Kl(ik), lk = f.forwardRef(
25168
25173
  (e, t) => {
25169
- const { __scopeNavigationMenu: n, value: a, ...o } = e, r = je(), i = a || r || "LEGACY_REACT_AUTO_VALUE", s = f.useRef(null), c = f.useRef(null), d = f.useRef(null), u = f.useRef(() => {
25174
+ const { __scopeNavigationMenu: n, value: a, ...o } = e, r = Oe(), i = a || r || "LEGACY_REACT_AUTO_VALUE", s = f.useRef(null), c = f.useRef(null), d = f.useRef(null), u = f.useRef(() => {
25170
25175
  }), h = f.useRef(!1), y = f.useCallback((m = "start") => {
25171
25176
  if (s.current) {
25172
25177
  u.current();
@@ -25363,12 +25368,12 @@ var YP = f.forwardRef((e, t) => {
25363
25368
  hk.displayName = pr;
25364
25369
  var XP = f.forwardRef((e, t) => {
25365
25370
  const n = wt(pr, e.__scopeNavigationMenu), { onViewportContentChange: a, onViewportContentRemove: o } = n;
25366
- return Se(() => {
25371
+ return Re(() => {
25367
25372
  a(e.value, {
25368
25373
  ref: t,
25369
25374
  ...e
25370
25375
  });
25371
- }, [e, t, a]), Se(() => () => o(e.value), [e.value, o]), null;
25376
+ }, [e, t, a]), Re(() => () => o(e.value), [e.value, o]), null;
25372
25377
  }), io = "navigationMenu.rootContentDismiss", pk = f.forwardRef((e, t) => {
25373
25378
  const {
25374
25379
  __scopeNavigationMenu: n,
@@ -25535,8 +25540,8 @@ function tN(e) {
25535
25540
  };
25536
25541
  }
25537
25542
  function o1(e, t) {
25538
- const n = Ae(t);
25539
- Se(() => {
25543
+ const n = Ee(t);
25544
+ Re(() => {
25540
25545
  let a = 0;
25541
25546
  if (e) {
25542
25547
  const o = new ResizeObserver(() => {
@@ -25571,7 +25576,7 @@ var nN = nk, rN = ok, aN = lk, oN = ck, iN = dk, sN = uk, lN = hk, cN = yk, i1 =
25571
25576
  Gt,
25572
25577
  xt
25573
25578
  ]), Ia = Gt(), xk = xt(), [Mk, Bn] = qn(Ea), [mN, Ta] = qn(Ea), wk = (e) => {
25574
- const { __scopeMenu: t, open: n = !1, children: a, dir: o, onOpenChange: r, modal: i = !0 } = e, s = Ia(t), [c, d] = f.useState(null), u = f.useRef(!1), h = Ae(r), y = vt(o);
25579
+ const { __scopeMenu: t, open: n = !1, children: a, dir: o, onOpenChange: r, modal: i = !0 } = e, s = Ia(t), [c, d] = f.useState(null), u = f.useRef(!1), h = Ee(r), y = vt(o);
25575
25580
  return f.useEffect(() => {
25576
25581
  const p = () => {
25577
25582
  u.current = !0, document.addEventListener("pointerdown", m, { capture: !0, once: !0 }), document.addEventListener("pointermove", m, { capture: !0, once: !0 });
@@ -25894,7 +25899,7 @@ var Ek = "MenuRadioGroup", [AN, EN] = qn(
25894
25899
  } }
25895
25900
  ), Ik = f.forwardRef(
25896
25901
  (e, t) => {
25897
- const { value: n, onValueChange: a, ...o } = e, r = Ae(a);
25902
+ const { value: n, onValueChange: a, ...o } = e, r = Ee(a);
25898
25903
  return /* @__PURE__ */ k.jsx(AN, { scope: e.__scopeMenu, value: n, onValueChange: r, children: /* @__PURE__ */ k.jsx(nc, { ...o, ref: t }) });
25899
25904
  }
25900
25905
  );
@@ -25966,7 +25971,7 @@ var PN = "MenuArrow", Lk = f.forwardRef(
25966
25971
  );
25967
25972
  Lk.displayName = PN;
25968
25973
  var ac = "MenuSub", [NN, jk] = qn(ac), Ok = (e) => {
25969
- const { __scopeMenu: t, children: n, open: a = !1, onOpenChange: o } = e, r = Bn(ac, t), i = Ia(t), [s, c] = f.useState(null), [d, u] = f.useState(null), h = Ae(o);
25974
+ const { __scopeMenu: t, children: n, open: a = !1, onOpenChange: o } = e, r = Bn(ac, t), i = Ia(t), [s, c] = f.useState(null), [d, u] = f.useState(null), h = Ee(o);
25970
25975
  return f.useEffect(() => (r.open === !1 && h(!1), () => h(!1)), [r.open, h]), /* @__PURE__ */ k.jsx(gr, { ...i, children: /* @__PURE__ */ k.jsx(
25971
25976
  Mk,
25972
25977
  {
@@ -25979,8 +25984,8 @@ var ac = "MenuSub", [NN, jk] = qn(ac), Ok = (e) => {
25979
25984
  NN,
25980
25985
  {
25981
25986
  scope: t,
25982
- contentId: je(),
25983
- triggerId: je(),
25987
+ contentId: Oe(),
25988
+ triggerId: Oe(),
25984
25989
  trigger: s,
25985
25990
  onTriggerChange: c,
25986
25991
  children: n
@@ -26148,7 +26153,7 @@ var VN = wk, zN = Ql, FN = Ck, HN = nc, qN = Sk, BN = Ii, UN = Ak, $N = Ik, GN =
26148
26153
  loop: i = !0,
26149
26154
  dir: s,
26150
26155
  ...c
26151
- } = e, d = vt(s), u = Bk(n), [h, y] = Le({
26156
+ } = e, d = vt(s), u = Bk(n), [h, y] = je({
26152
26157
  prop: a,
26153
26158
  onChange: o,
26154
26159
  defaultProp: r ?? "",
@@ -26193,7 +26198,7 @@ var VN = wk, zN = Ql, FN = Ck, HN = nc, qN = Sk, BN = Ii, UN = Ak, $N = Ik, GN =
26193
26198
  );
26194
26199
  Uk.displayName = Pa;
26195
26200
  var sc = "MenubarMenu", [n_, $k] = qk(sc), Gk = (e) => {
26196
- const { __scopeMenubar: t, value: n, ...a } = e, o = je(), r = n || o || "LEGACY_REACT_AUTO_VALUE", i = ic(sc, t), s = Xe(t), c = f.useRef(null), d = f.useRef(!1), u = i.value === r;
26201
+ const { __scopeMenubar: t, value: n, ...a } = e, o = Oe(), r = n || o || "LEGACY_REACT_AUTO_VALUE", i = ic(sc, t), s = Xe(t), c = f.useRef(null), d = f.useRef(!1), u = i.value === r;
26197
26202
  return f.useEffect(() => {
26198
26203
  u || (d.current = !1);
26199
26204
  }, [u]), /* @__PURE__ */ k.jsx(
@@ -26201,9 +26206,9 @@ var sc = "MenubarMenu", [n_, $k] = qk(sc), Gk = (e) => {
26201
26206
  {
26202
26207
  scope: t,
26203
26208
  value: r,
26204
- triggerId: je(),
26209
+ triggerId: Oe(),
26205
26210
  triggerRef: c,
26206
- contentId: je(),
26211
+ contentId: Oe(),
26207
26212
  wasKeyboardTriggerOpenRef: d,
26208
26213
  children: /* @__PURE__ */ k.jsx(
26209
26214
  VN,
@@ -26382,7 +26387,7 @@ var p_ = "MenubarArrow", y_ = f.forwardRef(
26382
26387
  );
26383
26388
  y_.displayName = p_;
26384
26389
  var t4 = "MenubarSub", n4 = (e) => {
26385
- const { __scopeMenubar: t, children: n, open: a, onOpenChange: o, defaultOpen: r } = e, i = Xe(t), [s, c] = Le({
26390
+ const { __scopeMenubar: t, children: n, open: a, onOpenChange: o, defaultOpen: r } = e, i = Xe(t), [s, c] = je({
26386
26391
  prop: a,
26387
26392
  defaultProp: r ?? !1,
26388
26393
  onChange: o,
@@ -27337,7 +27342,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/alert-
27337
27342
  }, [t, e]), null;
27338
27343
  }, g2 = m4, I4 = g4, T4 = v4, P4 = x4, N4 = M4, _D = R4, DD = E4, LD = b4, jD = S4, OD = "Portal", _4 = f.forwardRef((e, t) => {
27339
27344
  const { container: n, ...a } = e, [o, r] = f.useState(!1);
27340
- Se(() => r(!0), []);
27345
+ Re(() => r(!0), []);
27341
27346
  const i = n || o && globalThis?.document?.body;
27342
27347
  return i ? gn.createPortal(/* @__PURE__ */ k.jsx(K.div, { ...a, ref: t }), i) : null;
27343
27348
  });
@@ -27353,7 +27358,7 @@ var ms, Ti = "HoverCard", [D4] = _e(Ti, [
27353
27358
  onOpenChange: r,
27354
27359
  openDelay: i = 700,
27355
27360
  closeDelay: s = 300
27356
- } = e, c = Pi(t), d = f.useRef(0), u = f.useRef(0), h = f.useRef(!1), y = f.useRef(!1), [p, m] = Le({
27361
+ } = e, c = Pi(t), d = f.useRef(0), u = f.useRef(0), h = f.useRef(!1), y = f.useRef(!1), [p, m] = je({
27357
27362
  prop: a,
27358
27363
  defaultProp: o ?? !1,
27359
27364
  onChange: r,
@@ -27507,7 +27512,7 @@ function BD(e) {
27507
27512
  }
27508
27513
  var v2 = L4, H4 = O4, q4 = V4, B4 = z4, UD = F4, $D = "Portal", U4 = f.forwardRef((e, t) => {
27509
27514
  const { container: n, ...a } = e, [o, r] = f.useState(!1);
27510
- Se(() => r(!0), []);
27515
+ Re(() => r(!0), []);
27511
27516
  const i = n || o && globalThis?.document?.body;
27512
27517
  return i ? gn.createPortal(/* @__PURE__ */ k.jsx(K.div, { ...a, ref: t }), i) : null;
27513
27518
  });
@@ -27690,7 +27695,7 @@ var Z4 = "ToastFocusProxy", h1 = f.forwardRef(
27690
27695
  h1.displayName = Z4;
27691
27696
  var Na = "Toast", JD = "toast.swipeStart", QD = "toast.swipeMove", eL = "toast.swipeCancel", tL = "toast.swipeEnd", Y4 = f.forwardRef(
27692
27697
  (e, t) => {
27693
- const { forceMount: n, open: a, defaultOpen: o, onOpenChange: r, ...i } = e, [s, c] = Le({
27698
+ const { forceMount: n, open: a, defaultOpen: o, onOpenChange: r, ...i } = e, [s, c] = je({
27694
27699
  prop: a,
27695
27700
  defaultProp: o ?? !0,
27696
27701
  onChange: r,
@@ -27703,8 +27708,8 @@ var Na = "Toast", JD = "toast.swipeStart", QD = "toast.swipeMove", eL = "toast.s
27703
27708
  ...i,
27704
27709
  ref: t,
27705
27710
  onClose: () => c(!1),
27706
- onPause: Ae(e.onPause),
27707
- onResume: Ae(e.onResume),
27711
+ onPause: Ee(e.onPause),
27712
+ onResume: Ee(e.onResume),
27708
27713
  onSwipeStart: U(e.onSwipeStart, (d) => {
27709
27714
  d.currentTarget.setAttribute("data-swipe", "start");
27710
27715
  }),
@@ -27743,7 +27748,7 @@ var [nL, rL] = $4(Na, {
27743
27748
  onSwipeCancel: y,
27744
27749
  onSwipeEnd: p,
27745
27750
  ...m
27746
- } = e, g = _i(Na, n), [v, x] = f.useState(null), M = se(t, (V) => x(V)), w = f.useRef(null), C = f.useRef(null), A = o || g.duration, S = f.useRef(0), E = f.useRef(A), P = f.useRef(0), { onToastAdd: N, onToastRemove: R } = g, T = Ae(() => {
27751
+ } = e, g = _i(Na, n), [v, x] = f.useState(null), M = se(t, (V) => x(V)), w = f.useRef(null), C = f.useRef(null), A = o || g.duration, S = f.useRef(0), E = f.useRef(A), P = f.useRef(0), { onToastAdd: N, onToastRemove: R } = g, T = Ee(() => {
27747
27752
  v?.contains(document.activeElement) && g.viewport?.focus(), i();
27748
27753
  }), L = f.useCallback(
27749
27754
  (V) => {
@@ -27920,8 +27925,8 @@ var x2 = (e, t, n = 0) => {
27920
27925
  };
27921
27926
  function lL(e = () => {
27922
27927
  }) {
27923
- const t = Ae(e);
27924
- Se(() => {
27928
+ const t = Ee(e);
27929
+ Re(() => {
27925
27930
  let n = 0, a = 0;
27926
27931
  return n = window.requestAnimationFrame(() => a = window.requestAnimationFrame(t)), () => {
27927
27932
  window.cancelAnimationFrame(n), window.cancelAnimationFrame(a);