randmarcomps 1.524.0 → 1.526.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 +301 -295
- package/dist/randmarcomps.umd.cjs +14 -14
- package/package.json +1 -1
package/dist/randmarcomps.js
CHANGED
|
@@ -78,8 +78,8 @@ var jt = React.createContext({}), Lt = React.forwardRef((e, t) => {
|
|
|
78
78
|
}
|
|
79
79
|
let xr = ur.selectionStart, wr = ur.selectionEnd, Wt = ur.selectionDirection, nr = ur.maxLength, lr = ur.value, or = Ft.current.prev, er = -1, ir = -1, yr;
|
|
80
80
|
if (lr.length !== 0 && xr !== null && wr !== null) {
|
|
81
|
-
let
|
|
82
|
-
if (
|
|
81
|
+
let _r = xr === wr, Jr = xr === lr.length && lr.length < nr;
|
|
82
|
+
if (_r && !Jr) {
|
|
83
83
|
let Zr = xr;
|
|
84
84
|
if (Zr === 0) er = 0, ir = 1, yr = "forward";
|
|
85
85
|
else if (Zr === nr) er = Zr - 1, ir = Zr, yr = "backward";
|
|
@@ -95,8 +95,8 @@ var jt = React.createContext({}), Lt = React.forwardRef((e, t) => {
|
|
|
95
95
|
}
|
|
96
96
|
er !== -1 && ir !== -1 && er !== ir && It.current.setSelectionRange(er, ir, yr);
|
|
97
97
|
}
|
|
98
|
-
let Tr = er !== -1 ? er : xr,
|
|
99
|
-
Jt(Tr), sr(
|
|
98
|
+
let Tr = er !== -1 ? er : xr, $r = ir !== -1 ? ir : wr, Dr = yr ?? Wt;
|
|
99
|
+
Jt(Tr), sr($r), Ft.current.prev = [Tr, $r, Dr];
|
|
100
100
|
}
|
|
101
101
|
if (document.addEventListener("selectionchange", vr, { capture: !0 }), vr(), document.activeElement === ur && zt(!0), !document.getElementById("input-otp-style")) {
|
|
102
102
|
let xr = document.createElement("style");
|
|
@@ -36079,8 +36079,8 @@ var lottie = createCommonjsModule((function(module, exports$1) {
|
|
|
36079
36079
|
function rt(Dt, Vt, zt, Qt, Jt, ar, sr, Zt, pr, Xt, dr, Yt, hr, mr, Kt, Ar) {
|
|
36080
36080
|
var ur = this.props;
|
|
36081
36081
|
if (Dt === 1 && Vt === 0 && zt === 0 && Qt === 0 && Jt === 0 && ar === 1 && sr === 0 && Zt === 0 && pr === 0 && Xt === 0 && dr === 1 && Yt === 0) return ur[12] = ur[12] * Dt + ur[15] * hr, ur[13] = ur[13] * ar + ur[15] * mr, ur[14] = ur[14] * dr + ur[15] * Kt, ur[15] *= Ar, this._identityCalculated = !1, this;
|
|
36082
|
-
var br = ur[0], vr = ur[1], Sr = ur[2], Cr = ur[3], xr = ur[4], wr = ur[5], Wt = ur[6], nr = ur[7], lr = ur[8], or = ur[9], er = ur[10], ir = ur[11], yr = ur[12], Tr = ur[13],
|
|
36083
|
-
return ur[0] = br * Dt + vr * Jt + Sr * pr + Cr * hr, ur[1] = br * Vt + vr * ar + Sr * Xt + Cr * mr, ur[2] = br * zt + vr * sr + Sr * dr + Cr * Kt, ur[3] = br * Qt + vr * Zt + Sr * Yt + Cr * Ar, ur[4] = xr * Dt + wr * Jt + Wt * pr + nr * hr, ur[5] = xr * Vt + wr * ar + Wt * Xt + nr * mr, ur[6] = xr * zt + wr * sr + Wt * dr + nr * Kt, ur[7] = xr * Qt + wr * Zt + Wt * Yt + nr * Ar, ur[8] = lr * Dt + or * Jt + er * pr + ir * hr, ur[9] = lr * Vt + or * ar + er * Xt + ir * mr, ur[10] = lr * zt + or * sr + er * dr + ir * Kt, ur[11] = lr * Qt + or * Zt + er * Yt + ir * Ar, ur[12] = yr * Dt + Tr * Jt +
|
|
36082
|
+
var br = ur[0], vr = ur[1], Sr = ur[2], Cr = ur[3], xr = ur[4], wr = ur[5], Wt = ur[6], nr = ur[7], lr = ur[8], or = ur[9], er = ur[10], ir = ur[11], yr = ur[12], Tr = ur[13], $r = ur[14], Dr = ur[15];
|
|
36083
|
+
return ur[0] = br * Dt + vr * Jt + Sr * pr + Cr * hr, ur[1] = br * Vt + vr * ar + Sr * Xt + Cr * mr, ur[2] = br * zt + vr * sr + Sr * dr + Cr * Kt, ur[3] = br * Qt + vr * Zt + Sr * Yt + Cr * Ar, ur[4] = xr * Dt + wr * Jt + Wt * pr + nr * hr, ur[5] = xr * Vt + wr * ar + Wt * Xt + nr * mr, ur[6] = xr * zt + wr * sr + Wt * dr + nr * Kt, ur[7] = xr * Qt + wr * Zt + Wt * Yt + nr * Ar, ur[8] = lr * Dt + or * Jt + er * pr + ir * hr, ur[9] = lr * Vt + or * ar + er * Xt + ir * mr, ur[10] = lr * zt + or * sr + er * dr + ir * Kt, ur[11] = lr * Qt + or * Zt + er * Yt + ir * Ar, ur[12] = yr * Dt + Tr * Jt + $r * pr + Dr * hr, ur[13] = yr * Vt + Tr * ar + $r * Xt + Dr * mr, ur[14] = yr * zt + Tr * sr + $r * dr + Dr * Kt, ur[15] = yr * Qt + Tr * Zt + $r * Yt + Dr * Ar, this._identityCalculated = !1, this;
|
|
36084
36084
|
}
|
|
36085
36085
|
function et(Dt) {
|
|
36086
36086
|
var Vt = Dt.props;
|
|
@@ -57089,7 +57089,7 @@ const NODE_TYPE = {
|
|
|
57089
57089
|
};
|
|
57090
57090
|
function createDOMPurify() {
|
|
57091
57091
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : getGlobal();
|
|
57092
|
-
const t = (
|
|
57092
|
+
const t = (Vr) => createDOMPurify(Vr);
|
|
57093
57093
|
if (t.version = "3.3.1", t.removed = [], !e || !e.document || e.document.nodeType !== NODE_TYPE.document || !e.Element)
|
|
57094
57094
|
return t.isSupported = !1, t;
|
|
57095
57095
|
let {
|
|
@@ -57107,8 +57107,8 @@ function createDOMPurify() {
|
|
|
57107
57107
|
trustedTypes: Ve
|
|
57108
57108
|
} = e, Ye = f.prototype, rt = lookupGetter(Ye, "cloneNode"), et = lookupGetter(Ye, "remove"), nt = lookupGetter(Ye, "nextSibling"), at = lookupGetter(Ye, "childNodes"), ot = lookupGetter(Ye, "parentNode");
|
|
57109
57109
|
if (typeof l == "function") {
|
|
57110
|
-
const
|
|
57111
|
-
|
|
57110
|
+
const Vr = n.createElement("template");
|
|
57111
|
+
Vr.content && Vr.content.ownerDocument && (n = Vr.content.ownerDocument);
|
|
57112
57112
|
}
|
|
57113
57113
|
let ct, lt = "";
|
|
57114
57114
|
const {
|
|
@@ -57175,14 +57175,14 @@ function createDOMPurify() {
|
|
|
57175
57175
|
const lr = "user-content-";
|
|
57176
57176
|
let or = !0, er = !1, ir = {}, yr = null;
|
|
57177
57177
|
const Tr = addToSet({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]);
|
|
57178
|
-
let
|
|
57179
|
-
const
|
|
57180
|
-
let
|
|
57178
|
+
let $r = null;
|
|
57179
|
+
const Dr = addToSet({}, ["audio", "video", "img", "source", "image", "track"]);
|
|
57180
|
+
let _r = null;
|
|
57181
57181
|
const Jr = addToSet({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), Zr = "http://www.w3.org/1998/Math/MathML", en = "http://www.w3.org/2000/svg", Yr = "http://www.w3.org/1999/xhtml";
|
|
57182
57182
|
let sn = Yr, dn = !1, bn = null;
|
|
57183
57183
|
const fn = addToSet({}, [Zr, en, Yr], stringToString);
|
|
57184
|
-
let
|
|
57185
|
-
const
|
|
57184
|
+
let Or = addToSet({}, ["mi", "mo", "mn", "ms", "mtext"]), Br = addToSet({}, ["annotation-xml"]);
|
|
57185
|
+
const Rr = addToSet({}, ["title", "style", "font", "a", "script"]);
|
|
57186
57186
|
let jr = null;
|
|
57187
57187
|
const Mr = ["application/xhtml+xml", "text/html"], Hr = "text/html";
|
|
57188
57188
|
let Kr = null, yn = null;
|
|
@@ -57192,7 +57192,7 @@ function createDOMPurify() {
|
|
|
57192
57192
|
let rr = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
57193
57193
|
if (!(yn && yn === rr)) {
|
|
57194
57194
|
if ((!rr || typeof rr != "object") && (rr = {}), rr = clone(rr), jr = // eslint-disable-next-line unicorn/prefer-includes
|
|
57195
|
-
Mr.indexOf(rr.PARSER_MEDIA_TYPE) === -1 ? Hr : rr.PARSER_MEDIA_TYPE, Kr = jr === "application/xhtml+xml" ? stringToString : stringToLowerCase, Qt = objectHasOwnProperty(rr, "ALLOWED_TAGS") ? addToSet({}, rr.ALLOWED_TAGS, Kr) : Jt, ar = objectHasOwnProperty(rr, "ALLOWED_ATTR") ? addToSet({}, rr.ALLOWED_ATTR, Kr) : sr, bn = objectHasOwnProperty(rr, "ALLOWED_NAMESPACES") ? addToSet({}, rr.ALLOWED_NAMESPACES, stringToString) : fn,
|
|
57195
|
+
Mr.indexOf(rr.PARSER_MEDIA_TYPE) === -1 ? Hr : rr.PARSER_MEDIA_TYPE, Kr = jr === "application/xhtml+xml" ? stringToString : stringToLowerCase, Qt = objectHasOwnProperty(rr, "ALLOWED_TAGS") ? addToSet({}, rr.ALLOWED_TAGS, Kr) : Jt, ar = objectHasOwnProperty(rr, "ALLOWED_ATTR") ? addToSet({}, rr.ALLOWED_ATTR, Kr) : sr, bn = objectHasOwnProperty(rr, "ALLOWED_NAMESPACES") ? addToSet({}, rr.ALLOWED_NAMESPACES, stringToString) : fn, _r = objectHasOwnProperty(rr, "ADD_URI_SAFE_ATTR") ? addToSet(clone(Jr), rr.ADD_URI_SAFE_ATTR, Kr) : Jr, $r = objectHasOwnProperty(rr, "ADD_DATA_URI_TAGS") ? addToSet(clone(Dr), rr.ADD_DATA_URI_TAGS, Kr) : Dr, yr = objectHasOwnProperty(rr, "FORBID_CONTENTS") ? addToSet({}, rr.FORBID_CONTENTS, Kr) : Tr, pr = objectHasOwnProperty(rr, "FORBID_TAGS") ? addToSet({}, rr.FORBID_TAGS, Kr) : clone({}), Xt = objectHasOwnProperty(rr, "FORBID_ATTR") ? addToSet({}, rr.FORBID_ATTR, Kr) : clone({}), ir = objectHasOwnProperty(rr, "USE_PROFILES") ? rr.USE_PROFILES : !1, Yt = rr.ALLOW_ARIA_ATTR !== !1, hr = rr.ALLOW_DATA_ATTR !== !1, mr = rr.ALLOW_UNKNOWN_PROTOCOLS || !1, Kt = rr.ALLOW_SELF_CLOSE_IN_ATTR !== !1, Ar = rr.SAFE_FOR_TEMPLATES || !1, ur = rr.SAFE_FOR_XML !== !1, br = rr.WHOLE_DOCUMENT || !1, Cr = rr.RETURN_DOM || !1, xr = rr.RETURN_DOM_FRAGMENT || !1, wr = rr.RETURN_TRUSTED_TYPE || !1, Sr = rr.FORCE_BODY || !1, Wt = rr.SANITIZE_DOM !== !1, nr = rr.SANITIZE_NAMED_PROPS || !1, or = rr.KEEP_CONTENT !== !1, er = rr.IN_PLACE || !1, zt = rr.ALLOWED_URI_REGEXP || IS_ALLOWED_URI, sn = rr.NAMESPACE || Yr, Or = rr.MATHML_TEXT_INTEGRATION_POINTS || Or, Br = rr.HTML_INTEGRATION_POINTS || Br, Zt = rr.CUSTOM_ELEMENT_HANDLING || {}, rr.CUSTOM_ELEMENT_HANDLING && an(rr.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (Zt.tagNameCheck = rr.CUSTOM_ELEMENT_HANDLING.tagNameCheck), rr.CUSTOM_ELEMENT_HANDLING && an(rr.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (Zt.attributeNameCheck = rr.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), rr.CUSTOM_ELEMENT_HANDLING && typeof rr.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (Zt.allowCustomizedBuiltInElements = rr.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), Ar && (hr = !1), xr && (Cr = !0), ir && (Qt = addToSet({}, text$1), ar = [], ir.html === !0 && (addToSet(Qt, html$1), addToSet(ar, html)), ir.svg === !0 && (addToSet(Qt, svg$1), addToSet(ar, svg), addToSet(ar, xml)), ir.svgFilters === !0 && (addToSet(Qt, svgFilters), addToSet(ar, svg), addToSet(ar, xml)), ir.mathMl === !0 && (addToSet(Qt, mathMl$1), addToSet(ar, mathMl), addToSet(ar, xml))), rr.ADD_TAGS && (typeof rr.ADD_TAGS == "function" ? dr.tagCheck = rr.ADD_TAGS : (Qt === Jt && (Qt = clone(Qt)), addToSet(Qt, rr.ADD_TAGS, Kr))), rr.ADD_ATTR && (typeof rr.ADD_ATTR == "function" ? dr.attributeCheck = rr.ADD_ATTR : (ar === sr && (ar = clone(ar)), addToSet(ar, rr.ADD_ATTR, Kr))), rr.ADD_URI_SAFE_ATTR && addToSet(_r, rr.ADD_URI_SAFE_ATTR, Kr), rr.FORBID_CONTENTS && (yr === Tr && (yr = clone(yr)), addToSet(yr, rr.FORBID_CONTENTS, Kr)), rr.ADD_FORBID_CONTENTS && (yr === Tr && (yr = clone(yr)), addToSet(yr, rr.ADD_FORBID_CONTENTS, Kr)), or && (Qt["#text"] = !0), br && addToSet(Qt, ["html", "head", "body"]), Qt.table && (addToSet(Qt, ["tbody"]), delete pr.tbody), rr.TRUSTED_TYPES_POLICY) {
|
|
57196
57196
|
if (typeof rr.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
57197
57197
|
throw typeErrorCreate('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
57198
57198
|
if (typeof rr.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
@@ -57209,7 +57209,7 @@ function createDOMPurify() {
|
|
|
57209
57209
|
tagName: "template"
|
|
57210
57210
|
});
|
|
57211
57211
|
const kr = stringToLowerCase(rr.tagName), Wr = stringToLowerCase(Pr.tagName);
|
|
57212
|
-
return bn[rr.namespaceURI] ? rr.namespaceURI === en ? Pr.namespaceURI === Yr ? kr === "svg" : Pr.namespaceURI === Zr ? kr === "svg" && (Wr === "annotation-xml" ||
|
|
57212
|
+
return bn[rr.namespaceURI] ? rr.namespaceURI === en ? Pr.namespaceURI === Yr ? kr === "svg" : Pr.namespaceURI === Zr ? kr === "svg" && (Wr === "annotation-xml" || Or[Wr]) : !!wn[kr] : rr.namespaceURI === Zr ? Pr.namespaceURI === Yr ? kr === "math" : Pr.namespaceURI === en ? kr === "math" && Br[Wr] : !!En[kr] : rr.namespaceURI === Yr ? Pr.namespaceURI === en && !Br[Wr] || Pr.namespaceURI === Zr && !Or[Wr] ? !1 : !En[kr] && (Rr[kr] || !wn[kr]) : !!(jr === "application/xhtml+xml" && bn[rr.namespaceURI]) : !1;
|
|
57213
57213
|
}, on = function(rr) {
|
|
57214
57214
|
arrayPush(t.removed, {
|
|
57215
57215
|
element: rr
|
|
@@ -57279,8 +57279,8 @@ function createDOMPurify() {
|
|
|
57279
57279
|
}, Hn = function(rr) {
|
|
57280
57280
|
return typeof c == "function" && rr instanceof c;
|
|
57281
57281
|
};
|
|
57282
|
-
function gn(
|
|
57283
|
-
arrayForEach(
|
|
57282
|
+
function gn(Vr, rr, Pr) {
|
|
57283
|
+
arrayForEach(Vr, (kr) => {
|
|
57284
57284
|
kr.call(t, rr, Pr, yn);
|
|
57285
57285
|
});
|
|
57286
57286
|
}
|
|
@@ -57329,9 +57329,9 @@ function createDOMPurify() {
|
|
|
57329
57329
|
// the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
57330
57330
|
Pr === "is" && Zt.allowCustomizedBuiltInElements && (Zt.tagNameCheck instanceof RegExp && regExpTest(Zt.tagNameCheck, kr) || Zt.tagNameCheck instanceof Function && Zt.tagNameCheck(kr)))
|
|
57331
57331
|
) return !1;
|
|
57332
|
-
} else if (!
|
|
57332
|
+
} else if (!_r[Pr]) {
|
|
57333
57333
|
if (!regExpTest(zt, stringReplace(kr, Dt, ""))) {
|
|
57334
|
-
if (!((Pr === "src" || Pr === "xlink:href" || Pr === "href") && rr !== "script" && stringIndexOf(kr, "data:") === 0 &&
|
|
57334
|
+
if (!((Pr === "src" || Pr === "xlink:href" || Pr === "href") && rr !== "script" && stringIndexOf(kr, "data:") === 0 && $r[rr])) {
|
|
57335
57335
|
if (!(mr && !regExpTest(Ht, stringReplace(kr, Dt, "")))) {
|
|
57336
57336
|
if (kr)
|
|
57337
57337
|
return !1;
|
|
@@ -57412,44 +57412,44 @@ function createDOMPurify() {
|
|
|
57412
57412
|
}
|
|
57413
57413
|
}
|
|
57414
57414
|
gn(Ct.afterSanitizeAttributes, rr, null);
|
|
57415
|
-
}, qn = function
|
|
57415
|
+
}, qn = function Vr(rr) {
|
|
57416
57416
|
let Pr = null;
|
|
57417
57417
|
const kr = $n(rr);
|
|
57418
57418
|
for (gn(Ct.beforeSanitizeShadowDOM, rr, null); Pr = kr.nextNode(); )
|
|
57419
|
-
gn(Ct.uponSanitizeShadowNode, Pr, null), zn(Pr), Bn(Pr), Pr.content instanceof o &&
|
|
57419
|
+
gn(Ct.uponSanitizeShadowNode, Pr, null), zn(Pr), Bn(Pr), Pr.content instanceof o && Vr(Pr.content);
|
|
57420
57420
|
gn(Ct.afterSanitizeShadowDOM, rr, null);
|
|
57421
57421
|
};
|
|
57422
|
-
return t.sanitize = function(
|
|
57422
|
+
return t.sanitize = function(Vr) {
|
|
57423
57423
|
let rr = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, Pr = null, kr = null, Wr = null, tn = null;
|
|
57424
|
-
if (dn = !
|
|
57425
|
-
if (typeof
|
|
57426
|
-
if (
|
|
57424
|
+
if (dn = !Vr, dn && (Vr = "<!-->"), typeof Vr != "string" && !Hn(Vr))
|
|
57425
|
+
if (typeof Vr.toString == "function") {
|
|
57426
|
+
if (Vr = Vr.toString(), typeof Vr != "string")
|
|
57427
57427
|
throw typeErrorCreate("dirty is not a string, aborting");
|
|
57428
57428
|
} else
|
|
57429
57429
|
throw typeErrorCreate("toString is not a function");
|
|
57430
57430
|
if (!t.isSupported)
|
|
57431
|
-
return
|
|
57432
|
-
if (vr || Sn(rr), t.removed = [], typeof
|
|
57433
|
-
if (
|
|
57434
|
-
const hn = Kr(
|
|
57431
|
+
return Vr;
|
|
57432
|
+
if (vr || Sn(rr), t.removed = [], typeof Vr == "string" && (er = !1), er) {
|
|
57433
|
+
if (Vr.nodeName) {
|
|
57434
|
+
const hn = Kr(Vr.nodeName);
|
|
57435
57435
|
if (!Qt[hn] || pr[hn])
|
|
57436
57436
|
throw typeErrorCreate("root node is forbidden and cannot be sanitized in-place");
|
|
57437
57437
|
}
|
|
57438
|
-
} else if (
|
|
57439
|
-
Pr = On("<!---->"), kr = Pr.ownerDocument.importNode(
|
|
57438
|
+
} else if (Vr instanceof c)
|
|
57439
|
+
Pr = On("<!---->"), kr = Pr.ownerDocument.importNode(Vr, !0), kr.nodeType === NODE_TYPE.element && kr.nodeName === "BODY" || kr.nodeName === "HTML" ? Pr = kr : Pr.appendChild(kr);
|
|
57440
57440
|
else {
|
|
57441
57441
|
if (!Cr && !Ar && !br && // eslint-disable-next-line unicorn/prefer-includes
|
|
57442
|
-
|
|
57443
|
-
return ct && wr ? ct.createHTML(
|
|
57444
|
-
if (Pr = On(
|
|
57442
|
+
Vr.indexOf("<") === -1)
|
|
57443
|
+
return ct && wr ? ct.createHTML(Vr) : Vr;
|
|
57444
|
+
if (Pr = On(Vr), !Pr)
|
|
57445
57445
|
return Cr ? null : wr ? lt : "";
|
|
57446
57446
|
}
|
|
57447
57447
|
Pr && Sr && on(Pr.firstChild);
|
|
57448
|
-
const Xr = $n(er ?
|
|
57448
|
+
const Xr = $n(er ? Vr : Pr);
|
|
57449
57449
|
for (; Wr = Xr.nextNode(); )
|
|
57450
57450
|
zn(Wr), Bn(Wr), Wr.content instanceof o && qn(Wr.content);
|
|
57451
57451
|
if (er)
|
|
57452
|
-
return
|
|
57452
|
+
return Vr;
|
|
57453
57453
|
if (Cr) {
|
|
57454
57454
|
if (xr)
|
|
57455
57455
|
for (tn = pt.call(Pr.ownerDocument); Pr.firstChild; )
|
|
@@ -57464,24 +57464,24 @@ function createDOMPurify() {
|
|
|
57464
57464
|
nn = stringReplace(nn, hn, " ");
|
|
57465
57465
|
}), ct && wr ? ct.createHTML(nn) : nn;
|
|
57466
57466
|
}, t.setConfig = function() {
|
|
57467
|
-
let
|
|
57468
|
-
Sn(
|
|
57467
|
+
let Vr = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
57468
|
+
Sn(Vr), vr = !0;
|
|
57469
57469
|
}, t.clearConfig = function() {
|
|
57470
57470
|
yn = null, vr = !1;
|
|
57471
|
-
}, t.isValidAttribute = function(
|
|
57471
|
+
}, t.isValidAttribute = function(Vr, rr, Pr) {
|
|
57472
57472
|
yn || Sn({});
|
|
57473
|
-
const kr = Kr(
|
|
57473
|
+
const kr = Kr(Vr), Wr = Kr(rr);
|
|
57474
57474
|
return Gn(kr, Wr, Pr);
|
|
57475
|
-
}, t.addHook = function(
|
|
57476
|
-
typeof rr == "function" && arrayPush(Ct[
|
|
57477
|
-
}, t.removeHook = function(
|
|
57475
|
+
}, t.addHook = function(Vr, rr) {
|
|
57476
|
+
typeof rr == "function" && arrayPush(Ct[Vr], rr);
|
|
57477
|
+
}, t.removeHook = function(Vr, rr) {
|
|
57478
57478
|
if (rr !== void 0) {
|
|
57479
|
-
const Pr = arrayLastIndexOf(Ct[
|
|
57480
|
-
return Pr === -1 ? void 0 : arraySplice(Ct[
|
|
57479
|
+
const Pr = arrayLastIndexOf(Ct[Vr], rr);
|
|
57480
|
+
return Pr === -1 ? void 0 : arraySplice(Ct[Vr], Pr, 1)[0];
|
|
57481
57481
|
}
|
|
57482
|
-
return arrayPop(Ct[
|
|
57483
|
-
}, t.removeHooks = function(
|
|
57484
|
-
Ct[
|
|
57482
|
+
return arrayPop(Ct[Vr]);
|
|
57483
|
+
}, t.removeHooks = function(Vr) {
|
|
57484
|
+
Ct[Vr] = [];
|
|
57485
57485
|
}, t.removeAllHooks = function() {
|
|
57486
57486
|
Ct = _createHooksMap();
|
|
57487
57487
|
}, t;
|
|
@@ -58408,7 +58408,7 @@ function deepEqual$1(e, t, n = /* @__PURE__ */ new WeakSet()) {
|
|
|
58408
58408
|
if (isPrimitive(e) || isPrimitive(t))
|
|
58409
58409
|
return Object.is(e, t);
|
|
58410
58410
|
if (isDateObject(e) && isDateObject(t))
|
|
58411
|
-
return e.getTime()
|
|
58411
|
+
return Object.is(e.getTime(), t.getTime());
|
|
58412
58412
|
const a = Object.keys(e), s = Object.keys(t);
|
|
58413
58413
|
if (a.length !== s.length)
|
|
58414
58414
|
return !1;
|
|
@@ -58827,12 +58827,12 @@ function createFormControl(e = {}) {
|
|
|
58827
58827
|
if (!t.disabled) {
|
|
58828
58828
|
if (!lr || or) {
|
|
58829
58829
|
(R.isDirty || V.isDirty) && (yr = n.isDirty, n.isDirty = Tr.isDirty = ft(), ir = yr !== Tr.isDirty);
|
|
58830
|
-
const
|
|
58831
|
-
yr = !!get$1(n.dirtyFields, Wt),
|
|
58830
|
+
const $r = deepEqual$1(get$1(s, Wt), nr);
|
|
58831
|
+
yr = !!get$1(n.dirtyFields, Wt), $r ? unset(n.dirtyFields, Wt) : set$1(n.dirtyFields, Wt, !0), Tr.dirtyFields = n.dirtyFields, ir = ir || (R.dirtyFields || V.dirtyFields) && yr !== !$r;
|
|
58832
58832
|
}
|
|
58833
58833
|
if (lr) {
|
|
58834
|
-
const
|
|
58835
|
-
|
|
58834
|
+
const $r = get$1(n.touchedFields, Wt);
|
|
58835
|
+
$r || (set$1(n.touchedFields, Wt, lr), Tr.touchedFields = n.touchedFields, ir = ir || (R.touchedFields || V.touchedFields) && $r !== lr);
|
|
58836
58836
|
}
|
|
58837
58837
|
ir && er && Ve.state.next(Tr);
|
|
58838
58838
|
}
|
|
@@ -58869,12 +58869,12 @@ function createFormControl(e = {}) {
|
|
|
58869
58869
|
if (er) {
|
|
58870
58870
|
const { _f: ir, ...yr } = er;
|
|
58871
58871
|
if (ir) {
|
|
58872
|
-
const Tr = c.array.has(ir.name),
|
|
58873
|
-
|
|
58874
|
-
const
|
|
58875
|
-
if (
|
|
58872
|
+
const Tr = c.array.has(ir.name), $r = er._f && hasPromiseValidation(er._f);
|
|
58873
|
+
$r && R.validatingFields && nt([ir.name], !0);
|
|
58874
|
+
const Dr = await validateField(er, c.disabled, o, Ye, t.shouldUseNativeValidation && !nr, Tr);
|
|
58875
|
+
if ($r && R.validatingFields && nt([ir.name]), Dr[ir.name] && (lr.valid = !1, nr || e.shouldUseNativeValidation))
|
|
58876
58876
|
break;
|
|
58877
|
-
!nr && (get$1(
|
|
58877
|
+
!nr && (get$1(Dr, ir.name) ? Tr ? updateFieldArrayRootError(n.errors, Dr, ir.name) : set$1(n.errors, ir.name, Dr[ir.name]) : unset(n.errors, ir.name));
|
|
58878
58878
|
}
|
|
58879
58879
|
!isEmptyObject$1(yr) && await Rt(yr, nr, lr);
|
|
58880
58880
|
}
|
|
@@ -58917,7 +58917,11 @@ function createFormControl(e = {}) {
|
|
|
58917
58917
|
name: Wt,
|
|
58918
58918
|
dirtyFields: getDirtyFields(s, o),
|
|
58919
58919
|
isDirty: ft(Wt, ir)
|
|
58920
|
-
})) : or && !or._f && !isNullOrUndefined(ir) ? Ft(Wt, ir, lr) : Mt(Wt, ir, lr), isWatched(Wt, c)
|
|
58920
|
+
})) : or && !or._f && !isNullOrUndefined(ir) ? Ft(Wt, ir, lr) : Mt(Wt, ir, lr), isWatched(Wt, c) ? Ve.state.next({
|
|
58921
|
+
...n,
|
|
58922
|
+
name: Wt,
|
|
58923
|
+
values: cloneObject(o)
|
|
58924
|
+
}) : Ve.state.next({
|
|
58921
58925
|
name: l.mount ? Wt : void 0,
|
|
58922
58926
|
values: cloneObject(o)
|
|
58923
58927
|
});
|
|
@@ -58925,14 +58929,14 @@ function createFormControl(e = {}) {
|
|
|
58925
58929
|
l.mount = !0;
|
|
58926
58930
|
const nr = Wt.target;
|
|
58927
58931
|
let lr = nr.name, or = !0;
|
|
58928
|
-
const er = get$1(a, lr), ir = (
|
|
58929
|
-
or = Number.isNaN(
|
|
58932
|
+
const er = get$1(a, lr), ir = ($r) => {
|
|
58933
|
+
or = Number.isNaN($r) || isDateObject($r) && isNaN($r.getTime()) || deepEqual$1($r, get$1(o, lr, $r));
|
|
58930
58934
|
}, yr = getValidationModes(t.mode), Tr = getValidationModes(t.reValidateMode);
|
|
58931
58935
|
if (er) {
|
|
58932
|
-
let
|
|
58933
|
-
const
|
|
58934
|
-
set$1(o, lr,
|
|
58935
|
-
const Yr = st(lr,
|
|
58936
|
+
let $r, Dr;
|
|
58937
|
+
const _r = nr.type ? getFieldValue(er._f) : getEventValue(Wt), Jr = Wt.type === EVENTS.BLUR || Wt.type === EVENTS.FOCUS_OUT, Zr = !hasValidation(er._f) && !t.resolver && !get$1(n.errors, lr) && !er._f.deps || skipValidation(Jr, get$1(n.touchedFields, lr), n.isSubmitted, Tr, yr), en = isWatched(lr, c, Jr);
|
|
58938
|
+
set$1(o, lr, _r), Jr ? (!nr || !nr.readOnly) && (er._f.onBlur && er._f.onBlur(Wt), f && f(0)) : er._f.onChange && er._f.onChange(Wt);
|
|
58939
|
+
const Yr = st(lr, _r, Jr), sn = !isEmptyObject$1(Yr) || en;
|
|
58936
58940
|
if (!Jr && Ve.state.next({
|
|
58937
58941
|
name: lr,
|
|
58938
58942
|
type: Wt.type,
|
|
@@ -58941,13 +58945,13 @@ function createFormControl(e = {}) {
|
|
|
58941
58945
|
return (R.isValid || V.isValid) && (t.mode === "onBlur" ? Jr && et() : Jr || et()), sn && Ve.state.next({ name: lr, ...en ? {} : Yr });
|
|
58942
58946
|
if (!Jr && en && Ve.state.next({ ...n }), t.resolver) {
|
|
58943
58947
|
const { errors: dn } = await pt([lr]);
|
|
58944
|
-
if (nt([lr]), ir(
|
|
58948
|
+
if (nt([lr]), ir(_r), or) {
|
|
58945
58949
|
const bn = schemaErrorLookup(n.errors, a, lr), fn = schemaErrorLookup(dn, a, bn.name || lr);
|
|
58946
|
-
|
|
58950
|
+
$r = fn.error, lr = fn.name, Dr = isEmptyObject$1(dn);
|
|
58947
58951
|
}
|
|
58948
58952
|
} else
|
|
58949
|
-
nt([lr], !0),
|
|
58950
|
-
or && (er._f.deps && (!Array.isArray(er._f.deps) || er._f.deps.length > 0) && zt(er._f.deps), ut(lr, $r,
|
|
58953
|
+
nt([lr], !0), $r = (await validateField(er, c.disabled, o, Ye, t.shouldUseNativeValidation))[lr], nt([lr]), ir(_r), or && ($r ? Dr = !1 : (R.isValid || V.isValid) && (Dr = await Rt(a, !0)));
|
|
58954
|
+
or && (er._f.deps && (!Array.isArray(er._f.deps) || er._f.deps.length > 0) && zt(er._f.deps), ut(lr, Dr, $r, Yr));
|
|
58951
58955
|
}
|
|
58952
58956
|
}, Vt = (Wt, nr) => {
|
|
58953
58957
|
if (get$1(n.errors, nr) && Wt.focus)
|
|
@@ -58983,9 +58987,9 @@ function createFormControl(e = {}) {
|
|
|
58983
58987
|
errors: Wt ? n.errors : {}
|
|
58984
58988
|
});
|
|
58985
58989
|
}, sr = (Wt, nr, lr) => {
|
|
58986
|
-
const or = (get$1(a, Wt, { _f: {} })._f || {}).ref, er = get$1(n.errors, Wt) || {}, { ref: ir, message: yr, type: Tr,
|
|
58990
|
+
const or = (get$1(a, Wt, { _f: {} })._f || {}).ref, er = get$1(n.errors, Wt) || {}, { ref: ir, message: yr, type: Tr, ...$r } = er;
|
|
58987
58991
|
set$1(n.errors, Wt, {
|
|
58988
|
-
|
|
58992
|
+
...$r,
|
|
58989
58993
|
...nr,
|
|
58990
58994
|
ref: or
|
|
58991
58995
|
}), Ve.state.next({
|
|
@@ -59055,7 +59059,7 @@ function createFormControl(e = {}) {
|
|
|
59055
59059
|
if (er) {
|
|
59056
59060
|
hr(Wt, nr), lr = get$1(a, Wt);
|
|
59057
59061
|
const ir = isUndefined(er.value) && er.querySelectorAll && er.querySelectorAll("input,select,textarea")[0] || er, yr = isRadioOrCheckbox(ir), Tr = lr._f.refs || [];
|
|
59058
|
-
if (yr ? Tr.find((
|
|
59062
|
+
if (yr ? Tr.find(($r) => $r === ir) : ir === lr._f.ref)
|
|
59059
59063
|
return;
|
|
59060
59064
|
set$1(a, Wt, {
|
|
59061
59065
|
_f: {
|
|
@@ -59124,18 +59128,20 @@ function createFormControl(e = {}) {
|
|
|
59124
59128
|
...c.mount,
|
|
59125
59129
|
...Object.keys(getDirtyFields(s, o))
|
|
59126
59130
|
]);
|
|
59127
|
-
for (const Tr of Array.from(yr))
|
|
59128
|
-
get$1(n.dirtyFields, Tr)
|
|
59131
|
+
for (const Tr of Array.from(yr)) {
|
|
59132
|
+
const $r = get$1(n.dirtyFields, Tr), Dr = get$1(o, Tr), _r = get$1(ir, Tr);
|
|
59133
|
+
$r && !isUndefined(Dr) ? set$1(ir, Tr, Dr) : !$r && !isUndefined(_r) && Ht(Tr, _r);
|
|
59134
|
+
}
|
|
59129
59135
|
} else {
|
|
59130
59136
|
if (isWeb && isUndefined(Wt))
|
|
59131
59137
|
for (const yr of c.mount) {
|
|
59132
59138
|
const Tr = get$1(a, yr);
|
|
59133
59139
|
if (Tr && Tr._f) {
|
|
59134
|
-
const
|
|
59135
|
-
if (isHTMLElement(
|
|
59136
|
-
const
|
|
59137
|
-
if (
|
|
59138
|
-
|
|
59140
|
+
const $r = Array.isArray(Tr._f.refs) ? Tr._f.refs[0] : Tr._f.ref;
|
|
59141
|
+
if (isHTMLElement($r)) {
|
|
59142
|
+
const Dr = $r.closest("form");
|
|
59143
|
+
if (Dr) {
|
|
59144
|
+
Dr.reset();
|
|
59139
59145
|
break;
|
|
59140
59146
|
}
|
|
59141
59147
|
}
|
|
@@ -67640,13 +67646,13 @@ Defaulting to 2020, but this will stop working in the future.`)), dt.ecmaVersion
|
|
|
67640
67646
|
}
|
|
67641
67647
|
function dr(it, dt) {
|
|
67642
67648
|
return function($t, Ut, qt, cr, gr, Er) {
|
|
67643
|
-
var
|
|
67649
|
+
var Ir = {
|
|
67644
67650
|
type: $t ? "Block" : "Line",
|
|
67645
67651
|
value: Ut,
|
|
67646
67652
|
start: qt,
|
|
67647
67653
|
end: cr
|
|
67648
67654
|
};
|
|
67649
|
-
it.locations && (
|
|
67655
|
+
it.locations && (Ir.loc = new ar(this, gr, Er)), it.ranges && (Ir.range = [qt, cr]), dt.push(Ir);
|
|
67650
67656
|
};
|
|
67651
67657
|
}
|
|
67652
67658
|
var Yt = 1, hr = 2, mr = 4, Kt = 8, Ar = 16, ur = 32, br = 64, vr = 128, Sr = 256, Cr = Yt | hr | Sr;
|
|
@@ -67705,13 +67711,13 @@ Defaulting to 2020, but this will stop working in the future.`)), dt.ecmaVersion
|
|
|
67705
67711
|
}, ir.tokenizer = function(dt, $t) {
|
|
67706
67712
|
return new this($t, dt);
|
|
67707
67713
|
}, Object.defineProperties(ir.prototype, yr);
|
|
67708
|
-
var Tr = ir.prototype,
|
|
67714
|
+
var Tr = ir.prototype, $r = /^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;
|
|
67709
67715
|
Tr.strictDirective = function(it) {
|
|
67710
67716
|
if (this.options.ecmaVersion < 5)
|
|
67711
67717
|
return !1;
|
|
67712
67718
|
for (; ; ) {
|
|
67713
67719
|
ft.lastIndex = it, it += ft.exec(this.input)[0].length;
|
|
67714
|
-
var dt =
|
|
67720
|
+
var dt = $r.exec(this.input.slice(it));
|
|
67715
67721
|
if (!dt)
|
|
67716
67722
|
return !1;
|
|
67717
67723
|
if ((dt[1] || dt[2]) === "use strict") {
|
|
@@ -67744,7 +67750,7 @@ Defaulting to 2020, but this will stop working in the future.`)), dt.ecmaVersion
|
|
|
67744
67750
|
}, Tr.unexpected = function(it) {
|
|
67745
67751
|
this.raise(it ?? this.start, "Unexpected token");
|
|
67746
67752
|
};
|
|
67747
|
-
var
|
|
67753
|
+
var Dr = function() {
|
|
67748
67754
|
this.shorthandAssign = this.trailingComma = this.parenthesizedAssign = this.parenthesizedBind = this.doubleProto = -1;
|
|
67749
67755
|
};
|
|
67750
67756
|
Tr.checkPatternErrors = function(it, dt) {
|
|
@@ -67765,8 +67771,8 @@ Defaulting to 2020, but this will stop working in the future.`)), dt.ecmaVersion
|
|
|
67765
67771
|
}, Tr.isSimpleAssignTarget = function(it) {
|
|
67766
67772
|
return it.type === "ParenthesizedExpression" ? this.isSimpleAssignTarget(it.expression) : it.type === "Identifier" || it.type === "MemberExpression";
|
|
67767
67773
|
};
|
|
67768
|
-
var
|
|
67769
|
-
|
|
67774
|
+
var _r = ir.prototype;
|
|
67775
|
+
_r.parseTopLevel = function(it) {
|
|
67770
67776
|
var dt = /* @__PURE__ */ Object.create(null);
|
|
67771
67777
|
for (it.body || (it.body = []); this.type !== st.eof; ) {
|
|
67772
67778
|
var $t = this.parseStatement(null, !0, dt);
|
|
@@ -67780,7 +67786,7 @@ Defaulting to 2020, but this will stop working in the future.`)), dt.ecmaVersion
|
|
|
67780
67786
|
return this.adaptDirectivePrologue(it.body), this.next(), it.sourceType = this.options.sourceType, this.finishNode(it, "Program");
|
|
67781
67787
|
};
|
|
67782
67788
|
var Jr = { kind: "loop" }, Zr = { kind: "switch" };
|
|
67783
|
-
|
|
67789
|
+
_r.isLet = function(it) {
|
|
67784
67790
|
if (this.options.ecmaVersion < 6 || !this.isContextual("let"))
|
|
67785
67791
|
return !1;
|
|
67786
67792
|
ft.lastIndex = this.pos;
|
|
@@ -67801,13 +67807,13 @@ Defaulting to 2020, but this will stop working in the future.`)), dt.ecmaVersion
|
|
|
67801
67807
|
return !0;
|
|
67802
67808
|
}
|
|
67803
67809
|
return !1;
|
|
67804
|
-
},
|
|
67810
|
+
}, _r.isAsyncFunction = function() {
|
|
67805
67811
|
if (this.options.ecmaVersion < 8 || !this.isContextual("async"))
|
|
67806
67812
|
return !1;
|
|
67807
67813
|
ft.lastIndex = this.pos;
|
|
67808
67814
|
var it = ft.exec(this.input), dt = this.pos + it[0].length, $t;
|
|
67809
67815
|
return !ut.test(this.input.slice(this.pos, dt)) && this.input.slice(dt, dt + 8) === "function" && (dt + 8 === this.input.length || !(rt($t = this.input.charCodeAt(dt + 8)) || $t > 55295 && $t < 56320));
|
|
67810
|
-
},
|
|
67816
|
+
}, _r.parseStatement = function(it, dt, $t) {
|
|
67811
67817
|
var Ut = this.type, qt = this.startNode(), cr;
|
|
67812
67818
|
switch (this.isLet(it) && (Ut = st._var, cr = "let"), Ut) {
|
|
67813
67819
|
case st._break:
|
|
@@ -67848,8 +67854,8 @@ Defaulting to 2020, but this will stop working in the future.`)), dt.ecmaVersion
|
|
|
67848
67854
|
case st._import:
|
|
67849
67855
|
if (this.options.ecmaVersion > 10 && Ut === st._import) {
|
|
67850
67856
|
ft.lastIndex = this.pos;
|
|
67851
|
-
var gr = ft.exec(this.input), Er = this.pos + gr[0].length,
|
|
67852
|
-
if (
|
|
67857
|
+
var gr = ft.exec(this.input), Er = this.pos + gr[0].length, Ir = this.input.charCodeAt(Er);
|
|
67858
|
+
if (Ir === 40 || Ir === 46)
|
|
67853
67859
|
return this.parseExpressionStatement(qt, this.parseExpression());
|
|
67854
67860
|
}
|
|
67855
67861
|
return this.options.allowImportExportEverywhere || (dt || 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'")), Ut === st._import ? this.parseImport(qt) : this.parseExport(qt, $t);
|
|
@@ -67859,7 +67865,7 @@ Defaulting to 2020, but this will stop working in the future.`)), dt.ecmaVersion
|
|
|
67859
67865
|
var Ur = this.value, Lr = this.parseExpression();
|
|
67860
67866
|
return Ut === st.name && Lr.type === "Identifier" && this.eat(st.colon) ? this.parseLabeledStatement(qt, Ur, Lr, it) : this.parseExpressionStatement(qt, Lr);
|
|
67861
67867
|
}
|
|
67862
|
-
},
|
|
67868
|
+
}, _r.parseBreakContinueStatement = function(it, dt) {
|
|
67863
67869
|
var $t = dt === "break";
|
|
67864
67870
|
this.next(), this.eat(st.semi) || this.insertSemicolon() ? it.label = null : this.type !== st.name ? this.unexpected() : (it.label = this.parseIdent(), this.semicolon());
|
|
67865
67871
|
for (var Ut = 0; Ut < this.labels.length; ++Ut) {
|
|
@@ -67868,11 +67874,11 @@ Defaulting to 2020, but this will stop working in the future.`)), dt.ecmaVersion
|
|
|
67868
67874
|
break;
|
|
67869
67875
|
}
|
|
67870
67876
|
return Ut === this.labels.length && this.raise(it.start, "Unsyntactic " + dt), this.finishNode(it, $t ? "BreakStatement" : "ContinueStatement");
|
|
67871
|
-
},
|
|
67877
|
+
}, _r.parseDebuggerStatement = function(it) {
|
|
67872
67878
|
return this.next(), this.semicolon(), this.finishNode(it, "DebuggerStatement");
|
|
67873
|
-
},
|
|
67879
|
+
}, _r.parseDoStatement = function(it) {
|
|
67874
67880
|
return this.next(), this.labels.push(Jr), it.body = this.parseStatement("do"), this.labels.pop(), this.expect(st._while), it.test = this.parseParenExpression(), this.options.ecmaVersion >= 6 ? this.eat(st.semi) : this.semicolon(), this.finishNode(it, "DoWhileStatement");
|
|
67875
|
-
},
|
|
67881
|
+
}, _r.parseForStatement = function(it) {
|
|
67876
67882
|
this.next();
|
|
67877
67883
|
var dt = this.options.ecmaVersion >= 9 && this.canAwait && this.eatContextual("await") ? this.lastTokStart : -1;
|
|
67878
67884
|
if (this.labels.push(Jr), this.enterScope(0), this.expect(st.parenL), this.type === st.semi)
|
|
@@ -67882,15 +67888,15 @@ Defaulting to 2020, but this will stop working in the future.`)), dt.ecmaVersion
|
|
|
67882
67888
|
var Ut = this.startNode(), qt = $t ? "let" : this.value;
|
|
67883
67889
|
return this.next(), this.parseVar(Ut, !0, qt), this.finishNode(Ut, "VariableDeclaration"), (this.type === st._in || this.options.ecmaVersion >= 6 && this.isContextual("of")) && Ut.declarations.length === 1 ? (this.options.ecmaVersion >= 9 && (this.type === st._in ? dt > -1 && this.unexpected(dt) : it.await = dt > -1), this.parseForIn(it, Ut)) : (dt > -1 && this.unexpected(dt), this.parseFor(it, Ut));
|
|
67884
67890
|
}
|
|
67885
|
-
var cr = this.isContextual("let"), gr = !1, Er = this.containsEsc,
|
|
67886
|
-
return this.type === st._in || (gr = this.options.ecmaVersion >= 6 && this.isContextual("of")) ? (dt > -1 ? (this.type === st._in && this.unexpected(dt), it.await = !0) : gr && this.options.ecmaVersion >= 8 && (Lr.start === Ur && !Er && Lr.type === "Identifier" && Lr.name === "async" ? this.unexpected() : this.options.ecmaVersion >= 9 && (it.await = !1)), cr && gr && this.raise(Lr.start, "The left-hand side of a for-of loop may not start with 'let'."), this.toAssignable(Lr, !1,
|
|
67887
|
-
},
|
|
67891
|
+
var cr = this.isContextual("let"), gr = !1, Er = this.containsEsc, Ir = new Dr(), Ur = this.start, Lr = dt > -1 ? this.parseExprSubscripts(Ir, "await") : this.parseExpression(!0, Ir);
|
|
67892
|
+
return this.type === st._in || (gr = this.options.ecmaVersion >= 6 && this.isContextual("of")) ? (dt > -1 ? (this.type === st._in && this.unexpected(dt), it.await = !0) : gr && this.options.ecmaVersion >= 8 && (Lr.start === Ur && !Er && Lr.type === "Identifier" && Lr.name === "async" ? this.unexpected() : this.options.ecmaVersion >= 9 && (it.await = !1)), cr && gr && this.raise(Lr.start, "The left-hand side of a for-of loop may not start with 'let'."), this.toAssignable(Lr, !1, Ir), this.checkLValPattern(Lr), this.parseForIn(it, Lr)) : (this.checkExpressionErrors(Ir, !0), dt > -1 && this.unexpected(dt), this.parseFor(it, Lr));
|
|
67893
|
+
}, _r.parseFunctionStatement = function(it, dt, $t) {
|
|
67888
67894
|
return this.next(), this.parseFunction(it, Yr | ($t ? 0 : sn), !1, dt);
|
|
67889
|
-
},
|
|
67895
|
+
}, _r.parseIfStatement = function(it) {
|
|
67890
67896
|
return this.next(), it.test = this.parseParenExpression(), it.consequent = this.parseStatement("if"), it.alternate = this.eat(st._else) ? this.parseStatement("if") : null, this.finishNode(it, "IfStatement");
|
|
67891
|
-
},
|
|
67897
|
+
}, _r.parseReturnStatement = function(it) {
|
|
67892
67898
|
return !this.inFunction && !this.options.allowReturnOutsideFunction && this.raise(this.start, "'return' outside of function"), this.next(), this.eat(st.semi) || this.insertSemicolon() ? it.argument = null : (it.argument = this.parseExpression(), this.semicolon()), this.finishNode(it, "ReturnStatement");
|
|
67893
|
-
},
|
|
67899
|
+
}, _r.parseSwitchStatement = function(it) {
|
|
67894
67900
|
this.next(), it.discriminant = this.parseParenExpression(), it.cases = [], this.expect(st.braceL), this.labels.push(Zr), this.enterScope(0);
|
|
67895
67901
|
for (var dt, $t = !1; this.type !== st.braceR; )
|
|
67896
67902
|
if (this.type === st._case || this.type === st._default) {
|
|
@@ -67899,71 +67905,71 @@ Defaulting to 2020, but this will stop working in the future.`)), dt.ecmaVersion
|
|
|
67899
67905
|
} else
|
|
67900
67906
|
dt || this.unexpected(), dt.consequent.push(this.parseStatement(null));
|
|
67901
67907
|
return this.exitScope(), dt && this.finishNode(dt, "SwitchCase"), this.next(), this.labels.pop(), this.finishNode(it, "SwitchStatement");
|
|
67902
|
-
},
|
|
67908
|
+
}, _r.parseThrowStatement = function(it) {
|
|
67903
67909
|
return this.next(), ut.test(this.input.slice(this.lastTokEnd, this.start)) && this.raise(this.lastTokEnd, "Illegal newline after throw"), it.argument = this.parseExpression(), this.semicolon(), this.finishNode(it, "ThrowStatement");
|
|
67904
67910
|
};
|
|
67905
67911
|
var en = [];
|
|
67906
|
-
|
|
67912
|
+
_r.parseCatchClauseParam = function() {
|
|
67907
67913
|
var it = this.parseBindingAtom(), dt = it.type === "Identifier";
|
|
67908
67914
|
return this.enterScope(dt ? ur : 0), this.checkLValPattern(it, dt ? or : nr), this.expect(st.parenR), it;
|
|
67909
|
-
},
|
|
67915
|
+
}, _r.parseTryStatement = function(it) {
|
|
67910
67916
|
if (this.next(), it.block = this.parseBlock(), it.handler = null, this.type === st._catch) {
|
|
67911
67917
|
var dt = this.startNode();
|
|
67912
67918
|
this.next(), this.eat(st.parenL) ? dt.param = this.parseCatchClauseParam() : (this.options.ecmaVersion < 10 && this.unexpected(), dt.param = null, this.enterScope(0)), dt.body = this.parseBlock(!1), this.exitScope(), it.handler = this.finishNode(dt, "CatchClause");
|
|
67913
67919
|
}
|
|
67914
67920
|
return it.finalizer = this.eat(st._finally) ? this.parseBlock() : null, !it.handler && !it.finalizer && this.raise(it.start, "Missing catch or finally clause"), this.finishNode(it, "TryStatement");
|
|
67915
|
-
},
|
|
67921
|
+
}, _r.parseVarStatement = function(it, dt, $t) {
|
|
67916
67922
|
return this.next(), this.parseVar(it, !1, dt, $t), this.semicolon(), this.finishNode(it, "VariableDeclaration");
|
|
67917
|
-
},
|
|
67923
|
+
}, _r.parseWhileStatement = function(it) {
|
|
67918
67924
|
return this.next(), it.test = this.parseParenExpression(), this.labels.push(Jr), it.body = this.parseStatement("while"), this.labels.pop(), this.finishNode(it, "WhileStatement");
|
|
67919
|
-
},
|
|
67925
|
+
}, _r.parseWithStatement = function(it) {
|
|
67920
67926
|
return this.strict && this.raise(this.start, "'with' in strict mode"), this.next(), it.object = this.parseParenExpression(), it.body = this.parseStatement("with"), this.finishNode(it, "WithStatement");
|
|
67921
|
-
},
|
|
67927
|
+
}, _r.parseEmptyStatement = function(it) {
|
|
67922
67928
|
return this.next(), this.finishNode(it, "EmptyStatement");
|
|
67923
|
-
},
|
|
67929
|
+
}, _r.parseLabeledStatement = function(it, dt, $t, Ut) {
|
|
67924
67930
|
for (var qt = 0, cr = this.labels; qt < cr.length; qt += 1) {
|
|
67925
67931
|
var gr = cr[qt];
|
|
67926
67932
|
gr.name === dt && this.raise($t.start, "Label '" + dt + "' is already declared");
|
|
67927
67933
|
}
|
|
67928
|
-
for (var Er = this.type.isLoop ? "loop" : this.type === st._switch ? "switch" : null,
|
|
67929
|
-
var Ur = this.labels[
|
|
67934
|
+
for (var Er = this.type.isLoop ? "loop" : this.type === st._switch ? "switch" : null, Ir = this.labels.length - 1; Ir >= 0; Ir--) {
|
|
67935
|
+
var Ur = this.labels[Ir];
|
|
67930
67936
|
if (Ur.statementStart === it.start)
|
|
67931
67937
|
Ur.statementStart = this.start, Ur.kind = Er;
|
|
67932
67938
|
else
|
|
67933
67939
|
break;
|
|
67934
67940
|
}
|
|
67935
67941
|
return this.labels.push({ name: dt, kind: Er, statementStart: this.start }), it.body = this.parseStatement(Ut ? Ut.indexOf("label") === -1 ? Ut + "label" : Ut : "label"), this.labels.pop(), it.label = $t, this.finishNode(it, "LabeledStatement");
|
|
67936
|
-
},
|
|
67942
|
+
}, _r.parseExpressionStatement = function(it, dt) {
|
|
67937
67943
|
return it.expression = dt, this.semicolon(), this.finishNode(it, "ExpressionStatement");
|
|
67938
|
-
},
|
|
67944
|
+
}, _r.parseBlock = function(it, dt, $t) {
|
|
67939
67945
|
for (it === void 0 && (it = !0), dt === void 0 && (dt = this.startNode()), dt.body = [], this.expect(st.braceL), it && this.enterScope(0); this.type !== st.braceR; ) {
|
|
67940
67946
|
var Ut = this.parseStatement(null);
|
|
67941
67947
|
dt.body.push(Ut);
|
|
67942
67948
|
}
|
|
67943
67949
|
return $t && (this.strict = !1), this.next(), it && this.exitScope(), this.finishNode(dt, "BlockStatement");
|
|
67944
|
-
},
|
|
67950
|
+
}, _r.parseFor = function(it, dt) {
|
|
67945
67951
|
return it.init = dt, this.expect(st.semi), it.test = this.type === st.semi ? null : this.parseExpression(), this.expect(st.semi), it.update = this.type === st.parenR ? null : this.parseExpression(), this.expect(st.parenR), it.body = this.parseStatement("for"), this.exitScope(), this.labels.pop(), this.finishNode(it, "ForStatement");
|
|
67946
|
-
},
|
|
67952
|
+
}, _r.parseForIn = function(it, dt) {
|
|
67947
67953
|
var $t = this.type === st._in;
|
|
67948
67954
|
return this.next(), dt.type === "VariableDeclaration" && dt.declarations[0].init != null && (!$t || this.options.ecmaVersion < 8 || this.strict || dt.kind !== "var" || dt.declarations[0].id.type !== "Identifier") && this.raise(dt.start, ($t ? "for-in" : "for-of") + " loop variable declaration may not have an initializer"), it.left = dt, it.right = $t ? this.parseExpression() : this.parseMaybeAssign(), this.expect(st.parenR), it.body = this.parseStatement("for"), this.exitScope(), this.labels.pop(), this.finishNode(it, $t ? "ForInStatement" : "ForOfStatement");
|
|
67949
|
-
},
|
|
67955
|
+
}, _r.parseVar = function(it, dt, $t, Ut) {
|
|
67950
67956
|
for (it.declarations = [], it.kind = $t; ; ) {
|
|
67951
67957
|
var qt = this.startNode();
|
|
67952
67958
|
if (this.parseVarId(qt, $t), this.eat(st.eq) ? qt.init = this.parseMaybeAssign(dt) : !Ut && $t === "const" && !(this.type === st._in || this.options.ecmaVersion >= 6 && this.isContextual("of")) ? this.unexpected() : !Ut && qt.id.type !== "Identifier" && !(dt && (this.type === st._in || this.isContextual("of"))) ? this.raise(this.lastTokEnd, "Complex binding patterns require an initialization value") : qt.init = null, it.declarations.push(this.finishNode(qt, "VariableDeclarator")), !this.eat(st.comma))
|
|
67953
67959
|
break;
|
|
67954
67960
|
}
|
|
67955
67961
|
return it;
|
|
67956
|
-
},
|
|
67962
|
+
}, _r.parseVarId = function(it, dt) {
|
|
67957
67963
|
it.id = this.parseBindingAtom(), this.checkLValPattern(it.id, dt === "var" ? Wt : nr, !1);
|
|
67958
67964
|
};
|
|
67959
67965
|
var Yr = 1, sn = 2, dn = 4;
|
|
67960
|
-
|
|
67966
|
+
_r.parseFunction = function(it, dt, $t, Ut, qt) {
|
|
67961
67967
|
this.initFunction(it), (this.options.ecmaVersion >= 9 || this.options.ecmaVersion >= 6 && !Ut) && (this.type === st.star && dt & sn && this.unexpected(), it.generator = this.eat(st.star)), this.options.ecmaVersion >= 8 && (it.async = !!Ut), dt & Yr && (it.id = dt & dn && this.type !== st.name ? null : this.parseIdent(), it.id && !(dt & sn) && this.checkLValSimple(it.id, this.strict || it.generator || it.async ? this.treatFunctionsAsVar ? Wt : nr : lr));
|
|
67962
67968
|
var cr = this.yieldPos, gr = this.awaitPos, Er = this.awaitIdentPos;
|
|
67963
67969
|
return this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, this.enterScope(xr(it.async, it.generator)), dt & Yr || (it.id = this.type === st.name ? this.parseIdent() : null), this.parseFunctionParams(it), this.parseFunctionBody(it, $t, !1, qt), this.yieldPos = cr, this.awaitPos = gr, this.awaitIdentPos = Er, this.finishNode(it, dt & Yr ? "FunctionDeclaration" : "FunctionExpression");
|
|
67964
|
-
},
|
|
67970
|
+
}, _r.parseFunctionParams = function(it) {
|
|
67965
67971
|
this.expect(st.parenL), it.params = this.parseBindingList(st.parenR, !1, this.options.ecmaVersion >= 8), this.checkYieldAwaitInDefaultParams();
|
|
67966
|
-
},
|
|
67972
|
+
}, _r.parseClass = function(it, dt) {
|
|
67967
67973
|
this.next();
|
|
67968
67974
|
var $t = this.strict;
|
|
67969
67975
|
this.strict = !0, this.parseClassId(it, dt), this.parseClassSuper(it);
|
|
@@ -67973,7 +67979,7 @@ Defaulting to 2020, but this will stop working in the future.`)), dt.ecmaVersion
|
|
|
67973
67979
|
gr && (qt.body.push(gr), gr.type === "MethodDefinition" && gr.kind === "constructor" ? (cr && this.raiseRecoverable(gr.start, "Duplicate constructor in the same class"), cr = !0) : gr.key && gr.key.type === "PrivateIdentifier" && bn(Ut, gr) && this.raiseRecoverable(gr.key.start, "Identifier '#" + gr.key.name + "' has already been declared"));
|
|
67974
67980
|
}
|
|
67975
67981
|
return this.strict = $t, this.next(), it.body = this.finishNode(qt, "ClassBody"), this.exitClassBody(), this.finishNode(it, dt ? "ClassDeclaration" : "ClassExpression");
|
|
67976
|
-
},
|
|
67982
|
+
}, _r.parseClassElement = function(it) {
|
|
67977
67983
|
if (this.eat(st.semi))
|
|
67978
67984
|
return null;
|
|
67979
67985
|
var dt = this.options.ecmaVersion, $t = this.startNode(), Ut = "", qt = !1, cr = !1, gr = "method", Er = !1;
|
|
@@ -67983,8 +67989,8 @@ Defaulting to 2020, but this will stop working in the future.`)), dt.ecmaVersion
|
|
|
67983
67989
|
this.isClassElementNameStart() || this.type === st.star ? Er = !0 : Ut = "static";
|
|
67984
67990
|
}
|
|
67985
67991
|
if ($t.static = Er, !Ut && dt >= 8 && this.eatContextual("async") && ((this.isClassElementNameStart() || this.type === st.star) && !this.canInsertSemicolon() ? cr = !0 : Ut = "async"), !Ut && (dt >= 9 || !cr) && this.eat(st.star) && (qt = !0), !Ut && !cr && !qt) {
|
|
67986
|
-
var
|
|
67987
|
-
(this.eatContextual("get") || this.eatContextual("set")) && (this.isClassElementNameStart() ? gr =
|
|
67992
|
+
var Ir = this.value;
|
|
67993
|
+
(this.eatContextual("get") || this.eatContextual("set")) && (this.isClassElementNameStart() ? gr = Ir : Ut = Ir);
|
|
67988
67994
|
}
|
|
67989
67995
|
if (Ut ? ($t.computed = !1, $t.key = this.startNodeAt(this.lastTokStart, this.lastTokStartLoc), $t.key.name = Ut, this.finishNode($t.key, "Identifier")) : this.parseClassElementName($t), dt < 13 || this.type === st.parenL || gr !== "method" || qt || cr) {
|
|
67990
67996
|
var Ur = !$t.static && fn($t, "constructor"), Lr = Ur && it;
|
|
@@ -67992,23 +67998,23 @@ Defaulting to 2020, but this will stop working in the future.`)), dt.ecmaVersion
|
|
|
67992
67998
|
} else
|
|
67993
67999
|
this.parseClassField($t);
|
|
67994
68000
|
return $t;
|
|
67995
|
-
},
|
|
68001
|
+
}, _r.isClassElementNameStart = function() {
|
|
67996
68002
|
return this.type === st.name || this.type === st.privateId || this.type === st.num || this.type === st.string || this.type === st.bracketL || this.type.keyword;
|
|
67997
|
-
},
|
|
68003
|
+
}, _r.parseClassElementName = function(it) {
|
|
67998
68004
|
this.type === st.privateId ? (this.value === "constructor" && this.raise(this.start, "Classes can't have an element named '#constructor'"), it.computed = !1, it.key = this.parsePrivateIdent()) : this.parsePropertyName(it);
|
|
67999
|
-
},
|
|
68005
|
+
}, _r.parseClassMethod = function(it, dt, $t, Ut) {
|
|
68000
68006
|
var qt = it.key;
|
|
68001
68007
|
it.kind === "constructor" ? (dt && this.raise(qt.start, "Constructor can't be a generator"), $t && this.raise(qt.start, "Constructor can't be an async method")) : it.static && fn(it, "prototype") && this.raise(qt.start, "Classes may not have a static property named prototype");
|
|
68002
68008
|
var cr = it.value = this.parseMethod(dt, $t, Ut);
|
|
68003
68009
|
return it.kind === "get" && cr.params.length !== 0 && this.raiseRecoverable(cr.start, "getter should have no params"), it.kind === "set" && cr.params.length !== 1 && this.raiseRecoverable(cr.start, "setter should have exactly one param"), it.kind === "set" && cr.params[0].type === "RestElement" && this.raiseRecoverable(cr.params[0].start, "Setter cannot use rest params"), this.finishNode(it, "MethodDefinition");
|
|
68004
|
-
},
|
|
68010
|
+
}, _r.parseClassField = function(it) {
|
|
68005
68011
|
if (fn(it, "constructor") ? this.raise(it.key.start, "Classes can't have a field named 'constructor'") : it.static && fn(it, "prototype") && this.raise(it.key.start, "Classes can't have a static field named 'prototype'"), this.eat(st.eq)) {
|
|
68006
68012
|
var dt = this.currentThisScope(), $t = dt.inClassFieldInit;
|
|
68007
68013
|
dt.inClassFieldInit = !0, it.value = this.parseMaybeAssign(), dt.inClassFieldInit = $t;
|
|
68008
68014
|
} else
|
|
68009
68015
|
it.value = null;
|
|
68010
68016
|
return this.semicolon(), this.finishNode(it, "PropertyDefinition");
|
|
68011
|
-
},
|
|
68017
|
+
}, _r.parseClassStaticBlock = function(it) {
|
|
68012
68018
|
it.body = [];
|
|
68013
68019
|
var dt = this.labels;
|
|
68014
68020
|
for (this.labels = [], this.enterScope(Sr | br); this.type !== st.braceR; ) {
|
|
@@ -68016,14 +68022,14 @@ Defaulting to 2020, but this will stop working in the future.`)), dt.ecmaVersion
|
|
|
68016
68022
|
it.body.push($t);
|
|
68017
68023
|
}
|
|
68018
68024
|
return this.next(), this.exitScope(), this.labels = dt, this.finishNode(it, "StaticBlock");
|
|
68019
|
-
},
|
|
68025
|
+
}, _r.parseClassId = function(it, dt) {
|
|
68020
68026
|
this.type === st.name ? (it.id = this.parseIdent(), dt && this.checkLValSimple(it.id, nr, !1)) : (dt === !0 && this.unexpected(), it.id = null);
|
|
68021
|
-
},
|
|
68027
|
+
}, _r.parseClassSuper = function(it) {
|
|
68022
68028
|
it.superClass = this.eat(st._extends) ? this.parseExprSubscripts(null, !1) : null;
|
|
68023
|
-
},
|
|
68029
|
+
}, _r.enterClassBody = function() {
|
|
68024
68030
|
var it = { declared: /* @__PURE__ */ Object.create(null), used: [] };
|
|
68025
68031
|
return this.privateNameStack.push(it), it.declared;
|
|
68026
|
-
},
|
|
68032
|
+
}, _r.exitClassBody = function() {
|
|
68027
68033
|
var it = this.privateNameStack.pop(), dt = it.declared, $t = it.used;
|
|
68028
68034
|
if (this.options.checkPrivateFields)
|
|
68029
68035
|
for (var Ut = this.privateNameStack.length, qt = Ut === 0 ? null : this.privateNameStack[Ut - 1], cr = 0; cr < $t.length; ++cr) {
|
|
@@ -68039,9 +68045,9 @@ Defaulting to 2020, but this will stop working in the future.`)), dt.ecmaVersion
|
|
|
68039
68045
|
var $t = it.computed, Ut = it.key;
|
|
68040
68046
|
return !$t && (Ut.type === "Identifier" && Ut.name === dt || Ut.type === "Literal" && Ut.value === dt);
|
|
68041
68047
|
}
|
|
68042
|
-
|
|
68048
|
+
_r.parseExportAllDeclaration = function(it, dt) {
|
|
68043
68049
|
return this.options.ecmaVersion >= 11 && (this.eatContextual("as") ? (it.exported = this.parseModuleExportName(), this.checkExport(dt, it.exported, this.lastTokStart)) : it.exported = null), this.expectContextual("from"), this.type !== st.string && this.unexpected(), it.source = this.parseExprAtom(), this.semicolon(), this.finishNode(it, "ExportAllDeclaration");
|
|
68044
|
-
},
|
|
68050
|
+
}, _r.parseExport = function(it, dt) {
|
|
68045
68051
|
if (this.next(), this.eat(st.star))
|
|
68046
68052
|
return this.parseExportAllDeclaration(it, dt);
|
|
68047
68053
|
if (this.eat(st._default))
|
|
@@ -68061,9 +68067,9 @@ Defaulting to 2020, but this will stop working in the future.`)), dt.ecmaVersion
|
|
|
68061
68067
|
this.semicolon();
|
|
68062
68068
|
}
|
|
68063
68069
|
return this.finishNode(it, "ExportNamedDeclaration");
|
|
68064
|
-
},
|
|
68070
|
+
}, _r.parseExportDeclaration = function(it) {
|
|
68065
68071
|
return this.parseStatement(null);
|
|
68066
|
-
},
|
|
68072
|
+
}, _r.parseExportDefaultDeclaration = function() {
|
|
68067
68073
|
var it;
|
|
68068
68074
|
if (this.type === st._function || (it = this.isAsyncFunction())) {
|
|
68069
68075
|
var dt = this.startNode();
|
|
@@ -68075,9 +68081,9 @@ Defaulting to 2020, but this will stop working in the future.`)), dt.ecmaVersion
|
|
|
68075
68081
|
var Ut = this.parseMaybeAssign();
|
|
68076
68082
|
return this.semicolon(), Ut;
|
|
68077
68083
|
}
|
|
68078
|
-
},
|
|
68084
|
+
}, _r.checkExport = function(it, dt, $t) {
|
|
68079
68085
|
it && (typeof dt != "string" && (dt = dt.type === "Identifier" ? dt.name : dt.value), Ft(it, dt) && this.raiseRecoverable($t, "Duplicate export '" + dt + "'"), it[dt] = !0);
|
|
68080
|
-
},
|
|
68086
|
+
}, _r.checkPatternExport = function(it, dt) {
|
|
68081
68087
|
var $t = dt.type;
|
|
68082
68088
|
if ($t === "Identifier")
|
|
68083
68089
|
this.checkExport(it, dt, dt.start);
|
|
@@ -68088,22 +68094,22 @@ Defaulting to 2020, but this will stop working in the future.`)), dt.ecmaVersion
|
|
|
68088
68094
|
}
|
|
68089
68095
|
else if ($t === "ArrayPattern")
|
|
68090
68096
|
for (var gr = 0, Er = dt.elements; gr < Er.length; gr += 1) {
|
|
68091
|
-
var
|
|
68092
|
-
|
|
68097
|
+
var Ir = Er[gr];
|
|
68098
|
+
Ir && this.checkPatternExport(it, Ir);
|
|
68093
68099
|
}
|
|
68094
68100
|
else $t === "Property" ? this.checkPatternExport(it, dt.value) : $t === "AssignmentPattern" ? this.checkPatternExport(it, dt.left) : $t === "RestElement" && this.checkPatternExport(it, dt.argument);
|
|
68095
|
-
},
|
|
68101
|
+
}, _r.checkVariableExport = function(it, dt) {
|
|
68096
68102
|
if (it)
|
|
68097
68103
|
for (var $t = 0, Ut = dt; $t < Ut.length; $t += 1) {
|
|
68098
68104
|
var qt = Ut[$t];
|
|
68099
68105
|
this.checkPatternExport(it, qt.id);
|
|
68100
68106
|
}
|
|
68101
|
-
},
|
|
68107
|
+
}, _r.shouldParseExportStatement = function() {
|
|
68102
68108
|
return this.type.keyword === "var" || this.type.keyword === "const" || this.type.keyword === "class" || this.type.keyword === "function" || this.isLet() || this.isAsyncFunction();
|
|
68103
|
-
},
|
|
68109
|
+
}, _r.parseExportSpecifier = function(it) {
|
|
68104
68110
|
var dt = this.startNode();
|
|
68105
68111
|
return dt.local = this.parseModuleExportName(), dt.exported = this.eatContextual("as") ? this.parseModuleExportName() : dt.local, this.checkExport(it, dt.exported, dt.exported.start), this.finishNode(dt, "ExportSpecifier");
|
|
68106
|
-
},
|
|
68112
|
+
}, _r.parseExportSpecifiers = function(it) {
|
|
68107
68113
|
var dt = [], $t = !0;
|
|
68108
68114
|
for (this.expect(st.braceL); !this.eat(st.braceR); ) {
|
|
68109
68115
|
if ($t)
|
|
@@ -68113,18 +68119,18 @@ Defaulting to 2020, but this will stop working in the future.`)), dt.ecmaVersion
|
|
|
68113
68119
|
dt.push(this.parseExportSpecifier(it));
|
|
68114
68120
|
}
|
|
68115
68121
|
return dt;
|
|
68116
|
-
},
|
|
68122
|
+
}, _r.parseImport = function(it) {
|
|
68117
68123
|
return this.next(), this.type === st.string ? (it.specifiers = en, it.source = this.parseExprAtom()) : (it.specifiers = this.parseImportSpecifiers(), this.expectContextual("from"), it.source = this.type === st.string ? this.parseExprAtom() : this.unexpected()), this.semicolon(), this.finishNode(it, "ImportDeclaration");
|
|
68118
|
-
},
|
|
68124
|
+
}, _r.parseImportSpecifier = function() {
|
|
68119
68125
|
var it = this.startNode();
|
|
68120
68126
|
return it.imported = this.parseModuleExportName(), this.eatContextual("as") ? it.local = this.parseIdent() : (this.checkUnreserved(it.imported), it.local = it.imported), this.checkLValSimple(it.local, nr), this.finishNode(it, "ImportSpecifier");
|
|
68121
|
-
},
|
|
68127
|
+
}, _r.parseImportDefaultSpecifier = function() {
|
|
68122
68128
|
var it = this.startNode();
|
|
68123
68129
|
return it.local = this.parseIdent(), this.checkLValSimple(it.local, nr), this.finishNode(it, "ImportDefaultSpecifier");
|
|
68124
|
-
},
|
|
68130
|
+
}, _r.parseImportNamespaceSpecifier = function() {
|
|
68125
68131
|
var it = this.startNode();
|
|
68126
68132
|
return this.next(), this.expectContextual("as"), it.local = this.parseIdent(), this.checkLValSimple(it.local, nr), this.finishNode(it, "ImportNamespaceSpecifier");
|
|
68127
|
-
},
|
|
68133
|
+
}, _r.parseImportSpecifiers = function() {
|
|
68128
68134
|
var it = [], dt = !0;
|
|
68129
68135
|
if (this.type === st.name && (it.push(this.parseImportDefaultSpecifier()), !this.eat(st.comma)))
|
|
68130
68136
|
return it;
|
|
@@ -68138,20 +68144,20 @@ Defaulting to 2020, but this will stop working in the future.`)), dt.ecmaVersion
|
|
|
68138
68144
|
it.push(this.parseImportSpecifier());
|
|
68139
68145
|
}
|
|
68140
68146
|
return it;
|
|
68141
|
-
},
|
|
68147
|
+
}, _r.parseModuleExportName = function() {
|
|
68142
68148
|
if (this.options.ecmaVersion >= 13 && this.type === st.string) {
|
|
68143
68149
|
var it = this.parseLiteral(this.value);
|
|
68144
68150
|
return Qt.test(it.value) && this.raise(it.start, "An export name cannot include a lone surrogate."), it;
|
|
68145
68151
|
}
|
|
68146
68152
|
return this.parseIdent(!0);
|
|
68147
|
-
},
|
|
68153
|
+
}, _r.adaptDirectivePrologue = function(it) {
|
|
68148
68154
|
for (var dt = 0; dt < it.length && this.isDirectiveCandidate(it[dt]); ++dt)
|
|
68149
68155
|
it[dt].directive = it[dt].expression.raw.slice(1, -1);
|
|
68150
|
-
},
|
|
68156
|
+
}, _r.isDirectiveCandidate = function(it) {
|
|
68151
68157
|
return this.options.ecmaVersion >= 5 && it.type === "ExpressionStatement" && it.expression.type === "Literal" && typeof it.expression.value == "string" && (this.input[it.start] === '"' || this.input[it.start] === "'");
|
|
68152
68158
|
};
|
|
68153
|
-
var
|
|
68154
|
-
|
|
68159
|
+
var Or = ir.prototype;
|
|
68160
|
+
Or.toAssignable = function(it, dt, $t) {
|
|
68155
68161
|
if (this.options.ecmaVersion >= 6 && it)
|
|
68156
68162
|
switch (it.type) {
|
|
68157
68163
|
case "Identifier":
|
|
@@ -68195,7 +68201,7 @@ Defaulting to 2020, but this will stop working in the future.`)), dt.ecmaVersion
|
|
|
68195
68201
|
}
|
|
68196
68202
|
else $t && this.checkPatternErrors($t, !0);
|
|
68197
68203
|
return it;
|
|
68198
|
-
},
|
|
68204
|
+
}, Or.toAssignableList = function(it, dt) {
|
|
68199
68205
|
for (var $t = it.length, Ut = 0; Ut < $t; Ut++) {
|
|
68200
68206
|
var qt = it[Ut];
|
|
68201
68207
|
qt && this.toAssignable(qt, dt);
|
|
@@ -68205,13 +68211,13 @@ Defaulting to 2020, but this will stop working in the future.`)), dt.ecmaVersion
|
|
|
68205
68211
|
this.options.ecmaVersion === 6 && dt && cr && cr.type === "RestElement" && cr.argument.type !== "Identifier" && this.unexpected(cr.argument.start);
|
|
68206
68212
|
}
|
|
68207
68213
|
return it;
|
|
68208
|
-
},
|
|
68214
|
+
}, Or.parseSpread = function(it) {
|
|
68209
68215
|
var dt = this.startNode();
|
|
68210
68216
|
return this.next(), dt.argument = this.parseMaybeAssign(!1, it), this.finishNode(dt, "SpreadElement");
|
|
68211
|
-
},
|
|
68217
|
+
}, Or.parseRestBinding = function() {
|
|
68212
68218
|
var it = this.startNode();
|
|
68213
68219
|
return this.next(), this.options.ecmaVersion === 6 && this.type !== st.name && this.unexpected(), it.argument = this.parseBindingAtom(), this.finishNode(it, "RestElement");
|
|
68214
|
-
},
|
|
68220
|
+
}, Or.parseBindingAtom = function() {
|
|
68215
68221
|
if (this.options.ecmaVersion >= 6)
|
|
68216
68222
|
switch (this.type) {
|
|
68217
68223
|
case st.bracketL:
|
|
@@ -68221,7 +68227,7 @@ Defaulting to 2020, but this will stop working in the future.`)), dt.ecmaVersion
|
|
|
68221
68227
|
return this.parseObj(!0);
|
|
68222
68228
|
}
|
|
68223
68229
|
return this.parseIdent();
|
|
68224
|
-
},
|
|
68230
|
+
}, Or.parseBindingList = function(it, dt, $t, Ut) {
|
|
68225
68231
|
for (var qt = [], cr = !0; !this.eat(it); )
|
|
68226
68232
|
if (cr ? cr = !1 : this.expect(st.comma), dt && this.type === st.comma)
|
|
68227
68233
|
qt.push(null);
|
|
@@ -68236,17 +68242,17 @@ Defaulting to 2020, but this will stop working in the future.`)), dt.ecmaVersion
|
|
|
68236
68242
|
qt.push(this.parseAssignableListItem(Ut));
|
|
68237
68243
|
}
|
|
68238
68244
|
return qt;
|
|
68239
|
-
},
|
|
68245
|
+
}, Or.parseAssignableListItem = function(it) {
|
|
68240
68246
|
var dt = this.parseMaybeDefault(this.start, this.startLoc);
|
|
68241
68247
|
return this.parseBindingListItem(dt), dt;
|
|
68242
|
-
},
|
|
68248
|
+
}, Or.parseBindingListItem = function(it) {
|
|
68243
68249
|
return it;
|
|
68244
|
-
},
|
|
68250
|
+
}, Or.parseMaybeDefault = function(it, dt, $t) {
|
|
68245
68251
|
if ($t = $t || this.parseBindingAtom(), this.options.ecmaVersion < 6 || !this.eat(st.eq))
|
|
68246
68252
|
return $t;
|
|
68247
68253
|
var Ut = this.startNodeAt(it, dt);
|
|
68248
68254
|
return Ut.left = $t, Ut.right = this.parseMaybeAssign(), this.finishNode(Ut, "AssignmentPattern");
|
|
68249
|
-
},
|
|
68255
|
+
}, Or.checkLValSimple = function(it, dt, $t) {
|
|
68250
68256
|
dt === void 0 && (dt = wr);
|
|
68251
68257
|
var Ut = dt !== wr;
|
|
68252
68258
|
switch (it.type) {
|
|
@@ -68264,7 +68270,7 @@ Defaulting to 2020, but this will stop working in the future.`)), dt.ecmaVersion
|
|
|
68264
68270
|
default:
|
|
68265
68271
|
this.raise(it.start, (Ut ? "Binding" : "Assigning to") + " rvalue");
|
|
68266
68272
|
}
|
|
68267
|
-
},
|
|
68273
|
+
}, Or.checkLValPattern = function(it, dt, $t) {
|
|
68268
68274
|
switch (dt === void 0 && (dt = wr), it.type) {
|
|
68269
68275
|
case "ObjectPattern":
|
|
68270
68276
|
for (var Ut = 0, qt = it.properties; Ut < qt.length; Ut += 1) {
|
|
@@ -68274,14 +68280,14 @@ Defaulting to 2020, but this will stop working in the future.`)), dt.ecmaVersion
|
|
|
68274
68280
|
break;
|
|
68275
68281
|
case "ArrayPattern":
|
|
68276
68282
|
for (var gr = 0, Er = it.elements; gr < Er.length; gr += 1) {
|
|
68277
|
-
var
|
|
68278
|
-
|
|
68283
|
+
var Ir = Er[gr];
|
|
68284
|
+
Ir && this.checkLValInnerPattern(Ir, dt, $t);
|
|
68279
68285
|
}
|
|
68280
68286
|
break;
|
|
68281
68287
|
default:
|
|
68282
68288
|
this.checkLValSimple(it, dt, $t);
|
|
68283
68289
|
}
|
|
68284
|
-
},
|
|
68290
|
+
}, Or.checkLValInnerPattern = function(it, dt, $t) {
|
|
68285
68291
|
switch (dt === void 0 && (dt = wr), it.type) {
|
|
68286
68292
|
case "Property":
|
|
68287
68293
|
this.checkLValInnerPattern(it.value, dt, $t);
|
|
@@ -68298,7 +68304,7 @@ Defaulting to 2020, but this will stop working in the future.`)), dt.ecmaVersion
|
|
|
68298
68304
|
};
|
|
68299
68305
|
var Br = function(dt, $t, Ut, qt, cr) {
|
|
68300
68306
|
this.token = dt, this.isExpr = !!$t, this.preserveSpace = !!Ut, this.override = qt, this.generator = !!cr;
|
|
68301
|
-
},
|
|
68307
|
+
}, Rr = {
|
|
68302
68308
|
b_stat: new Br("{", !1),
|
|
68303
68309
|
b_expr: new Br("{", !0),
|
|
68304
68310
|
b_tmpl: new Br("${", !1),
|
|
@@ -68313,12 +68319,12 @@ Defaulting to 2020, but this will stop working in the future.`)), dt.ecmaVersion
|
|
|
68313
68319
|
f_gen: new Br("function", !1, !1, null, !0)
|
|
68314
68320
|
}, jr = ir.prototype;
|
|
68315
68321
|
jr.initialContext = function() {
|
|
68316
|
-
return [
|
|
68322
|
+
return [Rr.b_stat];
|
|
68317
68323
|
}, jr.curContext = function() {
|
|
68318
68324
|
return this.context[this.context.length - 1];
|
|
68319
68325
|
}, jr.braceIsBlock = function(it) {
|
|
68320
68326
|
var dt = this.curContext();
|
|
68321
|
-
return dt ===
|
|
68327
|
+
return dt === Rr.f_expr || dt === Rr.f_stat ? !0 : it === st.colon && (dt === Rr.b_stat || dt === Rr.b_expr) ? !dt.isExpr : it === st._return || it === st.name && this.exprAllowed ? ut.test(this.input.slice(this.lastTokEnd, this.start)) : it === st._else || it === st.semi || it === st.eof || it === st.parenR || it === st.arrow ? !0 : it === st.braceL ? dt === Rr.b_stat : it === st._var || it === st._const || it === st.name ? !1 : !this.exprAllowed;
|
|
68322
68328
|
}, jr.inGeneratorContext = function() {
|
|
68323
68329
|
for (var it = this.context.length - 1; it >= 1; it--) {
|
|
68324
68330
|
var dt = this.context[it];
|
|
@@ -68337,25 +68343,25 @@ Defaulting to 2020, but this will stop working in the future.`)), dt.ecmaVersion
|
|
|
68337
68343
|
return;
|
|
68338
68344
|
}
|
|
68339
68345
|
var it = this.context.pop();
|
|
68340
|
-
it ===
|
|
68346
|
+
it === Rr.b_stat && this.curContext().token === "function" && (it = this.context.pop()), this.exprAllowed = !it.isExpr;
|
|
68341
68347
|
}, st.braceL.updateContext = function(it) {
|
|
68342
|
-
this.context.push(this.braceIsBlock(it) ?
|
|
68348
|
+
this.context.push(this.braceIsBlock(it) ? Rr.b_stat : Rr.b_expr), this.exprAllowed = !0;
|
|
68343
68349
|
}, st.dollarBraceL.updateContext = function() {
|
|
68344
|
-
this.context.push(
|
|
68350
|
+
this.context.push(Rr.b_tmpl), this.exprAllowed = !0;
|
|
68345
68351
|
}, st.parenL.updateContext = function(it) {
|
|
68346
68352
|
var dt = it === st._if || it === st._for || it === st._with || it === st._while;
|
|
68347
|
-
this.context.push(dt ?
|
|
68353
|
+
this.context.push(dt ? Rr.p_stat : Rr.p_expr), this.exprAllowed = !0;
|
|
68348
68354
|
}, st.incDec.updateContext = function() {
|
|
68349
68355
|
}, st._function.updateContext = st._class.updateContext = function(it) {
|
|
68350
|
-
it.beforeExpr && it !== st._else && !(it === st.semi && this.curContext() !==
|
|
68356
|
+
it.beforeExpr && it !== st._else && !(it === st.semi && this.curContext() !== Rr.p_stat) && !(it === st._return && ut.test(this.input.slice(this.lastTokEnd, this.start))) && !((it === st.colon || it === st.braceL) && this.curContext() === Rr.b_stat) ? this.context.push(Rr.f_expr) : this.context.push(Rr.f_stat), this.exprAllowed = !1;
|
|
68351
68357
|
}, st.colon.updateContext = function() {
|
|
68352
68358
|
this.curContext().token === "function" && this.context.pop(), this.exprAllowed = !0;
|
|
68353
68359
|
}, st.backQuote.updateContext = function() {
|
|
68354
|
-
this.curContext() ===
|
|
68360
|
+
this.curContext() === Rr.q_tmpl ? this.context.pop() : this.context.push(Rr.q_tmpl), this.exprAllowed = !1;
|
|
68355
68361
|
}, st.star.updateContext = function(it) {
|
|
68356
68362
|
if (it === st._function) {
|
|
68357
68363
|
var dt = this.context.length - 1;
|
|
68358
|
-
this.context[dt] ===
|
|
68364
|
+
this.context[dt] === Rr.f_expr ? this.context[dt] = Rr.f_expr_gen : this.context[dt] = Rr.f_gen;
|
|
68359
68365
|
}
|
|
68360
68366
|
this.exprAllowed = !0;
|
|
68361
68367
|
}, st.name.updateContext = function(it) {
|
|
@@ -68410,12 +68416,12 @@ Defaulting to 2020, but this will stop working in the future.`)), dt.ecmaVersion
|
|
|
68410
68416
|
this.exprAllowed = !1;
|
|
68411
68417
|
}
|
|
68412
68418
|
var Ut = !1, qt = -1, cr = -1, gr = -1;
|
|
68413
|
-
dt ? (qt = dt.parenthesizedAssign, cr = dt.trailingComma, gr = dt.doubleProto, dt.parenthesizedAssign = dt.trailingComma = -1) : (dt = new
|
|
68414
|
-
var Er = this.start,
|
|
68419
|
+
dt ? (qt = dt.parenthesizedAssign, cr = dt.trailingComma, gr = dt.doubleProto, dt.parenthesizedAssign = dt.trailingComma = -1) : (dt = new Dr(), Ut = !0);
|
|
68420
|
+
var Er = this.start, Ir = this.startLoc;
|
|
68415
68421
|
(this.type === st.parenL || this.type === st.name) && (this.potentialArrowAt = this.start, this.potentialArrowInForAwait = it === "await");
|
|
68416
68422
|
var Ur = this.parseMaybeConditional(it, dt);
|
|
68417
|
-
if ($t && (Ur = $t.call(this, Ur, Er,
|
|
68418
|
-
var Lr = this.startNodeAt(Er,
|
|
68423
|
+
if ($t && (Ur = $t.call(this, Ur, Er, Ir)), this.type.isAssign) {
|
|
68424
|
+
var Lr = this.startNodeAt(Er, Ir);
|
|
68419
68425
|
return Lr.operator = this.value, this.type === st.eq && (Ur = this.toAssignable(Ur, !1, dt)), Ut || (dt.parenthesizedAssign = dt.trailingComma = dt.doubleProto = -1), dt.shorthandAssign >= Ur.start && (dt.shorthandAssign = -1), this.type === st.eq ? this.checkLValPattern(Ur) : this.checkLValSimple(Ur), Lr.left = Ur, this.next(), Lr.right = this.parseMaybeAssign(it), gr > -1 && (dt.doubleProto = gr), this.finishNode(Lr, "AssignmentExpression");
|
|
68420
68426
|
} else
|
|
68421
68427
|
Ut && this.checkExpressionErrors(dt, !0);
|
|
@@ -68437,9 +68443,9 @@ Defaulting to 2020, but this will stop working in the future.`)), dt.ecmaVersion
|
|
|
68437
68443
|
if (cr != null && (!qt || this.type !== st._in) && cr > Ut) {
|
|
68438
68444
|
var gr = this.type === st.logicalOR || this.type === st.logicalAND, Er = this.type === st.coalesce;
|
|
68439
68445
|
Er && (cr = st.logicalAND.binop);
|
|
68440
|
-
var
|
|
68446
|
+
var Ir = this.value;
|
|
68441
68447
|
this.next();
|
|
68442
|
-
var Ur = this.start, Lr = this.startLoc, rn = this.parseExprOp(this.parseMaybeUnary(null, !1, !1, qt), Ur, Lr, cr, qt), An = this.buildBinary(dt, $t, it, rn,
|
|
68448
|
+
var Ur = this.start, Lr = this.startLoc, rn = this.parseExprOp(this.parseMaybeUnary(null, !1, !1, qt), Ur, Lr, cr, qt), An = this.buildBinary(dt, $t, it, rn, Ir, gr || Er);
|
|
68443
68449
|
return (gr && this.type === st.coalesce || Er && (this.type === st.logicalOR || this.type === st.logicalAND)) && this.raiseRecoverable(this.start, "Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"), this.parseExprOp(An, dt, $t, Ut, qt);
|
|
68444
68450
|
}
|
|
68445
68451
|
return it;
|
|
@@ -68452,8 +68458,8 @@ Defaulting to 2020, but this will stop working in the future.`)), dt.ecmaVersion
|
|
|
68452
68458
|
if (this.isContextual("await") && this.canAwait)
|
|
68453
68459
|
gr = this.parseAwait(Ut), dt = !0;
|
|
68454
68460
|
else if (this.type.prefix) {
|
|
68455
|
-
var Er = this.startNode(),
|
|
68456
|
-
Er.operator = this.value, Er.prefix = !0, this.next(), Er.argument = this.parseMaybeUnary(null, !0,
|
|
68461
|
+
var Er = this.startNode(), Ir = this.type === st.incDec;
|
|
68462
|
+
Er.operator = this.value, Er.prefix = !0, this.next(), Er.argument = this.parseMaybeUnary(null, !0, Ir, Ut), this.checkExpressionErrors(it, !0), Ir ? this.checkLValSimple(Er.argument) : this.strict && Er.operator === "delete" && Hr(Er.argument) ? this.raiseRecoverable(Er.start, "Deleting local variable in strict mode") : Er.operator === "delete" && Kr(Er.argument) ? this.raiseRecoverable(Er.start, "Private fields can not be deleted") : dt = !0, gr = this.finishNode(Er, Ir ? "UpdateExpression" : "UnaryExpression");
|
|
68457
68463
|
} else if (!dt && this.type === st.privateId)
|
|
68458
68464
|
(Ut || this.privateNameStack.length === 0) && this.options.checkPrivateFields && this.unexpected(), gr = this.parsePrivateIdent(), this.type !== st._in && this.unexpected();
|
|
68459
68465
|
else {
|
|
@@ -68489,8 +68495,8 @@ Defaulting to 2020, but this will stop working in the future.`)), dt.ecmaVersion
|
|
|
68489
68495
|
var Er = this.parseSubscript(it, dt, $t, Ut, cr, gr, qt);
|
|
68490
68496
|
if (Er.optional && (gr = !0), Er === it || Er.type === "ArrowFunctionExpression") {
|
|
68491
68497
|
if (gr) {
|
|
68492
|
-
var
|
|
68493
|
-
|
|
68498
|
+
var Ir = this.startNodeAt(dt, $t);
|
|
68499
|
+
Ir.expression = Er, Er = this.finishNode(Ir, "ChainExpression");
|
|
68494
68500
|
}
|
|
68495
68501
|
return Er;
|
|
68496
68502
|
}
|
|
@@ -68501,23 +68507,23 @@ Defaulting to 2020, but this will stop working in the future.`)), dt.ecmaVersion
|
|
|
68501
68507
|
}, Mr.parseSubscriptAsyncArrow = function(it, dt, $t, Ut) {
|
|
68502
68508
|
return this.parseArrowExpression(this.startNodeAt(it, dt), $t, !0, Ut);
|
|
68503
68509
|
}, Mr.parseSubscript = function(it, dt, $t, Ut, qt, cr, gr) {
|
|
68504
|
-
var Er = this.options.ecmaVersion >= 11,
|
|
68505
|
-
Ut &&
|
|
68510
|
+
var Er = this.options.ecmaVersion >= 11, Ir = Er && this.eat(st.questionDot);
|
|
68511
|
+
Ut && Ir && this.raise(this.lastTokStart, "Optional chaining cannot appear in the callee of new expressions");
|
|
68506
68512
|
var Ur = this.eat(st.bracketL);
|
|
68507
|
-
if (Ur ||
|
|
68513
|
+
if (Ur || Ir && this.type !== st.parenL && this.type !== st.backQuote || this.eat(st.dot)) {
|
|
68508
68514
|
var Lr = this.startNodeAt(dt, $t);
|
|
68509
|
-
Lr.object = it, Ur ? (Lr.property = this.parseExpression(), this.expect(st.bracketR)) : this.type === st.privateId && it.type !== "Super" ? Lr.property = this.parsePrivateIdent() : Lr.property = this.parseIdent(this.options.allowReserved !== "never"), Lr.computed = !!Ur, Er && (Lr.optional =
|
|
68515
|
+
Lr.object = it, Ur ? (Lr.property = this.parseExpression(), this.expect(st.bracketR)) : this.type === st.privateId && it.type !== "Super" ? Lr.property = this.parsePrivateIdent() : Lr.property = this.parseIdent(this.options.allowReserved !== "never"), Lr.computed = !!Ur, Er && (Lr.optional = Ir), it = this.finishNode(Lr, "MemberExpression");
|
|
68510
68516
|
} else if (!Ut && this.eat(st.parenL)) {
|
|
68511
|
-
var rn = new
|
|
68517
|
+
var rn = new Dr(), An = this.yieldPos, Ln = this.awaitPos, In = this.awaitIdentPos;
|
|
68512
68518
|
this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0;
|
|
68513
68519
|
var Jn = this.parseExprList(st.parenR, this.options.ecmaVersion >= 8, !1, rn);
|
|
68514
|
-
if (qt && !
|
|
68520
|
+
if (qt && !Ir && this.shouldParseAsyncArrow())
|
|
68515
68521
|
return this.checkPatternErrors(rn, !1), this.checkYieldAwaitInDefaultParams(), this.awaitIdentPos > 0 && this.raise(this.awaitIdentPos, "Cannot use 'await' as identifier inside an async function"), this.yieldPos = An, this.awaitPos = Ln, this.awaitIdentPos = In, this.parseSubscriptAsyncArrow(dt, $t, Jn, gr);
|
|
68516
68522
|
this.checkExpressionErrors(rn, !0), this.yieldPos = An || this.yieldPos, this.awaitPos = Ln || this.awaitPos, this.awaitIdentPos = In || this.awaitIdentPos;
|
|
68517
68523
|
var Nn = this.startNodeAt(dt, $t);
|
|
68518
|
-
Nn.callee = it, Nn.arguments = Jn, Er && (Nn.optional =
|
|
68524
|
+
Nn.callee = it, Nn.arguments = Jn, Er && (Nn.optional = Ir), it = this.finishNode(Nn, "CallExpression");
|
|
68519
68525
|
} else if (this.type === st.backQuote) {
|
|
68520
|
-
(
|
|
68526
|
+
(Ir || cr) && this.raise(this.start, "Optional chaining cannot appear in the tag of tagged template expressions");
|
|
68521
68527
|
var kn = this.startNodeAt(dt, $t);
|
|
68522
68528
|
kn.tag = it, kn.quasi = this.parseTemplate({ isTagged: !0 }), it = this.finishNode(kn, "TaggedTemplateExpression");
|
|
68523
68529
|
}
|
|
@@ -68531,16 +68537,16 @@ Defaulting to 2020, but this will stop working in the future.`)), dt.ecmaVersion
|
|
|
68531
68537
|
case st._this:
|
|
68532
68538
|
return Ut = this.startNode(), this.next(), this.finishNode(Ut, "ThisExpression");
|
|
68533
68539
|
case st.name:
|
|
68534
|
-
var cr = this.start, gr = this.startLoc, Er = this.containsEsc,
|
|
68535
|
-
if (this.options.ecmaVersion >= 8 && !Er &&
|
|
68536
|
-
return this.overrideContext(
|
|
68540
|
+
var cr = this.start, gr = this.startLoc, Er = this.containsEsc, Ir = this.parseIdent(!1);
|
|
68541
|
+
if (this.options.ecmaVersion >= 8 && !Er && Ir.name === "async" && !this.canInsertSemicolon() && this.eat(st._function))
|
|
68542
|
+
return this.overrideContext(Rr.f_expr), this.parseFunction(this.startNodeAt(cr, gr), 0, !1, !0, dt);
|
|
68537
68543
|
if (qt && !this.canInsertSemicolon()) {
|
|
68538
68544
|
if (this.eat(st.arrow))
|
|
68539
|
-
return this.parseArrowExpression(this.startNodeAt(cr, gr), [
|
|
68540
|
-
if (this.options.ecmaVersion >= 8 &&
|
|
68541
|
-
return
|
|
68545
|
+
return this.parseArrowExpression(this.startNodeAt(cr, gr), [Ir], !1, dt);
|
|
68546
|
+
if (this.options.ecmaVersion >= 8 && Ir.name === "async" && this.type === st.name && !Er && (!this.potentialArrowInForAwait || this.value !== "of" || this.containsEsc))
|
|
68547
|
+
return Ir = this.parseIdent(!1), (this.canInsertSemicolon() || !this.eat(st.arrow)) && this.unexpected(), this.parseArrowExpression(this.startNodeAt(cr, gr), [Ir], !0, dt);
|
|
68542
68548
|
}
|
|
68543
|
-
return
|
|
68549
|
+
return Ir;
|
|
68544
68550
|
case st.regexp:
|
|
68545
68551
|
var Ur = this.value;
|
|
68546
68552
|
return Ut = this.parseLiteral(Ur.value), Ut.regex = { pattern: Ur.pattern, flags: Ur.flags }, Ut;
|
|
@@ -68557,7 +68563,7 @@ Defaulting to 2020, but this will stop working in the future.`)), dt.ecmaVersion
|
|
|
68557
68563
|
case st.bracketL:
|
|
68558
68564
|
return Ut = this.startNode(), this.next(), Ut.elements = this.parseExprList(st.bracketR, !0, !0, it), this.finishNode(Ut, "ArrayExpression");
|
|
68559
68565
|
case st.braceL:
|
|
68560
|
-
return this.overrideContext(
|
|
68566
|
+
return this.overrideContext(Rr.b_expr), this.parseObj(!1, it);
|
|
68561
68567
|
case st._function:
|
|
68562
68568
|
return Ut = this.startNode(), this.next(), this.parseFunction(Ut, 0);
|
|
68563
68569
|
case st._class:
|
|
@@ -68605,20 +68611,20 @@ Defaulting to 2020, but this will stop working in the future.`)), dt.ecmaVersion
|
|
|
68605
68611
|
var $t = this.start, Ut = this.startLoc, qt, cr = this.options.ecmaVersion >= 8;
|
|
68606
68612
|
if (this.options.ecmaVersion >= 6) {
|
|
68607
68613
|
this.next();
|
|
68608
|
-
var gr = this.start, Er = this.startLoc,
|
|
68614
|
+
var gr = this.start, Er = this.startLoc, Ir = [], Ur = !0, Lr = !1, rn = new Dr(), An = this.yieldPos, Ln = this.awaitPos, In;
|
|
68609
68615
|
for (this.yieldPos = 0, this.awaitPos = 0; this.type !== st.parenR; )
|
|
68610
68616
|
if (Ur ? Ur = !1 : this.expect(st.comma), cr && this.afterTrailingComma(st.parenR, !0)) {
|
|
68611
68617
|
Lr = !0;
|
|
68612
68618
|
break;
|
|
68613
68619
|
} else if (this.type === st.ellipsis) {
|
|
68614
|
-
In = this.start,
|
|
68620
|
+
In = this.start, Ir.push(this.parseParenItem(this.parseRestBinding())), this.type === st.comma && this.raiseRecoverable(this.start, "Comma is not permitted after the rest element");
|
|
68615
68621
|
break;
|
|
68616
68622
|
} else
|
|
68617
|
-
|
|
68623
|
+
Ir.push(this.parseMaybeAssign(!1, rn, this.parseParenItem));
|
|
68618
68624
|
var Jn = this.lastTokEnd, Nn = this.lastTokEndLoc;
|
|
68619
|
-
if (this.expect(st.parenR), it && this.shouldParseArrow(
|
|
68620
|
-
return this.checkPatternErrors(rn, !1), this.checkYieldAwaitInDefaultParams(), this.yieldPos = An, this.awaitPos = Ln, this.parseParenArrowList($t, Ut,
|
|
68621
|
-
(!
|
|
68625
|
+
if (this.expect(st.parenR), it && this.shouldParseArrow(Ir) && this.eat(st.arrow))
|
|
68626
|
+
return this.checkPatternErrors(rn, !1), this.checkYieldAwaitInDefaultParams(), this.yieldPos = An, this.awaitPos = Ln, this.parseParenArrowList($t, Ut, Ir, dt);
|
|
68627
|
+
(!Ir.length || Lr) && this.unexpected(this.lastTokStart), In && this.unexpected(In), this.checkExpressionErrors(rn, !0), this.yieldPos = An || this.yieldPos, this.awaitPos = Ln || this.awaitPos, Ir.length > 1 ? (qt = this.startNodeAt(gr, Er), qt.expressions = Ir, this.finishNodeAt(qt, "SequenceExpression", Jn, Nn)) : qt = Ir[0];
|
|
68622
68628
|
} else
|
|
68623
68629
|
qt = this.parseParenExpression();
|
|
68624
68630
|
if (this.options.preserveParens) {
|
|
@@ -68716,8 +68722,8 @@ Defaulting to 2020, but this will stop working in the future.`)), dt.ecmaVersion
|
|
|
68716
68722
|
else {
|
|
68717
68723
|
var Er = this.options.ecmaVersion >= 7 && !this.isSimpleParamList(it.params);
|
|
68718
68724
|
(!cr || Er) && (gr = this.strictDirective(this.end), gr && Er && this.raiseRecoverable(it.start, "Illegal 'use strict' directive in function with non-simple parameter list"));
|
|
68719
|
-
var
|
|
68720
|
-
this.labels = [], gr && (this.strict = !0), this.checkParams(it, !cr && !gr && !dt && !$t && this.isSimpleParamList(it.params)), this.strict && it.id && this.checkLValSimple(it.id, er), it.body = this.parseBlock(!1, void 0, gr && !cr), it.expression = !1, this.adaptDirectivePrologue(it.body.body), this.labels =
|
|
68725
|
+
var Ir = this.labels;
|
|
68726
|
+
this.labels = [], gr && (this.strict = !0), this.checkParams(it, !cr && !gr && !dt && !$t && this.isSimpleParamList(it.params)), this.strict && it.id && this.checkLValSimple(it.id, er), it.body = this.parseBlock(!1, void 0, gr && !cr), it.expression = !1, this.adaptDirectivePrologue(it.body.body), this.labels = Ir;
|
|
68721
68727
|
}
|
|
68722
68728
|
this.exitScope();
|
|
68723
68729
|
}, Mr.isSimpleParamList = function(it) {
|
|
@@ -68798,12 +68804,12 @@ Defaulting to 2020, but this will stop working in the future.`)), dt.ecmaVersion
|
|
|
68798
68804
|
this.treatFunctionsAsVar ? Ut = gr.lexical.indexOf(it) > -1 : Ut = gr.lexical.indexOf(it) > -1 || gr.var.indexOf(it) > -1, gr.functions.push(it);
|
|
68799
68805
|
} else
|
|
68800
68806
|
for (var Er = this.scopeStack.length - 1; Er >= 0; --Er) {
|
|
68801
|
-
var
|
|
68802
|
-
if (
|
|
68807
|
+
var Ir = this.scopeStack[Er];
|
|
68808
|
+
if (Ir.lexical.indexOf(it) > -1 && !(Ir.flags & ur && Ir.lexical[0] === it) || !this.treatFunctionsAsVarInScope(Ir) && Ir.functions.indexOf(it) > -1) {
|
|
68803
68809
|
Ut = !0;
|
|
68804
68810
|
break;
|
|
68805
68811
|
}
|
|
68806
|
-
if (
|
|
68812
|
+
if (Ir.var.push(it), this.inModule && Ir.flags & Yt && delete this.undefinedExports[it], Ir.flags & Cr)
|
|
68807
68813
|
break;
|
|
68808
68814
|
}
|
|
68809
68815
|
Ut && this.raiseRecoverable($t, "Identifier '" + it + "' has already been declared");
|
|
@@ -68859,10 +68865,10 @@ Defaulting to 2020, but this will stop working in the future.`)), dt.ecmaVersion
|
|
|
68859
68865
|
12: "",
|
|
68860
68866
|
13: "",
|
|
68861
68867
|
14: zn
|
|
68862
|
-
}, Vn = "Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu", Bn = "Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb", qn = Bn + " Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",
|
|
68868
|
+
}, Vn = "Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu", Bn = "Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb", qn = Bn + " Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd", Vr = qn + " Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho", rr = Vr + " Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi", Pr = rr + " Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith", kr = Pr + " Hrkt Katakana_Or_Hiragana Kawi Nag_Mundari Nagm Unknown Zzzz", Wr = {
|
|
68863
68869
|
9: Bn,
|
|
68864
68870
|
10: qn,
|
|
68865
|
-
11:
|
|
68871
|
+
11: Vr,
|
|
68866
68872
|
12: rr,
|
|
68867
68873
|
13: Pr,
|
|
68868
68874
|
14: kr
|
|
@@ -69665,17 +69671,17 @@ Defaulting to 2020, but this will stop working in the future.`)), dt.ecmaVersion
|
|
|
69665
69671
|
this.containsEsc && this.unexpected(cr);
|
|
69666
69672
|
var Er = this.regexpState || (this.regexpState = new un(this));
|
|
69667
69673
|
Er.reset($t, qt, gr), this.validateRegExpFlags(Er), this.validateRegExpPattern(Er);
|
|
69668
|
-
var
|
|
69674
|
+
var Ir = null;
|
|
69669
69675
|
try {
|
|
69670
|
-
|
|
69676
|
+
Ir = new RegExp(qt, gr);
|
|
69671
69677
|
} catch {
|
|
69672
69678
|
}
|
|
69673
|
-
return this.finishToken(st.regexp, { pattern: qt, flags: gr, value:
|
|
69679
|
+
return this.finishToken(st.regexp, { pattern: qt, flags: gr, value: Ir });
|
|
69674
69680
|
}, zr.readInt = function(it, dt, $t) {
|
|
69675
|
-
for (var Ut = this.options.ecmaVersion >= 12 && dt === void 0, qt = $t && this.input.charCodeAt(this.pos) === 48, cr = this.pos, gr = 0, Er = 0,
|
|
69681
|
+
for (var Ut = this.options.ecmaVersion >= 12 && dt === void 0, qt = $t && this.input.charCodeAt(this.pos) === 48, cr = this.pos, gr = 0, Er = 0, Ir = 0, Ur = dt ?? 1 / 0; Ir < Ur; ++Ir, ++this.pos) {
|
|
69676
69682
|
var Lr = this.input.charCodeAt(this.pos), rn = void 0;
|
|
69677
69683
|
if (Ut && Lr === 95) {
|
|
69678
|
-
qt && this.raiseRecoverable(this.pos, "Numeric separator is not allowed in legacy octal numeric literals"), Er === 95 && this.raiseRecoverable(this.pos, "Numeric separator must be exactly one underscore"),
|
|
69684
|
+
qt && this.raiseRecoverable(this.pos, "Numeric separator is not allowed in legacy octal numeric literals"), Er === 95 && this.raiseRecoverable(this.pos, "Numeric separator must be exactly one underscore"), Ir === 0 && this.raiseRecoverable(this.pos, "Numeric separator is not allowed at the first of digits"), Er = Lr;
|
|
69679
69685
|
continue;
|
|
69680
69686
|
}
|
|
69681
69687
|
if (Lr >= 97 ? rn = Lr - 97 + 10 : Lr >= 65 ? rn = Lr - 65 + 10 : Lr >= 48 && Lr <= 57 ? rn = Lr - 48 : rn = 1 / 0, rn >= it)
|
|
@@ -69863,7 +69869,7 @@ Defaulting to 2020, but this will stop working in the future.`)), dt.ecmaVersion
|
|
|
69863
69869
|
tokTypes: st,
|
|
69864
69870
|
keywordTypes: ct,
|
|
69865
69871
|
TokContext: Br,
|
|
69866
|
-
tokContexts:
|
|
69872
|
+
tokContexts: Rr,
|
|
69867
69873
|
isIdentifierChar: rt,
|
|
69868
69874
|
isIdentifierStart: Ye,
|
|
69869
69875
|
Token: Yn,
|
|
@@ -69881,7 +69887,7 @@ Defaulting to 2020, but this will stop working in the future.`)), dt.ecmaVersion
|
|
|
69881
69887
|
function Oi(it, dt) {
|
|
69882
69888
|
return ir.tokenizer(it, dt);
|
|
69883
69889
|
}
|
|
69884
|
-
n.Node = wn, n.Parser = ir, n.Position = Jt, n.SourceLocation = ar, n.TokContext = Br, n.Token = Yn, n.TokenType = et, n.defaultOptions = Zt, n.getLineInfo = sr, n.isIdentifierChar = rt, n.isIdentifierStart = Ye, n.isNewLine = mt, n.keywordTypes = ct, n.lineBreak = ut, n.lineBreakG = pt, n.nonASCIIwhitespace = Ct, n.parse = Mi, n.parseExpressionAt = Di, n.tokContexts =
|
|
69890
|
+
n.Node = wn, n.Parser = ir, n.Position = Jt, n.SourceLocation = ar, n.TokContext = Br, n.Token = Yn, n.TokenType = et, n.defaultOptions = Zt, n.getLineInfo = sr, n.isIdentifierChar = rt, n.isIdentifierStart = Ye, n.isNewLine = mt, n.keywordTypes = ct, n.lineBreak = ut, n.lineBreakG = pt, n.nonASCIIwhitespace = Ct, n.parse = Mi, n.parseExpressionAt = Di, n.tokContexts = Rr, n.tokTypes = st, n.tokenizer = Oi, n.version = mi;
|
|
69885
69891
|
});
|
|
69886
69892
|
}), require_acorn_jsx = __commonJS((e, t) => {
|
|
69887
69893
|
var n = require_xhtml(), a = /^[\da-fA-F]+$/, s = /^\d+$/, o = /* @__PURE__ */ new WeakMap();
|
|
@@ -73334,10 +73340,10 @@ function ProductCard({
|
|
|
73334
73340
|
return console.error(er), or.split("T")[0] || "N/A";
|
|
73335
73341
|
}
|
|
73336
73342
|
}, Kt = (or) => {
|
|
73337
|
-
var
|
|
73343
|
+
var $r;
|
|
73338
73344
|
const er = typeof (t == null ? void 0 : t.MSRP) == "number" && t.MSRP > 0 ? t.MSRP : typeof (t == null ? void 0 : t.MAP) == "number" && t.MAP > 0 ? t.MAP : null;
|
|
73339
73345
|
if (er === null) return null;
|
|
73340
|
-
const ir = or.Price ?? ((
|
|
73346
|
+
const ir = or.Price ?? (($r = t == null ? void 0 : t.Distribution) == null ? void 0 : $r.Price);
|
|
73341
73347
|
if (typeof ir != "number") return null;
|
|
73342
73348
|
const yr = or.Rebate ?? 0, Tr = Math.max(ir - yr, 0);
|
|
73343
73349
|
return er - Tr;
|
|
@@ -75240,8 +75246,8 @@ const useConfig = () => {
|
|
|
75240
75246
|
const yr = ir.messages ?? [];
|
|
75241
75247
|
if (yr.length === 0)
|
|
75242
75248
|
return { ...ir, messages: [...V] };
|
|
75243
|
-
const Tr = new Set(yr.map((
|
|
75244
|
-
return
|
|
75249
|
+
const Tr = new Set(yr.map((Dr) => Dr.id)), $r = V.filter((Dr) => !Tr.has(Dr.id));
|
|
75250
|
+
return $r.length === 0 ? ir : { ...ir, messages: [...yr, ...$r] };
|
|
75245
75251
|
})), requestAnimationFrame(() => {
|
|
75246
75252
|
var er;
|
|
75247
75253
|
return (er = It.current) == null ? void 0 : er.scrollIntoView({ behavior: "smooth" });
|
|
@@ -75278,9 +75284,9 @@ const useConfig = () => {
|
|
|
75278
75284
|
if (ir) {
|
|
75279
75285
|
for (let Tr = 0; Tr < ir.length; Tr++)
|
|
75280
75286
|
if (ir[Tr].type.indexOf("image") !== -1) {
|
|
75281
|
-
const
|
|
75282
|
-
if (
|
|
75283
|
-
Ht(
|
|
75287
|
+
const $r = ir[Tr].getAsFile();
|
|
75288
|
+
if ($r) {
|
|
75289
|
+
Ht($r);
|
|
75284
75290
|
return;
|
|
75285
75291
|
}
|
|
75286
75292
|
}
|
|
@@ -75333,17 +75339,17 @@ const useConfig = () => {
|
|
|
75333
75339
|
}, Cr = () => {
|
|
75334
75340
|
try {
|
|
75335
75341
|
const er = st.map((yr) => {
|
|
75336
|
-
const
|
|
75337
|
-
const
|
|
75342
|
+
const $r = (Array.isArray(yr == null ? void 0 : yr.Parts) ? yr.Parts : []).map((Dr) => {
|
|
75343
|
+
const _r = typeof (Dr == null ? void 0 : Dr.Text) == "string" ? Dr.Text : null, Jr = !!(_r && _r.length > 0), Zr = (Dr == null ? void 0 : Dr.FunctionResponse) != null, en = (Dr == null ? void 0 : Dr.FileData) != null;
|
|
75338
75344
|
return !Jr && !Zr && !en ? null : {
|
|
75339
|
-
...Jr ? { Text:
|
|
75340
|
-
...Zr ? { FunctionResponse:
|
|
75341
|
-
...en ? { FileData:
|
|
75345
|
+
...Jr ? { Text: _r } : {},
|
|
75346
|
+
...Zr ? { FunctionResponse: Dr.FunctionResponse } : {},
|
|
75347
|
+
...en ? { FileData: Dr.FileData } : {}
|
|
75342
75348
|
};
|
|
75343
|
-
}).filter((
|
|
75349
|
+
}).filter((Dr) => Dr != null);
|
|
75344
75350
|
return {
|
|
75345
75351
|
Role: typeof (yr == null ? void 0 : yr.Role) == "string" ? yr.Role : null,
|
|
75346
|
-
Parts:
|
|
75352
|
+
Parts: $r
|
|
75347
75353
|
};
|
|
75348
75354
|
});
|
|
75349
75355
|
(async () => {
|
|
@@ -75351,18 +75357,18 @@ const useConfig = () => {
|
|
|
75351
75357
|
const Tr = {
|
|
75352
75358
|
SystemInstructions: (await ar({ applicationId: e })).data ?? "",
|
|
75353
75359
|
ChatMessages: er
|
|
75354
|
-
},
|
|
75360
|
+
}, $r = JSON.stringify(Tr, null, 2);
|
|
75355
75361
|
if (navigator.clipboard && window.isSecureContext)
|
|
75356
|
-
await navigator.clipboard.writeText(
|
|
75362
|
+
await navigator.clipboard.writeText($r), Jt({
|
|
75357
75363
|
title: "Chat JSON copied",
|
|
75358
75364
|
description: "The chat history has been copied to your clipboard.",
|
|
75359
75365
|
variant: "success"
|
|
75360
75366
|
});
|
|
75361
75367
|
else {
|
|
75362
|
-
const
|
|
75363
|
-
|
|
75364
|
-
const
|
|
75365
|
-
if (document.body.removeChild(
|
|
75368
|
+
const Dr = document.createElement("textarea");
|
|
75369
|
+
Dr.value = $r, Dr.style.position = "fixed", Dr.style.left = "-9999px", document.body.appendChild(Dr), Dr.focus(), Dr.select();
|
|
75370
|
+
const _r = document.execCommand("copy");
|
|
75371
|
+
if (document.body.removeChild(Dr), _r)
|
|
75366
75372
|
Jt({
|
|
75367
75373
|
title: "Chat JSON copied",
|
|
75368
75374
|
description: "The chat history has been copied to your clipboard.",
|
|
@@ -76552,7 +76558,7 @@ const imgSizeMap = {
|
|
|
76552
76558
|
}
|
|
76553
76559
|
), VideoSkeleton = () => /* @__PURE__ */ jsx(Skeleton, { className: "w-full", style: { aspectRatio: "16/9" } });
|
|
76554
76560
|
function ProductImage({ randmarSKU: e, sceneName: t, size: n = "md", alt: a, secondaryContent: s }) {
|
|
76555
|
-
const [o, l] = React.useState(!1), [c, f] = React.useState(!1), [g, A] = React.useState(!1), {
|
|
76561
|
+
const [o, l] = React.useState(!1), [c, f] = React.useState(!1), [g, A] = React.useState(!1), { sendMessageWithClear: R } = useChat(), V = imgSizeMap[n], Ve = useRef(null), Ye = useIntersectionObserver({
|
|
76556
76562
|
elementRef: Ve,
|
|
76557
76563
|
threshold: 0.1,
|
|
76558
76564
|
rootMargin: "100px"
|
|
@@ -97024,22 +97030,22 @@ function DayPicker(e) {
|
|
|
97024
97030
|
if (n && (t = {
|
|
97025
97031
|
...e,
|
|
97026
97032
|
timeZone: n
|
|
97027
|
-
}, t.today && (t.today = toTimeZone(t.today, n)), t.month && (t.month = toTimeZone(t.month, n)), t.defaultMonth && (t.defaultMonth = toTimeZone(t.defaultMonth, n)), t.startMonth && (t.startMonth = toTimeZone(t.startMonth, n)), t.endMonth && (t.endMonth = toTimeZone(t.endMonth, n)), t.mode === "single" && t.selected ? t.selected = toTimeZone(t.selected, n) : t.mode === "multiple" && t.selected ? t.selected = (fn = t.selected) == null ? void 0 : fn.map((
|
|
97033
|
+
}, t.today && (t.today = toTimeZone(t.today, n)), t.month && (t.month = toTimeZone(t.month, n)), t.defaultMonth && (t.defaultMonth = toTimeZone(t.defaultMonth, n)), t.startMonth && (t.startMonth = toTimeZone(t.startMonth, n)), t.endMonth && (t.endMonth = toTimeZone(t.endMonth, n)), t.mode === "single" && t.selected ? t.selected = toTimeZone(t.selected, n) : t.mode === "multiple" && t.selected ? t.selected = (fn = t.selected) == null ? void 0 : fn.map((Or) => toTimeZone(Or, n)) : t.mode === "range" && t.selected && (t.selected = {
|
|
97028
97034
|
from: t.selected.from ? toTimeZone(t.selected.from, n) : t.selected.from,
|
|
97029
97035
|
to: t.selected.to ? toTimeZone(t.selected.to, n) : t.selected.to
|
|
97030
97036
|
}), t.disabled !== void 0 && (t.disabled = convertMatchersToTimeZone(t.disabled, n)), t.hidden !== void 0 && (t.hidden = convertMatchersToTimeZone(t.hidden, n)), t.modifiers)) {
|
|
97031
|
-
const
|
|
97037
|
+
const Or = {};
|
|
97032
97038
|
Object.keys(t.modifiers).forEach((Br) => {
|
|
97033
|
-
var
|
|
97034
|
-
|
|
97035
|
-
}), t.modifiers =
|
|
97039
|
+
var Rr;
|
|
97040
|
+
Or[Br] = convertMatchersToTimeZone((Rr = t.modifiers) == null ? void 0 : Rr[Br], n);
|
|
97041
|
+
}), t.modifiers = Or;
|
|
97036
97042
|
}
|
|
97037
97043
|
const { components: a, formatters: s, labels: o, dateLib: l, locale: c, classNames: f } = useMemo(() => {
|
|
97038
|
-
const
|
|
97044
|
+
const Or = { ...enUS, ...t.locale }, Br = t.broadcastCalendar ? 1 : t.weekStartsOn, Rr = t.noonSafe && t.timeZone ? createNoonOverrides(t.timeZone, {
|
|
97039
97045
|
weekStartsOn: Br,
|
|
97040
|
-
locale:
|
|
97041
|
-
}) : void 0, jr = t.dateLib &&
|
|
97042
|
-
locale:
|
|
97046
|
+
locale: Or
|
|
97047
|
+
}) : void 0, jr = t.dateLib && Rr ? { ...Rr, ...t.dateLib } : t.dateLib ?? Rr, Mr = new DateLib({
|
|
97048
|
+
locale: Or,
|
|
97043
97049
|
weekStartsOn: Br,
|
|
97044
97050
|
firstWeekContainsDate: t.firstWeekContainsDate,
|
|
97045
97051
|
useAdditionalWeekYearTokens: t.useAdditionalWeekYearTokens,
|
|
@@ -97052,7 +97058,7 @@ function DayPicker(e) {
|
|
|
97052
97058
|
components: getComponents(t.components),
|
|
97053
97059
|
formatters: getFormatters(t.formatters),
|
|
97054
97060
|
labels: getLabels(t.labels, Mr.options),
|
|
97055
|
-
locale:
|
|
97061
|
+
locale: Or,
|
|
97056
97062
|
classNames: { ...getDefaultClassNames(), ...t.classNames }
|
|
97057
97063
|
};
|
|
97058
97064
|
}, [
|
|
@@ -97076,44 +97082,44 @@ function DayPicker(e) {
|
|
|
97076
97082
|
Vt && (Qt(Vt), ct == null || ct(Vt));
|
|
97077
97083
|
}, [Vt, Qt, ct]), er = useCallback(() => {
|
|
97078
97084
|
zt && (Qt(zt), ot == null || ot(zt));
|
|
97079
|
-
}, [Qt, zt, ot]), ir = useCallback((
|
|
97080
|
-
|
|
97081
|
-
}, [sr, Ye, hr]), yr = useCallback((
|
|
97082
|
-
hr(
|
|
97083
|
-
}, [rt, hr]), Tr = useCallback((
|
|
97084
|
-
pr(), Ve == null || Ve(
|
|
97085
|
-
}, [pr, Ve]),
|
|
97085
|
+
}, [Qt, zt, ot]), ir = useCallback((Or, Br) => (Rr) => {
|
|
97086
|
+
Rr.preventDefault(), Rr.stopPropagation(), hr(Or), !Br.disabled && (sr == null || sr(Or.date, Br, Rr), Ye == null || Ye(Or.date, Br, Rr));
|
|
97087
|
+
}, [sr, Ye, hr]), yr = useCallback((Or, Br) => (Rr) => {
|
|
97088
|
+
hr(Or), rt == null || rt(Or.date, Br, Rr);
|
|
97089
|
+
}, [rt, hr]), Tr = useCallback((Or, Br) => (Rr) => {
|
|
97090
|
+
pr(), Ve == null || Ve(Or.date, Br, Rr);
|
|
97091
|
+
}, [pr, Ve]), $r = useCallback((Or, Br) => (Rr) => {
|
|
97086
97092
|
const jr = {
|
|
97087
97093
|
ArrowLeft: [
|
|
97088
|
-
|
|
97094
|
+
Rr.shiftKey ? "month" : "day",
|
|
97089
97095
|
t.dir === "rtl" ? "after" : "before"
|
|
97090
97096
|
],
|
|
97091
97097
|
ArrowRight: [
|
|
97092
|
-
|
|
97098
|
+
Rr.shiftKey ? "month" : "day",
|
|
97093
97099
|
t.dir === "rtl" ? "before" : "after"
|
|
97094
97100
|
],
|
|
97095
|
-
ArrowDown: [
|
|
97096
|
-
ArrowUp: [
|
|
97097
|
-
PageUp: [
|
|
97098
|
-
PageDown: [
|
|
97101
|
+
ArrowDown: [Rr.shiftKey ? "year" : "week", "after"],
|
|
97102
|
+
ArrowUp: [Rr.shiftKey ? "year" : "week", "before"],
|
|
97103
|
+
PageUp: [Rr.shiftKey ? "year" : "month", "before"],
|
|
97104
|
+
PageDown: [Rr.shiftKey ? "year" : "month", "after"],
|
|
97099
97105
|
Home: ["startOfWeek", "before"],
|
|
97100
97106
|
End: ["endOfWeek", "after"]
|
|
97101
97107
|
};
|
|
97102
|
-
if (jr[
|
|
97103
|
-
|
|
97104
|
-
const [Mr, Hr] = jr[
|
|
97108
|
+
if (jr[Rr.key]) {
|
|
97109
|
+
Rr.preventDefault(), Rr.stopPropagation();
|
|
97110
|
+
const [Mr, Hr] = jr[Rr.key];
|
|
97105
97111
|
Yt(Mr, Hr);
|
|
97106
97112
|
}
|
|
97107
|
-
et == null || et(
|
|
97108
|
-
}, [Yt, et, t.dir]),
|
|
97109
|
-
nt == null || nt(
|
|
97110
|
-
}, [nt]),
|
|
97111
|
-
at == null || at(
|
|
97112
|
-
}, [at]), Jr = useCallback((
|
|
97113
|
-
const
|
|
97113
|
+
et == null || et(Or.date, Br, Rr);
|
|
97114
|
+
}, [Yt, et, t.dir]), Dr = useCallback((Or, Br) => (Rr) => {
|
|
97115
|
+
nt == null || nt(Or.date, Br, Rr);
|
|
97116
|
+
}, [nt]), _r = useCallback((Or, Br) => (Rr) => {
|
|
97117
|
+
at == null || at(Or.date, Br, Rr);
|
|
97118
|
+
}, [at]), Jr = useCallback((Or) => (Br) => {
|
|
97119
|
+
const Rr = Number(Br.target.value), jr = l.setMonth(l.startOfMonth(Or), Rr);
|
|
97114
97120
|
Qt(jr);
|
|
97115
|
-
}, [l, Qt]), Zr = useCallback((
|
|
97116
|
-
const
|
|
97121
|
+
}, [l, Qt]), Zr = useCallback((Or) => (Br) => {
|
|
97122
|
+
const Rr = Number(Br.target.value), jr = l.setYear(l.startOfMonth(Or), Rr);
|
|
97117
97123
|
Qt(jr);
|
|
97118
97124
|
}, [l, Qt]), { className: en, style: Yr } = useMemo(() => ({
|
|
97119
97125
|
className: [f[UI.Root], t.className].filter(Boolean).join(" "),
|
|
@@ -97151,7 +97157,7 @@ function DayPicker(e) {
|
|
|
97151
97157
|
a.Months,
|
|
97152
97158
|
{ className: f[UI.Months], style: st == null ? void 0 : st[UI.Months] },
|
|
97153
97159
|
!t.hideNavigation && !R && React__default.createElement(a.Nav, { "data-animated-nav": t.animate ? "true" : void 0, className: f[UI.Nav], style: st == null ? void 0 : st[UI.Nav], "aria-label": br(), onPreviousClick: or, onNextClick: er, previousMonth: Vt, nextMonth: zt }),
|
|
97154
|
-
Ft.map((
|
|
97160
|
+
Ft.map((Or, Br) => React__default.createElement(
|
|
97155
97161
|
a.Month,
|
|
97156
97162
|
{
|
|
97157
97163
|
"data-animated-month": t.animate ? "true" : void 0,
|
|
@@ -97160,19 +97166,19 @@ function DayPicker(e) {
|
|
|
97160
97166
|
// biome-ignore lint/suspicious/noArrayIndexKey: breaks animation
|
|
97161
97167
|
key: Br,
|
|
97162
97168
|
displayIndex: Br,
|
|
97163
|
-
calendarMonth:
|
|
97169
|
+
calendarMonth: Or
|
|
97164
97170
|
},
|
|
97165
97171
|
R === "around" && !t.hideNavigation && Br === 0 && React__default.createElement(
|
|
97166
97172
|
a.PreviousMonthButton,
|
|
97167
97173
|
{ type: "button", className: f[UI.PreviousMonthButton], tabIndex: Vt ? void 0 : -1, "aria-disabled": Vt ? void 0 : !0, "aria-label": vr(Vt), onClick: or, "data-animated-button": t.animate ? "true" : void 0 },
|
|
97168
97174
|
React__default.createElement(a.Chevron, { disabled: Vt ? void 0 : !0, className: f[UI.Chevron], orientation: t.dir === "rtl" ? "right" : "left" })
|
|
97169
97175
|
),
|
|
97170
|
-
React__default.createElement(a.MonthCaption, { "data-animated-caption": t.animate ? "true" : void 0, className: f[UI.MonthCaption], style: st == null ? void 0 : st[UI.MonthCaption], calendarMonth:
|
|
97176
|
+
React__default.createElement(a.MonthCaption, { "data-animated-caption": t.animate ? "true" : void 0, className: f[UI.MonthCaption], style: st == null ? void 0 : st[UI.MonthCaption], calendarMonth: Or, displayIndex: Br }, g != null && g.startsWith("dropdown") ? React__default.createElement(
|
|
97171
97177
|
a.DropdownNav,
|
|
97172
97178
|
{ className: f[UI.Dropdowns], style: st == null ? void 0 : st[UI.Dropdowns] },
|
|
97173
97179
|
(() => {
|
|
97174
|
-
const
|
|
97175
|
-
return l.getMonthYearOrder() === "year-first" ? [jr,
|
|
97180
|
+
const Rr = g === "dropdown" || g === "dropdown-months" ? React__default.createElement(a.MonthsDropdown, { key: "month", className: f[UI.MonthsDropdown], "aria-label": ur(), classNames: f, components: a, disabled: !!t.disableNavigation, onChange: Jr(Or.date), options: getMonthOptions(Or.date, Ht, Dt, s, l), style: st == null ? void 0 : st[UI.Dropdown], value: l.getMonth(Or.date) }) : React__default.createElement("span", { key: "month" }, mt(Or.date, l)), jr = g === "dropdown" || g === "dropdown-years" ? React__default.createElement(a.YearsDropdown, { key: "year", className: f[UI.YearsDropdown], "aria-label": Wt(l.options), classNames: f, components: a, disabled: !!t.disableNavigation, onChange: Zr(Or.date), options: getYearOptions(Ht, Dt, s, l, !!t.reverseYears), style: st == null ? void 0 : st[UI.Dropdown], value: l.getYear(Or.date) }) : React__default.createElement("span", { key: "year" }, It(Or.date, l));
|
|
97181
|
+
return l.getMonthYearOrder() === "year-first" ? [jr, Rr] : [Rr, jr];
|
|
97176
97182
|
})(),
|
|
97177
97183
|
React__default.createElement("span", { role: "status", "aria-live": "polite", style: {
|
|
97178
97184
|
border: 0,
|
|
@@ -97185,8 +97191,8 @@ function DayPicker(e) {
|
|
|
97185
97191
|
width: "1px",
|
|
97186
97192
|
whiteSpace: "nowrap",
|
|
97187
97193
|
wordWrap: "normal"
|
|
97188
|
-
} }, ut(
|
|
97189
|
-
) : React__default.createElement(a.CaptionLabel, { className: f[UI.CaptionLabel], role: "status", "aria-live": "polite" }, ut(
|
|
97194
|
+
} }, ut(Or.date, l.options, l))
|
|
97195
|
+
) : React__default.createElement(a.CaptionLabel, { className: f[UI.CaptionLabel], role: "status", "aria-live": "polite" }, ut(Or.date, l.options, l))),
|
|
97190
97196
|
R === "around" && !t.hideNavigation && Br === V - 1 && React__default.createElement(
|
|
97191
97197
|
a.NextMonthButton,
|
|
97192
97198
|
{ type: "button", className: f[UI.NextMonthButton], tabIndex: zt ? void 0 : -1, "aria-disabled": zt ? void 0 : !0, "aria-label": Sr(zt), onClick: er, "data-animated-button": t.animate ? "true" : void 0 },
|
|
@@ -97195,27 +97201,27 @@ function DayPicker(e) {
|
|
|
97195
97201
|
Br === V - 1 && R === "after" && !t.hideNavigation && React__default.createElement(a.Nav, { "data-animated-nav": t.animate ? "true" : void 0, className: f[UI.Nav], style: st == null ? void 0 : st[UI.Nav], "aria-label": br(), onPreviousClick: or, onNextClick: er, previousMonth: Vt, nextMonth: zt }),
|
|
97196
97202
|
React__default.createElement(
|
|
97197
97203
|
a.MonthGrid,
|
|
97198
|
-
{ role: "grid", "aria-multiselectable": A === "multiple" || A === "range", "aria-label": Ar(
|
|
97204
|
+
{ role: "grid", "aria-multiselectable": A === "multiple" || A === "range", "aria-label": Ar(Or.date, l.options, l) || void 0, className: f[UI.MonthGrid], style: st == null ? void 0 : st[UI.MonthGrid] },
|
|
97199
97205
|
!t.hideWeekdays && React__default.createElement(
|
|
97200
97206
|
a.Weekdays,
|
|
97201
97207
|
{ "data-animated-weekdays": t.animate ? "true" : void 0, className: f[UI.Weekdays], style: st == null ? void 0 : st[UI.Weekdays] },
|
|
97202
97208
|
lt && React__default.createElement(a.WeekNumberHeader, { "aria-label": wr(l.options), className: f[UI.WeekNumberHeader], style: st == null ? void 0 : st[UI.WeekNumberHeader], scope: "col" }, Ct()),
|
|
97203
|
-
nr.map((
|
|
97209
|
+
nr.map((Rr) => React__default.createElement(a.Weekday, { "aria-label": Cr(Rr, l.options, l), className: f[UI.Weekday], key: String(Rr), style: st == null ? void 0 : st[UI.Weekday], scope: "col" }, ft(Rr, l.options, l)))
|
|
97204
97210
|
),
|
|
97205
|
-
React__default.createElement(a.Weeks, { "data-animated-weeks": t.animate ? "true" : void 0, className: f[UI.Weeks], style: st == null ? void 0 : st[UI.Weeks] },
|
|
97211
|
+
React__default.createElement(a.Weeks, { "data-animated-weeks": t.animate ? "true" : void 0, className: f[UI.Weeks], style: st == null ? void 0 : st[UI.Weeks] }, Or.weeks.map((Rr) => React__default.createElement(
|
|
97206
97212
|
a.Week,
|
|
97207
|
-
{ className: f[UI.Week], key:
|
|
97208
|
-
lt && React__default.createElement(a.WeekNumber, { week:
|
|
97213
|
+
{ className: f[UI.Week], key: Rr.weekNumber, style: st == null ? void 0 : st[UI.Week], week: Rr },
|
|
97214
|
+
lt && React__default.createElement(a.WeekNumber, { week: Rr, style: st == null ? void 0 : st[UI.WeekNumber], "aria-label": xr(Rr.weekNumber, {
|
|
97209
97215
|
locale: c
|
|
97210
|
-
}), className: f[UI.WeekNumber], scope: "row", role: "rowheader" }, Rt(
|
|
97211
|
-
|
|
97216
|
+
}), className: f[UI.WeekNumber], scope: "row", role: "rowheader" }, Rt(Rr.weekNumber, l)),
|
|
97217
|
+
Rr.days.map((jr) => {
|
|
97212
97218
|
const { date: Mr } = jr, Hr = Jt(jr);
|
|
97213
97219
|
if (Hr[DayFlag.focused] = !Hr.hidden && !!(Xt != null && Xt.isEqualTo(jr)), Hr[SelectionState.selected] = (ar == null ? void 0 : ar(Mr)) || Hr.selected, isDateRange(Zt)) {
|
|
97214
97220
|
const { from: an, to: Sn } = Zt;
|
|
97215
97221
|
Hr[SelectionState.range_start] = !!(an && Sn && l.isSameDay(Mr, an)), Hr[SelectionState.range_end] = !!(an && Sn && l.isSameDay(Mr, Sn)), Hr[SelectionState.range_middle] = rangeIncludesDate(Zt, Mr, !0, l);
|
|
97216
97222
|
}
|
|
97217
97223
|
const Kr = getStyleForModifiers(Hr, st, t.modifiersStyles), yn = getClassNamesForModifiers(Hr, f, t.modifiersClassNames), Pn = !lr && !Hr.hidden ? Kt(Mr, Hr, l.options, l) : void 0;
|
|
97218
|
-
return React__default.createElement(a.Day, { key: `${jr.isoDate}_${jr.displayMonthId}`, day: jr, modifiers: Hr, className: yn.join(" "), style: Kr, role: "gridcell", "aria-selected": Hr.selected || void 0, "aria-label": Pn, "data-day": jr.isoDate, "data-month": jr.outside ? jr.dateMonthId : void 0, "data-selected": Hr.selected || void 0, "data-disabled": Hr.disabled || void 0, "data-hidden": Hr.hidden || void 0, "data-outside": jr.outside || void 0, "data-focused": Hr.focused || void 0, "data-today": Hr.today || void 0 }, !Hr.hidden && lr ? React__default.createElement(a.DayButton, { className: f[UI.DayButton], style: st == null ? void 0 : st[UI.DayButton], type: "button", day: jr, modifiers: Hr, disabled: !Hr.focused && Hr.disabled || void 0, "aria-disabled": Hr.focused && Hr.disabled || void 0, tabIndex: dr(jr) ? 0 : -1, "aria-label": mr(Mr, Hr, l.options, l), onClick: ir(jr, Hr), onBlur: Tr(jr, Hr), onFocus: yr(jr, Hr), onKeyDown:
|
|
97224
|
+
return React__default.createElement(a.Day, { key: `${jr.isoDate}_${jr.displayMonthId}`, day: jr, modifiers: Hr, className: yn.join(" "), style: Kr, role: "gridcell", "aria-selected": Hr.selected || void 0, "aria-label": Pn, "data-day": jr.isoDate, "data-month": jr.outside ? jr.dateMonthId : void 0, "data-selected": Hr.selected || void 0, "data-disabled": Hr.disabled || void 0, "data-hidden": Hr.hidden || void 0, "data-outside": jr.outside || void 0, "data-focused": Hr.focused || void 0, "data-today": Hr.today || void 0 }, !Hr.hidden && lr ? React__default.createElement(a.DayButton, { className: f[UI.DayButton], style: st == null ? void 0 : st[UI.DayButton], type: "button", day: jr, modifiers: Hr, disabled: !Hr.focused && Hr.disabled || void 0, "aria-disabled": Hr.focused && Hr.disabled || void 0, tabIndex: dr(jr) ? 0 : -1, "aria-label": mr(Mr, Hr, l.options, l), onClick: ir(jr, Hr), onBlur: Tr(jr, Hr), onFocus: yr(jr, Hr), onKeyDown: $r(jr, Hr), onMouseEnter: Dr(jr, Hr), onMouseLeave: _r(jr, Hr) }, pt(Mr, l.options, l)) : !Hr.hidden && pt(jr.date, l.options, l));
|
|
97219
97225
|
})
|
|
97220
97226
|
)))
|
|
97221
97227
|
)
|