@tinacms/mdx 1.3.21 → 1.3.23
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/index.browser.mjs +889 -326
- package/dist/index.js +889 -326
- package/dist/index.mjs +889 -326
- package/dist/parse/acorn.d.ts +0 -5
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -126,9 +126,9 @@ var require_extend = __commonJS({
|
|
|
126
126
|
}
|
|
127
127
|
});
|
|
128
128
|
|
|
129
|
-
// ../../../node_modules/.pnpm/acorn-jsx@5.3.2_acorn@8.
|
|
129
|
+
// ../../../node_modules/.pnpm/acorn-jsx@5.3.2_acorn@8.9.0/node_modules/acorn-jsx/xhtml.js
|
|
130
130
|
var require_xhtml = __commonJS({
|
|
131
|
-
"../../../node_modules/.pnpm/acorn-jsx@5.3.2_acorn@8.
|
|
131
|
+
"../../../node_modules/.pnpm/acorn-jsx@5.3.2_acorn@8.9.0/node_modules/acorn-jsx/xhtml.js"(exports, module2) {
|
|
132
132
|
module2.exports = {
|
|
133
133
|
quot: '"',
|
|
134
134
|
amp: "&",
|
|
@@ -387,16 +387,16 @@ var require_xhtml = __commonJS({
|
|
|
387
387
|
}
|
|
388
388
|
});
|
|
389
389
|
|
|
390
|
-
// ../../../node_modules/.pnpm/acorn@8.
|
|
390
|
+
// ../../../node_modules/.pnpm/acorn@8.9.0/node_modules/acorn/dist/acorn.js
|
|
391
391
|
var require_acorn = __commonJS({
|
|
392
|
-
"../../../node_modules/.pnpm/acorn@8.
|
|
392
|
+
"../../../node_modules/.pnpm/acorn@8.9.0/node_modules/acorn/dist/acorn.js"(exports, module2) {
|
|
393
393
|
(function(global2, factory) {
|
|
394
394
|
typeof exports === "object" && typeof module2 !== "undefined" ? factory(exports) : typeof define === "function" && define.amd ? define(["exports"], factory) : (global2 = typeof globalThis !== "undefined" ? globalThis : global2 || self, factory(global2.acorn = {}));
|
|
395
395
|
})(exports, function(exports2) {
|
|
396
396
|
"use strict";
|
|
397
|
-
var astralIdentifierCodes3 = [509, 0, 227, 0, 150, 4, 294, 9, 1368, 2, 2, 1, 6, 3, 41, 2, 5, 0, 166, 1, 574, 3, 9, 9, 370, 1,
|
|
398
|
-
var astralIdentifierStartCodes3 = [0, 11, 2, 25, 2, 18, 2, 1, 2, 14, 3, 13, 35, 122, 70, 52, 268, 28, 4, 48, 48, 31, 14, 29, 6, 37, 11, 29, 3, 35, 5, 7, 2, 4, 43, 157, 19, 35, 5, 35, 5, 39, 9, 51, 13, 10, 2, 14, 2, 6, 2, 1, 2, 10, 2, 14, 2, 6, 2, 1, 68, 310, 10, 21, 11, 7, 25, 5, 2, 41, 2, 8, 70, 5, 3, 0, 2, 43, 2, 1, 4, 0, 3, 22, 11, 22, 10, 30, 66, 18, 2, 1, 11, 21, 11, 25, 71, 55, 7, 1, 65, 0, 16, 3, 2, 2, 2, 28, 43, 28, 4, 28, 36, 7, 2, 27, 28, 53, 11, 21, 11, 18, 14, 17, 111, 72, 56, 50, 14, 50, 14, 35, 349, 41, 7, 1, 79, 28, 11, 0, 9, 21, 43, 17, 47, 20, 28, 22, 13, 52, 58, 1, 3, 0, 14, 44, 33, 24, 27, 35, 30, 0, 3, 0, 9, 34, 4, 0, 13, 47, 15, 3, 22, 0, 2, 0, 36, 17, 2, 24,
|
|
399
|
-
var nonASCIIidentifierChars3 = "\u200C\u200D\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\
|
|
397
|
+
var astralIdentifierCodes3 = [509, 0, 227, 0, 150, 4, 294, 9, 1368, 2, 2, 1, 6, 3, 41, 2, 5, 0, 166, 1, 574, 3, 9, 9, 370, 1, 81, 2, 71, 10, 50, 3, 123, 2, 54, 14, 32, 10, 3, 1, 11, 3, 46, 10, 8, 0, 46, 9, 7, 2, 37, 13, 2, 9, 6, 1, 45, 0, 13, 2, 49, 13, 9, 3, 2, 11, 83, 11, 7, 0, 3, 0, 158, 11, 6, 9, 7, 3, 56, 1, 2, 6, 3, 1, 3, 2, 10, 0, 11, 1, 3, 6, 4, 4, 193, 17, 10, 9, 5, 0, 82, 19, 13, 9, 214, 6, 3, 8, 28, 1, 83, 16, 16, 9, 82, 12, 9, 9, 84, 14, 5, 9, 243, 14, 166, 9, 71, 5, 2, 1, 3, 3, 2, 0, 2, 1, 13, 9, 120, 6, 3, 6, 4, 0, 29, 9, 41, 6, 2, 3, 9, 0, 10, 10, 47, 15, 406, 7, 2, 7, 17, 9, 57, 21, 2, 13, 123, 5, 4, 0, 2, 1, 2, 6, 2, 0, 9, 9, 49, 4, 2, 1, 2, 4, 9, 9, 330, 3, 10, 1, 2, 0, 49, 6, 4, 4, 14, 9, 5351, 0, 7, 14, 13835, 9, 87, 9, 39, 4, 60, 6, 26, 9, 1014, 0, 2, 54, 8, 3, 82, 0, 12, 1, 19628, 1, 4706, 45, 3, 22, 543, 4, 4, 5, 9, 7, 3, 6, 31, 3, 149, 2, 1418, 49, 513, 54, 5, 49, 9, 0, 15, 0, 23, 4, 2, 14, 1361, 6, 2, 16, 3, 6, 2, 1, 2, 4, 101, 0, 161, 6, 10, 9, 357, 0, 62, 13, 499, 13, 983, 6, 110, 6, 6, 9, 4759, 9, 787719, 239];
|
|
398
|
+
var astralIdentifierStartCodes3 = [0, 11, 2, 25, 2, 18, 2, 1, 2, 14, 3, 13, 35, 122, 70, 52, 268, 28, 4, 48, 48, 31, 14, 29, 6, 37, 11, 29, 3, 35, 5, 7, 2, 4, 43, 157, 19, 35, 5, 35, 5, 39, 9, 51, 13, 10, 2, 14, 2, 6, 2, 1, 2, 10, 2, 14, 2, 6, 2, 1, 68, 310, 10, 21, 11, 7, 25, 5, 2, 41, 2, 8, 70, 5, 3, 0, 2, 43, 2, 1, 4, 0, 3, 22, 11, 22, 10, 30, 66, 18, 2, 1, 11, 21, 11, 25, 71, 55, 7, 1, 65, 0, 16, 3, 2, 2, 2, 28, 43, 28, 4, 28, 36, 7, 2, 27, 28, 53, 11, 21, 11, 18, 14, 17, 111, 72, 56, 50, 14, 50, 14, 35, 349, 41, 7, 1, 79, 28, 11, 0, 9, 21, 43, 17, 47, 20, 28, 22, 13, 52, 58, 1, 3, 0, 14, 44, 33, 24, 27, 35, 30, 0, 3, 0, 9, 34, 4, 0, 13, 47, 15, 3, 22, 0, 2, 0, 36, 17, 2, 24, 20, 1, 64, 6, 2, 0, 2, 3, 2, 14, 2, 9, 8, 46, 39, 7, 3, 1, 3, 21, 2, 6, 2, 1, 2, 4, 4, 0, 19, 0, 13, 4, 159, 52, 19, 3, 21, 2, 31, 47, 21, 1, 2, 0, 185, 46, 42, 3, 37, 47, 21, 0, 60, 42, 14, 0, 72, 26, 38, 6, 186, 43, 117, 63, 32, 7, 3, 0, 3, 7, 2, 1, 2, 23, 16, 0, 2, 0, 95, 7, 3, 38, 17, 0, 2, 0, 29, 0, 11, 39, 8, 0, 22, 0, 12, 45, 20, 0, 19, 72, 264, 8, 2, 36, 18, 0, 50, 29, 113, 6, 2, 1, 2, 37, 22, 0, 26, 5, 2, 1, 2, 31, 15, 0, 328, 18, 16, 0, 2, 12, 2, 33, 125, 0, 80, 921, 103, 110, 18, 195, 2637, 96, 16, 1071, 18, 5, 4026, 582, 8634, 568, 8, 30, 18, 78, 18, 29, 19, 47, 17, 3, 32, 20, 6, 18, 689, 63, 129, 74, 6, 0, 67, 12, 65, 1, 2, 0, 29, 6135, 9, 1237, 43, 8, 8936, 3, 2, 6, 2, 1, 2, 290, 16, 0, 30, 2, 3, 0, 15, 3, 9, 395, 2309, 106, 6, 12, 4, 8, 8, 9, 5991, 84, 2, 70, 2, 1, 3, 0, 3, 1, 3, 3, 2, 11, 2, 0, 2, 6, 2, 64, 2, 3, 3, 7, 2, 6, 2, 27, 2, 3, 2, 4, 2, 0, 4, 6, 2, 339, 3, 24, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 7, 1845, 30, 7, 5, 262, 61, 147, 44, 11, 6, 17, 0, 322, 29, 19, 43, 485, 27, 757, 6, 2, 3, 2, 1, 2, 14, 2, 196, 60, 67, 8, 0, 1205, 3, 2, 26, 2, 1, 2, 0, 3, 0, 2, 9, 2, 3, 2, 0, 2, 0, 7, 0, 5, 0, 2, 0, 2, 0, 2, 2, 2, 1, 2, 0, 3, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 1, 2, 0, 3, 3, 2, 6, 2, 3, 2, 3, 2, 0, 2, 9, 2, 16, 6, 2, 2, 4, 2, 16, 4421, 42719, 33, 4153, 7, 221, 3, 5761, 15, 7472, 3104, 541, 1507, 4938, 6, 4191];
|
|
399
|
+
var nonASCIIidentifierChars3 = "\u200C\u200D\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ACE\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F";
|
|
400
400
|
var nonASCIIidentifierStartChars3 = "\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC";
|
|
401
401
|
var reservedWords3 = {
|
|
402
402
|
3: "abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",
|
|
@@ -426,6 +426,7 @@ var require_acorn = __commonJS({
|
|
|
426
426
|
return true;
|
|
427
427
|
}
|
|
428
428
|
}
|
|
429
|
+
return false;
|
|
429
430
|
}
|
|
430
431
|
function isIdentifierStart3(code3, astral) {
|
|
431
432
|
if (code3 < 65) {
|
|
@@ -681,7 +682,7 @@ var require_acorn = __commonJS({
|
|
|
681
682
|
if (options.allowReserved == null) {
|
|
682
683
|
options.allowReserved = options.ecmaVersion < 5;
|
|
683
684
|
}
|
|
684
|
-
if (opts.allowHashBang == null) {
|
|
685
|
+
if (!opts || opts.allowHashBang == null) {
|
|
685
686
|
options.allowHashBang = options.ecmaVersion >= 14;
|
|
686
687
|
}
|
|
687
688
|
if (isArray4(options.onToken)) {
|
|
@@ -992,13 +993,13 @@ var require_acorn = __commonJS({
|
|
|
992
993
|
skipWhiteSpace3.lastIndex = this.pos;
|
|
993
994
|
var skip = skipWhiteSpace3.exec(this.input);
|
|
994
995
|
var next = this.pos + skip[0].length, nextCh = this.input.charCodeAt(next);
|
|
995
|
-
if (nextCh === 91 || nextCh === 92
|
|
996
|
+
if (nextCh === 91 || nextCh === 92) {
|
|
996
997
|
return true;
|
|
997
998
|
}
|
|
998
999
|
if (context) {
|
|
999
1000
|
return false;
|
|
1000
1001
|
}
|
|
1001
|
-
if (nextCh === 123) {
|
|
1002
|
+
if (nextCh === 123 || nextCh > 55295 && nextCh < 56320) {
|
|
1002
1003
|
return true;
|
|
1003
1004
|
}
|
|
1004
1005
|
if (isIdentifierStart3(nextCh, true)) {
|
|
@@ -1296,6 +1297,14 @@ var require_acorn = __commonJS({
|
|
|
1296
1297
|
return this.finishNode(node, "ThrowStatement");
|
|
1297
1298
|
};
|
|
1298
1299
|
var empty$13 = [];
|
|
1300
|
+
pp$83.parseCatchClauseParam = function() {
|
|
1301
|
+
var param = this.parseBindingAtom();
|
|
1302
|
+
var simple = param.type === "Identifier";
|
|
1303
|
+
this.enterScope(simple ? SCOPE_SIMPLE_CATCH3 : 0);
|
|
1304
|
+
this.checkLValPattern(param, simple ? BIND_SIMPLE_CATCH3 : BIND_LEXICAL3);
|
|
1305
|
+
this.expect(types$13.parenR);
|
|
1306
|
+
return param;
|
|
1307
|
+
};
|
|
1299
1308
|
pp$83.parseTryStatement = function(node) {
|
|
1300
1309
|
this.next();
|
|
1301
1310
|
node.block = this.parseBlock();
|
|
@@ -1304,11 +1313,7 @@ var require_acorn = __commonJS({
|
|
|
1304
1313
|
var clause = this.startNode();
|
|
1305
1314
|
this.next();
|
|
1306
1315
|
if (this.eat(types$13.parenL)) {
|
|
1307
|
-
clause.param = this.
|
|
1308
|
-
var simple = clause.param.type === "Identifier";
|
|
1309
|
-
this.enterScope(simple ? SCOPE_SIMPLE_CATCH3 : 0);
|
|
1310
|
-
this.checkLValPattern(clause.param, simple ? BIND_SIMPLE_CATCH3 : BIND_LEXICAL3);
|
|
1311
|
-
this.expect(types$13.parenR);
|
|
1316
|
+
clause.param = this.parseCatchClauseParam();
|
|
1312
1317
|
} else {
|
|
1313
1318
|
if (this.options.ecmaVersion < 10) {
|
|
1314
1319
|
this.unexpected();
|
|
@@ -1326,9 +1331,9 @@ var require_acorn = __commonJS({
|
|
|
1326
1331
|
}
|
|
1327
1332
|
return this.finishNode(node, "TryStatement");
|
|
1328
1333
|
};
|
|
1329
|
-
pp$83.parseVarStatement = function(node, kind) {
|
|
1334
|
+
pp$83.parseVarStatement = function(node, kind, allowMissingInitializer) {
|
|
1330
1335
|
this.next();
|
|
1331
|
-
this.parseVar(node, false, kind);
|
|
1336
|
+
this.parseVar(node, false, kind, allowMissingInitializer);
|
|
1332
1337
|
this.semicolon();
|
|
1333
1338
|
return this.finishNode(node, "VariableDeclaration");
|
|
1334
1339
|
};
|
|
@@ -1433,7 +1438,7 @@ var require_acorn = __commonJS({
|
|
|
1433
1438
|
this.labels.pop();
|
|
1434
1439
|
return this.finishNode(node, isForIn ? "ForInStatement" : "ForOfStatement");
|
|
1435
1440
|
};
|
|
1436
|
-
pp$83.parseVar = function(node, isFor, kind) {
|
|
1441
|
+
pp$83.parseVar = function(node, isFor, kind, allowMissingInitializer) {
|
|
1437
1442
|
node.declarations = [];
|
|
1438
1443
|
node.kind = kind;
|
|
1439
1444
|
for (; ; ) {
|
|
@@ -1441,9 +1446,9 @@ var require_acorn = __commonJS({
|
|
|
1441
1446
|
this.parseVarId(decl, kind);
|
|
1442
1447
|
if (this.eat(types$13.eq)) {
|
|
1443
1448
|
decl.init = this.parseMaybeAssign(isFor);
|
|
1444
|
-
} else if (kind === "const" && !(this.type === types$13._in || this.options.ecmaVersion >= 6 && this.isContextual("of"))) {
|
|
1449
|
+
} else if (!allowMissingInitializer && kind === "const" && !(this.type === types$13._in || this.options.ecmaVersion >= 6 && this.isContextual("of"))) {
|
|
1445
1450
|
this.unexpected();
|
|
1446
|
-
} else if (decl.id.type !== "Identifier" && !(isFor && (this.type === types$13._in || this.isContextual("of")))) {
|
|
1451
|
+
} else if (!allowMissingInitializer && decl.id.type !== "Identifier" && !(isFor && (this.type === types$13._in || this.isContextual("of")))) {
|
|
1447
1452
|
this.raise(this.lastTokEnd, "Complex binding patterns require an initialization value");
|
|
1448
1453
|
} else {
|
|
1449
1454
|
decl.init = null;
|
|
@@ -1514,7 +1519,7 @@ var require_acorn = __commonJS({
|
|
|
1514
1519
|
classBody.body.push(element);
|
|
1515
1520
|
if (element.type === "MethodDefinition" && element.kind === "constructor") {
|
|
1516
1521
|
if (hadConstructor) {
|
|
1517
|
-
this.
|
|
1522
|
+
this.raiseRecoverable(element.start, "Duplicate constructor in the same class");
|
|
1518
1523
|
}
|
|
1519
1524
|
hadConstructor = true;
|
|
1520
1525
|
} else if (element.key && element.key.type === "PrivateIdentifier" && isPrivateNameConflicted3(privateNameMap, element)) {
|
|
@@ -1676,7 +1681,7 @@ var require_acorn = __commonJS({
|
|
|
1676
1681
|
}
|
|
1677
1682
|
};
|
|
1678
1683
|
pp$83.parseClassSuper = function(node) {
|
|
1679
|
-
node.superClass = this.eat(types$13._extends) ? this.parseExprSubscripts(false) : null;
|
|
1684
|
+
node.superClass = this.eat(types$13._extends) ? this.parseExprSubscripts(null, false) : null;
|
|
1680
1685
|
};
|
|
1681
1686
|
pp$83.enterClassBody = function() {
|
|
1682
1687
|
var element = { declared: /* @__PURE__ */ Object.create(null), used: [] };
|
|
@@ -1722,46 +1727,35 @@ var require_acorn = __commonJS({
|
|
|
1722
1727
|
var key = node.key;
|
|
1723
1728
|
return !computed && (key.type === "Identifier" && key.name === name2 || key.type === "Literal" && key.value === name2);
|
|
1724
1729
|
}
|
|
1730
|
+
pp$83.parseExportAllDeclaration = function(node, exports3) {
|
|
1731
|
+
if (this.options.ecmaVersion >= 11) {
|
|
1732
|
+
if (this.eatContextual("as")) {
|
|
1733
|
+
node.exported = this.parseModuleExportName();
|
|
1734
|
+
this.checkExport(exports3, node.exported, this.lastTokStart);
|
|
1735
|
+
} else {
|
|
1736
|
+
node.exported = null;
|
|
1737
|
+
}
|
|
1738
|
+
}
|
|
1739
|
+
this.expectContextual("from");
|
|
1740
|
+
if (this.type !== types$13.string) {
|
|
1741
|
+
this.unexpected();
|
|
1742
|
+
}
|
|
1743
|
+
node.source = this.parseExprAtom();
|
|
1744
|
+
this.semicolon();
|
|
1745
|
+
return this.finishNode(node, "ExportAllDeclaration");
|
|
1746
|
+
};
|
|
1725
1747
|
pp$83.parseExport = function(node, exports3) {
|
|
1726
1748
|
this.next();
|
|
1727
1749
|
if (this.eat(types$13.star)) {
|
|
1728
|
-
|
|
1729
|
-
if (this.eatContextual("as")) {
|
|
1730
|
-
node.exported = this.parseModuleExportName();
|
|
1731
|
-
this.checkExport(exports3, node.exported, this.lastTokStart);
|
|
1732
|
-
} else {
|
|
1733
|
-
node.exported = null;
|
|
1734
|
-
}
|
|
1735
|
-
}
|
|
1736
|
-
this.expectContextual("from");
|
|
1737
|
-
if (this.type !== types$13.string) {
|
|
1738
|
-
this.unexpected();
|
|
1739
|
-
}
|
|
1740
|
-
node.source = this.parseExprAtom();
|
|
1741
|
-
this.semicolon();
|
|
1742
|
-
return this.finishNode(node, "ExportAllDeclaration");
|
|
1750
|
+
return this.parseExportAllDeclaration(node, exports3);
|
|
1743
1751
|
}
|
|
1744
1752
|
if (this.eat(types$13._default)) {
|
|
1745
1753
|
this.checkExport(exports3, "default", this.lastTokStart);
|
|
1746
|
-
|
|
1747
|
-
if (this.type === types$13._function || (isAsync = this.isAsyncFunction())) {
|
|
1748
|
-
var fNode = this.startNode();
|
|
1749
|
-
this.next();
|
|
1750
|
-
if (isAsync) {
|
|
1751
|
-
this.next();
|
|
1752
|
-
}
|
|
1753
|
-
node.declaration = this.parseFunction(fNode, FUNC_STATEMENT3 | FUNC_NULLABLE_ID3, false, isAsync);
|
|
1754
|
-
} else if (this.type === types$13._class) {
|
|
1755
|
-
var cNode = this.startNode();
|
|
1756
|
-
node.declaration = this.parseClass(cNode, "nullableID");
|
|
1757
|
-
} else {
|
|
1758
|
-
node.declaration = this.parseMaybeAssign();
|
|
1759
|
-
this.semicolon();
|
|
1760
|
-
}
|
|
1754
|
+
node.declaration = this.parseExportDefaultDeclaration();
|
|
1761
1755
|
return this.finishNode(node, "ExportDefaultDeclaration");
|
|
1762
1756
|
}
|
|
1763
1757
|
if (this.shouldParseExportStatement()) {
|
|
1764
|
-
node.declaration = this.
|
|
1758
|
+
node.declaration = this.parseExportDeclaration(node);
|
|
1765
1759
|
if (node.declaration.type === "VariableDeclaration") {
|
|
1766
1760
|
this.checkVariableExport(exports3, node.declaration.declarations);
|
|
1767
1761
|
} else {
|
|
@@ -1792,6 +1786,27 @@ var require_acorn = __commonJS({
|
|
|
1792
1786
|
}
|
|
1793
1787
|
return this.finishNode(node, "ExportNamedDeclaration");
|
|
1794
1788
|
};
|
|
1789
|
+
pp$83.parseExportDeclaration = function(node) {
|
|
1790
|
+
return this.parseStatement(null);
|
|
1791
|
+
};
|
|
1792
|
+
pp$83.parseExportDefaultDeclaration = function() {
|
|
1793
|
+
var isAsync;
|
|
1794
|
+
if (this.type === types$13._function || (isAsync = this.isAsyncFunction())) {
|
|
1795
|
+
var fNode = this.startNode();
|
|
1796
|
+
this.next();
|
|
1797
|
+
if (isAsync) {
|
|
1798
|
+
this.next();
|
|
1799
|
+
}
|
|
1800
|
+
return this.parseFunction(fNode, FUNC_STATEMENT3 | FUNC_NULLABLE_ID3, false, isAsync);
|
|
1801
|
+
} else if (this.type === types$13._class) {
|
|
1802
|
+
var cNode = this.startNode();
|
|
1803
|
+
return this.parseClass(cNode, "nullableID");
|
|
1804
|
+
} else {
|
|
1805
|
+
var declaration = this.parseMaybeAssign();
|
|
1806
|
+
this.semicolon();
|
|
1807
|
+
return declaration;
|
|
1808
|
+
}
|
|
1809
|
+
};
|
|
1795
1810
|
pp$83.checkExport = function(exports3, name2, pos) {
|
|
1796
1811
|
if (!exports3) {
|
|
1797
1812
|
return;
|
|
@@ -1842,6 +1857,17 @@ var require_acorn = __commonJS({
|
|
|
1842
1857
|
pp$83.shouldParseExportStatement = function() {
|
|
1843
1858
|
return this.type.keyword === "var" || this.type.keyword === "const" || this.type.keyword === "class" || this.type.keyword === "function" || this.isLet() || this.isAsyncFunction();
|
|
1844
1859
|
};
|
|
1860
|
+
pp$83.parseExportSpecifier = function(exports3) {
|
|
1861
|
+
var node = this.startNode();
|
|
1862
|
+
node.local = this.parseModuleExportName();
|
|
1863
|
+
node.exported = this.eatContextual("as") ? this.parseModuleExportName() : node.local;
|
|
1864
|
+
this.checkExport(
|
|
1865
|
+
exports3,
|
|
1866
|
+
node.exported,
|
|
1867
|
+
node.exported.start
|
|
1868
|
+
);
|
|
1869
|
+
return this.finishNode(node, "ExportSpecifier");
|
|
1870
|
+
};
|
|
1845
1871
|
pp$83.parseExportSpecifiers = function(exports3) {
|
|
1846
1872
|
var nodes = [], first = true;
|
|
1847
1873
|
this.expect(types$13.braceL);
|
|
@@ -1854,15 +1880,7 @@ var require_acorn = __commonJS({
|
|
|
1854
1880
|
} else {
|
|
1855
1881
|
first = false;
|
|
1856
1882
|
}
|
|
1857
|
-
|
|
1858
|
-
node.local = this.parseModuleExportName();
|
|
1859
|
-
node.exported = this.eatContextual("as") ? this.parseModuleExportName() : node.local;
|
|
1860
|
-
this.checkExport(
|
|
1861
|
-
exports3,
|
|
1862
|
-
node.exported,
|
|
1863
|
-
node.exported.start
|
|
1864
|
-
);
|
|
1865
|
-
nodes.push(this.finishNode(node, "ExportSpecifier"));
|
|
1883
|
+
nodes.push(this.parseExportSpecifier(exports3));
|
|
1866
1884
|
}
|
|
1867
1885
|
return nodes;
|
|
1868
1886
|
};
|
|
@@ -1879,24 +1897,42 @@ var require_acorn = __commonJS({
|
|
|
1879
1897
|
this.semicolon();
|
|
1880
1898
|
return this.finishNode(node, "ImportDeclaration");
|
|
1881
1899
|
};
|
|
1900
|
+
pp$83.parseImportSpecifier = function() {
|
|
1901
|
+
var node = this.startNode();
|
|
1902
|
+
node.imported = this.parseModuleExportName();
|
|
1903
|
+
if (this.eatContextual("as")) {
|
|
1904
|
+
node.local = this.parseIdent();
|
|
1905
|
+
} else {
|
|
1906
|
+
this.checkUnreserved(node.imported);
|
|
1907
|
+
node.local = node.imported;
|
|
1908
|
+
}
|
|
1909
|
+
this.checkLValSimple(node.local, BIND_LEXICAL3);
|
|
1910
|
+
return this.finishNode(node, "ImportSpecifier");
|
|
1911
|
+
};
|
|
1912
|
+
pp$83.parseImportDefaultSpecifier = function() {
|
|
1913
|
+
var node = this.startNode();
|
|
1914
|
+
node.local = this.parseIdent();
|
|
1915
|
+
this.checkLValSimple(node.local, BIND_LEXICAL3);
|
|
1916
|
+
return this.finishNode(node, "ImportDefaultSpecifier");
|
|
1917
|
+
};
|
|
1918
|
+
pp$83.parseImportNamespaceSpecifier = function() {
|
|
1919
|
+
var node = this.startNode();
|
|
1920
|
+
this.next();
|
|
1921
|
+
this.expectContextual("as");
|
|
1922
|
+
node.local = this.parseIdent();
|
|
1923
|
+
this.checkLValSimple(node.local, BIND_LEXICAL3);
|
|
1924
|
+
return this.finishNode(node, "ImportNamespaceSpecifier");
|
|
1925
|
+
};
|
|
1882
1926
|
pp$83.parseImportSpecifiers = function() {
|
|
1883
1927
|
var nodes = [], first = true;
|
|
1884
1928
|
if (this.type === types$13.name) {
|
|
1885
|
-
|
|
1886
|
-
node.local = this.parseIdent();
|
|
1887
|
-
this.checkLValSimple(node.local, BIND_LEXICAL3);
|
|
1888
|
-
nodes.push(this.finishNode(node, "ImportDefaultSpecifier"));
|
|
1929
|
+
nodes.push(this.parseImportDefaultSpecifier());
|
|
1889
1930
|
if (!this.eat(types$13.comma)) {
|
|
1890
1931
|
return nodes;
|
|
1891
1932
|
}
|
|
1892
1933
|
}
|
|
1893
1934
|
if (this.type === types$13.star) {
|
|
1894
|
-
|
|
1895
|
-
this.next();
|
|
1896
|
-
this.expectContextual("as");
|
|
1897
|
-
node$1.local = this.parseIdent();
|
|
1898
|
-
this.checkLValSimple(node$1.local, BIND_LEXICAL3);
|
|
1899
|
-
nodes.push(this.finishNode(node$1, "ImportNamespaceSpecifier"));
|
|
1935
|
+
nodes.push(this.parseImportNamespaceSpecifier());
|
|
1900
1936
|
return nodes;
|
|
1901
1937
|
}
|
|
1902
1938
|
this.expect(types$13.braceL);
|
|
@@ -1909,16 +1945,7 @@ var require_acorn = __commonJS({
|
|
|
1909
1945
|
} else {
|
|
1910
1946
|
first = false;
|
|
1911
1947
|
}
|
|
1912
|
-
|
|
1913
|
-
node$2.imported = this.parseModuleExportName();
|
|
1914
|
-
if (this.eatContextual("as")) {
|
|
1915
|
-
node$2.local = this.parseIdent();
|
|
1916
|
-
} else {
|
|
1917
|
-
this.checkUnreserved(node$2.imported);
|
|
1918
|
-
node$2.local = node$2.imported;
|
|
1919
|
-
}
|
|
1920
|
-
this.checkLValSimple(node$2.local, BIND_LEXICAL3);
|
|
1921
|
-
nodes.push(this.finishNode(node$2, "ImportSpecifier"));
|
|
1948
|
+
nodes.push(this.parseImportSpecifier());
|
|
1922
1949
|
}
|
|
1923
1950
|
return nodes;
|
|
1924
1951
|
};
|
|
@@ -2058,7 +2085,7 @@ var require_acorn = __commonJS({
|
|
|
2058
2085
|
}
|
|
2059
2086
|
return this.parseIdent();
|
|
2060
2087
|
};
|
|
2061
|
-
pp$73.parseBindingList = function(close, allowEmpty, allowTrailingComma) {
|
|
2088
|
+
pp$73.parseBindingList = function(close, allowEmpty, allowTrailingComma, allowModifiers) {
|
|
2062
2089
|
var elts = [], first = true;
|
|
2063
2090
|
while (!this.eat(close)) {
|
|
2064
2091
|
if (first) {
|
|
@@ -2075,18 +2102,21 @@ var require_acorn = __commonJS({
|
|
|
2075
2102
|
this.parseBindingListItem(rest);
|
|
2076
2103
|
elts.push(rest);
|
|
2077
2104
|
if (this.type === types$13.comma) {
|
|
2078
|
-
this.
|
|
2105
|
+
this.raiseRecoverable(this.start, "Comma is not permitted after the rest element");
|
|
2079
2106
|
}
|
|
2080
2107
|
this.expect(close);
|
|
2081
2108
|
break;
|
|
2082
2109
|
} else {
|
|
2083
|
-
|
|
2084
|
-
this.parseBindingListItem(elem);
|
|
2085
|
-
elts.push(elem);
|
|
2110
|
+
elts.push(this.parseAssignableListItem(allowModifiers));
|
|
2086
2111
|
}
|
|
2087
2112
|
}
|
|
2088
2113
|
return elts;
|
|
2089
2114
|
};
|
|
2115
|
+
pp$73.parseAssignableListItem = function(allowModifiers) {
|
|
2116
|
+
var elem = this.parseMaybeDefault(this.start, this.startLoc);
|
|
2117
|
+
this.parseBindingListItem(elem);
|
|
2118
|
+
return elem;
|
|
2119
|
+
};
|
|
2090
2120
|
pp$73.parseBindingListItem = function(param) {
|
|
2091
2121
|
return param;
|
|
2092
2122
|
};
|
|
@@ -2603,6 +2633,12 @@ var require_acorn = __commonJS({
|
|
|
2603
2633
|
base2 = element;
|
|
2604
2634
|
}
|
|
2605
2635
|
};
|
|
2636
|
+
pp$53.shouldParseAsyncArrow = function() {
|
|
2637
|
+
return !this.canInsertSemicolon() && this.eat(types$13.arrow);
|
|
2638
|
+
};
|
|
2639
|
+
pp$53.parseSubscriptAsyncArrow = function(startPos, startLoc, exprList, forInit) {
|
|
2640
|
+
return this.parseArrowExpression(this.startNodeAt(startPos, startLoc), exprList, true, forInit);
|
|
2641
|
+
};
|
|
2606
2642
|
pp$53.parseSubscript = function(base2, startPos, startLoc, noCalls, maybeAsyncArrow, optionalChained, forInit) {
|
|
2607
2643
|
var optionalSupported = this.options.ecmaVersion >= 11;
|
|
2608
2644
|
var optional = optionalSupported && this.eat(types$13.questionDot);
|
|
@@ -2632,7 +2668,7 @@ var require_acorn = __commonJS({
|
|
|
2632
2668
|
this.awaitPos = 0;
|
|
2633
2669
|
this.awaitIdentPos = 0;
|
|
2634
2670
|
var exprList = this.parseExprList(types$13.parenR, this.options.ecmaVersion >= 8, false, refDestructuringErrors);
|
|
2635
|
-
if (maybeAsyncArrow && !optional &&
|
|
2671
|
+
if (maybeAsyncArrow && !optional && this.shouldParseAsyncArrow()) {
|
|
2636
2672
|
this.checkPatternErrors(refDestructuringErrors, false);
|
|
2637
2673
|
this.checkYieldAwaitInDefaultParams();
|
|
2638
2674
|
if (this.awaitIdentPos > 0) {
|
|
@@ -2641,7 +2677,7 @@ var require_acorn = __commonJS({
|
|
|
2641
2677
|
this.yieldPos = oldYieldPos;
|
|
2642
2678
|
this.awaitPos = oldAwaitPos;
|
|
2643
2679
|
this.awaitIdentPos = oldAwaitIdentPos;
|
|
2644
|
-
return this.
|
|
2680
|
+
return this.parseSubscriptAsyncArrow(startPos, startLoc, exprList, forInit);
|
|
2645
2681
|
}
|
|
2646
2682
|
this.checkExpressionErrors(refDestructuringErrors, true);
|
|
2647
2683
|
this.yieldPos = oldYieldPos || this.yieldPos;
|
|
@@ -2665,7 +2701,7 @@ var require_acorn = __commonJS({
|
|
|
2665
2701
|
}
|
|
2666
2702
|
return base2;
|
|
2667
2703
|
};
|
|
2668
|
-
pp$53.parseExprAtom = function(refDestructuringErrors, forInit) {
|
|
2704
|
+
pp$53.parseExprAtom = function(refDestructuringErrors, forInit, forNew) {
|
|
2669
2705
|
if (this.type === types$13.slash) {
|
|
2670
2706
|
this.readRegexp();
|
|
2671
2707
|
}
|
|
@@ -2755,28 +2791,30 @@ var require_acorn = __commonJS({
|
|
|
2755
2791
|
return this.parseTemplate();
|
|
2756
2792
|
case types$13._import:
|
|
2757
2793
|
if (this.options.ecmaVersion >= 11) {
|
|
2758
|
-
return this.parseExprImport();
|
|
2794
|
+
return this.parseExprImport(forNew);
|
|
2759
2795
|
} else {
|
|
2760
2796
|
return this.unexpected();
|
|
2761
2797
|
}
|
|
2762
2798
|
default:
|
|
2763
|
-
this.
|
|
2799
|
+
return this.parseExprAtomDefault();
|
|
2764
2800
|
}
|
|
2765
2801
|
};
|
|
2766
|
-
pp$53.
|
|
2802
|
+
pp$53.parseExprAtomDefault = function() {
|
|
2803
|
+
this.unexpected();
|
|
2804
|
+
};
|
|
2805
|
+
pp$53.parseExprImport = function(forNew) {
|
|
2767
2806
|
var node = this.startNode();
|
|
2768
2807
|
if (this.containsEsc) {
|
|
2769
2808
|
this.raiseRecoverable(this.start, "Escape sequence in keyword import");
|
|
2770
2809
|
}
|
|
2771
2810
|
var meta = this.parseIdent(true);
|
|
2772
|
-
|
|
2773
|
-
|
|
2774
|
-
|
|
2775
|
-
|
|
2776
|
-
|
|
2777
|
-
|
|
2778
|
-
|
|
2779
|
-
this.unexpected();
|
|
2811
|
+
if (this.type === types$13.parenL && !forNew) {
|
|
2812
|
+
return this.parseDynamicImport(node);
|
|
2813
|
+
} else if (this.type === types$13.dot) {
|
|
2814
|
+
node.meta = meta;
|
|
2815
|
+
return this.parseImportMeta(node);
|
|
2816
|
+
} else {
|
|
2817
|
+
this.unexpected();
|
|
2780
2818
|
}
|
|
2781
2819
|
};
|
|
2782
2820
|
pp$53.parseDynamicImport = function(node) {
|
|
@@ -2823,6 +2861,9 @@ var require_acorn = __commonJS({
|
|
|
2823
2861
|
this.expect(types$13.parenR);
|
|
2824
2862
|
return val;
|
|
2825
2863
|
};
|
|
2864
|
+
pp$53.shouldParseArrow = function(exprList) {
|
|
2865
|
+
return !this.canInsertSemicolon();
|
|
2866
|
+
};
|
|
2826
2867
|
pp$53.parseParenAndDistinguishExpression = function(canBeArrow, forInit) {
|
|
2827
2868
|
var startPos = this.start, startLoc = this.startLoc, val, allowTrailingComma = this.options.ecmaVersion >= 8;
|
|
2828
2869
|
if (this.options.ecmaVersion >= 6) {
|
|
@@ -2841,7 +2882,10 @@ var require_acorn = __commonJS({
|
|
|
2841
2882
|
spreadStart = this.start;
|
|
2842
2883
|
exprList.push(this.parseParenItem(this.parseRestBinding()));
|
|
2843
2884
|
if (this.type === types$13.comma) {
|
|
2844
|
-
this.
|
|
2885
|
+
this.raiseRecoverable(
|
|
2886
|
+
this.start,
|
|
2887
|
+
"Comma is not permitted after the rest element"
|
|
2888
|
+
);
|
|
2845
2889
|
}
|
|
2846
2890
|
break;
|
|
2847
2891
|
} else {
|
|
@@ -2850,7 +2894,7 @@ var require_acorn = __commonJS({
|
|
|
2850
2894
|
}
|
|
2851
2895
|
var innerEndPos = this.lastTokEnd, innerEndLoc = this.lastTokEndLoc;
|
|
2852
2896
|
this.expect(types$13.parenR);
|
|
2853
|
-
if (canBeArrow &&
|
|
2897
|
+
if (canBeArrow && this.shouldParseArrow(exprList) && this.eat(types$13.arrow)) {
|
|
2854
2898
|
this.checkPatternErrors(refDestructuringErrors, false);
|
|
2855
2899
|
this.checkYieldAwaitInDefaultParams();
|
|
2856
2900
|
this.yieldPos = oldYieldPos;
|
|
@@ -2912,11 +2956,8 @@ var require_acorn = __commonJS({
|
|
|
2912
2956
|
}
|
|
2913
2957
|
return this.finishNode(node, "MetaProperty");
|
|
2914
2958
|
}
|
|
2915
|
-
var startPos = this.start, startLoc = this.startLoc
|
|
2916
|
-
node.callee = this.parseSubscripts(this.parseExprAtom(), startPos, startLoc, true, false);
|
|
2917
|
-
if (isImport && node.callee.type === "ImportExpression") {
|
|
2918
|
-
this.raise(startPos, "Cannot use new with import()");
|
|
2919
|
-
}
|
|
2959
|
+
var startPos = this.start, startLoc = this.startLoc;
|
|
2960
|
+
node.callee = this.parseSubscripts(this.parseExprAtom(null, false, true), startPos, startLoc, true, false);
|
|
2920
2961
|
if (this.eat(types$13.parenL)) {
|
|
2921
2962
|
node.arguments = this.parseExprList(types$13.parenR, this.options.ecmaVersion >= 8, false);
|
|
2922
2963
|
} else {
|
|
@@ -2998,7 +3039,7 @@ var require_acorn = __commonJS({
|
|
|
2998
3039
|
if (isPattern) {
|
|
2999
3040
|
prop.argument = this.parseIdent(false);
|
|
3000
3041
|
if (this.type === types$13.comma) {
|
|
3001
|
-
this.
|
|
3042
|
+
this.raiseRecoverable(this.start, "Comma is not permitted after the rest element");
|
|
3002
3043
|
}
|
|
3003
3044
|
return this.finishNode(prop, "RestElement");
|
|
3004
3045
|
}
|
|
@@ -3024,13 +3065,31 @@ var require_acorn = __commonJS({
|
|
|
3024
3065
|
if (!isPattern && !containsEsc && this.options.ecmaVersion >= 8 && !isGenerator && this.isAsyncProp(prop)) {
|
|
3025
3066
|
isAsync = true;
|
|
3026
3067
|
isGenerator = this.options.ecmaVersion >= 9 && this.eat(types$13.star);
|
|
3027
|
-
this.parsePropertyName(prop
|
|
3068
|
+
this.parsePropertyName(prop);
|
|
3028
3069
|
} else {
|
|
3029
3070
|
isAsync = false;
|
|
3030
3071
|
}
|
|
3031
3072
|
this.parsePropertyValue(prop, isPattern, isGenerator, isAsync, startPos, startLoc, refDestructuringErrors, containsEsc);
|
|
3032
3073
|
return this.finishNode(prop, "Property");
|
|
3033
3074
|
};
|
|
3075
|
+
pp$53.parseGetterSetter = function(prop) {
|
|
3076
|
+
prop.kind = prop.key.name;
|
|
3077
|
+
this.parsePropertyName(prop);
|
|
3078
|
+
prop.value = this.parseMethod(false);
|
|
3079
|
+
var paramCount = prop.kind === "get" ? 0 : 1;
|
|
3080
|
+
if (prop.value.params.length !== paramCount) {
|
|
3081
|
+
var start3 = prop.value.start;
|
|
3082
|
+
if (prop.kind === "get") {
|
|
3083
|
+
this.raiseRecoverable(start3, "getter should have no params");
|
|
3084
|
+
} else {
|
|
3085
|
+
this.raiseRecoverable(start3, "setter should have exactly one param");
|
|
3086
|
+
}
|
|
3087
|
+
} else {
|
|
3088
|
+
if (prop.kind === "set" && prop.value.params[0].type === "RestElement") {
|
|
3089
|
+
this.raiseRecoverable(prop.value.params[0].start, "Setter cannot use rest params");
|
|
3090
|
+
}
|
|
3091
|
+
}
|
|
3092
|
+
};
|
|
3034
3093
|
pp$53.parsePropertyValue = function(prop, isPattern, isGenerator, isAsync, startPos, startLoc, refDestructuringErrors, containsEsc) {
|
|
3035
3094
|
if ((isGenerator || isAsync) && this.type === types$13.colon) {
|
|
3036
3095
|
this.unexpected();
|
|
@@ -3049,22 +3108,7 @@ var require_acorn = __commonJS({
|
|
|
3049
3108
|
if (isGenerator || isAsync) {
|
|
3050
3109
|
this.unexpected();
|
|
3051
3110
|
}
|
|
3052
|
-
|
|
3053
|
-
this.parsePropertyName(prop);
|
|
3054
|
-
prop.value = this.parseMethod(false);
|
|
3055
|
-
var paramCount = prop.kind === "get" ? 0 : 1;
|
|
3056
|
-
if (prop.value.params.length !== paramCount) {
|
|
3057
|
-
var start3 = prop.value.start;
|
|
3058
|
-
if (prop.kind === "get") {
|
|
3059
|
-
this.raiseRecoverable(start3, "getter should have no params");
|
|
3060
|
-
} else {
|
|
3061
|
-
this.raiseRecoverable(start3, "setter should have exactly one param");
|
|
3062
|
-
}
|
|
3063
|
-
} else {
|
|
3064
|
-
if (prop.kind === "set" && prop.value.params[0].type === "RestElement") {
|
|
3065
|
-
this.raiseRecoverable(prop.value.params[0].start, "Setter cannot use rest params");
|
|
3066
|
-
}
|
|
3067
|
-
}
|
|
3111
|
+
this.parseGetterSetter(prop);
|
|
3068
3112
|
} else if (this.options.ecmaVersion >= 6 && !prop.computed && prop.key.type === "Identifier") {
|
|
3069
3113
|
if (isGenerator || isAsync) {
|
|
3070
3114
|
this.unexpected();
|
|
@@ -3253,7 +3297,19 @@ var require_acorn = __commonJS({
|
|
|
3253
3297
|
this.raiseRecoverable(start3, "The keyword '" + name2 + "' is reserved");
|
|
3254
3298
|
}
|
|
3255
3299
|
};
|
|
3256
|
-
pp$53.parseIdent = function(liberal
|
|
3300
|
+
pp$53.parseIdent = function(liberal) {
|
|
3301
|
+
var node = this.parseIdentNode();
|
|
3302
|
+
this.next(!!liberal);
|
|
3303
|
+
this.finishNode(node, "Identifier");
|
|
3304
|
+
if (!liberal) {
|
|
3305
|
+
this.checkUnreserved(node);
|
|
3306
|
+
if (node.name === "await" && !this.awaitIdentPos) {
|
|
3307
|
+
this.awaitIdentPos = node.start;
|
|
3308
|
+
}
|
|
3309
|
+
}
|
|
3310
|
+
return node;
|
|
3311
|
+
};
|
|
3312
|
+
pp$53.parseIdentNode = function() {
|
|
3257
3313
|
var node = this.startNode();
|
|
3258
3314
|
if (this.type === types$13.name) {
|
|
3259
3315
|
node.name = this.value;
|
|
@@ -3265,14 +3321,6 @@ var require_acorn = __commonJS({
|
|
|
3265
3321
|
} else {
|
|
3266
3322
|
this.unexpected();
|
|
3267
3323
|
}
|
|
3268
|
-
this.next(!!liberal);
|
|
3269
|
-
this.finishNode(node, "Identifier");
|
|
3270
|
-
if (!liberal) {
|
|
3271
|
-
this.checkUnreserved(node);
|
|
3272
|
-
if (node.name === "await" && !this.awaitIdentPos) {
|
|
3273
|
-
this.awaitIdentPos = node.start;
|
|
3274
|
-
}
|
|
3275
|
-
}
|
|
3276
3324
|
return node;
|
|
3277
3325
|
};
|
|
3278
3326
|
pp$53.parsePrivateIdent = function() {
|
|
@@ -3462,12 +3510,23 @@ var require_acorn = __commonJS({
|
|
|
3462
3510
|
var ecma11BinaryProperties3 = ecma10BinaryProperties3;
|
|
3463
3511
|
var ecma12BinaryProperties3 = ecma11BinaryProperties3 + " EBase EComp EMod EPres ExtPict";
|
|
3464
3512
|
var ecma13BinaryProperties3 = ecma12BinaryProperties3;
|
|
3513
|
+
var ecma14BinaryProperties3 = ecma13BinaryProperties3;
|
|
3465
3514
|
var unicodeBinaryProperties3 = {
|
|
3466
3515
|
9: ecma9BinaryProperties3,
|
|
3467
3516
|
10: ecma10BinaryProperties3,
|
|
3468
3517
|
11: ecma11BinaryProperties3,
|
|
3469
3518
|
12: ecma12BinaryProperties3,
|
|
3470
|
-
13: ecma13BinaryProperties3
|
|
3519
|
+
13: ecma13BinaryProperties3,
|
|
3520
|
+
14: ecma14BinaryProperties3
|
|
3521
|
+
};
|
|
3522
|
+
var ecma14BinaryPropertiesOfStrings2 = "Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji";
|
|
3523
|
+
var unicodeBinaryPropertiesOfStrings2 = {
|
|
3524
|
+
9: "",
|
|
3525
|
+
10: "",
|
|
3526
|
+
11: "",
|
|
3527
|
+
12: "",
|
|
3528
|
+
13: "",
|
|
3529
|
+
14: ecma14BinaryPropertiesOfStrings2
|
|
3471
3530
|
};
|
|
3472
3531
|
var unicodeGeneralCategoryValues3 = "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";
|
|
3473
3532
|
var ecma9ScriptValues3 = "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";
|
|
@@ -3475,17 +3534,20 @@ var require_acorn = __commonJS({
|
|
|
3475
3534
|
var ecma11ScriptValues3 = ecma10ScriptValues3 + " Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho";
|
|
3476
3535
|
var ecma12ScriptValues3 = ecma11ScriptValues3 + " Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi";
|
|
3477
3536
|
var ecma13ScriptValues3 = ecma12ScriptValues3 + " Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith";
|
|
3537
|
+
var ecma14ScriptValues3 = ecma13ScriptValues3 + " Hrkt Katakana_Or_Hiragana Kawi Nag_Mundari Nagm Unknown Zzzz";
|
|
3478
3538
|
var unicodeScriptValues3 = {
|
|
3479
3539
|
9: ecma9ScriptValues3,
|
|
3480
3540
|
10: ecma10ScriptValues3,
|
|
3481
3541
|
11: ecma11ScriptValues3,
|
|
3482
3542
|
12: ecma12ScriptValues3,
|
|
3483
|
-
13: ecma13ScriptValues3
|
|
3543
|
+
13: ecma13ScriptValues3,
|
|
3544
|
+
14: ecma14ScriptValues3
|
|
3484
3545
|
};
|
|
3485
3546
|
var data3 = {};
|
|
3486
3547
|
function buildUnicodeData3(ecmaVersion2) {
|
|
3487
3548
|
var d = data3[ecmaVersion2] = {
|
|
3488
3549
|
binary: wordsRegexp3(unicodeBinaryProperties3[ecmaVersion2] + " " + unicodeGeneralCategoryValues3),
|
|
3550
|
+
binaryOfStrings: wordsRegexp3(unicodeBinaryPropertiesOfStrings2[ecmaVersion2]),
|
|
3489
3551
|
nonBinary: {
|
|
3490
3552
|
General_Category: wordsRegexp3(unicodeGeneralCategoryValues3),
|
|
3491
3553
|
Script: wordsRegexp3(unicodeScriptValues3[ecmaVersion2])
|
|
@@ -3496,19 +3558,20 @@ var require_acorn = __commonJS({
|
|
|
3496
3558
|
d.nonBinary.sc = d.nonBinary.Script;
|
|
3497
3559
|
d.nonBinary.scx = d.nonBinary.Script_Extensions;
|
|
3498
3560
|
}
|
|
3499
|
-
for (var i = 0, list3 = [9, 10, 11, 12, 13]; i < list3.length; i += 1) {
|
|
3561
|
+
for (var i = 0, list3 = [9, 10, 11, 12, 13, 14]; i < list3.length; i += 1) {
|
|
3500
3562
|
var ecmaVersion = list3[i];
|
|
3501
3563
|
buildUnicodeData3(ecmaVersion);
|
|
3502
3564
|
}
|
|
3503
3565
|
var pp$13 = Parser5.prototype;
|
|
3504
3566
|
var RegExpValidationState5 = function RegExpValidationState6(parser) {
|
|
3505
3567
|
this.parser = parser;
|
|
3506
|
-
this.validFlags = "gim" + (parser.options.ecmaVersion >= 6 ? "uy" : "") + (parser.options.ecmaVersion >= 9 ? "s" : "") + (parser.options.ecmaVersion >= 13 ? "d" : "");
|
|
3507
|
-
this.unicodeProperties = data3[parser.options.ecmaVersion >=
|
|
3568
|
+
this.validFlags = "gim" + (parser.options.ecmaVersion >= 6 ? "uy" : "") + (parser.options.ecmaVersion >= 9 ? "s" : "") + (parser.options.ecmaVersion >= 13 ? "d" : "") + (parser.options.ecmaVersion >= 15 ? "v" : "");
|
|
3569
|
+
this.unicodeProperties = data3[parser.options.ecmaVersion >= 14 ? 14 : parser.options.ecmaVersion];
|
|
3508
3570
|
this.source = "";
|
|
3509
3571
|
this.flags = "";
|
|
3510
3572
|
this.start = 0;
|
|
3511
3573
|
this.switchU = false;
|
|
3574
|
+
this.switchV = false;
|
|
3512
3575
|
this.switchN = false;
|
|
3513
3576
|
this.pos = 0;
|
|
3514
3577
|
this.lastIntValue = 0;
|
|
@@ -3520,12 +3583,20 @@ var require_acorn = __commonJS({
|
|
|
3520
3583
|
this.backReferenceNames = [];
|
|
3521
3584
|
};
|
|
3522
3585
|
RegExpValidationState5.prototype.reset = function reset3(start3, pattern, flags) {
|
|
3586
|
+
var unicodeSets = flags.indexOf("v") !== -1;
|
|
3523
3587
|
var unicode = flags.indexOf("u") !== -1;
|
|
3524
3588
|
this.start = start3 | 0;
|
|
3525
3589
|
this.source = pattern + "";
|
|
3526
3590
|
this.flags = flags;
|
|
3527
|
-
|
|
3528
|
-
|
|
3591
|
+
if (unicodeSets && this.parser.options.ecmaVersion >= 15) {
|
|
3592
|
+
this.switchU = true;
|
|
3593
|
+
this.switchV = true;
|
|
3594
|
+
this.switchN = true;
|
|
3595
|
+
} else {
|
|
3596
|
+
this.switchU = unicode && this.parser.options.ecmaVersion >= 6;
|
|
3597
|
+
this.switchV = false;
|
|
3598
|
+
this.switchN = unicode && this.parser.options.ecmaVersion >= 9;
|
|
3599
|
+
}
|
|
3529
3600
|
};
|
|
3530
3601
|
RegExpValidationState5.prototype.raise = function raise3(message) {
|
|
3531
3602
|
this.parser.raiseRecoverable(this.start, "Invalid regular expression: /" + this.source + "/: " + message);
|
|
@@ -3583,9 +3654,26 @@ var require_acorn = __commonJS({
|
|
|
3583
3654
|
}
|
|
3584
3655
|
return false;
|
|
3585
3656
|
};
|
|
3657
|
+
RegExpValidationState5.prototype.eatChars = function eatChars2(chs, forceU) {
|
|
3658
|
+
if (forceU === void 0)
|
|
3659
|
+
forceU = false;
|
|
3660
|
+
var pos = this.pos;
|
|
3661
|
+
for (var i2 = 0, list4 = chs; i2 < list4.length; i2 += 1) {
|
|
3662
|
+
var ch2 = list4[i2];
|
|
3663
|
+
var current3 = this.at(pos, forceU);
|
|
3664
|
+
if (current3 === -1 || current3 !== ch2) {
|
|
3665
|
+
return false;
|
|
3666
|
+
}
|
|
3667
|
+
pos = this.nextIndex(pos, forceU);
|
|
3668
|
+
}
|
|
3669
|
+
this.pos = pos;
|
|
3670
|
+
return true;
|
|
3671
|
+
};
|
|
3586
3672
|
pp$13.validateRegExpFlags = function(state) {
|
|
3587
3673
|
var validFlags = state.validFlags;
|
|
3588
3674
|
var flags = state.flags;
|
|
3675
|
+
var u = false;
|
|
3676
|
+
var v = false;
|
|
3589
3677
|
for (var i2 = 0; i2 < flags.length; i2++) {
|
|
3590
3678
|
var flag = flags.charAt(i2);
|
|
3591
3679
|
if (validFlags.indexOf(flag) === -1) {
|
|
@@ -3594,6 +3682,15 @@ var require_acorn = __commonJS({
|
|
|
3594
3682
|
if (flags.indexOf(flag, i2 + 1) > -1) {
|
|
3595
3683
|
this.raise(state.start, "Duplicate regular expression flag");
|
|
3596
3684
|
}
|
|
3685
|
+
if (flag === "u") {
|
|
3686
|
+
u = true;
|
|
3687
|
+
}
|
|
3688
|
+
if (flag === "v") {
|
|
3689
|
+
v = true;
|
|
3690
|
+
}
|
|
3691
|
+
}
|
|
3692
|
+
if (this.options.ecmaVersion >= 15 && u && v) {
|
|
3693
|
+
this.raise(state.start, "Invalid regular expression flag");
|
|
3597
3694
|
}
|
|
3598
3695
|
};
|
|
3599
3696
|
pp$13.validateRegExpPattern = function(state) {
|
|
@@ -4042,22 +4139,30 @@ var require_acorn = __commonJS({
|
|
|
4042
4139
|
}
|
|
4043
4140
|
return false;
|
|
4044
4141
|
};
|
|
4142
|
+
var CharSetNone2 = 0;
|
|
4143
|
+
var CharSetOk2 = 1;
|
|
4144
|
+
var CharSetString2 = 2;
|
|
4045
4145
|
pp$13.regexp_eatCharacterClassEscape = function(state) {
|
|
4046
4146
|
var ch2 = state.current();
|
|
4047
4147
|
if (isCharacterClassEscape3(ch2)) {
|
|
4048
4148
|
state.lastIntValue = -1;
|
|
4049
4149
|
state.advance();
|
|
4050
|
-
return
|
|
4150
|
+
return CharSetOk2;
|
|
4051
4151
|
}
|
|
4052
|
-
|
|
4152
|
+
var negate = false;
|
|
4153
|
+
if (state.switchU && this.options.ecmaVersion >= 9 && ((negate = ch2 === 80) || ch2 === 112)) {
|
|
4053
4154
|
state.lastIntValue = -1;
|
|
4054
4155
|
state.advance();
|
|
4055
|
-
|
|
4056
|
-
|
|
4156
|
+
var result;
|
|
4157
|
+
if (state.eat(123) && (result = this.regexp_eatUnicodePropertyValueExpression(state)) && state.eat(125)) {
|
|
4158
|
+
if (negate && result === CharSetString2) {
|
|
4159
|
+
state.raise("Invalid property name");
|
|
4160
|
+
}
|
|
4161
|
+
return result;
|
|
4057
4162
|
}
|
|
4058
4163
|
state.raise("Invalid property name");
|
|
4059
4164
|
}
|
|
4060
|
-
return
|
|
4165
|
+
return CharSetNone2;
|
|
4061
4166
|
};
|
|
4062
4167
|
function isCharacterClassEscape3(ch2) {
|
|
4063
4168
|
return ch2 === 100 || ch2 === 68 || ch2 === 115 || ch2 === 83 || ch2 === 119 || ch2 === 87;
|
|
@@ -4069,16 +4174,15 @@ var require_acorn = __commonJS({
|
|
|
4069
4174
|
if (this.regexp_eatUnicodePropertyValue(state)) {
|
|
4070
4175
|
var value = state.lastStringValue;
|
|
4071
4176
|
this.regexp_validateUnicodePropertyNameAndValue(state, name2, value);
|
|
4072
|
-
return
|
|
4177
|
+
return CharSetOk2;
|
|
4073
4178
|
}
|
|
4074
4179
|
}
|
|
4075
4180
|
state.pos = start3;
|
|
4076
4181
|
if (this.regexp_eatLoneUnicodePropertyNameOrValue(state)) {
|
|
4077
4182
|
var nameOrValue = state.lastStringValue;
|
|
4078
|
-
this.regexp_validateUnicodePropertyNameOrValue(state, nameOrValue);
|
|
4079
|
-
return true;
|
|
4183
|
+
return this.regexp_validateUnicodePropertyNameOrValue(state, nameOrValue);
|
|
4080
4184
|
}
|
|
4081
|
-
return
|
|
4185
|
+
return CharSetNone2;
|
|
4082
4186
|
};
|
|
4083
4187
|
pp$13.regexp_validateUnicodePropertyNameAndValue = function(state, name2, value) {
|
|
4084
4188
|
if (!hasOwn3(state.unicodeProperties.nonBinary, name2)) {
|
|
@@ -4089,9 +4193,13 @@ var require_acorn = __commonJS({
|
|
|
4089
4193
|
}
|
|
4090
4194
|
};
|
|
4091
4195
|
pp$13.regexp_validateUnicodePropertyNameOrValue = function(state, nameOrValue) {
|
|
4092
|
-
if (
|
|
4093
|
-
|
|
4196
|
+
if (state.unicodeProperties.binary.test(nameOrValue)) {
|
|
4197
|
+
return CharSetOk2;
|
|
4198
|
+
}
|
|
4199
|
+
if (state.switchV && state.unicodeProperties.binaryOfStrings.test(nameOrValue)) {
|
|
4200
|
+
return CharSetString2;
|
|
4094
4201
|
}
|
|
4202
|
+
state.raise("Invalid property name");
|
|
4095
4203
|
};
|
|
4096
4204
|
pp$13.regexp_eatUnicodePropertyName = function(state) {
|
|
4097
4205
|
var ch2 = 0;
|
|
@@ -4122,16 +4230,29 @@ var require_acorn = __commonJS({
|
|
|
4122
4230
|
};
|
|
4123
4231
|
pp$13.regexp_eatCharacterClass = function(state) {
|
|
4124
4232
|
if (state.eat(91)) {
|
|
4125
|
-
state.eat(94);
|
|
4126
|
-
this.
|
|
4127
|
-
if (state.eat(93)) {
|
|
4128
|
-
|
|
4233
|
+
var negate = state.eat(94);
|
|
4234
|
+
var result = this.regexp_classContents(state);
|
|
4235
|
+
if (!state.eat(93)) {
|
|
4236
|
+
state.raise("Unterminated character class");
|
|
4129
4237
|
}
|
|
4130
|
-
|
|
4238
|
+
if (negate && result === CharSetString2) {
|
|
4239
|
+
state.raise("Negated character class may contain strings");
|
|
4240
|
+
}
|
|
4241
|
+
return true;
|
|
4131
4242
|
}
|
|
4132
4243
|
return false;
|
|
4133
4244
|
};
|
|
4134
|
-
pp$13.
|
|
4245
|
+
pp$13.regexp_classContents = function(state) {
|
|
4246
|
+
if (state.current() === 93) {
|
|
4247
|
+
return CharSetOk2;
|
|
4248
|
+
}
|
|
4249
|
+
if (state.switchV) {
|
|
4250
|
+
return this.regexp_classSetExpression(state);
|
|
4251
|
+
}
|
|
4252
|
+
this.regexp_nonEmptyClassRanges(state);
|
|
4253
|
+
return CharSetOk2;
|
|
4254
|
+
};
|
|
4255
|
+
pp$13.regexp_nonEmptyClassRanges = function(state) {
|
|
4135
4256
|
while (this.regexp_eatClassAtom(state)) {
|
|
4136
4257
|
var left = state.lastIntValue;
|
|
4137
4258
|
if (state.eat(45) && this.regexp_eatClassAtom(state)) {
|
|
@@ -4186,6 +4307,168 @@ var require_acorn = __commonJS({
|
|
|
4186
4307
|
}
|
|
4187
4308
|
return this.regexp_eatCharacterClassEscape(state) || this.regexp_eatCharacterEscape(state);
|
|
4188
4309
|
};
|
|
4310
|
+
pp$13.regexp_classSetExpression = function(state) {
|
|
4311
|
+
var result = CharSetOk2, subResult;
|
|
4312
|
+
if (this.regexp_eatClassSetRange(state))
|
|
4313
|
+
;
|
|
4314
|
+
else if (subResult = this.regexp_eatClassSetOperand(state)) {
|
|
4315
|
+
if (subResult === CharSetString2) {
|
|
4316
|
+
result = CharSetString2;
|
|
4317
|
+
}
|
|
4318
|
+
var start3 = state.pos;
|
|
4319
|
+
while (state.eatChars([38, 38])) {
|
|
4320
|
+
if (state.current() !== 38 && (subResult = this.regexp_eatClassSetOperand(state))) {
|
|
4321
|
+
if (subResult !== CharSetString2) {
|
|
4322
|
+
result = CharSetOk2;
|
|
4323
|
+
}
|
|
4324
|
+
continue;
|
|
4325
|
+
}
|
|
4326
|
+
state.raise("Invalid character in character class");
|
|
4327
|
+
}
|
|
4328
|
+
if (start3 !== state.pos) {
|
|
4329
|
+
return result;
|
|
4330
|
+
}
|
|
4331
|
+
while (state.eatChars([45, 45])) {
|
|
4332
|
+
if (this.regexp_eatClassSetOperand(state)) {
|
|
4333
|
+
continue;
|
|
4334
|
+
}
|
|
4335
|
+
state.raise("Invalid character in character class");
|
|
4336
|
+
}
|
|
4337
|
+
if (start3 !== state.pos) {
|
|
4338
|
+
return result;
|
|
4339
|
+
}
|
|
4340
|
+
} else {
|
|
4341
|
+
state.raise("Invalid character in character class");
|
|
4342
|
+
}
|
|
4343
|
+
for (; ; ) {
|
|
4344
|
+
if (this.regexp_eatClassSetRange(state)) {
|
|
4345
|
+
continue;
|
|
4346
|
+
}
|
|
4347
|
+
subResult = this.regexp_eatClassSetOperand(state);
|
|
4348
|
+
if (!subResult) {
|
|
4349
|
+
return result;
|
|
4350
|
+
}
|
|
4351
|
+
if (subResult === CharSetString2) {
|
|
4352
|
+
result = CharSetString2;
|
|
4353
|
+
}
|
|
4354
|
+
}
|
|
4355
|
+
};
|
|
4356
|
+
pp$13.regexp_eatClassSetRange = function(state) {
|
|
4357
|
+
var start3 = state.pos;
|
|
4358
|
+
if (this.regexp_eatClassSetCharacter(state)) {
|
|
4359
|
+
var left = state.lastIntValue;
|
|
4360
|
+
if (state.eat(45) && this.regexp_eatClassSetCharacter(state)) {
|
|
4361
|
+
var right = state.lastIntValue;
|
|
4362
|
+
if (left !== -1 && right !== -1 && left > right) {
|
|
4363
|
+
state.raise("Range out of order in character class");
|
|
4364
|
+
}
|
|
4365
|
+
return true;
|
|
4366
|
+
}
|
|
4367
|
+
state.pos = start3;
|
|
4368
|
+
}
|
|
4369
|
+
return false;
|
|
4370
|
+
};
|
|
4371
|
+
pp$13.regexp_eatClassSetOperand = function(state) {
|
|
4372
|
+
if (this.regexp_eatClassSetCharacter(state)) {
|
|
4373
|
+
return CharSetOk2;
|
|
4374
|
+
}
|
|
4375
|
+
return this.regexp_eatClassStringDisjunction(state) || this.regexp_eatNestedClass(state);
|
|
4376
|
+
};
|
|
4377
|
+
pp$13.regexp_eatNestedClass = function(state) {
|
|
4378
|
+
var start3 = state.pos;
|
|
4379
|
+
if (state.eat(91)) {
|
|
4380
|
+
var negate = state.eat(94);
|
|
4381
|
+
var result = this.regexp_classContents(state);
|
|
4382
|
+
if (state.eat(93)) {
|
|
4383
|
+
if (negate && result === CharSetString2) {
|
|
4384
|
+
state.raise("Negated character class may contain strings");
|
|
4385
|
+
}
|
|
4386
|
+
return result;
|
|
4387
|
+
}
|
|
4388
|
+
state.pos = start3;
|
|
4389
|
+
}
|
|
4390
|
+
if (state.eat(92)) {
|
|
4391
|
+
var result$1 = this.regexp_eatCharacterClassEscape(state);
|
|
4392
|
+
if (result$1) {
|
|
4393
|
+
return result$1;
|
|
4394
|
+
}
|
|
4395
|
+
state.pos = start3;
|
|
4396
|
+
}
|
|
4397
|
+
return null;
|
|
4398
|
+
};
|
|
4399
|
+
pp$13.regexp_eatClassStringDisjunction = function(state) {
|
|
4400
|
+
var start3 = state.pos;
|
|
4401
|
+
if (state.eatChars([92, 113])) {
|
|
4402
|
+
if (state.eat(123)) {
|
|
4403
|
+
var result = this.regexp_classStringDisjunctionContents(state);
|
|
4404
|
+
if (state.eat(125)) {
|
|
4405
|
+
return result;
|
|
4406
|
+
}
|
|
4407
|
+
} else {
|
|
4408
|
+
state.raise("Invalid escape");
|
|
4409
|
+
}
|
|
4410
|
+
state.pos = start3;
|
|
4411
|
+
}
|
|
4412
|
+
return null;
|
|
4413
|
+
};
|
|
4414
|
+
pp$13.regexp_classStringDisjunctionContents = function(state) {
|
|
4415
|
+
var result = this.regexp_classString(state);
|
|
4416
|
+
while (state.eat(124)) {
|
|
4417
|
+
if (this.regexp_classString(state) === CharSetString2) {
|
|
4418
|
+
result = CharSetString2;
|
|
4419
|
+
}
|
|
4420
|
+
}
|
|
4421
|
+
return result;
|
|
4422
|
+
};
|
|
4423
|
+
pp$13.regexp_classString = function(state) {
|
|
4424
|
+
var count = 0;
|
|
4425
|
+
while (this.regexp_eatClassSetCharacter(state)) {
|
|
4426
|
+
count++;
|
|
4427
|
+
}
|
|
4428
|
+
return count === 1 ? CharSetOk2 : CharSetString2;
|
|
4429
|
+
};
|
|
4430
|
+
pp$13.regexp_eatClassSetCharacter = function(state) {
|
|
4431
|
+
var start3 = state.pos;
|
|
4432
|
+
if (state.eat(92)) {
|
|
4433
|
+
if (this.regexp_eatCharacterEscape(state) || this.regexp_eatClassSetReservedPunctuator(state)) {
|
|
4434
|
+
return true;
|
|
4435
|
+
}
|
|
4436
|
+
if (state.eat(98)) {
|
|
4437
|
+
state.lastIntValue = 8;
|
|
4438
|
+
return true;
|
|
4439
|
+
}
|
|
4440
|
+
state.pos = start3;
|
|
4441
|
+
return false;
|
|
4442
|
+
}
|
|
4443
|
+
var ch2 = state.current();
|
|
4444
|
+
if (ch2 < 0 || ch2 === state.lookahead() && isClassSetReservedDoublePunctuatorCharacter2(ch2)) {
|
|
4445
|
+
return false;
|
|
4446
|
+
}
|
|
4447
|
+
if (isClassSetSyntaxCharacter2(ch2)) {
|
|
4448
|
+
return false;
|
|
4449
|
+
}
|
|
4450
|
+
state.advance();
|
|
4451
|
+
state.lastIntValue = ch2;
|
|
4452
|
+
return true;
|
|
4453
|
+
};
|
|
4454
|
+
function isClassSetReservedDoublePunctuatorCharacter2(ch2) {
|
|
4455
|
+
return ch2 === 33 || ch2 >= 35 && ch2 <= 38 || ch2 >= 42 && ch2 <= 44 || ch2 === 46 || ch2 >= 58 && ch2 <= 64 || ch2 === 94 || ch2 === 96 || ch2 === 126;
|
|
4456
|
+
}
|
|
4457
|
+
function isClassSetSyntaxCharacter2(ch2) {
|
|
4458
|
+
return ch2 === 40 || ch2 === 41 || ch2 === 45 || ch2 === 47 || ch2 >= 91 && ch2 <= 93 || ch2 >= 123 && ch2 <= 125;
|
|
4459
|
+
}
|
|
4460
|
+
pp$13.regexp_eatClassSetReservedPunctuator = function(state) {
|
|
4461
|
+
var ch2 = state.current();
|
|
4462
|
+
if (isClassSetReservedPunctuator2(ch2)) {
|
|
4463
|
+
state.lastIntValue = ch2;
|
|
4464
|
+
state.advance();
|
|
4465
|
+
return true;
|
|
4466
|
+
}
|
|
4467
|
+
return false;
|
|
4468
|
+
};
|
|
4469
|
+
function isClassSetReservedPunctuator2(ch2) {
|
|
4470
|
+
return ch2 === 33 || ch2 === 35 || ch2 === 37 || ch2 === 38 || ch2 === 44 || ch2 === 45 || ch2 >= 58 && ch2 <= 62 || ch2 === 64 || ch2 === 96 || ch2 === 126;
|
|
4471
|
+
}
|
|
4189
4472
|
pp$13.regexp_eatClassControlLetter = function(state) {
|
|
4190
4473
|
var ch2 = state.current();
|
|
4191
4474
|
if (isDecimalDigit3(ch2) || ch2 === 95) {
|
|
@@ -5028,7 +5311,6 @@ var require_acorn = __commonJS({
|
|
|
5028
5311
|
codePos,
|
|
5029
5312
|
"Invalid escape sequence in template string"
|
|
5030
5313
|
);
|
|
5031
|
-
return null;
|
|
5032
5314
|
}
|
|
5033
5315
|
default:
|
|
5034
5316
|
if (ch2 >= 48 && ch2 <= 55) {
|
|
@@ -5099,7 +5381,7 @@ var require_acorn = __commonJS({
|
|
|
5099
5381
|
}
|
|
5100
5382
|
return this.finishToken(type, word);
|
|
5101
5383
|
};
|
|
5102
|
-
var version3 = "8.
|
|
5384
|
+
var version3 = "8.9.0";
|
|
5103
5385
|
Parser5.acorn = {
|
|
5104
5386
|
Parser: Parser5,
|
|
5105
5387
|
version: version3,
|
|
@@ -5152,14 +5434,13 @@ var require_acorn = __commonJS({
|
|
|
5152
5434
|
exports2.tokTypes = types$13;
|
|
5153
5435
|
exports2.tokenizer = tokenizer4;
|
|
5154
5436
|
exports2.version = version3;
|
|
5155
|
-
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
5156
5437
|
});
|
|
5157
5438
|
}
|
|
5158
5439
|
});
|
|
5159
5440
|
|
|
5160
|
-
// ../../../node_modules/.pnpm/acorn-jsx@5.3.2_acorn@8.
|
|
5441
|
+
// ../../../node_modules/.pnpm/acorn-jsx@5.3.2_acorn@8.9.0/node_modules/acorn-jsx/index.js
|
|
5161
5442
|
var require_acorn_jsx = __commonJS({
|
|
5162
|
-
"../../../node_modules/.pnpm/acorn-jsx@5.3.2_acorn@8.
|
|
5443
|
+
"../../../node_modules/.pnpm/acorn-jsx@5.3.2_acorn@8.9.0/node_modules/acorn-jsx/index.js"(exports, module2) {
|
|
5163
5444
|
"use strict";
|
|
5164
5445
|
var XHTMLEntities = require_xhtml();
|
|
5165
5446
|
var hexNumber = /^[\da-fA-F]+$/;
|
|
@@ -14401,10 +14682,10 @@ var remark_stringify_default = remarkStringify;
|
|
|
14401
14682
|
// ../../../node_modules/.pnpm/remark@14.0.2/node_modules/remark/index.js
|
|
14402
14683
|
var remark = unified().use(remark_parse_default).use(remark_stringify_default).freeze();
|
|
14403
14684
|
|
|
14404
|
-
// ../../../node_modules/.pnpm/acorn@8.
|
|
14405
|
-
var astralIdentifierCodes = [509, 0, 227, 0, 150, 4, 294, 9, 1368, 2, 2, 1, 6, 3, 41, 2, 5, 0, 166, 1, 574, 3, 9, 9, 370, 1,
|
|
14406
|
-
var astralIdentifierStartCodes = [0, 11, 2, 25, 2, 18, 2, 1, 2, 14, 3, 13, 35, 122, 70, 52, 268, 28, 4, 48, 48, 31, 14, 29, 6, 37, 11, 29, 3, 35, 5, 7, 2, 4, 43, 157, 19, 35, 5, 35, 5, 39, 9, 51, 13, 10, 2, 14, 2, 6, 2, 1, 2, 10, 2, 14, 2, 6, 2, 1, 68, 310, 10, 21, 11, 7, 25, 5, 2, 41, 2, 8, 70, 5, 3, 0, 2, 43, 2, 1, 4, 0, 3, 22, 11, 22, 10, 30, 66, 18, 2, 1, 11, 21, 11, 25, 71, 55, 7, 1, 65, 0, 16, 3, 2, 2, 2, 28, 43, 28, 4, 28, 36, 7, 2, 27, 28, 53, 11, 21, 11, 18, 14, 17, 111, 72, 56, 50, 14, 50, 14, 35, 349, 41, 7, 1, 79, 28, 11, 0, 9, 21, 43, 17, 47, 20, 28, 22, 13, 52, 58, 1, 3, 0, 14, 44, 33, 24, 27, 35, 30, 0, 3, 0, 9, 34, 4, 0, 13, 47, 15, 3, 22, 0, 2, 0, 36, 17, 2, 24,
|
|
14407
|
-
var nonASCIIidentifierChars = "\u200C\u200D\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\
|
|
14685
|
+
// ../../../node_modules/.pnpm/acorn@8.9.0/node_modules/acorn/dist/acorn.mjs
|
|
14686
|
+
var astralIdentifierCodes = [509, 0, 227, 0, 150, 4, 294, 9, 1368, 2, 2, 1, 6, 3, 41, 2, 5, 0, 166, 1, 574, 3, 9, 9, 370, 1, 81, 2, 71, 10, 50, 3, 123, 2, 54, 14, 32, 10, 3, 1, 11, 3, 46, 10, 8, 0, 46, 9, 7, 2, 37, 13, 2, 9, 6, 1, 45, 0, 13, 2, 49, 13, 9, 3, 2, 11, 83, 11, 7, 0, 3, 0, 158, 11, 6, 9, 7, 3, 56, 1, 2, 6, 3, 1, 3, 2, 10, 0, 11, 1, 3, 6, 4, 4, 193, 17, 10, 9, 5, 0, 82, 19, 13, 9, 214, 6, 3, 8, 28, 1, 83, 16, 16, 9, 82, 12, 9, 9, 84, 14, 5, 9, 243, 14, 166, 9, 71, 5, 2, 1, 3, 3, 2, 0, 2, 1, 13, 9, 120, 6, 3, 6, 4, 0, 29, 9, 41, 6, 2, 3, 9, 0, 10, 10, 47, 15, 406, 7, 2, 7, 17, 9, 57, 21, 2, 13, 123, 5, 4, 0, 2, 1, 2, 6, 2, 0, 9, 9, 49, 4, 2, 1, 2, 4, 9, 9, 330, 3, 10, 1, 2, 0, 49, 6, 4, 4, 14, 9, 5351, 0, 7, 14, 13835, 9, 87, 9, 39, 4, 60, 6, 26, 9, 1014, 0, 2, 54, 8, 3, 82, 0, 12, 1, 19628, 1, 4706, 45, 3, 22, 543, 4, 4, 5, 9, 7, 3, 6, 31, 3, 149, 2, 1418, 49, 513, 54, 5, 49, 9, 0, 15, 0, 23, 4, 2, 14, 1361, 6, 2, 16, 3, 6, 2, 1, 2, 4, 101, 0, 161, 6, 10, 9, 357, 0, 62, 13, 499, 13, 983, 6, 110, 6, 6, 9, 4759, 9, 787719, 239];
|
|
14687
|
+
var astralIdentifierStartCodes = [0, 11, 2, 25, 2, 18, 2, 1, 2, 14, 3, 13, 35, 122, 70, 52, 268, 28, 4, 48, 48, 31, 14, 29, 6, 37, 11, 29, 3, 35, 5, 7, 2, 4, 43, 157, 19, 35, 5, 35, 5, 39, 9, 51, 13, 10, 2, 14, 2, 6, 2, 1, 2, 10, 2, 14, 2, 6, 2, 1, 68, 310, 10, 21, 11, 7, 25, 5, 2, 41, 2, 8, 70, 5, 3, 0, 2, 43, 2, 1, 4, 0, 3, 22, 11, 22, 10, 30, 66, 18, 2, 1, 11, 21, 11, 25, 71, 55, 7, 1, 65, 0, 16, 3, 2, 2, 2, 28, 43, 28, 4, 28, 36, 7, 2, 27, 28, 53, 11, 21, 11, 18, 14, 17, 111, 72, 56, 50, 14, 50, 14, 35, 349, 41, 7, 1, 79, 28, 11, 0, 9, 21, 43, 17, 47, 20, 28, 22, 13, 52, 58, 1, 3, 0, 14, 44, 33, 24, 27, 35, 30, 0, 3, 0, 9, 34, 4, 0, 13, 47, 15, 3, 22, 0, 2, 0, 36, 17, 2, 24, 20, 1, 64, 6, 2, 0, 2, 3, 2, 14, 2, 9, 8, 46, 39, 7, 3, 1, 3, 21, 2, 6, 2, 1, 2, 4, 4, 0, 19, 0, 13, 4, 159, 52, 19, 3, 21, 2, 31, 47, 21, 1, 2, 0, 185, 46, 42, 3, 37, 47, 21, 0, 60, 42, 14, 0, 72, 26, 38, 6, 186, 43, 117, 63, 32, 7, 3, 0, 3, 7, 2, 1, 2, 23, 16, 0, 2, 0, 95, 7, 3, 38, 17, 0, 2, 0, 29, 0, 11, 39, 8, 0, 22, 0, 12, 45, 20, 0, 19, 72, 264, 8, 2, 36, 18, 0, 50, 29, 113, 6, 2, 1, 2, 37, 22, 0, 26, 5, 2, 1, 2, 31, 15, 0, 328, 18, 16, 0, 2, 12, 2, 33, 125, 0, 80, 921, 103, 110, 18, 195, 2637, 96, 16, 1071, 18, 5, 4026, 582, 8634, 568, 8, 30, 18, 78, 18, 29, 19, 47, 17, 3, 32, 20, 6, 18, 689, 63, 129, 74, 6, 0, 67, 12, 65, 1, 2, 0, 29, 6135, 9, 1237, 43, 8, 8936, 3, 2, 6, 2, 1, 2, 290, 16, 0, 30, 2, 3, 0, 15, 3, 9, 395, 2309, 106, 6, 12, 4, 8, 8, 9, 5991, 84, 2, 70, 2, 1, 3, 0, 3, 1, 3, 3, 2, 11, 2, 0, 2, 6, 2, 64, 2, 3, 3, 7, 2, 6, 2, 27, 2, 3, 2, 4, 2, 0, 4, 6, 2, 339, 3, 24, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 7, 1845, 30, 7, 5, 262, 61, 147, 44, 11, 6, 17, 0, 322, 29, 19, 43, 485, 27, 757, 6, 2, 3, 2, 1, 2, 14, 2, 196, 60, 67, 8, 0, 1205, 3, 2, 26, 2, 1, 2, 0, 3, 0, 2, 9, 2, 3, 2, 0, 2, 0, 7, 0, 5, 0, 2, 0, 2, 0, 2, 2, 2, 1, 2, 0, 3, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 1, 2, 0, 3, 3, 2, 6, 2, 3, 2, 3, 2, 0, 2, 9, 2, 16, 6, 2, 2, 4, 2, 16, 4421, 42719, 33, 4153, 7, 221, 3, 5761, 15, 7472, 3104, 541, 1507, 4938, 6, 4191];
|
|
14688
|
+
var nonASCIIidentifierChars = "\u200C\u200D\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ACE\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F";
|
|
14408
14689
|
var nonASCIIidentifierStartChars = "\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC";
|
|
14409
14690
|
var reservedWords = {
|
|
14410
14691
|
3: "abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",
|
|
@@ -14434,6 +14715,7 @@ function isInAstralSet(code3, set) {
|
|
|
14434
14715
|
return true;
|
|
14435
14716
|
}
|
|
14436
14717
|
}
|
|
14718
|
+
return false;
|
|
14437
14719
|
}
|
|
14438
14720
|
function isIdentifierStart(code3, astral) {
|
|
14439
14721
|
if (code3 < 65) {
|
|
@@ -14690,7 +14972,7 @@ function getOptions(opts) {
|
|
|
14690
14972
|
if (options.allowReserved == null) {
|
|
14691
14973
|
options.allowReserved = options.ecmaVersion < 5;
|
|
14692
14974
|
}
|
|
14693
|
-
if (opts.allowHashBang == null) {
|
|
14975
|
+
if (!opts || opts.allowHashBang == null) {
|
|
14694
14976
|
options.allowHashBang = options.ecmaVersion >= 14;
|
|
14695
14977
|
}
|
|
14696
14978
|
if (isArray(options.onToken)) {
|
|
@@ -15016,13 +15298,13 @@ pp$8.isLet = function(context) {
|
|
|
15016
15298
|
skipWhiteSpace.lastIndex = this.pos;
|
|
15017
15299
|
var skip = skipWhiteSpace.exec(this.input);
|
|
15018
15300
|
var next = this.pos + skip[0].length, nextCh = this.input.charCodeAt(next);
|
|
15019
|
-
if (nextCh === 91 || nextCh === 92
|
|
15301
|
+
if (nextCh === 91 || nextCh === 92) {
|
|
15020
15302
|
return true;
|
|
15021
15303
|
}
|
|
15022
15304
|
if (context) {
|
|
15023
15305
|
return false;
|
|
15024
15306
|
}
|
|
15025
|
-
if (nextCh === 123) {
|
|
15307
|
+
if (nextCh === 123 || nextCh > 55295 && nextCh < 56320) {
|
|
15026
15308
|
return true;
|
|
15027
15309
|
}
|
|
15028
15310
|
if (isIdentifierStart(nextCh, true)) {
|
|
@@ -15320,6 +15602,14 @@ pp$8.parseThrowStatement = function(node) {
|
|
|
15320
15602
|
return this.finishNode(node, "ThrowStatement");
|
|
15321
15603
|
};
|
|
15322
15604
|
var empty$1 = [];
|
|
15605
|
+
pp$8.parseCatchClauseParam = function() {
|
|
15606
|
+
var param = this.parseBindingAtom();
|
|
15607
|
+
var simple = param.type === "Identifier";
|
|
15608
|
+
this.enterScope(simple ? SCOPE_SIMPLE_CATCH : 0);
|
|
15609
|
+
this.checkLValPattern(param, simple ? BIND_SIMPLE_CATCH : BIND_LEXICAL);
|
|
15610
|
+
this.expect(types$1.parenR);
|
|
15611
|
+
return param;
|
|
15612
|
+
};
|
|
15323
15613
|
pp$8.parseTryStatement = function(node) {
|
|
15324
15614
|
this.next();
|
|
15325
15615
|
node.block = this.parseBlock();
|
|
@@ -15328,11 +15618,7 @@ pp$8.parseTryStatement = function(node) {
|
|
|
15328
15618
|
var clause = this.startNode();
|
|
15329
15619
|
this.next();
|
|
15330
15620
|
if (this.eat(types$1.parenL)) {
|
|
15331
|
-
clause.param = this.
|
|
15332
|
-
var simple = clause.param.type === "Identifier";
|
|
15333
|
-
this.enterScope(simple ? SCOPE_SIMPLE_CATCH : 0);
|
|
15334
|
-
this.checkLValPattern(clause.param, simple ? BIND_SIMPLE_CATCH : BIND_LEXICAL);
|
|
15335
|
-
this.expect(types$1.parenR);
|
|
15621
|
+
clause.param = this.parseCatchClauseParam();
|
|
15336
15622
|
} else {
|
|
15337
15623
|
if (this.options.ecmaVersion < 10) {
|
|
15338
15624
|
this.unexpected();
|
|
@@ -15350,9 +15636,9 @@ pp$8.parseTryStatement = function(node) {
|
|
|
15350
15636
|
}
|
|
15351
15637
|
return this.finishNode(node, "TryStatement");
|
|
15352
15638
|
};
|
|
15353
|
-
pp$8.parseVarStatement = function(node, kind) {
|
|
15639
|
+
pp$8.parseVarStatement = function(node, kind, allowMissingInitializer) {
|
|
15354
15640
|
this.next();
|
|
15355
|
-
this.parseVar(node, false, kind);
|
|
15641
|
+
this.parseVar(node, false, kind, allowMissingInitializer);
|
|
15356
15642
|
this.semicolon();
|
|
15357
15643
|
return this.finishNode(node, "VariableDeclaration");
|
|
15358
15644
|
};
|
|
@@ -15457,7 +15743,7 @@ pp$8.parseForIn = function(node, init2) {
|
|
|
15457
15743
|
this.labels.pop();
|
|
15458
15744
|
return this.finishNode(node, isForIn ? "ForInStatement" : "ForOfStatement");
|
|
15459
15745
|
};
|
|
15460
|
-
pp$8.parseVar = function(node, isFor, kind) {
|
|
15746
|
+
pp$8.parseVar = function(node, isFor, kind, allowMissingInitializer) {
|
|
15461
15747
|
node.declarations = [];
|
|
15462
15748
|
node.kind = kind;
|
|
15463
15749
|
for (; ; ) {
|
|
@@ -15465,9 +15751,9 @@ pp$8.parseVar = function(node, isFor, kind) {
|
|
|
15465
15751
|
this.parseVarId(decl, kind);
|
|
15466
15752
|
if (this.eat(types$1.eq)) {
|
|
15467
15753
|
decl.init = this.parseMaybeAssign(isFor);
|
|
15468
|
-
} else if (kind === "const" && !(this.type === types$1._in || this.options.ecmaVersion >= 6 && this.isContextual("of"))) {
|
|
15754
|
+
} else if (!allowMissingInitializer && kind === "const" && !(this.type === types$1._in || this.options.ecmaVersion >= 6 && this.isContextual("of"))) {
|
|
15469
15755
|
this.unexpected();
|
|
15470
|
-
} else if (decl.id.type !== "Identifier" && !(isFor && (this.type === types$1._in || this.isContextual("of")))) {
|
|
15756
|
+
} else if (!allowMissingInitializer && decl.id.type !== "Identifier" && !(isFor && (this.type === types$1._in || this.isContextual("of")))) {
|
|
15471
15757
|
this.raise(this.lastTokEnd, "Complex binding patterns require an initialization value");
|
|
15472
15758
|
} else {
|
|
15473
15759
|
decl.init = null;
|
|
@@ -15540,7 +15826,7 @@ pp$8.parseClass = function(node, isStatement) {
|
|
|
15540
15826
|
classBody.body.push(element);
|
|
15541
15827
|
if (element.type === "MethodDefinition" && element.kind === "constructor") {
|
|
15542
15828
|
if (hadConstructor) {
|
|
15543
|
-
this.
|
|
15829
|
+
this.raiseRecoverable(element.start, "Duplicate constructor in the same class");
|
|
15544
15830
|
}
|
|
15545
15831
|
hadConstructor = true;
|
|
15546
15832
|
} else if (element.key && element.key.type === "PrivateIdentifier" && isPrivateNameConflicted(privateNameMap, element)) {
|
|
@@ -15702,7 +15988,7 @@ pp$8.parseClassId = function(node, isStatement) {
|
|
|
15702
15988
|
}
|
|
15703
15989
|
};
|
|
15704
15990
|
pp$8.parseClassSuper = function(node) {
|
|
15705
|
-
node.superClass = this.eat(types$1._extends) ? this.parseExprSubscripts(false) : null;
|
|
15991
|
+
node.superClass = this.eat(types$1._extends) ? this.parseExprSubscripts(null, false) : null;
|
|
15706
15992
|
};
|
|
15707
15993
|
pp$8.enterClassBody = function() {
|
|
15708
15994
|
var element = { declared: /* @__PURE__ */ Object.create(null), used: [] };
|
|
@@ -15748,46 +16034,35 @@ function checkKeyName(node, name2) {
|
|
|
15748
16034
|
var key = node.key;
|
|
15749
16035
|
return !computed && (key.type === "Identifier" && key.name === name2 || key.type === "Literal" && key.value === name2);
|
|
15750
16036
|
}
|
|
16037
|
+
pp$8.parseExportAllDeclaration = function(node, exports) {
|
|
16038
|
+
if (this.options.ecmaVersion >= 11) {
|
|
16039
|
+
if (this.eatContextual("as")) {
|
|
16040
|
+
node.exported = this.parseModuleExportName();
|
|
16041
|
+
this.checkExport(exports, node.exported, this.lastTokStart);
|
|
16042
|
+
} else {
|
|
16043
|
+
node.exported = null;
|
|
16044
|
+
}
|
|
16045
|
+
}
|
|
16046
|
+
this.expectContextual("from");
|
|
16047
|
+
if (this.type !== types$1.string) {
|
|
16048
|
+
this.unexpected();
|
|
16049
|
+
}
|
|
16050
|
+
node.source = this.parseExprAtom();
|
|
16051
|
+
this.semicolon();
|
|
16052
|
+
return this.finishNode(node, "ExportAllDeclaration");
|
|
16053
|
+
};
|
|
15751
16054
|
pp$8.parseExport = function(node, exports) {
|
|
15752
16055
|
this.next();
|
|
15753
16056
|
if (this.eat(types$1.star)) {
|
|
15754
|
-
|
|
15755
|
-
if (this.eatContextual("as")) {
|
|
15756
|
-
node.exported = this.parseModuleExportName();
|
|
15757
|
-
this.checkExport(exports, node.exported, this.lastTokStart);
|
|
15758
|
-
} else {
|
|
15759
|
-
node.exported = null;
|
|
15760
|
-
}
|
|
15761
|
-
}
|
|
15762
|
-
this.expectContextual("from");
|
|
15763
|
-
if (this.type !== types$1.string) {
|
|
15764
|
-
this.unexpected();
|
|
15765
|
-
}
|
|
15766
|
-
node.source = this.parseExprAtom();
|
|
15767
|
-
this.semicolon();
|
|
15768
|
-
return this.finishNode(node, "ExportAllDeclaration");
|
|
16057
|
+
return this.parseExportAllDeclaration(node, exports);
|
|
15769
16058
|
}
|
|
15770
16059
|
if (this.eat(types$1._default)) {
|
|
15771
16060
|
this.checkExport(exports, "default", this.lastTokStart);
|
|
15772
|
-
|
|
15773
|
-
if (this.type === types$1._function || (isAsync = this.isAsyncFunction())) {
|
|
15774
|
-
var fNode = this.startNode();
|
|
15775
|
-
this.next();
|
|
15776
|
-
if (isAsync) {
|
|
15777
|
-
this.next();
|
|
15778
|
-
}
|
|
15779
|
-
node.declaration = this.parseFunction(fNode, FUNC_STATEMENT | FUNC_NULLABLE_ID, false, isAsync);
|
|
15780
|
-
} else if (this.type === types$1._class) {
|
|
15781
|
-
var cNode = this.startNode();
|
|
15782
|
-
node.declaration = this.parseClass(cNode, "nullableID");
|
|
15783
|
-
} else {
|
|
15784
|
-
node.declaration = this.parseMaybeAssign();
|
|
15785
|
-
this.semicolon();
|
|
15786
|
-
}
|
|
16061
|
+
node.declaration = this.parseExportDefaultDeclaration();
|
|
15787
16062
|
return this.finishNode(node, "ExportDefaultDeclaration");
|
|
15788
16063
|
}
|
|
15789
16064
|
if (this.shouldParseExportStatement()) {
|
|
15790
|
-
node.declaration = this.
|
|
16065
|
+
node.declaration = this.parseExportDeclaration(node);
|
|
15791
16066
|
if (node.declaration.type === "VariableDeclaration") {
|
|
15792
16067
|
this.checkVariableExport(exports, node.declaration.declarations);
|
|
15793
16068
|
} else {
|
|
@@ -15818,6 +16093,27 @@ pp$8.parseExport = function(node, exports) {
|
|
|
15818
16093
|
}
|
|
15819
16094
|
return this.finishNode(node, "ExportNamedDeclaration");
|
|
15820
16095
|
};
|
|
16096
|
+
pp$8.parseExportDeclaration = function(node) {
|
|
16097
|
+
return this.parseStatement(null);
|
|
16098
|
+
};
|
|
16099
|
+
pp$8.parseExportDefaultDeclaration = function() {
|
|
16100
|
+
var isAsync;
|
|
16101
|
+
if (this.type === types$1._function || (isAsync = this.isAsyncFunction())) {
|
|
16102
|
+
var fNode = this.startNode();
|
|
16103
|
+
this.next();
|
|
16104
|
+
if (isAsync) {
|
|
16105
|
+
this.next();
|
|
16106
|
+
}
|
|
16107
|
+
return this.parseFunction(fNode, FUNC_STATEMENT | FUNC_NULLABLE_ID, false, isAsync);
|
|
16108
|
+
} else if (this.type === types$1._class) {
|
|
16109
|
+
var cNode = this.startNode();
|
|
16110
|
+
return this.parseClass(cNode, "nullableID");
|
|
16111
|
+
} else {
|
|
16112
|
+
var declaration = this.parseMaybeAssign();
|
|
16113
|
+
this.semicolon();
|
|
16114
|
+
return declaration;
|
|
16115
|
+
}
|
|
16116
|
+
};
|
|
15821
16117
|
pp$8.checkExport = function(exports, name2, pos) {
|
|
15822
16118
|
if (!exports) {
|
|
15823
16119
|
return;
|
|
@@ -15868,6 +16164,17 @@ pp$8.checkVariableExport = function(exports, decls) {
|
|
|
15868
16164
|
pp$8.shouldParseExportStatement = function() {
|
|
15869
16165
|
return this.type.keyword === "var" || this.type.keyword === "const" || this.type.keyword === "class" || this.type.keyword === "function" || this.isLet() || this.isAsyncFunction();
|
|
15870
16166
|
};
|
|
16167
|
+
pp$8.parseExportSpecifier = function(exports) {
|
|
16168
|
+
var node = this.startNode();
|
|
16169
|
+
node.local = this.parseModuleExportName();
|
|
16170
|
+
node.exported = this.eatContextual("as") ? this.parseModuleExportName() : node.local;
|
|
16171
|
+
this.checkExport(
|
|
16172
|
+
exports,
|
|
16173
|
+
node.exported,
|
|
16174
|
+
node.exported.start
|
|
16175
|
+
);
|
|
16176
|
+
return this.finishNode(node, "ExportSpecifier");
|
|
16177
|
+
};
|
|
15871
16178
|
pp$8.parseExportSpecifiers = function(exports) {
|
|
15872
16179
|
var nodes = [], first = true;
|
|
15873
16180
|
this.expect(types$1.braceL);
|
|
@@ -15880,15 +16187,7 @@ pp$8.parseExportSpecifiers = function(exports) {
|
|
|
15880
16187
|
} else {
|
|
15881
16188
|
first = false;
|
|
15882
16189
|
}
|
|
15883
|
-
|
|
15884
|
-
node.local = this.parseModuleExportName();
|
|
15885
|
-
node.exported = this.eatContextual("as") ? this.parseModuleExportName() : node.local;
|
|
15886
|
-
this.checkExport(
|
|
15887
|
-
exports,
|
|
15888
|
-
node.exported,
|
|
15889
|
-
node.exported.start
|
|
15890
|
-
);
|
|
15891
|
-
nodes.push(this.finishNode(node, "ExportSpecifier"));
|
|
16190
|
+
nodes.push(this.parseExportSpecifier(exports));
|
|
15892
16191
|
}
|
|
15893
16192
|
return nodes;
|
|
15894
16193
|
};
|
|
@@ -15905,24 +16204,42 @@ pp$8.parseImport = function(node) {
|
|
|
15905
16204
|
this.semicolon();
|
|
15906
16205
|
return this.finishNode(node, "ImportDeclaration");
|
|
15907
16206
|
};
|
|
16207
|
+
pp$8.parseImportSpecifier = function() {
|
|
16208
|
+
var node = this.startNode();
|
|
16209
|
+
node.imported = this.parseModuleExportName();
|
|
16210
|
+
if (this.eatContextual("as")) {
|
|
16211
|
+
node.local = this.parseIdent();
|
|
16212
|
+
} else {
|
|
16213
|
+
this.checkUnreserved(node.imported);
|
|
16214
|
+
node.local = node.imported;
|
|
16215
|
+
}
|
|
16216
|
+
this.checkLValSimple(node.local, BIND_LEXICAL);
|
|
16217
|
+
return this.finishNode(node, "ImportSpecifier");
|
|
16218
|
+
};
|
|
16219
|
+
pp$8.parseImportDefaultSpecifier = function() {
|
|
16220
|
+
var node = this.startNode();
|
|
16221
|
+
node.local = this.parseIdent();
|
|
16222
|
+
this.checkLValSimple(node.local, BIND_LEXICAL);
|
|
16223
|
+
return this.finishNode(node, "ImportDefaultSpecifier");
|
|
16224
|
+
};
|
|
16225
|
+
pp$8.parseImportNamespaceSpecifier = function() {
|
|
16226
|
+
var node = this.startNode();
|
|
16227
|
+
this.next();
|
|
16228
|
+
this.expectContextual("as");
|
|
16229
|
+
node.local = this.parseIdent();
|
|
16230
|
+
this.checkLValSimple(node.local, BIND_LEXICAL);
|
|
16231
|
+
return this.finishNode(node, "ImportNamespaceSpecifier");
|
|
16232
|
+
};
|
|
15908
16233
|
pp$8.parseImportSpecifiers = function() {
|
|
15909
16234
|
var nodes = [], first = true;
|
|
15910
16235
|
if (this.type === types$1.name) {
|
|
15911
|
-
|
|
15912
|
-
node.local = this.parseIdent();
|
|
15913
|
-
this.checkLValSimple(node.local, BIND_LEXICAL);
|
|
15914
|
-
nodes.push(this.finishNode(node, "ImportDefaultSpecifier"));
|
|
16236
|
+
nodes.push(this.parseImportDefaultSpecifier());
|
|
15915
16237
|
if (!this.eat(types$1.comma)) {
|
|
15916
16238
|
return nodes;
|
|
15917
16239
|
}
|
|
15918
16240
|
}
|
|
15919
16241
|
if (this.type === types$1.star) {
|
|
15920
|
-
|
|
15921
|
-
this.next();
|
|
15922
|
-
this.expectContextual("as");
|
|
15923
|
-
node$1.local = this.parseIdent();
|
|
15924
|
-
this.checkLValSimple(node$1.local, BIND_LEXICAL);
|
|
15925
|
-
nodes.push(this.finishNode(node$1, "ImportNamespaceSpecifier"));
|
|
16242
|
+
nodes.push(this.parseImportNamespaceSpecifier());
|
|
15926
16243
|
return nodes;
|
|
15927
16244
|
}
|
|
15928
16245
|
this.expect(types$1.braceL);
|
|
@@ -15935,16 +16252,7 @@ pp$8.parseImportSpecifiers = function() {
|
|
|
15935
16252
|
} else {
|
|
15936
16253
|
first = false;
|
|
15937
16254
|
}
|
|
15938
|
-
|
|
15939
|
-
node$2.imported = this.parseModuleExportName();
|
|
15940
|
-
if (this.eatContextual("as")) {
|
|
15941
|
-
node$2.local = this.parseIdent();
|
|
15942
|
-
} else {
|
|
15943
|
-
this.checkUnreserved(node$2.imported);
|
|
15944
|
-
node$2.local = node$2.imported;
|
|
15945
|
-
}
|
|
15946
|
-
this.checkLValSimple(node$2.local, BIND_LEXICAL);
|
|
15947
|
-
nodes.push(this.finishNode(node$2, "ImportSpecifier"));
|
|
16255
|
+
nodes.push(this.parseImportSpecifier());
|
|
15948
16256
|
}
|
|
15949
16257
|
return nodes;
|
|
15950
16258
|
};
|
|
@@ -16084,7 +16392,7 @@ pp$7.parseBindingAtom = function() {
|
|
|
16084
16392
|
}
|
|
16085
16393
|
return this.parseIdent();
|
|
16086
16394
|
};
|
|
16087
|
-
pp$7.parseBindingList = function(close, allowEmpty, allowTrailingComma) {
|
|
16395
|
+
pp$7.parseBindingList = function(close, allowEmpty, allowTrailingComma, allowModifiers) {
|
|
16088
16396
|
var elts = [], first = true;
|
|
16089
16397
|
while (!this.eat(close)) {
|
|
16090
16398
|
if (first) {
|
|
@@ -16101,18 +16409,21 @@ pp$7.parseBindingList = function(close, allowEmpty, allowTrailingComma) {
|
|
|
16101
16409
|
this.parseBindingListItem(rest);
|
|
16102
16410
|
elts.push(rest);
|
|
16103
16411
|
if (this.type === types$1.comma) {
|
|
16104
|
-
this.
|
|
16412
|
+
this.raiseRecoverable(this.start, "Comma is not permitted after the rest element");
|
|
16105
16413
|
}
|
|
16106
16414
|
this.expect(close);
|
|
16107
16415
|
break;
|
|
16108
16416
|
} else {
|
|
16109
|
-
|
|
16110
|
-
this.parseBindingListItem(elem);
|
|
16111
|
-
elts.push(elem);
|
|
16417
|
+
elts.push(this.parseAssignableListItem(allowModifiers));
|
|
16112
16418
|
}
|
|
16113
16419
|
}
|
|
16114
16420
|
return elts;
|
|
16115
16421
|
};
|
|
16422
|
+
pp$7.parseAssignableListItem = function(allowModifiers) {
|
|
16423
|
+
var elem = this.parseMaybeDefault(this.start, this.startLoc);
|
|
16424
|
+
this.parseBindingListItem(elem);
|
|
16425
|
+
return elem;
|
|
16426
|
+
};
|
|
16116
16427
|
pp$7.parseBindingListItem = function(param) {
|
|
16117
16428
|
return param;
|
|
16118
16429
|
};
|
|
@@ -16629,6 +16940,12 @@ pp$5.parseSubscripts = function(base2, startPos, startLoc, noCalls, forInit) {
|
|
|
16629
16940
|
base2 = element;
|
|
16630
16941
|
}
|
|
16631
16942
|
};
|
|
16943
|
+
pp$5.shouldParseAsyncArrow = function() {
|
|
16944
|
+
return !this.canInsertSemicolon() && this.eat(types$1.arrow);
|
|
16945
|
+
};
|
|
16946
|
+
pp$5.parseSubscriptAsyncArrow = function(startPos, startLoc, exprList, forInit) {
|
|
16947
|
+
return this.parseArrowExpression(this.startNodeAt(startPos, startLoc), exprList, true, forInit);
|
|
16948
|
+
};
|
|
16632
16949
|
pp$5.parseSubscript = function(base2, startPos, startLoc, noCalls, maybeAsyncArrow, optionalChained, forInit) {
|
|
16633
16950
|
var optionalSupported = this.options.ecmaVersion >= 11;
|
|
16634
16951
|
var optional = optionalSupported && this.eat(types$1.questionDot);
|
|
@@ -16658,7 +16975,7 @@ pp$5.parseSubscript = function(base2, startPos, startLoc, noCalls, maybeAsyncArr
|
|
|
16658
16975
|
this.awaitPos = 0;
|
|
16659
16976
|
this.awaitIdentPos = 0;
|
|
16660
16977
|
var exprList = this.parseExprList(types$1.parenR, this.options.ecmaVersion >= 8, false, refDestructuringErrors);
|
|
16661
|
-
if (maybeAsyncArrow && !optional &&
|
|
16978
|
+
if (maybeAsyncArrow && !optional && this.shouldParseAsyncArrow()) {
|
|
16662
16979
|
this.checkPatternErrors(refDestructuringErrors, false);
|
|
16663
16980
|
this.checkYieldAwaitInDefaultParams();
|
|
16664
16981
|
if (this.awaitIdentPos > 0) {
|
|
@@ -16667,7 +16984,7 @@ pp$5.parseSubscript = function(base2, startPos, startLoc, noCalls, maybeAsyncArr
|
|
|
16667
16984
|
this.yieldPos = oldYieldPos;
|
|
16668
16985
|
this.awaitPos = oldAwaitPos;
|
|
16669
16986
|
this.awaitIdentPos = oldAwaitIdentPos;
|
|
16670
|
-
return this.
|
|
16987
|
+
return this.parseSubscriptAsyncArrow(startPos, startLoc, exprList, forInit);
|
|
16671
16988
|
}
|
|
16672
16989
|
this.checkExpressionErrors(refDestructuringErrors, true);
|
|
16673
16990
|
this.yieldPos = oldYieldPos || this.yieldPos;
|
|
@@ -16691,7 +17008,7 @@ pp$5.parseSubscript = function(base2, startPos, startLoc, noCalls, maybeAsyncArr
|
|
|
16691
17008
|
}
|
|
16692
17009
|
return base2;
|
|
16693
17010
|
};
|
|
16694
|
-
pp$5.parseExprAtom = function(refDestructuringErrors, forInit) {
|
|
17011
|
+
pp$5.parseExprAtom = function(refDestructuringErrors, forInit, forNew) {
|
|
16695
17012
|
if (this.type === types$1.slash) {
|
|
16696
17013
|
this.readRegexp();
|
|
16697
17014
|
}
|
|
@@ -16781,28 +17098,30 @@ pp$5.parseExprAtom = function(refDestructuringErrors, forInit) {
|
|
|
16781
17098
|
return this.parseTemplate();
|
|
16782
17099
|
case types$1._import:
|
|
16783
17100
|
if (this.options.ecmaVersion >= 11) {
|
|
16784
|
-
return this.parseExprImport();
|
|
17101
|
+
return this.parseExprImport(forNew);
|
|
16785
17102
|
} else {
|
|
16786
17103
|
return this.unexpected();
|
|
16787
17104
|
}
|
|
16788
17105
|
default:
|
|
16789
|
-
this.
|
|
17106
|
+
return this.parseExprAtomDefault();
|
|
16790
17107
|
}
|
|
16791
17108
|
};
|
|
16792
|
-
pp$5.
|
|
17109
|
+
pp$5.parseExprAtomDefault = function() {
|
|
17110
|
+
this.unexpected();
|
|
17111
|
+
};
|
|
17112
|
+
pp$5.parseExprImport = function(forNew) {
|
|
16793
17113
|
var node = this.startNode();
|
|
16794
17114
|
if (this.containsEsc) {
|
|
16795
17115
|
this.raiseRecoverable(this.start, "Escape sequence in keyword import");
|
|
16796
17116
|
}
|
|
16797
17117
|
var meta = this.parseIdent(true);
|
|
16798
|
-
|
|
16799
|
-
|
|
16800
|
-
|
|
16801
|
-
|
|
16802
|
-
|
|
16803
|
-
|
|
16804
|
-
|
|
16805
|
-
this.unexpected();
|
|
17118
|
+
if (this.type === types$1.parenL && !forNew) {
|
|
17119
|
+
return this.parseDynamicImport(node);
|
|
17120
|
+
} else if (this.type === types$1.dot) {
|
|
17121
|
+
node.meta = meta;
|
|
17122
|
+
return this.parseImportMeta(node);
|
|
17123
|
+
} else {
|
|
17124
|
+
this.unexpected();
|
|
16806
17125
|
}
|
|
16807
17126
|
};
|
|
16808
17127
|
pp$5.parseDynamicImport = function(node) {
|
|
@@ -16849,6 +17168,9 @@ pp$5.parseParenExpression = function() {
|
|
|
16849
17168
|
this.expect(types$1.parenR);
|
|
16850
17169
|
return val;
|
|
16851
17170
|
};
|
|
17171
|
+
pp$5.shouldParseArrow = function(exprList) {
|
|
17172
|
+
return !this.canInsertSemicolon();
|
|
17173
|
+
};
|
|
16852
17174
|
pp$5.parseParenAndDistinguishExpression = function(canBeArrow, forInit) {
|
|
16853
17175
|
var startPos = this.start, startLoc = this.startLoc, val, allowTrailingComma = this.options.ecmaVersion >= 8;
|
|
16854
17176
|
if (this.options.ecmaVersion >= 6) {
|
|
@@ -16867,7 +17189,10 @@ pp$5.parseParenAndDistinguishExpression = function(canBeArrow, forInit) {
|
|
|
16867
17189
|
spreadStart = this.start;
|
|
16868
17190
|
exprList.push(this.parseParenItem(this.parseRestBinding()));
|
|
16869
17191
|
if (this.type === types$1.comma) {
|
|
16870
|
-
this.
|
|
17192
|
+
this.raiseRecoverable(
|
|
17193
|
+
this.start,
|
|
17194
|
+
"Comma is not permitted after the rest element"
|
|
17195
|
+
);
|
|
16871
17196
|
}
|
|
16872
17197
|
break;
|
|
16873
17198
|
} else {
|
|
@@ -16876,7 +17201,7 @@ pp$5.parseParenAndDistinguishExpression = function(canBeArrow, forInit) {
|
|
|
16876
17201
|
}
|
|
16877
17202
|
var innerEndPos = this.lastTokEnd, innerEndLoc = this.lastTokEndLoc;
|
|
16878
17203
|
this.expect(types$1.parenR);
|
|
16879
|
-
if (canBeArrow &&
|
|
17204
|
+
if (canBeArrow && this.shouldParseArrow(exprList) && this.eat(types$1.arrow)) {
|
|
16880
17205
|
this.checkPatternErrors(refDestructuringErrors, false);
|
|
16881
17206
|
this.checkYieldAwaitInDefaultParams();
|
|
16882
17207
|
this.yieldPos = oldYieldPos;
|
|
@@ -16938,11 +17263,8 @@ pp$5.parseNew = function() {
|
|
|
16938
17263
|
}
|
|
16939
17264
|
return this.finishNode(node, "MetaProperty");
|
|
16940
17265
|
}
|
|
16941
|
-
var startPos = this.start, startLoc = this.startLoc
|
|
16942
|
-
node.callee = this.parseSubscripts(this.parseExprAtom(), startPos, startLoc, true, false);
|
|
16943
|
-
if (isImport && node.callee.type === "ImportExpression") {
|
|
16944
|
-
this.raise(startPos, "Cannot use new with import()");
|
|
16945
|
-
}
|
|
17266
|
+
var startPos = this.start, startLoc = this.startLoc;
|
|
17267
|
+
node.callee = this.parseSubscripts(this.parseExprAtom(null, false, true), startPos, startLoc, true, false);
|
|
16946
17268
|
if (this.eat(types$1.parenL)) {
|
|
16947
17269
|
node.arguments = this.parseExprList(types$1.parenR, this.options.ecmaVersion >= 8, false);
|
|
16948
17270
|
} else {
|
|
@@ -17024,7 +17346,7 @@ pp$5.parseProperty = function(isPattern, refDestructuringErrors) {
|
|
|
17024
17346
|
if (isPattern) {
|
|
17025
17347
|
prop.argument = this.parseIdent(false);
|
|
17026
17348
|
if (this.type === types$1.comma) {
|
|
17027
|
-
this.
|
|
17349
|
+
this.raiseRecoverable(this.start, "Comma is not permitted after the rest element");
|
|
17028
17350
|
}
|
|
17029
17351
|
return this.finishNode(prop, "RestElement");
|
|
17030
17352
|
}
|
|
@@ -17050,13 +17372,31 @@ pp$5.parseProperty = function(isPattern, refDestructuringErrors) {
|
|
|
17050
17372
|
if (!isPattern && !containsEsc && this.options.ecmaVersion >= 8 && !isGenerator && this.isAsyncProp(prop)) {
|
|
17051
17373
|
isAsync = true;
|
|
17052
17374
|
isGenerator = this.options.ecmaVersion >= 9 && this.eat(types$1.star);
|
|
17053
|
-
this.parsePropertyName(prop
|
|
17375
|
+
this.parsePropertyName(prop);
|
|
17054
17376
|
} else {
|
|
17055
17377
|
isAsync = false;
|
|
17056
17378
|
}
|
|
17057
17379
|
this.parsePropertyValue(prop, isPattern, isGenerator, isAsync, startPos, startLoc, refDestructuringErrors, containsEsc);
|
|
17058
17380
|
return this.finishNode(prop, "Property");
|
|
17059
17381
|
};
|
|
17382
|
+
pp$5.parseGetterSetter = function(prop) {
|
|
17383
|
+
prop.kind = prop.key.name;
|
|
17384
|
+
this.parsePropertyName(prop);
|
|
17385
|
+
prop.value = this.parseMethod(false);
|
|
17386
|
+
var paramCount = prop.kind === "get" ? 0 : 1;
|
|
17387
|
+
if (prop.value.params.length !== paramCount) {
|
|
17388
|
+
var start3 = prop.value.start;
|
|
17389
|
+
if (prop.kind === "get") {
|
|
17390
|
+
this.raiseRecoverable(start3, "getter should have no params");
|
|
17391
|
+
} else {
|
|
17392
|
+
this.raiseRecoverable(start3, "setter should have exactly one param");
|
|
17393
|
+
}
|
|
17394
|
+
} else {
|
|
17395
|
+
if (prop.kind === "set" && prop.value.params[0].type === "RestElement") {
|
|
17396
|
+
this.raiseRecoverable(prop.value.params[0].start, "Setter cannot use rest params");
|
|
17397
|
+
}
|
|
17398
|
+
}
|
|
17399
|
+
};
|
|
17060
17400
|
pp$5.parsePropertyValue = function(prop, isPattern, isGenerator, isAsync, startPos, startLoc, refDestructuringErrors, containsEsc) {
|
|
17061
17401
|
if ((isGenerator || isAsync) && this.type === types$1.colon) {
|
|
17062
17402
|
this.unexpected();
|
|
@@ -17075,22 +17415,7 @@ pp$5.parsePropertyValue = function(prop, isPattern, isGenerator, isAsync, startP
|
|
|
17075
17415
|
if (isGenerator || isAsync) {
|
|
17076
17416
|
this.unexpected();
|
|
17077
17417
|
}
|
|
17078
|
-
|
|
17079
|
-
this.parsePropertyName(prop);
|
|
17080
|
-
prop.value = this.parseMethod(false);
|
|
17081
|
-
var paramCount = prop.kind === "get" ? 0 : 1;
|
|
17082
|
-
if (prop.value.params.length !== paramCount) {
|
|
17083
|
-
var start3 = prop.value.start;
|
|
17084
|
-
if (prop.kind === "get") {
|
|
17085
|
-
this.raiseRecoverable(start3, "getter should have no params");
|
|
17086
|
-
} else {
|
|
17087
|
-
this.raiseRecoverable(start3, "setter should have exactly one param");
|
|
17088
|
-
}
|
|
17089
|
-
} else {
|
|
17090
|
-
if (prop.kind === "set" && prop.value.params[0].type === "RestElement") {
|
|
17091
|
-
this.raiseRecoverable(prop.value.params[0].start, "Setter cannot use rest params");
|
|
17092
|
-
}
|
|
17093
|
-
}
|
|
17418
|
+
this.parseGetterSetter(prop);
|
|
17094
17419
|
} else if (this.options.ecmaVersion >= 6 && !prop.computed && prop.key.type === "Identifier") {
|
|
17095
17420
|
if (isGenerator || isAsync) {
|
|
17096
17421
|
this.unexpected();
|
|
@@ -17279,7 +17604,19 @@ pp$5.checkUnreserved = function(ref3) {
|
|
|
17279
17604
|
this.raiseRecoverable(start3, "The keyword '" + name2 + "' is reserved");
|
|
17280
17605
|
}
|
|
17281
17606
|
};
|
|
17282
|
-
pp$5.parseIdent = function(liberal
|
|
17607
|
+
pp$5.parseIdent = function(liberal) {
|
|
17608
|
+
var node = this.parseIdentNode();
|
|
17609
|
+
this.next(!!liberal);
|
|
17610
|
+
this.finishNode(node, "Identifier");
|
|
17611
|
+
if (!liberal) {
|
|
17612
|
+
this.checkUnreserved(node);
|
|
17613
|
+
if (node.name === "await" && !this.awaitIdentPos) {
|
|
17614
|
+
this.awaitIdentPos = node.start;
|
|
17615
|
+
}
|
|
17616
|
+
}
|
|
17617
|
+
return node;
|
|
17618
|
+
};
|
|
17619
|
+
pp$5.parseIdentNode = function() {
|
|
17283
17620
|
var node = this.startNode();
|
|
17284
17621
|
if (this.type === types$1.name) {
|
|
17285
17622
|
node.name = this.value;
|
|
@@ -17291,14 +17628,6 @@ pp$5.parseIdent = function(liberal, isBinding) {
|
|
|
17291
17628
|
} else {
|
|
17292
17629
|
this.unexpected();
|
|
17293
17630
|
}
|
|
17294
|
-
this.next(!!liberal);
|
|
17295
|
-
this.finishNode(node, "Identifier");
|
|
17296
|
-
if (!liberal) {
|
|
17297
|
-
this.checkUnreserved(node);
|
|
17298
|
-
if (node.name === "await" && !this.awaitIdentPos) {
|
|
17299
|
-
this.awaitIdentPos = node.start;
|
|
17300
|
-
}
|
|
17301
|
-
}
|
|
17302
17631
|
return node;
|
|
17303
17632
|
};
|
|
17304
17633
|
pp$5.parsePrivateIdent = function() {
|
|
@@ -17488,12 +17817,23 @@ var ecma10BinaryProperties = ecma9BinaryProperties + " Extended_Pictographic";
|
|
|
17488
17817
|
var ecma11BinaryProperties = ecma10BinaryProperties;
|
|
17489
17818
|
var ecma12BinaryProperties = ecma11BinaryProperties + " EBase EComp EMod EPres ExtPict";
|
|
17490
17819
|
var ecma13BinaryProperties = ecma12BinaryProperties;
|
|
17820
|
+
var ecma14BinaryProperties = ecma13BinaryProperties;
|
|
17491
17821
|
var unicodeBinaryProperties = {
|
|
17492
17822
|
9: ecma9BinaryProperties,
|
|
17493
17823
|
10: ecma10BinaryProperties,
|
|
17494
17824
|
11: ecma11BinaryProperties,
|
|
17495
17825
|
12: ecma12BinaryProperties,
|
|
17496
|
-
13: ecma13BinaryProperties
|
|
17826
|
+
13: ecma13BinaryProperties,
|
|
17827
|
+
14: ecma14BinaryProperties
|
|
17828
|
+
};
|
|
17829
|
+
var ecma14BinaryPropertiesOfStrings = "Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji";
|
|
17830
|
+
var unicodeBinaryPropertiesOfStrings = {
|
|
17831
|
+
9: "",
|
|
17832
|
+
10: "",
|
|
17833
|
+
11: "",
|
|
17834
|
+
12: "",
|
|
17835
|
+
13: "",
|
|
17836
|
+
14: ecma14BinaryPropertiesOfStrings
|
|
17497
17837
|
};
|
|
17498
17838
|
var unicodeGeneralCategoryValues = "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";
|
|
17499
17839
|
var ecma9ScriptValues = "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";
|
|
@@ -17501,17 +17841,20 @@ var ecma10ScriptValues = ecma9ScriptValues + " Dogra Dogr Gunjala_Gondi Gong Han
|
|
|
17501
17841
|
var ecma11ScriptValues = ecma10ScriptValues + " Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho";
|
|
17502
17842
|
var ecma12ScriptValues = ecma11ScriptValues + " Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi";
|
|
17503
17843
|
var ecma13ScriptValues = ecma12ScriptValues + " Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith";
|
|
17844
|
+
var ecma14ScriptValues = ecma13ScriptValues + " Hrkt Katakana_Or_Hiragana Kawi Nag_Mundari Nagm Unknown Zzzz";
|
|
17504
17845
|
var unicodeScriptValues = {
|
|
17505
17846
|
9: ecma9ScriptValues,
|
|
17506
17847
|
10: ecma10ScriptValues,
|
|
17507
17848
|
11: ecma11ScriptValues,
|
|
17508
17849
|
12: ecma12ScriptValues,
|
|
17509
|
-
13: ecma13ScriptValues
|
|
17850
|
+
13: ecma13ScriptValues,
|
|
17851
|
+
14: ecma14ScriptValues
|
|
17510
17852
|
};
|
|
17511
17853
|
var data = {};
|
|
17512
17854
|
function buildUnicodeData(ecmaVersion) {
|
|
17513
17855
|
var d = data[ecmaVersion] = {
|
|
17514
17856
|
binary: wordsRegexp(unicodeBinaryProperties[ecmaVersion] + " " + unicodeGeneralCategoryValues),
|
|
17857
|
+
binaryOfStrings: wordsRegexp(unicodeBinaryPropertiesOfStrings[ecmaVersion]),
|
|
17515
17858
|
nonBinary: {
|
|
17516
17859
|
General_Category: wordsRegexp(unicodeGeneralCategoryValues),
|
|
17517
17860
|
Script: wordsRegexp(unicodeScriptValues[ecmaVersion])
|
|
@@ -17522,7 +17865,7 @@ function buildUnicodeData(ecmaVersion) {
|
|
|
17522
17865
|
d.nonBinary.sc = d.nonBinary.Script;
|
|
17523
17866
|
d.nonBinary.scx = d.nonBinary.Script_Extensions;
|
|
17524
17867
|
}
|
|
17525
|
-
for (i = 0, list3 = [9, 10, 11, 12, 13]; i < list3.length; i += 1) {
|
|
17868
|
+
for (i = 0, list3 = [9, 10, 11, 12, 13, 14]; i < list3.length; i += 1) {
|
|
17526
17869
|
ecmaVersion = list3[i];
|
|
17527
17870
|
buildUnicodeData(ecmaVersion);
|
|
17528
17871
|
}
|
|
@@ -17532,12 +17875,13 @@ var list3;
|
|
|
17532
17875
|
var pp$1 = Parser.prototype;
|
|
17533
17876
|
var RegExpValidationState = function RegExpValidationState2(parser) {
|
|
17534
17877
|
this.parser = parser;
|
|
17535
|
-
this.validFlags = "gim" + (parser.options.ecmaVersion >= 6 ? "uy" : "") + (parser.options.ecmaVersion >= 9 ? "s" : "") + (parser.options.ecmaVersion >= 13 ? "d" : "");
|
|
17536
|
-
this.unicodeProperties = data[parser.options.ecmaVersion >=
|
|
17878
|
+
this.validFlags = "gim" + (parser.options.ecmaVersion >= 6 ? "uy" : "") + (parser.options.ecmaVersion >= 9 ? "s" : "") + (parser.options.ecmaVersion >= 13 ? "d" : "") + (parser.options.ecmaVersion >= 15 ? "v" : "");
|
|
17879
|
+
this.unicodeProperties = data[parser.options.ecmaVersion >= 14 ? 14 : parser.options.ecmaVersion];
|
|
17537
17880
|
this.source = "";
|
|
17538
17881
|
this.flags = "";
|
|
17539
17882
|
this.start = 0;
|
|
17540
17883
|
this.switchU = false;
|
|
17884
|
+
this.switchV = false;
|
|
17541
17885
|
this.switchN = false;
|
|
17542
17886
|
this.pos = 0;
|
|
17543
17887
|
this.lastIntValue = 0;
|
|
@@ -17549,12 +17893,20 @@ var RegExpValidationState = function RegExpValidationState2(parser) {
|
|
|
17549
17893
|
this.backReferenceNames = [];
|
|
17550
17894
|
};
|
|
17551
17895
|
RegExpValidationState.prototype.reset = function reset(start3, pattern, flags) {
|
|
17896
|
+
var unicodeSets = flags.indexOf("v") !== -1;
|
|
17552
17897
|
var unicode = flags.indexOf("u") !== -1;
|
|
17553
17898
|
this.start = start3 | 0;
|
|
17554
17899
|
this.source = pattern + "";
|
|
17555
17900
|
this.flags = flags;
|
|
17556
|
-
|
|
17557
|
-
|
|
17901
|
+
if (unicodeSets && this.parser.options.ecmaVersion >= 15) {
|
|
17902
|
+
this.switchU = true;
|
|
17903
|
+
this.switchV = true;
|
|
17904
|
+
this.switchN = true;
|
|
17905
|
+
} else {
|
|
17906
|
+
this.switchU = unicode && this.parser.options.ecmaVersion >= 6;
|
|
17907
|
+
this.switchV = false;
|
|
17908
|
+
this.switchN = unicode && this.parser.options.ecmaVersion >= 9;
|
|
17909
|
+
}
|
|
17558
17910
|
};
|
|
17559
17911
|
RegExpValidationState.prototype.raise = function raise(message) {
|
|
17560
17912
|
this.parser.raiseRecoverable(this.start, "Invalid regular expression: /" + this.source + "/: " + message);
|
|
@@ -17612,9 +17964,26 @@ RegExpValidationState.prototype.eat = function eat(ch2, forceU) {
|
|
|
17612
17964
|
}
|
|
17613
17965
|
return false;
|
|
17614
17966
|
};
|
|
17967
|
+
RegExpValidationState.prototype.eatChars = function eatChars(chs, forceU) {
|
|
17968
|
+
if (forceU === void 0)
|
|
17969
|
+
forceU = false;
|
|
17970
|
+
var pos = this.pos;
|
|
17971
|
+
for (var i = 0, list3 = chs; i < list3.length; i += 1) {
|
|
17972
|
+
var ch2 = list3[i];
|
|
17973
|
+
var current3 = this.at(pos, forceU);
|
|
17974
|
+
if (current3 === -1 || current3 !== ch2) {
|
|
17975
|
+
return false;
|
|
17976
|
+
}
|
|
17977
|
+
pos = this.nextIndex(pos, forceU);
|
|
17978
|
+
}
|
|
17979
|
+
this.pos = pos;
|
|
17980
|
+
return true;
|
|
17981
|
+
};
|
|
17615
17982
|
pp$1.validateRegExpFlags = function(state) {
|
|
17616
17983
|
var validFlags = state.validFlags;
|
|
17617
17984
|
var flags = state.flags;
|
|
17985
|
+
var u = false;
|
|
17986
|
+
var v = false;
|
|
17618
17987
|
for (var i = 0; i < flags.length; i++) {
|
|
17619
17988
|
var flag = flags.charAt(i);
|
|
17620
17989
|
if (validFlags.indexOf(flag) === -1) {
|
|
@@ -17623,6 +17992,15 @@ pp$1.validateRegExpFlags = function(state) {
|
|
|
17623
17992
|
if (flags.indexOf(flag, i + 1) > -1) {
|
|
17624
17993
|
this.raise(state.start, "Duplicate regular expression flag");
|
|
17625
17994
|
}
|
|
17995
|
+
if (flag === "u") {
|
|
17996
|
+
u = true;
|
|
17997
|
+
}
|
|
17998
|
+
if (flag === "v") {
|
|
17999
|
+
v = true;
|
|
18000
|
+
}
|
|
18001
|
+
}
|
|
18002
|
+
if (this.options.ecmaVersion >= 15 && u && v) {
|
|
18003
|
+
this.raise(state.start, "Invalid regular expression flag");
|
|
17626
18004
|
}
|
|
17627
18005
|
};
|
|
17628
18006
|
pp$1.validateRegExpPattern = function(state) {
|
|
@@ -18071,22 +18449,30 @@ pp$1.regexp_eatDecimalEscape = function(state) {
|
|
|
18071
18449
|
}
|
|
18072
18450
|
return false;
|
|
18073
18451
|
};
|
|
18452
|
+
var CharSetNone = 0;
|
|
18453
|
+
var CharSetOk = 1;
|
|
18454
|
+
var CharSetString = 2;
|
|
18074
18455
|
pp$1.regexp_eatCharacterClassEscape = function(state) {
|
|
18075
18456
|
var ch2 = state.current();
|
|
18076
18457
|
if (isCharacterClassEscape(ch2)) {
|
|
18077
18458
|
state.lastIntValue = -1;
|
|
18078
18459
|
state.advance();
|
|
18079
|
-
return
|
|
18460
|
+
return CharSetOk;
|
|
18080
18461
|
}
|
|
18081
|
-
|
|
18462
|
+
var negate = false;
|
|
18463
|
+
if (state.switchU && this.options.ecmaVersion >= 9 && ((negate = ch2 === 80) || ch2 === 112)) {
|
|
18082
18464
|
state.lastIntValue = -1;
|
|
18083
18465
|
state.advance();
|
|
18084
|
-
|
|
18085
|
-
|
|
18466
|
+
var result;
|
|
18467
|
+
if (state.eat(123) && (result = this.regexp_eatUnicodePropertyValueExpression(state)) && state.eat(125)) {
|
|
18468
|
+
if (negate && result === CharSetString) {
|
|
18469
|
+
state.raise("Invalid property name");
|
|
18470
|
+
}
|
|
18471
|
+
return result;
|
|
18086
18472
|
}
|
|
18087
18473
|
state.raise("Invalid property name");
|
|
18088
18474
|
}
|
|
18089
|
-
return
|
|
18475
|
+
return CharSetNone;
|
|
18090
18476
|
};
|
|
18091
18477
|
function isCharacterClassEscape(ch2) {
|
|
18092
18478
|
return ch2 === 100 || ch2 === 68 || ch2 === 115 || ch2 === 83 || ch2 === 119 || ch2 === 87;
|
|
@@ -18098,16 +18484,15 @@ pp$1.regexp_eatUnicodePropertyValueExpression = function(state) {
|
|
|
18098
18484
|
if (this.regexp_eatUnicodePropertyValue(state)) {
|
|
18099
18485
|
var value = state.lastStringValue;
|
|
18100
18486
|
this.regexp_validateUnicodePropertyNameAndValue(state, name2, value);
|
|
18101
|
-
return
|
|
18487
|
+
return CharSetOk;
|
|
18102
18488
|
}
|
|
18103
18489
|
}
|
|
18104
18490
|
state.pos = start3;
|
|
18105
18491
|
if (this.regexp_eatLoneUnicodePropertyNameOrValue(state)) {
|
|
18106
18492
|
var nameOrValue = state.lastStringValue;
|
|
18107
|
-
this.regexp_validateUnicodePropertyNameOrValue(state, nameOrValue);
|
|
18108
|
-
return true;
|
|
18493
|
+
return this.regexp_validateUnicodePropertyNameOrValue(state, nameOrValue);
|
|
18109
18494
|
}
|
|
18110
|
-
return
|
|
18495
|
+
return CharSetNone;
|
|
18111
18496
|
};
|
|
18112
18497
|
pp$1.regexp_validateUnicodePropertyNameAndValue = function(state, name2, value) {
|
|
18113
18498
|
if (!hasOwn(state.unicodeProperties.nonBinary, name2)) {
|
|
@@ -18118,9 +18503,13 @@ pp$1.regexp_validateUnicodePropertyNameAndValue = function(state, name2, value)
|
|
|
18118
18503
|
}
|
|
18119
18504
|
};
|
|
18120
18505
|
pp$1.regexp_validateUnicodePropertyNameOrValue = function(state, nameOrValue) {
|
|
18121
|
-
if (
|
|
18122
|
-
|
|
18506
|
+
if (state.unicodeProperties.binary.test(nameOrValue)) {
|
|
18507
|
+
return CharSetOk;
|
|
18508
|
+
}
|
|
18509
|
+
if (state.switchV && state.unicodeProperties.binaryOfStrings.test(nameOrValue)) {
|
|
18510
|
+
return CharSetString;
|
|
18123
18511
|
}
|
|
18512
|
+
state.raise("Invalid property name");
|
|
18124
18513
|
};
|
|
18125
18514
|
pp$1.regexp_eatUnicodePropertyName = function(state) {
|
|
18126
18515
|
var ch2 = 0;
|
|
@@ -18151,16 +18540,29 @@ pp$1.regexp_eatLoneUnicodePropertyNameOrValue = function(state) {
|
|
|
18151
18540
|
};
|
|
18152
18541
|
pp$1.regexp_eatCharacterClass = function(state) {
|
|
18153
18542
|
if (state.eat(91)) {
|
|
18154
|
-
state.eat(94);
|
|
18155
|
-
this.
|
|
18156
|
-
if (state.eat(93)) {
|
|
18157
|
-
|
|
18543
|
+
var negate = state.eat(94);
|
|
18544
|
+
var result = this.regexp_classContents(state);
|
|
18545
|
+
if (!state.eat(93)) {
|
|
18546
|
+
state.raise("Unterminated character class");
|
|
18158
18547
|
}
|
|
18159
|
-
|
|
18548
|
+
if (negate && result === CharSetString) {
|
|
18549
|
+
state.raise("Negated character class may contain strings");
|
|
18550
|
+
}
|
|
18551
|
+
return true;
|
|
18160
18552
|
}
|
|
18161
18553
|
return false;
|
|
18162
18554
|
};
|
|
18163
|
-
pp$1.
|
|
18555
|
+
pp$1.regexp_classContents = function(state) {
|
|
18556
|
+
if (state.current() === 93) {
|
|
18557
|
+
return CharSetOk;
|
|
18558
|
+
}
|
|
18559
|
+
if (state.switchV) {
|
|
18560
|
+
return this.regexp_classSetExpression(state);
|
|
18561
|
+
}
|
|
18562
|
+
this.regexp_nonEmptyClassRanges(state);
|
|
18563
|
+
return CharSetOk;
|
|
18564
|
+
};
|
|
18565
|
+
pp$1.regexp_nonEmptyClassRanges = function(state) {
|
|
18164
18566
|
while (this.regexp_eatClassAtom(state)) {
|
|
18165
18567
|
var left = state.lastIntValue;
|
|
18166
18568
|
if (state.eat(45) && this.regexp_eatClassAtom(state)) {
|
|
@@ -18215,6 +18617,168 @@ pp$1.regexp_eatClassEscape = function(state) {
|
|
|
18215
18617
|
}
|
|
18216
18618
|
return this.regexp_eatCharacterClassEscape(state) || this.regexp_eatCharacterEscape(state);
|
|
18217
18619
|
};
|
|
18620
|
+
pp$1.regexp_classSetExpression = function(state) {
|
|
18621
|
+
var result = CharSetOk, subResult;
|
|
18622
|
+
if (this.regexp_eatClassSetRange(state))
|
|
18623
|
+
;
|
|
18624
|
+
else if (subResult = this.regexp_eatClassSetOperand(state)) {
|
|
18625
|
+
if (subResult === CharSetString) {
|
|
18626
|
+
result = CharSetString;
|
|
18627
|
+
}
|
|
18628
|
+
var start3 = state.pos;
|
|
18629
|
+
while (state.eatChars([38, 38])) {
|
|
18630
|
+
if (state.current() !== 38 && (subResult = this.regexp_eatClassSetOperand(state))) {
|
|
18631
|
+
if (subResult !== CharSetString) {
|
|
18632
|
+
result = CharSetOk;
|
|
18633
|
+
}
|
|
18634
|
+
continue;
|
|
18635
|
+
}
|
|
18636
|
+
state.raise("Invalid character in character class");
|
|
18637
|
+
}
|
|
18638
|
+
if (start3 !== state.pos) {
|
|
18639
|
+
return result;
|
|
18640
|
+
}
|
|
18641
|
+
while (state.eatChars([45, 45])) {
|
|
18642
|
+
if (this.regexp_eatClassSetOperand(state)) {
|
|
18643
|
+
continue;
|
|
18644
|
+
}
|
|
18645
|
+
state.raise("Invalid character in character class");
|
|
18646
|
+
}
|
|
18647
|
+
if (start3 !== state.pos) {
|
|
18648
|
+
return result;
|
|
18649
|
+
}
|
|
18650
|
+
} else {
|
|
18651
|
+
state.raise("Invalid character in character class");
|
|
18652
|
+
}
|
|
18653
|
+
for (; ; ) {
|
|
18654
|
+
if (this.regexp_eatClassSetRange(state)) {
|
|
18655
|
+
continue;
|
|
18656
|
+
}
|
|
18657
|
+
subResult = this.regexp_eatClassSetOperand(state);
|
|
18658
|
+
if (!subResult) {
|
|
18659
|
+
return result;
|
|
18660
|
+
}
|
|
18661
|
+
if (subResult === CharSetString) {
|
|
18662
|
+
result = CharSetString;
|
|
18663
|
+
}
|
|
18664
|
+
}
|
|
18665
|
+
};
|
|
18666
|
+
pp$1.regexp_eatClassSetRange = function(state) {
|
|
18667
|
+
var start3 = state.pos;
|
|
18668
|
+
if (this.regexp_eatClassSetCharacter(state)) {
|
|
18669
|
+
var left = state.lastIntValue;
|
|
18670
|
+
if (state.eat(45) && this.regexp_eatClassSetCharacter(state)) {
|
|
18671
|
+
var right = state.lastIntValue;
|
|
18672
|
+
if (left !== -1 && right !== -1 && left > right) {
|
|
18673
|
+
state.raise("Range out of order in character class");
|
|
18674
|
+
}
|
|
18675
|
+
return true;
|
|
18676
|
+
}
|
|
18677
|
+
state.pos = start3;
|
|
18678
|
+
}
|
|
18679
|
+
return false;
|
|
18680
|
+
};
|
|
18681
|
+
pp$1.regexp_eatClassSetOperand = function(state) {
|
|
18682
|
+
if (this.regexp_eatClassSetCharacter(state)) {
|
|
18683
|
+
return CharSetOk;
|
|
18684
|
+
}
|
|
18685
|
+
return this.regexp_eatClassStringDisjunction(state) || this.regexp_eatNestedClass(state);
|
|
18686
|
+
};
|
|
18687
|
+
pp$1.regexp_eatNestedClass = function(state) {
|
|
18688
|
+
var start3 = state.pos;
|
|
18689
|
+
if (state.eat(91)) {
|
|
18690
|
+
var negate = state.eat(94);
|
|
18691
|
+
var result = this.regexp_classContents(state);
|
|
18692
|
+
if (state.eat(93)) {
|
|
18693
|
+
if (negate && result === CharSetString) {
|
|
18694
|
+
state.raise("Negated character class may contain strings");
|
|
18695
|
+
}
|
|
18696
|
+
return result;
|
|
18697
|
+
}
|
|
18698
|
+
state.pos = start3;
|
|
18699
|
+
}
|
|
18700
|
+
if (state.eat(92)) {
|
|
18701
|
+
var result$1 = this.regexp_eatCharacterClassEscape(state);
|
|
18702
|
+
if (result$1) {
|
|
18703
|
+
return result$1;
|
|
18704
|
+
}
|
|
18705
|
+
state.pos = start3;
|
|
18706
|
+
}
|
|
18707
|
+
return null;
|
|
18708
|
+
};
|
|
18709
|
+
pp$1.regexp_eatClassStringDisjunction = function(state) {
|
|
18710
|
+
var start3 = state.pos;
|
|
18711
|
+
if (state.eatChars([92, 113])) {
|
|
18712
|
+
if (state.eat(123)) {
|
|
18713
|
+
var result = this.regexp_classStringDisjunctionContents(state);
|
|
18714
|
+
if (state.eat(125)) {
|
|
18715
|
+
return result;
|
|
18716
|
+
}
|
|
18717
|
+
} else {
|
|
18718
|
+
state.raise("Invalid escape");
|
|
18719
|
+
}
|
|
18720
|
+
state.pos = start3;
|
|
18721
|
+
}
|
|
18722
|
+
return null;
|
|
18723
|
+
};
|
|
18724
|
+
pp$1.regexp_classStringDisjunctionContents = function(state) {
|
|
18725
|
+
var result = this.regexp_classString(state);
|
|
18726
|
+
while (state.eat(124)) {
|
|
18727
|
+
if (this.regexp_classString(state) === CharSetString) {
|
|
18728
|
+
result = CharSetString;
|
|
18729
|
+
}
|
|
18730
|
+
}
|
|
18731
|
+
return result;
|
|
18732
|
+
};
|
|
18733
|
+
pp$1.regexp_classString = function(state) {
|
|
18734
|
+
var count = 0;
|
|
18735
|
+
while (this.regexp_eatClassSetCharacter(state)) {
|
|
18736
|
+
count++;
|
|
18737
|
+
}
|
|
18738
|
+
return count === 1 ? CharSetOk : CharSetString;
|
|
18739
|
+
};
|
|
18740
|
+
pp$1.regexp_eatClassSetCharacter = function(state) {
|
|
18741
|
+
var start3 = state.pos;
|
|
18742
|
+
if (state.eat(92)) {
|
|
18743
|
+
if (this.regexp_eatCharacterEscape(state) || this.regexp_eatClassSetReservedPunctuator(state)) {
|
|
18744
|
+
return true;
|
|
18745
|
+
}
|
|
18746
|
+
if (state.eat(98)) {
|
|
18747
|
+
state.lastIntValue = 8;
|
|
18748
|
+
return true;
|
|
18749
|
+
}
|
|
18750
|
+
state.pos = start3;
|
|
18751
|
+
return false;
|
|
18752
|
+
}
|
|
18753
|
+
var ch2 = state.current();
|
|
18754
|
+
if (ch2 < 0 || ch2 === state.lookahead() && isClassSetReservedDoublePunctuatorCharacter(ch2)) {
|
|
18755
|
+
return false;
|
|
18756
|
+
}
|
|
18757
|
+
if (isClassSetSyntaxCharacter(ch2)) {
|
|
18758
|
+
return false;
|
|
18759
|
+
}
|
|
18760
|
+
state.advance();
|
|
18761
|
+
state.lastIntValue = ch2;
|
|
18762
|
+
return true;
|
|
18763
|
+
};
|
|
18764
|
+
function isClassSetReservedDoublePunctuatorCharacter(ch2) {
|
|
18765
|
+
return ch2 === 33 || ch2 >= 35 && ch2 <= 38 || ch2 >= 42 && ch2 <= 44 || ch2 === 46 || ch2 >= 58 && ch2 <= 64 || ch2 === 94 || ch2 === 96 || ch2 === 126;
|
|
18766
|
+
}
|
|
18767
|
+
function isClassSetSyntaxCharacter(ch2) {
|
|
18768
|
+
return ch2 === 40 || ch2 === 41 || ch2 === 45 || ch2 === 47 || ch2 >= 91 && ch2 <= 93 || ch2 >= 123 && ch2 <= 125;
|
|
18769
|
+
}
|
|
18770
|
+
pp$1.regexp_eatClassSetReservedPunctuator = function(state) {
|
|
18771
|
+
var ch2 = state.current();
|
|
18772
|
+
if (isClassSetReservedPunctuator(ch2)) {
|
|
18773
|
+
state.lastIntValue = ch2;
|
|
18774
|
+
state.advance();
|
|
18775
|
+
return true;
|
|
18776
|
+
}
|
|
18777
|
+
return false;
|
|
18778
|
+
};
|
|
18779
|
+
function isClassSetReservedPunctuator(ch2) {
|
|
18780
|
+
return ch2 === 33 || ch2 === 35 || ch2 === 37 || ch2 === 38 || ch2 === 44 || ch2 === 45 || ch2 >= 58 && ch2 <= 62 || ch2 === 64 || ch2 === 96 || ch2 === 126;
|
|
18781
|
+
}
|
|
18218
18782
|
pp$1.regexp_eatClassControlLetter = function(state) {
|
|
18219
18783
|
var ch2 = state.current();
|
|
18220
18784
|
if (isDecimalDigit(ch2) || ch2 === 95) {
|
|
@@ -19057,7 +19621,6 @@ pp.readEscapedChar = function(inTemplate) {
|
|
|
19057
19621
|
codePos,
|
|
19058
19622
|
"Invalid escape sequence in template string"
|
|
19059
19623
|
);
|
|
19060
|
-
return null;
|
|
19061
19624
|
}
|
|
19062
19625
|
default:
|
|
19063
19626
|
if (ch2 >= 48 && ch2 <= 55) {
|
|
@@ -19128,7 +19691,7 @@ pp.readWord = function() {
|
|
|
19128
19691
|
}
|
|
19129
19692
|
return this.finishToken(type, word);
|
|
19130
19693
|
};
|
|
19131
|
-
var version = "8.
|
|
19694
|
+
var version = "8.9.0";
|
|
19132
19695
|
Parser.acorn = {
|
|
19133
19696
|
Parser,
|
|
19134
19697
|
version,
|
|
@@ -46082,14 +46645,14 @@ var ecma10BinaryProperties2 = ecma9BinaryProperties2 + " Extended_Pictographic";
|
|
|
46082
46645
|
var ecma11BinaryProperties2 = ecma10BinaryProperties2;
|
|
46083
46646
|
var ecma12BinaryProperties2 = ecma11BinaryProperties2 + " EBase EComp EMod EPres ExtPict";
|
|
46084
46647
|
var ecma13BinaryProperties2 = ecma12BinaryProperties2;
|
|
46085
|
-
var
|
|
46648
|
+
var ecma14BinaryProperties2 = ecma13BinaryProperties2;
|
|
46086
46649
|
var unicodeBinaryProperties2 = {
|
|
46087
46650
|
9: ecma9BinaryProperties2,
|
|
46088
46651
|
10: ecma10BinaryProperties2,
|
|
46089
46652
|
11: ecma11BinaryProperties2,
|
|
46090
46653
|
12: ecma12BinaryProperties2,
|
|
46091
46654
|
13: ecma13BinaryProperties2,
|
|
46092
|
-
14:
|
|
46655
|
+
14: ecma14BinaryProperties2
|
|
46093
46656
|
};
|
|
46094
46657
|
var unicodeGeneralCategoryValues2 = "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";
|
|
46095
46658
|
var ecma9ScriptValues2 = "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";
|
|
@@ -46097,14 +46660,14 @@ var ecma10ScriptValues2 = ecma9ScriptValues2 + " Dogra Dogr Gunjala_Gondi Gong H
|
|
|
46097
46660
|
var ecma11ScriptValues2 = ecma10ScriptValues2 + " Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho";
|
|
46098
46661
|
var ecma12ScriptValues2 = ecma11ScriptValues2 + " Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi";
|
|
46099
46662
|
var ecma13ScriptValues2 = ecma12ScriptValues2 + " Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith";
|
|
46100
|
-
var
|
|
46663
|
+
var ecma14ScriptValues2 = ecma13ScriptValues2 + " Kawi Nag_Mundari Nagm";
|
|
46101
46664
|
var unicodeScriptValues2 = {
|
|
46102
46665
|
9: ecma9ScriptValues2,
|
|
46103
46666
|
10: ecma10ScriptValues2,
|
|
46104
46667
|
11: ecma11ScriptValues2,
|
|
46105
46668
|
12: ecma12ScriptValues2,
|
|
46106
46669
|
13: ecma13ScriptValues2,
|
|
46107
|
-
14:
|
|
46670
|
+
14: ecma14ScriptValues2
|
|
46108
46671
|
};
|
|
46109
46672
|
var data2 = {};
|
|
46110
46673
|
function buildUnicodeData2(ecmaVersion) {
|