randmarcomps 1.176.0 → 1.178.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.
- package/dist/randmarcomps.js +329 -330
- package/dist/randmarcomps.umd.cjs +16 -16
- package/package.json +1 -1
package/dist/randmarcomps.js
CHANGED
|
@@ -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
|
|
80
|
-
if (Fe.length !== 0 &&
|
|
81
|
-
let Re =
|
|
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 =
|
|
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 :
|
|
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
|
|
103
|
-
if (
|
|
104
|
-
let
|
|
105
|
-
$(
|
|
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
|
|
108
|
+
let Se = () => {
|
|
109
109
|
ye && ye.style.setProperty("--root-height", `${oe.clientHeight}px`);
|
|
110
110
|
};
|
|
111
|
-
|
|
112
|
-
let
|
|
113
|
-
return
|
|
114
|
-
document.removeEventListener("selectionchange", xe, { capture: !0 }),
|
|
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,
|
|
120
|
+
var oe, ye, xe, Se;
|
|
121
121
|
(oe = U.current) == null || oe.dispatchEvent(new Event("input"));
|
|
122
|
-
let
|
|
123
|
-
|
|
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
|
|
145
|
-
if (!_ && (!J.current.isIOS || !oe.clipboardData || !
|
|
146
|
-
let
|
|
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
|
|
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
|
-
|
|
150
|
+
Se.value = Me, F(Me);
|
|
151
151
|
let Fe = Math.min(Me.length, u - 1), He = Me.length;
|
|
152
|
-
|
|
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
|
|
171
|
-
return { char:
|
|
172
|
-
}), isFocused: Q, isHovering: !I.disabled && ie }), [Q, ie, u, ue, ne, I.disabled, j]),
|
|
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 },
|
|
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, (
|
|
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: (...
|
|
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:
|
|
6484
|
-
const { width:
|
|
6485
|
-
|
|
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
|
|
10271
|
-
switch (
|
|
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
|
|
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
|
|
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 =
|
|
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 = [],
|
|
16561
|
-
for (pe instanceof Date || (pe = /* @__PURE__ */ new Date(+pe)); ++
|
|
16562
|
-
he.charCodeAt(
|
|
16563
|
-
return ae.push(he.slice(oe,
|
|
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),
|
|
16569
|
-
if (
|
|
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
|
|
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(
|
|
16583
|
-
if (xe = le.charAt(
|
|
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
|
|
19849
|
-
switch (
|
|
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
|
|
19870
|
+
return _e;
|
|
19871
19871
|
}
|
|
19872
19872
|
}
|
|
19873
19873
|
case n:
|
|
19874
|
-
return
|
|
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
|
|
20100
|
-
!ne[
|
|
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[
|
|
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
|
|
20189
|
-
return
|
|
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
|
|
20230
|
-
return new E("Invalid " + ce + " `" + ge + "` supplied to " + ("`" + be + "`" +
|
|
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,
|
|
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,
|
|
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:
|
|
26684
|
+
bandSize: we !== _e ? we : _e,
|
|
26685
26685
|
sizeList: ye[be],
|
|
26686
|
-
maxBarSize:
|
|
26687
|
-
}),
|
|
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 -
|
|
26690
|
+
offset: Be.position.offset - we / 2
|
|
26691
26691
|
})
|
|
26692
26692
|
});
|
|
26693
26693
|
}));
|
|
26694
26694
|
}
|
|
26695
|
-
var
|
|
26696
|
-
|
|
26697
|
-
props: _objectSpread(_objectSpread({},
|
|
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:
|
|
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
|
|
27065
|
-
pe = findEntryInArray(Q,
|
|
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
|
-
},
|
|
27086
|
-
activeIndex:
|
|
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(
|
|
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,
|
|
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] =
|
|
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,
|
|
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] *=
|
|
29145
|
-
var ye = oe[0], xe = oe[1],
|
|
29146
|
-
return oe[0] = ye * W + xe * se +
|
|
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,
|
|
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
|
|
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 (
|
|
30881
|
-
|
|
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 ?
|
|
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 (
|
|
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),
|
|
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 (
|
|
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
|
-
|
|
30900
|
+
Se = F[l].line;
|
|
30901
30901
|
}
|
|
30902
|
-
|
|
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) *
|
|
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] &&
|
|
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" ?
|
|
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,
|
|
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,
|
|
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 =
|
|
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:
|
|
41785
|
+
argSchema: _e,
|
|
41786
41786
|
rawResponseSchema: oe,
|
|
41787
41787
|
responseSchema: ye
|
|
41788
41788
|
} = Q;
|
|
41789
|
-
if (
|
|
41790
|
-
|
|
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, (
|
|
41796
|
-
const
|
|
41797
|
-
let
|
|
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
|
-
|
|
41799
|
+
we = `${Ee} did not return anything.`;
|
|
41800
41800
|
else if (typeof pe != "object")
|
|
41801
|
-
|
|
41801
|
+
we = `${Ee} did not return an object.`;
|
|
41802
41802
|
else if (pe.error && pe.data)
|
|
41803
|
-
|
|
41803
|
+
we = `${Ee} returned an object containing both \`error\` and \`result\`.`;
|
|
41804
41804
|
else if (pe.error === void 0 && pe.data === void 0)
|
|
41805
|
-
|
|
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
|
|
41808
|
-
if (
|
|
41809
|
-
|
|
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
|
-
|
|
41813
|
-
${
|
|
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
|
|
41823
|
-
return ye && !ne && (
|
|
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:
|
|
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
|
|
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 ?
|
|
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
|
|
41841
|
-
ae = await ge(xe,
|
|
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:
|
|
41845
|
-
} = F,
|
|
41846
|
-
ae = await ge(xe,
|
|
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 <
|
|
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((
|
|
52532
|
-
var
|
|
52531
|
+
}, xe = u.map((Se) => {
|
|
52532
|
+
var Ee;
|
|
52533
52533
|
return {
|
|
52534
|
-
partner1:
|
|
52535
|
-
partner2:
|
|
52536
|
-
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:
|
|
52538
|
+
pending: Se.Status != "Approved",
|
|
52539
52539
|
historyFetched: !1,
|
|
52540
52540
|
messages: [],
|
|
52541
|
-
conversationID:
|
|
52541
|
+
conversationID: Se.ConversationId
|
|
52542
52542
|
};
|
|
52543
52543
|
});
|
|
52544
52544
|
setTimeout(() => {
|
|
52545
|
-
var
|
|
52546
|
-
return (
|
|
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((
|
|
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((
|
|
52574
|
-
let
|
|
52575
|
-
const
|
|
52576
|
-
return
|
|
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
|
-
|
|
52598
|
-
|
|
52599
|
-
|
|
52600
|
-
|
|
52601
|
-
|
|
52602
|
-
|
|
52603
|
-
|
|
52604
|
-
|
|
52605
|
-
|
|
52606
|
-
|
|
52607
|
-
|
|
52608
|
-
|
|
52609
|
-
|
|
52610
|
-
|
|
52611
|
-
|
|
52612
|
-
|
|
52613
|
-
|
|
52614
|
-
|
|
52615
|
-
|
|
52616
|
-
|
|
52617
|
-
|
|
52618
|
-
|
|
52619
|
-
|
|
52620
|
-
|
|
52621
|
-
|
|
52622
|
-
|
|
52623
|
-
|
|
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
|
-
}, [
|
|
52626
|
-
const ce = (ye, xe,
|
|
52627
|
-
const
|
|
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((
|
|
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
|
|
52639
|
-
return
|
|
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((
|
|
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((
|
|
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
|
-
},
|
|
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:
|
|
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:
|
|
52718
|
+
/* @__PURE__ */ jsx("div", { className: "ml-3 font-medium", children: _e == null ? void 0 : _e.name })
|
|
52711
52719
|
] }) }),
|
|
52712
|
-
|
|
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: (
|
|
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
|
-
(
|
|
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:
|
|
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:
|
|
52755
|
-
disabled: N !== "" || (
|
|
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
|
}
|
|
@@ -52946,17 +52954,8 @@ function ManufacturerCard({
|
|
|
52946
52954
|
/* @__PURE__ */ jsx("p", { children: b(e.SalesData.SalesLast30Days) })
|
|
52947
52955
|
] })
|
|
52948
52956
|
] }) }),
|
|
52949
|
-
(o ||
|
|
52950
|
-
/* @__PURE__ */
|
|
52951
|
-
t && /* @__PURE__ */ jsx(TooltipProvider, { children: /* @__PURE__ */ jsxs(Tooltip$1, { children: [
|
|
52952
|
-
/* @__PURE__ */ jsx(TooltipTrigger, { asChild: !0, children: /* @__PURE__ */ jsx(Button, { size: "icon", asChild: !0, children: /* @__PURE__ */ jsxs(Link, { to: t, target: n ? "_blank" : "_self", children: [
|
|
52953
|
-
/* @__PURE__ */ jsx(Eye, { className: "h-4 w-4" }),
|
|
52954
|
-
/* @__PURE__ */ jsx("span", { className: "sr-only", children: "View Manufacturer" })
|
|
52955
|
-
] }) }) }),
|
|
52956
|
-
/* @__PURE__ */ jsx(TooltipContent, { children: /* @__PURE__ */ jsx("p", { children: "View Manufacturer" }) })
|
|
52957
|
-
] }) }),
|
|
52958
|
-
o && o
|
|
52959
|
-
] }),
|
|
52957
|
+
(o || l) && /* @__PURE__ */ jsxs(CardFooter, { className: "flex pt-2 gap-2 justify-between mt-auto", children: [
|
|
52958
|
+
/* @__PURE__ */ jsx("div", { className: "flex items-center gap-2", children: o && o }),
|
|
52960
52959
|
l && /* @__PURE__ */ jsx("div", { children: l })
|
|
52961
52960
|
] })
|
|
52962
52961
|
] });
|
|
@@ -53697,20 +53696,20 @@ Defaulting to 2020, but this will stop working in the future.`)), B.ecmaVersion
|
|
|
53697
53696
|
}
|
|
53698
53697
|
function ge(A, B) {
|
|
53699
53698
|
return function(z, K, te, me, ve, Pe) {
|
|
53700
|
-
var
|
|
53699
|
+
var Ce = {
|
|
53701
53700
|
type: z ? "Block" : "Line",
|
|
53702
53701
|
value: K,
|
|
53703
53702
|
start: te,
|
|
53704
53703
|
end: me
|
|
53705
53704
|
};
|
|
53706
|
-
A.locations && (
|
|
53705
|
+
A.locations && (Ce.loc = new ue(this, ve, Pe)), A.ranges && (Ce.range = [te, me]), B.push(Ce);
|
|
53707
53706
|
};
|
|
53708
53707
|
}
|
|
53709
|
-
var he = 1, le = 2, pe = 4, ae = 8,
|
|
53710
|
-
function
|
|
53708
|
+
var he = 1, le = 2, pe = 4, ae = 8, _e = 16, oe = 32, ye = 64, xe = 128, Se = 256, Ee = he | le | Se;
|
|
53709
|
+
function we(A, B) {
|
|
53711
53710
|
return le | (A ? pe : 0) | (B ? ae : 0);
|
|
53712
53711
|
}
|
|
53713
|
-
var
|
|
53712
|
+
var Ae = 0, Be = 1, Me = 2, Fe = 3, He = 4, Le = 5, Ne = function(B, z, K) {
|
|
53714
53713
|
this.options = B = ce(B), this.sourceFile = B.sourceFile, this.keywords = Q(m[B.ecmaVersion >= 6 ? 6 : B.sourceType === "module" ? "5module" : 5]);
|
|
53715
53714
|
var te = "";
|
|
53716
53715
|
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 +53729,7 @@ Defaulting to 2020, but this will stop working in the future.`)), B.ecmaVersion
|
|
|
53730
53729
|
}, qe.canAwait.get = function() {
|
|
53731
53730
|
for (var A = this.scopeStack.length - 1; A >= 0; A--) {
|
|
53732
53731
|
var B = this.scopeStack[A];
|
|
53733
|
-
if (B.inClassFieldInit || B.flags &
|
|
53732
|
+
if (B.inClassFieldInit || B.flags & Se)
|
|
53734
53733
|
return !1;
|
|
53735
53734
|
if (B.flags & le)
|
|
53736
53735
|
return (B.flags & pe) > 0;
|
|
@@ -53745,9 +53744,9 @@ Defaulting to 2020, but this will stop working in the future.`)), B.ecmaVersion
|
|
|
53745
53744
|
return this.treatFunctionsAsVarInScope(this.currentScope());
|
|
53746
53745
|
}, qe.allowNewDotTarget.get = function() {
|
|
53747
53746
|
var A = this.currentThisScope(), B = A.flags, z = A.inClassFieldInit;
|
|
53748
|
-
return (B & (le |
|
|
53747
|
+
return (B & (le | Se)) > 0 || z;
|
|
53749
53748
|
}, qe.inClassStaticBlock.get = function() {
|
|
53750
|
-
return (this.currentVarScope().flags &
|
|
53749
|
+
return (this.currentVarScope().flags & Se) > 0;
|
|
53751
53750
|
}, Ne.extend = function() {
|
|
53752
53751
|
for (var B = [], z = arguments.length; z--; )
|
|
53753
53752
|
B[z] = arguments[z];
|
|
@@ -53905,8 +53904,8 @@ Defaulting to 2020, but this will stop working in the future.`)), B.ecmaVersion
|
|
|
53905
53904
|
case R._import:
|
|
53906
53905
|
if (this.options.ecmaVersion > 10 && K === R._import) {
|
|
53907
53906
|
H.lastIndex = this.pos;
|
|
53908
|
-
var ve = H.exec(this.input), Pe = this.pos + ve[0].length,
|
|
53909
|
-
if (
|
|
53907
|
+
var ve = H.exec(this.input), Pe = this.pos + ve[0].length, Ce = this.input.charCodeAt(Pe);
|
|
53908
|
+
if (Ce === 40 || Ce === 46)
|
|
53910
53909
|
return this.parseExpressionStatement(te, this.parseExpression());
|
|
53911
53910
|
}
|
|
53912
53911
|
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 +53938,8 @@ Defaulting to 2020, but this will stop working in the future.`)), B.ecmaVersion
|
|
|
53939
53938
|
var K = this.startNode(), te = z ? "let" : this.value;
|
|
53940
53939
|
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
53940
|
}
|
|
53942
|
-
var me = this.isContextual("let"), ve = !1, Pe = this.containsEsc,
|
|
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,
|
|
53941
|
+
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);
|
|
53942
|
+
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
53943
|
}, Re.parseFunctionStatement = function(A, B, z) {
|
|
53945
53944
|
return this.next(), this.parseFunction(A, rt | (z ? 0 : Ht), !1, B);
|
|
53946
53945
|
}, Re.parseIfStatement = function(A) {
|
|
@@ -53982,8 +53981,8 @@ Defaulting to 2020, but this will stop working in the future.`)), B.ecmaVersion
|
|
|
53982
53981
|
var ve = me[te];
|
|
53983
53982
|
ve.name === B && this.raise(z.start, "Label '" + B + "' is already declared");
|
|
53984
53983
|
}
|
|
53985
|
-
for (var Pe = this.type.isLoop ? "loop" : this.type === R._switch ? "switch" : null,
|
|
53986
|
-
var $e = this.labels[
|
|
53984
|
+
for (var Pe = this.type.isLoop ? "loop" : this.type === R._switch ? "switch" : null, Ce = this.labels.length - 1; Ce >= 0; Ce--) {
|
|
53985
|
+
var $e = this.labels[Ce];
|
|
53987
53986
|
if ($e.statementStart === A.start)
|
|
53988
53987
|
$e.statementStart = this.start, $e.kind = Pe;
|
|
53989
53988
|
else
|
|
@@ -54017,7 +54016,7 @@ Defaulting to 2020, but this will stop working in the future.`)), B.ecmaVersion
|
|
|
54017
54016
|
Re.parseFunction = function(A, B, z, K, te) {
|
|
54018
54017
|
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
54018
|
var me = this.yieldPos, ve = this.awaitPos, Pe = this.awaitIdentPos;
|
|
54020
|
-
return this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, this.enterScope(
|
|
54019
|
+
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
54020
|
}, Re.parseFunctionParams = function(A) {
|
|
54022
54021
|
this.expect(R.parenL), A.params = this.parseBindingList(R.parenR, !1, this.options.ecmaVersion >= 8), this.checkYieldAwaitInDefaultParams();
|
|
54023
54022
|
}, Re.parseClass = function(A, B) {
|
|
@@ -54040,8 +54039,8 @@ Defaulting to 2020, but this will stop working in the future.`)), B.ecmaVersion
|
|
|
54040
54039
|
this.isClassElementNameStart() || this.type === R.star ? Pe = !0 : K = "static";
|
|
54041
54040
|
}
|
|
54042
54041
|
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
|
|
54044
|
-
(this.eatContextual("get") || this.eatContextual("set")) && (this.isClassElementNameStart() ? ve =
|
|
54042
|
+
var Ce = this.value;
|
|
54043
|
+
(this.eatContextual("get") || this.eatContextual("set")) && (this.isClassElementNameStart() ? ve = Ce : K = Ce);
|
|
54045
54044
|
}
|
|
54046
54045
|
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
54046
|
var $e = !z.static && Ct(z, "constructor"), ke = $e && A;
|
|
@@ -54068,7 +54067,7 @@ Defaulting to 2020, but this will stop working in the future.`)), B.ecmaVersion
|
|
|
54068
54067
|
}, Re.parseClassStaticBlock = function(A) {
|
|
54069
54068
|
A.body = [];
|
|
54070
54069
|
var B = this.labels;
|
|
54071
|
-
for (this.labels = [], this.enterScope(
|
|
54070
|
+
for (this.labels = [], this.enterScope(Se | ye); this.type !== R.braceR; ) {
|
|
54072
54071
|
var z = this.parseStatement(null);
|
|
54073
54072
|
A.body.push(z);
|
|
54074
54073
|
}
|
|
@@ -54145,8 +54144,8 @@ Defaulting to 2020, but this will stop working in the future.`)), B.ecmaVersion
|
|
|
54145
54144
|
}
|
|
54146
54145
|
else if (z === "ArrayPattern")
|
|
54147
54146
|
for (var ve = 0, Pe = B.elements; ve < Pe.length; ve += 1) {
|
|
54148
|
-
var
|
|
54149
|
-
|
|
54147
|
+
var Ce = Pe[ve];
|
|
54148
|
+
Ce && this.checkPatternExport(A, Ce);
|
|
54150
54149
|
}
|
|
54151
54150
|
else z === "Property" ? this.checkPatternExport(A, B.value) : z === "AssignmentPattern" ? this.checkPatternExport(A, B.left) : z === "RestElement" && this.checkPatternExport(A, B.argument);
|
|
54152
54151
|
}, Re.checkVariableExport = function(A, B) {
|
|
@@ -54304,8 +54303,8 @@ Defaulting to 2020, but this will stop working in the future.`)), B.ecmaVersion
|
|
|
54304
54303
|
var K = this.startNodeAt(A, B);
|
|
54305
54304
|
return K.left = z, K.right = this.parseMaybeAssign(), this.finishNode(K, "AssignmentPattern");
|
|
54306
54305
|
}, We.checkLValSimple = function(A, B, z) {
|
|
54307
|
-
B === void 0 && (B =
|
|
54308
|
-
var K = B !==
|
|
54306
|
+
B === void 0 && (B = Ae);
|
|
54307
|
+
var K = B !== Ae;
|
|
54309
54308
|
switch (A.type) {
|
|
54310
54309
|
case "Identifier":
|
|
54311
54310
|
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 +54321,7 @@ Defaulting to 2020, but this will stop working in the future.`)), B.ecmaVersion
|
|
|
54322
54321
|
this.raise(A.start, (K ? "Binding" : "Assigning to") + " rvalue");
|
|
54323
54322
|
}
|
|
54324
54323
|
}, We.checkLValPattern = function(A, B, z) {
|
|
54325
|
-
switch (B === void 0 && (B =
|
|
54324
|
+
switch (B === void 0 && (B = Ae), A.type) {
|
|
54326
54325
|
case "ObjectPattern":
|
|
54327
54326
|
for (var K = 0, te = A.properties; K < te.length; K += 1) {
|
|
54328
54327
|
var me = te[K];
|
|
@@ -54331,15 +54330,15 @@ Defaulting to 2020, but this will stop working in the future.`)), B.ecmaVersion
|
|
|
54331
54330
|
break;
|
|
54332
54331
|
case "ArrayPattern":
|
|
54333
54332
|
for (var ve = 0, Pe = A.elements; ve < Pe.length; ve += 1) {
|
|
54334
|
-
var
|
|
54335
|
-
|
|
54333
|
+
var Ce = Pe[ve];
|
|
54334
|
+
Ce && this.checkLValInnerPattern(Ce, B, z);
|
|
54336
54335
|
}
|
|
54337
54336
|
break;
|
|
54338
54337
|
default:
|
|
54339
54338
|
this.checkLValSimple(A, B, z);
|
|
54340
54339
|
}
|
|
54341
54340
|
}, We.checkLValInnerPattern = function(A, B, z) {
|
|
54342
|
-
switch (B === void 0 && (B =
|
|
54341
|
+
switch (B === void 0 && (B = Ae), A.type) {
|
|
54343
54342
|
case "Property":
|
|
54344
54343
|
this.checkLValInnerPattern(A.value, B, z);
|
|
54345
54344
|
break;
|
|
@@ -54468,11 +54467,11 @@ Defaulting to 2020, but this will stop working in the future.`)), B.ecmaVersion
|
|
|
54468
54467
|
}
|
|
54469
54468
|
var K = !1, te = -1, me = -1, ve = -1;
|
|
54470
54469
|
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,
|
|
54470
|
+
var Pe = this.start, Ce = this.startLoc;
|
|
54472
54471
|
(this.type === R.parenL || this.type === R.name) && (this.potentialArrowAt = this.start, this.potentialArrowInForAwait = A === "await");
|
|
54473
54472
|
var $e = this.parseMaybeConditional(A, B);
|
|
54474
|
-
if (z && ($e = z.call(this, $e, Pe,
|
|
54475
|
-
var ke = this.startNodeAt(Pe,
|
|
54473
|
+
if (z && ($e = z.call(this, $e, Pe, Ce)), this.type.isAssign) {
|
|
54474
|
+
var ke = this.startNodeAt(Pe, Ce);
|
|
54476
54475
|
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
54476
|
} else
|
|
54478
54477
|
K && this.checkExpressionErrors(B, !0);
|
|
@@ -54494,9 +54493,9 @@ Defaulting to 2020, but this will stop working in the future.`)), B.ecmaVersion
|
|
|
54494
54493
|
if (me != null && (!te || this.type !== R._in) && me > K) {
|
|
54495
54494
|
var ve = this.type === R.logicalOR || this.type === R.logicalAND, Pe = this.type === R.coalesce;
|
|
54496
54495
|
Pe && (me = R.logicalAND.binop);
|
|
54497
|
-
var
|
|
54496
|
+
var Ce = this.value;
|
|
54498
54497
|
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,
|
|
54498
|
+
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
54499
|
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
54500
|
}
|
|
54502
54501
|
return A;
|
|
@@ -54509,8 +54508,8 @@ Defaulting to 2020, but this will stop working in the future.`)), B.ecmaVersion
|
|
|
54509
54508
|
if (this.isContextual("await") && this.canAwait)
|
|
54510
54509
|
ve = this.parseAwait(K), B = !0;
|
|
54511
54510
|
else if (this.type.prefix) {
|
|
54512
|
-
var Pe = this.startNode(),
|
|
54513
|
-
Pe.operator = this.value, Pe.prefix = !0, this.next(), Pe.argument = this.parseMaybeUnary(null, !0,
|
|
54511
|
+
var Pe = this.startNode(), Ce = this.type === R.incDec;
|
|
54512
|
+
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
54513
|
} else if (!B && this.type === R.privateId)
|
|
54515
54514
|
(K || this.privateNameStack.length === 0) && this.options.checkPrivateFields && this.unexpected(), ve = this.parsePrivateIdent(), this.type !== R._in && this.unexpected();
|
|
54516
54515
|
else {
|
|
@@ -54546,8 +54545,8 @@ Defaulting to 2020, but this will stop working in the future.`)), B.ecmaVersion
|
|
|
54546
54545
|
var Pe = this.parseSubscript(A, B, z, K, me, ve, te);
|
|
54547
54546
|
if (Pe.optional && (ve = !0), Pe === A || Pe.type === "ArrowFunctionExpression") {
|
|
54548
54547
|
if (ve) {
|
|
54549
|
-
var
|
|
54550
|
-
|
|
54548
|
+
var Ce = this.startNodeAt(B, z);
|
|
54549
|
+
Ce.expression = Pe, Pe = this.finishNode(Ce, "ChainExpression");
|
|
54551
54550
|
}
|
|
54552
54551
|
return Pe;
|
|
54553
54552
|
}
|
|
@@ -54558,23 +54557,23 @@ Defaulting to 2020, but this will stop working in the future.`)), B.ecmaVersion
|
|
|
54558
54557
|
}, Ie.parseSubscriptAsyncArrow = function(A, B, z, K) {
|
|
54559
54558
|
return this.parseArrowExpression(this.startNodeAt(A, B), z, !0, K);
|
|
54560
54559
|
}, Ie.parseSubscript = function(A, B, z, K, te, me, ve) {
|
|
54561
|
-
var Pe = this.options.ecmaVersion >= 11,
|
|
54562
|
-
K &&
|
|
54560
|
+
var Pe = this.options.ecmaVersion >= 11, Ce = Pe && this.eat(R.questionDot);
|
|
54561
|
+
K && Ce && this.raise(this.lastTokStart, "Optional chaining cannot appear in the callee of new expressions");
|
|
54563
54562
|
var $e = this.eat(R.bracketL);
|
|
54564
|
-
if ($e ||
|
|
54563
|
+
if ($e || Ce && this.type !== R.parenL && this.type !== R.backQuote || this.eat(R.dot)) {
|
|
54565
54564
|
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 =
|
|
54565
|
+
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
54566
|
} else if (!K && this.eat(R.parenL)) {
|
|
54568
54567
|
var ze = new Xe(), nt = this.yieldPos, mt = this.awaitPos, ot = this.awaitIdentPos;
|
|
54569
54568
|
this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0;
|
|
54570
54569
|
var Vt = this.parseExprList(R.parenR, this.options.ecmaVersion >= 8, !1, ze);
|
|
54571
|
-
if (te && !
|
|
54570
|
+
if (te && !Ce && this.shouldParseAsyncArrow())
|
|
54572
54571
|
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
54572
|
this.checkExpressionErrors(ze, !0), this.yieldPos = nt || this.yieldPos, this.awaitPos = mt || this.awaitPos, this.awaitIdentPos = ot || this.awaitIdentPos;
|
|
54574
54573
|
var st = this.startNodeAt(B, z);
|
|
54575
|
-
st.callee = A, st.arguments = Vt, Pe && (st.optional =
|
|
54574
|
+
st.callee = A, st.arguments = Vt, Pe && (st.optional = Ce), A = this.finishNode(st, "CallExpression");
|
|
54576
54575
|
} else if (this.type === R.backQuote) {
|
|
54577
|
-
(
|
|
54576
|
+
(Ce || me) && this.raise(this.start, "Optional chaining cannot appear in the tag of tagged template expressions");
|
|
54578
54577
|
var lt = this.startNodeAt(B, z);
|
|
54579
54578
|
lt.tag = A, lt.quasi = this.parseTemplate({ isTagged: !0 }), A = this.finishNode(lt, "TaggedTemplateExpression");
|
|
54580
54579
|
}
|
|
@@ -54588,16 +54587,16 @@ Defaulting to 2020, but this will stop working in the future.`)), B.ecmaVersion
|
|
|
54588
54587
|
case R._this:
|
|
54589
54588
|
return K = this.startNode(), this.next(), this.finishNode(K, "ThisExpression");
|
|
54590
54589
|
case R.name:
|
|
54591
|
-
var me = this.start, ve = this.startLoc, Pe = this.containsEsc,
|
|
54592
|
-
if (this.options.ecmaVersion >= 8 && !Pe &&
|
|
54590
|
+
var me = this.start, ve = this.startLoc, Pe = this.containsEsc, Ce = this.parseIdent(!1);
|
|
54591
|
+
if (this.options.ecmaVersion >= 8 && !Pe && Ce.name === "async" && !this.canInsertSemicolon() && this.eat(R._function))
|
|
54593
54592
|
return this.overrideContext(Ue.f_expr), this.parseFunction(this.startNodeAt(me, ve), 0, !1, !0, B);
|
|
54594
54593
|
if (te && !this.canInsertSemicolon()) {
|
|
54595
54594
|
if (this.eat(R.arrow))
|
|
54596
|
-
return this.parseArrowExpression(this.startNodeAt(me, ve), [
|
|
54597
|
-
if (this.options.ecmaVersion >= 8 &&
|
|
54598
|
-
return
|
|
54595
|
+
return this.parseArrowExpression(this.startNodeAt(me, ve), [Ce], !1, B);
|
|
54596
|
+
if (this.options.ecmaVersion >= 8 && Ce.name === "async" && this.type === R.name && !Pe && (!this.potentialArrowInForAwait || this.value !== "of" || this.containsEsc))
|
|
54597
|
+
return Ce = this.parseIdent(!1), (this.canInsertSemicolon() || !this.eat(R.arrow)) && this.unexpected(), this.parseArrowExpression(this.startNodeAt(me, ve), [Ce], !0, B);
|
|
54599
54598
|
}
|
|
54600
|
-
return
|
|
54599
|
+
return Ce;
|
|
54601
54600
|
case R.regexp:
|
|
54602
54601
|
var $e = this.value;
|
|
54603
54602
|
return K = this.parseLiteral($e.value), K.regex = { pattern: $e.pattern, flags: $e.flags }, K;
|
|
@@ -54662,20 +54661,20 @@ Defaulting to 2020, but this will stop working in the future.`)), B.ecmaVersion
|
|
|
54662
54661
|
var z = this.start, K = this.startLoc, te, me = this.options.ecmaVersion >= 8;
|
|
54663
54662
|
if (this.options.ecmaVersion >= 6) {
|
|
54664
54663
|
this.next();
|
|
54665
|
-
var ve = this.start, Pe = this.startLoc,
|
|
54664
|
+
var ve = this.start, Pe = this.startLoc, Ce = [], $e = !0, ke = !1, ze = new Xe(), nt = this.yieldPos, mt = this.awaitPos, ot;
|
|
54666
54665
|
for (this.yieldPos = 0, this.awaitPos = 0; this.type !== R.parenR; )
|
|
54667
54666
|
if ($e ? $e = !1 : this.expect(R.comma), me && this.afterTrailingComma(R.parenR, !0)) {
|
|
54668
54667
|
ke = !0;
|
|
54669
54668
|
break;
|
|
54670
54669
|
} else if (this.type === R.ellipsis) {
|
|
54671
|
-
ot = this.start,
|
|
54670
|
+
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
54671
|
break;
|
|
54673
54672
|
} else
|
|
54674
|
-
|
|
54673
|
+
Ce.push(this.parseMaybeAssign(!1, ze, this.parseParenItem));
|
|
54675
54674
|
var Vt = this.lastTokEnd, st = this.lastTokEndLoc;
|
|
54676
|
-
if (this.expect(R.parenR), A && this.shouldParseArrow(
|
|
54677
|
-
return this.checkPatternErrors(ze, !1), this.checkYieldAwaitInDefaultParams(), this.yieldPos = nt, this.awaitPos = mt, this.parseParenArrowList(z, K,
|
|
54678
|
-
(!
|
|
54675
|
+
if (this.expect(R.parenR), A && this.shouldParseArrow(Ce) && this.eat(R.arrow))
|
|
54676
|
+
return this.checkPatternErrors(ze, !1), this.checkYieldAwaitInDefaultParams(), this.yieldPos = nt, this.awaitPos = mt, this.parseParenArrowList(z, K, Ce, B);
|
|
54677
|
+
(!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
54678
|
} else
|
|
54680
54679
|
te = this.parseParenExpression();
|
|
54681
54680
|
if (this.options.preserveParens) {
|
|
@@ -54762,10 +54761,10 @@ Defaulting to 2020, but this will stop working in the future.`)), B.ecmaVersion
|
|
|
54762
54761
|
A.id = null, this.options.ecmaVersion >= 6 && (A.generator = A.expression = !1), this.options.ecmaVersion >= 8 && (A.async = !1);
|
|
54763
54762
|
}, Ie.parseMethod = function(A, B, z) {
|
|
54764
54763
|
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(
|
|
54764
|
+
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
54765
|
}, Ie.parseArrowExpression = function(A, B, z, K) {
|
|
54767
54766
|
var te = this.yieldPos, me = this.awaitPos, ve = this.awaitIdentPos;
|
|
54768
|
-
return this.enterScope(
|
|
54767
|
+
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
54768
|
}, Ie.parseFunctionBody = function(A, B, z, K) {
|
|
54770
54769
|
var te = B && this.type !== R.braceL, me = this.strict, ve = !1;
|
|
54771
54770
|
if (te)
|
|
@@ -54773,8 +54772,8 @@ Defaulting to 2020, but this will stop working in the future.`)), B.ecmaVersion
|
|
|
54773
54772
|
else {
|
|
54774
54773
|
var Pe = this.options.ecmaVersion >= 7 && !this.isSimpleParamList(A.params);
|
|
54775
54774
|
(!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
|
|
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 =
|
|
54775
|
+
var Ce = this.labels;
|
|
54776
|
+
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
54777
|
}
|
|
54779
54778
|
this.exitScope();
|
|
54780
54779
|
}, Ie.isSimpleParamList = function(A) {
|
|
@@ -54855,12 +54854,12 @@ Defaulting to 2020, but this will stop working in the future.`)), B.ecmaVersion
|
|
|
54855
54854
|
this.treatFunctionsAsVar ? K = ve.lexical.indexOf(A) > -1 : K = ve.lexical.indexOf(A) > -1 || ve.var.indexOf(A) > -1, ve.functions.push(A);
|
|
54856
54855
|
} else
|
|
54857
54856
|
for (var Pe = this.scopeStack.length - 1; Pe >= 0; --Pe) {
|
|
54858
|
-
var
|
|
54859
|
-
if (
|
|
54857
|
+
var Ce = this.scopeStack[Pe];
|
|
54858
|
+
if (Ce.lexical.indexOf(A) > -1 && !(Ce.flags & oe && Ce.lexical[0] === A) || !this.treatFunctionsAsVarInScope(Ce) && Ce.functions.indexOf(A) > -1) {
|
|
54860
54859
|
K = !0;
|
|
54861
54860
|
break;
|
|
54862
54861
|
}
|
|
54863
|
-
if (
|
|
54862
|
+
if (Ce.var.push(A), this.inModule && Ce.flags & he && delete this.undefinedExports[A], Ce.flags & Ee)
|
|
54864
54863
|
break;
|
|
54865
54864
|
}
|
|
54866
54865
|
K && this.raiseRecoverable(z, "Identifier '" + A + "' has already been declared");
|
|
@@ -54871,13 +54870,13 @@ Defaulting to 2020, but this will stop working in the future.`)), B.ecmaVersion
|
|
|
54871
54870
|
}, tt.currentVarScope = function() {
|
|
54872
54871
|
for (var A = this.scopeStack.length - 1; ; A--) {
|
|
54873
54872
|
var B = this.scopeStack[A];
|
|
54874
|
-
if (B.flags &
|
|
54873
|
+
if (B.flags & Ee)
|
|
54875
54874
|
return B;
|
|
54876
54875
|
}
|
|
54877
54876
|
}, tt.currentThisScope = function() {
|
|
54878
54877
|
for (var A = this.scopeStack.length - 1; ; A--) {
|
|
54879
54878
|
var B = this.scopeStack[A];
|
|
54880
|
-
if (B.flags &
|
|
54879
|
+
if (B.flags & Ee && !(B.flags & _e))
|
|
54881
54880
|
return B;
|
|
54882
54881
|
}
|
|
54883
54882
|
};
|
|
@@ -54939,7 +54938,7 @@ Defaulting to 2020, but this will stop working in the future.`)), B.ecmaVersion
|
|
|
54939
54938
|
var $r = lr[zt];
|
|
54940
54939
|
Nr($r);
|
|
54941
54940
|
}
|
|
54942
|
-
var
|
|
54941
|
+
var Te = Ne.prototype, It = function(B, z) {
|
|
54943
54942
|
this.parent = B, this.base = z || this;
|
|
54944
54943
|
};
|
|
54945
54944
|
It.prototype.separatedFrom = function(B) {
|
|
@@ -54993,7 +54992,7 @@ Defaulting to 2020, but this will stop working in the future.`)), B.ecmaVersion
|
|
|
54993
54992
|
K = this.nextIndex(K, z);
|
|
54994
54993
|
}
|
|
54995
54994
|
return this.pos = K, !0;
|
|
54996
|
-
},
|
|
54995
|
+
}, Te.validateRegExpFlags = function(A) {
|
|
54997
54996
|
for (var B = A.validFlags, z = A.flags, K = !1, te = !1, me = 0; me < z.length; me++) {
|
|
54998
54997
|
var ve = z.charAt(me);
|
|
54999
54998
|
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 +55004,25 @@ Defaulting to 2020, but this will stop working in the future.`)), B.ecmaVersion
|
|
|
55005
55004
|
return !0;
|
|
55006
55005
|
return !1;
|
|
55007
55006
|
}
|
|
55008
|
-
|
|
55007
|
+
Te.validateRegExpPattern = function(A) {
|
|
55009
55008
|
this.regexp_pattern(A), !A.switchN && this.options.ecmaVersion >= 9 && Or(A.groupNames) && (A.switchN = !0, this.regexp_pattern(A));
|
|
55010
|
-
},
|
|
55009
|
+
}, Te.regexp_pattern = function(A) {
|
|
55011
55010
|
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
55011
|
for (var B = 0, z = A.backReferenceNames; B < z.length; B += 1) {
|
|
55013
55012
|
var K = z[B];
|
|
55014
55013
|
A.groupNames[K] || A.raise("Invalid named capture referenced");
|
|
55015
55014
|
}
|
|
55016
|
-
},
|
|
55015
|
+
}, Te.regexp_disjunction = function(A) {
|
|
55017
55016
|
var B = this.options.ecmaVersion >= 16;
|
|
55018
55017
|
for (B && (A.branchID = new It(A.branchID, null)), this.regexp_alternative(A); A.eat(124); )
|
|
55019
55018
|
B && (A.branchID = A.branchID.sibling()), this.regexp_alternative(A);
|
|
55020
55019
|
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
|
-
},
|
|
55020
|
+
}, Te.regexp_alternative = function(A) {
|
|
55022
55021
|
for (; A.pos < A.source.length && this.regexp_eatTerm(A); )
|
|
55023
55022
|
;
|
|
55024
|
-
},
|
|
55023
|
+
}, Te.regexp_eatTerm = function(A) {
|
|
55025
55024
|
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
|
-
},
|
|
55025
|
+
}, Te.regexp_eatAssertion = function(A) {
|
|
55027
55026
|
var B = A.pos;
|
|
55028
55027
|
if (A.lastAssertionIsQuantifiable = !1, A.eat(94) || A.eat(36))
|
|
55029
55028
|
return !0;
|
|
@@ -55038,11 +55037,11 @@ Defaulting to 2020, but this will stop working in the future.`)), B.ecmaVersion
|
|
|
55038
55037
|
return this.regexp_disjunction(A), A.eat(41) || A.raise("Unterminated group"), A.lastAssertionIsQuantifiable = !z, !0;
|
|
55039
55038
|
}
|
|
55040
55039
|
return A.pos = B, !1;
|
|
55041
|
-
},
|
|
55040
|
+
}, Te.regexp_eatQuantifier = function(A, B) {
|
|
55042
55041
|
return B === void 0 && (B = !1), this.regexp_eatQuantifierPrefix(A, B) ? (A.eat(63), !0) : !1;
|
|
55043
|
-
},
|
|
55042
|
+
}, Te.regexp_eatQuantifierPrefix = function(A, B) {
|
|
55044
55043
|
return A.eat(42) || A.eat(43) || A.eat(63) || this.regexp_eatBracedQuantifier(A, B);
|
|
55045
|
-
},
|
|
55044
|
+
}, Te.regexp_eatBracedQuantifier = function(A, B) {
|
|
55046
55045
|
var z = A.pos;
|
|
55047
55046
|
if (A.eat(123)) {
|
|
55048
55047
|
var K = 0, te = -1;
|
|
@@ -55051,9 +55050,9 @@ Defaulting to 2020, but this will stop working in the future.`)), B.ecmaVersion
|
|
|
55051
55050
|
A.switchU && !B && A.raise("Incomplete quantifier"), A.pos = z;
|
|
55052
55051
|
}
|
|
55053
55052
|
return !1;
|
|
55054
|
-
},
|
|
55053
|
+
}, Te.regexp_eatAtom = function(A) {
|
|
55055
55054
|
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
|
-
},
|
|
55055
|
+
}, Te.regexp_eatReverseSolidusAtomEscape = function(A) {
|
|
55057
55056
|
var B = A.pos;
|
|
55058
55057
|
if (A.eat(92)) {
|
|
55059
55058
|
if (this.regexp_eatAtomEscape(A))
|
|
@@ -55061,7 +55060,7 @@ Defaulting to 2020, but this will stop working in the future.`)), B.ecmaVersion
|
|
|
55061
55060
|
A.pos = B;
|
|
55062
55061
|
}
|
|
55063
55062
|
return !1;
|
|
55064
|
-
},
|
|
55063
|
+
}, Te.regexp_eatUncapturingGroup = function(A) {
|
|
55065
55064
|
var B = A.pos;
|
|
55066
55065
|
if (A.eat(40)) {
|
|
55067
55066
|
if (A.eat(63) && A.eat(58)) {
|
|
@@ -55072,32 +55071,32 @@ Defaulting to 2020, but this will stop working in the future.`)), B.ecmaVersion
|
|
|
55072
55071
|
A.pos = B;
|
|
55073
55072
|
}
|
|
55074
55073
|
return !1;
|
|
55075
|
-
},
|
|
55074
|
+
}, Te.regexp_eatCapturingGroup = function(A) {
|
|
55076
55075
|
if (A.eat(40)) {
|
|
55077
55076
|
if (this.options.ecmaVersion >= 9 ? this.regexp_groupSpecifier(A) : A.current() === 63 && A.raise("Invalid group"), this.regexp_disjunction(A), A.eat(41))
|
|
55078
55077
|
return A.numCapturingParens += 1, !0;
|
|
55079
55078
|
A.raise("Unterminated group");
|
|
55080
55079
|
}
|
|
55081
55080
|
return !1;
|
|
55082
|
-
},
|
|
55081
|
+
}, Te.regexp_eatExtendedAtom = function(A) {
|
|
55083
55082
|
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
|
-
},
|
|
55083
|
+
}, Te.regexp_eatInvalidBracedQuantifier = function(A) {
|
|
55085
55084
|
return this.regexp_eatBracedQuantifier(A, !0) && A.raise("Nothing to repeat"), !1;
|
|
55086
|
-
},
|
|
55085
|
+
}, Te.regexp_eatSyntaxCharacter = function(A) {
|
|
55087
55086
|
var B = A.current();
|
|
55088
55087
|
return cr(B) ? (A.lastIntValue = B, A.advance(), !0) : !1;
|
|
55089
55088
|
};
|
|
55090
55089
|
function cr(A) {
|
|
55091
55090
|
return A === 36 || A >= 40 && A <= 43 || A === 46 || A === 63 || A >= 91 && A <= 94 || A >= 123 && A <= 125;
|
|
55092
55091
|
}
|
|
55093
|
-
|
|
55092
|
+
Te.regexp_eatPatternCharacters = function(A) {
|
|
55094
55093
|
for (var B = A.pos, z = 0; (z = A.current()) !== -1 && !cr(z); )
|
|
55095
55094
|
A.advance();
|
|
55096
55095
|
return A.pos !== B;
|
|
55097
|
-
},
|
|
55096
|
+
}, Te.regexp_eatExtendedPatternCharacter = function(A) {
|
|
55098
55097
|
var B = A.current();
|
|
55099
55098
|
return B !== -1 && B !== 36 && !(B >= 40 && B <= 43) && B !== 46 && B !== 63 && B !== 91 && B !== 94 && B !== 124 ? (A.advance(), !0) : !1;
|
|
55100
|
-
},
|
|
55099
|
+
}, Te.regexp_groupSpecifier = function(A) {
|
|
55101
55100
|
if (A.eat(63)) {
|
|
55102
55101
|
this.regexp_eatGroupName(A) || A.raise("Invalid group");
|
|
55103
55102
|
var B = this.options.ecmaVersion >= 16, z = A.groupNames[A.lastStringValue];
|
|
@@ -55111,37 +55110,37 @@ Defaulting to 2020, but this will stop working in the future.`)), B.ecmaVersion
|
|
|
55111
55110
|
A.raise("Duplicate capture group name");
|
|
55112
55111
|
B ? (z || (A.groupNames[A.lastStringValue] = [])).push(A.branchID) : A.groupNames[A.lastStringValue] = !0;
|
|
55113
55112
|
}
|
|
55114
|
-
},
|
|
55113
|
+
}, Te.regexp_eatGroupName = function(A) {
|
|
55115
55114
|
if (A.lastStringValue = "", A.eat(60)) {
|
|
55116
55115
|
if (this.regexp_eatRegExpIdentifierName(A) && A.eat(62))
|
|
55117
55116
|
return !0;
|
|
55118
55117
|
A.raise("Invalid capture group name");
|
|
55119
55118
|
}
|
|
55120
55119
|
return !1;
|
|
55121
|
-
},
|
|
55120
|
+
}, Te.regexp_eatRegExpIdentifierName = function(A) {
|
|
55122
55121
|
if (A.lastStringValue = "", this.regexp_eatRegExpIdentifierStart(A)) {
|
|
55123
55122
|
for (A.lastStringValue += Z(A.lastIntValue); this.regexp_eatRegExpIdentifierPart(A); )
|
|
55124
55123
|
A.lastStringValue += Z(A.lastIntValue);
|
|
55125
55124
|
return !0;
|
|
55126
55125
|
}
|
|
55127
55126
|
return !1;
|
|
55128
|
-
},
|
|
55127
|
+
}, Te.regexp_eatRegExpIdentifierStart = function(A) {
|
|
55129
55128
|
var B = A.pos, z = this.options.ecmaVersion >= 11, K = A.current(z);
|
|
55130
55129
|
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
55130
|
};
|
|
55132
55131
|
function Vr(A) {
|
|
55133
55132
|
return T(A, !0) || A === 36 || A === 95;
|
|
55134
55133
|
}
|
|
55135
|
-
|
|
55134
|
+
Te.regexp_eatRegExpIdentifierPart = function(A) {
|
|
55136
55135
|
var B = A.pos, z = this.options.ecmaVersion >= 11, K = A.current(z);
|
|
55137
55136
|
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
55137
|
};
|
|
55139
55138
|
function Dr(A) {
|
|
55140
55139
|
return E(A, !0) || A === 36 || A === 95 || A === 8204 || A === 8205;
|
|
55141
55140
|
}
|
|
55142
|
-
|
|
55141
|
+
Te.regexp_eatAtomEscape = function(A) {
|
|
55143
55142
|
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
|
-
},
|
|
55143
|
+
}, Te.regexp_eatBackReference = function(A) {
|
|
55145
55144
|
var B = A.pos;
|
|
55146
55145
|
if (this.regexp_eatDecimalEscape(A)) {
|
|
55147
55146
|
var z = A.lastIntValue;
|
|
@@ -55152,16 +55151,16 @@ Defaulting to 2020, but this will stop working in the future.`)), B.ecmaVersion
|
|
|
55152
55151
|
A.pos = B;
|
|
55153
55152
|
}
|
|
55154
55153
|
return !1;
|
|
55155
|
-
},
|
|
55154
|
+
}, Te.regexp_eatKGroupName = function(A) {
|
|
55156
55155
|
if (A.eat(107)) {
|
|
55157
55156
|
if (this.regexp_eatGroupName(A))
|
|
55158
55157
|
return A.backReferenceNames.push(A.lastStringValue), !0;
|
|
55159
55158
|
A.raise("Invalid named reference");
|
|
55160
55159
|
}
|
|
55161
55160
|
return !1;
|
|
55162
|
-
},
|
|
55161
|
+
}, Te.regexp_eatCharacterEscape = function(A) {
|
|
55163
55162
|
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
|
-
},
|
|
55163
|
+
}, Te.regexp_eatCControlLetter = function(A) {
|
|
55165
55164
|
var B = A.pos;
|
|
55166
55165
|
if (A.eat(99)) {
|
|
55167
55166
|
if (this.regexp_eatControlLetter(A))
|
|
@@ -55169,19 +55168,19 @@ Defaulting to 2020, but this will stop working in the future.`)), B.ecmaVersion
|
|
|
55169
55168
|
A.pos = B;
|
|
55170
55169
|
}
|
|
55171
55170
|
return !1;
|
|
55172
|
-
},
|
|
55171
|
+
}, Te.regexp_eatZero = function(A) {
|
|
55173
55172
|
return A.current() === 48 && !Mt(A.lookahead()) ? (A.lastIntValue = 0, A.advance(), !0) : !1;
|
|
55174
|
-
},
|
|
55173
|
+
}, Te.regexp_eatControlEscape = function(A) {
|
|
55175
55174
|
var B = A.current();
|
|
55176
55175
|
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
|
-
},
|
|
55176
|
+
}, Te.regexp_eatControlLetter = function(A) {
|
|
55178
55177
|
var B = A.current();
|
|
55179
55178
|
return ur(B) ? (A.lastIntValue = B % 32, A.advance(), !0) : !1;
|
|
55180
55179
|
};
|
|
55181
55180
|
function ur(A) {
|
|
55182
55181
|
return A >= 65 && A <= 90 || A >= 97 && A <= 122;
|
|
55183
55182
|
}
|
|
55184
|
-
|
|
55183
|
+
Te.regexp_eatRegExpUnicodeEscapeSequence = function(A, B) {
|
|
55185
55184
|
B === void 0 && (B = !1);
|
|
55186
55185
|
var z = A.pos, K = B || A.switchU;
|
|
55187
55186
|
if (A.eat(117)) {
|
|
@@ -55207,12 +55206,12 @@ Defaulting to 2020, but this will stop working in the future.`)), B.ecmaVersion
|
|
|
55207
55206
|
function Br(A) {
|
|
55208
55207
|
return A >= 0 && A <= 1114111;
|
|
55209
55208
|
}
|
|
55210
|
-
|
|
55209
|
+
Te.regexp_eatIdentityEscape = function(A) {
|
|
55211
55210
|
if (A.switchU)
|
|
55212
55211
|
return this.regexp_eatSyntaxCharacter(A) ? !0 : A.eat(47) ? (A.lastIntValue = 47, !0) : !1;
|
|
55213
55212
|
var B = A.current();
|
|
55214
55213
|
return B !== 99 && (!A.switchN || B !== 107) ? (A.lastIntValue = B, A.advance(), !0) : !1;
|
|
55215
|
-
},
|
|
55214
|
+
}, Te.regexp_eatDecimalEscape = function(A) {
|
|
55216
55215
|
A.lastIntValue = 0;
|
|
55217
55216
|
var B = A.current();
|
|
55218
55217
|
if (B >= 49 && B <= 57) {
|
|
@@ -55224,7 +55223,7 @@ Defaulting to 2020, but this will stop working in the future.`)), B.ecmaVersion
|
|
|
55224
55223
|
return !1;
|
|
55225
55224
|
};
|
|
55226
55225
|
var dr = 0, et = 1, Ye = 2;
|
|
55227
|
-
|
|
55226
|
+
Te.regexp_eatCharacterClassEscape = function(A) {
|
|
55228
55227
|
var B = A.current();
|
|
55229
55228
|
if (Lr(B))
|
|
55230
55229
|
return A.lastIntValue = -1, A.advance(), et;
|
|
@@ -55241,7 +55240,7 @@ Defaulting to 2020, but this will stop working in the future.`)), B.ecmaVersion
|
|
|
55241
55240
|
function Lr(A) {
|
|
55242
55241
|
return A === 100 || A === 68 || A === 115 || A === 83 || A === 119 || A === 87;
|
|
55243
55242
|
}
|
|
55244
|
-
|
|
55243
|
+
Te.regexp_eatUnicodePropertyValueExpression = function(A) {
|
|
55245
55244
|
var B = A.pos;
|
|
55246
55245
|
if (this.regexp_eatUnicodePropertyName(A) && A.eat(61)) {
|
|
55247
55246
|
var z = A.lastStringValue;
|
|
@@ -55255,15 +55254,15 @@ Defaulting to 2020, but this will stop working in the future.`)), B.ecmaVersion
|
|
|
55255
55254
|
return this.regexp_validateUnicodePropertyNameOrValue(A, te);
|
|
55256
55255
|
}
|
|
55257
55256
|
return dr;
|
|
55258
|
-
},
|
|
55257
|
+
}, Te.regexp_validateUnicodePropertyNameAndValue = function(A, B, z) {
|
|
55259
55258
|
ee(A.unicodeProperties.nonBinary, B) || A.raise("Invalid property name"), A.unicodeProperties.nonBinary[B].test(z) || A.raise("Invalid property value");
|
|
55260
|
-
},
|
|
55259
|
+
}, Te.regexp_validateUnicodePropertyNameOrValue = function(A, B) {
|
|
55261
55260
|
if (A.unicodeProperties.binary.test(B))
|
|
55262
55261
|
return et;
|
|
55263
55262
|
if (A.switchV && A.unicodeProperties.binaryOfStrings.test(B))
|
|
55264
55263
|
return Ye;
|
|
55265
55264
|
A.raise("Invalid property name");
|
|
55266
|
-
},
|
|
55265
|
+
}, Te.regexp_eatUnicodePropertyName = function(A) {
|
|
55267
55266
|
var B = 0;
|
|
55268
55267
|
for (A.lastStringValue = ""; pr(B = A.current()); )
|
|
55269
55268
|
A.lastStringValue += Z(B), A.advance();
|
|
@@ -55272,7 +55271,7 @@ Defaulting to 2020, but this will stop working in the future.`)), B.ecmaVersion
|
|
|
55272
55271
|
function pr(A) {
|
|
55273
55272
|
return ur(A) || A === 95;
|
|
55274
55273
|
}
|
|
55275
|
-
|
|
55274
|
+
Te.regexp_eatUnicodePropertyValue = function(A) {
|
|
55276
55275
|
var B = 0;
|
|
55277
55276
|
for (A.lastStringValue = ""; jr(B = A.current()); )
|
|
55278
55277
|
A.lastStringValue += Z(B), A.advance();
|
|
@@ -55281,17 +55280,17 @@ Defaulting to 2020, but this will stop working in the future.`)), B.ecmaVersion
|
|
|
55281
55280
|
function jr(A) {
|
|
55282
55281
|
return pr(A) || Mt(A);
|
|
55283
55282
|
}
|
|
55284
|
-
|
|
55283
|
+
Te.regexp_eatLoneUnicodePropertyNameOrValue = function(A) {
|
|
55285
55284
|
return this.regexp_eatUnicodePropertyValue(A);
|
|
55286
|
-
},
|
|
55285
|
+
}, Te.regexp_eatCharacterClass = function(A) {
|
|
55287
55286
|
if (A.eat(91)) {
|
|
55288
55287
|
var B = A.eat(94), z = this.regexp_classContents(A);
|
|
55289
55288
|
return A.eat(93) || A.raise("Unterminated character class"), B && z === Ye && A.raise("Negated character class may contain strings"), !0;
|
|
55290
55289
|
}
|
|
55291
55290
|
return !1;
|
|
55292
|
-
},
|
|
55291
|
+
}, Te.regexp_classContents = function(A) {
|
|
55293
55292
|
return A.current() === 93 ? et : A.switchV ? this.regexp_classSetExpression(A) : (this.regexp_nonEmptyClassRanges(A), et);
|
|
55294
|
-
},
|
|
55293
|
+
}, Te.regexp_nonEmptyClassRanges = function(A) {
|
|
55295
55294
|
for (; this.regexp_eatClassAtom(A); ) {
|
|
55296
55295
|
var B = A.lastIntValue;
|
|
55297
55296
|
if (A.eat(45) && this.regexp_eatClassAtom(A)) {
|
|
@@ -55299,7 +55298,7 @@ Defaulting to 2020, but this will stop working in the future.`)), B.ecmaVersion
|
|
|
55299
55298
|
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
55299
|
}
|
|
55301
55300
|
}
|
|
55302
|
-
},
|
|
55301
|
+
}, Te.regexp_eatClassAtom = function(A) {
|
|
55303
55302
|
var B = A.pos;
|
|
55304
55303
|
if (A.eat(92)) {
|
|
55305
55304
|
if (this.regexp_eatClassEscape(A))
|
|
@@ -55312,7 +55311,7 @@ Defaulting to 2020, but this will stop working in the future.`)), B.ecmaVersion
|
|
|
55312
55311
|
}
|
|
55313
55312
|
var K = A.current();
|
|
55314
55313
|
return K !== 93 ? (A.lastIntValue = K, A.advance(), !0) : !1;
|
|
55315
|
-
},
|
|
55314
|
+
}, Te.regexp_eatClassEscape = function(A) {
|
|
55316
55315
|
var B = A.pos;
|
|
55317
55316
|
if (A.eat(98))
|
|
55318
55317
|
return A.lastIntValue = 8, !0;
|
|
@@ -55324,7 +55323,7 @@ Defaulting to 2020, but this will stop working in the future.`)), B.ecmaVersion
|
|
|
55324
55323
|
A.pos = B;
|
|
55325
55324
|
}
|
|
55326
55325
|
return this.regexp_eatCharacterClassEscape(A) || this.regexp_eatCharacterEscape(A);
|
|
55327
|
-
},
|
|
55326
|
+
}, Te.regexp_classSetExpression = function(A) {
|
|
55328
55327
|
var B = et, z;
|
|
55329
55328
|
if (!this.regexp_eatClassSetRange(A))
|
|
55330
55329
|
if (z = this.regexp_eatClassSetOperand(A)) {
|
|
@@ -55350,7 +55349,7 @@ Defaulting to 2020, but this will stop working in the future.`)), B.ecmaVersion
|
|
|
55350
55349
|
return B;
|
|
55351
55350
|
z === Ye && (B = Ye);
|
|
55352
55351
|
}
|
|
55353
|
-
},
|
|
55352
|
+
}, Te.regexp_eatClassSetRange = function(A) {
|
|
55354
55353
|
var B = A.pos;
|
|
55355
55354
|
if (this.regexp_eatClassSetCharacter(A)) {
|
|
55356
55355
|
var z = A.lastIntValue;
|
|
@@ -55361,9 +55360,9 @@ Defaulting to 2020, but this will stop working in the future.`)), B.ecmaVersion
|
|
|
55361
55360
|
A.pos = B;
|
|
55362
55361
|
}
|
|
55363
55362
|
return !1;
|
|
55364
|
-
},
|
|
55363
|
+
}, Te.regexp_eatClassSetOperand = function(A) {
|
|
55365
55364
|
return this.regexp_eatClassSetCharacter(A) ? et : this.regexp_eatClassStringDisjunction(A) || this.regexp_eatNestedClass(A);
|
|
55366
|
-
},
|
|
55365
|
+
}, Te.regexp_eatNestedClass = function(A) {
|
|
55367
55366
|
var B = A.pos;
|
|
55368
55367
|
if (A.eat(91)) {
|
|
55369
55368
|
var z = A.eat(94), K = this.regexp_classContents(A);
|
|
@@ -55378,7 +55377,7 @@ Defaulting to 2020, but this will stop working in the future.`)), B.ecmaVersion
|
|
|
55378
55377
|
A.pos = B;
|
|
55379
55378
|
}
|
|
55380
55379
|
return null;
|
|
55381
|
-
},
|
|
55380
|
+
}, Te.regexp_eatClassStringDisjunction = function(A) {
|
|
55382
55381
|
var B = A.pos;
|
|
55383
55382
|
if (A.eatChars([92, 113])) {
|
|
55384
55383
|
if (A.eat(123)) {
|
|
@@ -55390,15 +55389,15 @@ Defaulting to 2020, but this will stop working in the future.`)), B.ecmaVersion
|
|
|
55390
55389
|
A.pos = B;
|
|
55391
55390
|
}
|
|
55392
55391
|
return null;
|
|
55393
|
-
},
|
|
55392
|
+
}, Te.regexp_classStringDisjunctionContents = function(A) {
|
|
55394
55393
|
for (var B = this.regexp_classString(A); A.eat(124); )
|
|
55395
55394
|
this.regexp_classString(A) === Ye && (B = Ye);
|
|
55396
55395
|
return B;
|
|
55397
|
-
},
|
|
55396
|
+
}, Te.regexp_classString = function(A) {
|
|
55398
55397
|
for (var B = 0; this.regexp_eatClassSetCharacter(A); )
|
|
55399
55398
|
B++;
|
|
55400
55399
|
return B === 1 ? et : Ye;
|
|
55401
|
-
},
|
|
55400
|
+
}, Te.regexp_eatClassSetCharacter = function(A) {
|
|
55402
55401
|
var B = A.pos;
|
|
55403
55402
|
if (A.eat(92))
|
|
55404
55403
|
return this.regexp_eatCharacterEscape(A) || this.regexp_eatClassSetReservedPunctuator(A) ? !0 : A.eat(98) ? (A.lastIntValue = 8, !0) : (A.pos = B, !1);
|
|
@@ -55411,17 +55410,17 @@ Defaulting to 2020, but this will stop working in the future.`)), B.ecmaVersion
|
|
|
55411
55410
|
function qr(A) {
|
|
55412
55411
|
return A === 40 || A === 41 || A === 45 || A === 47 || A >= 91 && A <= 93 || A >= 123 && A <= 125;
|
|
55413
55412
|
}
|
|
55414
|
-
|
|
55413
|
+
Te.regexp_eatClassSetReservedPunctuator = function(A) {
|
|
55415
55414
|
var B = A.current();
|
|
55416
55415
|
return Hr(B) ? (A.lastIntValue = B, A.advance(), !0) : !1;
|
|
55417
55416
|
};
|
|
55418
55417
|
function Hr(A) {
|
|
55419
55418
|
return A === 33 || A === 35 || A === 37 || A === 38 || A === 44 || A === 45 || A >= 58 && A <= 62 || A === 64 || A === 96 || A === 126;
|
|
55420
55419
|
}
|
|
55421
|
-
|
|
55420
|
+
Te.regexp_eatClassControlLetter = function(A) {
|
|
55422
55421
|
var B = A.current();
|
|
55423
55422
|
return Mt(B) || B === 95 ? (A.lastIntValue = B % 32, A.advance(), !0) : !1;
|
|
55424
|
-
},
|
|
55423
|
+
}, Te.regexp_eatHexEscapeSequence = function(A) {
|
|
55425
55424
|
var B = A.pos;
|
|
55426
55425
|
if (A.eat(120)) {
|
|
55427
55426
|
if (this.regexp_eatFixedHexDigits(A, 2))
|
|
@@ -55429,7 +55428,7 @@ Defaulting to 2020, but this will stop working in the future.`)), B.ecmaVersion
|
|
|
55429
55428
|
A.switchU && A.raise("Invalid escape"), A.pos = B;
|
|
55430
55429
|
}
|
|
55431
55430
|
return !1;
|
|
55432
|
-
},
|
|
55431
|
+
}, Te.regexp_eatDecimalDigits = function(A) {
|
|
55433
55432
|
var B = A.pos, z = 0;
|
|
55434
55433
|
for (A.lastIntValue = 0; Mt(z = A.current()); )
|
|
55435
55434
|
A.lastIntValue = 10 * A.lastIntValue + (z - 48), A.advance();
|
|
@@ -55438,7 +55437,7 @@ Defaulting to 2020, but this will stop working in the future.`)), B.ecmaVersion
|
|
|
55438
55437
|
function Mt(A) {
|
|
55439
55438
|
return A >= 48 && A <= 57;
|
|
55440
55439
|
}
|
|
55441
|
-
|
|
55440
|
+
Te.regexp_eatHexDigits = function(A) {
|
|
55442
55441
|
var B = A.pos, z = 0;
|
|
55443
55442
|
for (A.lastIntValue = 0; mr(z = A.current()); )
|
|
55444
55443
|
A.lastIntValue = 16 * A.lastIntValue + yr(z), A.advance();
|
|
@@ -55450,7 +55449,7 @@ Defaulting to 2020, but this will stop working in the future.`)), B.ecmaVersion
|
|
|
55450
55449
|
function yr(A) {
|
|
55451
55450
|
return A >= 65 && A <= 70 ? 10 + (A - 65) : A >= 97 && A <= 102 ? 10 + (A - 97) : A - 48;
|
|
55452
55451
|
}
|
|
55453
|
-
|
|
55452
|
+
Te.regexp_eatLegacyOctalEscapeSequence = function(A) {
|
|
55454
55453
|
if (this.regexp_eatOctalDigit(A)) {
|
|
55455
55454
|
var B = A.lastIntValue;
|
|
55456
55455
|
if (this.regexp_eatOctalDigit(A)) {
|
|
@@ -55461,14 +55460,14 @@ Defaulting to 2020, but this will stop working in the future.`)), B.ecmaVersion
|
|
|
55461
55460
|
return !0;
|
|
55462
55461
|
}
|
|
55463
55462
|
return !1;
|
|
55464
|
-
},
|
|
55463
|
+
}, Te.regexp_eatOctalDigit = function(A) {
|
|
55465
55464
|
var B = A.current();
|
|
55466
55465
|
return gr(B) ? (A.lastIntValue = B - 48, A.advance(), !0) : (A.lastIntValue = 0, !1);
|
|
55467
55466
|
};
|
|
55468
55467
|
function gr(A) {
|
|
55469
55468
|
return A >= 48 && A <= 55;
|
|
55470
55469
|
}
|
|
55471
|
-
|
|
55470
|
+
Te.regexp_eatFixedHexDigits = function(A, B) {
|
|
55472
55471
|
var z = A.pos;
|
|
55473
55472
|
A.lastIntValue = 0;
|
|
55474
55473
|
for (var K = 0; K < B; ++K) {
|
|
@@ -55722,17 +55721,17 @@ Defaulting to 2020, but this will stop working in the future.`)), B.ecmaVersion
|
|
|
55722
55721
|
this.containsEsc && this.unexpected(me);
|
|
55723
55722
|
var Pe = this.regexpState || (this.regexpState = new Qe(this));
|
|
55724
55723
|
Pe.reset(z, te, ve), this.validateRegExpFlags(Pe), this.validateRegExpPattern(Pe);
|
|
55725
|
-
var
|
|
55724
|
+
var Ce = null;
|
|
55726
55725
|
try {
|
|
55727
|
-
|
|
55726
|
+
Ce = new RegExp(te, ve);
|
|
55728
55727
|
} catch {
|
|
55729
55728
|
}
|
|
55730
|
-
return this.finishToken(R.regexp, { pattern: te, flags: ve, value:
|
|
55729
|
+
return this.finishToken(R.regexp, { pattern: te, flags: ve, value: Ce });
|
|
55731
55730
|
}, 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,
|
|
55731
|
+
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
55732
|
var ke = this.input.charCodeAt(this.pos), ze = void 0;
|
|
55734
55733
|
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"),
|
|
55734
|
+
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
55735
|
continue;
|
|
55737
55736
|
}
|
|
55738
55737
|
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 +60333,7 @@ var ITEM_ALIGNED_POSITION_NAME = "SelectItemAlignedPosition", SelectItemAlignedP
|
|
|
60334
60333
|
if (u.trigger && u.valueNode && f && m && E && C && I) {
|
|
60335
60334
|
const D = u.trigger.getBoundingClientRect(), L = m.getBoundingClientRect(), j = u.valueNode.getBoundingClientRect(), q = I.getBoundingClientRect();
|
|
60336
60335
|
if (u.dir !== "rtl") {
|
|
60337
|
-
const pe = q.left - L.left, ae = j.left - pe,
|
|
60336
|
+
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
60337
|
CONTENT_MARGIN,
|
|
60339
60338
|
// Prevents the content from going off the starting edge of the
|
|
60340
60339
|
// viewport. It may still go off the ending edge, but this can be
|
|
@@ -60343,33 +60342,33 @@ var ITEM_ALIGNED_POSITION_NAME = "SelectItemAlignedPosition", SelectItemAlignedP
|
|
|
60343
60342
|
// https://github.com/radix-ui/primitives/issues/2049
|
|
60344
60343
|
Math.max(CONTENT_MARGIN, xe - ye)
|
|
60345
60344
|
]);
|
|
60346
|
-
f.style.minWidth = oe + "px", f.style.left =
|
|
60345
|
+
f.style.minWidth = oe + "px", f.style.left = Se + "px";
|
|
60347
60346
|
} else {
|
|
60348
|
-
const pe = L.right - q.right, ae = window.innerWidth - j.right - pe,
|
|
60347
|
+
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
60348
|
CONTENT_MARGIN,
|
|
60350
60349
|
Math.max(CONTENT_MARGIN, xe - ye)
|
|
60351
60350
|
]);
|
|
60352
|
-
f.style.minWidth = oe + "px", f.style.right =
|
|
60351
|
+
f.style.minWidth = oe + "px", f.style.right = Se + "px";
|
|
60353
60352
|
}
|
|
60354
60353
|
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
60354
|
if (ge <= fe) {
|
|
60356
60355
|
const pe = F.length > 0 && C === F[F.length - 1].ref.current;
|
|
60357
60356
|
f.style.bottom = "0px";
|
|
60358
|
-
const ae = m.clientHeight - E.offsetTop - E.offsetHeight,
|
|
60357
|
+
const ae = m.clientHeight - E.offsetTop - E.offsetHeight, _e = Math.max(
|
|
60359
60358
|
de,
|
|
60360
60359
|
be + // viewport might have padding bottom, include it to avoid a scrollable viewport
|
|
60361
60360
|
(pe ? ue : 0) + ae + ie
|
|
60362
|
-
), oe = ge +
|
|
60361
|
+
), oe = ge + _e;
|
|
60363
60362
|
f.style.height = oe + "px";
|
|
60364
60363
|
} else {
|
|
60365
60364
|
const pe = F.length > 0 && C === F[0].ref.current;
|
|
60366
60365
|
f.style.top = "0px";
|
|
60367
|
-
const
|
|
60366
|
+
const _e = Math.max(
|
|
60368
60367
|
fe,
|
|
60369
60368
|
J + E.offsetTop + // viewport might have padding top, include it to avoid a scrollable viewport
|
|
60370
60369
|
(pe ? se : 0) + be
|
|
60371
60370
|
) + he;
|
|
60372
|
-
f.style.height =
|
|
60371
|
+
f.style.height = _e + "px", E.scrollTop = ge - fe + E.offsetTop;
|
|
60373
60372
|
}
|
|
60374
60373
|
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
60374
|
}
|