@wix/cli 1.1.135 → 1.1.137
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/build/{DevCommand-NGP3OLP2.js → DevCommand-4WGGZUD3.js} +12 -12
- package/build/{DevCommand-IMAVUJAD.js → DevCommand-6ZS5RLD3.js} +10 -10
- package/build/{DevCommand-WRR5BL4Z.js → DevCommand-SYVOL2SH.js} +125 -225
- package/build/DevCommand-SYVOL2SH.js.map +1 -0
- package/build/{EnvPullCommand-YIMMKCWN.js → EnvPullCommand-W2ZO5GSY.js} +9 -9
- package/build/{EnvRemoveCommand-ZCXNUXNH.js → EnvRemoveCommand-MXGOSLB3.js} +8 -8
- package/build/{EnvSetCommand-RHEKCVUN.js → EnvSetCommand-OF23GAX2.js} +8 -8
- package/build/{GenerateCommand-BTQ7TG5D.js → GenerateCommand-HPGQPCFO.js} +221 -37
- package/build/GenerateCommand-HPGQPCFO.js.map +1 -0
- package/build/{InstallCommand-YRZIYW62.js → InstallCommand-F4WKT3VN.js} +9 -9
- package/build/{LoginCommand-5MF5W7AI.js → LoginCommand-S6OKRJR5.js} +5 -5
- package/build/{LogoutCommand-M6RIRJSL.js → LogoutCommand-H25SGWWC.js} +4 -4
- package/build/{PreviewCommand-XXGRNKCX.js → PreviewCommand-2YXSTQEO.js} +14 -14
- package/build/{PreviewCommand-GUJ76CAT.js → PreviewCommand-E6ZTUQTC.js} +12 -12
- package/build/{PreviewCommand-U3WITMSP.js → PreviewCommand-UVIE6QES.js} +11 -11
- package/build/{PromoteCommand-U3VRZFG4.js → PromoteCommand-TFKEZY3T.js} +11 -11
- package/build/{PublishCommand-PSVM5BRB.js → PublishCommand-YNYKD67B.js} +12 -12
- package/build/{ReleaseCommand-BKJFTAFS.js → ReleaseCommand-VXKFWKRI.js} +14 -22
- package/build/ReleaseCommand-VXKFWKRI.js.map +1 -0
- package/build/{UninstallCommand-SYETTGBX.js → UninstallCommand-CZAZHNGX.js} +9 -9
- package/build/{WhoamiCommand-LO267Q7N.js → WhoamiCommand-GGT4PRVH.js} +2 -2
- package/build/{chunk-OAXVMHAX.js → chunk-2LI75DIL.js} +5 -5
- package/build/{chunk-XFUTMCAZ.js → chunk-2ULTXPAN.js} +5 -5
- package/build/{chunk-NXWYNKVW.js → chunk-4ZDCHQ2A.js} +8 -2
- package/build/{chunk-NXWYNKVW.js.map → chunk-4ZDCHQ2A.js.map} +1 -1
- package/build/{chunk-32I3PHOS.js → chunk-6C4RLYLU.js} +2 -2
- package/build/{chunk-6NYCJJLW.js → chunk-6CKGZQ6Y.js} +2 -2
- package/build/{chunk-NAYRT7D7.js → chunk-6RNNDF2T.js} +2 -2
- package/build/{chunk-G2YYCYGR.js → chunk-74NPPELF.js} +2 -2
- package/build/{chunk-S2NJ72RN.js → chunk-A6BVUV6V.js} +2 -2
- package/build/{chunk-2JV5CPZB.js → chunk-B7MLTT2G.js} +8 -7
- package/build/chunk-B7MLTT2G.js.map +1 -0
- package/build/{chunk-AU6SEMLX.js → chunk-BIBBCSLC.js} +3 -3
- package/build/{chunk-6CAKDLZN.js → chunk-BQDKSF4L.js} +2 -2
- package/build/{chunk-4WVAKXRQ.js → chunk-C6TNYPLG.js} +2 -2
- package/build/{chunk-GWFVDY6V.js → chunk-DZWD6YGQ.js} +2 -2
- package/build/{chunk-44ID64NH.js → chunk-E2L744R2.js} +6 -6
- package/build/{chunk-ZCDEIFN6.js → chunk-EEIMPGEO.js} +7 -7
- package/build/chunk-EEIMPGEO.js.map +1 -0
- package/build/{chunk-QWD63IH3.js → chunk-EJXUIHIF.js} +4 -4
- package/build/{chunk-BXLLE2UC.js → chunk-GIVNKW7V.js} +2 -2
- package/build/chunk-IZPIRKJT.js +486 -0
- package/build/chunk-IZPIRKJT.js.map +1 -0
- package/build/{chunk-NEIDBKO4.js → chunk-L5YUJ3GM.js} +11 -4
- package/build/chunk-L5YUJ3GM.js.map +1 -0
- package/build/{chunk-XNCMJVRR.js → chunk-LG2AMEKY.js} +2 -2
- package/build/{chunk-5IEF6RZY.js → chunk-MPVVYJPP.js} +2 -2
- package/build/{chunk-JS5GX6CV.js → chunk-NOHO7LV2.js} +4 -4
- package/build/{chunk-RFIG2TYJ.js → chunk-PSBMQW7U.js} +2 -2
- package/build/{chunk-KNO67D7N.js → chunk-SZ4GCQYL.js} +3 -3
- package/build/{chunk-HST5K3MT.js → chunk-UYPWXOQO.js} +6 -6
- package/build/{chunk-WHTEK23Z.js → chunk-V7XLHO7Q.js} +2 -2
- package/build/{chunk-WHTEK23Z.js.map → chunk-V7XLHO7Q.js.map} +1 -1
- package/build/{chunk-RQ3P4TXY.js → chunk-VHW3FJA2.js} +4 -4
- package/build/{chunk-SSOJHG2R.js → chunk-VKYDCBWE.js} +3 -3
- package/build/{chunk-ET7C64VQ.js → chunk-W6PEJALH.js} +3 -1
- package/build/{chunk-EHGVJH6O.js → chunk-WR4MGTEM.js} +4 -4
- package/build/{chunk-SLXRJIGZ.js → chunk-WZ5WZJCP.js} +3 -3
- package/build/{chunk-FEOGVHVS.js → chunk-YFO6RGRK.js} +21 -9
- package/build/{chunk-FEOGVHVS.js.map → chunk-YFO6RGRK.js.map} +1 -1
- package/build/{chunk-5WGVTKXX.js → chunk-YMSQHLQM.js} +389 -220
- package/build/chunk-YMSQHLQM.js.map +1 -0
- package/build/{dev-OHJZWTJ3.js → dev-NNCONGCS.js} +16 -16
- package/build/{env-pull-4FGXVGD4.js → env-pull-BYJAIBPF.js} +10 -10
- package/build/index.js +17 -17
- package/build/{install-W3UPQLJF.js → install-RCRAG2NK.js} +10 -10
- package/build/{preview-J2VHIOW6.js → preview-CK7VEIXP.js} +12 -12
- package/build/{publish-MZFIZUAS.js → publish-SQVFB7LU.js} +12 -12
- package/build/{render-command-SPWPJIS5.js → render-command-23VLQITP.js} +5 -5
- package/build/{render-command-4PNWKKJS.js → render-command-7TCXVAFE.js} +5 -5
- package/build/{render-command-TKUCFULY.js → render-command-ABHBR3UM.js} +6 -6
- package/build/{render-command-VF63TJ6P.js → render-command-MVONLIU7.js} +7 -7
- package/build/{render-command-5FD4ZDM6.js → render-command-VAU63DCO.js} +5 -5
- package/build/{src-YUFFOHXE.js → src-2FLYDKZ3.js} +5 -5
- package/build/{src-KJJPDMUK.js → src-FAVBG7CT.js} +13 -13
- package/build/{src-4VOUM44Q.js → src-IQXMG6FU.js} +11 -11
- package/build/{src-IQVO6HFK.js → src-N2VDPATT.js} +23 -23
- package/build/{src-7QFM3YRG.js → src-ZDFXTN36.js} +4 -4
- package/build/{sync-types-KJRJG6D2.js → sync-types-AZF2FSUW.js} +7 -7
- package/build/{uninstall-5T62IZPL.js → uninstall-BYZIWURT.js} +10 -10
- package/package.json +2 -2
- package/build/DevCommand-WRR5BL4Z.js.map +0 -1
- package/build/GenerateCommand-BTQ7TG5D.js.map +0 -1
- package/build/ReleaseCommand-BKJFTAFS.js.map +0 -1
- package/build/chunk-2JV5CPZB.js.map +0 -1
- package/build/chunk-5WGVTKXX.js.map +0 -1
- package/build/chunk-J5YVHTPQ.js +0 -5505
- package/build/chunk-J5YVHTPQ.js.map +0 -1
- package/build/chunk-NEIDBKO4.js.map +0 -1
- package/build/chunk-ZCDEIFN6.js.map +0 -1
- /package/build/{DevCommand-NGP3OLP2.js.map → DevCommand-4WGGZUD3.js.map} +0 -0
- /package/build/{DevCommand-IMAVUJAD.js.map → DevCommand-6ZS5RLD3.js.map} +0 -0
- /package/build/{EnvPullCommand-YIMMKCWN.js.map → EnvPullCommand-W2ZO5GSY.js.map} +0 -0
- /package/build/{EnvRemoveCommand-ZCXNUXNH.js.map → EnvRemoveCommand-MXGOSLB3.js.map} +0 -0
- /package/build/{EnvSetCommand-RHEKCVUN.js.map → EnvSetCommand-OF23GAX2.js.map} +0 -0
- /package/build/{InstallCommand-YRZIYW62.js.map → InstallCommand-F4WKT3VN.js.map} +0 -0
- /package/build/{LoginCommand-5MF5W7AI.js.map → LoginCommand-S6OKRJR5.js.map} +0 -0
- /package/build/{LogoutCommand-M6RIRJSL.js.map → LogoutCommand-H25SGWWC.js.map} +0 -0
- /package/build/{PreviewCommand-XXGRNKCX.js.map → PreviewCommand-2YXSTQEO.js.map} +0 -0
- /package/build/{PreviewCommand-GUJ76CAT.js.map → PreviewCommand-E6ZTUQTC.js.map} +0 -0
- /package/build/{PreviewCommand-U3WITMSP.js.map → PreviewCommand-UVIE6QES.js.map} +0 -0
- /package/build/{PromoteCommand-U3VRZFG4.js.map → PromoteCommand-TFKEZY3T.js.map} +0 -0
- /package/build/{PublishCommand-PSVM5BRB.js.map → PublishCommand-YNYKD67B.js.map} +0 -0
- /package/build/{UninstallCommand-SYETTGBX.js.map → UninstallCommand-CZAZHNGX.js.map} +0 -0
- /package/build/{WhoamiCommand-LO267Q7N.js.map → WhoamiCommand-GGT4PRVH.js.map} +0 -0
- /package/build/{chunk-OAXVMHAX.js.map → chunk-2LI75DIL.js.map} +0 -0
- /package/build/{chunk-XFUTMCAZ.js.map → chunk-2ULTXPAN.js.map} +0 -0
- /package/build/{chunk-32I3PHOS.js.map → chunk-6C4RLYLU.js.map} +0 -0
- /package/build/{chunk-6NYCJJLW.js.map → chunk-6CKGZQ6Y.js.map} +0 -0
- /package/build/{chunk-NAYRT7D7.js.map → chunk-6RNNDF2T.js.map} +0 -0
- /package/build/{chunk-G2YYCYGR.js.map → chunk-74NPPELF.js.map} +0 -0
- /package/build/{chunk-S2NJ72RN.js.map → chunk-A6BVUV6V.js.map} +0 -0
- /package/build/{chunk-AU6SEMLX.js.map → chunk-BIBBCSLC.js.map} +0 -0
- /package/build/{chunk-6CAKDLZN.js.map → chunk-BQDKSF4L.js.map} +0 -0
- /package/build/{chunk-4WVAKXRQ.js.map → chunk-C6TNYPLG.js.map} +0 -0
- /package/build/{chunk-GWFVDY6V.js.map → chunk-DZWD6YGQ.js.map} +0 -0
- /package/build/{chunk-44ID64NH.js.map → chunk-E2L744R2.js.map} +0 -0
- /package/build/{chunk-QWD63IH3.js.map → chunk-EJXUIHIF.js.map} +0 -0
- /package/build/{chunk-BXLLE2UC.js.map → chunk-GIVNKW7V.js.map} +0 -0
- /package/build/{chunk-XNCMJVRR.js.map → chunk-LG2AMEKY.js.map} +0 -0
- /package/build/{chunk-5IEF6RZY.js.map → chunk-MPVVYJPP.js.map} +0 -0
- /package/build/{chunk-JS5GX6CV.js.map → chunk-NOHO7LV2.js.map} +0 -0
- /package/build/{chunk-RFIG2TYJ.js.map → chunk-PSBMQW7U.js.map} +0 -0
- /package/build/{chunk-KNO67D7N.js.map → chunk-SZ4GCQYL.js.map} +0 -0
- /package/build/{chunk-HST5K3MT.js.map → chunk-UYPWXOQO.js.map} +0 -0
- /package/build/{chunk-RQ3P4TXY.js.map → chunk-VHW3FJA2.js.map} +0 -0
- /package/build/{chunk-SSOJHG2R.js.map → chunk-VKYDCBWE.js.map} +0 -0
- /package/build/{chunk-ET7C64VQ.js.map → chunk-W6PEJALH.js.map} +0 -0
- /package/build/{chunk-EHGVJH6O.js.map → chunk-WR4MGTEM.js.map} +0 -0
- /package/build/{chunk-SLXRJIGZ.js.map → chunk-WZ5WZJCP.js.map} +0 -0
- /package/build/{dev-OHJZWTJ3.js.map → dev-NNCONGCS.js.map} +0 -0
- /package/build/{env-pull-4FGXVGD4.js.map → env-pull-BYJAIBPF.js.map} +0 -0
- /package/build/{install-W3UPQLJF.js.map → install-RCRAG2NK.js.map} +0 -0
- /package/build/{preview-J2VHIOW6.js.map → preview-CK7VEIXP.js.map} +0 -0
- /package/build/{publish-MZFIZUAS.js.map → publish-SQVFB7LU.js.map} +0 -0
- /package/build/{render-command-SPWPJIS5.js.map → render-command-23VLQITP.js.map} +0 -0
- /package/build/{render-command-4PNWKKJS.js.map → render-command-7TCXVAFE.js.map} +0 -0
- /package/build/{render-command-TKUCFULY.js.map → render-command-ABHBR3UM.js.map} +0 -0
- /package/build/{render-command-VF63TJ6P.js.map → render-command-MVONLIU7.js.map} +0 -0
- /package/build/{render-command-5FD4ZDM6.js.map → render-command-VAU63DCO.js.map} +0 -0
- /package/build/{src-YUFFOHXE.js.map → src-2FLYDKZ3.js.map} +0 -0
- /package/build/{src-KJJPDMUK.js.map → src-FAVBG7CT.js.map} +0 -0
- /package/build/{src-4VOUM44Q.js.map → src-IQXMG6FU.js.map} +0 -0
- /package/build/{src-IQVO6HFK.js.map → src-N2VDPATT.js.map} +0 -0
- /package/build/{src-7QFM3YRG.js.map → src-ZDFXTN36.js.map} +0 -0
- /package/build/{sync-types-KJRJG6D2.js.map → sync-types-AZF2FSUW.js.map} +0 -0
- /package/build/{uninstall-5T62IZPL.js.map → uninstall-BYZIWURT.js.map} +0 -0
|
@@ -2,7 +2,7 @@ import { createRequire as _createRequire } from 'node:module';
|
|
|
2
2
|
const require = _createRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
useDevCenterClient
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-YFO6RGRK.js";
|
|
6
6
|
import {
|
|
7
7
|
wixCliAction,
|
|
8
8
|
wixCliAppFlowStepsAnswers
|
|
@@ -20,10 +20,10 @@ import {
|
|
|
20
20
|
deploymentTopologySchema,
|
|
21
21
|
getDeploymentTopologyPath,
|
|
22
22
|
useProjectModel
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-L5YUJ3GM.js";
|
|
24
24
|
import {
|
|
25
25
|
useHttpClient
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-C6TNYPLG.js";
|
|
27
27
|
import {
|
|
28
28
|
usePanoramaMethodLogger
|
|
29
29
|
} from "./chunk-ZT5B42I6.js";
|
|
@@ -40,12 +40,12 @@ import {
|
|
|
40
40
|
serializer,
|
|
41
41
|
useBiLogger,
|
|
42
42
|
useDebugLog
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-SZ4GCQYL.js";
|
|
44
44
|
import {
|
|
45
45
|
I18nProvider,
|
|
46
46
|
Trans,
|
|
47
47
|
useTranslation
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-6C4RLYLU.js";
|
|
49
49
|
import {
|
|
50
50
|
Alert,
|
|
51
51
|
Badge,
|
|
@@ -61,7 +61,7 @@ import {
|
|
|
61
61
|
useAsyncCallback,
|
|
62
62
|
useExit,
|
|
63
63
|
use_input_default
|
|
64
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-W6PEJALH.js";
|
|
65
65
|
import {
|
|
66
66
|
require_react
|
|
67
67
|
} from "./chunk-NRAQAV6T.js";
|
|
@@ -3144,13 +3144,13 @@ ${trace}`);
|
|
|
3144
3144
|
exports2.isIdentifierChar = isIdentifierChar;
|
|
3145
3145
|
exports2.isIdentifierName = isIdentifierName;
|
|
3146
3146
|
exports2.isIdentifierStart = isIdentifierStart;
|
|
3147
|
-
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-\
|
|
3148
|
-
var nonASCIIidentifierChars = "\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\u0897-\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-\
|
|
3147
|
+
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-\u088F\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\u0C5C\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDC-\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-\u1C8A\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-\uA7DC\uA7F1-\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";
|
|
3148
|
+
var nonASCIIidentifierChars = "\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\u0897-\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-\u1ADD\u1AE0-\u1AEB\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\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\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\uFF65";
|
|
3149
3149
|
var nonASCIIidentifierStart = new RegExp("[" + nonASCIIidentifierStartChars + "]");
|
|
3150
3150
|
var nonASCIIidentifier = new RegExp("[" + nonASCIIidentifierStartChars + nonASCIIidentifierChars + "]");
|
|
3151
3151
|
nonASCIIidentifierStartChars = nonASCIIidentifierChars = null;
|
|
3152
|
-
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, 4, 51, 13, 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,
|
|
3153
|
-
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, 7, 9, 32, 4, 318, 1,
|
|
3152
|
+
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, 4, 51, 13, 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, 7, 25, 39, 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, 39, 27, 10, 22, 251, 41, 7, 1, 17, 5, 57, 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, 31, 9, 2, 0, 3, 0, 2, 37, 2, 0, 26, 0, 2, 0, 45, 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, 200, 32, 32, 8, 2, 36, 18, 0, 50, 29, 113, 6, 2, 1, 2, 37, 22, 0, 26, 5, 2, 1, 2, 31, 15, 0, 24, 43, 261, 18, 16, 0, 2, 12, 2, 33, 125, 0, 80, 921, 103, 110, 18, 195, 2637, 96, 16, 1071, 18, 5, 26, 3994, 6, 582, 6842, 29, 1763, 568, 8, 30, 18, 78, 18, 29, 19, 47, 17, 3, 32, 20, 6, 18, 433, 44, 212, 63, 33, 24, 3, 24, 45, 74, 6, 0, 67, 12, 65, 1, 2, 0, 15, 4, 10, 7381, 42, 31, 98, 114, 8702, 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, 229, 29, 3, 0, 208, 30, 2, 2, 2, 1, 2, 6, 3, 4, 10, 1, 225, 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, 4381, 3, 5773, 3, 7472, 16, 621, 2467, 541, 1507, 4938, 6, 8489];
|
|
3153
|
+
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, 7, 9, 32, 4, 318, 1, 78, 5, 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, 68, 8, 2, 0, 3, 0, 2, 3, 2, 4, 2, 0, 15, 1, 83, 17, 10, 9, 5, 0, 82, 19, 13, 9, 214, 6, 3, 8, 28, 1, 83, 16, 16, 9, 82, 12, 9, 9, 7, 19, 58, 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, 199, 7, 137, 9, 54, 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, 55, 9, 266, 3, 10, 1, 2, 0, 49, 6, 4, 4, 14, 10, 5350, 0, 7, 14, 11465, 27, 2343, 9, 87, 9, 39, 4, 60, 6, 26, 9, 535, 9, 470, 0, 2, 54, 8, 3, 82, 0, 12, 1, 19628, 1, 4178, 9, 519, 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, 245, 1, 2, 9, 233, 0, 3, 0, 8, 1, 6, 0, 475, 6, 110, 6, 6, 9, 4759, 9, 787719, 239];
|
|
3154
3154
|
function isInAstralSet(code, set) {
|
|
3155
3155
|
let pos2 = 65536;
|
|
3156
3156
|
for (let i = 0, length = set.length; i < length; i += 2) {
|
|
@@ -3653,7 +3653,7 @@ ${trace}`);
|
|
|
3653
3653
|
Object.defineProperty(exports2, "__esModule", {
|
|
3654
3654
|
value: true
|
|
3655
3655
|
});
|
|
3656
|
-
exports2.allExpandedTypes = exports2.VISITOR_KEYS = exports2.NODE_PARENT_VALIDATIONS = exports2.NODE_FIELDS = exports2.FLIPPED_ALIAS_KEYS = exports2.DEPRECATED_KEYS = exports2.BUILDER_KEYS = exports2.ALIAS_KEYS = void 0;
|
|
3656
|
+
exports2.allExpandedTypes = exports2.VISITOR_KEYS = exports2.NODE_UNION_SHAPES__PRIVATE = exports2.NODE_PARENT_VALIDATIONS = exports2.NODE_FIELDS = exports2.FLIPPED_ALIAS_KEYS = exports2.DEPRECATED_KEYS = exports2.BUILDER_KEYS = exports2.ALIAS_KEYS = void 0;
|
|
3657
3657
|
exports2.arrayOf = arrayOf;
|
|
3658
3658
|
exports2.arrayOfType = arrayOfType;
|
|
3659
3659
|
exports2.assertEach = assertEach;
|
|
@@ -3680,6 +3680,7 @@ ${trace}`);
|
|
|
3680
3680
|
var BUILDER_KEYS = exports2.BUILDER_KEYS = {};
|
|
3681
3681
|
var DEPRECATED_KEYS = exports2.DEPRECATED_KEYS = {};
|
|
3682
3682
|
var NODE_PARENT_VALIDATIONS = exports2.NODE_PARENT_VALIDATIONS = {};
|
|
3683
|
+
var NODE_UNION_SHAPES__PRIVATE = exports2.NODE_UNION_SHAPES__PRIVATE = {};
|
|
3683
3684
|
function getType(val) {
|
|
3684
3685
|
if (Array.isArray(val)) {
|
|
3685
3686
|
return "array";
|
|
@@ -3858,7 +3859,7 @@ ${errors.join("\n")}`);
|
|
|
3858
3859
|
}
|
|
3859
3860
|
return validate2;
|
|
3860
3861
|
}
|
|
3861
|
-
var validTypeOpts = /* @__PURE__ */ new Set(["aliases", "builder", "deprecatedAlias", "fields", "inherits", "visitor", "validate"]);
|
|
3862
|
+
var validTypeOpts = /* @__PURE__ */ new Set(["aliases", "builder", "deprecatedAlias", "fields", "inherits", "visitor", "validate", "unionShape"]);
|
|
3862
3863
|
var validFieldKeys = /* @__PURE__ */ new Set(["default", "optional", "deprecated", "validate"]);
|
|
3863
3864
|
var store = {};
|
|
3864
3865
|
function defineAliasedType(...aliases) {
|
|
@@ -3938,6 +3939,9 @@ ${errors.join("\n")}`);
|
|
|
3938
3939
|
if (opts.validate) {
|
|
3939
3940
|
NODE_PARENT_VALIDATIONS[type] = opts.validate;
|
|
3940
3941
|
}
|
|
3942
|
+
if (opts.unionShape) {
|
|
3943
|
+
NODE_UNION_SHAPES__PRIVATE[type] = opts.unionShape;
|
|
3944
|
+
}
|
|
3941
3945
|
store[type] = opts;
|
|
3942
3946
|
}
|
|
3943
3947
|
}
|
|
@@ -3948,13 +3952,36 @@ ${errors.join("\n")}`);
|
|
|
3948
3952
|
Object.defineProperty(exports2, "__esModule", {
|
|
3949
3953
|
value: true
|
|
3950
3954
|
});
|
|
3951
|
-
exports2.patternLikeCommon = exports2.importAttributes = exports2.functionTypeAnnotationCommon = exports2.functionDeclarationCommon = exports2.functionCommon = exports2.classMethodOrPropertyCommon = exports2.classMethodOrDeclareMethodCommon = void 0;
|
|
3955
|
+
exports2.patternLikeCommon = exports2.importAttributes = exports2.functionTypeAnnotationCommon = exports2.functionDeclarationCommon = exports2.functionCommon = exports2.classMethodOrPropertyUnionShapeCommon = exports2.classMethodOrPropertyCommon = exports2.classMethodOrDeclareMethodCommon = void 0;
|
|
3952
3956
|
var _is = require_is();
|
|
3953
3957
|
var _isValidIdentifier = require_isValidIdentifier();
|
|
3954
3958
|
var _helperValidatorIdentifier = require_lib2();
|
|
3955
3959
|
var _helperStringParser = require_lib22();
|
|
3956
3960
|
var _index = require_constants();
|
|
3957
3961
|
var _utils = require_utils();
|
|
3962
|
+
var classMethodOrPropertyUnionShapeCommon = (allowPrivateName = false) => ({
|
|
3963
|
+
unionShape: {
|
|
3964
|
+
discriminator: "computed",
|
|
3965
|
+
shapes: [{
|
|
3966
|
+
name: "computed",
|
|
3967
|
+
value: [true],
|
|
3968
|
+
properties: {
|
|
3969
|
+
key: {
|
|
3970
|
+
validate: (0, _utils.assertNodeType)("Expression")
|
|
3971
|
+
}
|
|
3972
|
+
}
|
|
3973
|
+
}, {
|
|
3974
|
+
name: "nonComputed",
|
|
3975
|
+
value: [false],
|
|
3976
|
+
properties: {
|
|
3977
|
+
key: {
|
|
3978
|
+
validate: allowPrivateName ? (0, _utils.assertNodeType)("Identifier", "StringLiteral", "NumericLiteral", "BigIntLiteral", "PrivateName") : (0, _utils.assertNodeType)("Identifier", "StringLiteral", "NumericLiteral", "BigIntLiteral")
|
|
3979
|
+
}
|
|
3980
|
+
}
|
|
3981
|
+
}]
|
|
3982
|
+
}
|
|
3983
|
+
});
|
|
3984
|
+
exports2.classMethodOrPropertyUnionShapeCommon = classMethodOrPropertyUnionShapeCommon;
|
|
3958
3985
|
var defineType = (0, _utils.defineAliasedType)("Standardized");
|
|
3959
3986
|
defineType("ArrayExpression", {
|
|
3960
3987
|
fields: {
|
|
@@ -4452,6 +4479,26 @@ ${errors.join("\n")}`);
|
|
|
4452
4479
|
builder: ["object", "property", "computed", ...!process.env.BABEL_TYPES_8_BREAKING ? ["optional"] : []],
|
|
4453
4480
|
visitor: ["object", "property"],
|
|
4454
4481
|
aliases: ["Expression", "LVal", "PatternLike"],
|
|
4482
|
+
unionShape: {
|
|
4483
|
+
discriminator: "computed",
|
|
4484
|
+
shapes: [{
|
|
4485
|
+
name: "computed",
|
|
4486
|
+
value: [true],
|
|
4487
|
+
properties: {
|
|
4488
|
+
property: {
|
|
4489
|
+
validate: (0, _utils.assertNodeType)("Expression")
|
|
4490
|
+
}
|
|
4491
|
+
}
|
|
4492
|
+
}, {
|
|
4493
|
+
name: "nonComputed",
|
|
4494
|
+
value: [false],
|
|
4495
|
+
properties: {
|
|
4496
|
+
property: {
|
|
4497
|
+
validate: (0, _utils.assertNodeType)("Identifier", "PrivateName")
|
|
4498
|
+
}
|
|
4499
|
+
}
|
|
4500
|
+
}]
|
|
4501
|
+
},
|
|
4455
4502
|
fields: Object.assign({
|
|
4456
4503
|
object: {
|
|
4457
4504
|
validate: (0, _utils.assertNodeType)("Expression", "Super")
|
|
@@ -4509,9 +4556,10 @@ ${errors.join("\n")}`);
|
|
|
4509
4556
|
properties: (0, _utils.validateArrayOfType)("ObjectMethod", "ObjectProperty", "SpreadElement")
|
|
4510
4557
|
}
|
|
4511
4558
|
});
|
|
4512
|
-
defineType("ObjectMethod", {
|
|
4559
|
+
defineType("ObjectMethod", Object.assign({
|
|
4513
4560
|
builder: ["kind", "key", "params", "body", "computed", "generator", "async"],
|
|
4514
|
-
visitor: ["decorators", "key", "typeParameters", "params", "returnType", "body"]
|
|
4561
|
+
visitor: ["decorators", "key", "typeParameters", "params", "returnType", "body"]
|
|
4562
|
+
}, classMethodOrPropertyUnionShapeCommon(), {
|
|
4515
4563
|
fields: Object.assign({}, functionCommon(), functionTypeAnnotationCommon(), {
|
|
4516
4564
|
kind: Object.assign({
|
|
4517
4565
|
validate: (0, _utils.assertOneOf)("method", "get", "set")
|
|
@@ -4542,9 +4590,29 @@ ${errors.join("\n")}`);
|
|
|
4542
4590
|
}
|
|
4543
4591
|
}),
|
|
4544
4592
|
aliases: ["UserWhitespacable", "Function", "Scopable", "BlockParent", "FunctionParent", "Method", "ObjectMember"]
|
|
4545
|
-
});
|
|
4593
|
+
}));
|
|
4546
4594
|
defineType("ObjectProperty", {
|
|
4547
4595
|
builder: ["key", "value", "computed", "shorthand", ...!process.env.BABEL_TYPES_8_BREAKING ? ["decorators"] : []],
|
|
4596
|
+
unionShape: {
|
|
4597
|
+
discriminator: "computed",
|
|
4598
|
+
shapes: [{
|
|
4599
|
+
name: "computed",
|
|
4600
|
+
value: [true],
|
|
4601
|
+
properties: {
|
|
4602
|
+
key: {
|
|
4603
|
+
validate: (0, _utils.assertNodeType)("Expression")
|
|
4604
|
+
}
|
|
4605
|
+
}
|
|
4606
|
+
}, {
|
|
4607
|
+
name: "nonComputed",
|
|
4608
|
+
value: [false],
|
|
4609
|
+
properties: {
|
|
4610
|
+
key: {
|
|
4611
|
+
validate: (0, _utils.assertNodeType)("Identifier", "StringLiteral", "NumericLiteral", "BigIntLiteral", "DecimalLiteral", "PrivateName")
|
|
4612
|
+
}
|
|
4613
|
+
}
|
|
4614
|
+
}]
|
|
4615
|
+
},
|
|
4548
4616
|
fields: {
|
|
4549
4617
|
computed: {
|
|
4550
4618
|
default: false
|
|
@@ -5230,16 +5298,17 @@ ${errors.join("\n")}`);
|
|
|
5230
5298
|
}
|
|
5231
5299
|
});
|
|
5232
5300
|
exports2.classMethodOrDeclareMethodCommon = classMethodOrDeclareMethodCommon;
|
|
5233
|
-
defineType("ClassMethod", {
|
|
5301
|
+
defineType("ClassMethod", Object.assign({
|
|
5234
5302
|
aliases: ["Function", "Scopable", "BlockParent", "FunctionParent", "Method"],
|
|
5235
5303
|
builder: ["kind", "key", "params", "body", "computed", "static", "generator", "async"],
|
|
5236
|
-
visitor: ["decorators", "key", "typeParameters", "params", "returnType", "body"]
|
|
5304
|
+
visitor: ["decorators", "key", "typeParameters", "params", "returnType", "body"]
|
|
5305
|
+
}, classMethodOrPropertyUnionShapeCommon(), {
|
|
5237
5306
|
fields: Object.assign({}, classMethodOrDeclareMethodCommon(), functionTypeAnnotationCommon(), {
|
|
5238
5307
|
body: {
|
|
5239
5308
|
validate: (0, _utils.assertNodeType)("BlockStatement")
|
|
5240
5309
|
}
|
|
5241
5310
|
})
|
|
5242
|
-
});
|
|
5311
|
+
}));
|
|
5243
5312
|
defineType("ObjectPattern", {
|
|
5244
5313
|
visitor: ["decorators", "properties", "typeAnnotation"],
|
|
5245
5314
|
builder: ["properties"],
|
|
@@ -5438,10 +5507,11 @@ Expected ${val.length + 1} quasis but got ${node.quasis.length}`);
|
|
|
5438
5507
|
}
|
|
5439
5508
|
})
|
|
5440
5509
|
});
|
|
5441
|
-
defineType("ClassProperty", {
|
|
5510
|
+
defineType("ClassProperty", Object.assign({
|
|
5442
5511
|
visitor: ["decorators", "variance", "key", "typeAnnotation", "value"],
|
|
5443
5512
|
builder: ["key", "value", "typeAnnotation", "decorators", "computed", "static"],
|
|
5444
|
-
aliases: ["Property"]
|
|
5513
|
+
aliases: ["Property"]
|
|
5514
|
+
}, classMethodOrPropertyUnionShapeCommon(), {
|
|
5445
5515
|
fields: Object.assign({}, classMethodOrPropertyCommon(), {
|
|
5446
5516
|
value: {
|
|
5447
5517
|
validate: (0, _utils.assertNodeType)("Expression"),
|
|
@@ -5472,11 +5542,12 @@ Expected ${val.length + 1} quasis but got ${node.quasis.length}`);
|
|
|
5472
5542
|
optional: true
|
|
5473
5543
|
}
|
|
5474
5544
|
})
|
|
5475
|
-
});
|
|
5476
|
-
defineType("ClassAccessorProperty", {
|
|
5545
|
+
}));
|
|
5546
|
+
defineType("ClassAccessorProperty", Object.assign({
|
|
5477
5547
|
visitor: ["decorators", "key", "typeAnnotation", "value"],
|
|
5478
5548
|
builder: ["key", "value", "typeAnnotation", "decorators", "computed", "static"],
|
|
5479
|
-
aliases: ["Property", "Accessor"]
|
|
5549
|
+
aliases: ["Property", "Accessor"]
|
|
5550
|
+
}, classMethodOrPropertyUnionShapeCommon(true), {
|
|
5480
5551
|
fields: Object.assign({}, classMethodOrPropertyCommon(), {
|
|
5481
5552
|
key: {
|
|
5482
5553
|
validate: (0, _utils.chain)(function() {
|
|
@@ -5517,7 +5588,7 @@ Expected ${val.length + 1} quasis but got ${node.quasis.length}`);
|
|
|
5517
5588
|
optional: true
|
|
5518
5589
|
}
|
|
5519
5590
|
})
|
|
5520
|
-
});
|
|
5591
|
+
}));
|
|
5521
5592
|
defineType("ClassPrivateProperty", {
|
|
5522
5593
|
visitor: ["decorators", "variance", "key", "typeAnnotation", "value"],
|
|
5523
5594
|
builder: ["key", "value", "decorators", "static"],
|
|
@@ -6499,10 +6570,11 @@ Expected ${val.length + 1} quasis but got ${node.quasis.length}`);
|
|
|
6499
6570
|
visitor: ["id", "typeParameters", "params", "returnType"],
|
|
6500
6571
|
fields: Object.assign({}, (0, _core.functionDeclarationCommon)(), tSFunctionTypeAnnotationCommon())
|
|
6501
6572
|
});
|
|
6502
|
-
defineType("TSDeclareMethod", {
|
|
6503
|
-
visitor: ["decorators", "key", "typeParameters", "params", "returnType"]
|
|
6573
|
+
defineType("TSDeclareMethod", Object.assign({
|
|
6574
|
+
visitor: ["decorators", "key", "typeParameters", "params", "returnType"]
|
|
6575
|
+
}, (0, _core.classMethodOrPropertyUnionShapeCommon)(), {
|
|
6504
6576
|
fields: Object.assign({}, (0, _core.classMethodOrDeclareMethodCommon)(), tSFunctionTypeAnnotationCommon())
|
|
6505
|
-
});
|
|
6577
|
+
}));
|
|
6506
6578
|
defineType("TSQualifiedName", {
|
|
6507
6579
|
aliases: ["TSEntityName"],
|
|
6508
6580
|
visitor: ["left", "right"],
|
|
@@ -6749,14 +6821,14 @@ Expected ${val.length + 1} quasis but got ${node.quasis.length}`);
|
|
|
6749
6821
|
const unaryExpression = (0, _utils.assertNodeType)("NumericLiteral", "BigIntLiteral");
|
|
6750
6822
|
const unaryOperator = (0, _utils.assertOneOf)("-");
|
|
6751
6823
|
const literal2 = (0, _utils.assertNodeType)("NumericLiteral", "StringLiteral", "BooleanLiteral", "BigIntLiteral", "TemplateLiteral");
|
|
6752
|
-
function
|
|
6824
|
+
const validator = function validator2(parent, key2, node) {
|
|
6753
6825
|
if ((0, _is.default)("UnaryExpression", node)) {
|
|
6754
6826
|
unaryOperator(node, "operator", node.operator);
|
|
6755
6827
|
unaryExpression(node, "argument", node.argument);
|
|
6756
6828
|
} else {
|
|
6757
6829
|
literal2(parent, key2, node);
|
|
6758
6830
|
}
|
|
6759
|
-
}
|
|
6831
|
+
};
|
|
6760
6832
|
validator.oneOfNodeTypes = ["NumericLiteral", "StringLiteral", "BooleanLiteral", "BigIntLiteral", "TemplateLiteral", "UnaryExpression"];
|
|
6761
6833
|
return validator;
|
|
6762
6834
|
}()
|
|
@@ -7041,6 +7113,12 @@ Expected ${val.length + 1} quasis but got ${node.quasis.length}`);
|
|
|
7041
7113
|
return _utils.NODE_PARENT_VALIDATIONS;
|
|
7042
7114
|
}
|
|
7043
7115
|
});
|
|
7116
|
+
Object.defineProperty(exports2, "NODE_UNION_SHAPES__PRIVATE", {
|
|
7117
|
+
enumerable: true,
|
|
7118
|
+
get: function() {
|
|
7119
|
+
return _utils.NODE_UNION_SHAPES__PRIVATE;
|
|
7120
|
+
}
|
|
7121
|
+
});
|
|
7044
7122
|
Object.defineProperty(exports2, "PLACEHOLDERS", {
|
|
7045
7123
|
enumerable: true,
|
|
7046
7124
|
get: function() {
|
|
@@ -14549,7 +14627,7 @@ ${str}
|
|
|
14549
14627
|
allowUndeclaredExports: false,
|
|
14550
14628
|
allowYieldOutsideFunction: false,
|
|
14551
14629
|
plugins: [],
|
|
14552
|
-
strictMode:
|
|
14630
|
+
strictMode: void 0,
|
|
14553
14631
|
ranges: false,
|
|
14554
14632
|
tokens: false,
|
|
14555
14633
|
createImportExpressions: false,
|
|
@@ -14739,7 +14817,6 @@ ${str}
|
|
|
14739
14817
|
}
|
|
14740
14818
|
convertPrivateNameToPrivateIdentifier(node) {
|
|
14741
14819
|
const name = super.getPrivateNameSV(node);
|
|
14742
|
-
node = node;
|
|
14743
14820
|
delete node.id;
|
|
14744
14821
|
node.name = name;
|
|
14745
14822
|
return this.castNodeTo(node, "PrivateIdentifier");
|
|
@@ -14854,8 +14931,8 @@ ${str}
|
|
|
14854
14931
|
node.kind = "init";
|
|
14855
14932
|
return this.finishNode(node, "Property");
|
|
14856
14933
|
}
|
|
14857
|
-
isValidLVal(type, isUnparenthesizedInAssign, binding) {
|
|
14858
|
-
return type === "Property" ? "value" : super.isValidLVal(type, isUnparenthesizedInAssign, binding);
|
|
14934
|
+
isValidLVal(type, disallowCallExpression, isUnparenthesizedInAssign, binding) {
|
|
14935
|
+
return type === "Property" ? "value" : super.isValidLVal(type, disallowCallExpression, isUnparenthesizedInAssign, binding);
|
|
14859
14936
|
}
|
|
14860
14937
|
isAssignable(node, isBinding) {
|
|
14861
14938
|
if (node != null && this.isObjectProperty(node)) {
|
|
@@ -15572,13 +15649,13 @@ ${str}
|
|
|
15572
15649
|
context.push(types.j_expr, types.j_oTag);
|
|
15573
15650
|
};
|
|
15574
15651
|
}
|
|
15575
|
-
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-\
|
|
15576
|
-
var nonASCIIidentifierChars = "\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\u0897-\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-\
|
|
15652
|
+
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-\u088F\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\u0C5C\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDC-\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-\u1C8A\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-\uA7DC\uA7F1-\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";
|
|
15653
|
+
var nonASCIIidentifierChars = "\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\u0897-\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-\u1ADD\u1AE0-\u1AEB\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\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\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\uFF65";
|
|
15577
15654
|
var nonASCIIidentifierStart = new RegExp("[" + nonASCIIidentifierStartChars + "]");
|
|
15578
15655
|
var nonASCIIidentifier = new RegExp("[" + nonASCIIidentifierStartChars + nonASCIIidentifierChars + "]");
|
|
15579
15656
|
nonASCIIidentifierStartChars = nonASCIIidentifierChars = null;
|
|
15580
|
-
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, 4, 51, 13, 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,
|
|
15581
|
-
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, 7, 9, 32, 4, 318, 1,
|
|
15657
|
+
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, 4, 51, 13, 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, 7, 25, 39, 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, 39, 27, 10, 22, 251, 41, 7, 1, 17, 5, 57, 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, 31, 9, 2, 0, 3, 0, 2, 37, 2, 0, 26, 0, 2, 0, 45, 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, 200, 32, 32, 8, 2, 36, 18, 0, 50, 29, 113, 6, 2, 1, 2, 37, 22, 0, 26, 5, 2, 1, 2, 31, 15, 0, 24, 43, 261, 18, 16, 0, 2, 12, 2, 33, 125, 0, 80, 921, 103, 110, 18, 195, 2637, 96, 16, 1071, 18, 5, 26, 3994, 6, 582, 6842, 29, 1763, 568, 8, 30, 18, 78, 18, 29, 19, 47, 17, 3, 32, 20, 6, 18, 433, 44, 212, 63, 33, 24, 3, 24, 45, 74, 6, 0, 67, 12, 65, 1, 2, 0, 15, 4, 10, 7381, 42, 31, 98, 114, 8702, 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, 229, 29, 3, 0, 208, 30, 2, 2, 2, 1, 2, 6, 3, 4, 10, 1, 225, 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, 4381, 3, 5773, 3, 7472, 16, 621, 2467, 541, 1507, 4938, 6, 8489];
|
|
15658
|
+
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, 7, 9, 32, 4, 318, 1, 78, 5, 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, 68, 8, 2, 0, 3, 0, 2, 3, 2, 4, 2, 0, 15, 1, 83, 17, 10, 9, 5, 0, 82, 19, 13, 9, 214, 6, 3, 8, 28, 1, 83, 16, 16, 9, 82, 12, 9, 9, 7, 19, 58, 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, 199, 7, 137, 9, 54, 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, 55, 9, 266, 3, 10, 1, 2, 0, 49, 6, 4, 4, 14, 10, 5350, 0, 7, 14, 11465, 27, 2343, 9, 87, 9, 39, 4, 60, 6, 26, 9, 535, 9, 470, 0, 2, 54, 8, 3, 82, 0, 12, 1, 19628, 1, 4178, 9, 519, 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, 245, 1, 2, 9, 233, 0, 3, 0, 8, 1, 6, 0, 475, 6, 110, 6, 6, 9, 4759, 9, 787719, 239];
|
|
15582
15659
|
function isInAstralSet(code2, set) {
|
|
15583
15660
|
let pos2 = 65536;
|
|
15584
15661
|
for (let i = 0, length = set.length; i < length; i += 2) {
|
|
@@ -15762,7 +15839,7 @@ ${str}
|
|
|
15762
15839
|
if (bindingType & 8) {
|
|
15763
15840
|
return scope.names.has(name);
|
|
15764
15841
|
}
|
|
15765
|
-
const type = scope.names.get(name);
|
|
15842
|
+
const type = scope.names.get(name) || 0;
|
|
15766
15843
|
if (bindingType & 16) {
|
|
15767
15844
|
return (type & 2) > 0 || !this.treatFunctionsAsVarInScope(scope) && (type & 1) > 0;
|
|
15768
15845
|
}
|
|
@@ -16078,9 +16155,8 @@ ${str}
|
|
|
16078
16155
|
return this.flowParseDeclareInterface(node);
|
|
16079
16156
|
} else if (this.match(82)) {
|
|
16080
16157
|
return this.flowParseDeclareExportDeclaration(node, insideModule);
|
|
16081
|
-
} else {
|
|
16082
|
-
this.unexpected();
|
|
16083
16158
|
}
|
|
16159
|
+
throw this.unexpected();
|
|
16084
16160
|
}
|
|
16085
16161
|
flowParseDeclareVariable(node) {
|
|
16086
16162
|
this.next();
|
|
@@ -16100,18 +16176,17 @@ ${str}
|
|
|
16100
16176
|
const body = bodyNode.body = [];
|
|
16101
16177
|
this.expect(5);
|
|
16102
16178
|
while (!this.match(8)) {
|
|
16103
|
-
|
|
16179
|
+
const bodyNode2 = this.startNode();
|
|
16104
16180
|
if (this.match(83)) {
|
|
16105
16181
|
this.next();
|
|
16106
16182
|
if (!this.isContextual(130) && !this.match(87)) {
|
|
16107
16183
|
this.raise(FlowErrors.InvalidNonTypeImportInDeclareModule, this.state.lastTokStartLoc);
|
|
16108
16184
|
}
|
|
16109
|
-
super.parseImport(bodyNode2);
|
|
16185
|
+
body.push(super.parseImport(bodyNode2));
|
|
16110
16186
|
} else {
|
|
16111
16187
|
this.expectContextual(125, FlowErrors.UnsupportedStatementInDeclareModule);
|
|
16112
|
-
|
|
16188
|
+
body.push(this.flowParseDeclare(bodyNode2, true));
|
|
16113
16189
|
}
|
|
16114
|
-
body.push(bodyNode2);
|
|
16115
16190
|
}
|
|
16116
16191
|
this.scope.exit();
|
|
16117
16192
|
this.expect(8);
|
|
@@ -16172,7 +16247,7 @@ ${str}
|
|
|
16172
16247
|
}
|
|
16173
16248
|
}
|
|
16174
16249
|
}
|
|
16175
|
-
this.unexpected();
|
|
16250
|
+
throw this.unexpected();
|
|
16176
16251
|
}
|
|
16177
16252
|
flowParseDeclareModuleExports(node) {
|
|
16178
16253
|
this.next();
|
|
@@ -16380,7 +16455,7 @@ ${str}
|
|
|
16380
16455
|
return this.finishNode(node, "TypeParameterInstantiation");
|
|
16381
16456
|
}
|
|
16382
16457
|
flowParseTypeParameterInstantiationCallOrNew() {
|
|
16383
|
-
if (this.reScan_lt() !== 47) return;
|
|
16458
|
+
if (this.reScan_lt() !== 47) return null;
|
|
16384
16459
|
const node = this.startNode();
|
|
16385
16460
|
const oldInType = this.state.inType;
|
|
16386
16461
|
node.params = [];
|
|
@@ -16874,8 +16949,7 @@ ${str}
|
|
|
16874
16949
|
}
|
|
16875
16950
|
throw this.raise(FlowErrors.UnexpectedSubtractionOperand, this.state.startLoc);
|
|
16876
16951
|
}
|
|
16877
|
-
this.unexpected();
|
|
16878
|
-
return;
|
|
16952
|
+
throw this.unexpected();
|
|
16879
16953
|
case 135:
|
|
16880
16954
|
return this.parseLiteral(this.state.value, "NumberLiteralTypeAnnotation");
|
|
16881
16955
|
case 136:
|
|
@@ -16906,7 +16980,7 @@ ${str}
|
|
|
16906
16980
|
return this.flowIdentToTypeAnnotation(startLoc, node, this.parseIdentifier());
|
|
16907
16981
|
}
|
|
16908
16982
|
}
|
|
16909
|
-
this.unexpected();
|
|
16983
|
+
throw this.unexpected();
|
|
16910
16984
|
}
|
|
16911
16985
|
flowParsePostfixType() {
|
|
16912
16986
|
const startLoc = this.state.startLoc;
|
|
@@ -17367,15 +17441,15 @@ ${str}
|
|
|
17367
17441
|
}
|
|
17368
17442
|
return exprList;
|
|
17369
17443
|
}
|
|
17370
|
-
parseArrayLike(close,
|
|
17371
|
-
const node = super.parseArrayLike(close,
|
|
17372
|
-
if (
|
|
17444
|
+
parseArrayLike(close, isTuple, refExpressionErrors) {
|
|
17445
|
+
const node = super.parseArrayLike(close, isTuple, refExpressionErrors);
|
|
17446
|
+
if (refExpressionErrors != null && !this.state.maybeInArrowParameters) {
|
|
17373
17447
|
this.toReferencedList(node.elements);
|
|
17374
17448
|
}
|
|
17375
17449
|
return node;
|
|
17376
17450
|
}
|
|
17377
|
-
isValidLVal(type, isParenthesized, binding) {
|
|
17378
|
-
return type === "TypeCastExpression" || super.isValidLVal(type, isParenthesized, binding);
|
|
17451
|
+
isValidLVal(type, disallowCallExpression, isParenthesized, binding) {
|
|
17452
|
+
return type === "TypeCastExpression" || super.isValidLVal(type, disallowCallExpression, isParenthesized, binding);
|
|
17379
17453
|
}
|
|
17380
17454
|
parseClassProperty(node) {
|
|
17381
17455
|
if (this.match(14)) {
|
|
@@ -19214,10 +19288,8 @@ ${str}
|
|
|
19214
19288
|
setLeadingComments(commentWS.trailingNode, comments);
|
|
19215
19289
|
}
|
|
19216
19290
|
} else {
|
|
19217
|
-
const
|
|
19218
|
-
|
|
19219
|
-
start: commentStart
|
|
19220
|
-
} = commentWS;
|
|
19291
|
+
const node = commentWS.containingNode;
|
|
19292
|
+
const commentStart = commentWS.start;
|
|
19221
19293
|
if (this.input.charCodeAt(this.offsetToSourcePos(commentStart) - 1) === 44) {
|
|
19222
19294
|
switch (node.type) {
|
|
19223
19295
|
case "ObjectExpression":
|
|
@@ -21313,7 +21385,7 @@ ${str}
|
|
|
21313
21385
|
if (isLHS) {
|
|
21314
21386
|
if (parenthesized.type === "Identifier") {
|
|
21315
21387
|
this.expressionScope.recordArrowParameterBindingError(Errors.InvalidParenthesizedAssignment, node);
|
|
21316
|
-
} else if (parenthesized.type !== "MemberExpression" && !this.isOptionalMemberExpression(parenthesized)) {
|
|
21388
|
+
} else if (parenthesized.type !== "CallExpression" && parenthesized.type !== "MemberExpression" && !this.isOptionalMemberExpression(parenthesized)) {
|
|
21317
21389
|
this.raise(Errors.InvalidParenthesizedAssignment, node);
|
|
21318
21390
|
}
|
|
21319
21391
|
} else {
|
|
@@ -21585,7 +21657,7 @@ ${str}
|
|
|
21585
21657
|
node.right = this.parseMaybeAssignAllowIn();
|
|
21586
21658
|
return this.finishNode(node, "AssignmentPattern");
|
|
21587
21659
|
}
|
|
21588
|
-
isValidLVal(type, isUnparenthesizedInAssign, binding) {
|
|
21660
|
+
isValidLVal(type, disallowCallExpression, isUnparenthesizedInAssign, binding) {
|
|
21589
21661
|
switch (type) {
|
|
21590
21662
|
case "AssignmentPattern":
|
|
21591
21663
|
return "left";
|
|
@@ -21601,13 +21673,17 @@ ${str}
|
|
|
21601
21673
|
return "properties";
|
|
21602
21674
|
case "VoidPattern":
|
|
21603
21675
|
return true;
|
|
21676
|
+
case "CallExpression":
|
|
21677
|
+
if (!disallowCallExpression && !this.state.strict && this.optionFlags & 8192) {
|
|
21678
|
+
return true;
|
|
21679
|
+
}
|
|
21604
21680
|
}
|
|
21605
21681
|
return false;
|
|
21606
21682
|
}
|
|
21607
21683
|
isOptionalMemberExpression(expression) {
|
|
21608
21684
|
return expression.type === "OptionalMemberExpression";
|
|
21609
21685
|
}
|
|
21610
|
-
checkLVal(expression, ancestor, binding = 64, checkClashes = false, strictModeChanged = false, hasParenthesizedAncestor = false) {
|
|
21686
|
+
checkLVal(expression, ancestor, binding = 64, checkClashes = false, strictModeChanged = false, hasParenthesizedAncestor = false, disallowCallExpression = false) {
|
|
21611
21687
|
var _expression$extra;
|
|
21612
21688
|
const type = expression.type;
|
|
21613
21689
|
if (this.isObjectMethod(expression)) return;
|
|
@@ -21642,7 +21718,9 @@ ${str}
|
|
|
21642
21718
|
} else if (type === "VoidPattern" && ancestor.type === "CatchClause") {
|
|
21643
21719
|
this.raise(Errors.VoidPatternCatchClauseParam, expression);
|
|
21644
21720
|
}
|
|
21645
|
-
const
|
|
21721
|
+
const unwrappedExpression = unwrapParenthesizedExpression(expression);
|
|
21722
|
+
disallowCallExpression || (disallowCallExpression = unwrappedExpression.type === "CallExpression" && (unwrappedExpression.callee.type === "Import" || unwrappedExpression.callee.type === "Super"));
|
|
21723
|
+
const validity = this.isValidLVal(type, disallowCallExpression, !(hasParenthesizedAncestor || (_expression$extra = expression.extra) != null && _expression$extra.parenthesized) && ancestor.type === "AssignmentExpression", binding);
|
|
21646
21724
|
if (validity === true) return;
|
|
21647
21725
|
if (validity === false) {
|
|
21648
21726
|
const ParseErrorClass = binding === 64 ? Errors.InvalidLhs : Errors.InvalidLhsBinding;
|
|
@@ -21665,11 +21743,11 @@ ${str}
|
|
|
21665
21743
|
if (Array.isArray(val)) {
|
|
21666
21744
|
for (const child of val) {
|
|
21667
21745
|
if (child) {
|
|
21668
|
-
this.checkLVal(child, nextAncestor, binding, checkClashes, strictModeChanged, isParenthesizedExpression);
|
|
21746
|
+
this.checkLVal(child, nextAncestor, binding, checkClashes, strictModeChanged, isParenthesizedExpression, true);
|
|
21669
21747
|
}
|
|
21670
21748
|
}
|
|
21671
21749
|
} else if (val) {
|
|
21672
|
-
this.checkLVal(val, nextAncestor, binding, checkClashes, strictModeChanged, isParenthesizedExpression);
|
|
21750
|
+
this.checkLVal(val, nextAncestor, binding, checkClashes, strictModeChanged, isParenthesizedExpression, disallowCallExpression);
|
|
21673
21751
|
}
|
|
21674
21752
|
}
|
|
21675
21753
|
checkIdentifier(at, bindingType, strictModeChanged = false) {
|
|
@@ -21717,6 +21795,7 @@ ${str}
|
|
|
21717
21795
|
return true;
|
|
21718
21796
|
}
|
|
21719
21797
|
};
|
|
21798
|
+
var keywordAndTSRelationalOperator = /in(?:stanceof)?|as|satisfies/y;
|
|
21720
21799
|
function nonNull(x) {
|
|
21721
21800
|
if (x == null) {
|
|
21722
21801
|
throw new Error(`Unexpected ${x} value.`);
|
|
@@ -22603,7 +22682,7 @@ ${str}
|
|
|
22603
22682
|
}
|
|
22604
22683
|
}
|
|
22605
22684
|
}
|
|
22606
|
-
this.unexpected();
|
|
22685
|
+
throw this.unexpected();
|
|
22607
22686
|
}
|
|
22608
22687
|
tsParseArrayTypeOrHigher() {
|
|
22609
22688
|
const {
|
|
@@ -23166,51 +23245,22 @@ ${str}
|
|
|
23166
23245
|
}
|
|
23167
23246
|
default:
|
|
23168
23247
|
if (tokenIsIdentifier(startType)) {
|
|
23169
|
-
return this.tsParseDeclaration(node, this.state.
|
|
23248
|
+
return this.tsParseDeclaration(node, this.state.type, true, null);
|
|
23170
23249
|
}
|
|
23171
23250
|
}
|
|
23172
23251
|
});
|
|
23173
23252
|
}
|
|
23174
23253
|
tsTryParseExportDeclaration() {
|
|
23175
|
-
return this.tsParseDeclaration(this.startNode(), this.state.
|
|
23176
|
-
}
|
|
23177
|
-
tsParseExpressionStatement(node, expr, decorators) {
|
|
23178
|
-
switch (expr.name) {
|
|
23179
|
-
case "declare": {
|
|
23180
|
-
const declaration = this.tsTryParseDeclare(node);
|
|
23181
|
-
if (declaration) {
|
|
23182
|
-
declaration.declare = true;
|
|
23183
|
-
}
|
|
23184
|
-
return declaration;
|
|
23185
|
-
}
|
|
23186
|
-
case "global":
|
|
23187
|
-
if (this.match(5)) {
|
|
23188
|
-
this.scope.enter(1024);
|
|
23189
|
-
this.prodParam.enter(0);
|
|
23190
|
-
const mod = node;
|
|
23191
|
-
mod.kind = "global";
|
|
23192
|
-
{
|
|
23193
|
-
node.global = true;
|
|
23194
|
-
}
|
|
23195
|
-
mod.id = expr;
|
|
23196
|
-
mod.body = this.tsParseModuleBlock();
|
|
23197
|
-
this.scope.exit();
|
|
23198
|
-
this.prodParam.exit();
|
|
23199
|
-
return this.finishNode(mod, "TSModuleDeclaration");
|
|
23200
|
-
}
|
|
23201
|
-
break;
|
|
23202
|
-
default:
|
|
23203
|
-
return this.tsParseDeclaration(node, expr.name, false, decorators);
|
|
23204
|
-
}
|
|
23254
|
+
return this.tsParseDeclaration(this.startNode(), this.state.type, true, null);
|
|
23205
23255
|
}
|
|
23206
|
-
tsParseDeclaration(node,
|
|
23207
|
-
switch (
|
|
23208
|
-
case
|
|
23256
|
+
tsParseDeclaration(node, type, next, decorators) {
|
|
23257
|
+
switch (type) {
|
|
23258
|
+
case 124:
|
|
23209
23259
|
if (this.tsCheckLineTerminator(next) && (this.match(80) || tokenIsIdentifier(this.state.type))) {
|
|
23210
23260
|
return this.tsParseAbstractDeclaration(node, decorators);
|
|
23211
23261
|
}
|
|
23212
23262
|
break;
|
|
23213
|
-
case
|
|
23263
|
+
case 127:
|
|
23214
23264
|
if (this.tsCheckLineTerminator(next)) {
|
|
23215
23265
|
if (this.match(134)) {
|
|
23216
23266
|
return this.tsParseAmbientExternalModuleDeclaration(node);
|
|
@@ -23220,13 +23270,13 @@ ${str}
|
|
|
23220
23270
|
}
|
|
23221
23271
|
}
|
|
23222
23272
|
break;
|
|
23223
|
-
case
|
|
23273
|
+
case 128:
|
|
23224
23274
|
if (this.tsCheckLineTerminator(next) && tokenIsIdentifier(this.state.type)) {
|
|
23225
23275
|
node.kind = "namespace";
|
|
23226
23276
|
return this.tsParseModuleOrNamespaceDeclaration(node);
|
|
23227
23277
|
}
|
|
23228
23278
|
break;
|
|
23229
|
-
case
|
|
23279
|
+
case 130:
|
|
23230
23280
|
if (this.tsCheckLineTerminator(next) && tokenIsIdentifier(this.state.type)) {
|
|
23231
23281
|
return this.tsParseTypeAliasDeclaration(node);
|
|
23232
23282
|
}
|
|
@@ -23367,8 +23417,8 @@ ${str}
|
|
|
23367
23417
|
this.tsCheckForInvalidTypeCasts(exprList);
|
|
23368
23418
|
return exprList;
|
|
23369
23419
|
}
|
|
23370
|
-
parseArrayLike(close,
|
|
23371
|
-
const node = super.parseArrayLike(close,
|
|
23420
|
+
parseArrayLike(close, isTuple, refExpressionErrors) {
|
|
23421
|
+
const node = super.parseArrayLike(close, isTuple, refExpressionErrors);
|
|
23372
23422
|
if (node.type === "ArrayExpression") {
|
|
23373
23423
|
this.tsCheckForInvalidTypeCasts(node.elements);
|
|
23374
23424
|
}
|
|
@@ -23614,19 +23664,78 @@ ${str}
|
|
|
23614
23664
|
return declaration;
|
|
23615
23665
|
}
|
|
23616
23666
|
parseStatementContent(flags, decorators) {
|
|
23617
|
-
if (this.
|
|
23618
|
-
|
|
23619
|
-
|
|
23620
|
-
|
|
23621
|
-
|
|
23622
|
-
|
|
23623
|
-
|
|
23624
|
-
|
|
23625
|
-
|
|
23626
|
-
|
|
23627
|
-
|
|
23628
|
-
|
|
23629
|
-
|
|
23667
|
+
if (!this.state.containsEsc) {
|
|
23668
|
+
switch (this.state.type) {
|
|
23669
|
+
case 75: {
|
|
23670
|
+
if (this.isLookaheadContextual("enum")) {
|
|
23671
|
+
const node = this.startNode();
|
|
23672
|
+
this.expect(75);
|
|
23673
|
+
return this.tsParseEnumDeclaration(node, {
|
|
23674
|
+
const: true
|
|
23675
|
+
});
|
|
23676
|
+
}
|
|
23677
|
+
break;
|
|
23678
|
+
}
|
|
23679
|
+
case 124:
|
|
23680
|
+
case 125: {
|
|
23681
|
+
if (this.nextTokenIsIdentifierAndNotTSRelationalOperatorOnSameLine()) {
|
|
23682
|
+
const token2 = this.state.type;
|
|
23683
|
+
const node = this.startNode();
|
|
23684
|
+
this.next();
|
|
23685
|
+
const declaration = token2 === 125 ? this.tsTryParseDeclare(node) : this.tsParseAbstractDeclaration(node, decorators);
|
|
23686
|
+
if (declaration) {
|
|
23687
|
+
if (token2 === 125) {
|
|
23688
|
+
declaration.declare = true;
|
|
23689
|
+
}
|
|
23690
|
+
return declaration;
|
|
23691
|
+
} else {
|
|
23692
|
+
node.expression = this.createIdentifier(this.startNodeAt(node.loc.start), token2 === 125 ? "declare" : "abstract");
|
|
23693
|
+
this.semicolon(false);
|
|
23694
|
+
return this.finishNode(node, "ExpressionStatement");
|
|
23695
|
+
}
|
|
23696
|
+
}
|
|
23697
|
+
break;
|
|
23698
|
+
}
|
|
23699
|
+
case 126:
|
|
23700
|
+
return this.tsParseEnumDeclaration(this.startNode());
|
|
23701
|
+
case 112: {
|
|
23702
|
+
const nextCh = this.lookaheadCharCode();
|
|
23703
|
+
if (nextCh === 123) {
|
|
23704
|
+
const node = this.startNode();
|
|
23705
|
+
return this.tsParseAmbientExternalModuleDeclaration(node);
|
|
23706
|
+
}
|
|
23707
|
+
break;
|
|
23708
|
+
}
|
|
23709
|
+
case 129: {
|
|
23710
|
+
const result = this.tsParseInterfaceDeclaration(this.startNode());
|
|
23711
|
+
if (result) return result;
|
|
23712
|
+
break;
|
|
23713
|
+
}
|
|
23714
|
+
case 127: {
|
|
23715
|
+
if (this.nextTokenIsIdentifierOrStringLiteralOnSameLine()) {
|
|
23716
|
+
const node = this.startNode();
|
|
23717
|
+
this.next();
|
|
23718
|
+
return this.tsParseDeclaration(node, 127, false, decorators);
|
|
23719
|
+
}
|
|
23720
|
+
break;
|
|
23721
|
+
}
|
|
23722
|
+
case 128: {
|
|
23723
|
+
if (this.nextTokenIsIdentifierOnSameLine()) {
|
|
23724
|
+
const node = this.startNode();
|
|
23725
|
+
this.next();
|
|
23726
|
+
return this.tsParseDeclaration(node, 128, false, decorators);
|
|
23727
|
+
}
|
|
23728
|
+
break;
|
|
23729
|
+
}
|
|
23730
|
+
case 130: {
|
|
23731
|
+
if (this.nextTokenIsIdentifierOnSameLine()) {
|
|
23732
|
+
const node = this.startNode();
|
|
23733
|
+
this.next();
|
|
23734
|
+
return this.tsParseTypeAliasDeclaration(node);
|
|
23735
|
+
}
|
|
23736
|
+
break;
|
|
23737
|
+
}
|
|
23738
|
+
}
|
|
23630
23739
|
}
|
|
23631
23740
|
return super.parseStatementContent(flags, decorators);
|
|
23632
23741
|
}
|
|
@@ -23710,10 +23819,6 @@ ${str}
|
|
|
23710
23819
|
this.raise(TSErrors.ClassMethodHasDeclare, methodOrProp);
|
|
23711
23820
|
}
|
|
23712
23821
|
}
|
|
23713
|
-
parseExpressionStatement(node, expr, decorators) {
|
|
23714
|
-
const decl = expr.type === "Identifier" ? this.tsParseExpressionStatement(node, expr, decorators) : void 0;
|
|
23715
|
-
return decl || super.parseExpressionStatement(node, expr, decorators);
|
|
23716
|
-
}
|
|
23717
23822
|
shouldParseExportDeclaration() {
|
|
23718
23823
|
if (this.tsIsDeclarationStart()) return true;
|
|
23719
23824
|
return super.shouldParseExportDeclaration();
|
|
@@ -24038,7 +24143,7 @@ ${str}
|
|
|
24038
24143
|
super.checkToRestConversion(node, allowPattern);
|
|
24039
24144
|
}
|
|
24040
24145
|
}
|
|
24041
|
-
isValidLVal(type, isUnparenthesizedInAssign, binding) {
|
|
24146
|
+
isValidLVal(type, disallowCallExpression, isUnparenthesizedInAssign, binding) {
|
|
24042
24147
|
switch (type) {
|
|
24043
24148
|
case "TSTypeCastExpression":
|
|
24044
24149
|
return true;
|
|
@@ -24051,7 +24156,7 @@ ${str}
|
|
|
24051
24156
|
case "TSTypeAssertion":
|
|
24052
24157
|
return (binding !== 64 || !isUnparenthesizedInAssign) && ["expression", true];
|
|
24053
24158
|
default:
|
|
24054
|
-
return super.isValidLVal(type, isUnparenthesizedInAssign, binding);
|
|
24159
|
+
return super.isValidLVal(type, disallowCallExpression, isUnparenthesizedInAssign, binding);
|
|
24055
24160
|
}
|
|
24056
24161
|
}
|
|
24057
24162
|
parseBindingAtom() {
|
|
@@ -24213,10 +24318,11 @@ ${str}
|
|
|
24213
24318
|
node.abstract = true;
|
|
24214
24319
|
this.raise(TSErrors.NonClassMethodPropertyHasAbstractModifier, node);
|
|
24215
24320
|
return this.tsParseInterfaceDeclaration(node);
|
|
24321
|
+
} else {
|
|
24322
|
+
return null;
|
|
24216
24323
|
}
|
|
24217
|
-
} else {
|
|
24218
|
-
this.unexpected(null, 80);
|
|
24219
24324
|
}
|
|
24325
|
+
throw this.unexpected(null, 80);
|
|
24220
24326
|
}
|
|
24221
24327
|
parseMethod(node, isGenerator, isAsync, isConstructor, allowDirectSuper, type, inClassScope) {
|
|
24222
24328
|
const method = super.parseMethod(node, isGenerator, isAsync, isConstructor, allowDirectSuper, type, inClassScope);
|
|
@@ -24432,6 +24538,32 @@ ${str}
|
|
|
24432
24538
|
return;
|
|
24433
24539
|
}
|
|
24434
24540
|
}
|
|
24541
|
+
chStartsBindingIdentifierAndNotRelationalOperator(ch, pos2) {
|
|
24542
|
+
if (isIdentifierStart(ch)) {
|
|
24543
|
+
keywordAndTSRelationalOperator.lastIndex = pos2;
|
|
24544
|
+
if (keywordAndTSRelationalOperator.test(this.input)) {
|
|
24545
|
+
const endCh = this.codePointAtPos(keywordAndTSRelationalOperator.lastIndex);
|
|
24546
|
+
if (!isIdentifierChar(endCh) && endCh !== 92) {
|
|
24547
|
+
return false;
|
|
24548
|
+
}
|
|
24549
|
+
}
|
|
24550
|
+
return true;
|
|
24551
|
+
} else if (ch === 92) {
|
|
24552
|
+
return true;
|
|
24553
|
+
} else {
|
|
24554
|
+
return false;
|
|
24555
|
+
}
|
|
24556
|
+
}
|
|
24557
|
+
nextTokenIsIdentifierAndNotTSRelationalOperatorOnSameLine() {
|
|
24558
|
+
const next = this.nextTokenInLineStart();
|
|
24559
|
+
const nextCh = this.codePointAtPos(next);
|
|
24560
|
+
return this.chStartsBindingIdentifierAndNotRelationalOperator(nextCh, next);
|
|
24561
|
+
}
|
|
24562
|
+
nextTokenIsIdentifierOrStringLiteralOnSameLine() {
|
|
24563
|
+
const next = this.nextTokenInLineStart();
|
|
24564
|
+
const nextCh = this.codePointAtPos(next);
|
|
24565
|
+
return this.chStartsBindingIdentifier(nextCh, next) || nextCh === 34 || nextCh === 39;
|
|
24566
|
+
}
|
|
24435
24567
|
};
|
|
24436
24568
|
function isPossiblyLiteralEnum(expression) {
|
|
24437
24569
|
if (expression.type !== "MemberExpression") return false;
|
|
@@ -24560,8 +24692,8 @@ ${str}
|
|
|
24560
24692
|
parseBindingAtom() {
|
|
24561
24693
|
return this.parsePlaceholder("Pattern") || super.parseBindingAtom();
|
|
24562
24694
|
}
|
|
24563
|
-
isValidLVal(type, isParenthesized, binding) {
|
|
24564
|
-
return type === "Placeholder" || super.isValidLVal(type, isParenthesized, binding);
|
|
24695
|
+
isValidLVal(type, disallowCallExpression, isParenthesized, binding) {
|
|
24696
|
+
return type === "Placeholder" || super.isValidLVal(type, disallowCallExpression, isParenthesized, binding);
|
|
24565
24697
|
}
|
|
24566
24698
|
toAssignable(node, isLHS) {
|
|
24567
24699
|
if (node && node.type === "Placeholder" && node.expectedNode === "Expression") {
|
|
@@ -24961,7 +25093,7 @@ ${str}
|
|
|
24961
25093
|
}
|
|
24962
25094
|
this.next();
|
|
24963
25095
|
node.right = this.parseMaybeAssign();
|
|
24964
|
-
this.checkLVal(left, this.finishNode(node, "AssignmentExpression"));
|
|
25096
|
+
this.checkLVal(left, this.finishNode(node, "AssignmentExpression"), void 0, void 0, void 0, void 0, operator === "||=" || operator === "&&=" || operator === "??=");
|
|
24965
25097
|
return node;
|
|
24966
25098
|
} else if (ownExpressionErrors) {
|
|
24967
25099
|
this.checkExpressionErrors(refExpressionErrors, true);
|
|
@@ -25431,7 +25563,7 @@ ${str}
|
|
|
25431
25563
|
return this.parseParenAndDistinguishExpression(canBeArrow);
|
|
25432
25564
|
}
|
|
25433
25565
|
case 0: {
|
|
25434
|
-
return this.parseArrayLike(3,
|
|
25566
|
+
return this.parseArrayLike(3, false, refExpressionErrors);
|
|
25435
25567
|
}
|
|
25436
25568
|
case 5: {
|
|
25437
25569
|
return this.parseObjectLike(8, false, false, refExpressionErrors);
|
|
@@ -25481,24 +25613,21 @@ ${str}
|
|
|
25481
25613
|
if (pipeProposal) {
|
|
25482
25614
|
return this.parseTopicReference(pipeProposal);
|
|
25483
25615
|
}
|
|
25484
|
-
this.unexpected();
|
|
25485
|
-
break;
|
|
25616
|
+
throw this.unexpected();
|
|
25486
25617
|
}
|
|
25487
25618
|
case 47: {
|
|
25488
25619
|
const lookaheadCh = this.input.codePointAt(this.nextTokenStart());
|
|
25489
25620
|
if (isIdentifierStart(lookaheadCh) || lookaheadCh === 62) {
|
|
25490
|
-
this.expectOnePlugin(["jsx", "flow", "typescript"]);
|
|
25491
|
-
} else {
|
|
25492
|
-
this.unexpected();
|
|
25621
|
+
throw this.expectOnePlugin(["jsx", "flow", "typescript"]);
|
|
25493
25622
|
}
|
|
25494
|
-
|
|
25623
|
+
throw this.unexpected();
|
|
25495
25624
|
}
|
|
25496
25625
|
default:
|
|
25497
25626
|
{
|
|
25498
25627
|
if (type === 137) {
|
|
25499
25628
|
return this.parseDecimalLiteral(this.state.value);
|
|
25500
25629
|
} else if (type === 2 || type === 1) {
|
|
25501
|
-
return this.parseArrayLike(this.state.type === 2 ? 4 : 3,
|
|
25630
|
+
return this.parseArrayLike(this.state.type === 2 ? 4 : 3, true);
|
|
25502
25631
|
} else if (type === 6 || type === 7) {
|
|
25503
25632
|
return this.parseObjectLike(this.state.type === 6 ? 9 : 8, false, true);
|
|
25504
25633
|
}
|
|
@@ -25535,7 +25664,7 @@ ${str}
|
|
|
25535
25664
|
}
|
|
25536
25665
|
return id;
|
|
25537
25666
|
} else {
|
|
25538
|
-
this.unexpected();
|
|
25667
|
+
throw this.unexpected();
|
|
25539
25668
|
}
|
|
25540
25669
|
}
|
|
25541
25670
|
}
|
|
@@ -25548,9 +25677,8 @@ ${str}
|
|
|
25548
25677
|
this.state.end--;
|
|
25549
25678
|
this.state.endLoc = createPositionWithColumnOffset(this.state.endLoc, -1);
|
|
25550
25679
|
return this.parseTopicReference(pipeProposal);
|
|
25551
|
-
} else {
|
|
25552
|
-
this.unexpected();
|
|
25553
25680
|
}
|
|
25681
|
+
throw this.unexpected();
|
|
25554
25682
|
}
|
|
25555
25683
|
parseTopicReference(pipeProposal) {
|
|
25556
25684
|
const node = this.startNode();
|
|
@@ -25625,10 +25753,18 @@ ${str}
|
|
|
25625
25753
|
parseSuper() {
|
|
25626
25754
|
const node = this.startNode();
|
|
25627
25755
|
this.next();
|
|
25628
|
-
if (this.match(10) && !this.scope.allowDirectSuper
|
|
25629
|
-
|
|
25630
|
-
|
|
25631
|
-
|
|
25756
|
+
if (this.match(10) && !this.scope.allowDirectSuper) {
|
|
25757
|
+
{
|
|
25758
|
+
if (!(this.optionFlags & 16)) {
|
|
25759
|
+
this.raise(Errors.SuperNotAllowed, node);
|
|
25760
|
+
}
|
|
25761
|
+
}
|
|
25762
|
+
} else if (!this.scope.allowSuper) {
|
|
25763
|
+
{
|
|
25764
|
+
if (!(this.optionFlags & 16)) {
|
|
25765
|
+
this.raise(Errors.UnexpectedSuper, node);
|
|
25766
|
+
}
|
|
25767
|
+
}
|
|
25632
25768
|
}
|
|
25633
25769
|
if (!this.match(10) && !this.match(0) && !this.match(16)) {
|
|
25634
25770
|
this.raise(Errors.UnsupportedSuper, node);
|
|
@@ -26141,7 +26277,7 @@ ${str}
|
|
|
26141
26277
|
this.scope.exit();
|
|
26142
26278
|
return finishedNode;
|
|
26143
26279
|
}
|
|
26144
|
-
parseArrayLike(close,
|
|
26280
|
+
parseArrayLike(close, isTuple, refExpressionErrors) {
|
|
26145
26281
|
if (isTuple) {
|
|
26146
26282
|
this.expectPlugin("recordAndTuple");
|
|
26147
26283
|
}
|
|
@@ -26768,9 +26904,7 @@ ${str}
|
|
|
26768
26904
|
if (!this.isContextual(107)) {
|
|
26769
26905
|
return false;
|
|
26770
26906
|
}
|
|
26771
|
-
|
|
26772
|
-
const nextCh = this.codePointAtPos(next);
|
|
26773
|
-
return this.chStartsBindingIdentifier(nextCh, next);
|
|
26907
|
+
return this.nextTokenIsIdentifierOnSameLine();
|
|
26774
26908
|
}
|
|
26775
26909
|
isForUsing() {
|
|
26776
26910
|
if (!this.isContextual(107)) {
|
|
@@ -26789,6 +26923,11 @@ ${str}
|
|
|
26789
26923
|
}
|
|
26790
26924
|
return false;
|
|
26791
26925
|
}
|
|
26926
|
+
nextTokenIsIdentifierOnSameLine() {
|
|
26927
|
+
const next = this.nextTokenInLineStart();
|
|
26928
|
+
const nextCh = this.codePointAtPos(next);
|
|
26929
|
+
return this.chStartsBindingIdentifier(nextCh, next);
|
|
26930
|
+
}
|
|
26792
26931
|
isAwaitUsing() {
|
|
26793
26932
|
if (!this.isContextual(96)) {
|
|
26794
26933
|
return false;
|
|
@@ -27926,7 +28065,7 @@ ${str}
|
|
|
27926
28065
|
this.sawUnambiguousESM = true;
|
|
27927
28066
|
return this.finishNode(node2, "ExportDefaultDeclaration");
|
|
27928
28067
|
}
|
|
27929
|
-
this.unexpected(null, 5);
|
|
28068
|
+
throw this.unexpected(null, 5);
|
|
27930
28069
|
}
|
|
27931
28070
|
eatExportStar(node) {
|
|
27932
28071
|
return this.eat(55);
|
|
@@ -28518,54 +28657,54 @@ ${str}
|
|
|
28518
28657
|
};
|
|
28519
28658
|
var Parser = class extends StatementParser {
|
|
28520
28659
|
constructor(options, input, pluginsMap) {
|
|
28521
|
-
|
|
28522
|
-
super(
|
|
28523
|
-
this.options =
|
|
28660
|
+
const normalizedOptions = getOptions(options);
|
|
28661
|
+
super(normalizedOptions, input);
|
|
28662
|
+
this.options = normalizedOptions;
|
|
28524
28663
|
this.initializeScopes();
|
|
28525
28664
|
this.plugins = pluginsMap;
|
|
28526
|
-
this.filename =
|
|
28527
|
-
this.startIndex =
|
|
28665
|
+
this.filename = normalizedOptions.sourceFilename;
|
|
28666
|
+
this.startIndex = normalizedOptions.startIndex;
|
|
28528
28667
|
let optionFlags = 0;
|
|
28529
|
-
if (
|
|
28668
|
+
if (normalizedOptions.allowAwaitOutsideFunction) {
|
|
28530
28669
|
optionFlags |= 1;
|
|
28531
28670
|
}
|
|
28532
|
-
if (
|
|
28671
|
+
if (normalizedOptions.allowReturnOutsideFunction) {
|
|
28533
28672
|
optionFlags |= 2;
|
|
28534
28673
|
}
|
|
28535
|
-
if (
|
|
28674
|
+
if (normalizedOptions.allowImportExportEverywhere) {
|
|
28536
28675
|
optionFlags |= 8;
|
|
28537
28676
|
}
|
|
28538
|
-
if (
|
|
28677
|
+
if (normalizedOptions.allowSuperOutsideMethod) {
|
|
28539
28678
|
optionFlags |= 16;
|
|
28540
28679
|
}
|
|
28541
|
-
if (
|
|
28680
|
+
if (normalizedOptions.allowUndeclaredExports) {
|
|
28542
28681
|
optionFlags |= 64;
|
|
28543
28682
|
}
|
|
28544
|
-
if (
|
|
28683
|
+
if (normalizedOptions.allowNewTargetOutsideFunction) {
|
|
28545
28684
|
optionFlags |= 4;
|
|
28546
28685
|
}
|
|
28547
|
-
if (
|
|
28686
|
+
if (normalizedOptions.allowYieldOutsideFunction) {
|
|
28548
28687
|
optionFlags |= 32;
|
|
28549
28688
|
}
|
|
28550
|
-
if (
|
|
28689
|
+
if (normalizedOptions.ranges) {
|
|
28551
28690
|
optionFlags |= 128;
|
|
28552
28691
|
}
|
|
28553
|
-
if (
|
|
28692
|
+
if (normalizedOptions.tokens) {
|
|
28554
28693
|
optionFlags |= 256;
|
|
28555
28694
|
}
|
|
28556
|
-
if (
|
|
28695
|
+
if (normalizedOptions.createImportExpressions) {
|
|
28557
28696
|
optionFlags |= 512;
|
|
28558
28697
|
}
|
|
28559
|
-
if (
|
|
28698
|
+
if (normalizedOptions.createParenthesizedExpressions) {
|
|
28560
28699
|
optionFlags |= 1024;
|
|
28561
28700
|
}
|
|
28562
|
-
if (
|
|
28701
|
+
if (normalizedOptions.errorRecovery) {
|
|
28563
28702
|
optionFlags |= 2048;
|
|
28564
28703
|
}
|
|
28565
|
-
if (
|
|
28704
|
+
if (normalizedOptions.attachComment) {
|
|
28566
28705
|
optionFlags |= 4096;
|
|
28567
28706
|
}
|
|
28568
|
-
if (
|
|
28707
|
+
if (normalizedOptions.annexB) {
|
|
28569
28708
|
optionFlags |= 8192;
|
|
28570
28709
|
}
|
|
28571
28710
|
this.optionFlags = optionFlags;
|
|
@@ -28579,10 +28718,10 @@ ${str}
|
|
|
28579
28718
|
const program = this.startNode();
|
|
28580
28719
|
this.nextToken();
|
|
28581
28720
|
file.errors = null;
|
|
28582
|
-
this.parseTopLevel(file, program);
|
|
28583
|
-
|
|
28584
|
-
|
|
28585
|
-
return
|
|
28721
|
+
const result = this.parseTopLevel(file, program);
|
|
28722
|
+
result.errors = this.state.errors;
|
|
28723
|
+
result.comments.length = this.state.commentsLen;
|
|
28724
|
+
return result;
|
|
28586
28725
|
}
|
|
28587
28726
|
};
|
|
28588
28727
|
function parse3(input, options) {
|
|
@@ -108225,40 +108364,6 @@ var PlatformLink = ({ url, label }) => {
|
|
|
108225
108364
|
return /* @__PURE__ */ import_react16.default.createElement(Box_default, { marginRight: 1 }, /* @__PURE__ */ import_react16.default.createElement(PointerSmallIcon, null), /* @__PURE__ */ import_react16.default.createElement(Box_default, { marginLeft: 1 }, /* @__PURE__ */ import_react16.default.createElement(Link, { url }, label)));
|
|
108226
108365
|
};
|
|
108227
108366
|
|
|
108228
|
-
// ../cli-astro-commands/src/hooks/useUpdateDeploymentTopology.ts
|
|
108229
|
-
init_esm_shims();
|
|
108230
|
-
function useUpdateDeploymentTopology(siteId) {
|
|
108231
|
-
const {
|
|
108232
|
-
model: { projectFolder }
|
|
108233
|
-
} = useProjectModel();
|
|
108234
|
-
return useAsyncCallback(async (_, props) => {
|
|
108235
|
-
const { environment, siteUrl, armTag } = props;
|
|
108236
|
-
const topology = await readDeploymentTopology(projectFolder);
|
|
108237
|
-
topology[environment] = {
|
|
108238
|
-
id: armTag,
|
|
108239
|
-
site: siteUrl ? {
|
|
108240
|
-
main: siteUrl
|
|
108241
|
-
} : void 0,
|
|
108242
|
-
dashboard: {
|
|
108243
|
-
main: `https://manage.wix.com/dashboard/${siteId}?apps-override=${armTag}`
|
|
108244
|
-
}
|
|
108245
|
-
};
|
|
108246
|
-
const path = getDeploymentTopologyPath(projectFolder);
|
|
108247
|
-
await writeJson(path, topology, { spaces: 2 });
|
|
108248
|
-
});
|
|
108249
|
-
}
|
|
108250
|
-
async function readDeploymentTopology(projectFolder) {
|
|
108251
|
-
const path = getDeploymentTopologyPath(projectFolder);
|
|
108252
|
-
if (await pathExists(path)) {
|
|
108253
|
-
try {
|
|
108254
|
-
const deployment = await readJson(path);
|
|
108255
|
-
return deploymentTopologySchema.parse(deployment);
|
|
108256
|
-
} catch {
|
|
108257
|
-
}
|
|
108258
|
-
}
|
|
108259
|
-
return {};
|
|
108260
|
-
}
|
|
108261
|
-
|
|
108262
108367
|
// ../cli-astro-commands/src/components/PreviewCommand/app-flow/useResolvePlatformUrl.ts
|
|
108263
108368
|
init_esm_shims();
|
|
108264
108369
|
var import_react17 = __toESM(require_react(), 1);
|
|
@@ -108290,11 +108395,9 @@ function useResolvePlatformUrl() {
|
|
|
108290
108395
|
return (0, import_react17.useCallback)(
|
|
108291
108396
|
({
|
|
108292
108397
|
platformType,
|
|
108293
|
-
armTag
|
|
108294
|
-
openAddPanel
|
|
108398
|
+
armTag
|
|
108295
108399
|
}) => {
|
|
108296
108400
|
return resolvePlatformUrl(platformType, {
|
|
108297
|
-
openAddPanel,
|
|
108298
108401
|
site,
|
|
108299
108402
|
appId: model.config.appId,
|
|
108300
108403
|
tag: armTag
|
|
@@ -108304,20 +108407,17 @@ function useResolvePlatformUrl() {
|
|
|
108304
108407
|
);
|
|
108305
108408
|
}
|
|
108306
108409
|
function resolvePlatformUrl(platformType, options) {
|
|
108307
|
-
const { site, tag, appId
|
|
108410
|
+
const { site, tag, appId } = options;
|
|
108308
108411
|
const url = (0, import_variant11.match)(platformType, {
|
|
108309
108412
|
Dashboard: () => new URL(`dashboard/${site.id}`, "https://manage.wix.com/"),
|
|
108310
108413
|
Editor: () => {
|
|
108311
|
-
const editorUrl = new URL(`https://wix.com/editor/${site.id}`);
|
|
108312
|
-
|
|
108313
|
-
editorUrl.searchParams.append("deeplink", `addpanel!${appId}`);
|
|
108314
|
-
}
|
|
108414
|
+
const editorUrl = new URL(`https://manage.wix.com/editor/${site.id}`);
|
|
108415
|
+
editorUrl.searchParams.append("etpa", appId);
|
|
108315
108416
|
return editorUrl;
|
|
108316
108417
|
},
|
|
108317
108418
|
Site: () => {
|
|
108318
108419
|
return site.viewUrl ? new URL(site.viewUrl) : void 0;
|
|
108319
|
-
}
|
|
108320
|
-
Blocks: () => new URL(`https://wix.com/editor/${site.id}`)
|
|
108420
|
+
}
|
|
108321
108421
|
});
|
|
108322
108422
|
if (url) {
|
|
108323
108423
|
url.searchParams.append("apps-override", tag);
|
|
@@ -108328,6 +108428,62 @@ function resolvePlatformUrl(platformType, options) {
|
|
|
108328
108428
|
}
|
|
108329
108429
|
}
|
|
108330
108430
|
|
|
108431
|
+
// ../cli-astro-commands/src/hooks/useUpdateDeploymentTopology.ts
|
|
108432
|
+
init_esm_shims();
|
|
108433
|
+
function useUpdateDeploymentTopology() {
|
|
108434
|
+
const {
|
|
108435
|
+
model: { projectFolder, config }
|
|
108436
|
+
} = useProjectModel();
|
|
108437
|
+
const resolvePlatformUrl2 = useResolvePlatformUrl();
|
|
108438
|
+
return useAsyncCallback(async (_, props) => {
|
|
108439
|
+
const { environment, siteUrl, armTag } = props;
|
|
108440
|
+
const _siteUrl = siteUrl ?? resolvePlatformUrl2({
|
|
108441
|
+
platformType: PlatformType.Site(),
|
|
108442
|
+
armTag
|
|
108443
|
+
});
|
|
108444
|
+
const editorUrl = config.projectType === "App" ? resolvePlatformUrl2({
|
|
108445
|
+
platformType: PlatformType.Editor(),
|
|
108446
|
+
armTag
|
|
108447
|
+
}) : void 0;
|
|
108448
|
+
const dashboardUrl = resolvePlatformUrl2({
|
|
108449
|
+
platformType: PlatformType.Dashboard(),
|
|
108450
|
+
armTag
|
|
108451
|
+
});
|
|
108452
|
+
const topology = await readDeploymentTopology(projectFolder);
|
|
108453
|
+
topology[environment] = {
|
|
108454
|
+
id: armTag,
|
|
108455
|
+
..._siteUrl ? {
|
|
108456
|
+
site: {
|
|
108457
|
+
main: _siteUrl
|
|
108458
|
+
}
|
|
108459
|
+
} : {},
|
|
108460
|
+
...dashboardUrl ? {
|
|
108461
|
+
dashboard: {
|
|
108462
|
+
main: dashboardUrl
|
|
108463
|
+
}
|
|
108464
|
+
} : {},
|
|
108465
|
+
...editorUrl ? {
|
|
108466
|
+
editor: {
|
|
108467
|
+
main: editorUrl
|
|
108468
|
+
}
|
|
108469
|
+
} : {}
|
|
108470
|
+
};
|
|
108471
|
+
const path = getDeploymentTopologyPath(projectFolder);
|
|
108472
|
+
await writeJson(path, topology, { spaces: 2 });
|
|
108473
|
+
});
|
|
108474
|
+
}
|
|
108475
|
+
async function readDeploymentTopology(projectFolder) {
|
|
108476
|
+
const path = getDeploymentTopologyPath(projectFolder);
|
|
108477
|
+
if (await pathExists(path)) {
|
|
108478
|
+
try {
|
|
108479
|
+
const deployment = await readJson(path);
|
|
108480
|
+
return deploymentTopologySchema.parse(deployment);
|
|
108481
|
+
} catch {
|
|
108482
|
+
}
|
|
108483
|
+
}
|
|
108484
|
+
return {};
|
|
108485
|
+
}
|
|
108486
|
+
|
|
108331
108487
|
// ../cli-astro-commands/src/components/PreviewCommand/app-flow/LivesiteLinkForApp.tsx
|
|
108332
108488
|
init_esm_shims();
|
|
108333
108489
|
var import_react18 = __toESM(require_react(), 1);
|
|
@@ -108340,18 +108496,31 @@ var LivesiteLinkForApp = ({ armTag }) => {
|
|
|
108340
108496
|
return siteUrl ? /* @__PURE__ */ import_react18.default.createElement(PlatformLink, { url: siteUrl, label: "Site" }) : /* @__PURE__ */ import_react18.default.createElement(Box_default, { marginRight: 1 }, /* @__PURE__ */ import_react18.default.createElement(PointerSmallIcon, null), /* @__PURE__ */ import_react18.default.createElement(Box_default, { marginLeft: 1 }, /* @__PURE__ */ import_react18.default.createElement(Text, { skin: "secondary", underline: true }, "Site (publish your site to enable preview)")));
|
|
108341
108497
|
};
|
|
108342
108498
|
|
|
108499
|
+
// ../cli-astro-commands/src/components/PlatformLink/EditorLink.tsx
|
|
108500
|
+
init_esm_shims();
|
|
108501
|
+
var import_react19 = __toESM(require_react(), 1);
|
|
108502
|
+
var EditorLink = ({ armTag }) => {
|
|
108503
|
+
const resolvePlatformUrl2 = useResolvePlatformUrl();
|
|
108504
|
+
const editorUrl = resolvePlatformUrl2({
|
|
108505
|
+
platformType: PlatformType.Editor(),
|
|
108506
|
+
armTag
|
|
108507
|
+
});
|
|
108508
|
+
return /* @__PURE__ */ import_react19.default.createElement(PlatformLink, { url: editorUrl, label: "Editor" });
|
|
108509
|
+
};
|
|
108510
|
+
|
|
108343
108511
|
export {
|
|
108344
108512
|
useARMClient,
|
|
108345
108513
|
useUpdateManifest,
|
|
108346
108514
|
PlatformLink,
|
|
108347
|
-
useUpdateDeploymentTopology,
|
|
108348
|
-
useSite,
|
|
108349
108515
|
readAppConfig,
|
|
108350
108516
|
saveAppConfig,
|
|
108351
108517
|
SiteSelector,
|
|
108352
108518
|
SiteProvider,
|
|
108519
|
+
useSite,
|
|
108353
108520
|
useResolvePlatformUrl,
|
|
108354
|
-
|
|
108521
|
+
useUpdateDeploymentTopology,
|
|
108522
|
+
LivesiteLinkForApp,
|
|
108523
|
+
EditorLink
|
|
108355
108524
|
};
|
|
108356
108525
|
/*! Bundled license information:
|
|
108357
108526
|
|
|
@@ -108407,4 +108576,4 @@ export {
|
|
|
108407
108576
|
*)
|
|
108408
108577
|
*)
|
|
108409
108578
|
*/
|
|
108410
|
-
//# sourceMappingURL=chunk-
|
|
108579
|
+
//# sourceMappingURL=chunk-YMSQHLQM.js.map
|