@powerlines/plugin-automd 0.1.283 → 0.1.285

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.
@@ -1,5 +1,5 @@
1
1
 
2
- //#region ../../node_modules/.pnpm/acorn@8.15.0/node_modules/acorn/dist/acorn.mjs
2
+ //#region ../../node_modules/.pnpm/acorn@8.16.0/node_modules/acorn/dist/acorn.mjs
3
3
  var astralIdentifierCodes = [
4
4
  509,
5
5
  0,
@@ -31,8 +31,8 @@ var astralIdentifierCodes = [
31
31
  4,
32
32
  318,
33
33
  1,
34
- 80,
35
- 3,
34
+ 78,
35
+ 5,
36
36
  71,
37
37
  10,
38
38
  50,
@@ -177,7 +177,9 @@ var astralIdentifierCodes = [
177
177
  10,
178
178
  47,
179
179
  15,
180
- 343,
180
+ 199,
181
+ 7,
182
+ 137,
181
183
  9,
182
184
  54,
183
185
  7,
@@ -209,7 +211,9 @@ var astralIdentifierCodes = [
209
211
  4,
210
212
  9,
211
213
  9,
212
- 330,
214
+ 55,
215
+ 9,
216
+ 266,
213
217
  3,
214
218
  10,
215
219
  1,
@@ -309,7 +313,15 @@ var astralIdentifierCodes = [
309
313
  1,
310
314
  2,
311
315
  9,
312
- 726,
316
+ 233,
317
+ 0,
318
+ 3,
319
+ 0,
320
+ 8,
321
+ 1,
322
+ 6,
323
+ 0,
324
+ 475,
313
325
  6,
314
326
  110,
315
327
  6,
@@ -419,7 +431,9 @@ var astralIdentifierStartCodes = [
419
431
  21,
420
432
  11,
421
433
  25,
422
- 71,
434
+ 7,
435
+ 25,
436
+ 39,
423
437
  55,
424
438
  7,
425
439
  1,
@@ -464,8 +478,8 @@ var astralIdentifierStartCodes = [
464
478
  7,
465
479
  1,
466
480
  17,
467
- 2,
468
- 60,
481
+ 5,
482
+ 57,
469
483
  28,
470
484
  11,
471
485
  0,
@@ -649,7 +663,9 @@ var astralIdentifierStartCodes = [
649
663
  31,
650
664
  15,
651
665
  0,
652
- 328,
666
+ 24,
667
+ 43,
668
+ 261,
653
669
  18,
654
670
  16,
655
671
  0,
@@ -697,7 +713,11 @@ var astralIdentifierStartCodes = [
697
713
  44,
698
714
  212,
699
715
  63,
700
- 129,
716
+ 33,
717
+ 24,
718
+ 3,
719
+ 24,
720
+ 45,
701
721
  74,
702
722
  6,
703
723
  0,
@@ -707,13 +727,15 @@ var astralIdentifierStartCodes = [
707
727
  1,
708
728
  2,
709
729
  0,
710
- 29,
711
- 6135,
712
- 9,
713
- 1237,
730
+ 15,
731
+ 4,
732
+ 10,
733
+ 7381,
714
734
  42,
715
- 9,
716
- 8936,
735
+ 31,
736
+ 98,
737
+ 114,
738
+ 8702,
717
739
  3,
718
740
  2,
719
741
  6,
@@ -821,7 +843,19 @@ var astralIdentifierStartCodes = [
821
843
  29,
822
844
  3,
823
845
  0,
824
- 496,
846
+ 208,
847
+ 30,
848
+ 2,
849
+ 2,
850
+ 2,
851
+ 1,
852
+ 2,
853
+ 6,
854
+ 3,
855
+ 4,
856
+ 10,
857
+ 1,
858
+ 225,
825
859
  6,
826
860
  2,
827
861
  3,
@@ -904,12 +938,10 @@ var astralIdentifierStartCodes = [
904
938
  4421,
905
939
  42719,
906
940
  33,
907
- 4153,
908
- 7,
909
- 221,
941
+ 4381,
942
+ 3,
943
+ 5773,
910
944
  3,
911
- 5761,
912
- 15,
913
945
  7472,
914
946
  16,
915
947
  621,
@@ -918,10 +950,10 @@ var astralIdentifierStartCodes = [
918
950
  1507,
919
951
  4938,
920
952
  6,
921
- 4191
953
+ 8489
922
954
  ];
923
- var nonASCIIidentifierChars = "‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࢗ-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・";
924
- var nonASCIIidentifierStartChars = "ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲊᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟍꟐꟑꟓꟕ-Ƛꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ";
955
+ var nonASCIIidentifierChars = "‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࢗ-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-᫝᫠-᫫ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・";
956
+ var nonASCIIidentifierStartChars = "ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-࢏ࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚ౜ౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽ೜-ೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲊᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-Ƛ꟱-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ";
925
957
  var reservedWords = {
926
958
  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",
927
959
  5: "class enum extends super const export import",
@@ -1224,6 +1256,7 @@ function getOptions(opts) {
1224
1256
  };
1225
1257
  }
1226
1258
  if (isArray(options.onComment)) options.onComment = pushComment(options, options.onComment);
1259
+ if (options.sourceType === "commonjs" && options.allowAwaitOutsideFunction) throw new Error("Cannot use allowAwaitOutsideFunction with sourceType: commonjs");
1227
1260
  return options;
1228
1261
  }
1229
1262
  function pushComment(options, array) {
@@ -1239,7 +1272,7 @@ function pushComment(options, array) {
1239
1272
  array.push(comment);
1240
1273
  };
1241
1274
  }
1242
- var SCOPE_TOP = 1, SCOPE_FUNCTION = 2, SCOPE_ASYNC = 4, SCOPE_GENERATOR = 8, SCOPE_ARROW = 16, SCOPE_SIMPLE_CATCH = 32, SCOPE_SUPER = 64, SCOPE_DIRECT_SUPER = 128, SCOPE_CLASS_STATIC_BLOCK = 256, SCOPE_CLASS_FIELD_INIT = 512, SCOPE_VAR = SCOPE_TOP | SCOPE_FUNCTION | SCOPE_CLASS_STATIC_BLOCK;
1275
+ var SCOPE_TOP = 1, SCOPE_FUNCTION = 2, SCOPE_ASYNC = 4, SCOPE_GENERATOR = 8, SCOPE_ARROW = 16, SCOPE_SIMPLE_CATCH = 32, SCOPE_SUPER = 64, SCOPE_DIRECT_SUPER = 128, SCOPE_CLASS_STATIC_BLOCK = 256, SCOPE_CLASS_FIELD_INIT = 512, SCOPE_SWITCH = 1024, SCOPE_VAR = SCOPE_TOP | SCOPE_FUNCTION | SCOPE_CLASS_STATIC_BLOCK;
1243
1276
  function functionFlags(async, generator) {
1244
1277
  return SCOPE_FUNCTION | (async ? SCOPE_ASYNC : 0) | (generator ? SCOPE_GENERATOR : 0);
1245
1278
  }
@@ -1284,7 +1317,7 @@ var Parser = function Parser$1(options, input, startPos) {
1284
1317
  this.undefinedExports = Object.create(null);
1285
1318
  if (this.pos === 0 && options.allowHashBang && this.input.slice(0, 2) === "#!") this.skipLineComment(2);
1286
1319
  this.scopeStack = [];
1287
- this.enterScope(SCOPE_TOP);
1320
+ this.enterScope(this.options.sourceType === "commonjs" ? SCOPE_FUNCTION : SCOPE_TOP);
1288
1321
  this.regexpState = null;
1289
1322
  this.privateNameStack = [];
1290
1323
  };
@@ -1293,10 +1326,12 @@ var prototypeAccessors = {
1293
1326
  inGenerator: { configurable: true },
1294
1327
  inAsync: { configurable: true },
1295
1328
  canAwait: { configurable: true },
1329
+ allowReturn: { configurable: true },
1296
1330
  allowSuper: { configurable: true },
1297
1331
  allowDirectSuper: { configurable: true },
1298
1332
  treatFunctionsAsVar: { configurable: true },
1299
1333
  allowNewDotTarget: { configurable: true },
1334
+ allowUsing: { configurable: true },
1300
1335
  inClassStaticBlock: { configurable: true }
1301
1336
  };
1302
1337
  Parser.prototype.parse = function parse() {
@@ -1321,6 +1356,11 @@ prototypeAccessors.canAwait.get = function() {
1321
1356
  }
1322
1357
  return this.inModule && this.options.ecmaVersion >= 13 || this.options.allowAwaitOutsideFunction;
1323
1358
  };
1359
+ prototypeAccessors.allowReturn.get = function() {
1360
+ if (this.inFunction) return true;
1361
+ if (this.options.allowReturnOutsideFunction && this.currentVarScope().flags & SCOPE_TOP) return true;
1362
+ return false;
1363
+ };
1324
1364
  prototypeAccessors.allowSuper.get = function() {
1325
1365
  return (this.currentThisScope().flags & SCOPE_SUPER) > 0 || this.options.allowSuperOutsideMethod;
1326
1366
  };
@@ -1337,6 +1377,12 @@ prototypeAccessors.allowNewDotTarget.get = function() {
1337
1377
  }
1338
1378
  return false;
1339
1379
  };
1380
+ prototypeAccessors.allowUsing.get = function() {
1381
+ var flags = this.currentScope().flags;
1382
+ if (flags & SCOPE_SWITCH) return false;
1383
+ if (!this.inModule && flags & SCOPE_TOP) return false;
1384
+ return true;
1385
+ };
1340
1386
  prototypeAccessors.inClassStaticBlock.get = function() {
1341
1387
  return (this.currentVarScope().flags & SCOPE_CLASS_STATIC_BLOCK) > 0;
1342
1388
  };
@@ -1461,7 +1507,7 @@ pp$8.parseTopLevel = function(node) {
1461
1507
  }
1462
1508
  this.adaptDirectivePrologue(node.body);
1463
1509
  this.next();
1464
- node.sourceType = this.options.sourceType;
1510
+ node.sourceType = this.options.sourceType === "commonjs" ? "script" : this.options.sourceType;
1465
1511
  return this.finishNode(node, "Program");
1466
1512
  };
1467
1513
  var loopLabel = { kind: "loop" }, switchLabel = { kind: "switch" };
@@ -1469,15 +1515,17 @@ pp$8.isLet = function(context) {
1469
1515
  if (this.options.ecmaVersion < 6 || !this.isContextual("let")) return false;
1470
1516
  skipWhiteSpace.lastIndex = this.pos;
1471
1517
  var skip = skipWhiteSpace.exec(this.input);
1472
- var next = this.pos + skip[0].length, nextCh = this.input.charCodeAt(next);
1518
+ var next = this.pos + skip[0].length, nextCh = this.fullCharCodeAt(next);
1473
1519
  if (nextCh === 91 || nextCh === 92) return true;
1474
1520
  if (context) return false;
1475
- if (nextCh === 123 || nextCh > 55295 && nextCh < 56320) return true;
1476
- if (isIdentifierStart(nextCh, true)) {
1477
- var pos = next + 1;
1478
- while (isIdentifierChar(nextCh = this.input.charCodeAt(pos), true)) ++pos;
1479
- if (nextCh === 92 || nextCh > 55295 && nextCh < 56320) return true;
1480
- var ident = this.input.slice(next, pos);
1521
+ if (nextCh === 123) return true;
1522
+ if (isIdentifierStart(nextCh)) {
1523
+ var start = next;
1524
+ do
1525
+ next += nextCh <= 65535 ? 1 : 2;
1526
+ while (isIdentifierChar(nextCh = this.fullCharCodeAt(next)));
1527
+ if (nextCh === 92) return true;
1528
+ var ident = this.input.slice(start, next);
1481
1529
  if (!keywordRelationalOperator.test(ident)) return true;
1482
1530
  }
1483
1531
  return false;
@@ -1487,7 +1535,7 @@ pp$8.isAsyncFunction = function() {
1487
1535
  skipWhiteSpace.lastIndex = this.pos;
1488
1536
  var skip = skipWhiteSpace.exec(this.input);
1489
1537
  var next = this.pos + skip[0].length, after;
1490
- return !lineBreak.test(this.input.slice(this.pos, next)) && this.input.slice(next, next + 8) === "function" && (next + 8 === this.input.length || !(isIdentifierChar(after = this.input.charCodeAt(next + 8)) || after > 55295 && after < 56320));
1538
+ return !lineBreak.test(this.input.slice(this.pos, next)) && this.input.slice(next, next + 8) === "function" && (next + 8 === this.input.length || !(isIdentifierChar(after = this.fullCharCodeAt(next + 8)) || after === 92));
1491
1539
  };
1492
1540
  pp$8.isUsingKeyword = function(isAwaitUsing, isFor) {
1493
1541
  if (this.options.ecmaVersion < 17 || !this.isContextual(isAwaitUsing ? "await" : "using")) return false;
@@ -1496,20 +1544,23 @@ pp$8.isUsingKeyword = function(isAwaitUsing, isFor) {
1496
1544
  var next = this.pos + skip[0].length;
1497
1545
  if (lineBreak.test(this.input.slice(this.pos, next))) return false;
1498
1546
  if (isAwaitUsing) {
1499
- var awaitEndPos = next + 5, after;
1500
- if (this.input.slice(next, awaitEndPos) !== "using" || awaitEndPos === this.input.length || isIdentifierChar(after = this.input.charCodeAt(awaitEndPos)) || after > 55295 && after < 56320) return false;
1501
- skipWhiteSpace.lastIndex = awaitEndPos;
1547
+ var usingEndPos = next + 5, after;
1548
+ if (this.input.slice(next, usingEndPos) !== "using" || usingEndPos === this.input.length || isIdentifierChar(after = this.fullCharCodeAt(usingEndPos)) || after === 92) return false;
1549
+ skipWhiteSpace.lastIndex = usingEndPos;
1502
1550
  var skipAfterUsing = skipWhiteSpace.exec(this.input);
1503
- if (skipAfterUsing && lineBreak.test(this.input.slice(awaitEndPos, awaitEndPos + skipAfterUsing[0].length))) return false;
1504
- }
1505
- if (isFor) {
1506
- var ofEndPos = next + 2, after$1;
1507
- if (this.input.slice(next, ofEndPos) === "of") {
1508
- if (ofEndPos === this.input.length || !isIdentifierChar(after$1 = this.input.charCodeAt(ofEndPos)) && !(after$1 > 55295 && after$1 < 56320)) return false;
1509
- }
1510
- }
1511
- var ch = this.input.charCodeAt(next);
1512
- return isIdentifierStart(ch, true) || ch === 92;
1551
+ next = usingEndPos + skipAfterUsing[0].length;
1552
+ if (skipAfterUsing && lineBreak.test(this.input.slice(usingEndPos, next))) return false;
1553
+ }
1554
+ var ch = this.fullCharCodeAt(next);
1555
+ if (!isIdentifierStart(ch) && ch !== 92) return false;
1556
+ var idStart = next;
1557
+ do
1558
+ next += ch <= 65535 ? 1 : 2;
1559
+ while (isIdentifierChar(ch = this.fullCharCodeAt(next)));
1560
+ if (ch === 92) return true;
1561
+ var id = this.input.slice(idStart, next);
1562
+ if (keywordRelationalOperator.test(id) || isFor && id === "of") return false;
1563
+ return true;
1513
1564
  };
1514
1565
  pp$8.isAwaitUsing = function(isFor) {
1515
1566
  return this.isUsingKeyword(true, isFor);
@@ -1570,7 +1621,7 @@ pp$8.parseStatement = function(context, topLevel, exports$1) {
1570
1621
  }
1571
1622
  var usingKind = this.isAwaitUsing(false) ? "await using" : this.isUsing(false) ? "using" : null;
1572
1623
  if (usingKind) {
1573
- if (topLevel && this.options.sourceType === "script") this.raise(this.start, "Using declaration cannot appear in the top level when source type is `script`");
1624
+ if (!this.allowUsing) this.raise(this.start, "Using declaration cannot appear in the top level when source type is `script` or in the bare case statement");
1574
1625
  if (usingKind === "await using") {
1575
1626
  if (!this.canAwait) this.raise(this.start, "Await using cannot appear outside of async function");
1576
1627
  this.next();
@@ -1644,7 +1695,10 @@ pp$8.parseForStatement = function(node) {
1644
1695
  if (usingKind) {
1645
1696
  var init$2 = this.startNode();
1646
1697
  this.next();
1647
- if (usingKind === "await using") this.next();
1698
+ if (usingKind === "await using") {
1699
+ if (!this.canAwait) this.raise(this.start, "Await using cannot appear outside of async function");
1700
+ this.next();
1701
+ }
1648
1702
  this.parseVar(init$2, true, usingKind);
1649
1703
  this.finishNode(init$2, "VariableDeclaration");
1650
1704
  return this.parseForAfterInit(node, init$2, awaitAt);
@@ -1691,7 +1745,7 @@ pp$8.parseIfStatement = function(node) {
1691
1745
  return this.finishNode(node, "IfStatement");
1692
1746
  };
1693
1747
  pp$8.parseReturnStatement = function(node) {
1694
- if (!this.inFunction && !this.options.allowReturnOutsideFunction) this.raise(this.start, "'return' outside of function");
1748
+ if (!this.allowReturn) this.raise(this.start, "'return' outside of function");
1695
1749
  this.next();
1696
1750
  if (this.eat(types$1.semi) || this.insertSemicolon()) node.argument = null;
1697
1751
  else {
@@ -1706,7 +1760,7 @@ pp$8.parseSwitchStatement = function(node) {
1706
1760
  node.cases = [];
1707
1761
  this.expect(types$1.braceL);
1708
1762
  this.labels.push(switchLabel);
1709
- this.enterScope(0);
1763
+ this.enterScope(SCOPE_SWITCH);
1710
1764
  var cur;
1711
1765
  for (var sawDefault = false; this.type !== types$1.braceR;) if (this.type === types$1._case || this.type === types$1._default) {
1712
1766
  var isCase = this.type === types$1._case;
@@ -3447,7 +3501,7 @@ pp$2.copyNode = function(node) {
3447
3501
  for (var prop in node) newNode[prop] = node[prop];
3448
3502
  return newNode;
3449
3503
  };
3450
- var scriptValuesAddedInUnicode = "Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sunu Sunuwar Todhri Todr Tulu_Tigalari Tutg Unknown Zzzz";
3504
+ var scriptValuesAddedInUnicode = "Berf Beria_Erfe Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sidetic Sidt Sunu Sunuwar Tai_Yo Tayo Todhri Todr Tolong_Siki Tols Tulu_Tigalari Tutg Unknown Zzzz";
3451
3505
  var ecma9BinaryProperties = "ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS";
3452
3506
  var ecma10BinaryProperties = ecma9BinaryProperties + " Extended_Pictographic";
3453
3507
  var ecma11BinaryProperties = ecma10BinaryProperties;
@@ -4453,12 +4507,15 @@ pp.readToken = function(code) {
4453
4507
  if (isIdentifierStart(code, this.options.ecmaVersion >= 6) || code === 92) return this.readWord();
4454
4508
  return this.getTokenFromCode(code);
4455
4509
  };
4456
- pp.fullCharCodeAtPos = function() {
4457
- var code = this.input.charCodeAt(this.pos);
4510
+ pp.fullCharCodeAt = function(pos) {
4511
+ var code = this.input.charCodeAt(pos);
4458
4512
  if (code <= 55295 || code >= 56320) return code;
4459
- var next = this.input.charCodeAt(this.pos + 1);
4513
+ var next = this.input.charCodeAt(pos + 1);
4460
4514
  return next <= 56319 || next >= 57344 ? code : (code << 10) + next - 56613888;
4461
4515
  };
4516
+ pp.fullCharCodeAtPos = function() {
4517
+ return this.fullCharCodeAt(this.pos);
4518
+ };
4462
4519
  pp.skipBlockComment = function() {
4463
4520
  var startLoc = this.options.onComment && this.curPosition();
4464
4521
  var start = this.pos, end = this.input.indexOf("*/", this.pos += 2);
@@ -5002,7 +5059,7 @@ pp.readWord = function() {
5002
5059
  if (this.keywords.test(word)) type = keywords[word];
5003
5060
  return this.finishToken(type, word);
5004
5061
  };
5005
- var version = "8.15.0";
5062
+ var version = "8.16.0";
5006
5063
  Parser.acorn = {
5007
5064
  Parser,
5008
5065
  version,