randmarcomps 1.176.0 → 1.177.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -76,11 +76,11 @@ var jt = React.createContext({}), Lt = React.forwardRef((e, t) => {
76
76
  se(null), fe(null);
77
77
  return;
78
78
  }
79
- let Ce = oe.selectionStart, Te = oe.selectionEnd, Be = oe.selectionDirection, Me = oe.maxLength, Fe = oe.value, He = ee.current.prev, Le = -1, Ne = -1, qe;
80
- if (Fe.length !== 0 && Ce !== null && Te !== null) {
81
- let Re = Ce === Te, ut = Ce === Fe.length && Fe.length < Me;
79
+ let we = oe.selectionStart, Ae = oe.selectionEnd, Be = oe.selectionDirection, Me = oe.maxLength, Fe = oe.value, He = ee.current.prev, Le = -1, Ne = -1, qe;
80
+ if (Fe.length !== 0 && we !== null && Ae !== null) {
81
+ let Re = we === Ae, ut = we === Fe.length && Fe.length < Me;
82
82
  if (Re && !ut) {
83
- let Ze = Ce;
83
+ let Ze = we;
84
84
  if (Ze === 0) Le = 0, Ne = 1, qe = "forward";
85
85
  else if (Ze === Me) Le = Ze - 1, Ne = Ze, qe = "backward";
86
86
  else if (Me > 1 && Fe.length > 1) {
@@ -95,32 +95,32 @@ var jt = React.createContext({}), Lt = React.forwardRef((e, t) => {
95
95
  }
96
96
  Le !== -1 && Ne !== -1 && Le !== Ne && U.current.setSelectionRange(Le, Ne, qe);
97
97
  }
98
- let Ge = Le !== -1 ? Le : Ce, Je = Ne !== -1 ? Ne : Te, Xe = qe ?? Be;
98
+ let Ge = Le !== -1 ? Le : we, Je = Ne !== -1 ? Ne : Ae, Xe = qe ?? Be;
99
99
  se(Ge), fe(Je), ee.current.prev = [Ge, Je, Xe];
100
100
  }
101
101
  if (document.addEventListener("selectionchange", xe, { capture: !0 }), xe(), document.activeElement === oe && Z(!0), !document.getElementById("input-otp-style")) {
102
- let Ce = document.createElement("style");
103
- if (Ce.id = "input-otp-style", document.head.appendChild(Ce), Ce.sheet) {
104
- let Te = "background: transparent !important; color: transparent !important; border-color: transparent !important; opacity: 0 !important; box-shadow: none !important; -webkit-box-shadow: none !important; -webkit-text-fill-color: transparent !important;";
105
- $(Ce.sheet, "[data-input-otp]::selection { background: transparent !important; color: transparent !important; }"), $(Ce.sheet, `[data-input-otp]:autofill { ${Te} }`), $(Ce.sheet, `[data-input-otp]:-webkit-autofill { ${Te} }`), $(Ce.sheet, "@supports (-webkit-touch-callout: none) { [data-input-otp] { letter-spacing: -.6em !important; font-weight: 100 !important; font-stretch: ultra-condensed; font-optical-sizing: none !important; left: -1px !important; right: 1px !important; } }"), $(Ce.sheet, "[data-input-otp] + * { pointer-events: all !important; }");
102
+ let we = document.createElement("style");
103
+ if (we.id = "input-otp-style", document.head.appendChild(we), we.sheet) {
104
+ let Ae = "background: transparent !important; color: transparent !important; border-color: transparent !important; opacity: 0 !important; box-shadow: none !important; -webkit-box-shadow: none !important; -webkit-text-fill-color: transparent !important;";
105
+ $(we.sheet, "[data-input-otp]::selection { background: transparent !important; color: transparent !important; }"), $(we.sheet, `[data-input-otp]:autofill { ${Ae} }`), $(we.sheet, `[data-input-otp]:-webkit-autofill { ${Ae} }`), $(we.sheet, "@supports (-webkit-touch-callout: none) { [data-input-otp] { letter-spacing: -.6em !important; font-weight: 100 !important; font-stretch: ultra-condensed; font-optical-sizing: none !important; left: -1px !important; right: 1px !important; } }"), $(we.sheet, "[data-input-otp] + * { pointer-events: all !important; }");
106
106
  }
107
107
  }
108
- let _e = () => {
108
+ let Se = () => {
109
109
  ye && ye.style.setProperty("--root-height", `${oe.clientHeight}px`);
110
110
  };
111
- _e();
112
- let we = new ResizeObserver(_e);
113
- return we.observe(oe), () => {
114
- document.removeEventListener("selectionchange", xe, { capture: !0 }), we.disconnect();
111
+ Se();
112
+ let Ee = new ResizeObserver(Se);
113
+ return Ee.observe(oe), () => {
114
+ document.removeEventListener("selectionchange", xe, { capture: !0 }), Ee.disconnect();
115
115
  };
116
116
  }, []);
117
117
  let [ie, W] = React.useState(!1), [Q, Z] = React.useState(!1), [ne, se] = React.useState(null), [ue, fe] = React.useState(null);
118
118
  React.useEffect(() => {
119
119
  ht(() => {
120
- var oe, ye, xe, _e;
120
+ var oe, ye, xe, Se;
121
121
  (oe = U.current) == null || oe.dispatchEvent(new Event("input"));
122
- let we = (ye = U.current) == null ? void 0 : ye.selectionStart, Ce = (xe = U.current) == null ? void 0 : xe.selectionEnd, Te = (_e = U.current) == null ? void 0 : _e.selectionDirection;
123
- we !== null && Ce !== null && (se(we), fe(Ce), ee.current.prev = [we, Ce, Te]);
122
+ let Ee = (ye = U.current) == null ? void 0 : ye.selectionStart, we = (xe = U.current) == null ? void 0 : xe.selectionEnd, Ae = (Se = U.current) == null ? void 0 : Se.selectionDirection;
123
+ Ee !== null && we !== null && (se(Ee), fe(we), ee.current.prev = [Ee, we, Ae]);
124
124
  });
125
125
  }, [j, Q]), React.useEffect(() => {
126
126
  q !== void 0 && j !== q && q.length < u && j.length === u && (g == null || g(j));
@@ -141,15 +141,15 @@ var jt = React.createContext({}), Lt = React.forwardRef((e, t) => {
141
141
  Z(!0);
142
142
  }, [u]), ge = React.useCallback((oe) => {
143
143
  var ye, xe;
144
- let _e = U.current;
145
- if (!_ && (!J.current.isIOS || !oe.clipboardData || !_e)) return;
146
- let we = oe.clipboardData.getData("text/plain"), Ce = _ ? _(we) : we;
144
+ let Se = U.current;
145
+ if (!_ && (!J.current.isIOS || !oe.clipboardData || !Se)) return;
146
+ let Ee = oe.clipboardData.getData("text/plain"), we = _ ? _(Ee) : Ee;
147
147
  oe.preventDefault();
148
- let Te = (ye = U.current) == null ? void 0 : ye.selectionStart, Be = (xe = U.current) == null ? void 0 : xe.selectionEnd, Me = (Te !== Be ? j.slice(0, Te) + Ce + j.slice(Be) : j.slice(0, Te) + Ce + j.slice(Te)).slice(0, u);
148
+ let Ae = (ye = U.current) == null ? void 0 : ye.selectionStart, Be = (xe = U.current) == null ? void 0 : xe.selectionEnd, Me = (Ae !== Be ? j.slice(0, Ae) + we + j.slice(Be) : j.slice(0, Ae) + we + j.slice(Ae)).slice(0, u);
149
149
  if (Me.length > 0 && H && !H.test(Me)) return;
150
- _e.value = Me, F(Me);
150
+ Se.value = Me, F(Me);
151
151
  let Fe = Math.min(Me.length, u - 1), He = Me.length;
152
- _e.setSelectionRange(Fe, He), se(Fe), fe(He);
152
+ Se.setSelectionRange(Fe, He), se(Fe), fe(He);
153
153
  }, [u, F, H, j]), he = React.useMemo(() => ({ position: "relative", cursor: I.disabled ? "default" : "text", userSelect: "none", WebkitUserSelect: "none", pointerEvents: "none" }), [I.disabled]), le = React.useMemo(() => ({ position: "absolute", inset: 0, width: de.willPushPWMBadge ? `calc(100% + ${de.PWM_BADGE_SPACE_WIDTH})` : "100%", clipPath: de.willPushPWMBadge ? `inset(0 ${de.PWM_BADGE_SPACE_WIDTH} 0 0)` : void 0, height: "100%", display: "flex", textAlign: d, opacity: "1", color: "transparent", pointerEvents: "all", background: "transparent", caretColor: "transparent", border: "0 solid transparent", outline: "0 solid transparent", boxShadow: "none", lineHeight: "1", letterSpacing: "-.5em", fontSize: "var(--root-height)", fontFamily: "monospace", fontVariantNumeric: "tabular-nums" }), [de.PWM_BADGE_SPACE_WIDTH, de.willPushPWMBadge, d]), pe = React.useMemo(() => React.createElement("input", bt(St({ autoComplete: I.autoComplete || "one-time-code" }, I), { "data-input-otp": !0, "data-input-otp-placeholder-shown": j.length === 0 || void 0, "data-input-otp-mss": ne, "data-input-otp-mse": ue, inputMode: m, pattern: H == null ? void 0 : H.source, "aria-placeholder": p, style: le, maxLength: u, value: j, ref: U, onPaste: (oe) => {
154
154
  var ye;
155
155
  ge(oe), (ye = I.onPaste) == null || ye.call(I, oe);
@@ -167,10 +167,10 @@ var jt = React.createContext({}), Lt = React.forwardRef((e, t) => {
167
167
  Z(!1), (ye = I.onBlur) == null || ye.call(I, oe);
168
168
  } })), [be, ce, ge, m, le, u, ue, ne, I, H == null ? void 0 : H.source, j]), ae = React.useMemo(() => ({ slots: Array.from({ length: u }).map((oe, ye) => {
169
169
  var xe;
170
- let _e = Q && ne !== null && ue !== null && (ne === ue && ye === ne || ye >= ne && ye < ue), we = j[ye] !== void 0 ? j[ye] : null, Ce = j[0] !== void 0 ? null : (xe = p == null ? void 0 : p[ye]) != null ? xe : null;
171
- return { char: we, placeholderChar: Ce, isActive: _e, hasFakeCaret: _e && we === null };
172
- }), isFocused: Q, isHovering: !I.disabled && ie }), [Q, ie, u, ue, ne, I.disabled, j]), Se = React.useMemo(() => E ? E(ae) : React.createElement(jt.Provider, { value: ae }, C), [C, ae, E]);
173
- return React.createElement(React.Fragment, null, T !== null && React.createElement("noscript", null, React.createElement("style", null, T)), React.createElement("div", { ref: G, "data-input-otp-container": !0, style: he, className: S }, Se, React.createElement("div", { style: { position: "absolute", inset: 0, pointerEvents: "none" } }, pe)));
170
+ let Se = Q && ne !== null && ue !== null && (ne === ue && ye === ne || ye >= ne && ye < ue), Ee = j[ye] !== void 0 ? j[ye] : null, we = j[0] !== void 0 ? null : (xe = p == null ? void 0 : p[ye]) != null ? xe : null;
171
+ return { char: Ee, placeholderChar: we, isActive: Se, hasFakeCaret: Se && Ee === null };
172
+ }), isFocused: Q, isHovering: !I.disabled && ie }), [Q, ie, u, ue, ne, I.disabled, j]), _e = React.useMemo(() => E ? E(ae) : React.createElement(jt.Provider, { value: ae }, C), [C, ae, E]);
173
+ return React.createElement(React.Fragment, null, T !== null && React.createElement("noscript", null, React.createElement("style", null, T)), React.createElement("div", { ref: G, "data-input-otp-container": !0, style: he, className: S }, _e, React.createElement("div", { style: { position: "absolute", inset: 0, pointerEvents: "none" } }, pe)));
174
174
  });
175
175
  Lt.displayName = "Input";
176
176
  function $(e, t) {
@@ -6454,7 +6454,7 @@ var CONTENT_NAME$5 = "PopperContent", [PopperContentProvider, useContentContext]
6454
6454
  updatePositionStrategy: S = "optimized",
6455
6455
  onPlaced: T,
6456
6456
  ...E
6457
- } = e, C = usePopperContext(CONTENT_NAME$5, n), [I, N] = React.useState(null), O = useComposedRefs(t, (Se) => N(Se)), [V, M] = React.useState(null), R = useSize(V), D = (R == null ? void 0 : R.width) ?? 0, L = (R == null ? void 0 : R.height) ?? 0, j = o + (u !== "center" ? "-" + u : ""), q = typeof g == "number" ? g : { top: 0, right: 0, bottom: 0, left: 0, ...g }, F = Array.isArray(m) ? m : [m], H = F.length > 0, U = {
6457
+ } = e, C = usePopperContext(CONTENT_NAME$5, n), [I, N] = React.useState(null), O = useComposedRefs(t, (_e) => N(_e)), [V, M] = React.useState(null), R = useSize(V), D = (R == null ? void 0 : R.width) ?? 0, L = (R == null ? void 0 : R.height) ?? 0, j = o + (u !== "center" ? "-" + u : ""), q = typeof g == "number" ? g : { top: 0, right: 0, bottom: 0, left: 0, ...g }, F = Array.isArray(m) ? m : [m], H = F.length > 0, U = {
6458
6458
  padding: q,
6459
6459
  boundary: F.filter(isNotNull),
6460
6460
  // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
@@ -6463,7 +6463,7 @@ var CONTENT_NAME$5 = "PopperContent", [PopperContentProvider, useContentContext]
6463
6463
  // default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
6464
6464
  strategy: "fixed",
6465
6465
  placement: j,
6466
- whileElementsMounted: (...Se) => autoUpdate(...Se, {
6466
+ whileElementsMounted: (..._e) => autoUpdate(..._e, {
6467
6467
  animationFrame: S === "always"
6468
6468
  }),
6469
6469
  elements: {
@@ -6480,9 +6480,9 @@ var CONTENT_NAME$5 = "PopperContent", [PopperContentProvider, useContentContext]
6480
6480
  p && flip({ ...U }),
6481
6481
  size({
6482
6482
  ...U,
6483
- apply: ({ elements: Se, rects: oe, availableWidth: ye, availableHeight: xe }) => {
6484
- const { width: _e, height: we } = oe.reference, Ce = Se.floating.style;
6485
- Ce.setProperty("--radix-popper-available-width", `${ye}px`), Ce.setProperty("--radix-popper-available-height", `${xe}px`), Ce.setProperty("--radix-popper-anchor-width", `${_e}px`), Ce.setProperty("--radix-popper-anchor-height", `${we}px`);
6483
+ apply: ({ elements: _e, rects: oe, availableWidth: ye, availableHeight: xe }) => {
6484
+ const { width: Se, height: Ee } = oe.reference, we = _e.floating.style;
6485
+ we.setProperty("--radix-popper-available-width", `${ye}px`), we.setProperty("--radix-popper-available-height", `${xe}px`), we.setProperty("--radix-popper-anchor-width", `${Se}px`), we.setProperty("--radix-popper-anchor-height", `${Ee}px`);
6486
6486
  }
6487
6487
  }),
6488
6488
  V && arrow({ element: V, padding: f }),
@@ -10267,15 +10267,15 @@ function requireReactIs_development$1() {
10267
10267
  case g:
10268
10268
  return xe;
10269
10269
  default:
10270
- var _e = xe && xe.$$typeof;
10271
- switch (_e) {
10270
+ var Se = xe && xe.$$typeof;
10271
+ switch (Se) {
10272
10272
  case f:
10273
10273
  case d:
10274
10274
  case p:
10275
10275
  case _:
10276
10276
  case b:
10277
10277
  case u:
10278
- return _e;
10278
+ return Se;
10279
10279
  default:
10280
10280
  return ye;
10281
10281
  }
@@ -10325,10 +10325,10 @@ function requireReactIs_development$1() {
10325
10325
  function ae(oe) {
10326
10326
  return M(oe) === m;
10327
10327
  }
10328
- function Se(oe) {
10328
+ function _e(oe) {
10329
10329
  return M(oe) === g;
10330
10330
  }
10331
- reactIs_development$1.ContextConsumer = R, reactIs_development$1.ContextProvider = D, reactIs_development$1.Element = L, reactIs_development$1.ForwardRef = j, reactIs_development$1.Fragment = q, reactIs_development$1.Lazy = F, reactIs_development$1.Memo = H, reactIs_development$1.Portal = U, reactIs_development$1.Profiler = G, reactIs_development$1.StrictMode = J, reactIs_development$1.Suspense = ee, reactIs_development$1.SuspenseList = ie, reactIs_development$1.isAsyncMode = Z, reactIs_development$1.isConcurrentMode = ne, reactIs_development$1.isContextConsumer = se, reactIs_development$1.isContextProvider = ue, reactIs_development$1.isElement = fe, reactIs_development$1.isForwardRef = de, reactIs_development$1.isFragment = be, reactIs_development$1.isLazy = ce, reactIs_development$1.isMemo = ge, reactIs_development$1.isPortal = he, reactIs_development$1.isProfiler = le, reactIs_development$1.isStrictMode = pe, reactIs_development$1.isSuspense = ae, reactIs_development$1.isSuspenseList = Se, reactIs_development$1.isValidElementType = V, reactIs_development$1.typeOf = M;
10331
+ reactIs_development$1.ContextConsumer = R, reactIs_development$1.ContextProvider = D, reactIs_development$1.Element = L, reactIs_development$1.ForwardRef = j, reactIs_development$1.Fragment = q, reactIs_development$1.Lazy = F, reactIs_development$1.Memo = H, reactIs_development$1.Portal = U, reactIs_development$1.Profiler = G, reactIs_development$1.StrictMode = J, reactIs_development$1.Suspense = ee, reactIs_development$1.SuspenseList = ie, reactIs_development$1.isAsyncMode = Z, reactIs_development$1.isConcurrentMode = ne, reactIs_development$1.isContextConsumer = se, reactIs_development$1.isContextProvider = ue, reactIs_development$1.isElement = fe, reactIs_development$1.isForwardRef = de, reactIs_development$1.isFragment = be, reactIs_development$1.isLazy = ce, reactIs_development$1.isMemo = ge, reactIs_development$1.isPortal = he, reactIs_development$1.isProfiler = le, reactIs_development$1.isStrictMode = pe, reactIs_development$1.isSuspense = ae, reactIs_development$1.isSuspenseList = _e, reactIs_development$1.isValidElementType = V, reactIs_development$1.typeOf = M;
10332
10332
  }()), reactIs_development$1;
10333
10333
  }
10334
10334
  var hasRequiredReactIs$1;
@@ -16557,16 +16557,16 @@ function formatLocale(e) {
16557
16557
  O.x = R(n, O), O.X = R(o, O), O.c = R(t, O), V.x = R(n, V), V.X = R(o, V), V.c = R(t, V);
16558
16558
  function R(he, le) {
16559
16559
  return function(pe) {
16560
- var ae = [], Se = -1, oe = 0, ye = he.length, xe, _e, we;
16561
- for (pe instanceof Date || (pe = /* @__PURE__ */ new Date(+pe)); ++Se < ye; )
16562
- he.charCodeAt(Se) === 37 && (ae.push(he.slice(oe, Se)), (_e = pads[xe = he.charAt(++Se)]) != null ? xe = he.charAt(++Se) : _e = xe === "e" ? " " : "0", (we = le[xe]) && (xe = we(pe, _e)), ae.push(xe), oe = Se + 1);
16563
- return ae.push(he.slice(oe, Se)), ae.join("");
16560
+ var ae = [], _e = -1, oe = 0, ye = he.length, xe, Se, Ee;
16561
+ for (pe instanceof Date || (pe = /* @__PURE__ */ new Date(+pe)); ++_e < ye; )
16562
+ he.charCodeAt(_e) === 37 && (ae.push(he.slice(oe, _e)), (Se = pads[xe = he.charAt(++_e)]) != null ? xe = he.charAt(++_e) : Se = xe === "e" ? " " : "0", (Ee = le[xe]) && (xe = Ee(pe, Se)), ae.push(xe), oe = _e + 1);
16563
+ return ae.push(he.slice(oe, _e)), ae.join("");
16564
16564
  };
16565
16565
  }
16566
16566
  function D(he, le) {
16567
16567
  return function(pe) {
16568
- var ae = newDate(1900, void 0, 1), Se = L(ae, he, pe += "", 0), oe, ye;
16569
- if (Se != pe.length) return null;
16568
+ var ae = newDate(1900, void 0, 1), _e = L(ae, he, pe += "", 0), oe, ye;
16569
+ if (_e != pe.length) return null;
16570
16570
  if ("Q" in ae) return new Date(ae.Q);
16571
16571
  if ("s" in ae) return new Date(ae.s * 1e3 + ("L" in ae ? ae.L : 0));
16572
16572
  if (le && !("Z" in ae) && (ae.Z = 0), "p" in ae && (ae.H = ae.H % 12 + ae.p * 12), ae.m === void 0 && (ae.m = "q" in ae ? ae.q : 0), "V" in ae) {
@@ -16577,10 +16577,10 @@ function formatLocale(e) {
16577
16577
  };
16578
16578
  }
16579
16579
  function L(he, le, pe, ae) {
16580
- for (var Se = 0, oe = le.length, ye = pe.length, xe, _e; Se < oe; ) {
16580
+ for (var _e = 0, oe = le.length, ye = pe.length, xe, Se; _e < oe; ) {
16581
16581
  if (ae >= ye) return -1;
16582
- if (xe = le.charCodeAt(Se++), xe === 37) {
16583
- if (xe = le.charAt(Se++), _e = M[xe in pads ? le.charAt(Se++) : xe], !_e || (ae = _e(he, pe, ae)) < 0) return -1;
16582
+ if (xe = le.charCodeAt(_e++), xe === 37) {
16583
+ if (xe = le.charAt(_e++), Se = M[xe in pads ? le.charAt(_e++) : xe], !Se || (ae = Se(he, pe, ae)) < 0) return -1;
16584
16584
  } else if (xe != pe.charCodeAt(ae++))
16585
16585
  return -1;
16586
16586
  }
@@ -19845,8 +19845,8 @@ function requireReactIs_development() {
19845
19845
  }
19846
19846
  function V(ae) {
19847
19847
  if (typeof ae == "object" && ae !== null) {
19848
- var Se = ae.$$typeof;
19849
- switch (Se) {
19848
+ var _e = ae.$$typeof;
19849
+ switch (_e) {
19850
19850
  case t:
19851
19851
  var oe = ae.type;
19852
19852
  switch (oe) {
@@ -19867,11 +19867,11 @@ function requireReactIs_development() {
19867
19867
  case d:
19868
19868
  return ye;
19869
19869
  default:
19870
- return Se;
19870
+ return _e;
19871
19871
  }
19872
19872
  }
19873
19873
  case n:
19874
- return Se;
19874
+ return _e;
19875
19875
  }
19876
19876
  }
19877
19877
  }
@@ -20096,11 +20096,11 @@ function requireFactoryWithTypeCheckers() {
20096
20096
  );
20097
20097
  throw ae.name = "Invariant Violation", ae;
20098
20098
  } else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
20099
- var Se = ge + ":" + ce;
20100
- !ne[Se] && // Avoid spamming the console because they are often not actionable except for lib authors
20099
+ var _e = ge + ":" + ce;
20100
+ !ne[_e] && // Avoid spamming the console because they are often not actionable except for lib authors
20101
20101
  se < 3 && (u(
20102
20102
  "You are manually calling a React.PropTypes validation function for the `" + le + "` prop on `" + ge + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
20103
- ), ne[Se] = !0, se++);
20103
+ ), ne[_e] = !0, se++);
20104
20104
  }
20105
20105
  }
20106
20106
  return be[ce] == null ? de ? be[ce] === null ? new E("The " + he + " `" + le + "` is marked as required " + ("in `" + ge + "`, but its value is `null`.")) : new E("The " + he + " `" + le + "` is marked as required in " + ("`" + ge + "`, but its value is `undefined`.")) : null : Z(be, ce, ge, he, le);
@@ -20185,8 +20185,8 @@ function requireFactoryWithTypeCheckers() {
20185
20185
  if (T(ce, Z[ge]))
20186
20186
  return null;
20187
20187
  var he = JSON.stringify(Z, function(pe, ae) {
20188
- var Se = ie(ae);
20189
- return Se === "symbol" ? String(ae) : ae;
20188
+ var _e = ie(ae);
20189
+ return _e === "symbol" ? String(ae) : ae;
20190
20190
  });
20191
20191
  return new E("Invalid " + de + " `" + be + "` of value `" + String(ce) + "` " + ("supplied to `" + fe + "`, expected one of " + he + "."));
20192
20192
  }
@@ -20226,8 +20226,8 @@ function requireFactoryWithTypeCheckers() {
20226
20226
  return null;
20227
20227
  ae.data && o(ae.data, "expectedType") && he.push(ae.data.expectedType);
20228
20228
  }
20229
- var Se = he.length > 0 ? ", expected one of type [" + he.join(", ") + "]" : "";
20230
- return new E("Invalid " + ce + " `" + ge + "` supplied to " + ("`" + be + "`" + Se + "."));
20229
+ var _e = he.length > 0 ? ", expected one of type [" + he.join(", ") + "]" : "";
20230
+ return new E("Invalid " + ce + " `" + ge + "` supplied to " + ("`" + be + "`" + _e + "."));
20231
20231
  }
20232
20232
  return C(ue);
20233
20233
  }
@@ -26671,35 +26671,35 @@ var getTooltipContent = function(t, n, o, l) {
26671
26671
  ).concat((Fe = Q == null || (He = Q.type) === null || He === void 0 ? void 0 : He.displayName) !== null && Fe !== void 0 ? Fe : "")) : invariant());
26672
26672
  var qe = Le[Ne];
26673
26673
  return _objectSpread(_objectSpread({}, Be), {}, _defineProperty(_defineProperty({}, Me.axisType, qe), "".concat(Me.axisType, "Ticks"), getTicksOfAxis(qe)));
26674
- }, ce), he = ge[ee], le = ge["".concat(ee, "Ticks")], pe = V && V[de] && V[de].hasStack && getStackedDataOfItem(Q, V[de].stackGroups), ae = getDisplayName(Q.type).indexOf("Bar") >= 0, Se = getBandSizeOfAxis(he, le), oe = [], ye = ie && getBarSizeList({
26674
+ }, ce), he = ge[ee], le = ge["".concat(ee, "Ticks")], pe = V && V[de] && V[de].hasStack && getStackedDataOfItem(Q, V[de].stackGroups), ae = getDisplayName(Q.type).indexOf("Bar") >= 0, _e = getBandSizeOfAxis(he, le), oe = [], ye = ie && getBarSizeList({
26675
26675
  barSize: j,
26676
26676
  stackGroups: V,
26677
26677
  totalSize: getCartesianAxisSize(ge, ee)
26678
26678
  });
26679
26679
  if (ae) {
26680
- var xe, _e, we = isNil(fe) ? U : fe, Ce = (xe = (_e = getBandSizeOfAxis(he, le, !0)) !== null && _e !== void 0 ? _e : we) !== null && xe !== void 0 ? xe : 0;
26680
+ var xe, Se, Ee = isNil(fe) ? U : fe, we = (xe = (Se = getBandSizeOfAxis(he, le, !0)) !== null && Se !== void 0 ? Se : Ee) !== null && xe !== void 0 ? xe : 0;
26681
26681
  oe = getBarPosition({
26682
26682
  barGap: F,
26683
26683
  barCategoryGap: H,
26684
- bandSize: Ce !== Se ? Ce : Se,
26684
+ bandSize: we !== _e ? we : _e,
26685
26685
  sizeList: ye[be],
26686
- maxBarSize: we
26687
- }), Ce !== Se && (oe = oe.map(function(Be) {
26686
+ maxBarSize: Ee
26687
+ }), we !== _e && (oe = oe.map(function(Be) {
26688
26688
  return _objectSpread(_objectSpread({}, Be), {}, {
26689
26689
  position: _objectSpread(_objectSpread({}, Be.position), {}, {
26690
- offset: Be.position.offset - Ce / 2
26690
+ offset: Be.position.offset - we / 2
26691
26691
  })
26692
26692
  });
26693
26693
  }));
26694
26694
  }
26695
- var Te = Q && Q.type && Q.type.getComposedData;
26696
- Te && W.push({
26697
- props: _objectSpread(_objectSpread({}, Te(_objectSpread(_objectSpread({}, ge), {}, {
26695
+ var Ae = Q && Q.type && Q.type.getComposedData;
26696
+ Ae && W.push({
26697
+ props: _objectSpread(_objectSpread({}, Ae(_objectSpread(_objectSpread({}, ge), {}, {
26698
26698
  displayedData: ne,
26699
26699
  props: I,
26700
26700
  dataKey: ue,
26701
26701
  item: Q,
26702
- bandSize: Se,
26702
+ bandSize: _e,
26703
26703
  barPosition: oe,
26704
26704
  offset: M,
26705
26705
  stackedData: pe,
@@ -27061,8 +27061,8 @@ var getTooltipContent = function(t, n, o, l) {
27061
27061
  if (G >= 0) {
27062
27062
  var pe, ae;
27063
27063
  if (U.dataKey && !U.allowDuplicatedCategory) {
27064
- var Se = typeof U.dataKey == "function" ? le : "payload.".concat(U.dataKey.toString());
27065
- pe = findEntryInArray(Q, Se, J), ae = Z && ne && findEntryInArray(ne, Se, J);
27064
+ var _e = typeof U.dataKey == "function" ? le : "payload.".concat(U.dataKey.toString());
27065
+ pe = findEntryInArray(Q, _e, J), ae = Z && ne && findEntryInArray(ne, _e, J);
27066
27066
  } else
27067
27067
  pe = Q == null ? void 0 : Q[G], ae = Z && ne && ne[G];
27068
27068
  if (be || de) {
@@ -27082,10 +27082,10 @@ var getTooltipContent = function(t, n, o, l) {
27082
27082
  } else {
27083
27083
  var ye, xe = (ye = M.getItemByXY(M.state.activeCoordinate)) !== null && ye !== void 0 ? ye : {
27084
27084
  graphicalItem: he
27085
- }, _e = xe.graphicalItem, we = _e.item, Ce = we === void 0 ? R : we, Te = _e.childIndex, Be = _objectSpread(_objectSpread(_objectSpread({}, j.props), ge), {}, {
27086
- activeIndex: Te
27085
+ }, Se = xe.graphicalItem, Ee = Se.item, we = Ee === void 0 ? R : Ee, Ae = Se.childIndex, Be = _objectSpread(_objectSpread(_objectSpread({}, j.props), ge), {}, {
27086
+ activeIndex: Ae
27087
27087
  });
27088
- return [/* @__PURE__ */ cloneElement(Ce, Be), null, null];
27088
+ return [/* @__PURE__ */ cloneElement(we, Be), null, null];
27089
27089
  }
27090
27090
  return Z ? [he, null, null] : [he, null];
27091
27091
  }), _defineProperty(M, "renderCustomized", function(R, D, L) {
@@ -29133,17 +29133,17 @@ var lottie = createCommonjsModule(function(module, exports) {
29133
29133
  function _(W, Q, Z) {
29134
29134
  return Z || Z === 0 || (Z = 1), W === 1 && Q === 1 && Z === 1 ? this : this._t(W, 0, 0, 0, 0, Q, 0, 0, 0, 0, Z, 0, 0, 0, 0, 1);
29135
29135
  }
29136
- function S(W, Q, Z, ne, se, ue, fe, de, be, ce, ge, he, le, pe, ae, Se) {
29137
- return this.props[0] = W, this.props[1] = Q, this.props[2] = Z, this.props[3] = ne, this.props[4] = se, this.props[5] = ue, this.props[6] = fe, this.props[7] = de, this.props[8] = be, this.props[9] = ce, this.props[10] = ge, this.props[11] = he, this.props[12] = le, this.props[13] = pe, this.props[14] = ae, this.props[15] = Se, this;
29136
+ function S(W, Q, Z, ne, se, ue, fe, de, be, ce, ge, he, le, pe, ae, _e) {
29137
+ return this.props[0] = W, this.props[1] = Q, this.props[2] = Z, this.props[3] = ne, this.props[4] = se, this.props[5] = ue, this.props[6] = fe, this.props[7] = de, this.props[8] = be, this.props[9] = ce, this.props[10] = ge, this.props[11] = he, this.props[12] = le, this.props[13] = pe, this.props[14] = ae, this.props[15] = _e, this;
29138
29138
  }
29139
29139
  function T(W, Q, Z) {
29140
29140
  return Z = Z || 0, W !== 0 || Q !== 0 || Z !== 0 ? this._t(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, W, Q, Z, 1) : this;
29141
29141
  }
29142
- function E(W, Q, Z, ne, se, ue, fe, de, be, ce, ge, he, le, pe, ae, Se) {
29142
+ function E(W, Q, Z, ne, se, ue, fe, de, be, ce, ge, he, le, pe, ae, _e) {
29143
29143
  var oe = this.props;
29144
- if (W === 1 && Q === 0 && Z === 0 && ne === 0 && se === 0 && ue === 1 && fe === 0 && de === 0 && be === 0 && ce === 0 && ge === 1 && he === 0) return oe[12] = oe[12] * W + oe[15] * le, oe[13] = oe[13] * ue + oe[15] * pe, oe[14] = oe[14] * ge + oe[15] * ae, oe[15] *= Se, this._identityCalculated = !1, this;
29145
- var ye = oe[0], xe = oe[1], _e = oe[2], we = oe[3], Ce = oe[4], Te = oe[5], Be = oe[6], Me = oe[7], Fe = oe[8], He = oe[9], Le = oe[10], Ne = oe[11], qe = oe[12], Ge = oe[13], Je = oe[14], Xe = oe[15];
29146
- return oe[0] = ye * W + xe * se + _e * be + we * le, oe[1] = ye * Q + xe * ue + _e * ce + we * pe, oe[2] = ye * Z + xe * fe + _e * ge + we * ae, oe[3] = ye * ne + xe * de + _e * he + we * Se, oe[4] = Ce * W + Te * se + Be * be + Me * le, oe[5] = Ce * Q + Te * ue + Be * ce + Me * pe, oe[6] = Ce * Z + Te * fe + Be * ge + Me * ae, oe[7] = Ce * ne + Te * de + Be * he + Me * Se, oe[8] = Fe * W + He * se + Le * be + Ne * le, oe[9] = Fe * Q + He * ue + Le * ce + Ne * pe, oe[10] = Fe * Z + He * fe + Le * ge + Ne * ae, oe[11] = Fe * ne + He * de + Le * he + Ne * Se, oe[12] = qe * W + Ge * se + Je * be + Xe * le, oe[13] = qe * Q + Ge * ue + Je * ce + Xe * pe, oe[14] = qe * Z + Ge * fe + Je * ge + Xe * ae, oe[15] = qe * ne + Ge * de + Je * he + Xe * Se, this._identityCalculated = !1, this;
29144
+ if (W === 1 && Q === 0 && Z === 0 && ne === 0 && se === 0 && ue === 1 && fe === 0 && de === 0 && be === 0 && ce === 0 && ge === 1 && he === 0) return oe[12] = oe[12] * W + oe[15] * le, oe[13] = oe[13] * ue + oe[15] * pe, oe[14] = oe[14] * ge + oe[15] * ae, oe[15] *= _e, this._identityCalculated = !1, this;
29145
+ var ye = oe[0], xe = oe[1], Se = oe[2], Ee = oe[3], we = oe[4], Ae = oe[5], Be = oe[6], Me = oe[7], Fe = oe[8], He = oe[9], Le = oe[10], Ne = oe[11], qe = oe[12], Ge = oe[13], Je = oe[14], Xe = oe[15];
29146
+ return oe[0] = ye * W + xe * se + Se * be + Ee * le, oe[1] = ye * Q + xe * ue + Se * ce + Ee * pe, oe[2] = ye * Z + xe * fe + Se * ge + Ee * ae, oe[3] = ye * ne + xe * de + Se * he + Ee * _e, oe[4] = we * W + Ae * se + Be * be + Me * le, oe[5] = we * Q + Ae * ue + Be * ce + Me * pe, oe[6] = we * Z + Ae * fe + Be * ge + Me * ae, oe[7] = we * ne + Ae * de + Be * he + Me * _e, oe[8] = Fe * W + He * se + Le * be + Ne * le, oe[9] = Fe * Q + He * ue + Le * ce + Ne * pe, oe[10] = Fe * Z + He * fe + Le * ge + Ne * ae, oe[11] = Fe * ne + He * de + Le * he + Ne * _e, oe[12] = qe * W + Ge * se + Je * be + Xe * le, oe[13] = qe * Q + Ge * ue + Je * ce + Xe * pe, oe[14] = qe * Z + Ge * fe + Je * ge + Xe * ae, oe[15] = qe * ne + Ge * de + Je * he + Xe * _e, this._identityCalculated = !1, this;
29147
29147
  }
29148
29148
  function C(W) {
29149
29149
  var Q = W.props;
@@ -30873,23 +30873,23 @@ var lottie = createCommonjsModule(function(module, exports) {
30873
30873
  u = F.length, n = 0, o = 0;
30874
30874
  var G, J, ee, ie, W, Q = 1.2 * e.finalSize * 0.714, Z = !0;
30875
30875
  ee = R.length;
30876
- var ne, se, ue, fe, de, be, ce, ge, he, le, pe, ae, Se = -1, oe = f, ye = _, xe = b, _e = -1, we = "", Ce = this.defaultPropsArray;
30876
+ var ne, se, ue, fe, de, be, ce, ge, he, le, pe, ae, _e = -1, oe = f, ye = _, xe = b, Se = -1, Ee = "", we = this.defaultPropsArray;
30877
30877
  if (e.j === 2 || e.j === 1) {
30878
- var Te = 0, Be = 0, Me = e.j === 2 ? -0.5 : -1, Fe = 0, He = !0;
30878
+ var Ae = 0, Be = 0, Me = e.j === 2 ? -0.5 : -1, Fe = 0, He = !0;
30879
30879
  for (l = 0; l < u; l += 1) if (F[l].n) {
30880
- for (Te && (Te += Be); Fe < l; ) F[Fe].animatorJustifyOffset = Te, Fe += 1;
30881
- Te = 0, He = !0;
30880
+ for (Ae && (Ae += Be); Fe < l; ) F[Fe].animatorJustifyOffset = Ae, Fe += 1;
30881
+ Ae = 0, He = !0;
30882
30882
  } else {
30883
- for (J = 0; J < ee; J += 1) (G = R[J].a).t.propType && (He && e.j === 2 && (Be += G.t.v * Me), (W = R[J].s.getMult(F[l].anIndexes[J], D.a[J].s.totalChars)).length ? Te += G.t.v * W[0] * Me : Te += G.t.v * W * Me);
30883
+ for (J = 0; J < ee; J += 1) (G = R[J].a).t.propType && (He && e.j === 2 && (Be += G.t.v * Me), (W = R[J].s.getMult(F[l].anIndexes[J], D.a[J].s.totalChars)).length ? Ae += G.t.v * W[0] * Me : Ae += G.t.v * W * Me);
30884
30884
  He = !1;
30885
30885
  }
30886
- for (Te && (Te += Be); Fe < l; ) F[Fe].animatorJustifyOffset = Te, Fe += 1;
30886
+ for (Ae && (Ae += Be); Fe < l; ) F[Fe].animatorJustifyOffset = Ae, Fe += 1;
30887
30887
  }
30888
30888
  for (l = 0; l < u; l += 1) {
30889
- if (L.reset(), fe = 1, F[l].n) n = 0, o += e.yOffset, o += Z ? 1 : 0, f = oe, Z = !1, this._hasMaskedPath && (b = xe, S = (T = E[_ = ye].points)[b - 1], C = (p = T[b]).partialLength, m = 0), we = "", pe = "", he = "", ae = "", Ce = this.defaultPropsArray;
30889
+ if (L.reset(), fe = 1, F[l].n) n = 0, o += e.yOffset, o += Z ? 1 : 0, f = oe, Z = !1, this._hasMaskedPath && (b = xe, S = (T = E[_ = ye].points)[b - 1], C = (p = T[b]).partialLength, m = 0), Ee = "", pe = "", he = "", ae = "", we = this.defaultPropsArray;
30890
30890
  else {
30891
30891
  if (this._hasMaskedPath) {
30892
- if (_e !== F[l].line) {
30892
+ if (Se !== F[l].line) {
30893
30893
  switch (e.j) {
30894
30894
  case 1:
30895
30895
  f += I - e.lineWidths[F[l].line];
@@ -30897,12 +30897,12 @@ var lottie = createCommonjsModule(function(module, exports) {
30897
30897
  case 2:
30898
30898
  f += (I - e.lineWidths[F[l].line]) / 2;
30899
30899
  }
30900
- _e = F[l].line;
30900
+ Se = F[l].line;
30901
30901
  }
30902
- Se !== F[l].ind && (F[Se] && (f += F[Se].extra), f += F[l].an / 2, Se = F[l].ind), f += M[0] * F[l].an * 5e-3;
30902
+ _e !== F[l].ind && (F[_e] && (f += F[_e].extra), f += F[l].an / 2, _e = F[l].ind), f += M[0] * F[l].an * 5e-3;
30903
30903
  var Le = 0;
30904
30904
  for (J = 0; J < ee; J += 1) (G = R[J].a).p.propType && ((W = R[J].s.getMult(F[l].anIndexes[J], D.a[J].s.totalChars)).length ? Le += G.p.v[0] * W[0] : Le += G.p.v[0] * W), G.a.propType && ((W = R[J].s.getMult(F[l].anIndexes[J], D.a[J].s.totalChars)).length ? Le += G.a.v[0] * W[0] : Le += G.a.v[0] * W);
30905
- for (g = !0, this._pathData.a.v && (f = 0.5 * F[0].an + (I - this._pathData.f.v - 0.5 * F[0].an - 0.5 * F[F.length - 1].an) * Se / (u - 1), f += this._pathData.f.v); g; ) m + C >= f + Le || !T ? (N = (f + Le - m) / p.partialLength, se = S.point[0] + (p.point[0] - S.point[0]) * N, ue = S.point[1] + (p.point[1] - S.point[1]) * N, L.translate(-M[0] * F[l].an * 5e-3, -M[1] * Q * 0.01), g = !1) : T && (m += p.partialLength, (b += 1) >= T.length && (b = 0, E[_ += 1] ? T = E[_].points : V.v.c ? (b = 0, T = E[_ = 0].points) : (m -= p.partialLength, T = null)), T && (S = p, C = (p = T[b]).partialLength));
30905
+ for (g = !0, this._pathData.a.v && (f = 0.5 * F[0].an + (I - this._pathData.f.v - 0.5 * F[0].an - 0.5 * F[F.length - 1].an) * _e / (u - 1), f += this._pathData.f.v); g; ) m + C >= f + Le || !T ? (N = (f + Le - m) / p.partialLength, se = S.point[0] + (p.point[0] - S.point[0]) * N, ue = S.point[1] + (p.point[1] - S.point[1]) * N, L.translate(-M[0] * F[l].an * 5e-3, -M[1] * Q * 0.01), g = !1) : T && (m += p.partialLength, (b += 1) >= T.length && (b = 0, E[_ += 1] ? T = E[_].points : V.v.c ? (b = 0, T = E[_ = 0].points) : (m -= p.partialLength, T = null)), T && (S = p, C = (p = T[b]).partialLength));
30906
30906
  ne = F[l].an / 2 - F[l].add, L.translate(-ne, 0, 0);
30907
30907
  } else ne = F[l].an / 2 - F[l].add, L.translate(-ne, 0, 0), L.translate(-M[0] * F[l].an * 5e-3, -M[1] * Q * 0.01, 0);
30908
30908
  for (J = 0; J < ee; J += 1) (G = R[J].a).t.propType && (W = R[J].s.getMult(F[l].anIndexes[J], D.a[J].s.totalChars), n === 0 && e.j === 0 || (this._hasMaskedPath ? W.length ? f += G.t.v * W[0] : f += G.t.v * W : W.length ? n += G.t.v * W[0] : n += G.t.v * W));
@@ -30922,7 +30922,7 @@ var lottie = createCommonjsModule(function(module, exports) {
30922
30922
  var Ne = 180 * Math.atan(O) / Math.PI;
30923
30923
  p.point[0] < S.point[0] && (Ne += 180), L.rotate(-Ne * Math.PI / 180);
30924
30924
  }
30925
- L.translate(se, ue, 0), f -= M[0] * F[l].an * 5e-3, F[l + 1] && Se !== F[l + 1].ind && (f += F[l].an / 2, f += 1e-3 * e.tr * e.finalSize);
30925
+ L.translate(se, ue, 0), f -= M[0] * F[l].an * 5e-3, F[l + 1] && _e !== F[l + 1].ind && (f += F[l].an / 2, f += 1e-3 * e.tr * e.finalSize);
30926
30926
  } else {
30927
30927
  switch (L.translate(n, o, 0), e.ps && L.translate(e.ps[0], e.ps[1] + e.ascent, 0), e.j) {
30928
30928
  case 1:
@@ -30933,9 +30933,9 @@ var lottie = createCommonjsModule(function(module, exports) {
30933
30933
  }
30934
30934
  L.translate(0, -e.ls), L.translate(ne, 0, 0), L.translate(M[0] * F[l].an * 5e-3, M[1] * Q * 0.01, 0), n += F[l].l + 1e-3 * e.tr * e.finalSize;
30935
30935
  }
30936
- j === "html" ? we = L.toCSS() : j === "svg" ? we = L.to2dCSS() : Ce = [L.props[0], L.props[1], L.props[2], L.props[3], L.props[4], L.props[5], L.props[6], L.props[7], L.props[8], L.props[9], L.props[10], L.props[11], L.props[12], L.props[13], L.props[14], L.props[15]], ae = fe;
30936
+ j === "html" ? Ee = L.toCSS() : j === "svg" ? Ee = L.to2dCSS() : we = [L.props[0], L.props[1], L.props[2], L.props[3], L.props[4], L.props[5], L.props[6], L.props[7], L.props[8], L.props[9], L.props[10], L.props[11], L.props[12], L.props[13], L.props[14], L.props[15]], ae = fe;
30937
30937
  }
30938
- q <= l ? (ie = new LetterProps(ae, he, le, pe, we, Ce), this.renderedLetters.push(ie), q += 1, this.lettersChangedFlag = !0) : (ie = this.renderedLetters[l], this.lettersChangedFlag = ie.update(ae, he, le, pe, we, Ce) || this.lettersChangedFlag);
30938
+ q <= l ? (ie = new LetterProps(ae, he, le, pe, Ee, we), this.renderedLetters.push(ie), q += 1, this.lettersChangedFlag = !0) : (ie = this.renderedLetters[l], this.lettersChangedFlag = ie.update(ae, he, le, pe, Ee, we) || this.lettersChangedFlag);
30939
30939
  }
30940
30940
  }
30941
30941
  }, TextAnimatorProperty.prototype.getValue = function() {
@@ -41761,7 +41761,7 @@ function buildThunks({
41761
41761
  queryCacheKey: F.type === "query" ? F.queryCacheKey : void 0
41762
41762
  }, be = F.type === "query" ? F[forceQueryFnSymbol] : void 0;
41763
41763
  let ce;
41764
- const ge = async (le, pe, ae, Se) => {
41764
+ const ge = async (le, pe, ae, _e) => {
41765
41765
  if (pe == null && le.pages.length)
41766
41766
  return Promise.resolve({
41767
41767
  data: le
@@ -41769,7 +41769,7 @@ function buildThunks({
41769
41769
  const oe = {
41770
41770
  queryArg: F.originalArgs,
41771
41771
  pageParam: pe
41772
- }, ye = await he(oe), xe = Se ? b : _;
41772
+ }, ye = await he(oe), xe = _e ? b : _;
41773
41773
  return {
41774
41774
  data: {
41775
41775
  pages: xe(le.pages, ye.data, ae),
@@ -41782,35 +41782,35 @@ function buildThunks({
41782
41782
  let pe;
41783
41783
  const {
41784
41784
  extraOptions: ae,
41785
- argSchema: Se,
41785
+ argSchema: _e,
41786
41786
  rawResponseSchema: oe,
41787
41787
  responseSchema: ye
41788
41788
  } = Q;
41789
- if (Se && !ne && (le = await parseWithSchema(
41790
- Se,
41789
+ if (_e && !ne && (le = await parseWithSchema(
41790
+ _e,
41791
41791
  le,
41792
41792
  "argSchema",
41793
41793
  {}
41794
41794
  // we don't have a meta yet, so we can't pass it
41795
- )), be ? pe = be() : Q.query ? pe = await t(Q.query(le), de, ae) : pe = await Q.queryFn(le, de, ae, (we) => t(we, de, ae)), typeof process < "u" && process.env.NODE_ENV === "development") {
41796
- const we = Q.query ? "`baseQuery`" : "`queryFn`";
41797
- let Ce;
41795
+ )), be ? pe = be() : Q.query ? pe = await t(Q.query(le), de, ae) : pe = await Q.queryFn(le, de, ae, (Ee) => t(Ee, de, ae)), typeof process < "u" && process.env.NODE_ENV === "development") {
41796
+ const Ee = Q.query ? "`baseQuery`" : "`queryFn`";
41797
+ let we;
41798
41798
  if (!pe)
41799
- Ce = `${we} did not return anything.`;
41799
+ we = `${Ee} did not return anything.`;
41800
41800
  else if (typeof pe != "object")
41801
- Ce = `${we} did not return an object.`;
41801
+ we = `${Ee} did not return an object.`;
41802
41802
  else if (pe.error && pe.data)
41803
- Ce = `${we} returned an object containing both \`error\` and \`result\`.`;
41803
+ we = `${Ee} returned an object containing both \`error\` and \`result\`.`;
41804
41804
  else if (pe.error === void 0 && pe.data === void 0)
41805
- Ce = `${we} returned an object containing neither a valid \`error\` and \`result\`. At least one of them should not be \`undefined\``;
41805
+ we = `${Ee} returned an object containing neither a valid \`error\` and \`result\`. At least one of them should not be \`undefined\``;
41806
41806
  else
41807
- for (const Te of Object.keys(pe))
41808
- if (Te !== "error" && Te !== "data" && Te !== "meta") {
41809
- Ce = `The object returned by ${we} has the unknown property ${Te}.`;
41807
+ for (const Ae of Object.keys(pe))
41808
+ if (Ae !== "error" && Ae !== "data" && Ae !== "meta") {
41809
+ we = `The object returned by ${Ee} has the unknown property ${Ae}.`;
41810
41810
  break;
41811
41811
  }
41812
- Ce && console.error(`Error encountered handling the endpoint ${F.endpointName}.
41813
- ${Ce}
41812
+ we && console.error(`Error encountered handling the endpoint ${F.endpointName}.
41813
+ ${we}
41814
41814
  It needs to return an object with either the shape \`{ data: <value> }\` or \`{ error: <value> }\` that may contain an optional \`meta\` property.
41815
41815
  Object returned was:`, pe);
41816
41816
  }
@@ -41819,10 +41819,10 @@ function buildThunks({
41819
41819
  data: xe
41820
41820
  } = pe;
41821
41821
  oe && !ne && (xe = await parseWithSchema(oe, pe.data, "rawResponseSchema", pe.meta));
41822
- let _e = await fe(xe, pe.meta, le);
41823
- return ye && !ne && (_e = await parseWithSchema(ye, _e, "responseSchema", pe.meta)), {
41822
+ let Se = await fe(xe, pe.meta, le);
41823
+ return ye && !ne && (Se = await parseWithSchema(ye, Se, "responseSchema", pe.meta)), {
41824
41824
  ...pe,
41825
- data: _e
41825
+ data: Se
41826
41826
  };
41827
41827
  }
41828
41828
  if (F.type === "query" && "infiniteQueryOptions" in Q) {
@@ -41832,21 +41832,21 @@ function buildThunks({
41832
41832
  maxPages: pe = 1 / 0
41833
41833
  } = le;
41834
41834
  let ae;
41835
- const Se = {
41835
+ const _e = {
41836
41836
  pages: [],
41837
41837
  pageParams: []
41838
- }, oe = (se = d.selectQueryEntry(ie(), F.queryCacheKey)) == null ? void 0 : se.data, xe = /* arg.forceRefetch */ I(F, ie()) && !F.direction || !oe ? Se : oe;
41838
+ }, oe = (se = d.selectQueryEntry(ie(), F.queryCacheKey)) == null ? void 0 : se.data, xe = /* arg.forceRefetch */ I(F, ie()) && !F.direction || !oe ? _e : oe;
41839
41839
  if ("direction" in F && F.direction && xe.pages.length) {
41840
- const _e = F.direction === "backward", Ce = (_e ? getPreviousPageParam : getNextPageParam)(le, xe);
41841
- ae = await ge(xe, Ce, pe, _e);
41840
+ const Se = F.direction === "backward", we = (Se ? getPreviousPageParam : getNextPageParam)(le, xe);
41841
+ ae = await ge(xe, we, pe, Se);
41842
41842
  } else {
41843
41843
  const {
41844
- initialPageParam: _e = le.initialPageParam
41845
- } = F, we = (oe == null ? void 0 : oe.pageParams) ?? [], Ce = we[0] ?? _e, Te = we.length;
41846
- ae = await ge(xe, Ce, pe), be && (ae = {
41844
+ initialPageParam: Se = le.initialPageParam
41845
+ } = F, Ee = (oe == null ? void 0 : oe.pageParams) ?? [], we = Ee[0] ?? Se, Ae = Ee.length;
41846
+ ae = await ge(xe, we, pe), be && (ae = {
41847
41847
  data: ae.data.pages[0]
41848
41848
  });
41849
- for (let Be = 1; Be < Te; Be++) {
41849
+ for (let Be = 1; Be < Ae; Be++) {
41850
41850
  const Me = getNextPageParam(le, ae.data);
41851
41851
  ae = await ge(ae.data, Me, pe);
41852
41852
  }
@@ -52528,22 +52528,22 @@ const ASSISTANT_ID = "RandmarAIChatAssistant", ChatLayout = forwardRef(
52528
52528
  historyFetched: !0,
52529
52529
  messages: [],
52530
52530
  conversationID: -1
52531
- }, xe = u.map((_e) => {
52532
- var we;
52531
+ }, xe = u.map((Se) => {
52532
+ var Ee;
52533
52533
  return {
52534
- partner1: _e.Participant1,
52535
- partner2: _e.Participant2,
52536
- name: ((we = _e.Participant) == null ? void 0 : we.PublicName) ?? "missing public name",
52534
+ partner1: Se.Participant1,
52535
+ partner2: Se.Participant2,
52536
+ name: ((Ee = Se.Participant) == null ? void 0 : Ee.PublicName) ?? "missing public name",
52537
52537
  unread: 0,
52538
- pending: _e.Status != "Approved",
52538
+ pending: Se.Status != "Approved",
52539
52539
  historyFetched: !1,
52540
52540
  messages: [],
52541
- conversationID: _e.ConversationId
52541
+ conversationID: Se.ConversationId
52542
52542
  };
52543
52543
  });
52544
52544
  setTimeout(() => {
52545
- var _e;
52546
- return (_e = fe.current) == null ? void 0 : _e.focus();
52545
+ var Se;
52546
+ return (Se = fe.current) == null ? void 0 : Se.focus();
52547
52547
  }, 50), U([ye, ...xe]);
52548
52548
  }, [u]);
52549
52549
  const [V, M] = useState("approved"), [R, D] = useState([e, ASSISTANT_ID]), [L, j] = useState(""), [q, F] = useState(null), [H, U] = useState([]), [G, J] = useState(""), [ee, ie] = useState(null), [W, Q] = useState([]), [Z, ne] = useState(0), se = useRef(null), ue = useRef(null), fe = o || ue, de = H.filter((ye) => {
@@ -52554,7 +52554,7 @@ const ASSISTANT_ID = "RandmarAIChatAssistant", ChatLayout = forwardRef(
52554
52554
  T.length !== 0 && (T.forEach((ye) => {
52555
52555
  if (!ye || ye.role != "assistant") return;
52556
52556
  if (ye.isComponent) {
52557
- Q((_e) => [..._e, ye.content]), ne(0);
52557
+ Q((Se) => [...Se, ye.content]), ne(0);
52558
52558
  return;
52559
52559
  }
52560
52560
  const xe = {
@@ -52570,10 +52570,10 @@ const ASSISTANT_ID = "RandmarAIChatAssistant", ChatLayout = forwardRef(
52570
52570
  }, [T]);
52571
52571
  function be(ye) {
52572
52572
  const xe = [ye.fromPartnerID, ye.toPartnerID];
52573
- xe.sort(), U((_e) => {
52574
- let we = !1;
52575
- const Ce = _e.map((Te) => Te.partner1 !== xe[0] || Te.partner2 !== xe[1] || Te.messages.findIndex((Be) => Be.id == ye.id) !== -1 ? Te : (we = !0, { ...Te, unread: Te.unread + 1, messages: [...Te.messages, ye] }));
52576
- return we && F([xe[0], xe[1]]), Ce;
52573
+ xe.sort(), U((Se) => {
52574
+ let Ee = !1;
52575
+ const we = Se.map((Ae) => Ae.partner1 !== xe[0] || Ae.partner2 !== xe[1] || Ae.messages.findIndex((Be) => Be.id == ye.id) !== -1 ? Ae : (Ee = !0, { ...Ae, unread: Ae.unread + 1, messages: [...Ae.messages, ye] }));
52576
+ return Ee && F([xe[0], xe[1]]), we;
52577
52577
  });
52578
52578
  }
52579
52579
  useEffect(() => {
@@ -52590,41 +52590,49 @@ const ASSISTANT_ID = "RandmarAIChatAssistant", ChatLayout = forwardRef(
52590
52590
  return (ye = se.current) == null ? void 0 : ye.scrollIntoView({ behavior: "smooth" });
52591
52591
  }, 50));
52592
52592
  }, [q, R]), useEffect(() => {
52593
- var xe;
52594
52593
  if (!R)
52595
52594
  return;
52596
52595
  const ye = getActiveChatObject(H, R);
52597
- ye && ((xe = fe.current) == null || xe.focus(), ne(W.length), d({ applicationId: ye.partner1 === e ? ye.partner2 : ye.partner1 }).then((_e) => {
52598
- _e.data && (Q((we) => [...we, /* @__PURE__ */ jsx("div", { className: "mt-2", children: /* @__PURE__ */ jsx(PartnerCard, { account: _e.data, action: /* @__PURE__ */ jsx(Fragment, {}), withVoice: !1 }) })]), ne(0));
52599
- }), ye.historyFetched ? (ye.unread > 0 && U((_e) => _e.map((we) => we.partner1 === R[0] && we.partner2 === R[1] ? { ...we, unread: 0 } : we)), setTimeout(() => {
52600
- var _e;
52601
- return (_e = se.current) == null ? void 0 : _e.scrollIntoView({ behavior: "smooth" });
52602
- }, 50)) : _({
52603
- applicationId: e,
52604
- conversationId: ye.conversationID
52605
- }).unwrap().then((_e) => {
52606
- const we = _e.map((Ce) => ({
52607
- id: "history" + Ce.MessageId,
52608
- fromPartnerID: Ce.SenderId,
52609
- toPartnerID: Ce.SenderId == R[0] ? R[1] : R[0],
52610
- senderName: Ce.SenderName ?? "missing name",
52611
- timestamp: (/* @__PURE__ */ new Date(Ce.SentDate + "Z")).getTime(),
52612
- content: Ce.Content ?? "no content"
52613
- }));
52614
- U((Ce) => Ce.map((Te) => Te.partner1 === R[0] && Te.partner2 === R[1] ? {
52615
- ...Te,
52616
- messages: we,
52617
- historyFetched: !0
52618
- } : Te)), setTimeout(() => {
52619
- var Ce;
52620
- return (Ce = se.current) == null ? void 0 : Ce.scrollIntoView({ behavior: "smooth" });
52621
- }, 100);
52622
- }).catch((_e) => {
52623
- console.error("Error fetching conversation messages:", _e);
52596
+ if (ye) {
52597
+ if (ye.historyFetched) {
52598
+ ye.unread > 0 && U((xe) => xe.map((Se) => Se.partner1 === R[0] && Se.partner2 === R[1] ? { ...Se, unread: 0 } : Se)), setTimeout(() => {
52599
+ var xe;
52600
+ return (xe = se.current) == null ? void 0 : xe.scrollIntoView({ behavior: "smooth" });
52601
+ }, 50);
52602
+ return;
52603
+ }
52604
+ _({
52605
+ applicationId: e,
52606
+ conversationId: ye.conversationID
52607
+ }).unwrap().then((xe) => {
52608
+ const Se = xe.map((Ee) => ({
52609
+ id: "history" + Ee.MessageId,
52610
+ fromPartnerID: Ee.SenderId,
52611
+ toPartnerID: Ee.SenderId == R[0] ? R[1] : R[0],
52612
+ senderName: Ee.SenderName ?? "missing name",
52613
+ timestamp: (/* @__PURE__ */ new Date(Ee.SentDate + "Z")).getTime(),
52614
+ content: Ee.Content ?? "no content"
52615
+ }));
52616
+ U((Ee) => Ee.map((we) => we.partner1 === R[0] && we.partner2 === R[1] ? {
52617
+ ...we,
52618
+ messages: Se,
52619
+ historyFetched: !0
52620
+ } : we));
52621
+ }).catch((xe) => {
52622
+ console.error("Error fetching conversation messages:", xe);
52623
+ });
52624
+ }
52625
+ }, [H, R, _, e]), useEffect(() => {
52626
+ var xe;
52627
+ if (ne(W.length), !R)
52628
+ return;
52629
+ const ye = getActiveChatObject(H, R);
52630
+ ye && ((xe = fe.current) == null || xe.focus(), d({ applicationId: ye.partner1 === e ? ye.partner2 : ye.partner1 }).then((Se) => {
52631
+ Se.data && (Q((Ee) => [...Ee, /* @__PURE__ */ jsx("div", { className: "mt-2", children: /* @__PURE__ */ jsx(PartnerCard, { account: Se.data, action: /* @__PURE__ */ jsx(Fragment, {}), withVoice: !1 }) })]), ne(0));
52624
52632
  }));
52625
- }, [H, R, _, e]);
52626
- const ce = (ye, xe, _e) => {
52627
- const we = {
52633
+ }, [R, e]);
52634
+ const ce = (ye, xe, Se) => {
52635
+ const Ee = {
52628
52636
  id: crypto.randomUUID(),
52629
52637
  senderName: t,
52630
52638
  fromPartnerID: e,
@@ -52632,11 +52640,11 @@ const ASSISTANT_ID = "RandmarAIChatAssistant", ChatLayout = forwardRef(
52632
52640
  content: ye,
52633
52641
  timestamp: Date.now()
52634
52642
  };
52635
- U((Ce) => Ce.map((Te) => Te.partner1 === xe[0] && Te.partner2 === xe[1] ? { ...Te, messages: [...Te.messages, we] } : Te)), F([xe[0], xe[1]]), we.toPartnerID == ASSISTANT_ID ? S(we.content) : _e.invoke("NewMessage", we).catch((Ce) => console.error("Error sending message:", Ce)), j("");
52643
+ U((we) => we.map((Ae) => Ae.partner1 === xe[0] && Ae.partner2 === xe[1] ? { ...Ae, messages: [...Ae.messages, Ee] } : Ae)), F([xe[0], xe[1]]), Ee.toPartnerID == ASSISTANT_ID ? S(Ee.content) : Se.invoke("NewMessage", Ee).catch((we) => console.error("Error sending message:", we)), j("");
52636
52644
  }, ge = (ye, xe) => {
52637
52645
  if (!H.length || !ee || !C) return !1;
52638
- const _e = H.find((we) => we.conversationID === ye);
52639
- return _e ? (_e.pending && setTimeout(() => M("pending"), 200), D([_e.partner1, _e.partner2]), xe && setTimeout(() => ce(xe, [_e.partner1, _e.partner2], ee), 200), !0) : !1;
52646
+ const Se = H.find((Ee) => Ee.conversationID === ye);
52647
+ return Se ? (Se.pending && setTimeout(() => M("pending"), 300), D([Se.partner1, Se.partner2]), xe && setTimeout(() => ce(xe, [Se.partner1, Se.partner2], ee), 300), !0) : !1;
52640
52648
  };
52641
52649
  if (useImperativeHandle(l, () => ({
52642
52650
  setActiveChatAndSendMessage: ge
@@ -52649,7 +52657,7 @@ const ASSISTANT_ID = "RandmarAIChatAssistant", ChatLayout = forwardRef(
52649
52657
  !L.trim() || !R || !ee || (ne(W.length), ce(L, R, ee));
52650
52658
  }, le = () => {
52651
52659
  const xe = {
52652
- messages: H.find((_e) => _e.partner1 === ASSISTANT_ID || _e.partner2 === ASSISTANT_ID),
52660
+ messages: H.find((Se) => Se.partner1 === ASSISTANT_ID || Se.partner2 === ASSISTANT_ID),
52653
52661
  debug: I
52654
52662
  };
52655
52663
  f({
@@ -52658,12 +52666,12 @@ const ASSISTANT_ID = "RandmarAIChatAssistant", ChatLayout = forwardRef(
52658
52666
  body: xe
52659
52667
  });
52660
52668
  }, pe = () => {
52661
- U((ye) => ye.map((_e) => _e.partner1 !== ASSISTANT_ID && _e.partner2 !== ASSISTANT_ID ? _e : { ..._e, messages: [] })), O();
52669
+ U((ye) => ye.map((Se) => Se.partner1 !== ASSISTANT_ID && Se.partner2 !== ASSISTANT_ID ? Se : { ...Se, messages: [] })), O();
52662
52670
  }, ae = () => {
52663
52671
  R && p({ applicationId: e, partnerId: R[0] == e ? R[1] : R[0] }).then(() => {
52664
52672
  M("approved");
52665
52673
  });
52666
- }, Se = getActiveChatObject(H, R), oe = H.filter((ye) => ye.pending).length;
52674
+ }, _e = getActiveChatObject(H, R), oe = H.filter((ye) => ye.pending).length;
52667
52675
  return /* @__PURE__ */ jsxs("div", { className: "flex h-[85vh] overflow-hidden", children: [
52668
52676
  /* @__PURE__ */ jsxs("div", { className: "w-[260px] p-4 pt-3 flex flex-col border-r", children: [
52669
52677
  /* @__PURE__ */ jsx("div", { className: "p-4 font-semibold border-b", children: "Communications" }),
@@ -52688,7 +52696,7 @@ const ASSISTANT_ID = "RandmarAIChatAssistant", ChatLayout = forwardRef(
52688
52696
  ] })
52689
52697
  ] }) })
52690
52698
  ] }),
52691
- /* @__PURE__ */ jsx(ScrollArea, { className: "flex-1", children: H.length && /* @__PURE__ */ jsx(ChatList, { userId: e, chats: de.filter((ye) => ye.partner1 != ASSISTANT_ID && ye.partner2 != ASSISTANT_ID), activeChat: Se ?? null, onSelectChat: D, assistantChat: H.find((ye) => ye.partner1 == ASSISTANT_ID || ye.partner2 == ASSISTANT_ID) }) })
52699
+ /* @__PURE__ */ jsx(ScrollArea, { className: "flex-1", children: H.length && /* @__PURE__ */ jsx(ChatList, { userId: e, chats: de.filter((ye) => ye.partner1 != ASSISTANT_ID && ye.partner2 != ASSISTANT_ID), activeChat: _e ?? null, onSelectChat: D, assistantChat: H.find((ye) => ye.partner1 == ASSISTANT_ID || ye.partner2 == ASSISTANT_ID) }) })
52692
52700
  ] }),
52693
52701
  /* @__PURE__ */ jsx("div", { className: "flex-1 flex flex-col", children: R ? /* @__PURE__ */ jsxs(Fragment, { children: [
52694
52702
  /* @__PURE__ */ jsx("div", { className: "flex items-center p-4 border-b", children: R[0] == ASSISTANT_ID || R[1] == ASSISTANT_ID ? /* @__PURE__ */ jsxs(Fragment, { children: [
@@ -52707,14 +52715,14 @@ const ASSISTANT_ID = "RandmarAIChatAssistant", ChatLayout = forwardRef(
52707
52715
  /* @__PURE__ */ jsx(AvatarImage, { src: `https://api.randmar.io/v4/Partner/${R[0] === e ? R[1] : R[0]}/Account/Logo?height=72&width=72`, className: " object-contain " }),
52708
52716
  /* @__PURE__ */ jsx(AvatarFallback, { children: /* @__PURE__ */ jsx(Handshake, { className: "text-primary fill-white min-h-full" }) })
52709
52717
  ] }),
52710
- /* @__PURE__ */ jsx("div", { className: "ml-3 font-medium", children: Se == null ? void 0 : Se.name })
52718
+ /* @__PURE__ */ jsx("div", { className: "ml-3 font-medium", children: _e == null ? void 0 : _e.name })
52711
52719
  ] }) }),
52712
- Se != null && Se.pending && Se.partner1 == e ? /* @__PURE__ */ jsx("p", { className: "mt-8 p-2 mx-auto", children: "This conversation is awaiting approval by the other party — please check back later." }) : /* @__PURE__ */ jsxs(Fragment, { children: [
52720
+ _e != null && _e.pending && _e.partner1 == e ? /* @__PURE__ */ jsx("p", { className: "mt-8 p-2 mx-auto", children: "This conversation is awaiting approval by the other party — please check back later." }) : /* @__PURE__ */ jsxs(Fragment, { children: [
52713
52721
  /* @__PURE__ */ jsxs(ScrollArea, { className: "flex-1 pl-2 pr-2 bg-slate-50", children: [
52714
52722
  /* @__PURE__ */ jsx(
52715
52723
  ChatMessages,
52716
52724
  {
52717
- messages: (Se == null ? void 0 : Se.messages) ?? [],
52725
+ messages: (_e == null ? void 0 : _e.messages) ?? [],
52718
52726
  currentUserId: e,
52719
52727
  isAssistantChat: isAssistantChat(R),
52720
52728
  botStatus: isAssistantChat(R) ? N : ""
@@ -52723,7 +52731,7 @@ const ASSISTANT_ID = "RandmarAIChatAssistant", ChatLayout = forwardRef(
52723
52731
  /* @__PURE__ */ jsx("div", { ref: se })
52724
52732
  ] }),
52725
52733
  /* @__PURE__ */ jsxs("div", { className: "p-4 border-t flex", children: [
52726
- (Se == null ? void 0 : Se.pending) && /* @__PURE__ */ jsxs(Fragment, { children: [
52734
+ (_e == null ? void 0 : _e.pending) && /* @__PURE__ */ jsxs(Fragment, { children: [
52727
52735
  /* @__PURE__ */ jsxs(Button, { disabled: m, onClick: () => ae(), children: [
52728
52736
  /* @__PURE__ */ jsx(Handshake, {}),
52729
52737
  "Accept Conversation Request"
@@ -52743,7 +52751,7 @@ const ASSISTANT_ID = "RandmarAIChatAssistant", ChatLayout = forwardRef(
52743
52751
  onKeyDown: (ye) => {
52744
52752
  ye.key !== "Enter" || ye.shiftKey || (ye.preventDefault(), he());
52745
52753
  },
52746
- className: Se != null && Se.pending ? "collapse" : "flex-1 resize-none"
52754
+ className: _e != null && _e.pending ? "collapse" : "flex-1 resize-none"
52747
52755
  }
52748
52756
  ),
52749
52757
  /* @__PURE__ */ jsx(
@@ -52751,8 +52759,8 @@ const ASSISTANT_ID = "RandmarAIChatAssistant", ChatLayout = forwardRef(
52751
52759
  {
52752
52760
  size: "icon",
52753
52761
  variant: "default",
52754
- className: Se != null && Se.pending ? "collapse" : "ml-2 h-15 w-15",
52755
- disabled: N !== "" || (Se == null ? void 0 : Se.pending),
52762
+ className: _e != null && _e.pending ? "collapse" : "ml-2 h-15 w-15",
52763
+ disabled: N !== "" || (_e == null ? void 0 : _e.pending),
52756
52764
  onClick: he,
52757
52765
  children: /* @__PURE__ */ jsx(Send, { className: "h-6 w-6" })
52758
52766
  }
@@ -53697,20 +53705,20 @@ Defaulting to 2020, but this will stop working in the future.`)), B.ecmaVersion
53697
53705
  }
53698
53706
  function ge(A, B) {
53699
53707
  return function(z, K, te, me, ve, Pe) {
53700
- var Ee = {
53708
+ var Ce = {
53701
53709
  type: z ? "Block" : "Line",
53702
53710
  value: K,
53703
53711
  start: te,
53704
53712
  end: me
53705
53713
  };
53706
- A.locations && (Ee.loc = new ue(this, ve, Pe)), A.ranges && (Ee.range = [te, me]), B.push(Ee);
53714
+ A.locations && (Ce.loc = new ue(this, ve, Pe)), A.ranges && (Ce.range = [te, me]), B.push(Ce);
53707
53715
  };
53708
53716
  }
53709
- var he = 1, le = 2, pe = 4, ae = 8, Se = 16, oe = 32, ye = 64, xe = 128, _e = 256, we = he | le | _e;
53710
- function Ce(A, B) {
53717
+ var he = 1, le = 2, pe = 4, ae = 8, _e = 16, oe = 32, ye = 64, xe = 128, Se = 256, Ee = he | le | Se;
53718
+ function we(A, B) {
53711
53719
  return le | (A ? pe : 0) | (B ? ae : 0);
53712
53720
  }
53713
- var Te = 0, Be = 1, Me = 2, Fe = 3, He = 4, Le = 5, Ne = function(B, z, K) {
53721
+ var Ae = 0, Be = 1, Me = 2, Fe = 3, He = 4, Le = 5, Ne = function(B, z, K) {
53714
53722
  this.options = B = ce(B), this.sourceFile = B.sourceFile, this.keywords = Q(m[B.ecmaVersion >= 6 ? 6 : B.sourceType === "module" ? "5module" : 5]);
53715
53723
  var te = "";
53716
53724
  B.allowReserved !== !0 && (te = f[B.ecmaVersion >= 6 ? 6 : B.ecmaVersion === 5 ? 5 : 3], B.sourceType === "module" && (te += " await")), this.reservedWords = Q(te);
@@ -53730,7 +53738,7 @@ Defaulting to 2020, but this will stop working in the future.`)), B.ecmaVersion
53730
53738
  }, qe.canAwait.get = function() {
53731
53739
  for (var A = this.scopeStack.length - 1; A >= 0; A--) {
53732
53740
  var B = this.scopeStack[A];
53733
- if (B.inClassFieldInit || B.flags & _e)
53741
+ if (B.inClassFieldInit || B.flags & Se)
53734
53742
  return !1;
53735
53743
  if (B.flags & le)
53736
53744
  return (B.flags & pe) > 0;
@@ -53745,9 +53753,9 @@ Defaulting to 2020, but this will stop working in the future.`)), B.ecmaVersion
53745
53753
  return this.treatFunctionsAsVarInScope(this.currentScope());
53746
53754
  }, qe.allowNewDotTarget.get = function() {
53747
53755
  var A = this.currentThisScope(), B = A.flags, z = A.inClassFieldInit;
53748
- return (B & (le | _e)) > 0 || z;
53756
+ return (B & (le | Se)) > 0 || z;
53749
53757
  }, qe.inClassStaticBlock.get = function() {
53750
- return (this.currentVarScope().flags & _e) > 0;
53758
+ return (this.currentVarScope().flags & Se) > 0;
53751
53759
  }, Ne.extend = function() {
53752
53760
  for (var B = [], z = arguments.length; z--; )
53753
53761
  B[z] = arguments[z];
@@ -53905,8 +53913,8 @@ Defaulting to 2020, but this will stop working in the future.`)), B.ecmaVersion
53905
53913
  case R._import:
53906
53914
  if (this.options.ecmaVersion > 10 && K === R._import) {
53907
53915
  H.lastIndex = this.pos;
53908
- var ve = H.exec(this.input), Pe = this.pos + ve[0].length, Ee = this.input.charCodeAt(Pe);
53909
- if (Ee === 40 || Ee === 46)
53916
+ var ve = H.exec(this.input), Pe = this.pos + ve[0].length, Ce = this.input.charCodeAt(Pe);
53917
+ if (Ce === 40 || Ce === 46)
53910
53918
  return this.parseExpressionStatement(te, this.parseExpression());
53911
53919
  }
53912
53920
  return this.options.allowImportExportEverywhere || (B || this.raise(this.start, "'import' and 'export' may only appear at the top level"), this.inModule || this.raise(this.start, "'import' and 'export' may appear only with 'sourceType: module'")), K === R._import ? this.parseImport(te) : this.parseExport(te, z);
@@ -53939,8 +53947,8 @@ Defaulting to 2020, but this will stop working in the future.`)), B.ecmaVersion
53939
53947
  var K = this.startNode(), te = z ? "let" : this.value;
53940
53948
  return this.next(), this.parseVar(K, !0, te), this.finishNode(K, "VariableDeclaration"), (this.type === R._in || this.options.ecmaVersion >= 6 && this.isContextual("of")) && K.declarations.length === 1 ? (this.options.ecmaVersion >= 9 && (this.type === R._in ? B > -1 && this.unexpected(B) : A.await = B > -1), this.parseForIn(A, K)) : (B > -1 && this.unexpected(B), this.parseFor(A, K));
53941
53949
  }
53942
- var me = this.isContextual("let"), ve = !1, Pe = this.containsEsc, Ee = new Xe(), $e = this.start, ke = B > -1 ? this.parseExprSubscripts(Ee, "await") : this.parseExpression(!0, Ee);
53943
- return this.type === R._in || (ve = this.options.ecmaVersion >= 6 && this.isContextual("of")) ? (B > -1 ? (this.type === R._in && this.unexpected(B), A.await = !0) : ve && this.options.ecmaVersion >= 8 && (ke.start === $e && !Pe && ke.type === "Identifier" && ke.name === "async" ? this.unexpected() : this.options.ecmaVersion >= 9 && (A.await = !1)), me && ve && this.raise(ke.start, "The left-hand side of a for-of loop may not start with 'let'."), this.toAssignable(ke, !1, Ee), this.checkLValPattern(ke), this.parseForIn(A, ke)) : (this.checkExpressionErrors(Ee, !0), B > -1 && this.unexpected(B), this.parseFor(A, ke));
53950
+ var me = this.isContextual("let"), ve = !1, Pe = this.containsEsc, Ce = new Xe(), $e = this.start, ke = B > -1 ? this.parseExprSubscripts(Ce, "await") : this.parseExpression(!0, Ce);
53951
+ return this.type === R._in || (ve = this.options.ecmaVersion >= 6 && this.isContextual("of")) ? (B > -1 ? (this.type === R._in && this.unexpected(B), A.await = !0) : ve && this.options.ecmaVersion >= 8 && (ke.start === $e && !Pe && ke.type === "Identifier" && ke.name === "async" ? this.unexpected() : this.options.ecmaVersion >= 9 && (A.await = !1)), me && ve && this.raise(ke.start, "The left-hand side of a for-of loop may not start with 'let'."), this.toAssignable(ke, !1, Ce), this.checkLValPattern(ke), this.parseForIn(A, ke)) : (this.checkExpressionErrors(Ce, !0), B > -1 && this.unexpected(B), this.parseFor(A, ke));
53944
53952
  }, Re.parseFunctionStatement = function(A, B, z) {
53945
53953
  return this.next(), this.parseFunction(A, rt | (z ? 0 : Ht), !1, B);
53946
53954
  }, Re.parseIfStatement = function(A) {
@@ -53982,8 +53990,8 @@ Defaulting to 2020, but this will stop working in the future.`)), B.ecmaVersion
53982
53990
  var ve = me[te];
53983
53991
  ve.name === B && this.raise(z.start, "Label '" + B + "' is already declared");
53984
53992
  }
53985
- for (var Pe = this.type.isLoop ? "loop" : this.type === R._switch ? "switch" : null, Ee = this.labels.length - 1; Ee >= 0; Ee--) {
53986
- var $e = this.labels[Ee];
53993
+ for (var Pe = this.type.isLoop ? "loop" : this.type === R._switch ? "switch" : null, Ce = this.labels.length - 1; Ce >= 0; Ce--) {
53994
+ var $e = this.labels[Ce];
53987
53995
  if ($e.statementStart === A.start)
53988
53996
  $e.statementStart = this.start, $e.kind = Pe;
53989
53997
  else
@@ -54017,7 +54025,7 @@ Defaulting to 2020, but this will stop working in the future.`)), B.ecmaVersion
54017
54025
  Re.parseFunction = function(A, B, z, K, te) {
54018
54026
  this.initFunction(A), (this.options.ecmaVersion >= 9 || this.options.ecmaVersion >= 6 && !K) && (this.type === R.star && B & Ht && this.unexpected(), A.generator = this.eat(R.star)), this.options.ecmaVersion >= 8 && (A.async = !!K), B & rt && (A.id = B & Wt && this.type !== R.name ? null : this.parseIdent(), A.id && !(B & Ht) && this.checkLValSimple(A.id, this.strict || A.generator || A.async ? this.treatFunctionsAsVar ? Be : Me : Fe));
54019
54027
  var me = this.yieldPos, ve = this.awaitPos, Pe = this.awaitIdentPos;
54020
- return this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, this.enterScope(Ce(A.async, A.generator)), B & rt || (A.id = this.type === R.name ? this.parseIdent() : null), this.parseFunctionParams(A), this.parseFunctionBody(A, z, !1, te), this.yieldPos = me, this.awaitPos = ve, this.awaitIdentPos = Pe, this.finishNode(A, B & rt ? "FunctionDeclaration" : "FunctionExpression");
54028
+ return this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, this.enterScope(we(A.async, A.generator)), B & rt || (A.id = this.type === R.name ? this.parseIdent() : null), this.parseFunctionParams(A), this.parseFunctionBody(A, z, !1, te), this.yieldPos = me, this.awaitPos = ve, this.awaitIdentPos = Pe, this.finishNode(A, B & rt ? "FunctionDeclaration" : "FunctionExpression");
54021
54029
  }, Re.parseFunctionParams = function(A) {
54022
54030
  this.expect(R.parenL), A.params = this.parseBindingList(R.parenR, !1, this.options.ecmaVersion >= 8), this.checkYieldAwaitInDefaultParams();
54023
54031
  }, Re.parseClass = function(A, B) {
@@ -54040,8 +54048,8 @@ Defaulting to 2020, but this will stop working in the future.`)), B.ecmaVersion
54040
54048
  this.isClassElementNameStart() || this.type === R.star ? Pe = !0 : K = "static";
54041
54049
  }
54042
54050
  if (z.static = Pe, !K && B >= 8 && this.eatContextual("async") && ((this.isClassElementNameStart() || this.type === R.star) && !this.canInsertSemicolon() ? me = !0 : K = "async"), !K && (B >= 9 || !me) && this.eat(R.star) && (te = !0), !K && !me && !te) {
54043
- var Ee = this.value;
54044
- (this.eatContextual("get") || this.eatContextual("set")) && (this.isClassElementNameStart() ? ve = Ee : K = Ee);
54051
+ var Ce = this.value;
54052
+ (this.eatContextual("get") || this.eatContextual("set")) && (this.isClassElementNameStart() ? ve = Ce : K = Ce);
54045
54053
  }
54046
54054
  if (K ? (z.computed = !1, z.key = this.startNodeAt(this.lastTokStart, this.lastTokStartLoc), z.key.name = K, this.finishNode(z.key, "Identifier")) : this.parseClassElementName(z), B < 13 || this.type === R.parenL || ve !== "method" || te || me) {
54047
54055
  var $e = !z.static && Ct(z, "constructor"), ke = $e && A;
@@ -54068,7 +54076,7 @@ Defaulting to 2020, but this will stop working in the future.`)), B.ecmaVersion
54068
54076
  }, Re.parseClassStaticBlock = function(A) {
54069
54077
  A.body = [];
54070
54078
  var B = this.labels;
54071
- for (this.labels = [], this.enterScope(_e | ye); this.type !== R.braceR; ) {
54079
+ for (this.labels = [], this.enterScope(Se | ye); this.type !== R.braceR; ) {
54072
54080
  var z = this.parseStatement(null);
54073
54081
  A.body.push(z);
54074
54082
  }
@@ -54145,8 +54153,8 @@ Defaulting to 2020, but this will stop working in the future.`)), B.ecmaVersion
54145
54153
  }
54146
54154
  else if (z === "ArrayPattern")
54147
54155
  for (var ve = 0, Pe = B.elements; ve < Pe.length; ve += 1) {
54148
- var Ee = Pe[ve];
54149
- Ee && this.checkPatternExport(A, Ee);
54156
+ var Ce = Pe[ve];
54157
+ Ce && this.checkPatternExport(A, Ce);
54150
54158
  }
54151
54159
  else z === "Property" ? this.checkPatternExport(A, B.value) : z === "AssignmentPattern" ? this.checkPatternExport(A, B.left) : z === "RestElement" && this.checkPatternExport(A, B.argument);
54152
54160
  }, Re.checkVariableExport = function(A, B) {
@@ -54304,8 +54312,8 @@ Defaulting to 2020, but this will stop working in the future.`)), B.ecmaVersion
54304
54312
  var K = this.startNodeAt(A, B);
54305
54313
  return K.left = z, K.right = this.parseMaybeAssign(), this.finishNode(K, "AssignmentPattern");
54306
54314
  }, We.checkLValSimple = function(A, B, z) {
54307
- B === void 0 && (B = Te);
54308
- var K = B !== Te;
54315
+ B === void 0 && (B = Ae);
54316
+ var K = B !== Ae;
54309
54317
  switch (A.type) {
54310
54318
  case "Identifier":
54311
54319
  this.strict && this.reservedWordsStrictBind.test(A.name) && this.raiseRecoverable(A.start, (K ? "Binding " : "Assigning to ") + A.name + " in strict mode"), K && (B === Me && A.name === "let" && this.raiseRecoverable(A.start, "let is disallowed as a lexically bound name"), z && (ee(z, A.name) && this.raiseRecoverable(A.start, "Argument name clash"), z[A.name] = !0), B !== Le && this.declareName(A.name, B, A.start));
@@ -54322,7 +54330,7 @@ Defaulting to 2020, but this will stop working in the future.`)), B.ecmaVersion
54322
54330
  this.raise(A.start, (K ? "Binding" : "Assigning to") + " rvalue");
54323
54331
  }
54324
54332
  }, We.checkLValPattern = function(A, B, z) {
54325
- switch (B === void 0 && (B = Te), A.type) {
54333
+ switch (B === void 0 && (B = Ae), A.type) {
54326
54334
  case "ObjectPattern":
54327
54335
  for (var K = 0, te = A.properties; K < te.length; K += 1) {
54328
54336
  var me = te[K];
@@ -54331,15 +54339,15 @@ Defaulting to 2020, but this will stop working in the future.`)), B.ecmaVersion
54331
54339
  break;
54332
54340
  case "ArrayPattern":
54333
54341
  for (var ve = 0, Pe = A.elements; ve < Pe.length; ve += 1) {
54334
- var Ee = Pe[ve];
54335
- Ee && this.checkLValInnerPattern(Ee, B, z);
54342
+ var Ce = Pe[ve];
54343
+ Ce && this.checkLValInnerPattern(Ce, B, z);
54336
54344
  }
54337
54345
  break;
54338
54346
  default:
54339
54347
  this.checkLValSimple(A, B, z);
54340
54348
  }
54341
54349
  }, We.checkLValInnerPattern = function(A, B, z) {
54342
- switch (B === void 0 && (B = Te), A.type) {
54350
+ switch (B === void 0 && (B = Ae), A.type) {
54343
54351
  case "Property":
54344
54352
  this.checkLValInnerPattern(A.value, B, z);
54345
54353
  break;
@@ -54468,11 +54476,11 @@ Defaulting to 2020, but this will stop working in the future.`)), B.ecmaVersion
54468
54476
  }
54469
54477
  var K = !1, te = -1, me = -1, ve = -1;
54470
54478
  B ? (te = B.parenthesizedAssign, me = B.trailingComma, ve = B.doubleProto, B.parenthesizedAssign = B.trailingComma = -1) : (B = new Xe(), K = !0);
54471
- var Pe = this.start, Ee = this.startLoc;
54479
+ var Pe = this.start, Ce = this.startLoc;
54472
54480
  (this.type === R.parenL || this.type === R.name) && (this.potentialArrowAt = this.start, this.potentialArrowInForAwait = A === "await");
54473
54481
  var $e = this.parseMaybeConditional(A, B);
54474
- if (z && ($e = z.call(this, $e, Pe, Ee)), this.type.isAssign) {
54475
- var ke = this.startNodeAt(Pe, Ee);
54482
+ if (z && ($e = z.call(this, $e, Pe, Ce)), this.type.isAssign) {
54483
+ var ke = this.startNodeAt(Pe, Ce);
54476
54484
  return ke.operator = this.value, this.type === R.eq && ($e = this.toAssignable($e, !1, B)), K || (B.parenthesizedAssign = B.trailingComma = B.doubleProto = -1), B.shorthandAssign >= $e.start && (B.shorthandAssign = -1), this.type === R.eq ? this.checkLValPattern($e) : this.checkLValSimple($e), ke.left = $e, this.next(), ke.right = this.parseMaybeAssign(A), ve > -1 && (B.doubleProto = ve), this.finishNode(ke, "AssignmentExpression");
54477
54485
  } else
54478
54486
  K && this.checkExpressionErrors(B, !0);
@@ -54494,9 +54502,9 @@ Defaulting to 2020, but this will stop working in the future.`)), B.ecmaVersion
54494
54502
  if (me != null && (!te || this.type !== R._in) && me > K) {
54495
54503
  var ve = this.type === R.logicalOR || this.type === R.logicalAND, Pe = this.type === R.coalesce;
54496
54504
  Pe && (me = R.logicalAND.binop);
54497
- var Ee = this.value;
54505
+ var Ce = this.value;
54498
54506
  this.next();
54499
- var $e = this.start, ke = this.startLoc, ze = this.parseExprOp(this.parseMaybeUnary(null, !1, !1, te), $e, ke, me, te), nt = this.buildBinary(B, z, A, ze, Ee, ve || Pe);
54507
+ var $e = this.start, ke = this.startLoc, ze = this.parseExprOp(this.parseMaybeUnary(null, !1, !1, te), $e, ke, me, te), nt = this.buildBinary(B, z, A, ze, Ce, ve || Pe);
54500
54508
  return (ve && this.type === R.coalesce || Pe && (this.type === R.logicalOR || this.type === R.logicalAND)) && this.raiseRecoverable(this.start, "Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"), this.parseExprOp(nt, B, z, K, te);
54501
54509
  }
54502
54510
  return A;
@@ -54509,8 +54517,8 @@ Defaulting to 2020, but this will stop working in the future.`)), B.ecmaVersion
54509
54517
  if (this.isContextual("await") && this.canAwait)
54510
54518
  ve = this.parseAwait(K), B = !0;
54511
54519
  else if (this.type.prefix) {
54512
- var Pe = this.startNode(), Ee = this.type === R.incDec;
54513
- Pe.operator = this.value, Pe.prefix = !0, this.next(), Pe.argument = this.parseMaybeUnary(null, !0, Ee, K), this.checkExpressionErrors(A, !0), Ee ? this.checkLValSimple(Pe.argument) : this.strict && Pe.operator === "delete" && Kt(Pe.argument) ? this.raiseRecoverable(Pe.start, "Deleting local variable in strict mode") : Pe.operator === "delete" && Ut(Pe.argument) ? this.raiseRecoverable(Pe.start, "Private fields can not be deleted") : B = !0, ve = this.finishNode(Pe, Ee ? "UpdateExpression" : "UnaryExpression");
54520
+ var Pe = this.startNode(), Ce = this.type === R.incDec;
54521
+ Pe.operator = this.value, Pe.prefix = !0, this.next(), Pe.argument = this.parseMaybeUnary(null, !0, Ce, K), this.checkExpressionErrors(A, !0), Ce ? this.checkLValSimple(Pe.argument) : this.strict && Pe.operator === "delete" && Kt(Pe.argument) ? this.raiseRecoverable(Pe.start, "Deleting local variable in strict mode") : Pe.operator === "delete" && Ut(Pe.argument) ? this.raiseRecoverable(Pe.start, "Private fields can not be deleted") : B = !0, ve = this.finishNode(Pe, Ce ? "UpdateExpression" : "UnaryExpression");
54514
54522
  } else if (!B && this.type === R.privateId)
54515
54523
  (K || this.privateNameStack.length === 0) && this.options.checkPrivateFields && this.unexpected(), ve = this.parsePrivateIdent(), this.type !== R._in && this.unexpected();
54516
54524
  else {
@@ -54546,8 +54554,8 @@ Defaulting to 2020, but this will stop working in the future.`)), B.ecmaVersion
54546
54554
  var Pe = this.parseSubscript(A, B, z, K, me, ve, te);
54547
54555
  if (Pe.optional && (ve = !0), Pe === A || Pe.type === "ArrowFunctionExpression") {
54548
54556
  if (ve) {
54549
- var Ee = this.startNodeAt(B, z);
54550
- Ee.expression = Pe, Pe = this.finishNode(Ee, "ChainExpression");
54557
+ var Ce = this.startNodeAt(B, z);
54558
+ Ce.expression = Pe, Pe = this.finishNode(Ce, "ChainExpression");
54551
54559
  }
54552
54560
  return Pe;
54553
54561
  }
@@ -54558,23 +54566,23 @@ Defaulting to 2020, but this will stop working in the future.`)), B.ecmaVersion
54558
54566
  }, Ie.parseSubscriptAsyncArrow = function(A, B, z, K) {
54559
54567
  return this.parseArrowExpression(this.startNodeAt(A, B), z, !0, K);
54560
54568
  }, Ie.parseSubscript = function(A, B, z, K, te, me, ve) {
54561
- var Pe = this.options.ecmaVersion >= 11, Ee = Pe && this.eat(R.questionDot);
54562
- K && Ee && this.raise(this.lastTokStart, "Optional chaining cannot appear in the callee of new expressions");
54569
+ var Pe = this.options.ecmaVersion >= 11, Ce = Pe && this.eat(R.questionDot);
54570
+ K && Ce && this.raise(this.lastTokStart, "Optional chaining cannot appear in the callee of new expressions");
54563
54571
  var $e = this.eat(R.bracketL);
54564
- if ($e || Ee && this.type !== R.parenL && this.type !== R.backQuote || this.eat(R.dot)) {
54572
+ if ($e || Ce && this.type !== R.parenL && this.type !== R.backQuote || this.eat(R.dot)) {
54565
54573
  var ke = this.startNodeAt(B, z);
54566
- ke.object = A, $e ? (ke.property = this.parseExpression(), this.expect(R.bracketR)) : this.type === R.privateId && A.type !== "Super" ? ke.property = this.parsePrivateIdent() : ke.property = this.parseIdent(this.options.allowReserved !== "never"), ke.computed = !!$e, Pe && (ke.optional = Ee), A = this.finishNode(ke, "MemberExpression");
54574
+ ke.object = A, $e ? (ke.property = this.parseExpression(), this.expect(R.bracketR)) : this.type === R.privateId && A.type !== "Super" ? ke.property = this.parsePrivateIdent() : ke.property = this.parseIdent(this.options.allowReserved !== "never"), ke.computed = !!$e, Pe && (ke.optional = Ce), A = this.finishNode(ke, "MemberExpression");
54567
54575
  } else if (!K && this.eat(R.parenL)) {
54568
54576
  var ze = new Xe(), nt = this.yieldPos, mt = this.awaitPos, ot = this.awaitIdentPos;
54569
54577
  this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0;
54570
54578
  var Vt = this.parseExprList(R.parenR, this.options.ecmaVersion >= 8, !1, ze);
54571
- if (te && !Ee && this.shouldParseAsyncArrow())
54579
+ if (te && !Ce && this.shouldParseAsyncArrow())
54572
54580
  return this.checkPatternErrors(ze, !1), this.checkYieldAwaitInDefaultParams(), this.awaitIdentPos > 0 && this.raise(this.awaitIdentPos, "Cannot use 'await' as identifier inside an async function"), this.yieldPos = nt, this.awaitPos = mt, this.awaitIdentPos = ot, this.parseSubscriptAsyncArrow(B, z, Vt, ve);
54573
54581
  this.checkExpressionErrors(ze, !0), this.yieldPos = nt || this.yieldPos, this.awaitPos = mt || this.awaitPos, this.awaitIdentPos = ot || this.awaitIdentPos;
54574
54582
  var st = this.startNodeAt(B, z);
54575
- st.callee = A, st.arguments = Vt, Pe && (st.optional = Ee), A = this.finishNode(st, "CallExpression");
54583
+ st.callee = A, st.arguments = Vt, Pe && (st.optional = Ce), A = this.finishNode(st, "CallExpression");
54576
54584
  } else if (this.type === R.backQuote) {
54577
- (Ee || me) && this.raise(this.start, "Optional chaining cannot appear in the tag of tagged template expressions");
54585
+ (Ce || me) && this.raise(this.start, "Optional chaining cannot appear in the tag of tagged template expressions");
54578
54586
  var lt = this.startNodeAt(B, z);
54579
54587
  lt.tag = A, lt.quasi = this.parseTemplate({ isTagged: !0 }), A = this.finishNode(lt, "TaggedTemplateExpression");
54580
54588
  }
@@ -54588,16 +54596,16 @@ Defaulting to 2020, but this will stop working in the future.`)), B.ecmaVersion
54588
54596
  case R._this:
54589
54597
  return K = this.startNode(), this.next(), this.finishNode(K, "ThisExpression");
54590
54598
  case R.name:
54591
- var me = this.start, ve = this.startLoc, Pe = this.containsEsc, Ee = this.parseIdent(!1);
54592
- if (this.options.ecmaVersion >= 8 && !Pe && Ee.name === "async" && !this.canInsertSemicolon() && this.eat(R._function))
54599
+ var me = this.start, ve = this.startLoc, Pe = this.containsEsc, Ce = this.parseIdent(!1);
54600
+ if (this.options.ecmaVersion >= 8 && !Pe && Ce.name === "async" && !this.canInsertSemicolon() && this.eat(R._function))
54593
54601
  return this.overrideContext(Ue.f_expr), this.parseFunction(this.startNodeAt(me, ve), 0, !1, !0, B);
54594
54602
  if (te && !this.canInsertSemicolon()) {
54595
54603
  if (this.eat(R.arrow))
54596
- return this.parseArrowExpression(this.startNodeAt(me, ve), [Ee], !1, B);
54597
- if (this.options.ecmaVersion >= 8 && Ee.name === "async" && this.type === R.name && !Pe && (!this.potentialArrowInForAwait || this.value !== "of" || this.containsEsc))
54598
- return Ee = this.parseIdent(!1), (this.canInsertSemicolon() || !this.eat(R.arrow)) && this.unexpected(), this.parseArrowExpression(this.startNodeAt(me, ve), [Ee], !0, B);
54604
+ return this.parseArrowExpression(this.startNodeAt(me, ve), [Ce], !1, B);
54605
+ if (this.options.ecmaVersion >= 8 && Ce.name === "async" && this.type === R.name && !Pe && (!this.potentialArrowInForAwait || this.value !== "of" || this.containsEsc))
54606
+ return Ce = this.parseIdent(!1), (this.canInsertSemicolon() || !this.eat(R.arrow)) && this.unexpected(), this.parseArrowExpression(this.startNodeAt(me, ve), [Ce], !0, B);
54599
54607
  }
54600
- return Ee;
54608
+ return Ce;
54601
54609
  case R.regexp:
54602
54610
  var $e = this.value;
54603
54611
  return K = this.parseLiteral($e.value), K.regex = { pattern: $e.pattern, flags: $e.flags }, K;
@@ -54662,20 +54670,20 @@ Defaulting to 2020, but this will stop working in the future.`)), B.ecmaVersion
54662
54670
  var z = this.start, K = this.startLoc, te, me = this.options.ecmaVersion >= 8;
54663
54671
  if (this.options.ecmaVersion >= 6) {
54664
54672
  this.next();
54665
- var ve = this.start, Pe = this.startLoc, Ee = [], $e = !0, ke = !1, ze = new Xe(), nt = this.yieldPos, mt = this.awaitPos, ot;
54673
+ var ve = this.start, Pe = this.startLoc, Ce = [], $e = !0, ke = !1, ze = new Xe(), nt = this.yieldPos, mt = this.awaitPos, ot;
54666
54674
  for (this.yieldPos = 0, this.awaitPos = 0; this.type !== R.parenR; )
54667
54675
  if ($e ? $e = !1 : this.expect(R.comma), me && this.afterTrailingComma(R.parenR, !0)) {
54668
54676
  ke = !0;
54669
54677
  break;
54670
54678
  } else if (this.type === R.ellipsis) {
54671
- ot = this.start, Ee.push(this.parseParenItem(this.parseRestBinding())), this.type === R.comma && this.raiseRecoverable(this.start, "Comma is not permitted after the rest element");
54679
+ ot = this.start, Ce.push(this.parseParenItem(this.parseRestBinding())), this.type === R.comma && this.raiseRecoverable(this.start, "Comma is not permitted after the rest element");
54672
54680
  break;
54673
54681
  } else
54674
- Ee.push(this.parseMaybeAssign(!1, ze, this.parseParenItem));
54682
+ Ce.push(this.parseMaybeAssign(!1, ze, this.parseParenItem));
54675
54683
  var Vt = this.lastTokEnd, st = this.lastTokEndLoc;
54676
- if (this.expect(R.parenR), A && this.shouldParseArrow(Ee) && this.eat(R.arrow))
54677
- return this.checkPatternErrors(ze, !1), this.checkYieldAwaitInDefaultParams(), this.yieldPos = nt, this.awaitPos = mt, this.parseParenArrowList(z, K, Ee, B);
54678
- (!Ee.length || ke) && this.unexpected(this.lastTokStart), ot && this.unexpected(ot), this.checkExpressionErrors(ze, !0), this.yieldPos = nt || this.yieldPos, this.awaitPos = mt || this.awaitPos, Ee.length > 1 ? (te = this.startNodeAt(ve, Pe), te.expressions = Ee, this.finishNodeAt(te, "SequenceExpression", Vt, st)) : te = Ee[0];
54684
+ if (this.expect(R.parenR), A && this.shouldParseArrow(Ce) && this.eat(R.arrow))
54685
+ return this.checkPatternErrors(ze, !1), this.checkYieldAwaitInDefaultParams(), this.yieldPos = nt, this.awaitPos = mt, this.parseParenArrowList(z, K, Ce, B);
54686
+ (!Ce.length || ke) && this.unexpected(this.lastTokStart), ot && this.unexpected(ot), this.checkExpressionErrors(ze, !0), this.yieldPos = nt || this.yieldPos, this.awaitPos = mt || this.awaitPos, Ce.length > 1 ? (te = this.startNodeAt(ve, Pe), te.expressions = Ce, this.finishNodeAt(te, "SequenceExpression", Vt, st)) : te = Ce[0];
54679
54687
  } else
54680
54688
  te = this.parseParenExpression();
54681
54689
  if (this.options.preserveParens) {
@@ -54762,10 +54770,10 @@ Defaulting to 2020, but this will stop working in the future.`)), B.ecmaVersion
54762
54770
  A.id = null, this.options.ecmaVersion >= 6 && (A.generator = A.expression = !1), this.options.ecmaVersion >= 8 && (A.async = !1);
54763
54771
  }, Ie.parseMethod = function(A, B, z) {
54764
54772
  var K = this.startNode(), te = this.yieldPos, me = this.awaitPos, ve = this.awaitIdentPos;
54765
- return this.initFunction(K), this.options.ecmaVersion >= 6 && (K.generator = A), this.options.ecmaVersion >= 8 && (K.async = !!B), this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, this.enterScope(Ce(B, K.generator) | ye | (z ? xe : 0)), this.expect(R.parenL), K.params = this.parseBindingList(R.parenR, !1, this.options.ecmaVersion >= 8), this.checkYieldAwaitInDefaultParams(), this.parseFunctionBody(K, !1, !0, !1), this.yieldPos = te, this.awaitPos = me, this.awaitIdentPos = ve, this.finishNode(K, "FunctionExpression");
54773
+ return this.initFunction(K), this.options.ecmaVersion >= 6 && (K.generator = A), this.options.ecmaVersion >= 8 && (K.async = !!B), this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, this.enterScope(we(B, K.generator) | ye | (z ? xe : 0)), this.expect(R.parenL), K.params = this.parseBindingList(R.parenR, !1, this.options.ecmaVersion >= 8), this.checkYieldAwaitInDefaultParams(), this.parseFunctionBody(K, !1, !0, !1), this.yieldPos = te, this.awaitPos = me, this.awaitIdentPos = ve, this.finishNode(K, "FunctionExpression");
54766
54774
  }, Ie.parseArrowExpression = function(A, B, z, K) {
54767
54775
  var te = this.yieldPos, me = this.awaitPos, ve = this.awaitIdentPos;
54768
- return this.enterScope(Ce(z, !1) | Se), this.initFunction(A), this.options.ecmaVersion >= 8 && (A.async = !!z), this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, A.params = this.toAssignableList(B, !0), this.parseFunctionBody(A, !0, !1, K), this.yieldPos = te, this.awaitPos = me, this.awaitIdentPos = ve, this.finishNode(A, "ArrowFunctionExpression");
54776
+ return this.enterScope(we(z, !1) | _e), this.initFunction(A), this.options.ecmaVersion >= 8 && (A.async = !!z), this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, A.params = this.toAssignableList(B, !0), this.parseFunctionBody(A, !0, !1, K), this.yieldPos = te, this.awaitPos = me, this.awaitIdentPos = ve, this.finishNode(A, "ArrowFunctionExpression");
54769
54777
  }, Ie.parseFunctionBody = function(A, B, z, K) {
54770
54778
  var te = B && this.type !== R.braceL, me = this.strict, ve = !1;
54771
54779
  if (te)
@@ -54773,8 +54781,8 @@ Defaulting to 2020, but this will stop working in the future.`)), B.ecmaVersion
54773
54781
  else {
54774
54782
  var Pe = this.options.ecmaVersion >= 7 && !this.isSimpleParamList(A.params);
54775
54783
  (!me || Pe) && (ve = this.strictDirective(this.end), ve && Pe && this.raiseRecoverable(A.start, "Illegal 'use strict' directive in function with non-simple parameter list"));
54776
- var Ee = this.labels;
54777
- this.labels = [], ve && (this.strict = !0), this.checkParams(A, !me && !ve && !B && !z && this.isSimpleParamList(A.params)), this.strict && A.id && this.checkLValSimple(A.id, Le), A.body = this.parseBlock(!1, void 0, ve && !me), A.expression = !1, this.adaptDirectivePrologue(A.body.body), this.labels = Ee;
54784
+ var Ce = this.labels;
54785
+ this.labels = [], ve && (this.strict = !0), this.checkParams(A, !me && !ve && !B && !z && this.isSimpleParamList(A.params)), this.strict && A.id && this.checkLValSimple(A.id, Le), A.body = this.parseBlock(!1, void 0, ve && !me), A.expression = !1, this.adaptDirectivePrologue(A.body.body), this.labels = Ce;
54778
54786
  }
54779
54787
  this.exitScope();
54780
54788
  }, Ie.isSimpleParamList = function(A) {
@@ -54855,12 +54863,12 @@ Defaulting to 2020, but this will stop working in the future.`)), B.ecmaVersion
54855
54863
  this.treatFunctionsAsVar ? K = ve.lexical.indexOf(A) > -1 : K = ve.lexical.indexOf(A) > -1 || ve.var.indexOf(A) > -1, ve.functions.push(A);
54856
54864
  } else
54857
54865
  for (var Pe = this.scopeStack.length - 1; Pe >= 0; --Pe) {
54858
- var Ee = this.scopeStack[Pe];
54859
- if (Ee.lexical.indexOf(A) > -1 && !(Ee.flags & oe && Ee.lexical[0] === A) || !this.treatFunctionsAsVarInScope(Ee) && Ee.functions.indexOf(A) > -1) {
54866
+ var Ce = this.scopeStack[Pe];
54867
+ if (Ce.lexical.indexOf(A) > -1 && !(Ce.flags & oe && Ce.lexical[0] === A) || !this.treatFunctionsAsVarInScope(Ce) && Ce.functions.indexOf(A) > -1) {
54860
54868
  K = !0;
54861
54869
  break;
54862
54870
  }
54863
- if (Ee.var.push(A), this.inModule && Ee.flags & he && delete this.undefinedExports[A], Ee.flags & we)
54871
+ if (Ce.var.push(A), this.inModule && Ce.flags & he && delete this.undefinedExports[A], Ce.flags & Ee)
54864
54872
  break;
54865
54873
  }
54866
54874
  K && this.raiseRecoverable(z, "Identifier '" + A + "' has already been declared");
@@ -54871,13 +54879,13 @@ Defaulting to 2020, but this will stop working in the future.`)), B.ecmaVersion
54871
54879
  }, tt.currentVarScope = function() {
54872
54880
  for (var A = this.scopeStack.length - 1; ; A--) {
54873
54881
  var B = this.scopeStack[A];
54874
- if (B.flags & we)
54882
+ if (B.flags & Ee)
54875
54883
  return B;
54876
54884
  }
54877
54885
  }, tt.currentThisScope = function() {
54878
54886
  for (var A = this.scopeStack.length - 1; ; A--) {
54879
54887
  var B = this.scopeStack[A];
54880
- if (B.flags & we && !(B.flags & Se))
54888
+ if (B.flags & Ee && !(B.flags & _e))
54881
54889
  return B;
54882
54890
  }
54883
54891
  };
@@ -54939,7 +54947,7 @@ Defaulting to 2020, but this will stop working in the future.`)), B.ecmaVersion
54939
54947
  var $r = lr[zt];
54940
54948
  Nr($r);
54941
54949
  }
54942
- var Ae = Ne.prototype, It = function(B, z) {
54950
+ var Te = Ne.prototype, It = function(B, z) {
54943
54951
  this.parent = B, this.base = z || this;
54944
54952
  };
54945
54953
  It.prototype.separatedFrom = function(B) {
@@ -54993,7 +55001,7 @@ Defaulting to 2020, but this will stop working in the future.`)), B.ecmaVersion
54993
55001
  K = this.nextIndex(K, z);
54994
55002
  }
54995
55003
  return this.pos = K, !0;
54996
- }, Ae.validateRegExpFlags = function(A) {
55004
+ }, Te.validateRegExpFlags = function(A) {
54997
55005
  for (var B = A.validFlags, z = A.flags, K = !1, te = !1, me = 0; me < z.length; me++) {
54998
55006
  var ve = z.charAt(me);
54999
55007
  B.indexOf(ve) === -1 && this.raise(A.start, "Invalid regular expression flag"), z.indexOf(ve, me + 1) > -1 && this.raise(A.start, "Duplicate regular expression flag"), ve === "u" && (K = !0), ve === "v" && (te = !0);
@@ -55005,25 +55013,25 @@ Defaulting to 2020, but this will stop working in the future.`)), B.ecmaVersion
55005
55013
  return !0;
55006
55014
  return !1;
55007
55015
  }
55008
- Ae.validateRegExpPattern = function(A) {
55016
+ Te.validateRegExpPattern = function(A) {
55009
55017
  this.regexp_pattern(A), !A.switchN && this.options.ecmaVersion >= 9 && Or(A.groupNames) && (A.switchN = !0, this.regexp_pattern(A));
55010
- }, Ae.regexp_pattern = function(A) {
55018
+ }, Te.regexp_pattern = function(A) {
55011
55019
  A.pos = 0, A.lastIntValue = 0, A.lastStringValue = "", A.lastAssertionIsQuantifiable = !1, A.numCapturingParens = 0, A.maxBackReference = 0, A.groupNames = /* @__PURE__ */ Object.create(null), A.backReferenceNames.length = 0, A.branchID = null, this.regexp_disjunction(A), A.pos !== A.source.length && (A.eat(41) && A.raise("Unmatched ')'"), (A.eat(93) || A.eat(125)) && A.raise("Lone quantifier brackets")), A.maxBackReference > A.numCapturingParens && A.raise("Invalid escape");
55012
55020
  for (var B = 0, z = A.backReferenceNames; B < z.length; B += 1) {
55013
55021
  var K = z[B];
55014
55022
  A.groupNames[K] || A.raise("Invalid named capture referenced");
55015
55023
  }
55016
- }, Ae.regexp_disjunction = function(A) {
55024
+ }, Te.regexp_disjunction = function(A) {
55017
55025
  var B = this.options.ecmaVersion >= 16;
55018
55026
  for (B && (A.branchID = new It(A.branchID, null)), this.regexp_alternative(A); A.eat(124); )
55019
55027
  B && (A.branchID = A.branchID.sibling()), this.regexp_alternative(A);
55020
55028
  B && (A.branchID = A.branchID.parent), this.regexp_eatQuantifier(A, !0) && A.raise("Nothing to repeat"), A.eat(123) && A.raise("Lone quantifier brackets");
55021
- }, Ae.regexp_alternative = function(A) {
55029
+ }, Te.regexp_alternative = function(A) {
55022
55030
  for (; A.pos < A.source.length && this.regexp_eatTerm(A); )
55023
55031
  ;
55024
- }, Ae.regexp_eatTerm = function(A) {
55032
+ }, Te.regexp_eatTerm = function(A) {
55025
55033
  return this.regexp_eatAssertion(A) ? (A.lastAssertionIsQuantifiable && this.regexp_eatQuantifier(A) && A.switchU && A.raise("Invalid quantifier"), !0) : (A.switchU ? this.regexp_eatAtom(A) : this.regexp_eatExtendedAtom(A)) ? (this.regexp_eatQuantifier(A), !0) : !1;
55026
- }, Ae.regexp_eatAssertion = function(A) {
55034
+ }, Te.regexp_eatAssertion = function(A) {
55027
55035
  var B = A.pos;
55028
55036
  if (A.lastAssertionIsQuantifiable = !1, A.eat(94) || A.eat(36))
55029
55037
  return !0;
@@ -55038,11 +55046,11 @@ Defaulting to 2020, but this will stop working in the future.`)), B.ecmaVersion
55038
55046
  return this.regexp_disjunction(A), A.eat(41) || A.raise("Unterminated group"), A.lastAssertionIsQuantifiable = !z, !0;
55039
55047
  }
55040
55048
  return A.pos = B, !1;
55041
- }, Ae.regexp_eatQuantifier = function(A, B) {
55049
+ }, Te.regexp_eatQuantifier = function(A, B) {
55042
55050
  return B === void 0 && (B = !1), this.regexp_eatQuantifierPrefix(A, B) ? (A.eat(63), !0) : !1;
55043
- }, Ae.regexp_eatQuantifierPrefix = function(A, B) {
55051
+ }, Te.regexp_eatQuantifierPrefix = function(A, B) {
55044
55052
  return A.eat(42) || A.eat(43) || A.eat(63) || this.regexp_eatBracedQuantifier(A, B);
55045
- }, Ae.regexp_eatBracedQuantifier = function(A, B) {
55053
+ }, Te.regexp_eatBracedQuantifier = function(A, B) {
55046
55054
  var z = A.pos;
55047
55055
  if (A.eat(123)) {
55048
55056
  var K = 0, te = -1;
@@ -55051,9 +55059,9 @@ Defaulting to 2020, but this will stop working in the future.`)), B.ecmaVersion
55051
55059
  A.switchU && !B && A.raise("Incomplete quantifier"), A.pos = z;
55052
55060
  }
55053
55061
  return !1;
55054
- }, Ae.regexp_eatAtom = function(A) {
55062
+ }, Te.regexp_eatAtom = function(A) {
55055
55063
  return this.regexp_eatPatternCharacters(A) || A.eat(46) || this.regexp_eatReverseSolidusAtomEscape(A) || this.regexp_eatCharacterClass(A) || this.regexp_eatUncapturingGroup(A) || this.regexp_eatCapturingGroup(A);
55056
- }, Ae.regexp_eatReverseSolidusAtomEscape = function(A) {
55064
+ }, Te.regexp_eatReverseSolidusAtomEscape = function(A) {
55057
55065
  var B = A.pos;
55058
55066
  if (A.eat(92)) {
55059
55067
  if (this.regexp_eatAtomEscape(A))
@@ -55061,7 +55069,7 @@ Defaulting to 2020, but this will stop working in the future.`)), B.ecmaVersion
55061
55069
  A.pos = B;
55062
55070
  }
55063
55071
  return !1;
55064
- }, Ae.regexp_eatUncapturingGroup = function(A) {
55072
+ }, Te.regexp_eatUncapturingGroup = function(A) {
55065
55073
  var B = A.pos;
55066
55074
  if (A.eat(40)) {
55067
55075
  if (A.eat(63) && A.eat(58)) {
@@ -55072,32 +55080,32 @@ Defaulting to 2020, but this will stop working in the future.`)), B.ecmaVersion
55072
55080
  A.pos = B;
55073
55081
  }
55074
55082
  return !1;
55075
- }, Ae.regexp_eatCapturingGroup = function(A) {
55083
+ }, Te.regexp_eatCapturingGroup = function(A) {
55076
55084
  if (A.eat(40)) {
55077
55085
  if (this.options.ecmaVersion >= 9 ? this.regexp_groupSpecifier(A) : A.current() === 63 && A.raise("Invalid group"), this.regexp_disjunction(A), A.eat(41))
55078
55086
  return A.numCapturingParens += 1, !0;
55079
55087
  A.raise("Unterminated group");
55080
55088
  }
55081
55089
  return !1;
55082
- }, Ae.regexp_eatExtendedAtom = function(A) {
55090
+ }, Te.regexp_eatExtendedAtom = function(A) {
55083
55091
  return A.eat(46) || this.regexp_eatReverseSolidusAtomEscape(A) || this.regexp_eatCharacterClass(A) || this.regexp_eatUncapturingGroup(A) || this.regexp_eatCapturingGroup(A) || this.regexp_eatInvalidBracedQuantifier(A) || this.regexp_eatExtendedPatternCharacter(A);
55084
- }, Ae.regexp_eatInvalidBracedQuantifier = function(A) {
55092
+ }, Te.regexp_eatInvalidBracedQuantifier = function(A) {
55085
55093
  return this.regexp_eatBracedQuantifier(A, !0) && A.raise("Nothing to repeat"), !1;
55086
- }, Ae.regexp_eatSyntaxCharacter = function(A) {
55094
+ }, Te.regexp_eatSyntaxCharacter = function(A) {
55087
55095
  var B = A.current();
55088
55096
  return cr(B) ? (A.lastIntValue = B, A.advance(), !0) : !1;
55089
55097
  };
55090
55098
  function cr(A) {
55091
55099
  return A === 36 || A >= 40 && A <= 43 || A === 46 || A === 63 || A >= 91 && A <= 94 || A >= 123 && A <= 125;
55092
55100
  }
55093
- Ae.regexp_eatPatternCharacters = function(A) {
55101
+ Te.regexp_eatPatternCharacters = function(A) {
55094
55102
  for (var B = A.pos, z = 0; (z = A.current()) !== -1 && !cr(z); )
55095
55103
  A.advance();
55096
55104
  return A.pos !== B;
55097
- }, Ae.regexp_eatExtendedPatternCharacter = function(A) {
55105
+ }, Te.regexp_eatExtendedPatternCharacter = function(A) {
55098
55106
  var B = A.current();
55099
55107
  return B !== -1 && B !== 36 && !(B >= 40 && B <= 43) && B !== 46 && B !== 63 && B !== 91 && B !== 94 && B !== 124 ? (A.advance(), !0) : !1;
55100
- }, Ae.regexp_groupSpecifier = function(A) {
55108
+ }, Te.regexp_groupSpecifier = function(A) {
55101
55109
  if (A.eat(63)) {
55102
55110
  this.regexp_eatGroupName(A) || A.raise("Invalid group");
55103
55111
  var B = this.options.ecmaVersion >= 16, z = A.groupNames[A.lastStringValue];
@@ -55111,37 +55119,37 @@ Defaulting to 2020, but this will stop working in the future.`)), B.ecmaVersion
55111
55119
  A.raise("Duplicate capture group name");
55112
55120
  B ? (z || (A.groupNames[A.lastStringValue] = [])).push(A.branchID) : A.groupNames[A.lastStringValue] = !0;
55113
55121
  }
55114
- }, Ae.regexp_eatGroupName = function(A) {
55122
+ }, Te.regexp_eatGroupName = function(A) {
55115
55123
  if (A.lastStringValue = "", A.eat(60)) {
55116
55124
  if (this.regexp_eatRegExpIdentifierName(A) && A.eat(62))
55117
55125
  return !0;
55118
55126
  A.raise("Invalid capture group name");
55119
55127
  }
55120
55128
  return !1;
55121
- }, Ae.regexp_eatRegExpIdentifierName = function(A) {
55129
+ }, Te.regexp_eatRegExpIdentifierName = function(A) {
55122
55130
  if (A.lastStringValue = "", this.regexp_eatRegExpIdentifierStart(A)) {
55123
55131
  for (A.lastStringValue += Z(A.lastIntValue); this.regexp_eatRegExpIdentifierPart(A); )
55124
55132
  A.lastStringValue += Z(A.lastIntValue);
55125
55133
  return !0;
55126
55134
  }
55127
55135
  return !1;
55128
- }, Ae.regexp_eatRegExpIdentifierStart = function(A) {
55136
+ }, Te.regexp_eatRegExpIdentifierStart = function(A) {
55129
55137
  var B = A.pos, z = this.options.ecmaVersion >= 11, K = A.current(z);
55130
55138
  return A.advance(z), K === 92 && this.regexp_eatRegExpUnicodeEscapeSequence(A, z) && (K = A.lastIntValue), Vr(K) ? (A.lastIntValue = K, !0) : (A.pos = B, !1);
55131
55139
  };
55132
55140
  function Vr(A) {
55133
55141
  return T(A, !0) || A === 36 || A === 95;
55134
55142
  }
55135
- Ae.regexp_eatRegExpIdentifierPart = function(A) {
55143
+ Te.regexp_eatRegExpIdentifierPart = function(A) {
55136
55144
  var B = A.pos, z = this.options.ecmaVersion >= 11, K = A.current(z);
55137
55145
  return A.advance(z), K === 92 && this.regexp_eatRegExpUnicodeEscapeSequence(A, z) && (K = A.lastIntValue), Dr(K) ? (A.lastIntValue = K, !0) : (A.pos = B, !1);
55138
55146
  };
55139
55147
  function Dr(A) {
55140
55148
  return E(A, !0) || A === 36 || A === 95 || A === 8204 || A === 8205;
55141
55149
  }
55142
- Ae.regexp_eatAtomEscape = function(A) {
55150
+ Te.regexp_eatAtomEscape = function(A) {
55143
55151
  return this.regexp_eatBackReference(A) || this.regexp_eatCharacterClassEscape(A) || this.regexp_eatCharacterEscape(A) || A.switchN && this.regexp_eatKGroupName(A) ? !0 : (A.switchU && (A.current() === 99 && A.raise("Invalid unicode escape"), A.raise("Invalid escape")), !1);
55144
- }, Ae.regexp_eatBackReference = function(A) {
55152
+ }, Te.regexp_eatBackReference = function(A) {
55145
55153
  var B = A.pos;
55146
55154
  if (this.regexp_eatDecimalEscape(A)) {
55147
55155
  var z = A.lastIntValue;
@@ -55152,16 +55160,16 @@ Defaulting to 2020, but this will stop working in the future.`)), B.ecmaVersion
55152
55160
  A.pos = B;
55153
55161
  }
55154
55162
  return !1;
55155
- }, Ae.regexp_eatKGroupName = function(A) {
55163
+ }, Te.regexp_eatKGroupName = function(A) {
55156
55164
  if (A.eat(107)) {
55157
55165
  if (this.regexp_eatGroupName(A))
55158
55166
  return A.backReferenceNames.push(A.lastStringValue), !0;
55159
55167
  A.raise("Invalid named reference");
55160
55168
  }
55161
55169
  return !1;
55162
- }, Ae.regexp_eatCharacterEscape = function(A) {
55170
+ }, Te.regexp_eatCharacterEscape = function(A) {
55163
55171
  return this.regexp_eatControlEscape(A) || this.regexp_eatCControlLetter(A) || this.regexp_eatZero(A) || this.regexp_eatHexEscapeSequence(A) || this.regexp_eatRegExpUnicodeEscapeSequence(A, !1) || !A.switchU && this.regexp_eatLegacyOctalEscapeSequence(A) || this.regexp_eatIdentityEscape(A);
55164
- }, Ae.regexp_eatCControlLetter = function(A) {
55172
+ }, Te.regexp_eatCControlLetter = function(A) {
55165
55173
  var B = A.pos;
55166
55174
  if (A.eat(99)) {
55167
55175
  if (this.regexp_eatControlLetter(A))
@@ -55169,19 +55177,19 @@ Defaulting to 2020, but this will stop working in the future.`)), B.ecmaVersion
55169
55177
  A.pos = B;
55170
55178
  }
55171
55179
  return !1;
55172
- }, Ae.regexp_eatZero = function(A) {
55180
+ }, Te.regexp_eatZero = function(A) {
55173
55181
  return A.current() === 48 && !Mt(A.lookahead()) ? (A.lastIntValue = 0, A.advance(), !0) : !1;
55174
- }, Ae.regexp_eatControlEscape = function(A) {
55182
+ }, Te.regexp_eatControlEscape = function(A) {
55175
55183
  var B = A.current();
55176
55184
  return B === 116 ? (A.lastIntValue = 9, A.advance(), !0) : B === 110 ? (A.lastIntValue = 10, A.advance(), !0) : B === 118 ? (A.lastIntValue = 11, A.advance(), !0) : B === 102 ? (A.lastIntValue = 12, A.advance(), !0) : B === 114 ? (A.lastIntValue = 13, A.advance(), !0) : !1;
55177
- }, Ae.regexp_eatControlLetter = function(A) {
55185
+ }, Te.regexp_eatControlLetter = function(A) {
55178
55186
  var B = A.current();
55179
55187
  return ur(B) ? (A.lastIntValue = B % 32, A.advance(), !0) : !1;
55180
55188
  };
55181
55189
  function ur(A) {
55182
55190
  return A >= 65 && A <= 90 || A >= 97 && A <= 122;
55183
55191
  }
55184
- Ae.regexp_eatRegExpUnicodeEscapeSequence = function(A, B) {
55192
+ Te.regexp_eatRegExpUnicodeEscapeSequence = function(A, B) {
55185
55193
  B === void 0 && (B = !1);
55186
55194
  var z = A.pos, K = B || A.switchU;
55187
55195
  if (A.eat(117)) {
@@ -55207,12 +55215,12 @@ Defaulting to 2020, but this will stop working in the future.`)), B.ecmaVersion
55207
55215
  function Br(A) {
55208
55216
  return A >= 0 && A <= 1114111;
55209
55217
  }
55210
- Ae.regexp_eatIdentityEscape = function(A) {
55218
+ Te.regexp_eatIdentityEscape = function(A) {
55211
55219
  if (A.switchU)
55212
55220
  return this.regexp_eatSyntaxCharacter(A) ? !0 : A.eat(47) ? (A.lastIntValue = 47, !0) : !1;
55213
55221
  var B = A.current();
55214
55222
  return B !== 99 && (!A.switchN || B !== 107) ? (A.lastIntValue = B, A.advance(), !0) : !1;
55215
- }, Ae.regexp_eatDecimalEscape = function(A) {
55223
+ }, Te.regexp_eatDecimalEscape = function(A) {
55216
55224
  A.lastIntValue = 0;
55217
55225
  var B = A.current();
55218
55226
  if (B >= 49 && B <= 57) {
@@ -55224,7 +55232,7 @@ Defaulting to 2020, but this will stop working in the future.`)), B.ecmaVersion
55224
55232
  return !1;
55225
55233
  };
55226
55234
  var dr = 0, et = 1, Ye = 2;
55227
- Ae.regexp_eatCharacterClassEscape = function(A) {
55235
+ Te.regexp_eatCharacterClassEscape = function(A) {
55228
55236
  var B = A.current();
55229
55237
  if (Lr(B))
55230
55238
  return A.lastIntValue = -1, A.advance(), et;
@@ -55241,7 +55249,7 @@ Defaulting to 2020, but this will stop working in the future.`)), B.ecmaVersion
55241
55249
  function Lr(A) {
55242
55250
  return A === 100 || A === 68 || A === 115 || A === 83 || A === 119 || A === 87;
55243
55251
  }
55244
- Ae.regexp_eatUnicodePropertyValueExpression = function(A) {
55252
+ Te.regexp_eatUnicodePropertyValueExpression = function(A) {
55245
55253
  var B = A.pos;
55246
55254
  if (this.regexp_eatUnicodePropertyName(A) && A.eat(61)) {
55247
55255
  var z = A.lastStringValue;
@@ -55255,15 +55263,15 @@ Defaulting to 2020, but this will stop working in the future.`)), B.ecmaVersion
55255
55263
  return this.regexp_validateUnicodePropertyNameOrValue(A, te);
55256
55264
  }
55257
55265
  return dr;
55258
- }, Ae.regexp_validateUnicodePropertyNameAndValue = function(A, B, z) {
55266
+ }, Te.regexp_validateUnicodePropertyNameAndValue = function(A, B, z) {
55259
55267
  ee(A.unicodeProperties.nonBinary, B) || A.raise("Invalid property name"), A.unicodeProperties.nonBinary[B].test(z) || A.raise("Invalid property value");
55260
- }, Ae.regexp_validateUnicodePropertyNameOrValue = function(A, B) {
55268
+ }, Te.regexp_validateUnicodePropertyNameOrValue = function(A, B) {
55261
55269
  if (A.unicodeProperties.binary.test(B))
55262
55270
  return et;
55263
55271
  if (A.switchV && A.unicodeProperties.binaryOfStrings.test(B))
55264
55272
  return Ye;
55265
55273
  A.raise("Invalid property name");
55266
- }, Ae.regexp_eatUnicodePropertyName = function(A) {
55274
+ }, Te.regexp_eatUnicodePropertyName = function(A) {
55267
55275
  var B = 0;
55268
55276
  for (A.lastStringValue = ""; pr(B = A.current()); )
55269
55277
  A.lastStringValue += Z(B), A.advance();
@@ -55272,7 +55280,7 @@ Defaulting to 2020, but this will stop working in the future.`)), B.ecmaVersion
55272
55280
  function pr(A) {
55273
55281
  return ur(A) || A === 95;
55274
55282
  }
55275
- Ae.regexp_eatUnicodePropertyValue = function(A) {
55283
+ Te.regexp_eatUnicodePropertyValue = function(A) {
55276
55284
  var B = 0;
55277
55285
  for (A.lastStringValue = ""; jr(B = A.current()); )
55278
55286
  A.lastStringValue += Z(B), A.advance();
@@ -55281,17 +55289,17 @@ Defaulting to 2020, but this will stop working in the future.`)), B.ecmaVersion
55281
55289
  function jr(A) {
55282
55290
  return pr(A) || Mt(A);
55283
55291
  }
55284
- Ae.regexp_eatLoneUnicodePropertyNameOrValue = function(A) {
55292
+ Te.regexp_eatLoneUnicodePropertyNameOrValue = function(A) {
55285
55293
  return this.regexp_eatUnicodePropertyValue(A);
55286
- }, Ae.regexp_eatCharacterClass = function(A) {
55294
+ }, Te.regexp_eatCharacterClass = function(A) {
55287
55295
  if (A.eat(91)) {
55288
55296
  var B = A.eat(94), z = this.regexp_classContents(A);
55289
55297
  return A.eat(93) || A.raise("Unterminated character class"), B && z === Ye && A.raise("Negated character class may contain strings"), !0;
55290
55298
  }
55291
55299
  return !1;
55292
- }, Ae.regexp_classContents = function(A) {
55300
+ }, Te.regexp_classContents = function(A) {
55293
55301
  return A.current() === 93 ? et : A.switchV ? this.regexp_classSetExpression(A) : (this.regexp_nonEmptyClassRanges(A), et);
55294
- }, Ae.regexp_nonEmptyClassRanges = function(A) {
55302
+ }, Te.regexp_nonEmptyClassRanges = function(A) {
55295
55303
  for (; this.regexp_eatClassAtom(A); ) {
55296
55304
  var B = A.lastIntValue;
55297
55305
  if (A.eat(45) && this.regexp_eatClassAtom(A)) {
@@ -55299,7 +55307,7 @@ Defaulting to 2020, but this will stop working in the future.`)), B.ecmaVersion
55299
55307
  A.switchU && (B === -1 || z === -1) && A.raise("Invalid character class"), B !== -1 && z !== -1 && B > z && A.raise("Range out of order in character class");
55300
55308
  }
55301
55309
  }
55302
- }, Ae.regexp_eatClassAtom = function(A) {
55310
+ }, Te.regexp_eatClassAtom = function(A) {
55303
55311
  var B = A.pos;
55304
55312
  if (A.eat(92)) {
55305
55313
  if (this.regexp_eatClassEscape(A))
@@ -55312,7 +55320,7 @@ Defaulting to 2020, but this will stop working in the future.`)), B.ecmaVersion
55312
55320
  }
55313
55321
  var K = A.current();
55314
55322
  return K !== 93 ? (A.lastIntValue = K, A.advance(), !0) : !1;
55315
- }, Ae.regexp_eatClassEscape = function(A) {
55323
+ }, Te.regexp_eatClassEscape = function(A) {
55316
55324
  var B = A.pos;
55317
55325
  if (A.eat(98))
55318
55326
  return A.lastIntValue = 8, !0;
@@ -55324,7 +55332,7 @@ Defaulting to 2020, but this will stop working in the future.`)), B.ecmaVersion
55324
55332
  A.pos = B;
55325
55333
  }
55326
55334
  return this.regexp_eatCharacterClassEscape(A) || this.regexp_eatCharacterEscape(A);
55327
- }, Ae.regexp_classSetExpression = function(A) {
55335
+ }, Te.regexp_classSetExpression = function(A) {
55328
55336
  var B = et, z;
55329
55337
  if (!this.regexp_eatClassSetRange(A))
55330
55338
  if (z = this.regexp_eatClassSetOperand(A)) {
@@ -55350,7 +55358,7 @@ Defaulting to 2020, but this will stop working in the future.`)), B.ecmaVersion
55350
55358
  return B;
55351
55359
  z === Ye && (B = Ye);
55352
55360
  }
55353
- }, Ae.regexp_eatClassSetRange = function(A) {
55361
+ }, Te.regexp_eatClassSetRange = function(A) {
55354
55362
  var B = A.pos;
55355
55363
  if (this.regexp_eatClassSetCharacter(A)) {
55356
55364
  var z = A.lastIntValue;
@@ -55361,9 +55369,9 @@ Defaulting to 2020, but this will stop working in the future.`)), B.ecmaVersion
55361
55369
  A.pos = B;
55362
55370
  }
55363
55371
  return !1;
55364
- }, Ae.regexp_eatClassSetOperand = function(A) {
55372
+ }, Te.regexp_eatClassSetOperand = function(A) {
55365
55373
  return this.regexp_eatClassSetCharacter(A) ? et : this.regexp_eatClassStringDisjunction(A) || this.regexp_eatNestedClass(A);
55366
- }, Ae.regexp_eatNestedClass = function(A) {
55374
+ }, Te.regexp_eatNestedClass = function(A) {
55367
55375
  var B = A.pos;
55368
55376
  if (A.eat(91)) {
55369
55377
  var z = A.eat(94), K = this.regexp_classContents(A);
@@ -55378,7 +55386,7 @@ Defaulting to 2020, but this will stop working in the future.`)), B.ecmaVersion
55378
55386
  A.pos = B;
55379
55387
  }
55380
55388
  return null;
55381
- }, Ae.regexp_eatClassStringDisjunction = function(A) {
55389
+ }, Te.regexp_eatClassStringDisjunction = function(A) {
55382
55390
  var B = A.pos;
55383
55391
  if (A.eatChars([92, 113])) {
55384
55392
  if (A.eat(123)) {
@@ -55390,15 +55398,15 @@ Defaulting to 2020, but this will stop working in the future.`)), B.ecmaVersion
55390
55398
  A.pos = B;
55391
55399
  }
55392
55400
  return null;
55393
- }, Ae.regexp_classStringDisjunctionContents = function(A) {
55401
+ }, Te.regexp_classStringDisjunctionContents = function(A) {
55394
55402
  for (var B = this.regexp_classString(A); A.eat(124); )
55395
55403
  this.regexp_classString(A) === Ye && (B = Ye);
55396
55404
  return B;
55397
- }, Ae.regexp_classString = function(A) {
55405
+ }, Te.regexp_classString = function(A) {
55398
55406
  for (var B = 0; this.regexp_eatClassSetCharacter(A); )
55399
55407
  B++;
55400
55408
  return B === 1 ? et : Ye;
55401
- }, Ae.regexp_eatClassSetCharacter = function(A) {
55409
+ }, Te.regexp_eatClassSetCharacter = function(A) {
55402
55410
  var B = A.pos;
55403
55411
  if (A.eat(92))
55404
55412
  return this.regexp_eatCharacterEscape(A) || this.regexp_eatClassSetReservedPunctuator(A) ? !0 : A.eat(98) ? (A.lastIntValue = 8, !0) : (A.pos = B, !1);
@@ -55411,17 +55419,17 @@ Defaulting to 2020, but this will stop working in the future.`)), B.ecmaVersion
55411
55419
  function qr(A) {
55412
55420
  return A === 40 || A === 41 || A === 45 || A === 47 || A >= 91 && A <= 93 || A >= 123 && A <= 125;
55413
55421
  }
55414
- Ae.regexp_eatClassSetReservedPunctuator = function(A) {
55422
+ Te.regexp_eatClassSetReservedPunctuator = function(A) {
55415
55423
  var B = A.current();
55416
55424
  return Hr(B) ? (A.lastIntValue = B, A.advance(), !0) : !1;
55417
55425
  };
55418
55426
  function Hr(A) {
55419
55427
  return A === 33 || A === 35 || A === 37 || A === 38 || A === 44 || A === 45 || A >= 58 && A <= 62 || A === 64 || A === 96 || A === 126;
55420
55428
  }
55421
- Ae.regexp_eatClassControlLetter = function(A) {
55429
+ Te.regexp_eatClassControlLetter = function(A) {
55422
55430
  var B = A.current();
55423
55431
  return Mt(B) || B === 95 ? (A.lastIntValue = B % 32, A.advance(), !0) : !1;
55424
- }, Ae.regexp_eatHexEscapeSequence = function(A) {
55432
+ }, Te.regexp_eatHexEscapeSequence = function(A) {
55425
55433
  var B = A.pos;
55426
55434
  if (A.eat(120)) {
55427
55435
  if (this.regexp_eatFixedHexDigits(A, 2))
@@ -55429,7 +55437,7 @@ Defaulting to 2020, but this will stop working in the future.`)), B.ecmaVersion
55429
55437
  A.switchU && A.raise("Invalid escape"), A.pos = B;
55430
55438
  }
55431
55439
  return !1;
55432
- }, Ae.regexp_eatDecimalDigits = function(A) {
55440
+ }, Te.regexp_eatDecimalDigits = function(A) {
55433
55441
  var B = A.pos, z = 0;
55434
55442
  for (A.lastIntValue = 0; Mt(z = A.current()); )
55435
55443
  A.lastIntValue = 10 * A.lastIntValue + (z - 48), A.advance();
@@ -55438,7 +55446,7 @@ Defaulting to 2020, but this will stop working in the future.`)), B.ecmaVersion
55438
55446
  function Mt(A) {
55439
55447
  return A >= 48 && A <= 57;
55440
55448
  }
55441
- Ae.regexp_eatHexDigits = function(A) {
55449
+ Te.regexp_eatHexDigits = function(A) {
55442
55450
  var B = A.pos, z = 0;
55443
55451
  for (A.lastIntValue = 0; mr(z = A.current()); )
55444
55452
  A.lastIntValue = 16 * A.lastIntValue + yr(z), A.advance();
@@ -55450,7 +55458,7 @@ Defaulting to 2020, but this will stop working in the future.`)), B.ecmaVersion
55450
55458
  function yr(A) {
55451
55459
  return A >= 65 && A <= 70 ? 10 + (A - 65) : A >= 97 && A <= 102 ? 10 + (A - 97) : A - 48;
55452
55460
  }
55453
- Ae.regexp_eatLegacyOctalEscapeSequence = function(A) {
55461
+ Te.regexp_eatLegacyOctalEscapeSequence = function(A) {
55454
55462
  if (this.regexp_eatOctalDigit(A)) {
55455
55463
  var B = A.lastIntValue;
55456
55464
  if (this.regexp_eatOctalDigit(A)) {
@@ -55461,14 +55469,14 @@ Defaulting to 2020, but this will stop working in the future.`)), B.ecmaVersion
55461
55469
  return !0;
55462
55470
  }
55463
55471
  return !1;
55464
- }, Ae.regexp_eatOctalDigit = function(A) {
55472
+ }, Te.regexp_eatOctalDigit = function(A) {
55465
55473
  var B = A.current();
55466
55474
  return gr(B) ? (A.lastIntValue = B - 48, A.advance(), !0) : (A.lastIntValue = 0, !1);
55467
55475
  };
55468
55476
  function gr(A) {
55469
55477
  return A >= 48 && A <= 55;
55470
55478
  }
55471
- Ae.regexp_eatFixedHexDigits = function(A, B) {
55479
+ Te.regexp_eatFixedHexDigits = function(A, B) {
55472
55480
  var z = A.pos;
55473
55481
  A.lastIntValue = 0;
55474
55482
  for (var K = 0; K < B; ++K) {
@@ -55722,17 +55730,17 @@ Defaulting to 2020, but this will stop working in the future.`)), B.ecmaVersion
55722
55730
  this.containsEsc && this.unexpected(me);
55723
55731
  var Pe = this.regexpState || (this.regexpState = new Qe(this));
55724
55732
  Pe.reset(z, te, ve), this.validateRegExpFlags(Pe), this.validateRegExpPattern(Pe);
55725
- var Ee = null;
55733
+ var Ce = null;
55726
55734
  try {
55727
- Ee = new RegExp(te, ve);
55735
+ Ce = new RegExp(te, ve);
55728
55736
  } catch {
55729
55737
  }
55730
- return this.finishToken(R.regexp, { pattern: te, flags: ve, value: Ee });
55738
+ return this.finishToken(R.regexp, { pattern: te, flags: ve, value: Ce });
55731
55739
  }, Oe.readInt = function(A, B, z) {
55732
- for (var K = this.options.ecmaVersion >= 12 && B === void 0, te = z && this.input.charCodeAt(this.pos) === 48, me = this.pos, ve = 0, Pe = 0, Ee = 0, $e = B ?? 1 / 0; Ee < $e; ++Ee, ++this.pos) {
55740
+ for (var K = this.options.ecmaVersion >= 12 && B === void 0, te = z && this.input.charCodeAt(this.pos) === 48, me = this.pos, ve = 0, Pe = 0, Ce = 0, $e = B ?? 1 / 0; Ce < $e; ++Ce, ++this.pos) {
55733
55741
  var ke = this.input.charCodeAt(this.pos), ze = void 0;
55734
55742
  if (K && ke === 95) {
55735
- te && this.raiseRecoverable(this.pos, "Numeric separator is not allowed in legacy octal numeric literals"), Pe === 95 && this.raiseRecoverable(this.pos, "Numeric separator must be exactly one underscore"), Ee === 0 && this.raiseRecoverable(this.pos, "Numeric separator is not allowed at the first of digits"), Pe = ke;
55743
+ te && this.raiseRecoverable(this.pos, "Numeric separator is not allowed in legacy octal numeric literals"), Pe === 95 && this.raiseRecoverable(this.pos, "Numeric separator must be exactly one underscore"), Ce === 0 && this.raiseRecoverable(this.pos, "Numeric separator is not allowed at the first of digits"), Pe = ke;
55736
55744
  continue;
55737
55745
  }
55738
55746
  if (ke >= 97 ? ze = ke - 97 + 10 : ke >= 65 ? ze = ke - 65 + 10 : ke >= 48 && ke <= 57 ? ze = ke - 48 : ze = 1 / 0, ze >= A)
@@ -60334,7 +60342,7 @@ var ITEM_ALIGNED_POSITION_NAME = "SelectItemAlignedPosition", SelectItemAlignedP
60334
60342
  if (u.trigger && u.valueNode && f && m && E && C && I) {
60335
60343
  const D = u.trigger.getBoundingClientRect(), L = m.getBoundingClientRect(), j = u.valueNode.getBoundingClientRect(), q = I.getBoundingClientRect();
60336
60344
  if (u.dir !== "rtl") {
60337
- const pe = q.left - L.left, ae = j.left - pe, Se = D.left - ae, oe = D.width + Se, ye = Math.max(oe, L.width), xe = window.innerWidth - CONTENT_MARGIN, _e = clamp(ae, [
60345
+ const pe = q.left - L.left, ae = j.left - pe, _e = D.left - ae, oe = D.width + _e, ye = Math.max(oe, L.width), xe = window.innerWidth - CONTENT_MARGIN, Se = clamp(ae, [
60338
60346
  CONTENT_MARGIN,
60339
60347
  // Prevents the content from going off the starting edge of the
60340
60348
  // viewport. It may still go off the ending edge, but this can be
@@ -60343,33 +60351,33 @@ var ITEM_ALIGNED_POSITION_NAME = "SelectItemAlignedPosition", SelectItemAlignedP
60343
60351
  // https://github.com/radix-ui/primitives/issues/2049
60344
60352
  Math.max(CONTENT_MARGIN, xe - ye)
60345
60353
  ]);
60346
- f.style.minWidth = oe + "px", f.style.left = _e + "px";
60354
+ f.style.minWidth = oe + "px", f.style.left = Se + "px";
60347
60355
  } else {
60348
- const pe = L.right - q.right, ae = window.innerWidth - j.right - pe, Se = window.innerWidth - D.right - ae, oe = D.width + Se, ye = Math.max(oe, L.width), xe = window.innerWidth - CONTENT_MARGIN, _e = clamp(ae, [
60356
+ const pe = L.right - q.right, ae = window.innerWidth - j.right - pe, _e = window.innerWidth - D.right - ae, oe = D.width + _e, ye = Math.max(oe, L.width), xe = window.innerWidth - CONTENT_MARGIN, Se = clamp(ae, [
60349
60357
  CONTENT_MARGIN,
60350
60358
  Math.max(CONTENT_MARGIN, xe - ye)
60351
60359
  ]);
60352
- f.style.minWidth = oe + "px", f.style.right = _e + "px";
60360
+ f.style.minWidth = oe + "px", f.style.right = Se + "px";
60353
60361
  }
60354
60362
  const F = _(), H = window.innerHeight - CONTENT_MARGIN * 2, U = E.scrollHeight, G = window.getComputedStyle(m), J = parseInt(G.borderTopWidth, 10), ee = parseInt(G.paddingTop, 10), ie = parseInt(G.borderBottomWidth, 10), W = parseInt(G.paddingBottom, 10), Q = J + ee + U + W + ie, Z = Math.min(C.offsetHeight * 5, Q), ne = window.getComputedStyle(E), se = parseInt(ne.paddingTop, 10), ue = parseInt(ne.paddingBottom, 10), fe = D.top + D.height / 2 - CONTENT_MARGIN, de = H - fe, be = C.offsetHeight / 2, ce = C.offsetTop + be, ge = J + ee + ce, he = Q - ge;
60355
60363
  if (ge <= fe) {
60356
60364
  const pe = F.length > 0 && C === F[F.length - 1].ref.current;
60357
60365
  f.style.bottom = "0px";
60358
- const ae = m.clientHeight - E.offsetTop - E.offsetHeight, Se = Math.max(
60366
+ const ae = m.clientHeight - E.offsetTop - E.offsetHeight, _e = Math.max(
60359
60367
  de,
60360
60368
  be + // viewport might have padding bottom, include it to avoid a scrollable viewport
60361
60369
  (pe ? ue : 0) + ae + ie
60362
- ), oe = ge + Se;
60370
+ ), oe = ge + _e;
60363
60371
  f.style.height = oe + "px";
60364
60372
  } else {
60365
60373
  const pe = F.length > 0 && C === F[0].ref.current;
60366
60374
  f.style.top = "0px";
60367
- const Se = Math.max(
60375
+ const _e = Math.max(
60368
60376
  fe,
60369
60377
  J + E.offsetTop + // viewport might have padding top, include it to avoid a scrollable viewport
60370
60378
  (pe ? se : 0) + be
60371
60379
  ) + he;
60372
- f.style.height = Se + "px", E.scrollTop = ge - fe + E.offsetTop;
60380
+ f.style.height = _e + "px", E.scrollTop = ge - fe + E.offsetTop;
60373
60381
  }
60374
60382
  f.style.margin = `${CONTENT_MARGIN}px 0`, f.style.minHeight = Z + "px", f.style.maxHeight = H + "px", o == null || o(), requestAnimationFrame(() => S.current = !0);
60375
60383
  }